:root {
    --bg-dark: #050505;
    --bg-surface: #0f0f13;
    --text-primary: #ffffff;
    --text-secondary: #94949a;
    --accent-1: #6d28d9;
    --accent-2: #db2777;
    --accent-glow: rgba(219, 39, 119, 0.5);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==================== MESH BACKGROUND ==================== */
.mesh-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-dark);
}

.mesh-blob {
    position: absolute;
    filter: blur(90px);
    opacity: 0.5;
    border-radius: 50%;
    animation: drift 20s infinite alternate linear;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--accent-1);
}

.blob-2 {
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: var(--accent-2);
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 40vw;
    height: 40vw;
    background: #3b82f6;
    animation-delay: -10s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10%, 10%) scale(1.2); }
}

/* ==================== TYPOGRAPHY & LAYOUT ==================== */
h1, h2, h3, h4, .nav-logo {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(to right, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==================== BUTTONS ==================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: white;
    padding: 16px 32px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px var(--accent-glow);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 12px 24px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}

/* ==================== NAVBAR ==================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
}

.nav-logo span {
    color: var(--accent-2);
}

.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: white;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: white;
    transition: 0.3s;
}

/* ==================== HERO ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 24px;
    color: var(--text-secondary);
}

.hero-title {
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 48px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-digit {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    color: white;
}

.countdown-label {
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--accent-2);
    font-weight: 600;
}

.countdown-separator {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    color: rgba(255,255,255,0.2);
}

/* ==================== TENTANG ==================== */
.about {
    background: rgba(15, 15, 19, 0.4);
    backdrop-filter: blur(20px);
}

.about-content {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.lead-text {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 24px;
    font-weight: 300;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.stat-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 24px;
    padding: 40px 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.05);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* ==================== DETAIL ==================== */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.detail-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
}

.detail-card:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
}

.icon-wrapper {
    width: 64px;
    height: 64px;
    background: rgba(219, 39, 119, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--accent-2);
}

.detail-card h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.detail-card p {
    color: var(--text-secondary);
}

/* ==================== GALERI ==================== */
.gallery {
    background: rgba(15, 15, 19, 0.4);
    backdrop-filter: blur(20px);
}

.gallery-carousel {
    overflow: hidden;
    position: relative;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.gallery-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: scrollGallery 30s linear infinite;
}

.gallery-track:hover {
    animation-play-state: paused;
}

.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1;
    width: 320px;
    flex-shrink: 0;
    position: relative;
}

@keyframes scrollGallery {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 10px)); }
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Memastikan foto tidak di-crop */
    background: rgba(0, 0, 0, 0.4); /* Memberi background elegan pada bagian yang kosong */
    border-radius: 16px;
    transition: all 0.5s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

/* ==================== RSVP ==================== */
.rsvp-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 32px;
    padding: 60px 40px;
}

.subtitle {
    color: var(--text-secondary);
}

.modern-form .form-group {
    position: relative;
    margin-bottom: 24px;
}

.modern-form input,
.modern-form select,
.modern-form textarea {
    width: 100%;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 20px 16px 12px;
    color: white;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.modern-form textarea {
    resize: vertical;
}

.modern-form label {
    position: absolute;
    left: 16px;
    top: 16px;
    color: var(--text-secondary);
    font-size: 1rem;
    transition: all 0.3s ease;
    pointer-events: none;
}

.modern-form input:focus,
.modern-form select:focus,
.modern-form textarea:focus {
    outline: none;
    border-color: var(--accent-1);
    background: rgba(0,0,0,0.4);
}

.modern-form input:focus + label,
.modern-form input:not(:placeholder-shown) + label,
.modern-form textarea:focus + label,
.modern-form textarea:not(:placeholder-shown) + label,
.modern-form select:focus + label,
.modern-form select:valid + label {
    top: 6px;
    font-size: 0.7rem;
    color: var(--accent-1);
    font-weight: 600;
}

.w-100 {
    width: 100%;
}

/* ==================== TESTIMONIAL ==================== */
.testimonials {
    background: rgba(15, 15, 19, 0.4);
    backdrop-filter: blur(20px);
}

.testimonial-carousel {
    overflow: hidden;
    position: relative;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.testimonial-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: scrollCarousel 40s linear infinite;
}

.testimonial-track:hover {
    animation-play-state: paused;
}

.testimonial-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 24px;
    padding: 40px;
    width: 350px;
    flex-shrink: 0;
}

@keyframes scrollCarousel {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 12px)); }
}

.quote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.author {
    color: white;
    font-size: 1.2rem;
}

/* ==================== LOCATION ==================== */
.map-container {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    height: 500px;
    border: 1px solid rgba(255,255,255,0.05);
}

.map-container iframe {
    filter: invert(100%) hue-rotate(180deg) brightness(95%) contrast(85%);
}

.map-overlay {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 24px;
    border-radius: 16px;
    max-width: 300px;
}

.map-overlay h3 {
    margin-bottom: 8px;
}

.map-overlay p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 0.9rem;
}

/* ==================== FOOTER ==================== */
footer {
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-logo {
    font-size: 2rem;
    margin-bottom: 16px;
}

.footer-logo span {
    color: var(--accent-2);
}

footer p {
    color: var(--text-secondary);
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.9rem;
}

/* ==================== ANIMATIONS ==================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== MODAL ==================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--bg-surface);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 48px;
    border-radius: 32px;
    text-align: center;
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.modal h3 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.modal p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ==================== LOADER ==================== */
.loading-screen {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.loader-ring {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--accent-1);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 24px;
}

.loader-text {
    font-family: var(--font-heading);
    letter-spacing: 4px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

@keyframes spin { 100% { transform: rotate(360deg); } }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 992px) {
    .stats-grid, .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: clamp(3rem, 12vw, 5rem);
    }
}

@media (max-width: 768px) {
    .gallery-item {
        width: 250px;
    }
    .testimonial-card {
        width: 300px;
        padding: 30px;
    }
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100vw;
        height: 100vh;
        background: rgba(5,5,5,0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.5rem;
    }
    
    .countdown {
        gap: 10px;
    }
    
    .countdown-digit {
        font-size: 2rem;
    }
    
    .countdown-separator {
        font-size: 2rem;
    }
    
    .rsvp-wrapper {
        padding: 40px 20px;
    }
}
