* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    background-color: #fcfcfc;
    overflow-x: hidden;
}

/* Kunci scroll saat di cover */
body.locked {
    overflow: hidden;
}

.title-small {
    font-weight: 300;
    font-size: 1rem;
    color: #000000;
}

.nama-mempelai {
    font-family: 'Amoerasa', cursive;
    font-size: 2.5rem;
    color: #000000;
    margin: 15px 0;
    line-height: 1.2;
    font-weight: normal;
}

#cover-page .nama-mempelai {
    margin-bottom: 25px;
}

/* --- COVER PAGE --- */
#cover-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: url('assets/bg_cover1.webp') center/cover;
    color: white; 
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 9999;
    transition: transform 1s ease-in-out, opacity 1s ease-in-out;
    overflow: hidden; 
}

#cover-page.slide-up {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.tamu-section {
    margin-top: -5px !important; /* Ditarik ke atas mendekati foto */
    background: transparent; 
    padding: 20px;
    width: 90%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    color: #000000;
    position: relative; 
    z-index: 20; 
}

.nama-tamu {
    font-size: 1.3rem; 
    margin: 10px 0;
    font-weight: 600;
    color: #000000;
}

#btn-buka {
    background-color: #740f34; 
    color: #ffffff; 
    border: 1px solid #510404; 
    padding: 10px 20px; 
    font-size: 0.9rem;  
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    cursor: pointer;
    margin: 10px auto !important; /* Jarak diperkecil agar lebih merapat */
    transition: 0.3s;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.5) !important;
    will-change: transform, opacity;
}

#btn-buka:hover {
    background-color: #5e102c;
    transform: scale(1.05);
}

.disclaimer {
    font-size: 0.7rem;
    opacity: 0.9;
    color: #000000;
    font-weight: bold;
}

/* --- MAIN CONTENT SECTIONS --- */
.section {
    min-height: 100vh;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* --- HALAMAN 2 (HERO) --- */
.hero-bg {
    background: url('assets/bg_hero1.webp') center/cover;
    background-attachment: fixed; 
}

.text-maroon {
    color: #000000 !important;
}

.hero-bg .title-small {
    color: #000000 !important;
    font-weight: 400;
}

.intro-text {
    width: 85% !important;        
    max-width: 380px !important;  
    margin: 20px auto !important; 
    line-height: 1.8 !important;  
    font-size: 0.8rem;
    color: #444; 
    font-weight: 500;
}

.tanggal {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 10px !important;
    color: #000000; 
}

#countdown {
    display: flex;
    gap: 10px;
    margin-top: 3px !important;     
    margin-bottom: 15px !important; 
}

.cd-box {
    background: #000000; 
    color: #ffffff; 
    padding: 10px;
    border-radius: 8px;
    min-width: 60px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.cd-box span { font-size: 1.2rem; font-weight: bold; }
.cd-box p { font-size: 0.7rem; margin-top: 5px; }

/* =========================================================
   KUNCI AREA HALAMAN PROFIL & BACKGROUND BARU
   ========================================================= */
#profil {
    position: relative !important; 
    overflow: hidden; 
    
    /* Tambahan untuk Background Gambar bg_profil1.webp */
    background-image: url('assets/bg_profil1.webp') !important;
    background-size: cover !important; /* Agar gambar pas memenuhi layar */
    background-position: center !important; /* Fokus ke tengah gambar */
    background-repeat: no-repeat !important;
}


.salam-pembuka {
    max-width: 650px; 
    margin: 0 auto 50px auto; 
    text-align: center;
    padding: 0 15px;
}

.teks-salam-arab {
    font-family: 'Aref Ruqaa', serif;
    color: #000000;
    margin-bottom: 25px;
    direction: rtl;
    text-align: center;
    white-space: nowrap; 
    font-size: clamp(1.5rem, 6vw, 2.5rem); 
    line-height: 1.2;
    letter-spacing: -0.5px;
    font-weight: normal;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.05);
}

@media (min-width: 500px) {
    .teks-salam-arab {
        font-size: 2.2rem; 
    }
}

@media (max-width: 480px) {
    .teks-salam-arab {
        font-size: 1.7rem; 
        letter-spacing: -0.8px;
    }
}

.teks-pengantar {
    font-size: 0.85rem; 
    line-height: 1.8;
    color: #444; 
    font-weight: 500;
    text-shadow: 0px 0px 8px rgba(255, 255, 255, 0.9);
}

.ayat-quran {
    max-width: 700px;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 50px;
    font-size: 0.85rem;
    color: #444;
    text-shadow: 0px 0px 8px rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.8);
    padding: 5px 25px; 
    border-radius: 20px; 
    backdrop-filter: blur(5px); 
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05); 
    border: 1px solid rgba(255, 255, 255, 0.5); 
}

.ayat-quran span {
    display: block;
    margin-top: 10px;
    font-weight: bold;
    color: #000000; 
}

.mempelai-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    width: 100%;
}

/* =========================================================
   UPDATE BACKGROUND KOTAK MEMPELAI
   ========================================================= */
.mempelai-card {
    position: relative;
    z-index: 10;
    /* Mengganti background putih transparan dengan gambar bg_ayat.webp */
    background-image: url('assets/bg_ayat.webp') !important;
    background-position: center !important;
    background-size: cover !important; /* Menyesuaikan gambar dengan ukuran kotak */
    background-repeat: no-repeat !important;
    
    padding: 20px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 350px;
    overflow: hidden !important; 
    border: 3px solid #fff8f8 !important; 
    border-radius: 20px !important; 
    box-shadow: 0 10px 20px rgba(121, 23, 76, 0.1) !important; 
}

/* Mengatur jarak teks nama agar lebih dekat ke foto dan teks orang tua */
.mempelai-card h2 {
    font-family: 'Amoerasa', cursive;
    font-size: 1.4rem;
    color: #ffffff; 
    margin-top: 0px !important;    /* Menghilangkan jarak atas nama */
    margin-bottom: 20px !important; /* Memperkecil jarak antara nama dan orang tua */
    line-height: 1.1;
}

/* =========================================================
   TEKS ORANG TUA (MENGATUR JARAK BAWAH)
   ========================================================= */
.ortu {
    font-size: 0.85rem;
    color: #ffffff;
    line-height: 1.4; 
    font-weight: 500;
    margin-top: 0;   
    margin-bottom: 10px !important; /* Menambah jarak agar tidak mepet dengan batas bawah kotak */
}

/* =========================================================
   TOMBOL MUSIK (WARNA MARUN #8C2243)
   ========================================================= */
#music-toggle {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    /* Mengubah warna latar belakang menjadi #8c2243 dengan transparansi 85% agar tetap estetik (glassmorphism) */
    background-color: rgba(140, 34, 67, 0.85) !important; 
    backdrop-filter: blur(5px); 
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5); 
    font-size: 1.1rem; 
    cursor: pointer;
    z-index: 10000;
    display: none; 
    /* Mengubah warna bayangan (glow) agar senada dengan #8c2243 */
    box-shadow: 0 4px 10px rgba(140, 34, 67, 0.4) !important;
    transition: all 0.3s ease;
    justify-content: center;
    align-items: center;
}

#music-toggle:hover {
    transform: scale(1.1); 
    /* Warna menjadi solid #8c2243 saat disentuh/di-hover */
    background-color: #8c2243 !important; 
}

/* --- TOMBOL SAVE THE DATE --- */
.calendar-actions {
    margin-top: 10px !important; 
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    opacity: 0; 
    will-change: transform, opacity;
}


#btn-save-date {
    background-color: rgba(255, 255, 255, 0.7); 
    color: #000000;
    border: 2px solid #000000;
    padding: 8px 20px; 
    border-radius: 30px;
    font-size: 0.8rem; 
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#btn-save-date svg {
    width: 16px; 
    height: 16px;
    margin-right: 6px !important;
}

#btn-save-date:hover {
    background-color: #000000;
    color: #ffffff;
}

#calendar-options {
    margin-top: 25px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border: 1px solid rgba(121, 23, 76, 0.2);
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.3s ease;
    width: 200px;
}

#calendar-options.hidden {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    position: absolute; 
    visibility: hidden;
}

#calendar-options.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    position: relative;
    visibility: visible;
}

.btn-cal-option {
    text-decoration: none;
    color: #444;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* =========================================================
   DIVIDER ESTETIK (KLASIK EMAS) - FIX KOTAK PUTIH
   ========================================================= */
.divider-estetik {
    position: relative;
    width: 80%;
    max-width: 250px;
    height: 24px;
    margin: 35px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Garis ganda tipis berwarna emas */
.divider-estetik::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 4px;
    border-top: 1px solid #d4af37;
    border-bottom: 1px solid #d4af37;
    /* Trik Masking: Membuat garis memudar di ujung, DAN bolong di tengah */
    mask-image: linear-gradient(to right, transparent 0%, black 20%, black 40%, transparent 45%, transparent 55%, black 60%, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 20%, black 40%, transparent 45%, transparent 55%, black 60%, black 80%, transparent 100%);
    z-index: 1;
}

/* Ornamen simbol di tengah tanpa background putih */
.divider-estetik::after {
    content: "✧"; /* Kamu bisa ganti dengan "♥" atau "✤" */
    position: relative;
    z-index: 2;
    font-size: 18px;
    color: #d4af37;
    background: transparent; /* <--- KOTAK PUTIH DIHILANGKAN */
    padding: 0 5px;
    line-height: 1;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.15); /* Tambahan bayangan tipis agar simbol tetap terbaca jelas */
}

/* =========================================================
   HALAMAN 4 (EVENT / DETAIL ACARA)
   ========================================================= */
.bg-event {
    background: url('assets/bg_event1.webp') center/cover;
    background-attachment: fixed; 
}

.event-container {
    width: 100%;
    max-width: 800px;
}

.header-event {
    text-align: center;
    margin-bottom: 40px;
}

.title-section {
    font-family: 'Amoerasa', cursive;
    font-size: 3.5rem;
    color: #ffffff; 
    margin-bottom: 5px;
}

.subtitle-event {
    font-size: 0.95rem;
    color: #ffffff; 
    font-weight: 500;
}

.event-cards-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px; 
    width: 100%;
}

.event-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 35px 20px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(99, 7, 29, 0.5);
    text-align: center;
    width: 100%;
    max-width: 350px;
    position: relative; 
    overflow: hidden; 
}

.event-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.event-card h3 {
    font-family: 'Amoerasa', cursive; 
    font-size: 2.7rem; 
    color: #000000;
    margin-bottom: 15px;
    font-weight: 400; 
}

.event-info p {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #444;
}

.event-date { font-weight: 700; color: #000000; }
.event-location { font-weight: 600; }
.event-address {
    font-size: 0.85rem !important;
    line-height: 1.6;
    margin-top: 15px;
    margin-bottom: 25px !important;
    padding: 0 10px;
}

.btn-lokasi {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #000000;
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #000000;
    width: 80%; 
    max-width: 250px;
}

/* =========================================================
   HALAMAN 5 (WEDDING GIFT)
   ========================================================= */
.bg-gift {
    background: url('assets/bg_gift1.webp') center/cover;
    background-attachment: fixed;
}

.gift-container {
    width: 100%;
    text-align: center;
}

.header-gift { margin-bottom: 40px; padding: 0 15px; }

.title-gift {
    font-family: 'Amoerasa', cursive;
    font-size: 3.5rem; 
    color: #000000; 
    margin-bottom: 10px;
    text-shadow: 0px 0px 10px rgba(255, 255, 255, 0.9), 1px 1px 2px rgba(255, 255, 255, 1);
}

.subtitle-gift {
    font-size: 0.85rem; 
    color: #444; 
    font-weight: 500;
    line-height: 1.8;
    text-shadow: 0px 0px 8px rgba(255, 255, 255, 0.9);
}

.gift-cards-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
    width: 100%;
}

.atm-card {
    background: linear-gradient(135deg, #361212 0%, #8c2243 100%); 
    width: 100%;
    max-width: 350px; 
    border-radius: 15px;
    padding: 25px;
    color: white;
    box-shadow: 0 10px 25px rgba(121, 23, 76, 0.4);
    position: relative;
    overflow: hidden;
    text-align: left;
}

.atm-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.atm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.bank-name { font-size: 1.2rem; font-weight: 700; font-style: italic; }
.rek-number { font-size: 1.6rem; font-family: 'Courier New', monospace; font-weight: 600; margin-bottom: 5px; }
.rek-name { font-size: 0.85rem; opacity: 0.9; margin-bottom: 20px; }

.btn-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 10px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
}

.wa-confirm-wrapper {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px dashed rgba(121, 23, 76, 0.3);
}

.wa-text { font-size: 0.7rem; color: #444; margin-bottom: 15px; font-weight: 500; }
.btn-wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #510404; 
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
}

/* =========================================================
   HALAMAN 6 (WEDDING WISH & RSVP)
   ========================================================= */
.bg-rsvp {
    background: url('assets/bg_rsvp1.webp') center/cover;
    background-attachment: fixed;
}

.rsvp-container { width: 100%; text-align: center; }
.header-rsvp { margin-bottom: 40px; padding: 0 15px; }
.title-rsvp { font-family: 'Amoerasa', cursive; font-size: 3.5rem; color: #ffffff; margin-bottom: 10px; }
.subtitle-rsvp { font-size: 0.85rem; color: #ffffff; font-weight: 500; line-height: 1.8; }

.rsvp-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 20px;
    width: 100%;
}

.rsvp-form-box, .wish-wall-box {
    background: rgba(255, 255, 255, 0.85); 
    padding: 30px 20px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    width: 100%;
    max-width: 380px;
    text-align: left;
}

.form-group { margin-bottom: 15px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 12px 15px; border: 1px solid rgba(121, 23, 76, 0.3);
    border-radius: 10px; font-family: 'Poppins', sans-serif; font-size: 0.95rem;
}

.btn-submit {
    width: 100%; background-color: #000000; color: #ffffff; padding: 12px;
    border-radius: 10px; border: none; font-size: 1rem; font-weight: 600;
    cursor: pointer;
}

.wish-messages { max-height: 400px; overflow-y: auto; padding-right: 10px; display: flex; flex-direction: column; gap: 15px; }
.wish-card { background: white; padding: 15px; border-radius: 12px; border-left: 4px solid #000000; }
.wish-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.wish-name { font-size: 0.95rem; color: #333; }
.wish-text { font-size: 0.85rem; color: #555; line-height: 1.6; margin-bottom: 8px; }
.wish-time { font-size: 0.7rem; color: #999; font-style: italic; }

.badge { font-size: 0.7rem; padding: 3px 8px; border-radius: 20px; font-weight: 600; }
.badge-hadir { background-color: #e8f5e9; color: #2e7d32; }
.badge-absen { background-color: #ffebee; color: #c62828; }
.badge-ragu { background-color: #fff8e1; color: #f57f17; }

/* =========================================================
   ANIMASI REVEAL (PERBAIKAN OPACITY)
   ========================================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px); /* Opsional: memberikan efek mengambang ke atas sedikit untuk elemen yang hanya pakai .reveal */
    will-change: opacity, transform;
    transition: all 0.8s ease-out !important; 
}

.reveal.active {
    opacity: 1 !important; /* INI KUNCI UTAMANYA: Mengembalikan agar terlihat */
    transform: translateY(0); /* Mereset posisi kembali ke awal */
    transition: all 1.5s cubic-bezier(0.16, 1, 0.3, 1) !important; /* Waktu transisi diperhalus jadi 1.5s */
}

/* Biarkan kode .reveal-zoom dan .reveal-pullup di bawahnya tetap seperti semula */
.reveal-zoom { transform: scale(0.8); }
.reveal-zoom.active { opacity: 1; transform: scale(1); }

.reveal-pullup { transform: translateY(80px); }
.reveal-pullup.active { opacity: 1; transform: translateY(0); }

/* Animasi khusus tombol save the date yang lebih cepat */
.reveal-waktu {
    opacity: 0; 
    transform: translateY(30px); 
    will-change: opacity, transform;
    transition: all 0.5s ease-out !important; 
}
.reveal-waktu.active {
    opacity: 1; 
    transform: translateY(0); 
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Nonaktifkan CSS Jadul saat tidak dilock */
body:not(.locked) #hero .nama-mempelai,
body:not(.locked) #hero .intro-text {
    animation: none !important; 
}

@keyframes entranceText { 0% { opacity: 0; transform: translateY(20px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes entrancePhoto { 0% { opacity: 0; transform: scale(0.6) translateY(-40px); } 70% { opacity: 1; transform: scale(1.05) translateY(5px); } 100% { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes floatPhoto { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes entranceButton { 0% { opacity: 0; transform: translateY(40px); } 100% { opacity: 1; transform: translateY(0); } }

/* Mengubah bayangan tombol saat animasi berdenyut (Merah Gelap/Marun) */
@keyframes pulseButton { 
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 4px 15px rgba(139, 0, 0, 0.5); 
    } 
    50% { 
        transform: scale(1.03); 
        box-shadow: 0 6px 20px rgba(139, 0, 0, 0.8); 
    } 
}

/* Responsif Judul Halaman */
@media (max-width: 768px) {
    .title-section, .title-gift, .title-rsvp { font-size: 2.8rem; }
}

/* =========================================================
   KUNCI MODE "HANYA HP" (MOBILE VIEW ONLY)
   ========================================================= */
@media (min-width: 500px) {
    html {
        background-color: #e9ecef;
        background-image: radial-gradient(#c2c2c2 1px, transparent 1px);
        background-size: 20px 20px;
        min-height: 100vh;
    }
    body {
        width: 100%;
        max-width: 414px; 
        margin: 0 auto;
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.15);
        min-height: 100vh;
        background-color: #fcfcfc;
        position: relative;
        overflow-x: hidden;
    }
    #cover-page { 
        width: 414px !important; 
        left: 50% !important; 
        transform: translateX(-50%) !important; 
    }
    #cover-page.slide-up { 
        transform: translate(-50%, -100%) !important; 
    }
    #music-toggle { 
        right: calc(50vw - 207px + 25px) !important; 
    }
    .hero-bg, #profil, .bg-event, .bg-gift, .bg-rsvp, .bg-penutup {
        background-attachment: fixed !important; 
        background-position: center top !important; 
        background-size: 414px 100vh !important; 
        background-repeat: no-repeat !important;
    }
}

/* =========================================================
   EFEK KELOPAK MAWAR MERAH GELAP (MENGGANTIKAN SAKURA)
   ========================================================= */
#sakura-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; 
    z-index: 10000; 
    overflow: hidden;
}

.sakura-petal {
    position: absolute;
    top: -10%;
    background: linear-gradient(135deg, #efbec8, #e13557); 
    border-radius: 15px 0px 15px 0px; 
    opacity: 0.5;
    pointer-events: none;
    animation: fall linear forwards;
    box-shadow: 0 0 5px rgba(255, 183, 197, 0.4);
}

@keyframes fall {
    0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.8; }
    80% { opacity: 0.8; }
    100% { transform: translate(var(--end-x), 110vh) rotate(var(--end-rotation)); opacity: 0; }
}

/* =========================================================
   ANIMASI & POSISI BUNGA COVER (DIPERKECIL & DIGESER)
   ========================================================= */
.bunga-cover {
    position: absolute;
    width: 190px !important; 
    max-width: 60vw !important; 
    z-index: 1 !important; 
    opacity: 0; 
    visibility: hidden; 
    pointer-events: none; 
}

#bunga-atas {
    top: -40px !important;     
    right: -40px !important; 
    transform-origin: top right;
}

#bunga-bawah {
    bottom: -50px !important; 
    left: -50px !important;   
    transform-origin: bottom left;
}

#bunga-kanan-bawah {
    bottom: -60px !important;  
    right: -60px !important;   
    transform-origin: bottom right; 
    width: 150px !important; 
}

@keyframes revealBungaAtas {
    from { opacity: 0; visibility: visible; transform: translateX(100px) rotate(10deg); }
    to { opacity: 1; visibility: visible; transform: translateX(0) rotate(0deg); }
}

@keyframes revealBungaBawah {
    from { opacity: 0; visibility: visible; transform: translateX(-100px) rotate(-10deg); }
    to { opacity: 1; visibility: visible; transform: translateX(0) rotate(0deg); }
}

@keyframes revealBungaKananBawah {
    from { opacity: 0; visibility: visible; transform: translateX(100px) rotate(10deg); }
    to { opacity: 1; visibility: visible; transform: translateX(0) rotate(0deg); }
}

.reveal-bunga-atas { animation: revealBungaAtas 1.5s ease-out forwards; }
.reveal-bunga-bawah { animation: revealBungaBawah 1.5s ease-out forwards; }
.reveal-bunga-kanan-bawah { animation: revealBungaKananBawah 1.5s ease-out forwards; }

/* =========================================================
   ANIMASI BUNGA HERO (DIPERKECIL)
   ========================================================= */
#hero {
    position: relative;
    overflow: hidden; 
}

.bunga-hero {
    position: absolute;
    width: 220px !important; 
    max-width: 55vw !important; 
    z-index: 1 !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#bunga-hero-atas { top: -35px !important; left: -35px !important; transform-origin: top left; }
#bunga-hero-bawah { bottom: -75px !important; right: -70px !important; transform-origin: bottom right; }

@keyframes revealHeroKiri {
    from { opacity: 0; visibility: visible; transform: translateX(-100px) rotate(-10deg); }
    to { opacity: 1; visibility: visible; transform: translateX(0) rotate(0deg); }
}

@keyframes revealHeroKanan {
    from { opacity: 0; visibility: visible; transform: translateX(100px) rotate(10deg); }
    to { opacity: 1; visibility: visible; transform: translateX(0) rotate(0deg); }
}

.reveal-hero-kiri { animation: revealHeroKiri 1.5s ease-out forwards; }
.reveal-hero-kanan { animation: revealHeroKanan 1.5s ease-out forwards; }

/* =========================================================
   ANIMASI GOYANG ANGIN (UNTUK SEMUA BUNGA)
   ========================================================= */
@keyframes goyanganAngin {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(4deg); }
}

.looping-bunga { 
    opacity: 1 !important; 
    visibility: visible !important; 
    animation: goyanganAngin 6s ease-in-out infinite; 
}

/* =========================================================
   PERBAIKAN LAYER HERO (AGAR KONTEN DI ATAS BUNGA)
   ========================================================= */
#hero .foto-berbingkai_mewah,
#hero .title-small,
#hero .nama-mempelai,
#hero .intro-text,
#hero .tanggal,
#countdown,
.calendar-actions {
    position: relative;
    z-index: 10; 
}


#profil .salam-pembuka,
#profil .ayat-quran,
#profil .mempelai-container {
    position: relative;
    z-index: 10; 
}

/* =========================================================
   PERBAIKAN WARNA BACKGROUND ASLI (ANTI-BUTEK)
   ========================================================= */
#halaman-ayat {
    min-height: 65vh; 
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 20px;
    position: relative;
    overflow: hidden;
    background-image: url('assets/bg_ayat.webp') !important;
    background-position: center top !important;
    background-attachment: scroll !important;
    background-size: cover !important;
}

#halaman-ayat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

#halaman-ayat .container {
    position: relative;
    z-index: 2; 
}

#halaman-ayat .ayat-quran {
    position: relative;
    z-index: 10;
    max-width: 650px;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 25px; 
    border-radius: 20px; 
    backdrop-filter: blur(5px); 
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08); 
    border: 1px solid rgba(255, 255, 255, 0.5); 
    margin: 0 auto; 
}

#halaman-ayat .divider-estetik {
    margin: 10px auto;
}
#halaman-ayat .ayat-quran p {
    margin: 10px 0;
    line-height: 1.6;
}

/* =========================================================
   ANIMASI BUNGA HALAMAN AYAT (DIPERHALUS & DIPERKECIL)
   ========================================================= */
.bunga-ayat {
    position: absolute; 
    width: 150px !important; /* Ukuran diperkecil dari 370px menjadi 180px */
    max-width: 45vw !important; /* Memastikan ukurannya responsif di HP kecil */
    height: auto;
    z-index: 20; 
    opacity: 1 !important; 
    visibility: hidden;
    pointer-events: none;
}

#bunga-ayat-atas {
    top: -20px !important; /* Digeser sedikit agar posisinya pas di pojok */
    left: -20px !important;
    transform-origin: top left;
}

#bunga-ayat-bawah {
    bottom: -70px !important;
    right: -20px !important;
    transform-origin: bottom right;
}

/* =========================================================
   HALAMAN 7 (PENUTUP) 
   ========================================================= */
#penutup {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative; 
    overflow: hidden; 
    padding: 60px 20px;
    background: url('assets/bg_penutup1.webp') center/cover;
    background-attachment: fixed;
}

.penutup-container { 
    text-align: center; 
    width: 100%;
    max-width: 400px; 
    z-index: 10;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.penutup-container .teks-marun {
    color: #000000 !important;
    text-shadow: 0px 0px 10px rgba(255, 255, 255, 0.9);
    margin: 5px 0;
}

.nav-bottom {
    display: flex; 
    justify-content: center; 
    flex-wrap: nowrap; 
    gap: 8px; 
    margin-bottom: 20px;
    width: 100%;
}

.nav-btn {
    flex-shrink: 0; 
    background-color: #8c2243; 
    width: 42px; 
    height: 42px; 
    border-radius: 50%;
    display: flex; 
    justify-content: center; 
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); 
    text-decoration: none;
    transition: transform 0.2s ease;
    border: 2px solid #ffffff;
}

.nav-btn svg {
    width: 20px; 
    height: 20px;
    display: block;
    stroke: #ffffff !important; /* Memaksa warna ikon berubah ke marun pilihanmu */
}

.nav-btn:hover {
    transform: scale(1.1);
}

.footer-wrapper-inner {
    margin-top: 30px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 50px !important;
    padding-bottom: 20px; 
}


/* =========================================================
   ANIMASI BUNGA PENUTUP (DIPERKECIL & DIRAPIKAN)
   ========================================================= */
.bunga-penutup {
    position: absolute;
    width: 175px !important; /* Ukuran dipangkas dari 350px menjadi 140px */
    height: auto;
    z-index: 1; 
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#bunga-penutup-atas {
    top: -15px !important;   /* Digeser sedikit ke atas */
    right: -30px !important; /* Digeser sedikit ke kanan */
    transform-origin: top right;
}

#bunga-penutup-bawah {
    bottom: -15px !important; /* Digeser sedikit ke bawah */
    left: -30px !important;   /* Digeser sedikit ke kiri */
    transform-origin: bottom left;
}

.penutup-container {
    padding: 20px;
    z-index: 10;
    position: relative;
}

/* =========================================================
   PERBAIKAN KOTAK EVENT & TAMBAHAN BUNGA
   ========================================================= */
.event-card .event-icon,
.event-card h3,
.event-card .event-info,
.event-card .btn-lokasi {
    position: relative;
    z-index: 10;
}

/* =========================================================
   PERBAIKAN KOTAK EVENT & TAMBAHAN BUNGA (DIPERKECIL)
   ========================================================= */
.bunga-event {
    position: absolute;
    width: 120px !important; /* Ukuran dipangkas dari 250px menjadi 140px */
    height: auto;
    z-index: 1; 
    opacity: 0.4; 
    pointer-events: none;
}

#bunga-akad {
    top: -20px !important; /* Digeser sedikit ke luar agar pas di sudut */
    left: -30px !important;
    transform-origin: top left;
}

#bunga-resepsi {
    top: -20px !important; /* Digeser sedikit ke luar agar pas di sudut */
    right: -25px !important;
    left: auto !important; 
    transform-origin: top right; 
}

/* =========================================================
   BISMILLAH DI PROFIL (DENGAN EFEK ZOOM OUT)
   ========================================================= */
.img-bismillah {
    width: 300px; 
    max-width: 100%;
    height: auto;
    margin: 0 auto 25px auto;
    display: block;
    filter: drop-shadow(0px 0px 10px rgba(255, 255, 255, 0.9));
}

.img-bismillah.reveal {
    opacity: 0;
    transform: scale(1.4) !important; 
}

.img-bismillah.reveal.active {
    opacity: 1;
    transform: scale(1) !important; 
    transition: all 2.5s cubic-bezier(0.16, 1, 0.3, 1) !important; 
}

/* =========================================================
   POSISI BUNGA DI KOTAK MEMPELAI (DIPERKECIL)
   ========================================================= */
.bunga-mempelai {
    position: absolute;
    max-width: none !important; 
    width: 130px !important; /* Ukuran diperkecil dari 225px menjadi 130px */
    z-index: 0; 
    opacity: 0.9;
    border: none !important; 
    border-radius: 0 !important; 
    box-shadow: none !important;
    background: transparent !important;
}

#bunga-mempelai-wanita {
    top: -12px !important;  
    right: -25px !important; 
}

#bunga-mempelai-pria {
    top: -12px !important;   
    left: -25px !important;  
}

.mempelai-card img:not(.bunga-mempelai), 
.mempelai-card h2, 
.mempelai-card p {
    position: relative;
    z-index: 2;
}

/* =========================================================
   BINGKAI FOTO MEWAH (UKIRAN EMAS MARUN) & CROP JENDELA
   ========================================================= */
.foto-berbingkai_mewah {
    position: relative;
    display: inline-block;
    background: transparent !important; 
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.foto-berbingkai_mewah::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/bingkai_mewah_v2.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 10; 
    pointer-events: none; 
}

/* 1. UKURAN COVER & PENUTUP (Ukuran Sedang) */
#cover-page .foto-berbingkai_mewah,
#penutup .foto-berbingkai_mewah {
    width: 225px !important;  
    height: 310px !important; 
    margin-bottom: 5px !important; /* Jarak sangat dekat dengan teks nama */
}

/* 2. UKURAN HERO & PROFIL MEMPELAI (Ukuran Lebih Kecil) */
#hero .foto-berbingkai_mewah,
.mempelai-card .foto-berbingkai_mewah {
    width: 225px !important;  
    height: 310px !important; 
   margin-bottom: 1px !important; /* Diperkecil dari 15px */
}

/* 3. SETTING FOTO AGAR PAS MASUK LUBANG BINGKAI EMAS */
#cover-page .foto-berbingkai_mewah img.foto-profil_isi,
#hero .foto-berbingkai_mewah img.foto-profil_isi,
#penutup .foto-berbingkai_mewah img.foto-profil_isi,
.mempelai-card .foto-berbingkai_mewah img.foto-profil_isi {
    width: 65% !important;   
    height: 72% !important;  
    
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important; 
    
    border-radius: 1000px 1000px 0 0 !important; 
    object-fit: cover !important;
    border: none !important;
    z-index: 1; 
}

/* =========================================================
   PERBAIKAN JARAK TEKS DI COVER & HERO
   ========================================================= */
#cover-page .title-small {
    margin-top: 0px !important; 
}
#hero .title-small {
    margin-bottom: 10px !important; 
}
#cover-page .tamu-section,
#cover-page .nama-mempelai,
#cover-page .title-small,
#cover-page .foto-berbingkai_mewah {
    position: relative;
    z-index: 20 !important; 
}

/* =========================================================
   ANIMASI MUNCUL & MENGAMBANG (COVER, HERO, PENUTUP)
   ========================================================= */
#cover-page .foto-berbingkai_mewah {
    opacity: 0; 
    animation: entrancePhoto 3s ease 1s forwards, floatPhoto 4s ease-in-out 4s infinite !important;
    will-change: transform, opacity;
}

#cover-page .title-small,
#cover-page .nama-mempelai {
    opacity: 0; 
    animation: entranceText 3s ease 1s forwards !important; 
    will-change: transform, opacity;
}

#cover-page .tamu-section p,
#cover-page .nama-tamu,
#cover-page .disclaimer {
    opacity: 0; 
    animation: entranceText 3s ease 1.5s forwards !important;
    will-change: transform, opacity;
}

#btn-buka {
    animation: entranceButton 2s ease 1.8s forwards, pulseButton 3s ease 3.8s infinite !important;
}

#hero .foto-berbingkai_mewah {
    opacity: 0; 
    animation: none !important; 
}

#hero .foto-berbingkai_mewah.active {
    animation: entrancePhoto 2s ease forwards, floatPhoto 4s ease-in-out 2s infinite !important;
}

#penutup .foto-berbingkai_mewah {
    animation: floatPhoto 4s ease-in-out infinite !important;
}

#penutup .nama-mempelai {
    margin-top: 15px !important;    
    margin-bottom: 20px !important; 
}
/* =========================================================
   PENGAMAN ANIMASI DI BALIK COVER
   ========================================================= */
body.locked #main-content .reveal {
    opacity: 0 !important;
    visibility: hidden !important;
    transition: none !important;
    animation: none !important;
}
/* =========================================================
   ANIMASI KHUSUS TOMBOL SAVE THE DATE
   ========================================================= */
.reveal-tombol {
    opacity: 0;
    transform: translateY(50px);
    will-change: opacity, transform;
    transition: all 0.5s ease-out !important;
    pointer-events: none; /* Mencegah tombol bisa diklik saat sedang sembunyi */
}

.reveal-tombol.active {
    opacity: 1;
    transform: translateY(0);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1) !important;
    pointer-events: auto; /* Tombol bisa diklik kembali */
}

/* =========================================================
   KUNCI AREA HALAMAN GIFT (AGAR BENDERA TIDAK TERBANG KE ATAS)
   ========================================================= */
#gift {
    position: relative;
    overflow: hidden;
}
/* =========================================================
   GANTI FONT UTAMA MENJADI AMORESA
   ========================================================= */
.nama-mempelai,
.mempelai-card h2,
.title-section,
.event-card h3,
.title-gift,
.title-rsvp,
.title-gallery {  /* <--- Tambahkan .title-gallery di sini */
    font-family: 'Amoresa', cursive !important;
}
@font-face {
    font-family: 'Amoresa';
    src: url('assets/amoresa.otf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
/* =========================================================
   PERBAIKAN REVEAL TOMBOL AKAD & RESEPSI (ANTI BOCOR)
   ========================================================= */

/* 1. Bebaskan area luar, tapi KUNCI KEMBALI area kotak agar bunga rapi */
#event, .event-container {
    overflow: visible !important;
}

.event-card {
    overflow: hidden !important; /* Mengembalikan bunga agar terpotong rapi di dalam kotak */
}

/* 2. Modifikasi animasi tombol di dalam kotak (Ganti Geser menjadi Zoom) */
.event-card .reveal {
    position: relative;
    z-index: 50 !important;
    opacity: 0;
    transform: scale(0.8) !important; /* Menggunakan efek membesar, bukan meluncur dari bawah */
    transition: all 0.6s ease-out;
}

.event-card .reveal.active {
    opacity: 1;
    transform: scale(1) !important; /* Kembali ke ukuran normal */
}
/* =========================================================
   PERKECIL JUDUL EVENT, GIFT, & KIRIM UCAPAN
   ========================================================= */
#event h2,
#gift h2,
#rsvp h2,          /* Tambahan untuk judul di halaman RSVP/Ucapan */
#ucapan h2 {       /* Berjaga-jaga kalau id section-mu bernama #ucapan */
    font-size: 2.5rem !important; 
    margin-bottom: 15px !important; 
}
/* =========================================================
   DESAIN TOMBOL NAVIGASI HALAMAN PENUTUP
   ========================================================= */
/* Menargetkan semua tombol yang ada di dalam section penutup */
#penutup a.btn,
#penutup button,
.penutup-section a,
.penutup-section button {
    background-color: #8c2243 !important; /* Warna dasar marun */
    color: #ffffff !important;            /* Warna teks putih */
    border: 1.5px solid #ffffff !important; /* Border garis putih */
    padding: 10px 22px !important;
    border-radius: 25px !important;       /* Sudut membulat elegan */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;                  /* Jarak ikon dan teks */
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 10px rgba(140, 34, 67, 0.3) !important;
}

/* Memastikan warna Ikon (SVG atau FontAwesome) menjadi putih */
#penutup a.btn svg,
#penutup button svg,
.penutup-section a svg,
.penutup-section button svg {
    fill: none !important;
    stroke: #ffffff !important; /* Garis ikon SVG putih */
    width: 18px !important;
    height: 18px !important;
}

#penutup a.btn i,
#penutup button i,
.penutup-section a i,
.penutup-section button i {
    color: #ffffff !important; /* Ikon FontAwesome putih */
}
.bunga-corner {
    opacity: 0; 
    visibility: hidden; 
    pointer-events: none;
    /* (kode posisi absolute, width, dll biarkan utuh) */
}
/* =========================================================
   PERBAIKAN BUNGA AYAT (WAJIB SEMBUNYI DI AWAL)
   ========================================================= */
.bunga-ayat,
#bunga-ayat-atas,
#bunga-ayat-bawah {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
/* =========================================================
   HALAMAN GALLERY
   ========================================================= */
/* Background foto berlapis warna biru (theme color) yang transparan */
.bg-gallery {
    background: linear-gradient(rgba(21, 6, 6, 0.9), rgba(113, 31, 31, 0.75)), url('assets/bg_galeri.webp') center/cover;
    background-attachment: fixed;
}

/* 2. Menyesuaikan warna judul agar kontras di background terang */
#gallery .title-gallery {
    color: #ffffff; /* Menggunakan marun tema utama */
    font-size: 2.8rem;
    color: #ffffff;
    margin-bottom: 5px;
 }

/* 3. Grid Galeri (Sedikit dilonggarkan untuk efek foto miring) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 10px 15px 40px 15px;
}

/* 4. Efek Bingkai Cetakan Polaroid Vintage */
.gallery-item {
    background: #ffffff; /* Kertas putih */
    padding: 8px 8px 30px 8px; /* Ruang kosong di bawah khas Polaroid */
    border-radius: 3px;
    box-shadow: 2px 5px 15px rgba(0, 0, 0, 0.08), 0 0 1px rgba(0, 0, 0, 0.05); /* Bayangan lembut */
    transition: transform 0.4s ease, box-shadow 0.4s ease, z-index 0.4s ease;
    position: relative;
    z-index: 1;
    /* Tekstur kertas halus menggunakan trik SVG bawaan CSS */
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
}

/* 5. Efek Sebar (Scattered) - Foto dimiringkan acak agar natural */
.gallery-item:nth-child(even) { transform: rotate(3deg); }
.gallery-item:nth-child(odd) { transform: rotate(-3deg); }
.gallery-item:nth-child(3) { transform: rotate(2deg); }
.gallery-item:nth-child(4) { transform: rotate(-4deg); }

/* Hover: Gambar maju ke depan, lurus, dan membesar (interaktif) */
.gallery-item:hover {
    transform: scale(1.1) rotate(0deg);
    z-index: 10;
    box-shadow: 5px 15px 30px rgba(0, 0, 0, 0.15);
}

/* 6. Foto di dalam bingkai dengan filter Analog/Retro */
.gallery-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 2px;
    /* Filter warna sepia tipis khas film lawas */
    filter: sepia(25%) contrast(95%) saturate(85%);
    transition: filter 0.5s ease;
}

/* Saat disentuh, foto kembali cerah dan tajam (Fresh) */
.gallery-item:hover img {
    filter: sepia(0%) contrast(105%) saturate(110%);
}

@media (min-width: 600px) {
    .gallery-item img { height: 240px; }
    .gallery-item:nth-child(3), .gallery-item:nth-child(6) { grid-column: auto; } /* Reset layout bento grid lawas */
}



/* =========================================================
   VARIAN UKURAN GALERI (BENTO GRID STYLE)
   ========================================================= */

/* Menargetkan foto urutan ke-3 dan ke-6 untuk membentang penuh (full width) */
.gallery-item:nth-child(3),
.gallery-item:nth-child(6) {
    grid-column: 1 / -1; /* Trik agar elemen mengambil seluruh kolom yang tersedia */
}

/* Penyesuaian tinggi khusus untuk foto yang lebar (Opsional) */
.gallery-item:nth-child(3) img,
.gallery-item:nth-child(6) img {
    height: 220px; /* Dibuat sedikit lebih tinggi dari foto kotak agar proporsional */
}

/* Penyesuaian untuk Desktop (Jika layar lebih besar dari 600px) */
@media (min-width: 600px) {
    .gallery-item:nth-child(3) img,
    .gallery-item:nth-child(6) img {
        height: 280px; /* Di layar besar, foto horizontal dibuat lebih megah */
    }
}

/* =========================================================
   OUR STORY (TEMA: SIMETRIS & ELEGAN MINIMALIS)
   ========================================================= */

/* Jarak antar kartu yang proporsional */
.story-wrapper .title-gallery {
    margin-bottom: 50px !important;
}
.story-wrapper .story-card + .story-card {
    margin-top: 60px; 
    position: relative;
}

/* 1. Kartu Latar (Presisi di tengah layar) */
.story-card {
    background: #ffffff;
    border: 1px solid #f0e6e1;
    padding: 30px 25px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    max-width: 450px;
    margin: 0 auto; /* Tengah sempurna */
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center; /* Memaksa semua konten ke tengah */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

/* 2. Bingkai Foto (Lurus & Presisi) */
.story-image-rect {
    background: #ffffff;
    padding: 8px; /* Bingkai foto sama sisi */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 280px;
    height: 190px;
    border-radius: 6px;
    margin-bottom: 25px; /* Jarak simetris ke judul */
    position: relative;
    z-index: 5;
    
    /* MENGHAPUS SEMUA EFEK MIRING & TARIKAN KE ATAS */
    transform: none !important;
}

/* Menghapus rotasi ganjil/genap dari kode sebelumnya */
.story-card:nth-child(even) .story-image-rect,
.story-card:nth-child(odd) .story-image-rect {
    transform: none !important;
}

/* Gambar di dalam bingkai */
.story-image-rect img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    filter: sepia(10%) contrast(100%) saturate(95%); /* Tone hangat tipis */
    transition: filter 0.4s ease;
}

.story-card:hover .story-image-rect img {
    filter: sepia(0%) contrast(105%) saturate(110%); /* Cerah saat disentuh */
}

/* 3. Tipografi Cerita (Rata Tengah Sempurna) */
.story-details {
    width: 100%;
}

.story-subtitle {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #8c2243; /* Marun tema utama */
    margin-bottom: 8px;
    text-transform: uppercase;
}

.story-date {
    font-family: 'Amoresa', cursive; 
    font-size: 1.5rem; 
    color: #888888;
    margin-bottom: 15px;
}

.story-text {
    font-size: 0.85rem;
    line-height: 1.8;
    color: #555555;
    padding: 0 15px;
}
/* =========================================================
   PERBAIKAN JARAK ANTAR KARTU OUR STORY
   ========================================================= */
.story-wrapper .divider-estetik {
    /* Memberikan ruang kosong yang lega (60px) di atas dan bawah garis pembatas */
    margin: 60px auto !important; 
}

/* Jika kamu merasa kartu tanpa garis (kartu terakhir) butuh jarak bawah juga */
.story-wrapper .story-card {
    margin-bottom: 30px;
}
/* =========================================================
   KUSTOMISASI SIMBOL & (DAN) PADA NAMA MEMPELAI
   ========================================================= */
.simbol-dan {
    font-size: 0.8em; /* Mengecilkan ukuran simbol menjadi 60% dari ukuran nama */
    display: inline-block;
    vertical-align: middle; /* Menjaga agar posisinya sejajar di tengah secara vertikal */
    margin: 0 10px; /* Memberi sedikit jarak bernapas di kiri dan kanan */
    color: inherit; 
    opacity: 0.85; /* Sedikit ditransparansikan agar nama "Irma" dan "Yaya" lebih mendominasi */
}
/* =========================================================
   ANIMASI ZOOM IN SUPER DRAMATIS KHUSUS GALERI & STORY
   ========================================================= */

/* 1. Posisi Awal (Sebelum di-scroll): Transparan & Ukuran Mengecil (Zoom Out) */
.gallery-item.reveal:not(.active),
.story-wrapper .reveal:not(.active), 
.story-card.reveal:not(.active) {
    opacity: 0 !important;
    transform: scale(0.6) !important; /* Mulai dari ukuran 60% */
}

/* 2. Saat Muncul: Opacity penuh & Ukuran kembali normal (Zoom In) */
.gallery-item.reveal.active,
.story-wrapper .reveal.active, 
.story-card.reveal.active {
    opacity: 1 !important;
    transform: scale(1) !important; /* Kembali ke ukuran 100% */
    
    /* Durasi diperlambat menjadi 5 detik */
    transition-property: opacity, transform !important;
    transition-duration: 5s !important; 
    transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* 3. Jeda Antar Foto (Cascade Effect) */
/* Diberi jarak setengah detik agar efek bergantiannya sangat kentara */
.delay-1 { transition-delay: 0.3s !important; }
.delay-2 { transition-delay: 0.8s !important; }
.delay-3 { transition-delay: 1.3s !important; }
.delay-4 { transition-delay: 1.8s !important; }
.delay-5 { transition-delay: 2.3s !important; }
.delay-6 { transition-delay: 2.8s !important; }