:root {
    --navy-dark: #1e2a44;
    --white: #ffffff;
    --pink-accent: #f48fb1;
    --bg-light: #f0f2f5;
    --text-muted: #666666;
    --soft-pink: #F2AEBB;
    --wave-layer-dark: #f8d7e3;
}

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

body {
    background-color: var(--bg-light);
    display: flex;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    color: #444;
    overflow-x: hidden; /* Mencegah scroll horizontal */
}

body.no-scroll {
    overflow: hidden;
    height: 100vh;
}

/* CONTAINER UTAMA (PORTRAIT) */
.mobile-frame {
    width: 100%;
    max-width: 450px;
    min-height: 100vh;
    background-color: transparent; /* Agar cover-bg terlihat */
    position: relative;
    box-shadow: 0 0 50px rgba(0,0,0,0.1);
}

/* COVER SECTION */
.cover {
    height: 100vh;
    width: 100%;
    max-width: 450px; /* Samakan dengan mobile-frame */
    position: fixed; /* Menempel di layar */
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    z-index: 100; /* Pastikan di depan isi undangan */
    
    /* Transition untuk efek naik */
    transition: transform 1s cubic-bezier(0.65, 0, 0.35, 1); /* Efek percepatan yang halus */
    will-change: transform; /* Optimasi performa animasi */
}

/* Class untuk memicu animasi naik */
.cover.move-up {
    transform: translateY(-100%); /* Geser ke atas 100% dari tingginya */
}

.cover-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* GANTI 'image_0.png' dengan file gambar Anda atau link base64 */
    background-image: url('assets/img/depan.jpeg'); 
    background-size: cover;
    background-position: center top;
    z-index: -2;
}

.cover-bg-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* GANTI 'image_0.png' dengan file gambar Anda atau link base64 */
    background-image: url('assets/img/depan.jpeg'); 
    background-size: cover;
    background-position: center top;
    z-index: -2;
}

.dark-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 30%, rgba(30,42,68,0.9) 100%);
    z-index: -1;
}

.cover-content {
    z-index: 1;
    padding: 20px;
    margin-top: 35vh; /* Menyesuaikan posisi teks agar area bawah foto */
}

.pre-title { letter-spacing: 4px; font-size: 0.75rem; font-weight: 300; text-transform: uppercase; }
.couple-names { font-family: 'Playfair Display', serif; font-size: 3rem; margin: 15px 0; line-height: 1.2; }
.guest-name { font-size: 1.8rem; font-weight: 700; margin-top: 5px; }

.btn-buka {
    background: var(--navy-dark);
    color: var(--white);
    border: 1.5px solid var(--white);
    padding: 12px 35px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 25px;
    transition: 0.3s;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.btn-buka:hover { background: var(--white); color: var(--navy-dark); }

/* MAIN CONTENT (ISI UNDANGAN) */
.main-content {
    display: none; /* Sembunyikan sepenuhnya di awal */
    background-color: var(--white);
}

.main-content.active {
    display: block; /* Muncul setelah tombol diklik */
}

.section { text-align: center; margin-bottom: 80px; }
.salam { font-weight: 600; color: var(--navy-dark); margin-bottom: 10px; }
.quote { font-style: italic; font-size: 0.9rem; line-height: 1.8; color: var(--text-muted); padding: 0 10px;}

.story-card {
    background: var(--pink-soft);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 15px;
    text-align: left;
    border-left: 4px solid var(--pink-accent);
}
.story-card h5 { color: var(--navy-dark); margin-bottom: 5px; }
.story-card p { font-size: 0.85rem; line-height: 1.5; }

/* EVENT CARD */
.event-card {
    background: #fffcfd;
    border: 1px solid #fce4ec;
    padding: 30px;
    border-radius: 20px;
    margin-top: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}
.event-card h4 { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--pink-accent); margin-bottom: 10px; }
.event-info p { font-size: 0.9rem; color: #555; margin-bottom: 5px; }

.btn-action {
    display: inline-block;
    margin-top: 20px;
    background: var(--navy-dark);
    color: var(--white);
    text-decoration: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Ornament Bunga */
.ornament { font-size: 1.5rem; color: var(--pink-accent); margin-bottom: 10px; }

/* ANIMASI MUNCUL SAAT SCROLL */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    transition: 1s ease-out;
}
.animate-up.show {
    opacity: 1;
    transform: translateY(0);
}

/* MOBILE RESPONSIVE */
@media (max-width: 450px) {
    .mobile-frame { box-shadow: none; }
    .cover { max-width: 100%; } /* Cover full lebar di HP */
}

.section-full {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-bottom: 0 !important; /* Paksa margin jadi 0 */
}

.full-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('assets/img/sakura.jpg'); /* Menggunakan gambar yang sama */
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.full-content {
    z-index: 1;
    padding: 20px;
    width: 100%;
}

.full-content .quote {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.6;
    margin: 20px 0;
    color: var(--white);
}

.full-content .sura {
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--pink-accent);
}

/* Indikator Scroll Sederhana */
.scroll-indicator {
    margin-top: 50px;
    font-size: 0.7rem;
    opacity: 0.8;
    animation: bounce 2s infinite;
}

.arrow {
    width: 1px;
    height: 40px;
    background: var(--white);
    margin: 10px auto;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

/* --- OVAL CARD COVER --- */
.oval-card-wrapper {
    position: absolute;
    top: 50%; /* Tengah secara vertikal */
    left: 50%;
    transform: translate(-50%, -50%); /* Menyesuaikan agar benar-benar tengah */
    z-index: 5;
    width: 90%;
    max-width: 350px;
    display: flex;
    justify-content: center;
}

.oval-card {
    /* Menggunakan background transparan dengan sedikit warna putih */
    background: rgba(255, 255, 255, 0.15); 
    
    /* EFEK GLASSMORPHISM: Memberikan blur pada apa yang ada di belakangnya */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Dukungan untuk Safari */
    
    /* Garis tepi tipis agar bentuk oval tetap tegas */
    border: 1px solid rgba(255, 255, 255, 0.3);
    
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 200px 200px 0 0;
    
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
}

/* Bagian Foto di Card */
.card-photo {
    flex: 1; /* Mengambil sisa ruang vertical */
    overflow: hidden;
    position: relative;
}

.card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Foto tidak distorsi */
    object-position: center top; /* Fokus pada wajah */
}

/* Bagian Teks di Card */
.card-details {
    padding: 30px 20px 40px 20px;
    text-align: center;
    background: transparent; 
    color: var(--white);
}

.card-photo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, transparent, rgba(30, 42, 68, 0.5));
}

.card-details .pre-wedding {
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--pink-accent);
    font-weight: 600;
}

.card-details h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin: 10px 0;
    line-height: 1.2;
}

.card-details .date {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

/* Penyesuaian Quote Takdir agar tidak bertabrakan */
.quote-under {
    position: absolute;
    bottom: 50px; /* Letakkan di bagian bawah layar */
    width: 100%;
    padding: 20px;
    z-index: 1;
}

/* Animasi Muncul Card (Scale In) */
.animate-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: 1s ease-out;
}

.main-content.active .animate-scale {
    opacity: 1;
    transform: scale(1);
}

/* --- ANIMASI FLOATING (Melayang Halus) --- */
@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.music-control {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 55px;
    height: 55px;
    z-index: 9999;
    cursor: pointer;
    /* Efek Glassmorphism untuk Background */
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    
    /* Memastikan konten di dalamnya tetap di tengah */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.music-disc {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.music-icon {
    font-size: 1.4rem;
    line-height: 1;
    /* Menghilangkan margin bawaan emoji jika ada */
    display: inline-block; 
    pointer-events: none;
}

/* Animasi Rotasi yang Stabil */
.rotating {
    animation: rotateDisc 4s linear infinite;
}

@keyframes rotateDisc {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Hover effect */
.music-control:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
}

.floating-anim {
    animation: floating 4s ease-in-out infinite;
}

/* --- EFEK MUNCUL BERGANTIAN (Fade In Up) --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Muncul saat main-content aktif */
.main-content.active .fade-in-up {
    opacity: 1;
    transform: translateY(0);
}

/* Delay masing-masing elemen agar muncul satu per satu */
.delay-1 { transition-delay: 0.3s; }
.delay-2 { transition-delay: 0.5s; }
.delay-3 { transition-delay: 0.7s; }
.delay-4 { transition-delay: 1.2s; }

/* --- EFEK PARALLAX ZOOM (Background bergerak pelan) --- */
@keyframes slowZoom {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.parallax {
    animation: slowZoom 20s linear infinite;
}

/* --- EFEK GLOW PADA TOMBOL --- */
.btn-save {
    background: var(--navy-dark);
    color: var(--white);
    padding: 5px 20px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 25px;
    transition: 0.3s;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;

    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(244, 143, 177, 0.4);
}

.btn-save::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255,255,255,0.4);
    transform: rotate(30deg);
    transition: none;
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -60%; }
    20% { left: 120%; }
    100% { left: 120%; }
}

/* Oval Card Border Glow (Opsional) */
.oval-card {
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(5px); /* Sedikit efek kaca pada bagian putih */
}


/* --- AYAT SECTION STYLING --- */
.section-ayat {
    margin-top: 0 !important;
    margin-bottom: 0;
    width: 100%;
    /* Gunakan background Soft Pink Watercolor */
    background-color: var(--wave-layer-dark); 
    /* background-image: url('assets/img/langit.jpg'); */
    padding: 60px 20px; /* Padding diatur di dalam agar konten tidak mepet atas/bawah */
}

.ayat-container {
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

.ayat-image {
    width: 150px; /* Sesuaikan ukuran gambar */
    height: 150px;
    border-radius: 50%; /* Membuat gambar lingkaran */
    overflow: hidden;
    margin: 0 auto 20px auto; /* Centered, dengan jarak ke bawah */
    border: 3px solid var(--pink-main); /* Bingkai warna tema */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.ayat-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Foto tidak distorsi */
    object-position: center;
}

.ayat-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    line-height: 2; /* Jarak antar baris agar nyaman dibaca */
    color: var(--navy-dark);
    font-style: italic;
    margin: 15px 0;
}

.ayat-sourcer {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--navy-dark); /* Menggunakan warna Pink tema Anda */
    letter-spacing: 1px;
    margin-top: 10px;
}

/* Ornamen Bunga Kecil */
.ornament-top, .ornament-bottom {
    font-size: 1.2rem;
    color: var(--white);
    opacity: 0.6;
}

.ornament-top {
    margin-bottom: 5px;
}

.ornament-bottom {
    margin-top: 5px;
}

/* Tambahkan garis halus di atas dan bawah jika ingin lebih formal */
.ayat-container::before, .ayat-container::after {
    content: '';
    display: block;
    width: 50px;
    height: 1px;
    background-color: var(--soft-pink);
    margin: 0 auto;
    opacity: 0.3;
}

/* --- ANIMASI BUNGA (Pulse) --- */
@keyframes softPulse {
    0% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; color: var(--pink-main); }
    100% { transform: scale(1); opacity: 0.6; }
}

.pulse-anim {
    display: inline-block;
    animation: softPulse 3s ease-in-out infinite;
}

/* --- ANIMASI GAMBAR (Floating) --- */
@keyframes floatImg {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.floating-img {
    animation: floatImg 5s ease-in-out infinite;
    box-shadow: 0 10px 20px rgba(244, 143, 177, 0.2);
}

/* --- ANIMASI TEKS (Smooth Reveal) --- */
.fade-in-text {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(10px);
    transition: all 1.5s ease-out;
}

/* Muncul saat scroll sampai ke section ini */
.section-ayat.show .fade-in-text {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

.delay-text {
    transition-delay: 0.8s;
}

/* --- BACKGROUND WATERCOLOR EFFECT --- */
.section-ayat {
    position: relative;
    overflow: hidden;
    background: var(--wave-layer-dark);
}

/* Tambahan hiasan transparan di latar belakang */
.section-ayat::before {
    content: ""; /* Kosongkan konten karena kita menggunakan image */
    position: absolute;
    bottom: 0;
    right: 0;
    width: 150px; /* Sesuaikan ukuran gambar hiasan */
    height: 150px;
    /* GANTI URL DI BAWAH DENGAN GAMBAR BUNGA/ORNAMEN ANDA */
    background-image: url('assets/img/bunga.png'); 
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom right;
    opacity: 0.3; 
    transform: rotate(15deg) translate(-10px, 10px);
    z-index: 0;
    pointer-events: none; /* Agar tidak menghalangi klik pada teks */
}

/* Tambahkan juga di pojok kiri bawah agar seimbang (Opsional) */
.section-ayat::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 150px;
    height: 150px;
    background-image: url('assets/img/bunga.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom left;
    opacity: 0.3;
    transform: rotate(15deg) translate(-10px, 10px);
    z-index: 0;
    pointer-events: none;
}

.section-mempelai {
    position: relative;
    background-color: var(--soft-pink);
    padding: 120px 20px;
    margin-top: -5px; /* Menempel ke section atas */
    margin-bottom: -5px; /* Menempel ke section atas */
    z-index: 5;
    overflow: visible;
}

.wave-container {
    position: absolute;
    left: 0;
    width: 100%;
    height: 180px;
    line-height: 0;
    z-index: -1;
    pointer-events: none;
}

.wave-top {
    top: -179px;
}

.wave-bottom {
    bottom: -129px; /* Diposisikan tepat di bawah border agar seamless */
}

.wave-container svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Menghapus semua deklarasi animasi sebelumnya */
.wave-layer, .wave-path, svg path {
    animation: none !important;
    transition: none !important;
    transform: none !important;
}

.wave-container svg path {
    animation: none !important;
}

/* --- MEMPELAI SECTION STYLING --- */
.mempelai-item {
    margin: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Foto Mempelai Lingkar */
.foto-mempelai {
    /* Lebar lebih kecil dari tinggi untuk menciptakan bentuk oval vertikal */
    width: 200px; 
    height: 680px; 
    
    /* Border radius 50% pada elemen non-persegi otomatis menjadi oval */
    border-radius: 50% / 40%; 
    
    overflow: hidden;
    border: 4px solid var(--white);
    box-shadow: 0 8px 25px rgba(244, 143, 177, 0.3);
    margin: 0 auto 20px auto;
    
    /* Efek tambahan agar transisi saat muncul lebih halus */
    transition: all 0.5s ease;
}

.foto-mempelai img {
    width: 100%;
    height: 100%;
    /* Pastikan gambar tetap proporsional di dalam oval */
    object-fit: cover; 
    object-position: center;
}

/* Tambahkan sedikit animasi floating agar oval terlihat lebih hidup */
.floating-img {
    animation: floatingOval 4s ease-in-out infinite;
}

@keyframes floatingOval {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

/* Judul Nama */
.playfair {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--navy-dark);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

/* Muncul saat section aktif */
.animate-item.show h5.playfair {
    opacity: 1;
    transform: translateY(0);
}

/* Teks Orang Tua */
.bin {
    font-size: 0.9rem;
    color: var(--white);
    margin-bottom: 20px;
    font-style: italic;
}

/* Container Link IG */
.btn-ig-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.5); /* Glassmorphism transparan */
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    margin-top: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Ukuran Icon di dalam */
.btn-ig-mini img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    opacity: 0.8;
}

/* Efek Hover */
.btn-ig-mini:hover {
    background: var(--pink-main);
    transform: translateY(-3px);
    border-color: transparent;
}

.btn-ig-mini:hover img {
    opacity: 1;
}

/* Animasi Pulse (Halus) */
.pulse-ig {
    animation: pulseInstagram 2s infinite;
}

@keyframes pulseInstagram {
    0% {
        box-shadow: 0 0 0 0 rgba(244, 143, 177, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(244, 143, 177, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(244, 143, 177, 0);
    }
}

.pulse-ig {
    animation: igPulse 2s infinite;
}

/* Memastikan content rapi */
.mempelai-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

h3.playfair {
    font-family: 'Playfair Display', serif !important;
    font-size: 1.2rem !important; /* Ukuran diperkecil */
    font-weight: 700 !important;
    color: #2c3e50 !important;
    
    /* Setup Animasi */
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
    
    display: block;
    margin: 10px 0;
}

/* Class 'show' akan ditambahkan lewat JS saat discroll */
.mempelai-item.show h3.playfair {
    opacity: 1;
    transform: translateY(0);
}
.mempelai-item .bin {
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.8s ease-out 0.2s; /* Delay 0.2s */
}

.mempelai-item .btn-ig-mini {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease-out 0.4s; /* Delay 0.4s */
}

/* Class Show (Triggered by Scroll) */
.animate-up.show .playfair,
.animate-up.show .bin,
.animate-up.show .btn-ig-mini {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Overlay Tambahan */
.dark-overlay-light {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.6); /* Membuat background foto agak redup agar fokus ke profil */
    z-index: -1;
}

/* Penyesuaian Ampersand */
/* Container untuk mengatur jarak dan posisi ampersand */
.ampersand-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.ampersand-wrapper::before,
.ampersand-wrapper::after {
    content: "";
    flex: 1;
    height: 3px;
    background: rgba(0, 0, 0, 0.1); /* Garis halus */
    margin: 0 15px;
}

.ampersand {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--pink-main); /* Atau warna tema Anda */
    font-style: italic;
}

/* Trigger Animasi saat scroll */
.animate-up.show .ampersand {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* Efek Berdenyut Halus (Pulse) agar tidak statis */
@keyframes ampersandPulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 0px var(--pink-main)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 5px var(--pink-main)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 0px var(--pink-main)); }
}

.main-content.active .ampersand {
    animation: ampersandPulse 4s ease-in-out infinite;
}
/* Container Utama */
.mempelai-detail {
    position: relative;
    z-index: 10; /* Pastikan di atas background */
    padding: 20px;
    display: flex;
    justify-content: center;
}

.glass-card-box {
    background: rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px);
    border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 40px;
    padding: 40px 20px;
    width: 100%;
    max-width: 350px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    
    /* Animasi Halus */
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Aktifkan saat ada class .show */
.glass-card-box.show {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Munculkan Card saat scroll atau buka undangan */
.animate-up.show .glass-card {
    opacity: 1;
    transform: translateY(0);
}

/* Penyesuaian isi agar rapi di dalam card */
.foto-mempelai {
    width: 200px !important; /* Perkecil sedikit agar pas di card */
    height: 280px !important;
    margin: 0 auto 15px auto;
    border: 4px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

h3.playfair, h5.playfair {
    font-size: 1.2rem !important; /* Font nama diperkecil */
    margin: 5px 0 !important;
    opacity: 1 !important; /* Paksa muncul karena sudah di dalam card */
    transform: none !important;
}

.playfair {
    font-size: 1.2rem !important; /* Font nama diperkecil */
    margin: 10px 0 !important;
    color: #2c3e50 !important;
}

.btn-ig-mini {
    margin-top: 5px !important;
    opacity: 1 !important;
    transform: scale(1) !important;
}

/* Pemisah Ampersand di dalam Card */
.ampersand-wrapper {
    margin: 15px 0;
}

.ampersand {
    font-size: 2.5rem; /* Ukuran disesuaikan */
}

.section-story {
    position: relative;
    background-color: var(--soft-pink);
    padding: 120px 20px; /* Padding ditambah untuk ruang wave */
    margin-top: -5px; /* Overlap halus */
    margin-bottom: -10px;
    z-index: 4;
    overflow: visible;
}

.title-section {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.2rem;
    color: var(--navy-dark);
    position: relative;
    z-index: 2;
}
/* Container utama */
.story-timeline {
    position: relative;
    padding-left: 40px;
    margin: 20px auto;
    max-width: 400px;
}

/* Garis Dasar (Statis - Abu-abu) */
.timeline-line {
    position: absolute;
    left: 14px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.2); /* Garis redup */
    z-index: 1;
}

/* Garis Progress (Dinamis - Mengikuti Scroll) */
.timeline-line-progress {
    position: absolute;
    left: 14px;
    top: 0;
    width: 2px;
    background: var(--pink-main); /* Warna tema aktif */
    z-index: 2;
    height: 0%; /* Diatur lewat JS */
    transition: height 0.5s ease-out;
    box-shadow: 0 0 10px var(--pink-main);
}

/* Titik tetap sama, pastikan z-index lebih tinggi */
.story-dot {
    position: absolute;
    left: -31px;
    top: 25px;
    width: 12px;
    height: 12px;
    background: #fff;
    border: 3px solid rgba(255, 255, 255, 0.3); /* Default redup */
    border-radius: 50%;
    z-index: 5;
    transition: all 0.5s ease;
}

/* Titik Aktif saat tersentuh progress line */
.story-item.show .story-dot {
    border-color: var(--pink-main);
    background: var(--pink-main);
    box-shadow: 0 0 15px var(--pink-main);
    transform: scale(1.2);
}

/* Card Story */
.glass-card-story {
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

/* Animasi Muncul Card */
.story-item {
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.8s ease-out;
}

.story-item.show {
    opacity: 1;
    transform: translateX(0);
}

.story-date {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--pink-main);
    background: rgba(255, 255, 255, 0.6);
    padding: 3px 12px;
    border-radius: 50px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.glass-card-story h5 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #333;
}

.glass-card-story p {
    font-size: 0.85rem;
    color: #333;
    line-height: 1.6;
    margin: 0;
}

/* Efek Muncul (Animasi) */
.story-item {
    opacity: 0;
    transform: translateX(30px);
    transition: all 1s ease-out;
}

.story-item.show {
    opacity: 1;
    transform: translateX(0);
}

/* Bingkai Foto Lingkaran */
.story-couple-frame {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto 40px auto;
}

.story-img-border {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.story-photo-wrapper {
    width: 100%;
    height: 100%;
    border: 6px solid white;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    position: relative;
    z-index: 2;
}

.story-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes rotateCircle {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.section-event {
    padding: 60px 20px;
    text-align: center;
    background-color: var(--wave-layer-dark); /* Sesuaikan dengan warna tema */
}

.quote-text {
    font-size: 0.85rem;
    font-style: italic;
    color: #666;
    margin-bottom: 30px;
    padding: 0 10px;
    text-align:center;
}

/* Card Style */
.event-card-glass {
    background: rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 30px;
    padding: 35px 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.event-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.event-card-glass h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.event-divider {
    width: 50px;
    height: 2px;
    background: var(--pink-main);
    margin: 15px auto;
}

.event-info p {
    margin: 5px 0;
    font-size: 0.95rem;
    color: #444;
}

.event-date {
    font-weight: bold;
    font-size: 1.1rem !important;
}

.event-address {
    font-size: 0.85rem !important;
    line-height: 1.5;
    margin-top: 10px !important;
}

/* Tombol Maps */
.btn-maps {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--pink-main);
    color: white !important;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    margin-top: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(244, 143, 177, 0.4);
}

.btn-maps:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(244, 143, 177, 0.6);
}

.icon-map {
    margin-right: 8px;
    font-style: normal;
}

.location {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--pink-main); /* Atau warna tema Anda */
}

.location-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.location-wrapper::before,
.location-wrapper::after {
    content: "";
    flex: 1;
    height: 3px;
    background: rgba(0, 0, 0, 0.1); /* Garis halus */
    margin: 0 15px;
}

/* State Awal: Transparan dan sedikit bergeser ke bawah */
.event-card-glass {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* State Aktif: Muncul sempurna */
.event-card-glass.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Animasi Ikon (Berdenyut pelan) */
.event-icon {
    display: inline-block;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Staggered Delay (Agar kartu muncul satu per satu) */
.event-card-glass:nth-child(1) { transition-delay: 0.2s; }
.event-card-glass:nth-child(2) { transition-delay: 0.4s; }

/* Efek saat tombol Maps disentuh */
.btn-maps {
    animation: pulseButton 2s infinite;
}

@keyframes pulseButton {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.section-gallery {
    padding: 60px 15px;
    background-color: var(--wave-layer-dark);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 Kolom di mobile */
    gap: 15px;
    padding: 10px;
}

/* Bingkai Foto Glassmorphism */
.glass-frame {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 5px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    padding: 5px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    animation: imageFloat 6s ease-in-out infinite;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    transition: transform 0.5s ease;
}

/* Animasi Muncul Bergantian */
.gallery-item {
    opacity: 0;
    transform: scale(0.6) rotate(-5deg) translateY(50px);
    transition: all 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item.show {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.gallery-item:nth-child(4n+1) { transition-delay: 0.1s; }
.gallery-item:nth-child(4n+2) { transition-delay: 0.3s; }
.gallery-item:nth-child(4n+3) { transition-delay: 0.5s; }
.gallery-item:nth-child(4n+4) { transition-delay: 0.7s; }

/* Memberikan variasi tinggi (Masonry Look) */
.gallery-item:nth-child(even) {
    margin-top: 20px;
}

/* Efek Hover/Touch */
.gallery-item:active .glass-frame img {
    transform: scale(1.1);
}

.gallery-item:nth-child(even) .glass-frame {
    animation-duration: 7s;
    animation-delay: 1s;
}

@keyframes imageFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

.gallery-item:active .glass-frame {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 30px rgba(244, 143, 177, 0.3); /* Warna tema pink */
    animation-play-state: paused; /* Hentikan float saat ditekan */
}

/* Gambar di dalam bingkai melakukan zoom in pelan */
.glass-frame img {
    /* ... properti img sebelumnya ... */
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    
    transition: transform 0.5s ease;
}

.gallery-item:active .glass-frame img {
    transform: scale(1.1);
}


.section-gift {
    text-align: center;
    position: relative;
    background-color: var(--soft-pink);
    padding: 120px 20px; /* Padding ditambah untuk ruang wave */
    margin-top: -5px; /* Overlap halus */
    margin-bottom: -10px;
    z-index: 4;
    overflow: visible;
}

/* Tombol Utama Kirim Hadiah */
.btn-main-gift {
    /* Warna Dasar: Gradient Mewah (Pink ke Peach) */
    background: linear-gradient(45deg, #f48fb1, #ffab91); 
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4); /* Border tipis ala Glassmorphism */
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    
    /* Shadow yang lebih dalam & berwarna */
    box-shadow: 0 8px 25px rgba(244, 143, 177, 0.4);
    
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
    
    position: relative;
    overflow: hidden; /* Penting untuk efek kilatan */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Efek Kilatan Cahaya (Shimmer) */
.btn-main-gift::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(30deg);
    transition: all 0.6s ease;
}

/* Animasi saat Tombol Disentuh (Hover/Active) */
.btn-main-gift:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 30px rgba(244, 143, 177, 0.6);
    background: linear-gradient(45deg, #f06292, #ff8a65); /* Warna sedikit lebih gelap saat hover */
}

/* Kilatan cahaya lewat saat hover */
.btn-main-gift:hover::after {
    left: 120%;
}

.btn-main-gift:active {
    transform: translateY(0) scale(0.95);
}

/* Animasi Pulse lembut agar tombol 'memanggil' untuk diklik */
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(244, 143, 177, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(244, 143, 177, 0); }
    100% { box-shadow: 0 0 0 0 rgba(244, 143, 177, 0); }
}

.btn-main-gift {
    animation: pulseGlow 2s infinite;
}

.gift-icon-anim {
    font-size: 1.3rem;
    display: inline-block;
    animation: giftWobble 2s ease-in-out infinite;
}

@keyframes giftWobble {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-15deg); }
    75% { transform: rotate(15deg); }
}

/* Container & Card Animation */
.gift-container {
    margin-top: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Class saat container aktif */
.gift-container.active {
    display: flex !important; /* Dipicu lewat JS */
    flex-direction: column;
    gap: 20px;
    opacity: 1;
    transform: translateY(0);
}

.gift-card-glass {
    background: rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 25px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.gift-card-glass {
    background: rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 25px;
    padding: 30px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.gift-card-glass.show {
    opacity: 1;
    transform: translateY(0);
}

.gift-icon { font-size: 2.5rem; margin-bottom: 10px; }

.account-name {
    font-weight: bold;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 10px;
}

.account-number-wrapper {
    background: rgba(255, 255, 255, 0.5);
    padding: 10px 15px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    border: 1px dashed var(--pink-main);
}

.address-text {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.bank-card-wrapper {
    perspective: 1000px;
    margin-bottom: 20px;
}

.bank-card-glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 25px;
    position: relative;
    color: #333;
    text-align: left;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.1) 100%);
}

/* Dekorasi Chip ATM */
.chip {
    width: 45px;
    height: 35px;
    background: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%);
    border-radius: 8px;
    position: relative;
    margin-bottom: 20px;
}

.chip::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(0,0,0,0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.bank-logo-img {
    width: 70px;
    filter: brightness(0.9);
}

.label-card {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    opacity: 0.7;
}

.account-number {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.5rem;
    margin: 5px 0 20px 0;
    letter-spacing: 2px;
    color: #2c3e50;
}

.owner-name {
    font-weight: 700;
    font-size: 1rem;
    margin: 0;
    text-transform: uppercase;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.section-thanks {
    padding: 80px 20px;
    text-align: center;
    background: var(--soft-pink); /* Biarkan background sakura terlihat */
}

/* Bingkai Foto Lingkaran */
.thanks-couple-frame {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto 40px auto;
}

.circle-border {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: rotateCircle 10s linear infinite;
}

.photo-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 6px solid white;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    position: relative;
    z-index: 2;
}

.photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes rotateCircle {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.thanks-quote {
    margin-bottom: 50px;
    font-style: italic;
    color: #555;
    padding: 0 20px;
}

.thanks-quote p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.thanks-quote span {
    font-size: 0.8rem;
    font-weight: bold;
    opacity: 0.7;
}

/* Glass Card Terimakasih */
.glass-card-thanks {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 40px 40px 0 0; /* Bentuk kubah atas */
    padding: 50px 30px;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.05);
}

.glass-card-thanks h2 {
    font-size: 2.5rem;
    color: var(--pink-main);
    margin-bottom: 20px;
}

.regards {
    font-size: 0.85rem;
    margin-bottom: 5px;
    opacity: 0.8;
}

.family-name {
    font-weight: bold;
    font-size: 0.9rem;
    color: #444;
}

.mini-footer {
    margin-top: 50px;
    font-size: 0.7rem;
    letter-spacing: 1px;
    opacity: 0.5;
}

.glass-card-thanks {
    opacity: 0;
    transform: translateY(100px);
    transition: all 1.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.glass-card-thanks.show {
    opacity: 1;
    transform: translateY(0);
}

@keyframes namePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.opening-text {
    text-align: center;
    padding: 0 10px;
    margin-bottom: 30px;
}

.salam {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.invitation-msg {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #555;
    font-weight: 400;
}

/* Tambahkan sedikit garis dekoratif halus di bawah salam */
.opening-text::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--pink-main);
    margin: 15px auto 0;
    opacity: 0.5;
}

.bubbles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1; /* Di atas background, di bawah content */
    pointer-events: none; /* Agar tidak menghalangi klik tombol */
}

.bubble {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    bottom: 100%; /* Mulai dari atas layar */
    animation: fall linear infinite;
}

@keyframes fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(110vh) rotate(360deg); /* Jatuh ke bawah layar */
        opacity: 0;
    }
}