/* =========================================
         1. VARIABLES & RESET (NAVY THEME)
      ========================================= */
:root {
    /* Primary Dark (Background Utama) */
    --bg-dark: #0b1623;
    /* Primary Light (Background Sekunder/Overlay) */
    --bg-light: #162438;
    /* Text Color (Teks Putih/Terang) */
    --text-color: #f0f4f8;
    /* Accent Color (Emas Muda/Champagne) */
    --accent-color: #d4b886;
    /* Card Background Dark (Kartu Gelap) */
    --card-bg-dark: #132030;
    /* Card Background Light (Kartu Terang - Putih Kebiruan) */
    --card-bg-light: #f5f7fa;
    /* Gold/Bronze Strong (Untuk Tombol/Border) */
    --gold-bronze: #bfa05f;

    /* Warna Teks Gelap (Untuk di atas background terang) */
    --text-dark-navy: #1b2a41;
}

/* SOLUSI AMPUH */
.mobile-screen,
body,
html {
    overflow-x: hidden !important;
}

/* Mencegah SweetAlert menggeser layout body */
body.swal2-shown {
    padding-right: 0 !important;
    overflow-y: auto !important; /* Biarkan tetap auto */
}

/* Pastikan wrapper RSVP punya transisi halus tinggi */
#rsvp-wrapper {
    transition: min-height 0.3s ease;
}

body {
    /* Background luar hp */
    background-color: #627285;
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.mobile-screen {
    max-width: 420px;
    height: 100%;
    background: url("Kutipan.png");
    background-size: cover;
    position: relative;
    overflow-y: hidden;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-behavior: smooth;
}
.mobile-screen::-webkit-scrollbar {
    display: none;
}
.allow-scroll {
    overflow-y: auto !important;
}

/* =========================================
   ANIMASI GERBANG PEMBUKA (GATE OPENER)
========================================= */

#gate-opening-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000; /* WAJIB LEBIH TINGGI DARI #opening-overlay (9999) */
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none; /* PENTING: Agar klik tembus ke tombol di bawahnya setelah terbuka */
}

/* Common Style untuk Panel Kiri & Kanan */
.gate-panel {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    /* Agar tidak menghalangi klik setelah animasi selesai */
    pointer-events: auto;

    /* Animasi Geser Membuka */
    /* Delay 1s agar user sempat melihat gerbangnya dulu baru terbuka */
    animation-duration: 2.5s;
    animation-delay: 1s;
    animation-timing-function: cubic-bezier(
        0.77,
        0,
        0.175,
        1
    ); /* Easing Mewah */
    animation-fill-mode: forwards;
}

/* --- GERBANG KIRI --- */
.gate-left {
    left: 0;
    background-color: #0b1623; /* Warna dasar Navy jika gambar belum load */
    border-right: 1px solid #d4af37; /* Garis emas di tengah pertemuan */
    animation-name: slideGateLeft;
}

/* --- GERBANG KANAN --- */
.gate-right {
    right: 0;
    background-color: #0b1623;
    border-left: 1px solid #d4af37;
    animation-name: slideGateRight;
}

/* Image Wrapper (Agar gambar bisa diatur posisinya lebih presisi) */
.gate-bg-img {
    width: 100%;
    height: 100%;
    background-size: cover; /* Menutupi area penuh */
    background-repeat: no-repeat;
}

/* Posisi Background Gambar */
.gate-left .gate-bg-img {
    background-position: right center; /* Fokus sisi kanan gambar (tengah pertemuan) */
}
.gate-right .gate-bg-img {
    background-position: left center; /* Fokus sisi kiri gambar */
}

/* --- DEKORASI TENGAH (GUNUNGAN/LOGO) --- */
.gate-center-decor {
    position: absolute;
    z-index: 3;
    width: 100px; /* Sesuaikan ukuran */
    height: auto;

    /* Animasi: Fade Out & Zoom In saat gerbang terbuka */
    animation: fadeOutCenter 1s ease-out forwards;
    animation-delay: 1s; /* Sinkron dengan gerbang */
}
.gate-center-decor img {
    width: 100%;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
}

/* --- KEYFRAMES ANIMASI --- */

/* Gerbang Kiri Geser ke Kiri Luar */
@keyframes slideGateLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-105%);
    } /* -105% agar benar-benar hilang dari layar */
}

/* Gerbang Kanan Geser ke Kanan Luar */
@keyframes slideGateRight {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(105%);
    }
}

/* Dekorasi Tengah Menghilang */
@keyframes fadeOutCenter {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}

/* =========================================
   FIXED: RESPONSIVE WAYANG OVERLAY
   (Relative to Mobile Container)
========================================= */
#opening-overlay {
    /* PENTING: Gunakan absolute agar tidak keluar dari .mobile-screen */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999; /* Pastikan paling atas di dalam container */
    overflow: hidden;
    background-color: var(--bg-light);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}

.slide-up-fade {
    transform: translateY(-100%);
    pointer-events: none;
}

.fix-bg-navy {
    position: absolute;
    /* Kita buat lebih panjang (300%) untuk jaga-jaga layar lebar */
    width: 300%;
    height: 100%;

    background-image: url("mega-mendung-cover.png");
    background-repeat: repeat-x;

    /* Cover menutup semua celah, tapi menjaga proporsi gambar */
    background-size: auto 100%;
    background-position: left top;

    z-index: 0;
    animation: driftingClouds 60s linear infinite; /* Waktu diperlambat karena track lebih panjang */
}

/* Kita animasikan background-position, BUKAN transform div-nya 
   Ini teknik paling mulus untuk seamless loop pattern */
@keyframes driftingClouds {
    0% {
        /* Mulai dari kiri */
        transform: translateX(0);
    }
    100% {
        /* Geser secukupnya, coba sesuaikan angkanya */
        transform: translateX(-33.33%);
    }
}
.fix-bg-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#d4af37 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.08;
    z-index: 1;

    /* Animasi: Berkedip halus & berputar sangat pelan */
    animation: patternTwinkle 10s linear infinite;
}

@keyframes patternTwinkle {
    0% {
        opacity: 0.08;
        transform: scale(1);
    }
    50% {
        opacity: 0.15; /* Sedikit lebih terang */
        transform: scale(1.02);
    }
    100% {
        opacity: 0.08;
        transform: scale(1);
    }
}

/* Layout Content */
.fix-content {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 45px 20px;
}

/* --- HEADER & ANIMASI ROTASI BARU --- */
.fix-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Align top agar badge posisinya pas */
    height: auto;
    margin-bottom: 10px;
}

.header-left {
    border-left: 1px solid rgba(255, 255, 255, 0.4);
    font-family: "Lora", serif;
    font-size: 10px;
    letter-spacing: 2px;
    line-height: 1.6;
    color: #fff;
    text-transform: uppercase;
    padding-left: 10px;
}

/* Container Badge Berputar */
.rotating-badge {
    width: 80px;
    height: 80px;
    /* Animasi putar infinite */
    animation: rotation 15s linear infinite;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Keyframes Animasi Putar */
@keyframes rotation {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* --- GUNUNGAN FRAME --- */
.fix-frame-area {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    overflow: hidden;
    padding: 5px 0;
}
.gunungan-svg {
    width: 100%;
    height: 100%;
    /* Max height disesuaikan agar tidak mentok */
    max-height: 580px;
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.3));
}

/* --- FOOTER & BUTTON --- */
.fix-footer {
    text-align: center;
    padding-bottom: 0; /* Mepet bawah container */
}

.gold-title-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}
.gold-line {
    height: 1px;
    width: 30px;
    background: #d4af37;
    opacity: 0.5;
}
.gold-title {
    font-family: "Lora", serif;
    color: #d4af37;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.fix-guest-box {
    margin-bottom: 15px;
}
.lbl {
    font-family: "Lora", serif;
    color: #ccc;
    font-size: 9px;
    letter-spacing: 1px;
}
.guest-name {
    font-family: "Playfair Display", serif;
    font-size: 18px;
    color: #fff;
    margin: 4px 0;
    font-weight: 600;
}
.lbl-sm {
    font-style: italic;
    font-size: 9px;
    opacity: 0.6;
    color: #aaa;
}

/* Tombol */
.btn-block-gold {
    width: 100%;
    background: linear-gradient(90deg, #bf953f, #fcf6ba, #b38728);
    border: none;
    border-radius: 50px;
    padding: 14px 0;
    color: #0f1a2c;
    font-family: "Lora", serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(191, 149, 63, 0.4);
    transition: transform 0.2s;
}
/* =========================================
   FIXED: LUXURY GOLD BUTTON
========================================= */
.btn-block-gold {
    width: 100%;
    /* Gradient dibuat lebih lebar (200%) agar bisa digerakkan */
    background: linear-gradient(
        to right,
        #bf953f 0%,
        #fcf6ba 51%,
        #b38728 100%
    );
    background-size: 200% auto;
    border: 1px solid #d4af37;
    border-radius: 50px;
    padding: 15px 0;
    color: #0f1a2c;
    font-family: "Lora", serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 2px;
    cursor: pointer;
    text-transform: uppercase;

    /* Shadow awal */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);

    /* Transisi untuk semua properti */
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* =========================================
   FIXED: LUXURY GOLD BUTTON
========================================= */
.btn-block-gold {
    width: 100%;
    /* Gradient dibuat lebih lebar (200%) agar bisa digerakkan */
    background: linear-gradient(
        to right,
        #bf953f 0%,
        #fcf6ba 51%,
        #b38728 100%
    );
    background-size: 200% auto;
    border: 1px solid #d4af37;
    border-radius: 50px;
    padding: 15px 0;
    color: #0f1a2c;
    font-family: "Lora", serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 2px;
    cursor: pointer;
    text-transform: uppercase;

    /* Shadow awal */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);

    /* Transisi untuk semua properti */
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Efek Hover: Gradient bergerak & Tombol naik sedikit */
.btn-block-gold:hover {
    background-position: right center; /* Ubah posisi gradient */
    color: #000;
    transform: translateY(-3px); /* Naik sedikit */
    box-shadow: 0 15px 25px rgba(212, 175, 55, 0.4); /* Shadow emas menyala */
    border-color: #fff;
}

/* Efek Klik (Active): Tombol turun */
.btn-block-gold:active {
    transform: scale(0.96) translateY(0);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Ikon panah di dalam tombol */
.btn-block-gold i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.btn-block-gold:hover i {
    transform: translateX(5px); /* Panah maju saat hover */
}

/* =========================================
         3. MAIN & CLOSING SECTIONS (NAVY EDITORIAL)
      ========================================= */
.editorial-container {
    width: 100%;
    height: 100vh;
    position: relative;
    background-color: var(--bg-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: 10;
    padding: 30px 0px 20px;
}
.editorial-bg {
    position: absolute;
    /* Kita buat lebih panjang (300%) untuk jaga-jaga layar lebar */
    width: 300%;
    height: 100%;

    background-image: url("mega-mendung-cover.png");
    background-repeat: repeat-x;

    /* Cover menutup semua celah, tapi menjaga proporsi gambar */
    background-size: auto 100%;
    background-position: left top;

    animation: driftingClouds 60s linear infinite; /* Waktu diperlambat karena track lebih panjang */
    z-index: 1;
}

.noise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.07'/%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
    z-index: 2;
    mix-blend-mode: overlay;
}
.editorial-content {
    position: relative;
    z-index: 5;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    padding: 40px 0;
}
.editorial-top {
    text-align: center;
    width: 100%;
    border-bottom: 1px solid rgba(212, 184, 134, 0.3); /* Gold border */
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.editorial-sup {
    font-family: "Lora", serif;
    font-size: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent-color);
    display: block;
    margin-bottom: 5px;
}
.editorial-date {
    font-family: "Playfair Display", serif;
    font-size: 16px;
    color: #fff;
    font-style: italic;
}
.editorial-frame-wrapper {
    position: relative;
    width: 240px;
    height: 360px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    /* margin-top: -200px; */
}
.editorial-img-arch {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 120px 120px 0 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    /* Filter foto agar tidak terlalu warm/kuning */
    filter: contrast(105%) saturate(0.9);
}
.editorial-border-arch {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--accent-color);
    border-radius: 120px 120px 0 0;
    z-index: 1;
    opacity: 0.6;
}
.editorial-bottom {
    text-align: center;
    /* margin-top: -40px; */
    position: relative;
    z-index: 10;
    width: 100%;
}
.editorial-names {
    font-family: "Playfair Display", serif;
    font-size: 58px;
    line-height: 0.85;
    color: #fff;
    font-style: italic;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}
.editorial-names span {
    display: block;
    font-size: 20px;
    font-family: "Lora", serif;
    font-style: normal;
    color: var(--accent-color);
    margin: 25px 0 10px 0;
    letter-spacing: 3px;
    font-weight: 400;
    text-transform: uppercase;
}
.editorial-location {
    margin-top: 15px;
    font-family: "Lora", serif;
    font-size: 11px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
    padding-top: 10px;
}
.editorial-closing-content {
    position: relative;
    z-index: 5;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 40px 0;
}
.editorial-closing-bg {
    position: absolute;
    /* Kita buat lebih panjang (300%) untuk jaga-jaga layar lebar */
    width: 300%;
    height: 100%;

    background-image: url("mega-mendung-cover.png");
    background-repeat: repeat-x;

    /* Cover menutup semua celah, tapi menjaga proporsi gambar */
    background-size: auto 100%;
    background-position: left top;
    animation: driftingClouds 60s linear infinite; /* Waktu diperlambat karena track lebih panjang */
    z-index: 1;
}
.closing-text-wrapper {
    text-align: center;
    margin-top: 20px;
}
.closing-headline {
    font-family: "Playfair Display", serif;
    font-size: 42px;
    font-style: italic;
    color: var(--accent-color);
    margin-bottom: 10px;
}
.closing-sub {
    font-family: "Lora", serif;
    font-size: 13px;
    color: #e0e6ed;
    line-height: 1.6;
    padding: 0 30px;
    margin-bottom: 30px;
}
/* --- PERBAIKAN DI SINI --- */
.img-top {
    position: absolute;
    top: 0; /* Position at the very top */
    width: 100%;
    height: 150px; /* Adjust height as needed */
    z-index: 6; /* Higher than editorial-content (5) so it overlays the top part of the content */
    background-size: cover; /* Ensures the image covers the area */
    background-position: center; /* Centers the image */
    pointer-events: none; /* Allows clicks to pass through if needed */
    background-repeat: no-repeat;
    background: url("mega-mendung.png");
}

/* --- PERBAIKAN DI SINI --- */
.img-bottom {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 350px; /* Fixed height as you had */
    margin-bottom: -10px;
    /* margin-top: auto; */
    /* OR: background-size: cover; (will fill and crop if necessary, maintaining aspect ratio) */
    /* OR: background-size: contain; (will show entire image but might leave space at top/bottom if aspect ratio doesn't match 100% width, 350px height) */
    background-position: center; /* Centers the image */
    background-repeat: no-repeat;
    background-image: url("wayang.png");
    z-index: 4;
}
/* =========================================
         4. OTHER SECTIONS (NAVY PALETTE)
      ========================================= */
.section-title-white {
    font-family: "Playfair Display", serif;
    font-style: italic;
    font-weight: 700;
    font-size: 28px;
    text-align: center;
    margin-bottom: 5px;
    color: #fff;
}
.section-subtitle-white {
    font-family: "Lora", serif;
    font-size: 11px;
    text-align: center;
    margin-bottom: 30px;
    opacity: 0.8;
    font-weight: 400;
    color: #dbe4ee;
}

/* Gallery CSS */
.section-gallery {
    padding: 40px 15px 60px 15px;
}
.gallery-header-title {
    font-family: "Playfair Display", serif;
    font-style: italic;
    font-weight: 700;
    font-size: 42px;
    color: var(--text-dark-navy);
    text-align: center;
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
}

#gallery-grid {
    display: flex;
    flex-direction: column;
    width: 100%; /* Pastikan container full */
}

#gallery-grid .row {
    display: flex;
    margin: 0;
    padding: 0;
    width: 100%; /* Pastikan row full */
}

#gallery-grid .row a {
    display: block;
    height: 300px; /* Tinggi seragam */
    overflow: hidden;
    cursor: pointer;
    position: relative;
    padding: 0;
    border: none; /* Hilangkan border jika ingin benar-benar menempel */
    border-radius: 0; /* Hilangkan radius agar kotak sempurna dan menempel */
}

#gallery-grid .row a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
}

#gallery-grid .row a:hover img {
    transform: scale(1.05);
    z-index: 2; /* Agar saat zoom posisinya di atas */
}

/* --- PERBAIKAN LOGIKA KOLOM --- */

/* Hapus calc, gunakan 50% pas agar menempel */
.row.two a {
    width: 50%;
}

/* Untuk foto tunggal (sisa ganjil), pastikan lebar 100% */
.row.full a {
    width: 100%;
}

/* Cards (Dark Navy) */
.dark-rounded-card {
    background-color: var(--card-bg-dark);
    background-size: cover;
    color: #fff;
    border-radius: 40px;
    padding: 40px 25px;
    margin: 20px 20px 40px 20px;
    box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.2),
        inset 10px 10px 10px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;

    /* PENTING: Agar background 300% terpotong rapi mengikuti radius */
    overflow: hidden;
}
.dark-rounded-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    /* Lebar 300% untuk animasi sliding */
    width: 300%;
    height: 100%;

    background-image: url("mega-mendung-cover.png");
    background-repeat: repeat-x;
    background-size: auto 100%;
    background-position: left top;

    animation: driftingClouds 60s linear infinite;

    /* PERBAIKAN UTAMA DI SINI: */
    z-index: 0; /* Taruh di layer paling bawah */
    pointer-events: none; /* Pastikan klik tembus ke bawah */
    opacity: 0.5; /* Opsional: Supaya teks lebih terbaca */
}
/* Seleksi semua elemen LANGSUNG di dalam card, KECUALI background-nya */
.dark-rounded-card > *:not(.dark-rounded-card-bg) {
    position: relative;
    z-index: 2; /* Layer konten harus lebih tinggi dari bg (0) */
}

/* Ar-Rum Section */
.section-ar-rum {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 20px;
}
.invitation-card {
    position: relative;
    z-index: 1;
    background-color: #fff;
    width: 100%;
    border: 3px solid var(--text-dark-navy); /* Border Navy */
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.text-section {
    padding: 35px 25px;
    text-align: center;
}
.verse-text {
    font-family: "Lora", serif;
    font-style: italic;
    font-size: 13.5px;
    line-height: 1.7;
    color: #2c3e50; /* Dark Blue-ish Grey */
    margin-bottom: 15px;
}
.surah-name {
    font-family: "Playfair Display", serif;
    font-style: italic;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark-navy);
}
.image-section {
    width: 100%;
    height: 480px;
    position: relative;
}
.image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.image-section::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to top, rgba(11, 22, 35, 0.15), transparent);
}

/* Countdown */
.section-countdown {
    background-color: #1b2a41; /* Navy Medium */
    background-size: cover;
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    position: relative;
}
.section-countdown-bg {
    position: absolute;
    /* Kita buat lebih panjang (300%) untuk jaga-jaga layar lebar */
    width: 300%;
    height: 100%;

    background-image: url("mega-mendung-cover.png");
    background-repeat: repeat-x;

    /* Cover menutup semua celah, tapi menjaga proporsi gambar */
    background-size: auto 100%;
    background-position: left top;
    animation: driftingClouds 60s linear infinite; /* Waktu diperlambat karena track lebih panjang */
    z-index: 1;
}
.countdown-card {
    background-color: white;
    border: 2px solid var(--gold-bronze);
    border-radius: 50px;
    padding: 40px 20px;
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 2;
}
.countdown-title {
    font-family: "Playfair Display", serif;
    font-style: italic;
    font-weight: 700;
    font-size: 32px;
    color: var(--text-dark-navy);
    margin-bottom: 20px;
}
.date-display {
    font-family: "Lora", serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark-navy);
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.divider-line {
    font-weight: 300;
    font-size: 24px;
    color: var(--gold-bronze);
    position: relative;
    top: -2px;
}
.subtitle {
    font-family: "Lora", serif;
    font-style: italic;
    font-size: 16px;
    color: #5d6d7e;
    margin-bottom: 30px;
    line-height: 1.4;
}
.timer-container {
    display: flex;
    justify-content: center;
    gap: 10px;
}
.timer-box {
    background-color: var(--text-dark-navy);
    color: white;
    width: 60px;
    height: 65px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.timer-number {
    font-family: "Playfair Display", serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 1;
    margin-bottom: 4px;
}
.timer-label {
    font-family: "Lora", serif;
    font-size: 10px;
    text-transform: capitalize;
    color: var(--accent-color);
}

/* Couple */
.section-couple {
    position: relative;
    padding: 60px 20px;
    text-align: center;
    overflow: hidden;
}
.couple-content {
    position: relative;
    z-index: 1;
}
.intro-text {
    font-family: "Lora", serif;
    font-size: 13px;
    font-weight: 600;
    color: #3e3e3e;
    line-height: 1.6;
    margin-bottom: 40px;
    padding: 0 10px;
}
.profile-img-container {
    width: 130px;
    height: 170px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px auto;
    border: 4px solid var(--text-dark-navy);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.nick-name {
    font-family: "Playfair Display", serif;
    font-weight: 700;
    font-style: italic;
    font-size: 32px;
    color: var(--text-dark-navy);
    margin-bottom: 5px;
}
.couple-name {
    font-family: "Playfair Display", serif;
    font-weight: 400;
    font-size: 16px;
    color: var(--text-dark-navy);
    margin: 0 auto 10px auto;
    padding: 0 10px;
    line-height: 1.5;
    letter-spacing: 0.5px;
}
.parents-info {
    font-family: "Lora", serif;
    font-size: 12px;
    color: #555;
    line-height: 1.5;
    font-weight: 500;
}
.ampersand {
    font-family: "Playfair Display", serif;
    font-size: 50px;
    color: var(--gold-bronze);
    margin: 30px 0;
    font-style: italic;
}

/* Event */
.section-event {
    padding: 40px 20px 60px 20px;
    position: relative;
}
.event-card-container {
    background-color: var(--card-bg-dark); /* Navy Dark Card */
    color: #fff;
    border-top-left-radius: 120px;
    border-top-right-radius: 120px;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    padding: 80px 20px 60px 20px;
    text-align: center;
    box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.2),
        inset 10px 10px 10px rgba(0, 0, 0, 0.5);
    position: relative;
    /* PENTING: Agar background 300% terpotong rapi */
    overflow: hidden;
}
.event-card-container-bg {
    position: absolute;
    top: 0;
    left: 0; /* Tambahkan ini agar posisi fix */
    width: 300%;
    height: 100%;

    background-image: url("mega-mendung-cover.png");
    background-repeat: repeat-x;
    background-size: auto 100%;
    background-position: left top;

    animation: driftingClouds 60s linear infinite;

    /* PERBAIKAN UTAMA: */
    z-index: 0; /* Layer paling bawah */
    pointer-events: none; /* Klik tembus ke bawah */
    opacity: 0.5; /* Opsional: Agar teks lebih kontras */
}
.event-title {
    font-family: "Playfair Display", serif;
    font-style: italic;
    font-weight: 700;
    font-size: 28px;
    margin-bottom: 25px;
    color: var(--accent-color); /* Gold text title */
}
.event-date-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-family: "Playfair Display", serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
}
.date-divider {
    height: 20px;
    width: 2px;
    background-color: var(--accent-color);
}
.event-time {
    font-family: "Lora", serif;
    font-size: 13px;
    margin-bottom: 20px;
    opacity: 0.9;
}
.event-location-label {
    font-family: "Playfair Display", serif;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 5px;
    color: var(--accent-color);
}
.event-address {
    font-family: "Lora", serif;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 25px;
    padding: 0 10px;
    opacity: 0.9;
}
.btn-map {
    display: inline-block;
    background-color: #fff;
    color: var(--text-dark-navy);
    font-family: "Lora", serif;
    font-weight: 700;
    padding: 10px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}
.btn-map:hover {
    background-color: #e0e6ed;
    color: #000;
}
.event-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px 0;
    color: var(--accent-color);
    opacity: 0.8;
}
.event-divider::before,
.event-divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid var(--accent-color);
    margin: 0 10px;
}
.divider-icon {
    font-size: 18px;
}

/* Story (Navy Background) */
.section-story {
    padding: 40px 20px 80px 20px;
    position: relative;
    overflow: hidden;
    background: var(--bg-light);
    background-size: cover;
}
.section-story-bg {
    position: absolute;
    /* Kita buat lebih panjang (300%) untuk jaga-jaga layar lebar */
    width: 300%;
    height: 100%;

    background-image: url("mega-mendung-cover.png");
    background-repeat: repeat-x;

    /* Cover menutup semua celah, tapi menjaga proporsi gambar */
    background-size: auto 100%;
    background-position: left top;

    animation: driftingClouds 60s linear infinite; /* Waktu diperlambat karena track lebih panjang */
    z-index: 1;
}
.story-header-title {
    font-family: "Playfair Display", serif;
    font-style: italic;
    font-weight: 700;
    font-size: 42px;
    color: #fff;
    text-align: center;
    position: relative;
    z-index: 2;
}
.story-timeline {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}
.story-card {
    background-color: var(--text-color);
    color: var(--bg-light);
    padding: 25px;
    border-radius: 20px;
    box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.2),
        inset 10px -10px 10px rgba(0, 0, 0, 0.5);
    text-align: left;
    position: relative;
}
.story-date {
    font-family: "Lora", serif;
    font-size: 13px;
    margin-bottom: 5px;
    color: var(--gold-bronze);
    font-weight: 600;
}
.story-title {
    font-family: "Playfair Display", serif;
    font-style: italic;
    font-weight: 600;
    font-size: 24px;
    margin-bottom: 10px;
    line-height: 1.2;
}
.story-desc {
    font-family: "Lora", serif;
    font-size: 12px;
    line-height: 1.5;
    opacity: 0.9;
}
.timeline-connector {
    width: 2px;
    height: 40px;
    border-left: 2px dashed var(--text-color);
    margin: 0 auto;
}

/* RSVP & Gift (Light Background) */
.section-rsvp-wish-gift {
    padding-bottom: 50px;
    position: relative;
    padding-top: 40px;
}
.custom-label {
    font-family: "Playfair Display", serif;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 5px;
    margin-top: 15px;
    display: block;
}
.custom-input {
    width: 100%;
    background-color: #f8fafc;
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 10px 15px;
    font-family: "Lora", serif;
    font-size: 14px;
    color: #1b2a41;
    outline: none;
}
.custom-input:focus {
    border-color: var(--gold-bronze);
    box-shadow: 0 0 5px rgba(191, 160, 95, 0.3);
}
.btn-gold {
    background-color: var(--gold-bronze);
    color: #fff;
    border: none;
    width: 120px;
    padding: 10px;
    border-radius: 6px;
    font-family: "Lora", serif;
    font-weight: 700;
    margin-top: 25px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background 0.3s;
}
.btn-gold:hover {
    background-color: #a38850;
}
.wish-item {
    background-color: #f8fafc;
    color: var(--text-dark-navy);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: left;
    border-left: 3px solid var(--gold-bronze);
}
.wish-name {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 5px;
    font-family: "Lora", serif;
}
.wish-message {
    font-size: 13px;
    line-height: 1.4;
    font-family: "Lora", serif;
}
.wish-list-container {
    margin-top: 30px;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 5px;
}
.wish-list-container::-webkit-scrollbar {
    width: 4px;
}
.wish-list-container::-webkit-scrollbar-thumb {
    background-color: var(--gold-bronze);
    border-radius: 4px;
}
.bank-card {
    background: linear-gradient(135deg, #f0f2f5 0%, #d9dce0 100%);
    color: #333;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    margin-bottom: 20px;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    font-family: "Lora", sans-serif;
    overflow: hidden;
}
.bank-card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.8) 0%,
        rgba(255, 255, 255, 0) 60%
    );
    opacity: 0.5;
    pointer-events: none;
}
.chip-img {
    width: 40px;
    height: 30px;
    background: linear-gradient(135deg, #ffcc00, #ffdb4d);
    border-radius: 4px;
    margin-bottom: 15px;
    position: relative;
    border: 1px solid #cfaa00;
}
.chip-img::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #cfaa00;
}
.chip-img::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #cfaa00;
}
.bank-logo-text {
    position: absolute;
    top: 20px;
    right: 20px;
    font-weight: 800;
    font-size: 18px;
    color: var(--text-dark-navy);
    font-style: italic;
}
.account-number {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 5px;
    color: var(--text-dark-navy);
}
.account-name {
    font-size: 12px;
    text-transform: uppercase;
    opacity: 0.8;
    color: #333;
}
.btn-copy {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: var(--text-dark-navy);
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}
.btn-copy:active {
    transform: scale(0.95);
}

/* Footer */
.footer-copyright {
    background-color: #123563; /* Blackest Navy */
    padding: 20px 10px;
    padding-bottom: 90px;
    text-align: center;
    color: #fff;
    font-family: sans-serif;
    position: relative;
    z-index: 3;
}
.footer-logo {
    font-family: "Playfair Display", serif;
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--accent-color);
}
.footer-logo span {
    color: #fff;
}
.footer-text {
    font-size: 10px;
    color: #7d8da1;
    font-family: "Lora", serif;
}

/* Music & Nav */
.floating-nav {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 380px;
    background: rgba(19, 32, 48, 0.95); /* Navy Transparan */
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 10px 10px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}
.nav-item {
    color: #fff;
    font-size: 16px;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}
.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
}
.nav-item.active {
    background-color: var(--gold-bronze);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(191, 160, 95, 0.4);
}
.music-box {
    position: fixed;
    bottom: 100px;
    left: 20px;
    width: 45px;
    height: 45px;
    background: var(--bg-dark);
    border: 1px solid var(--gold-bronze);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    z-index: 1001;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}
@media (min-width: 425px) {
    .music-box {
        left: calc(50% - 190px);
    }
}
.music-box i {
    font-size: 18px;
    transition: all 0.3s ease;
}
.music-box.playing {
    animation: musicSpin 3s linear infinite;
    border-color: #fff;
    background: var(--gold-bronze);
}
@keyframes musicSpin {
    100% {
        transform: rotate(360deg);
    }
}
