* {
    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: #79174c;
}

.nama-mempelai {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    color: #79174c;
    margin: 10px 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: 0px; 
    background: transparent; 
    padding: 20px;
    width: 90%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    color: #79174c;
    position: relative; 
    z-index: 20; 
}

.nama-tamu {
    font-size: 1.3rem; 
    margin: 10px 0;
    font-weight: 600;
    color: #79174c;
}

#btn-buka {
    background-color: #79174c; 
    color: #ffffff; 
    border: 1px solid #79174c; 
    padding: 10px 20px; 
    font-size: 0.9rem;  
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    cursor: pointer;
    margin: 15px auto; 
    transition: 0.3s;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(121, 23, 76, 0.5);
    will-change: transform, opacity;
}

#btn-buka:hover {
    background-color: #5c1039;
    transform: scale(1.05);
}

.disclaimer {
    font-size: 0.7rem;
    opacity: 0.9;
    color: #79174c;
    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: #79174c !important;
}

.hero-bg .title-small {
    color: #79174c !important;
    font-weight: 400;
}

.intro-text {
    max-width: 600px;
    margin: 20px 0;
    line-height: 1.6;
    font-size: 0.8rem;
    color: #444; 
    font-weight: 500;
}

.tanggal {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #79174c; 
}

#countdown {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.cd-box {
    background: #79174c; 
    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; }

/* --- PROFIL SECTIONS (Halaman 3) --- */
#profil {
    background: url('assets/bg_hero1.webp') center/cover;
    background-attachment: fixed;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.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: #79174c;
    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: #79174c; 
}

.mempelai-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    width: 100%;
}

.mempelai-card {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.6); 
    padding: 20px;
    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.3);
    width: 100%;
    max-width: 350px;
    overflow: hidden !important; 
    border: 3px solid #79174c !important; 
    border-radius: 20px !important; 
    box-shadow: 0 10px 20px rgba(121, 23, 76, 0.1) !important; 
}

.mempelai-card h2 {
    font-family: 'Great Vibes', cursive;
    font-size: 1.7rem;
    color: #79174c; 
    margin-top: 15px;
    margin-bottom: 12px;
    line-height: 1.2;
}

.ortu {
    font-size: 0.85rem;
    color: #444;
    line-height: 1.8;
    font-weight: 500;
}

/* --- MUSIC TOGGLE BUTTON --- */
#music-toggle {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    background-color: rgba(121, 23, 76, 0.85); 
    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; 
    box-shadow: 0 4px 10px rgba(121, 23, 76, 0.4);
    transition: all 0.3s ease;
    justify-content: center;
    align-items: center;
}

#music-toggle:hover {
    transform: scale(1.1); 
    background-color: #79174c; 
}

/* --- TOMBOL SAVE THE DATE --- */
.calendar-actions {
    margin-top: 20px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    opacity: 0; 
    will-change: transform, opacity;
}
body:not(.locked) .calendar-actions { 
    animation: entranceButton 1.2s ease 1.1s forwards; 
}

#btn-save-date {
    background-color: rgba(255, 255, 255, 0.7); 
    color: #79174c;
    border: 2px solid #79174c;
    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: #79174c;
    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 {
    width: 60%; 
    max-width: 200px; 
    height: 2px; 
    background: linear-gradient(to right, transparent, #79174c, transparent);
    margin: 25px auto 25px auto; 
}

/* =========================================================
   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: 'Great Vibes', 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(255, 255, 255, 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: 'Great Vibes', cursive; 
    font-size: 2.7rem; 
    color: #79174c;
    margin-bottom: 15px;
    font-weight: 400; 
}

.event-info p {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #444;
}

.event-date { font-weight: 700; color: #79174c; }
.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: #79174c;
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #79174c;
    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: 'Great Vibes', cursive;
    font-size: 3.5rem; 
    color: #79174c; 
    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, #79174c 0%, #4a0c2e 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: #79174c; 
    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: 'Great Vibes', 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: #79174c; 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 #79174c; }
.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 (MUNCUL 3S, MENGHILANG HALUS 0.8S)
   ========================================================= */
.reveal {
    opacity: 0;
    will-change: opacity, transform;
    transition: all 0.8s ease-out !important; 
}

.reveal.active {
    opacity: 1; /* Tambahkan baris ini agar elemen terlihat */
    transition: all 3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.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); }

/* Nonaktifkan CSS Jadul saat tidak dilock */
body:not(.locked) #hero .nama-mempelai,
body:not(.locked) #hero .intro-text,
body:not(.locked) #hero .tanggal,
body:not(.locked) #countdown,
body:not(.locked) .calendar-actions {
    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); } }
@keyframes pulseButton { 0%, 100% { transform: scale(1); box-shadow: 0 4px 15px rgba(121, 23, 76, 0.5); } 50% { transform: scale(1.03); box-shadow: 0 6px 20px rgba(121, 23, 76, 0.7); } }

/* 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 SAKURA BERGUGURAN
   ========================================================= */
#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, #ffb7c5, #ffd1da); 
    border-radius: 15px 0px 15px 0px; 
    opacity: 0.8;
    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 BUNGA COVER
   ========================================================= */
.bunga-cover {
    position: absolute;
    width: 400px; 
    height: auto;
    z-index: 10;
    opacity: 0; 
    visibility: hidden; 
    pointer-events: none; 
}

#bunga-atas {
    top: -10px;     
    right: -10px; 
    transform-origin: top right;
}

#bunga-bawah {
    bottom: -10px; 
    left: -10px;   
    transform-origin: bottom left;
}

#bunga-kanan-bawah {
    bottom: -30px;  
    right: -70px;   
    transform-origin: bottom right; 
    width: 160px; 
}

@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
   ========================================================= */
#hero {
    position: relative;
    overflow: hidden; 
}

.bunga-hero {
    position: absolute;
    width: 370px; 
    height: auto;
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#bunga-hero-atas { top: -10px; left: -10px; transform-origin: top left; }
#bunga-hero-bawah { bottom: -10px; right: -10px; 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; 
}

/* =========================================================
   ANIMASI BUNGA PROFIL (HALAMAN 4)
   ========================================================= */
.bunga-profil {
    position: absolute; 
    width: 370px; 
    height: auto;
    z-index: 20; 
    opacity: 1 !important; 
    visibility: hidden;
    pointer-events: none;
}

#bunga-profil-atas { top: -25px; left: -25px; transform-origin: top left; }
#bunga-profil-bawah {
    bottom: -25px; 
    right: -25px;  
    transform-origin: bottom right;
}

#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 / TRANSPARAN)
   ========================================================= */
.bunga-ayat {
    position: absolute; 
    width: 370px; 
    height: auto;
    z-index: 20; 
    opacity: 1 !important; 
    visibility: hidden;
    pointer-events: none;
}

#bunga-ayat-atas {
    top: -15px; 
    left: -15px;
    transform-origin: top left;
}

#bunga-ayat-bawah {
    bottom: -20px;
    right: -20px;
    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: #79174c !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: #ffffff; 
    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;
}

.nav-btn svg {
    width: 20px; 
    height: 20px;
    display: block;
}

.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; /* Memberi jarak antara tombol navigasi dan watermark */
    padding-bottom: 20px;       /* Memberi sedikit ruang di dasar halaman */
}

.watermark-footer-inner {
    background-color: #79174c; 
    color: #ffffff; 
    padding: 5px 15px; 
    border-radius: 20px;
    font-size: 0.65rem; 
    font-weight: 300;   
    display: inline-block;
    box-shadow: 0 4px 8px rgba(121, 23, 76, 0.2);
    letter-spacing: 0.5px; 
margin-top: 20px !important; /* Tambahan dorongan khusus untuk kotak watermark */
}

.bunga-penutup {
    position: absolute;
    width: 350px; 
    height: auto;
    z-index: 1; 
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#bunga-penutup-atas {
    top: -10px;
    right: -10px;
    transform-origin: top right;
}

#bunga-penutup-bawah {
    bottom: -10px;
    left: -10px;
    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;
}

.bunga-event {
    position: absolute;
    width: 250px; 
    height: auto;
    z-index: 1; 
    opacity: 0.4; 
    pointer-events: none;
}

#bunga-akad {
    top: -10px;
    left: -10px;
    transform-origin: top left;
}
#bunga-resepsi {
    top: -10px;
    right: -10px;
    left: auto; 
    transform-origin: top right; 
}

/* =========================================================
   BISMILLAH DI PROFIL
   ========================================================= */
.img-bismillah {
    width: 280px; 
    max-width: 85%;
    height: auto;
    margin: 0 auto 25px auto;
    display: block;
    filter: drop-shadow(0px 0px 10px rgba(255, 255, 255, 0.9));
}

/* =========================================================
   POSISI BUNGA DI KOTAK MEMPELAI
   ========================================================= */
.bunga-mempelai {
    position: absolute;
    max-width: none !important; 
    width: 225px !important; 
    z-index: 0; 
    opacity: 0.9;
    border: none !important; 
    border-radius: 0 !important; 
    box-shadow: none !important;
    background: transparent !important;
}

#bunga-mempelai-wanita {
    top: -5px; 
    right: -5px;
}
#bunga-mempelai-pria {
    top: -5px; 
    left: -5px;
}

.mempelai-card img:not(.bunga-mempelai), 
.mempelai-card h2, 
.mempelai-card p {
    position: relative;
    z-index: 2;
}

/* =========================================================
   BINGKAI FOTO MEWAH (UKIRAN EMAS MARUN) DASAR
   ========================================================= */
/* Class utama untuk wadah */
.foto-berbingkai_mewah {
    position: relative;
    display: inline-block;
    /* Background gambar dihapus dari sini, dipindah ke pelapis */
    background: transparent !important; 
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* PELAPIS BINGKAI: Membuat layer baru yang posisinya di atas foto */
.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; /* KUNCI UTAMA: Layer ini posisinya di atas foto */
    pointer-events: none; /* Agar tidak memblokir ketukan layar */
}

/* Mengatur foto profil di dalam wadah berbingkai */
.foto-berbingkai_mewah img.foto-profil_isi {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50% !important;
    object-fit: cover; 
    border: none !important;
    z-index: 1; /* Foto ditaruh di layer bawah */
}
/* =========================================================
   SAPU JAGAT: UKURAN BINGKAI SEMUA HALAMAN (DIPERBESAR)
   ========================================================= */
#cover-page .foto-berbingkai_mewah,
/* 1. Ukuran Bingkai Luar Tetap (210px) */
#cover-page .foto-berbingkai_mewah,
#hero .foto-berbingkai_mewah,
#penutup .foto-berbingkai_mewah,
.mempelai-card .foto-berbingkai_mewah {
    width: 210px !important; 
    height: 210px !important;
}

/* 2. Ukuran Foto Profil Diperbesar (Dari 160px ke 180px) agar Pas */
#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: 180px !important;
    height: 180px !important;
}

/* Margin Jarak Bawah Bingkai Foto Tetap Dipertahankan */
#cover-page .foto-berbingkai_mewah {
    margin-bottom: 15px !important; 
}
#hero .foto-berbingkai_mewah {
    margin-bottom: 40px !important; 
}
#penutup .foto-berbingkai_mewah {
    margin-bottom: 20px !important;
}

/* =========================================================
   JARAK TEKS DI COVER & HERO
   ========================================================= */
#cover-page .title-small {
    margin-top: 25px !important; /* Mendorong jauh teks dari foto cover */
}

#hero .title-small {
    margin-bottom: 10px !important; /* Mendorong jauh The Wedding Of dari Nama Mempelai */
}

/* =========================================================
   ANIMASI COVER (LAMBAT 3 DETIK)
   ========================================================= */
#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;
}

/* =========================================================
   GABUNGAN ANIMASI ZOOM IN & MENGAMBANG DI HERO & PENUTUP
   ========================================================= */
#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;
}
/* =========================================================
   MEMBERI JARAK TEKS NAMA MEMPELAI DI HALAMAN PENUTUP
   ========================================================= */
#penutup .nama-mempelai {
    margin-top: 15px !important;    /* Jarak dari tulisan "Kami Yang Berbahagia" */
    margin-bottom: 20px !important; /* Jarak ke tulisan "Atas perhatian dan pengertiannya..." */
}
/* =========================================================
   ANIMASI KHUSUS TOMBOL SAVE THE DATE (DIPERCEPAT)
   ========================================================= */
.reveal-waktu {
    opacity: 0; 
    transform: translateY(30px); /* Menambahkan efek mulai dari bawah sedikit */
    will-change: opacity, transform;
    transition: all 0.5s ease-out !important; 
}

.reveal-waktu.active {
    opacity: 1; 
    transform: translateY(0); /* Meluncur ke posisi asli */
    /* KUNCI: Durasi dipercepat dari 2.5s menjadi 1.2s agar lebih gesit (snappy) */
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
/* =========================================================
   MEMPERLEBAR TEKS PENGANTAR DI HALAMAN HERO (LEBIH PAS)
   ========================================================= */
#hero .intro-text {
    width: 85% !important;        /* Sedikit diperlebar menjadi 85% */
    max-width: 380px !important;  /* Batas maksimal dinaikkan agar kalimatnya tidak terlalu banyak turun baris */
    margin: 20px auto !important; /* Tetap mengunci posisi di tengah */
    line-height: 1.8 !important;  
}

/* =========================================================
   MUNCULKAN TANGGAL & COUNTDOWN OTOMATIS SAAT COVER DIBUKA
   ========================================================= */
body:not(.locked) #hero .tanggal,
body:not(.locked) #countdown {
    opacity: 0;
    /* Muncul perlahan dari bawah ke atas setelah cover ditarik (delay 1.5 detik) */
    animation: entranceButton 1.2s ease 1.2s forwards !important; 
}/* =========================================================
   MENGATUR JARAK COUNTDOWN AGAR SEIMBANG
   ========================================================= */
#hero .tanggal {
    margin-bottom: 10px !important;  /* Mengurangi jarak bawah tanggal (aslinya 20px) */
}

#countdown {
    margin-top: 3px !important;     /* Menarik countdown ke atas mendekati tanggal */
    margin-bottom: 15px !important; /* Memberi jarak ke tombol Save the Date di bawahnya */
}

#hero .calendar-actions {
    margin-top: 10px !important;    /* Menyeimbangkan jarak dari countdown ke tombol */
}
/* =========================================================
   ANIMASI REVEAL ZOOM OUT UNTUK BISMILLAH
   ========================================================= */
/* Keadaan awal: Transparan dan Membesar 1.3x lipat */
.img-bismillah.reveal {
    opacity: 0;
    transform: scale(1.4) !important; 
}

/* Keadaan saat di-scroll: Muncul dan Mengecil ke ukuran asli (Zoom Out) */
.img-bismillah.reveal.active {
    opacity: 1;
    transform: scale(1) !important; 
    /* Durasi 2.5 detik agar efek zoom out-nya terasa halus dan elegan */
    transition: all 2.5s cubic-bezier(0.16, 1, 0.3, 1) !important; 
}
/* =========================================================
   HALAMAN GALLERY
   ========================================================= */
/* Background foto berlapis warna biru (theme color) yang transparan */
.bg-gallery {
    background: linear-gradient(rgba(49, 27, 41, 0.85), rgba(185, 91, 157, 0.75)), url('assets/bg_galeri.webp') center/cover;
    background-attachment: fixed;
}

.gallery-container {
    width: 100%;
    max-width: 800px;
    text-align: center;
}

.header-gallery {
    margin-bottom: 40px;
    padding: 0 15px;
}

.title-gallery {
    font-family: 'Great Vibes', cursive;
    font-size: 3.5rem;
    color: #ffffff;
    margin-bottom: 5px;
    text-shadow: 0px 0px 10px rgba(255, 255, 255, 0.5);
}

.subtitle-gallery {
    font-size: 0.8rem;
    color: #ffffff;
    font-weight: 500;
}

/* Menggunakan CSS Grid agar foto rapi berjajar 2 kolom */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 15px;
}

/* Kotak untuk membingkai gambar dengan gradasi emas */
.gallery-item {
    position: relative;
    width: 100%;
    padding: 4px; /* Ketebalan bingkai emas */
    background: linear-gradient(145deg, #bf3f70, #fcbade, #b32889, #fbb7e5, #aa1c95);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
}

.gallery-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px; /* Dibuat sedikit melengkung agar pas di dalam bingkai */
    transition: transform 0.4s ease;
}

/* Efek zoom saat foto disentuh/di-hover */
.gallery-item:hover img {
    transform: scale(1.08);
}

/* Trik Jeda Animasi (Staggered Animation): 
   Membuat foto muncul bergantian (satu per satu) bukan berbarengan 
*/
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.25s; }
.delay-3 { transition-delay: 0.4s; }
.delay-4 { transition-delay: 0.55s; }
.delay-5 { transition-delay: 0.7s; }
.delay-6 { transition-delay: 0.85s; }

/* Menyesuaikan grid jika layar lebih besar (opsional) */
@media (min-width: 600px) {
    .gallery-grid {
        /* UBAH DARI 3 MENJADI 2 KOLOM AGAR PAS DENGAN DESAIN */
        grid-template-columns: repeat(2, 1fr); 
        gap: 20px;
    }
    .gallery-item img {
        height: 200px;
        width: 100%;
        display: block;
    }
}

/* =========================================================
   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 (CSS PERBAIKAN TOTAL - PERSEGI PANJANG & PADAT)
   ========================================================= */

/* Kontainer utama kartu cerita */
.story-card {
    background: rgba(255, 255, 255, 0.744); /* Latar belakang transparan efek kaca */
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px; /* Padding lebih besar agar lebih lega */
    border-radius: 20px;
    max-width: 500px; /* Sedikit diperlebar agar proporsional */
    margin: 20px auto 0 auto;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex; /* Menggunakan Flexbox untuk tata letak */
    flex-direction: column; /* Tata letak vertikal */
    align-items: center; /* Rata tengah horizontal */
    text-align: center; /* Teks rata tengah */
}

/* Bingkai Foto Cerita (Emas Padat & Persegi Panjang) */
.story-image-rect {
    position: relative;
    width: 250px; /* Lebar persegi panjang */
    height: 180px; /* Tinggi persegi panjang, proporsional */
    margin-bottom: 25px; /* Jarak dengan teks */
    padding: 6px; /* Ketebalan bingkai emas (sama seperti gallery-item) */
    
    /* Gunakan gradasi emas padat yang sama seperti gallery-item dan bingkai foto profil */
    background: linear-gradient(145deg, #bf3f70, #fcbade, #b32889, #fbb7e5, #aa1c95);
    
    /* Sudut membulat kecil (persegi panjang), sama seperti gallery-item */
    border-radius: 12px; 
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    overflow: hidden; /* Pastikan foto terpotong rapi */
    display: flex; /* Untuk menempatkan gambar */
}

/* Foto cerita persegi panjang */
.story-image-rect img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Pastikan foto tidak melar */
    border-radius: 8px; /* Dibuat sedikit melengkung agar pas di dalam bingkai */
    display: block !important; /* Pastikan gambar ditampilkan */
}

/* Tipografi untuk Sub-judul, Tanggal, dan Teks Cerita */
.story-details {
    width: 100%;
}

.story-subtitle {
    font-size: 1.2rem; /* Sedikit diperbesar */
    font-weight: 700;
    letter-spacing: 2px;
    color: #1B2631; /* Warna teks keemasan agar masuk dengan tema */
    margin-bottom: 8px;
}

.story-date {
    font-size: 0.9rem; /* Sedikit diperbesar */
    font-style: italic;
    color: #1B2631; /* Warna teks keemasan agar masuk dengan tema */
    margin-bottom: 20px;
}

.story-text {
    font-size: 0.8rem; /* Sedikit diperbesar */
    line-height: 1.8; /* Baris lebih renggang agar mudah dibaca */
    font-weight: 400;
    color: #1B2631; /* Warna teks keemasan agar masuk dengan tema */
    padding: 0 10px; /* Padding samping agar teks tidak mentok */
}

/* OUR_LAMARAN (Komentar Diperbaiki) */

/* Memberikan jarak antar kartu cerita agar lebih menjauh */
.story-wrapper .story-card + .story-card {
    margin-top: 100px; /* Diperbesar dari 50px menjadi 100px */
    position: relative;
}
/* =========================================================
   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 */
}
/* =========================================================
   OPTIMASI UKURAN BUNGA BERDASARKAN UKURAN HP (Bertingkat & Halus)
   ========================================================= */

/* 1. HP Layar Besar (Maks 430px) - iPhone Pro Max, Samsung Ultra dll */
@media (max-width: 430px) {
    .bunga-cover { width: 380px !important; } 
    #bunga-kanan-bawah { width: 155px !important; right: -35px !important; }
    .bunga-hero, .bunga-profil, .bunga-ayat { width: 350px !important; } 
    .bunga-penutup { width: 325px !important; } 
    .bunga-event { width: 235px !important; } 
    .bunga-mempelai { width: 215px !important; } 
}

/* 2. HP Layar Sedang/Standar (Maks 395px) - Termasuk Samsung Galaxy S8+ (360px) & iPhone 12/13/14 biasa */
/* Kategori ini diturunkan batasnya ke 395px dan ukuran bunganya diperbesar sedikit dari versi sebelumnya */
@media (max-width: 395px) {
    .bunga-cover { width: 320px !important; } /* Diperbesar dari 280px */
    #bunga-kanan-bawah { width: 135px !important; right: -30px !important; }
    .bunga-hero, .bunga-profil, .bunga-ayat { width: 290px !important; } /* Diperbesar dari 250px */
    .bunga-penutup { width: 260px !important; } /* Diperbesar dari 230px */
    .bunga-event { width: 190px !important; } /* Diperbesar dari 170px */
    .bunga-mempelai { width: 180px !important; } /* Diperbesar dari 160px */
}

/* 3. HP Layar Kecil & Sangat Kecil (Maks 340px) - iPhone SE generasi pertama, Android Lama */
/* Batas ini diturunkan ke 340px agar S8+ (360px) tidak ikut masuk ke sini */
@media (max-width: 340px) {
    .bunga-cover { width: 240px !important; }
    #bunga-kanan-bawah { width: 100px !important; right: -20px !important; }
    .bunga-hero, .bunga-profil, .bunga-ayat { width: 210px !important; }
    .bunga-penutup { width: 180px !important; }
    .bunga-event { width: 140px !important; }
    .bunga-mempelai { width: 130px !important; }
    
    /* Penyesuaian Teks agar muat di layar sempit */
    .nama-mempelai { font-size: 2.3rem !important; }
    .title-section, .title-gift, .title-rsvp, .title-gallery { font-size: 2.2rem !important; }
    .teks-salam-arab { font-size: 1.5rem !important; }
}
/* =========================================================
   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; }