/* --- 0. RESET & KONTROL SCROLL (VERSI FIX) --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    width: 100%;
    /* overflow-x di html kadang bikin masalah di iOS, biarkan default */
    scroll-behavior: smooth;
}

body {
    background-color: #0a0a0a;
    font-size: 1.1rem;
    font-family: sans-serif;
    width: 100%;
    min-height: 100dvh;
    position: relative;
    /* Kunci overflow-x di body saja */
    overflow-x: hidden; 
    /* Mencegah tarikan refresh di Chrome HP */
    overscroll-behavior-y: none; 
}

/* LOCK SCROLL: Dipakai JS saat cover masih nutup */
body.no-scroll {
    overflow: hidden !important;
    height: 100dvh !important;
    /* Kita hapus position: fixed agar tidak mental ke atas saat dibuka */
}

/* KONTEN UTAMA: Pastikan siap menerima scroll setelah terbuka */
#main-content {
    display: none; 
    opacity: 0;
    width: 100%;
    /* Jangan pakai visibility: hidden di sini agar tidak konflik dengan AOS */
}

#main-content.show-content {
    display: block !important;
    opacity: 1 !important;
    overflow: visible !important;
}

/* FIX AOS & KLIK: Mencegah elemen transparan menutupi tombol */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto !important;
}

/* Agar Cover tidak menghalangi jempol saat animasi slide up */
.container-cover.slide-up {
    pointer-events: none;
    z-index: -1;
}

/* --- ANIMASI EFEK CAHAYA (Lens Flare) --- */
.light-effect {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    top: -100px;
    left: -100px;
    filter: blur(40px);
    pointer-events: none;
    animation: shine 10s infinite alternate ease-in-out;
    z-index: 11;
}

@keyframes shine {
    0% { transform: translate(0, 0) scale(1); opacity: 0.2; }
    50% { transform: translate(200px, 150px) scale(1.3); opacity: 0.5; }
    100% { transform: translate(100px, 300px) scale(1.1); opacity: 0.3; }
}

/* =========================================
   --- 1. TAMPILAN DEFAULT (MOBILE/HP) ---
   ========================================= */

/* Sembunyikan panel kiri di HP */
.left-panel {
    display: none;
}



/* Pastikan main-wrapper tidak nendang ke samping di HP */
.main-wrapper {
    width: 100%;
    max-width: 500px; /* Jaga agar konten tetap ramping di HP */
    margin: 0 auto;
}

/* ============================================================
   2. TAMPILAN LAPTOP/DESKTOP (>= 992px)
   ============================================================ */
@media (min-width: 992px) {
    /* Layout Split Screen */
    .split-container {
        display: flex;
        height: 100vh;
        width: 100%;
    }

    /* --- PANEL KIRI (Gambar Statis) --- */
    .left-panel {
        display: flex; 
        flex: 1.9;
        background: url('BGCOVER2.jpeg');
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center 20%;
        position: relative;
        align-items: center;
        justify-content: center;
        color: white;
        text-align: center;
        height: 100vh;
        z-index: 2;
        overflow: hidden;
    }

    .left-panel::after {
        content: "";
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient(
            45deg, 
            rgba(255, 255, 255, 0),
            rgba(30, 10, 50, 0.3),
            rgba(10, 40, 60, 0.3),
            rgba(255, 255, 255, 0)
        );
        background-size: 200% 200%;
        animation: gradientTwinkle 3s ease infinite;
        z-index: 1;
    }

    .left-panel-content {
        position: absolute;
        bottom: 80px;
        left: 40px;
        z-index: 10;
        text-align: left;
    }


/* Pastikan tulisan ALEX & PUTRItidak punya margin berlebih */
.left-panel-content h1 {
   
    line-height: 1.2;
    font-family: "Playfair Display", serif;
    font-size: 2rem;
    color:whitesmoke

}

.left-panel-content h4 {
    font-family: sans-serif;
    color: rgb(240, 241, 242);
    font-size: 16px;
}


.left-panel-content p {
    font-family: 'Roboto Slab', serif;
    font-size: 14px;
    color: white
}



    /* PANEL KANAN: Area Scroll utama di Laptop */
    .right-panel {
        flex: 1;
        height: 100vh;
        /* Biarkan auto/scroll dari awal agar AOS bisa kalkulasi posisi, 
           tapi kita kunci pakai 'body.no-scroll' di JS supaya user gak curi start */
        overflow-y: auto; 
        overflow-x: hidden;
        position: relative;
        background: transparent;
        scrollbar-width: none; /* Sembunyikan scrollbar Firefox */
        -ms-overflow-style: none; /* Sembunyikan scrollbar IE/Edge */
    }

    .right-panel::-webkit-scrollbar {
        display: none; /* Sembunyikan scrollbar Chrome/Safari */
    }

    /* PEMBUNGKUS KONTEN */
    .main-wrapper {
        /* KUNCI 2: Hapus max-width 500px agar bisa selebar panel kanan */
        width: 100% !important;
        max-width: 100% !important; 
        
        /* KUNCI 3: Nol-kan margin
        margin: 0 !important;   
        
        /* BERI PADDING DI SINI: Agar konten tidak menempel ke tepi layar laptop */
        padding-left: 20px !important; 
        padding-right: 20px !important;

        box-sizing: border-box;
        /* KUNCI AOS: min-height harus lebih besar dari layar (100vh) 
           agar ada jarak scroll untuk memicu animasi pertama */
        min-height: 102vh; 
        background: transparent !important;
        position: relative;
    }
    /* Memaksa transisi AOS di laptop */
    [data-aos] {
        transition-property: transform, opacity !important;
    }
/* Agar semua section di dalamnya ikut melebar penuh */
    .container-isi,
    .container-love, 
    .container-galeri, 
    .container-komen,
    .newspaper-container,
    .event-card,
    .kartu-ucapan,
    
/*ini untuk NGATUR tulisan awal sebelum BUKA UNDANGAN*/

    /* --- KHUSUS PENUTUP: MELOMPAT KELUAR PADDING --- */
    #Penutupcover {
        position: relative;
        /* KUNCI: Lebar dihitung 100% ditambah kompensasi padding kiri+kanan (50+50) */
        width: calc(100% + 100px) !important; 
        
        /* KUNCI: Ditarik ke kiri dan kanan sejauh padding parent-nya */
        margin-left: -50px !important; 
        margin-right: -50px !important; 
        
        min-height: 100vh;
        overflow: hidden;
        max-width: none !important; /* Pastikan tidak terbentur max-width apa pun */
    }
    .container-penutup {
        max-width: 100% !important; 
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
    }

    /* Khusus untuk teks di dalam section agar tidak mepet layar, 
       beri padding pada isi kontennya, BUKAN pada containernya */
    .container-isi > *:not(img), 
    .overlay-content {
        padding-left: 40px;
        padding-right: 40px;
    }


} /* <--- TUTUP MEDIA QUERY LAPTOP DI SINI */


/* ============================================================
   3. LOGIKA GLOBAL AOS & ANIMASI (DI LUAR MEDIA QUERY)
   ============================================================ */

/* Cegah klik elemen sebelum muncul */
[data-aos] {
    pointer-events: none;
}

/* Aktifkan klik saat animasi selesai */
[data-aos].aos-animate {
    pointer-events: auto !important;
    /* Tambahan agar tidak flicker saat scroll cepat */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

@keyframes gradientTwinkle {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* kenapa AWAL DAN CONTAINER ISI TAK BUAT TRANSPARANT supaya carouselnya kelihatan */
#awal {
    position: relative;
    z-index: 1; /* Pastikan section awal berada di atas background */
    background: transparent !important; /* Agar background carousel kelihatan */
}



/* Pastikan section tidak tumpang tindih */
section {
    position: relative;
    width: 100%;
    min-height: 100vh; /* Minimal satu layar */
    height: auto;      /* Biarkan memanjang jika konten banyak */
    display: flex;
    flex-direction: column;
    justify-content: center;

    overflow: hidden; /* TAMBAHKAN INI: Agar animasi/transform di dalam section tidak merusak lebar layar */
}

/* --- 1. TAMPILAN UNTUK HP (Penuh 1 Layar) --- */
@media (max-width: 991px) {
    .container-cover {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100dvh;
        background-color: #000;
        z-index: 9999;
        display: flex;
        flex-direction: column;
        justify-content: flex-end; /* Konten di bawah */
        align-items: center;       /* Konten di tengah horizontal */
        overflow: hidden;          /* KUNCI: Mencegah elemen dalam cover bikin scroll */
        transition: transform 1.2s cubic-bezier(0.65, 0, 0.35, 1);
    }

    /* Saat Undangan Dibuka */
    .container-cover.slide-up {
        transform: translateY(-100%);
        pointer-events: none;
        visibility: hidden;
        z-index: -1;
        /* Delay sedikit agar animasi naik selesai baru visibility hilang */
        transition: transform 1.2s cubic-bezier(0.65, 0, 0.35, 1), 
                    visibility 0s 1.2s, 
                    z-index 0s 1.2s;
    }

    /* Carousel Background yang nempel di HP */
    .CAROUSEL-FIXED {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100dvh;
        z-index: -1;
        overflow: hidden;
    }

    .CAROUSEL-FIXED .carousel,
    .CAROUSEL-FIXED .carousel-inner,
    .CAROUSEL-FIXED .carousel-item {
        height: 100dvh;
        width: 100%;
    }

    .CAROUSEL-FIXED img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Agar foto tidak gepeng di HP */
    }
}

/* --- 2. TAMPILAN UNTUK LAPTOP (Mepet Pojok Kanan) --- */
@media (min-width: 992px) {
    .container-cover {
        position: absolute; /* Nempel ke .right-panel */
        top: 0;
        right: 0;          /* KUNCI: Paksa nempel kanan */
        left: auto !important;
        width: 100%;       /* Memenuhi area kanan layar */
        height: 100vh;
        background-color: black;
        z-index: 9999;
        display: flex;
        flex-direction: column;
        justify-content: flex-end; /* Konten di bawah */
        align-items: flex-end;     /* Konten di KANAN */
        padding: 60px;             /* Jarak dari tepi layar */
        transform: none !important;
        transition: transform 1.2s cubic-bezier(0.65, 0, 0.35, 1);
    }

    /* Animasi buka undangan di laptop (naik ke atas) */
    .container-cover.slide-up {
        transform: translateY(-100%) !important;
    }


 /*ini tampilan caroousel di laptop*/   
   .CAROUSEL-FIXED {
        position: fixed;
        top: 0;
        /* Jika panel kiri kamu lebarnya 50%, maka left harus 50% */
        /* Jika panel kiri kamu lebarnya 400px, maka left harus 400px */
        left: 60%; 
        
        /* Lebar carousel harus sisa dari panel kiri */
        width: 40%; 
        
        height: 100vh;
        z-index: -1;
        overflow: hidden;
    }

    .CAROUSEL-FIXED img {
        width: 100%;
        height: 100%;
        /* object-fit: cover akan memastikan gambar tetap proporsional 
           meski wadahnya (kanan saja) lebih sempit dari layar penuh */
        object-fit: cover; 
    }

    /* ini CAROUSEL BERFUNGSI SEBAGAI COVER */
/* Pastikan section penutup bisa menampung elemen yang meluap */

/* Kita buat section penutupnya selebar panel kanan (50% layar) */
   /* --- PERBAIKAN CAROUSEL PENUTUP --- */
/* --- PERBAIKAN CAROUSEL PENUTUP (VERSI LAPTOP) --- */
@media (min-width: 992px) {
    #Penutupcover {
        position: relative;
        /* Karena berada di panel kanan yang lebarnya 40%, width 100% akan otomatis 40% layar */
        width: 100%; 
        min-height: 100vh;
        overflow: hidden;
        background-color: #000;
    }

    .CAROUSEL-penutup {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%; 
        height: 100%;
        z-index: 1;
    }

    .CAROUSEL-penutup .carousel,
    .CAROUSEL-penutup .carousel-inner,
    .CAROUSEL-penutup .carousel-item {
        height: 100vh;
        width: 100%;
    }

    .CAROUSEL-penutup img {
        width: 100% !important;
        height: 100vh !important;
        /* KUNCI: Foto tetap proporsional meski area sempit di laptop */
        object-fit: cover; 
    }

    .overlay-content {
        position: relative;
        z-index: 2;
        width: 100%;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        /* Gradasi sedikit lebih gelap agar tulisan putih tajam di area sempit */
        background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.8)); 
        padding: 40px; 
        text-align: center;
    }

    .container-penutup {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
}

/* --- VERSI HP (DI LUAR MEDIA QUERY LAPTOP) --- */
@media (max-width: 991px) {
    #Penutupcover {
        width: 100%;
        min-height: 100vh;
    }
    /* Di HP biarkan default selebar layar */
}

} /*INI PENUTUP MEDIA QUARY NYA*/

/* --- CSS TAMBAHAN AGAR GAMBAR & ISI RAPI di Hp --- */
.CAROUSEL-FIXED .carousel,
.CAROUSEL-FIXED .carousel-inner,
.CAROUSEL-FIXED .carousel-item {
    height: 100vh;
}

.CAROUSEL-FIXED img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Reset tombol agar tidak ke tengah lagi */
.btnATAS {
    position: relative !important;
    left: 50% !important;
    
    margin-top: 20px;
    display: inline-flex;
}

/* 2. CONTAINER UNTUK ISI (Bisa memanjang/scroll) */
.container-isi {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    min-height: 100dvh; /* Minimal satu layar, tapi BISA LEBIH */
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    /* Jangan pakai overflow: hidden di sini */

    background: transparent !important;
}

.container-isi h3{
font-size: 20px;
}

.isi-awal {
    line-height: 1.2rem;
    color: #ffffff;
    
}




/* Foto jadi latar belakang penuh */
.photo-container {
    position: absolute; /* Kunci: Membuat foto di balik tulisan */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Angka kecil berarti di bawah */
    overflow: hidden; /* Tambahkan ini agar aman */
}

/* Tambahkan pseudo-element ini untuk membuat gradasi gelap di bawah foto */
.photo-container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%; /* Menutupi separuh bawah foto dengan gradasi */
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    z-index: 2;
}

/* Foto utama dengan efek gradasi transparan di bawah */
.img-mempelai {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8); /* Sedikit lebih terang agar foto prewed tetap terlihat premium */
    
    object-position: 45% center;

    /* Membuat foto perlahan menghilang ke arah bawah (Transparent Fade) */
    -webkit-mask-image: linear-gradient(to bottom, 
        black 50%, 
        rgba(0, 0, 0, 0.4) 80%, 
        transparent 100%
    );
    mask-image: linear-gradient(to bottom, 
        black 50%, 
        rgba(0, 0, 0, 0.4) 80%, 
        transparent 100%
    );
}

/* Area Tulisan melayang di atas foto */
.content-area {
    position: relative;
    z-index: 10; /* Angka besar berarti di atas foto */
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Menaruh teks tepat di tengah layar secara vertikal */
    align-items: center;
    
    margin-bottom: -30%;
    color: white; /* WAJIB: Ganti jadi putih karena background foto biasanya gelap */
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7); /* Bayangan agar teks makin tegas */
}


/* Pastikan tulisan ALEX & PUTRItidak punya margin berlebih */
.content-area h1 {
   
    line-height: 1.2;
    font-family: "Playfair Display", serif;
    font-size: 2rem;
    color:whitesmoke

}

.content-area h4 {
    font-family: sans-serif;
    color: rgb(240, 241, 242);
    font-size: 16px;
}

.content-area a { font-family: 'Roboto Slab', serif;
    color: white;

}
.content-area p {
    font-family: 'Roboto Slab', serif;
    font-size: 14px;
    color: white
}


/* Tombol Open harus punya z-index lebih tinggi dari tulisan agar bisa diklik */
.btn-open-container {
    position: relative;
    z-index: 100; /* Lebih tinggi dari bunga agar bisa diklik */
    border: none;
    background: none;
}
.btnATAS {
    position: absolute;
    left: 50%;
    transform: translateX(-50%); /* INI YANG BIKIN PAS DI TENGAH */
    
    border-radius: 50px;
    font-size: 14px;
    padding: 6px 15px;
    background-color: rgba(206, 217, 239, 0.1);
    border: 1px solid white;
    color: white !important;
    text-decoration: none;
    white-space: nowrap;
    
    /* Animasi tetap jalan */
    animation: bungaBernapas 4s ease-in-out infinite;
    display: inline-flex;
    align-items: center;

    z-index: 99; /* Biar gak ketutup elemen lain */
}

.btnATAS:hover {
    transform: scale(1.05);
    background-color:black !important;
}

/* Animasi Bergerak Lembut (Bernapas) */
@keyframes bungaBernapas {
    0% {
        transform: translateX(-50%) scale(1);
        box-shadow: 0 0 0px rgba(255, 255, 255, 0);
    }
    50% {
        /* Tetap sertakan translateX(-50%) agar posisi tombol tidak lari ke kiri */
        transform: translateX(-50%) scale(1.08); 
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    }
    100% {
        transform: translateX(-50%) scale(1);
        box-shadow: 0 0 0px rgba(255, 255, 255, 0);
    }
}

/* --- PERBAIKAN AREA PHOTO WRAPPER --- */

/* Untuk number 1 nya aku using maincontainer makanya antar section gak kelihatan jarak */

        /* 2. Wrapper Foto dengan Position Relative untuk Z-Index */
        /* --- PERBAIKAN AREA COVER --- */

.writeisi-awal {
    transform: translateY(35%);
}



/* FONT KHUSUS TEMA BW */
.title-wedding {
    font-family: 'Cinzel', serif; /* Font klasik & kuat */
    font-size: 2rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 5px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.writeisi-awal h4 {
    font-family: sans-serif;
    color: rgb(240, 241, 242);
    font-size: 16px;
}

.writeisi-awal p {
    font-family: 'Roboto Slab', serif;
    font-size: 14px;
    color: white
}

/* TOMBOL SAVE THE DATE */
.btn-save-date {
    background-color: transparent;
    border: 1px solid #ffffff;
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 50px;
    transition: 0.3s;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-save-date:hover {
    background-color: #ffffff;
    color: #000000;
}

/* STYLE COUNTDOWN BARU */
#simplyCountdown {
    display: flex !important;
    justify-content: center !important;
    gap: 10px !important; /* Jarak antar kotak */
    flex-wrap: nowrap !important; /* Biar tidak tumpah ke bawah */
    width: 100% !important;
}

.simply-section {
    background: rgba(255, 255, 255, 0.1) !important; /* Transparan putih tipis */
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(5px); /* Efek kaca */
    border-radius: 15px !important;
    margin: 5px !important;
    width: 50px !important;
    height: 65px !important;
    padding: 10px !important;
}

.simply-amount {
    font-family: 'Cinzel', serif !important;
    font-size: 1.3rem !important;
    font-weight: bold !important;
    color: #ffffff !important;
    display: block !important;
}

.simply-word {
    font-family: 'Roboto Slab', serif !important;
    text-transform: uppercase !important;
    font-size: 0.6rem !important;
    letter-spacing: 1px !important;
    color: rgba(255,255,255,0.7) !important;
}

/* OVERLAY AGAR GAMBAR TIDAK TERLALU TERANG */
.CAROUSEL-FIXED::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
    z-index: 1;
}

.scroll-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 20px;
    z-index: 3;
    
    /* Kasih animasi seakan dia bergerak ke bawah */
animation: fadescroll 2s infinite;

}

@keyframes fadescroll {
    0% {transform: translateY(-10px); /* posisi awal agak diatas berkedut kebawah */
        opacity: 0;
    }
    50% { transform: translateY(0px);
        opacity: 1;
    }
    100% { transform: translateY(10px);}
}

.pembuka {
    margin: 0 auto;
    background-color: rgba(255, 253, 253, 0.7);
    width: 100%;
    max-width: 500px;
    
    display: flex;
    position: relative;
    /* Ubah ini: Agar konten berurutan dari atas, bukan dipaksa ke tengah layar */
    justify-content: flex-start; 
    align-items: center;
    flex-direction: column;
    /* Tambahkan padding agar tidak benar-benar menempel garis layar */
    padding-top: 40px;
    line-height: 1.8; 
}

.pembuka img {
    /* HAPUS transform: translateY(-100%) karena ini yang bikin gambarnya lari */
    width: 200px;
    height: auto;
    margin-bottom: 20px; /* Jarak ke huruf A */
}

/* Container Utama agar presisi */
.monogram-logo {
    display: block; /* Bukan flex, agar position absolute bekerja dengan baik */
    position: relative; /* Patokan bagi absolute di dalamnya */
    width: 200px; /* Atur lebar container agar di tengah */
    height: 150px; /* Atur tinggi container agar tulisan tidak tabrakan */
    margin: 20px auto; /* Ketengahkan container di layar */
    text-align: center; /* Jaga agar base text di tengah */
}

/* Pengaturan Huruf A (Mempelai Pria) */
.huruf-a {
    font-family: 'Cinzel', serif; /* Font klasik & elegan */
    font-size: 5rem;
    color: #000000;
    margin: 0;
    line-height: 1;
    text-transform: uppercase;
}


/* Pengaturan Huruf P (Mempelai Wanita) */
.huruf-p {
    font-family: 'Cinzel', serif;
    font-size: 5rem;
    color: #000000;
    margin: 0;
    line-height: 1;
    text-transform: uppercase;
    
    /* GANTI INI: Paksa baris baru dan P harus mepet di bawah garis miring */
    position: relative;
    top: -30px; /* Tarik P ke atas mendekati kaki slash */
    left: 30px; /* GESER P KE KANAN agar menjauh dari A */
}


/* Container untuk kutipan ayat */
.quote-container {
    max-width: 80%; /* Jangan biarkan teks melebar sampai pinggir */
    margin: 40px auto;
    text-align: center;
    color: #333333; /* Warna abu gelap lebih elegan dibanding hitam pekat */
}

/* Pengaturan Teks Utama */
.quote-text {
    font-family: 'Lora', serif; /* Font dengan lekukan halus */
    font-size: 16px;
    line-height: 1.5; /* Jarak antar baris lebih lebar agar tidak sesak */
    font-style: italic;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

/* Pengaturan Sumber Ayat (Q.S Ar-Rum) */
.quote-source {
    font-family: 'Cinzel', serif; /* Samakan dengan monogram agar konsisten */
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 3px; /* Jarak antar huruf diperlebar */
    text-transform: uppercase;
    border-top: 1px solid #ccc; /* Garis tipis pemisah */
    display: inline-block;
    padding-top: 10px;
    margin-top: 10px;
}


/* Penyesuaian Responsif HP agar tidak terlalu besar */
@media (max-width: 576px) {
    .monogram-logo {
        width: 150px;
        height: 120px;
    }
    .huruf-a, .huruf-p {
        font-size: 4rem;
    }

    .huruf-p {
        top: -25px;
        left: 20px;
    }
}


        
/* --- 1. DEFINISIKAN ANIMASI (KEYFRAMES) --- */
/* 1. Animasi Masuk dari Kiri */
/* ANIMASI GABUNGAN UNTUK SISI KIRI */
@keyframes masukKiri {
   0% {
        /* Mulai dari kiri luar */
        transform: translate(-50px, 20px) rotate(-15deg) scale(0.7);
        opacity: 0;
    }
    100% {
        /* Berhenti TEPAT di koordinat top:62% & left:60% */
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 1;
    }
}

/* ANIMASI MASUK KANAN */
/* ANIMASI GABUNGAN: MASUK KANAN + BUNGA HIDUP */
/* --- KEYFRAMES BARU AGAR TIDAK KEMBALI KE KANAN --- */

/* Animasi 1: Hanya untuk pergerakan masuk dari kanan ke tengah */
@keyframes masukKanan {
    0% { 
        transform: translate(100%, -50%) scale(0.8); 
        opacity: 0; 
    }
    100% { 
        /* Berhenti tepat di tengah (-50%) */
        transform: translate(-50%, -50%) scale(1); 
        opacity: 1; 
    }
}

/* Animasi 2: Hanya untuk efek bernapas (tetap diam di koordinat tengah) */
@keyframes bungaBernapas {
    0% { 
        transform: translate(-50%, -50%) scale(1); 
    }
    50% { 
        /* Membesar sedikit tanpa mengubah posisi horizontal/vertikal */
        transform: translate(-50%, -50%) scale(1.05); 
    }
    100% { 
        transform: translate(-50%, -50%) scale(1); 
    }
}
@keyframes bungaHidupPresisi {
    0%, 100% { 
        transform: translate(0, 0) scale(1); 
    }
    50% { 
        /* Bergerak naik sedikit (hidup) tapi tetap di jalurnya */
        transform: translate(0, -5px) scale(1.03) rotate(1deg); 
    }
}


/* 3. Animasi Ayunan Halus (Opsional) */
@keyframes ayunBunga {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(1deg); } /* Miring sangat tipis */
    100% { transform: rotate(0deg); }
}

:root {
    --pink: #f14e95;
    --cream: #F5E6AD;
    --bg-dark: #0a0a0a;
    --theme-color: #5d757d;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --bg-sidebar: #333333;
    --bgcard: #ffffff;

}

/* --- SECTION 3 Kedua mempelai --- */
.kedua-mempelai {
    margin: 0 auto;
    width: 100%;
    max-width: 500px;
    /* UBAH: dari 100dvh ke auto agar tidak memaksa tinggi satu layar penuh */
    min-height: auto; 
    display: flex;
    flex-direction: column;
    position: relative;
    align-items: center;
    overflow: hidden;
    
    /* PASTIKAN: padding atas benar-benar 0 */
    padding-top: 0 !important; 
    padding-bottom: 50px; /* Beri jarak bawah saja */
    justify-content: flex-start;
}

/* Container Monogram */
.monogram-mempelai {
    display: block;
    position: relative;
    width: 100%; /* Gunakan 100% agar text-align center bekerja */
    /* UBAH: perkecil height agar tidak memakan ruang kosong di atas */
    height: auto; 
    /* UBAH: margin atas 0 agar mepet ke section sebelumnya */
    margin: 0 auto 10px auto; 
    text-align: center;
}
/* Tulisan "Kedua" */
.m-kedua {
    font-family: 'Cormorant Garamond', cursive;
    font-size: 3rem;
    color: white;
    /* PASTIKAN: margin 0 */
    margin: 0 !important;
    /* UBAH: line-height kecilkan agar tidak ada ruang kosong di atas huruf */
    line-height: 1; 
}

/* Tulisan "Mempelai" */
.m-mempelai {
    font-family: "Beau Rivage", cursive;
    font-size: 2.5rem; /* Sedikit diperbesar agar proporsional */
    color: white;
    margin: 0;
    line-height: 1;
    position: relative;
    /* Tarik ke atas untuk menumpuk sedikit (estetika) */
    top: -15px; 
    /* Sesuaikan left jika ingin agak ke kanan */
    left: 40px; 
}

.kedua-mempelai h3 {
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    letter-spacing: 2px;
    font-weight: 600;
    /* Kurangi margin agar tidak terlalu jauh dari nama */
    margin-top: 10px;
    margin-bottom: 20px;
}

.kedua-mempelai p {
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    
    letter-spacing: 2px;       /* Memberi rongga agar elegan */
    font-weight: 200;          /* Membuatnya sedikit tebal */
    margin-bottom: 10px;
    color: white;
}

/* Quote Container (Elemen SEBELUM Mempelai) */
/* Pastikan elemen di atasnya tidak "mendorong" */
.quote-container {
    margin-bottom: 0 !important;
    padding-bottom: 10px !important;
}



/* Jika quote-container di atasnya punya margin bawah yang besar, kecilkan juga */
.quote-container {
    margin-bottom: 10px !important; /* Sesuaikan nilainya */
}


/* --- PERBAIKAN TOTAL UNTUK CAROUSEL FOTO --- */

/* 1. Container Utama Foto Alex (Tetap sama) */
.Photo-wrapper {
    position: relative;
    display: inline-block;
    width: 200px; /* Pertahankan lebar wadah di HP */
    margin: 0 auto;
    z-index: 1;
    transform: translateX(-5%);
}

/* 2. Memaksa Wadah Carousel Memiliki Tinggi Kaku */
/* KUNCI: Supaya wadah slide TIDAK BERUBAH UKURAN saat ganti gambar */
.Photo-wrapper .carousel,
.Photo-wrapper .carousel-inner,
.Photo-wrapper .carousel-item {
    height: 280px; /* Tentukan tinggi kaku wadah slide di sini */
    overflow: hidden;
}

/* 3. Memaksa Gambar di Dalam Wadah Mengikuti Ukuran Kaku Wadah */
.Photo-wrapper .carousel-item img {
    width: 100%;
    height: 100%; /* Wajib 100% mengikuti tinggi wadah .carousel-item */
    
    /* KUNCI UTAMA: Gambar akan dipotong (crop) agar memenuhi wadah */
    /* tanpa merubah proporsi asli gambar (tidak gepeng) */
    object-fit: cover; 
    
    /* Fokuskan pemotongan di bagian tengah gambar */
    object-position: center; 
    
    position: relative;
    z-index: 2; /* Foto tetap di atas kotak bingkai */
    display: block;
}

/* --- (Sisa CSS di bawah ini dipertahankan karena sudah benar) --- */

/* KOTAK BINGKAI ABU-ABU (Pseudo-element) */
.Photo-wrapper::after {
    content: "";
    position: absolute;
    top: 15px; 
    left: 15px; 
    width: 100%;
    height: 100%;
    border: 1px solid #dcdcdc;
    background-color: rgba(247, 246, 246, 0.3);

    /* KUNCI: Kasih z-index paling rendah atau negatif */
    z-index: -1 !important;
    pointer-events: none;
}

/* Teks Vertikal "Alex" */
.vertical-name {
    position: absolute;
    right: -20px; 
    top: 50%;
    transform: translateY(-20%) rotate(90deg); 
    font-family: 'sacramento', cursive;
    font-size: 1.8rem;
    color: white;
    white-space: nowrap;
    z-index: 10;
    letter-spacing: 4px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Container utama teks agar tidak monoton di tengah */
.mempelai-info-container {
    padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.2); /* Garis halus di samping kiri */
    margin-left: 5px;
}

/* Gaya Nama */
.mempelai-name {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 5px;
    letter-spacing: 1px;
    text-wrap: nowrap;
}

/* Garis dekoratif kecil */
.accent-line {
    width: 40px;
    height: 2px;
    background: #dcdcdc;
    margin-bottom: 15px;
}

/* Teks Keterangan */
.role-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #aaa;
    margin-bottom: 8px;
}

.parents-box {
    font-family: 'Bodoni Moda', serif;
    font-size: 1.1rem;
    line-height: 1.4;
    color: #fff;
}

.parents-box .and-symbol {
    display: block;
    font-family: 'Sacramento', cursive;
    font-size: 1.2rem;
    margin: 2px 0;
    color: #dcdcdc;
}

/* Tombol Follow Modern */
.btn-instagram-profile {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.3s;
}

.btn-instagram-profile:hover {
    background: #fff;
    color: #000;
}


/* sekarang SECTION NYA PUTRI */


.Photo-wrapper-putri {
    position: relative;
    display: inline-block;
    width: 200px; /* Pertahankan lebar wadah di HP */
    margin: 0 auto;
    z-index: 1;
    transform: translateX(-60%);
}
/* 2. Memaksa Wadah Carousel Memiliki Tinggi Kaku */
/* KUNCI: Supaya wadah slide TIDAK BERUBAH UKURAN saat ganti gambar */
.Photo-wrapper-putri .carousel,
.Photo-wrapper-putri .carousel-inner,
.Photo-wrapper-putri .carousel-item {
    height: 280px; /* Tentukan tinggi kaku wadah slide di sini */
    overflow: hidden;
}

/* 3. Memaksa Gambar di Dalam Wadah Mengikuti Ukuran Kaku Wadah */
.Photo-wrapper-putri .carousel-item img {
    width: 100%;
    height: 100%; /* Wajib 100% mengikuti tinggi wadah .carousel-item */
    
    /* KUNCI UTAMA: Gambar akan dipotong (crop) agar memenuhi wadah */
    /* tanpa merubah proporsi asli gambar (tidak gepeng) */
    object-fit: cover; 
    
    /* Fokuskan pemotongan di bagian tengah gambar */
    object-position: center; 
    
    position: relative;
    z-index: 2; /* Foto tetap di atas kotak bingkai */
    display: block;
}


/* KOTAK BINGKAI ABU-ABU (Pseudo-element) */
.Photo-wrapper-putri::after {
    content: "";
    position: absolute;
    top: 15px; 
    right: 15px; 
    width: 100%;
    height: 100%;
    border: 1px solid #dcdcdc;
    background-color: rgba(247, 246, 246, 0.3);

    /* KUNCI: Kasih z-index paling rendah atau negatif */
    z-index: -1 !important;
    pointer-events: none;
}

.vertical-name-putri {
    position: absolute;
    left: -20px; 
    top: 50%;
    transform: translateY(-20%) rotate(90deg); 
    font-family: 'sacramento', cursive;
    font-size: 1.8rem;
    color: white;
    white-space: nowrap;
    z-index: 10;
    letter-spacing: 4px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* --- ANIMASI KHUSUS PUTRI: SLIDE KE KANAN --- */

/* --- FIX TOTAL CAROUSEL PUTRI GESER KANAN --- */
/* --- FIX ABSOLUT CAROUSEL PUTRI GESER KANAN --- */

/* 1. Balikkan posisi elemen yang akan masuk */
#carouselPutri .carousel-item-next:not(.carousel-item-start),
#carouselPutri .active.carousel-item-end {
    /* Memaksa elemen muncul dari KIRI layar */
    transform: translateX(-100%) !important;
}

/* 2. Balikkan posisi elemen yang akan keluar */
#carouselPutri .carousel-item-prev:not(.carousel-item-end),
#carouselPutri .active.carousel-item-start {
    /* Memaksa elemen keluar ke arah KANAN layar */
    transform: translateX(100%) !important;
}

/* 3. Reset transisi agar tidak ada tumpang tindih aneh */
#carouselPutri .carousel-item-next.carousel-item-start,
#carouselPutri .carousel-item-prev.carousel-item-end {
    transform: translateX(0) !important;
}

/* 4. Kecepatan transisi */
#carouselPutri .carousel-item {
    transition: transform 0.6s ease-in-out !important;
}





/* --- 3. SECTION AGENDA (HYBRID GRID FIX) --- */
#agenda {
    background-color: transparent !important;
    padding: 80px 0 !important;
    min-height: 100vh;

    /* Ubah ini agar konten tidak dipaksa memanjang ke bawah */
    display: block; /* Ganti dari flex ke block agar dia tidak narik konten secara vertikal */

}

.container-isi {
    display: flex;
    flex-direction: column;
    gap: 50px; 
    align-items: center; /* Menjaga card tetap di tengah secara horizontal */
    width: 100%;
    margin-top: 50px; /* Atur jarak manual jika perlu */
}

/* KUNCI: Override class .container agar tidak melar di laptop */
#agenda .event-card.container {
    width: 90% !important;
    max-width: 420px !important; /* Paksa lebar ramping seperti gambar 1 */
    margin: 0 auto !important;
    background: #ffffff !important;
    border-radius: 0px !important;
    overflow: hidden;
    padding: 0 !important;
    box-shadow: 20px 20px 0px rgba(0,0,0,0.1);
    border: none !important;

    /* Tambahkan ini */
    height: auto !important; 
    min-height: fit-content !important;
}

/* Memastikan Row selalu satu baris & tinggi penuh */
#agenda .row {
    margin: 0 !important;
    display: flex !important;
    flex-wrap: nowrap !important; /* Menghindari kolom tumpuk di laptop */
    /* Gunakan stretch agar col-3 (hitam) sama tingginya dengan col-9 (putih) */
    align-items: stretch !important;
    width: 100%;
}

/* SIDEBAR (col-3) - Kunci Lebar Sidebar Hitam */
.cont-akad, .cont-resepsi {
    background-color: #1a1a1a !important;
    flex: 0 0 75px !important; /* Kunci lebar 75px, abaikan proporsi col-3 */
    max-width: 75px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important; /* Teks tetap di tengah kolom hitam */
    padding: 0 !important;
}

/* TEKS VERTIKAL - Putih & Terang */
.akad-vertical, .resepsi-vertical {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    color: #ffffff !important; 
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap;
}

/* ISI KARTU (col-9) */
.card-akad, .card-resepsi {
    background-color: #ffffff !important;
    flex: 1 !important; /* Ambil sisa ruang di sebelah sidebar */
    padding: 35px 25px !important;
    color: #000 !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-akad h1, .card-resepsi h1 {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem !important;
    font-weight: 900;
    margin: 0;
    line-height: 1;
    color: #000 !important;
}

.card-akad h4, .card-resepsi h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem !important;
    font-weight: 800;
    margin: 10px 0 15px 0;
    border-bottom: 2px solid #000;
    display: inline-block;
    padding-bottom: 5px;
}

.card-akad p, .card-resepsi p {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px !important;
    line-height: 1.5;
    margin-bottom: 5px;
    color: #333 !important;
}

/* TOMBOL LOKASI */
.btn-lokasi {
    margin-top: 20px;
    display: flex;
    justify-content: flex-start;
}

.btn-lokasi .btn {
    background-color: #000 !important;
    color: #fff !important;
    border-radius: 50px !important;
    padding: 8px 25px !important;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
}

/* FIX ORDER UNTUK LAPTOP (Agar sidebar resepsi tetap di kanan) */
@media (min-width: 992px) {
    .order-last {
        order: 2 !important; 
    }
}

/* SECTION LOVESTORY */

.container-love {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    min-height: 100dvh; /* Minimal satu layar, tapi BISA LEBIH */
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    /* Jangan pakai overflow: hidden di sini */

    background: transparent !important;
}
/* Container Utama Koran */
.newspaper-container {
    background-color: #f4f1ea; /* Warna kertas koran tua */
    color: #222;
    padding: 20px;
    border: 1px solid #ccc;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.3);
    margin: 20px auto;
    max-width: 450px;
    font-family: 'Times New Roman', Times, serif; /* Font khas koran */
}

/* Header Koran */
.newspaper-header {
    text-align: center;
    border-bottom: 3px double #333; /* Garis ganda khas koran */
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.newspaper-meta {
    font-size: 0.5rem;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
}

.newspaper-title {
    font-family: "Abril Fatface", serif !important;
    font-size: 1.3rem !important;
    margin: 5px 0;
    letter-spacing: 1px !important;
    font-style: italic;
    font-weight: 200px;
    color: #1a1a1a;

}

.newspaper-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    font-weight: bold;
    padding-top: 5px;
    border-top: 1px solid #333;
}

/* Isi Berita */
.headline-news {
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    font-weight: bold;
    text-align: left;
    margin-top: 15px;
    border-bottom: 1px solid #333;
    padding-bottom: 3px;
}

.story-section p {
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: justify;
    margin-top: 8px;
    color: #333;
}

/* Huruf besar di awal paragraf (Drop Cap) */
.story-section p::first-letter {
    float: left;
    font-size: 2.5rem;
    line-height: 1;
    font-weight: bold;
    padding-right: 8px;
    color: #000;
}

.newspaper-footer {
    margin-top: 20px;
    font-size: 0.6rem;
    font-style: italic;
    text-align: center;
    border-top: 1px solid #ccc;
    padding-top: 10px;
}

.text-love p {
    font-family: 'Roboto Slab', serif;
    font-size: 14px;
    line-height: 1.8; /* Memberi ruang antar baris agar tidak sesak */
    color: #444;
    text-align: center; /* Mengikuti style judul "Awal Cerita" yang center */
    margin-bottom: 25px; /* Jarak antar paragraf */
    word-spacing: 1px;
}
.text-love h4 {
    font-family: "sacramento", cursive;
    font-size: 36px;
    padding-bottom: 30px;
}


.title-story {
    font-family: 'Bodoni Moda', serif;
    font-size: 1.6rem;
    color: #1a3a6d;
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    display: inline-block;
    padding-bottom: 5px;
}


    /* Media Query Khusus Laptop/Desktop */
/* Media Query Khusus Laptop/Desktop */
@media (min-width: 992px) {
    /* 1. Kontainer Utama */
    .row-love-story {
        max-width: 100% !important; 
        width: 100% !important;
        display: flex !important;
        justify-content: flex-end !important; /* Mendorong konten ke kanan */
        padding-right: 5% !important;
    }

    /* 2. Kertas Koran */
    .row-love-story .newspaper-container {
        width: 95% !important; /* Sesuaikan agar tidak menutupi foto pengantin */
        max-width: 600px !important;
        margin-left: auto !important; 
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    /* 3. Pengganti CSS Row Bootstrap (Sudah Aman & Spesifik) */
    .row-love-story {
        justify-content: flex-end !important; 
        width: 100% !important;
        margin: 0 !important;
    }
}



/* Galleri FOTO */

/* Container Utama Galeri */
.container-galeri {
    max-width: 500px; /* Pertahankan lebar kontainer koran Anda */
    margin: 0 auto;
    background-color: rgb(235, 232, 232);
    overflow: hidden;
}
.gallery-header {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden; /* Mencegah layar goyang jika garis kepanjangan */
}

.huruf-G {
    font-family: "Playfair Display", serif !important;
    font-size: 35px;
    font-style: italic;
    font-weight: 900;
    margin: 0;
    align-self: flex-end; /* Geser Gallery ke kanan */
    padding-right: 50px; /* Jarak dari tepi kanan */
}

.line-with-text {
    display: flex;
    align-items: center; /* Garis dan teks sejajar secara vertikal */
    margin-top: -10px; /* Tarik ke atas agar mepet dengan Gallery */
}

.gallery-divider {
    height: 2px;
    background-color: #333;
    flex: 1; /* Garis akan memanjang otomatis dari kiri */
    margin-right: 15px; /* Jarak antara ujung garis dengan huruf O */
}

.huruf-O {
    font-family: "Mea Culpa", cursive;
    font-size: 40px;
    color: #000;
    margin: 0;
    padding-right: 20px; /* Jarak tulisan dari tepi kanan */
    text-wrap: nowrap;
}

/* Wadah Galeri Utama */
.gallery-wrapper {
    background-color: #000;
    width: auto; /* Ubah dari 100% ke auto agar margin bekerja */
    max-width: 500px;
    margin: 0 15px; /* Memberi jarak 15px di kiri dan kanan */
}

/* Pengaturan Foto Besar */
.gallery-main .carousel-item {
    height: 380px; /* Sesuaikan tinggi kaku wadah slide */
    background-color: #000;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Gambar utuh tanpa terpotong (seperti contoh Anda) */
    object-position: center;
}

/* Pengaturan Thumbnail (Foto Kecil) */
.gallery-thumbs-wrapper {
    padding: 10px;
    border-top: 1px solid #dcdcdc;
    z-index: 5;
}

.gallery-thumbs {
    gap: 8px; /* Jarak antar thumbnail */
    padding-left: 30px; /* Beri ruang untuk ikon Down */
}

.thumb-item {
    width: 65px; /* Lebar thumbnail */
    height: 65px; /* Tinggi thumbnail */
    cursor: pointer;
    overflow: hidden;
    border-radius: 4px; /* Opsional: Sedikit membulat */
    transition: all 0.2s ease;
    border: 2px solid transparent; /* Bingkai transparan default */
    opacity: 0.6; /* Buat buram saat tidak aktif */
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Thumbnail dipotong kotak sempurna */
    object-position: center;
}

/* GAYA KETIKA THUMBNAIL AKTIF */
.thumb-item.active {
    opacity: 1; /* Terang sempurna */
    border-color: #5d757d; /* Bingkai warna biru navy Anda */
    transform: scale(1.05); /* Sedikit membesar */
}

/* Sembunyikan scrollbar thumbnail di browser modern */
.gallery-thumbs::-webkit-scrollbar {
    display: none;
}
.gallery-thumbs {
    -ms-overflow-style: none;  /* IE dan Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Khusus tampilan laptop/layar lebar */
@media (min-width: 992px) {
    .container-galeri {
        background-color: rgb(235, 232, 232) !important;
        max-width: 500px !important; 
        
        /* 1. Paksa posisi menjadi relatif agar bisa kita geser manual */
        position: relative !important;
        
        /* 2. Geser ke kiri. Semakin besar angkanya (minus), semakin ke kiri dia jalan */
        /* Coba ganti -50px, -100px, atau -150px sampai posisinya pas di tengah area kosong */
        left: -20px !important; 
        
        /* 3. Reset margin agar tidak bentrok dengan sistem grid */
        margin-left: 0 !important;
        margin-right: auto !important;
        
        margin-top: 30px !important;
        margin-bottom: 50px !important;
        
        padding: 20px !important;
        border-radius: 20px; 
        
        /* 4. Pastikan dia tidak terbungkus overflow yang memotong */
        overflow: visible !important; 
    }

    .gallery-header {
        padding-top: 10px !important;
    }

    .gallery-wrapper {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }
}

/* ============================================================
   FITUR FULLSCREEN (OPTIMASI FINAL IPHONE, ANDROID, LAPTOP)
   ============================================================ */

/* 1. Fullscreen Standar (Android & Laptop) */
.gallery-wrapper:fullscreen {
    background-color: #000 !important;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
}

/* 2. Fullscreen Khusus iPhone (Fake Fullscreen) */
.gallery-wrapper.fake-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    
    /* Gunakan dvh (Dynamic Viewport Height) agar pas di Safari iPhone */
    width: 100% !important; 
    height: 100dvh !important; 
    
    background-color: #000 !important;
    z-index: 999999 !important;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    margin: 0 !important;
    /* Mencegah konten tertutup poni/home bar iPhone */
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left) !important;
}

/* Kunci Scroll khusus iPhone (Update agar sinkron dengan JS & Anti-Lompat) */
body.no-scroll-iphone {
    overflow: hidden !important;
    position: fixed !important; 
    width: 100% !important;
    height: 100% !important;
    /* Jangan kasih top: 0; karena posisi 'top' akan diatur otomatis oleh JS */
    touch-action: none; 
}

/* 3. Atur Gambar Saat Fullscreen (Semua Perangkat) */
.gallery-wrapper:fullscreen .carousel-item img,
.gallery-wrapper.fake-fullscreen .carousel-item img {
    height: 80dvh !important; /* Tinggi gambar menyesuaikan layar dinamis */
    width: 100% !important;
    object-fit: contain !important;
}

/* 4. Kontrol Navigasi & Thumbnail */
.gallery-wrapper:fullscreen .gallery-main,
.gallery-wrapper.fake-fullscreen .gallery-main {
    width: 100%;
}

/* Sembunyikan thumbnail saat fullscreen */
.gallery-wrapper:fullscreen .gallery-thumbs,
.gallery-wrapper.fake-fullscreen .gallery-thumbs {
    display: none !important;
}

/*INI YOUTUBE*/
/* --- SECTION VIDEO (REVISI TOTAL) --- */
/* --- 1. SECTION VIDEO --- */

/* --- 6. SECTION VIDEO (MAN IN BLACK STYLE) --- */
#video-prewed {
    width: 100%;
    /* Padding atas bawah agar proporsional di laptop */
    padding: 40px 15px !important; 
    /* PAKSA HITAM agar kontainer putih di laptop hilang */
    background-color: transparent !important; 
    display: block !important;
    position: relative;
    z-index: 10;
    margin: 0 !important;
}

#video-prewed .container-galeri {
    max-width: 550px; /* Sedikit lebih lebar agar gagah di laptop */
    margin: 0 auto;
    background: transparent !important;
}

#video-prewed .ratio-16x9 {
    /* Background hitam pekat saat loading */
    background-color: transparent!important;
    
    /* Bingkai tipis putih (Simple & Bold) */
    border: 1px solid rgba(255, 255, 255, 0.3); 
    border-radius: 0px; /* Siku tajam agar senada dengan tombol MIB kamu */
    
    /* Shadow dalam agar video terlihat menonjol */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
    overflow: hidden !important; 
}

/* Memastikan video menutup rapat area bingkai */
#video-prewed iframe {
    width: 100% !important;
    height: 100% !important;
    background: transparent !important;
}

/* --- ADJUSTMENT KHUSUS LAPTOP --- */
@media (min-width: 992px) {
    #video-prewed {
        /* Memastikan seluruh area section ini hitam di panel kanan */
        min-height: auto;
        background: transparent !important;
    }
}

/* --- ADJUSTMENT KHUSUS HP --- */
@media (max-width: 767px) {
    #video-prewed {
        padding: 20px 10px !important;
    }
}


/* --- SECTION WEDDING GIFT (MAN IN BLACK) --- */

.section-kado {
    padding: 0 !important;
    background: transparent !important; /* Video tetap terlihat */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 25;
}

.container-WG {
    margin: 0 auto;
    width: 85%; 
    max-width: 400px; /* Ukuran proporsional di laptop */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    
    /* Efek Kaca Film Gelap */
    background: rgba(0, 0, 0, 0.4) !important; 
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 50px 30px;
    border-radius: 0px !important; /* Siku tajam */
}

/* --- KHUSUS TAMPILAN HP (NARIK KE ATAS) --- */
@media (max-width: 767px) {
    .section-kado {
        /* Sesuaikan angka ini (misal -400px atau -500px) sampai pas mepetnya */
        margin-top: -450px !important; 
    }
    .container-WG {
        padding: 35px 20px;
    }
}

/* --- KHUSUS TAMPILAN LAPTOP (NORMAL & TIDAK NUTUP VIDEO) --- */
@media (min-width: 992px) {
    .section-kado {
        margin-top: -600px !important; /* Memberikan ruang agar video terlihat */
        padding: 100px 0 !important;
    }
}



/* TYPOGRAPHY WEDDING GIFT */
.container-WG h5 {
    font-family: 'Cinzel', serif; 
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 6px;
    color: #ffffff;
    
}

.divider-line-wg {
    width: 40px;
    height: 2px;
    background: #fff;
    margin: 15px 0 25px 0;
}

.container-WG p {
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    line-height: 2;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px !important;
    letter-spacing: 2px;
    
}

.btn-amplop {
    width: 100%; 
    padding: 18px 0;
    background: #fff !important; /* Warna dasar hitam */
    color: #000 !important;      /* Teks putih agar kontras */
    border-radius: 0px !important; 
    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    border: 1px solid #000 !important; /* Border hitam agar ukuran tetap sama saat hover */
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    
    /* Efek transisi halus untuk semua properti */
    transition: all 0.4s ease;
}

.btn-amplop:hover {
    background: #000 !important;    /* Berubah jadi putih */
    color: #fff !important;         /* Teks jadi hitam */
    border: 1px solid #fff !important; /* Border jadi putih agar tidak ada garis hitam tersisa */
}


/* Styling Modal Keseluruhan */
.newspaper-modal {
    background-color: #f4f1ea !important; /* Warna kertas koran tua seperti di kodemu */
    border-radius: 0px !important;
    border: 1px solid #333 !important;
}

/* Container Kartu BW */
.gift-card-bw {
    background: #ffffff;
    border: 1px solid #000;
    padding: 25px;
    position: relative;
    box-shadow: 5px 5px 0px rgba(0,0,0,0.1);
    transition: 0.3s;
}

/* Garis Hiasan di Dalam Kartu (Frame) */
.card-inner::after {
    content: "";
    position: absolute;
    top: 5px; left: 5px; right: 5px; bottom: 5px;
    border: 1px solid #eee;
    pointer-events: none;
}

.bank-name {
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 15px;
}

.card-number {
    font-family: 'Bodoni Moda', serif;
    font-size: 1.4rem;
    font-weight: bold;
    letter-spacing: 2px;
    color: #000;
    margin-bottom: 5px;
}

.card-holder {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 1rem;
    color: #333;
}

/* Tombol Salin Versi Klasik */
.btn-salin-bw {
    margin-top: 15px;
    background: transparent;
    border: 1px solid #000;
    color: #000;
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    padding: 5px 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
}

.btn-salin-bw:hover {
    background: #000;
    color: #fff;
}

/* Animasi saat modal muncul agar estetik */
#amplopModal .modal-content {
    animation: newspaperFade 0.5s ease;
}

@keyframes newspaperFade {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}



/* Keyframes untuk efek bernafas (Zoom perlahan) */
@keyframes breathing {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1); /* Gambar membesar 10% perlahan */
    }
}
/* --- MODERN BLACK SECTION --- */
.section-ucapan {
    padding: 100px 0 !important;
    background: #000 !important;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container-komen {
    width: 90% !important;
    max-width: 400px !important;
    background: #000 !important;
    padding: 0px !important; /* Tanpa box, langsung melayang di background */
    border: none !important;
    box-shadow: none !important;
}

/* TYPOGRAPHY */
.modern-title {
    font-family: 'Cinzel', serif; /* Atau font Sans-Serif Bold jika ada */
    font-weight: 900;
    font-size: 2.5rem;
    color: #fff;
    letter-spacing: 8px;
    text-align: center;
    margin: 0;
}

.divider-line {
    width: 40px;
    height: 3px;
    background: #fff;
    margin: 15px auto;
}

.modern-sub {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    letter-spacing: 3px;
    color: #666; /* Abu-abu gelap agar fokus ke judul */
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 50px;
}

/* MODERN INPUTS */
.input-group-modern {
    margin-bottom: 25px;
    position: relative;
}

.modern-form .form-control, 
.modern-form .form-select {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid #333 !important; /* Garis sangat tipis */
    border-radius: 0 !important;
    color: #fff !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    letter-spacing: 2px;
    padding: 15px 0 !important;
    text-transform: uppercase;
    transition: 0.3s ease;
}

.modern-form .form-control:focus,
.modern-form .form-select:focus {
    border-bottom: 1px solid #fff !important; /* Garis jadi putih saat diketik */
    box-shadow: none !important;
}

.modern-form .form-control::placeholder {
    color: #444;
}

/* BUTTON BOLD */
.btn-modern-send {
    width: 100%;
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #fff !important;
    padding: 18px !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 11px;
    letter-spacing: 4px;
    margin-top: 30px;
    cursor: pointer;
    transition: 0.4s;
}

.btn-modern-send:hover {
    background: #000 !important;
    color: #fff !important;
}

/* PC/LAPTOP ADJUSTMENT */
@media (min-width: 992px) {
    .container-komen {
        max-width: 380px !important;
    }
}

/* --- 8. SECTION PENUTUP (STRETCH STYLE) --- */
#Penutupcover {
    position: relative;
    width: 100%;
    height: 100vh; /* Paksa satu layar penuh */
    height: 100dvh; /* Fix untuk browser HP */
    background-color: #000;
    overflow: hidden;
}

/* CAROUSEL BACKGROUND */
.CAROUSEL-penutup {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}

.CAROUSEL-penutup .carousel,
.CAROUSEL-penutup .carousel-inner,
.CAROUSEL-penutup .carousel-item {
    height: 100%;
}

.CAROUSEL-penutup img {
    width: 100%; height: 100%;
    object-fit: cover;
}

/* OVERLAY KONTEN */
.overlay-content {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    /* Gradasi diperkuat di ujung atas & bawah */
    background: linear-gradient(to bottom, 
        rgba(0,0,0,0.85) 0%, 
        rgba(0,0,0,0.2) 50%, 
        rgba(0,0,0,0.95) 100%);
    
    display: flex;
    flex-direction: column;
    /* INI KUNCINYA: Memaksa konten ke ujung atas dan bawah */
    justify-content: space-between; 
    align-items: center;
    text-align: center;
    color: white;
    /* Padding kecil agar mepet ke pinggir layar */
    padding: 30px 20px 20px 20px; 
    box-sizing: border-box;
}

/* BAGIAN ATAS (Terima Kasih) */
.cover-penutup {
    width: 100%;
}



.bagian-atas h1 {
    font-family: "Great Vibes", cursive;
    font-size: clamp(1.8rem, 5vw, 3rem);
    letter-spacing: 6px;

    margin-bottom: 10px;
}

.sub-text {
    font-family: "Montserrat", sans-serif;
    font-size: clamp(9px, 2vw, 11px);
    line-height: 1.6;
    max-width: 380px;
    margin: 0 auto;
    opacity: 0.8;
    
    letter-spacing: 1px;
}

/* BAGIAN TENGAH (Nama Mempelai) */
.bagian-bawah {
    margin-top: 20px;
}

.bagian-bawah h4 {
    font-size: clamp(8px, 2vw, 10px);
    letter-spacing: 3px;
    margin-bottom: 5px;
    opacity: 0.7;
}

.bagian-bawah h2 {
    font-family: "Playfair Display", serif;
    font-size: clamp(1.6rem, 5vw, 2.5rem);
    font-weight: 900;
    letter-spacing: 5px;
}

/* BAGIAN BAWAH (Sosmed/Powered By) */
.Identity-pembuat {
    width: 100%;
    /* Tambah padding bottom agar tidak tertutup bar navigasi HP saat mentok */
    padding-bottom: 50px; 
    /* Pastikan dia berada di urutan paling atas tumpukan */
    position: relative;
    z-index: 20;
}

.Identity-pembuat p {
    font-size: 8px;
    letter-spacing: 3px;
    margin-bottom: 2px;
    opacity: 0.6;
}

.Identity-pembuat h2 {
    font-family: serif;
    font-size: 1.1rem;
    letter-spacing: 3px;
    margin-bottom: 15px !important;
}

.hubungi-kami {
    display: flex;
    justify-content: center;
    gap: 20px;
    
    
    /* Ubah dari fixed ke relative */
    position: relative; 
    /* Hapus bottom, left, dan transform yang lama */
    margin-top: 10px; 
    z-index: 999; 
}

.btn-hub {
    color: white !important;
    font-size: 1.3rem;
    width: 40px; 
    height: 40px;
    
    background-color: rgba(0, 0, 0, 0.5); /* Opsional: kasih background agar kontras */
    border-radius: 50%; /* Opsional: agar bentuknya bulat */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.4s;
}

.btn-hub:hover {
    background: white;
    color: black !important;
}

/* LAPTOP FULL WIDTH */
@media (min-width: 992px) {
    #Penutupcover {
        margin: 0 -50px;
        width: calc(100% + 100px);
    }
    .overlay-content {
        padding: 60px 40px 30px 40px;
    }
}

/* --- 9. STICKY FOOTER NAV (VERTICAL MODE) --- */
.container-footer {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    min-height: 100dvh; /* Minimal satu layar, tapi BISA LEBIH */
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    /* Jangan pakai overflow: hidden di sini */
}


.sticky-footer {
    position: fixed;
    top: 50%; /* Letak di tengah secara vertikal */
    
    /* RUMUS MEPEТ KANAN KONTAINER (Laptop/PC) */
    /* 50% layar + 225px (setengah dari lebar kontainer 450px) */
    left: calc(50% + 250px); 
    transform: translate(-100%, -50%); /* -100% agar dia masuk ke dalam garis tepi konten */
    
    /* UBAH DISINI: Jangan pakai width statis 25px */
    width: fit-content; 
    height: fit-content; 
    padding: 10px 5px; /* Padding samping dikecilkan agar slim */
    
    /* Tata Letak */
    display: none; /* Muncul via JS saat klik buka */
    flex-direction: column; 
    justify-content: center;
    align-items: center;
    gap: 10px; 
    
    /* Layer & Estetika */
    z-index: 9999;
    background: rgba(0, 0, 0, 0.6); 
    backdrop-filter: blur(10px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Tampilkan hanya saat main-content sudah aktif *//* Pastikan saat muncul tetap flex dan tidak memanjang */
.show-content ~ .sticky-footer {
   display: flex;         /* Tetap gunakan flex */
    height: fit-content;   /* WAJIB: Agar tinggi menciut pas icon */
    opacity: 1;

}

/* KHUSUS UNTUK TAMPILAN HP (Mobile) */
/* Update di bagian @media (max-width: 576px) dan (max-width: 500px) */
@media (max-width: 576px) {
    .sticky-footer {
        right: 15px; /* Jarak dari pinggir layar HP */
        width: fit-content; /* Biarkan slim */
        padding: 12px 7px;
    }
    
    .nav-btn {
        font-size: 1.1rem;
    }
}

.nav-btn {
    text-decoration: none;
    color: white !important;
    font-size: 1.2rem; 
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 25px; 
    height: 25px;
}

.nav-btn:hover {
    color: #ffd700 !important; 
    transform: scale(1.2);
}




/* Gabungan Mode Fullscreen Asli (Android/Laptop) & Fake Fullscreen (iPhone) */
.gallery-wrapper:fullscreen,
.gallery-wrapper.is-fake-fullscreen {
    background-color: #000 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 99999 !important;
    position: fixed !important; /* Penting untuk iPhone */
    top: 0;
    left: 0;
}

/* Memastikan gambar CAROUSEL jadi FULL saat fullscreen */
.gallery-wrapper:fullscreen .carousel-item,
.gallery-wrapper:fullscreen .carousel-item img,
.is-fake-fullscreen .carousel-item,
.is-fake-fullscreen .carousel-item img {
    height: 100vh !important; /* Paksa tinggi jadi seukuran layar */
    width: 100vw !important;
    object-fit: contain !important; /* Foto utuh tidak terpotong */
}

/* Sembunyikan thumbnail & elemen lain yang mengganggu saat fullscreen */
.gallery-wrapper:fullscreen .gallery-thumbs-wrapper,
.is-fake-fullscreen .gallery-thumbs-wrapper {
    display: none !important;
}

/* --- 8. RESPONSIVE MOBILE --- */
@media (max-width: 576px) {
    
    .container-awal h4 { font-size: 3.5rem; }
    .carosel-bawah h2 { font-size: 4rem; }
    
    .profile-img {
        width: 150px !important; /* Menyesuaikan ukuran profil di HP */
        height: 230px !important;
        object-fit: cover;
            border-radius: 150px; /* Bentuk Kapsul/Oval */
            border: 6px solid white;
            box-shadow: 0 15px 35px rgba(0,0,0,0.1);
            position: relative;
            z-index: 2; /* Di atas bunga latar */
    }
}

/* Global No Scroll */
.no-scroll {
    overflow: hidden !important;
    height: 100vh;
}

