/* --- RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Playfair Display', serif;
    background-color: #ebf3f5;
    /* PENTING: Hapus overflow hidden agar bisa di-scroll */
    overflow-x: hidden;
}

/* --- LAYOUT UTAMA --- */
.container {
    display: flex;
    width: 100%;
    min-height: 100vh;
    position: relative;
}

/* --- LEFT SIDE (STATIS) --- */
.left-side {
    flex: 7;
    /* 70% */
    /* Menggunakan foto couple baru yang anda kirim (Image 1) */
    /* background-image: url('image_de2c06.jpg'); */
    /* Jika belum ada file lokal, pakai link dummy: */
    /* INI KUNCINYA AGAR STATIS: */
    position: sticky;
    top: 0;
    height: 100vh;
    /* Tinggi pas selayar */
    z-index: 11;
}

@media (max-width: 1024px) {
    .left-side {
        display: none;
    }
}

.watermark-text {
    position: absolute;
    bottom: 30px;
    left: 30px;
    font-family: 'Great Vibes', cursive;
    color: white;
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* --- RIGHT SIDE (SCROLLING) --- */
.right-side {
    flex: 3;
    /* 30% */
    background-color: #ebf3f5;
    /* PENTING: Biarkan height auto agar memanjang */
    display: flex;
    flex-direction: column;

    min-width: 350px;
    /* Agar tidak terlalu gepeng */

    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

/* ===========================
   SECTION 1: COVER
   =========================== */
/* ===========================
   SECTION 1: COVER
   =========================== */
.section-cover {
    width: 100%;
    height: 100vh;
    /* Full screen untuk cover */

    /* --- BACKGROUND DIPINDAH KE SINI --- */
    background-image: url('../image/bg-sunda.webp');

    /* Agar gambar pas memenuhi area cover saja */
    background-size: cover;
    background-position: center;
    /* Opsional: uncomment baris bawah ini jika ingin efek gambar diam saat di-scroll di area cover */
    /* background-attachment: fixed; */

    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;

    /* Pastikan z-index cover di bawah kontennya (awan, teks, dll) */
    z-index: 1;
}

/* (Copy CSS dekorasi Cover yang lama kesini) */
.frame-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 4;
}

.frame-img {
    width: 100%;
    /* max-height: 200px; */
    object-fit: contain;
    object-position: top;
    opacity: 0.9;
    filter: brightness(0.8) sepia(1) hue-rotate(180deg) saturate(2);
}

.cloud-container {
    position: absolute;
    top: 15%;
    left: 0;
    width: 100%;
    height: 200px;
    z-index: 2;
    pointer-events: none;
}

.clouds {
    width: 200%;
    height: 100%;
    background: url('../image/awan.png') repeat-x;
    background-size: 50% 100%;
    opacity: 0.6;
    animation: moveClouds 25s linear infinite;
}

@keyframes moveClouds {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.floral-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35%;
    background-image: url('../image/bunga-depan.png');
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: cover;
    z-index: 3;
    pointer-events: none;
}

.content-cover {
    z-index: 10;
    margin-top: 40px;
}

.wedding-of {
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #34495e;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.couple-name {
    font-family: 'Great Vibes', cursive;
    font-size: 3.5rem;
    color: #1a2e40;
    line-height: 1.2;
}

.and {
    font-family: 'Great Vibes', cursive;
    font-size: 1.5rem;
    color: #555;
    margin: -5px 0;
}

.btn-open {
    margin-top: 25px;
    padding: 10px 25px;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: #1a2e40;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #dae1e7;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-open:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* --- NEW: FLOWER 1 ANIMATED --- */
.flower-animated-front2 {
    position: absolute;
    bottom: -20px;
    /* Sedikit turun agar terlihat muncul dari bawah */
    left: 0;
    width: 100%;
    height: 24%;

    /* Sesuaikan tinggi sesuai gambar */

    /* Gambar Flower 1 */
    background-image: url('../image/flower2.png');
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: contain;
    /* Agar gambar utuh */

    /* LAYER: Di atas floral-bottom (3), di bawah konten (10) */
    z-index: 4;

    /* Agar klik tembus ke tombol di belakangnya */
    pointer-events: none;

    /* Setting Animasi */
    transform-origin: bottom center;
    /* Poros goyangan di bawah */
    animation: flowerSway 3s ease-in-out infinite alternate;
}

.flower-animated-front {
    position: absolute;
    bottom: -29px;
    left: -117px;
    width: 100%;
    height: 24%;
    background-image: url('../image/flower1.png');
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: contain;
    z-index: 4;
    pointer-events: none;
    transform-origin: bottom center;
    animation: flowerSway 3s ease-in-out infinite alternate;
}

/* Keyframes untuk animasi goyang halus */
@keyframes flowerSway {
    0% {
        transform: rotate(0deg) scale(1);
    }

    100% {
        transform: rotate(2deg) scale(1.02);
        /* Goyang sedikit ke kanan & zoom dikit */
    }
}

/* --- NEW: FLOWER 2 (MIRROR / CERMIN) --- */
.flower-animated-mirror {
    position: absolute;
    bottom: -20px;
    left: 100px;
    width: 100%;
    height: 22%;
    background-image: url('../image/flower1.png');
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: contain;
    z-index: 4;
    pointer-events: none;
    transform-origin: bottom center;
    animation: flowerSwayMirror 3.5s ease-in-out infinite alternate-reverse;
}

/* Keyframes khusus yang menyertakan scaleX(-1) */
@keyframes flowerSwayMirror {
    0% {
        /* Tetap pertahankan scaleX(-1) di setiap frame */
        transform: scaleX(-1) rotate(0deg) scale(1);
    }

    100% {
        /* Goyang sedikit */
        transform: scaleX(-1) rotate(-2deg) scale(1.02);
    }
}


/* ===========================
   SECTION 2: COUPLE DETAILS
   =========================== */
/* ===========================
   IMPROVED SECTION COUPLE
   =========================== */

.section-couple {
    width: 100%;
    padding: 80px 20px 100px 20px;
    /* Padding bawah lebih besar untuk bunga bawah */
    background-color: #ffffff;
    position: relative;
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05);
    z-index: 20;
    margin-top: -40px;
    /* Overlap ke section sebelumnya */
    overflow: hidden;
    background-image: url('../image/bg-second.jpg');
    background-size: cover;
    background-position: center;
    /* Agar bunga tidak keluar frame */
}

/* Texture Background Halus */
.texture-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    opacity: 0.5;
    pointer-events: none;
}

/* --- ORNAMEN BUNGA RANTING --- */
.decor-branch {
    position: absolute;
    width: 207px;
    /* Sesuaikan ukuran bunga */
    max-width: 40%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.8;
    /* filter: sepia(0.2) hue-rotate(190deg) saturate(0.8); */
    /* Menyamakan tone warna biru */
}

.decor-top-left {
    top: 700px;
    left: -26px;
    transform: rotate(109deg);
    /* Putar jika perlu */
}

.decor-top-right {
    top: 190px;

    right: -23px;
    transform: rotate(109deg);
    /* Putar jika perlu */
}

.decor-bottom-right {
    bottom: 0;
    right: 0;
    /* transform: rotate(180deg);  Opsional jika pakai gambar yang sama */
}

/* --- KONTEN --- */
.content-couple {
    position: relative;
    z-index: 5;
    /* Di atas bunga */
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 30px;
}

/* Typography Quote */
.bismillah {
    font-family: 'Amiri', serif;
    /* Pastikan import font Arab jika ada, atau pakai serif bawaan */
    font-size: 1.8rem;
    color: #1a2e40;
    margin-bottom: 20px;
}

.quote-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    line-height: 1.8;
    color: #555;
    font-style: italic;
    margin-bottom: 5px;
}

.surah-ref {
    font-weight: 600;
    font-size: 0.8rem;
    color: #1a2e40;
    display: block;
    margin-top: 10px;
}

/* Divider Antik */
.divider-ornament {
    margin: 30px 0;
    color: #b0c4de;
    font-size: 1.5rem;
}

/* --- PHOTO FRAME MEWAH --- */
/* --- NEW: GOLD PHOTO FRAME --- */

/* Container Pembungkus Bingkai & Foto */
.photo-frame-gold {
    position: relative;
    /* UKURAN DIPERBESAR DARI 180px JADI 220px */
    width: 240px;
    height: 240px;
    margin: 0 auto 30px auto;
    /* Margin bawah ditambah sedikit */
    display: flex;
    justify-content: center;
    align-items: center;
    /* Penting: agar bunga yang menonjol keluar tidak terpotong */
    overflow: visible;
}

/* 1. Gambar Bingkai Emas (Background) */
.frame-gold-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 3;
    /* Frame paling depan */
    pointer-events: none;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

/* 2. Masking Foto (Wadah Foto Bulat di Tengah) */
.photo-mask {
    /* UKURAN DIPERBESAR DARI 130px JADI 160px AGAR PAS DGN FRAME BARU */
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    z-index: 2;
    /* Foto di belakang frame, di depan bunga dekor */
    border: 3px solid #fff;
    background-color: #fff;
    /* Penutup jika foto loading */
}

/* Gambar Fotonya Sendiri */
.photo-mask img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Efek Hover: Zoom foto di dalamnya */
.photo-frame-gold:hover .photo-mask img {
    transform: scale(1.1);
}

/* --- NEW: DEKORASI BUNGA SAMPING (flower2.png) --- */
.side-decor-wrapper {
    position: absolute;
    /* Posisikan di anchor bawah agar mudah diatur */
    bottom: 0;
    width: 120px;
    /* Ukuran bunga dekorasi */
    height: auto;
    z-index: 1;
    /* Paling belakang (di belakang foto dan frame) */
    pointer-events: none;

    /* Set titik putar animasi di bagian bawah batang bunga */
    transform-origin: bottom center;
    animation: sideFlowerSway 4s ease-in-out infinite alternate;
}

/* Posisi untuk Mempelai Pria (Kanan) */
.decor-groom-right {
    right: -17px;
    bottom: 15px;
    /* Turunkan sedikit */
    transform: rotate(24deg);
    /* Miringkan sedikit ke kanan */
}

.decor-megamendung-right {
    right: 15px;
    bottom: 2px;
    /* Turunkan sedikit */
    /* transform: rotate(24deg); */
    /* Miringkan sedikit ke kanan */
}


/* Posisi untuk Mempelai Wanita (Kiri & Dicerminkan) */
.decor-bride-left {
    left: -60px;
    /* Geser ke kiri keluar dari frame */
    bottom: -20px;
    /* Turunkan sedikit */
    /* Dibalik horizontal (mirror) dan miringkan ke kiri */
    transform: scaleX(-1) rotate(10deg);
}

/* Keyframes Animasi Goyang Halus */
@keyframes sideFlowerSway {
    0% {
        /* Rotasi awal sedikit berbeda untuk kanan dan kiri agar natural */
        rotate: -5deg;
    }

    100% {
        rotate: 5deg;
    }
}

/* --- RESPONSIVE MOBILE UPDATE --- */
@media (max-width: 480px) {

    .photo-frame-gold {
        width: 220px;
        height: 220px;
    }

    .photo-mask {
        width: 160px;
        /* Sebelumnya 110px */
        height: 160px;
    }

    /* Perkecil sedikit bunga dekorasinya di HP */
    .side-decor-wrapper {
        width: 130px;
    }

    .decor-groom-right {
        right: -23px;
        bottom: 9px;
    }

    .decor-megamendung-right {
        right: -15px;
        bottom: 2px;
    }

    .decor-bride-left {
        left: -11px;
        bottom: -10px;
    }
}

/* Nama & Detail */
.name-script {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    color: #1a2e40;
    margin-bottom: 5px;
}

.child-of {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 2px;
}

.parents-name {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1rem;
    color: #34495e;
    margin-bottom: 15px;
}

.btn-ig {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 20px;
    background-color: #f0f4f8;
    color: #1a2e40;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-ig:hover {
    background-color: #dbe4eb;
}

/* Simbol '&' */
.and-symbol-styled {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    color: #1a2e40;
    margin: 40px 0;
    position: relative;
}

/* Membuat garis kiri kanan pada simbol & */
.and-symbol-styled::before,
.and-symbol-styled::after {
    content: "";
    display: inline-block;
    width: 50px;
    height: 1px;
    background-color: #1a2e40;
    vertical-align: middle;
    margin: 0 15px;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 480px) {
    .section-couple {
        padding: 60px 15px;
        border-top-left-radius: 30px;
        border-top-right-radius: 30px;
    }

    .decor-branch {
        width: 171px;
        /* Perkecil ornamen di HP */
    }

    .name-script {
        font-size: 2rem;
    }

    .photo-frame {
        width: 120px;
        height: 120px;
    }
}

/* ===========================
   DESIGN BARU: OPENING SECTION
   =========================== */
.section-opening-frame {
    width: 100%;
    /* UBAH DISINI: Agar Full Screen */
    min-height: 100vh;

    position: relative;
    z-index: 15;
    background-color: #ebf3f5;

    /* TAMBAHAN: Pattern Batik Halus di Background */
    /* Ganti URL ini dengan motif batik Megamendung/Parang yang halus jika ada */

    background-size: 300px;
    background-blend-mode: multiply;
    /* Agar menyatu dengan warna biru */
    background-size: cover;
    background-position: center;
    padding: 40px 30px;
    display: flex;
    justify-content: center;
    align-items: center;
overflow: hidden;
    /* Tambahan agar saat di HP konten tidak kepotong jika layarnya pendek */
    box-sizing: border-box;
}

/* Kartu Putih Pembungkus */
.opening-card {
   width: 100%;
    max-width: 400px;
    min-height: 100vh;
    padding: 50px 20px;
    text-align: center;
    border-radius: 10px;
    /* box-shadow: 0 15px 40px rgba(26, 46, 64, 0.1); */
    position: relative;
    /* border: 1px solid rgba(0, 0, 0, 0.02); */
    /* overflow: hidden;

}

/* --- DEKORASI ORNAMEN SUNDA --- */
.sunda-ornament {
    position: absolute;
    width: 100px;
    /* Ukuran ornamen */
    height: auto;
    opacity: 0.8;
    pointer-events: none;
    z-index: 1;

    /* Filter agar warnanya jadi keemasan/biru tua (sesuai tema) */
    /* Jika gambar aslinya sudah emas, hapus filter ini */
    filter: sepia(1) hue-rotate(10deg) saturate(1.5);
}

.sunda-ornament-bottom {
    position: absolute;
    width: 150px;
    height: 150px;
    opacity: 0.8;
    pointer-events: none;
    z-index: 1;

    /* Filter agar warnanya jadi keemasan/biru tua (sesuai tema) */
    /* Jika gambar aslinya sudah emas, hapus filter ini */
    /* filter: sepia(1) hue-rotate(10deg) saturate(1.5); */
}

.ornament-top-left {
    top: -10px;
    left: -10px;
    transform: rotate(0deg);
}


/* Ornament bergerak ke kanan dulu */
@keyframes flower-sway {
    0% {
        transform: rotate(0deg) scale(1);
    }

    33% {
        transform: rotate(3deg) scale(1.02);
    }

    66% {
        transform: rotate(-2deg) scale(0.98);
    }

    100% {
        transform: rotate(0deg) scale(1);
    }
}

/* Ornament kanan */
/* Base class untuk bunga */
.sunda-ornament-bottom {
    position: absolute;
    width: 150px; /* Sesuaikan ukuran bunga Anda */
    height: auto;
    opacity: 0.9;
    pointer-events: none;
    z-index: 5; /* Pastikan di atas card atau sesuai desain */
    transition: all 0.3s ease;
}

/* Bunga Kanan */
.ornament-bottom-right {
    bottom: -20px;
    right: -30px;
    /* Kita gunakan origin di pojok bawah agar gerakannya seperti tumbuh dari bawah */
    transform-origin: bottom right; 
    animation: flower-sway 6s ease-in-out infinite;
}


/* Bunga Kiri */
.ornament-bottom-left {
    bottom: -20px;
    left: -30px;
    transform-origin: bottom left;
    /* Berikan delay agar tidak bergerak bersamaan (lebih natural) */
    animation: flower-sway 7s ease-in-out infinite reverse;
}

/* Opsional: Tambahkan filter jika ingin warna bunga lebih menyatu dengan tema */
.sunda-ornament-bottom {
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.1));
}



/* Tipografi */
.intro-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #0d0d0d;
    margin-bottom: 10px;
}

.save-the-date {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    color: #1a2e40;
    /* Navy Blue */
    margin-bottom: 25px;
    line-height: 1;
}

/* Wrapper Foto Melengkung (Arch Shape) */
.image-frame-wrapper {
    position: relative;
    width: 100%;
    height: 430px;
    /* Tinggi tetap agar rapi */
    overflow: hidden;
    /* Membuat bentuk Melengkung di atas (Arch) */
    border-top-left-radius: 150px;
    border-top-right-radius: 150px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.opening-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Agar gambar zoom otomatis memenuhi kotak tanpa gepeng */
    object-position: center;
    transition: transform 0.5s ease;
}

/* Efek Zoom halus saat hover (opsional, elegan di desktop) */
.opening-card:hover .opening-image {
    transform: scale(1.05);
}

/* Dekorasi Border Tipis di dalam foto */
.border-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-top-left-radius: 140px;
    border-top-right-radius: 140px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    pointer-events: none;
}

/* Bagian Tanggal */
.date-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #1a2e40;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.date-display .separator {
    color: #b0c4de;
    /* Warna biru muda pudar */
}

.sub-text {
  font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    background-color: #d5ecff;
    color: #1e1e1e;
    padding: 10px;
    border-radius: 19px;
    font-style: italic;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 480px) {
    .section-opening-frame {
        padding: 40px 20px;
    }

    .opening-card {
        padding: 60px 15px;
    }

    .image-frame-wrapper {
        height: 425px;
        /* Perkecil sedikit tinggi gambar di HP */
    }

    .save-the-date {
        font-size: 2.5rem;
    }
}

/* ===========================
   LOVE STORY SECTION
   =========================== */

.section-story {
    width: 100%;
    /* Warna Background Biru Kalem (Slate Blue) sesuai gambar referensi */
    background-color: #6c8caf;
    padding: 80px 0 100px 0;
    position: relative;
    z-index: 25;
    /* Di atas section couple */

    /* Lengkungan pemisah di atas */
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    margin-top: -50px;
    /* Overlap ke section putih sebelumnya */
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Header Text */
.story-header {
    text-align: center;
    color: #fff;
    margin-bottom: 40px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.title-story {
    font-family: 'Great Vibes', cursive;
    font-size: 3.5rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle-story {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* --- SLIDER CONTAINER --- */
.story-container {
    display: flex;
    overflow-x: auto;
    /* Scroll horizontal */
    scroll-snap-type: x mandatory;
    /* Efek magnet saat scroll */
    gap: 20px;
    padding: 0 30px 40px 30px;
    /* Padding bawah untuk scrollbar/shadow */

    /* Sembunyikan scrollbar tapi tetap bisa scroll */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE */
}

.story-container::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

/* --- KARTU CERITA --- */
.story-card {
    position: relative;
    min-width: 280px;
    /* Lebar kartu di HP */
    max-width: 320px;
    height: 450px;
    /* Tinggi kartu */
    border-radius: 20px;
    overflow: hidden;
    scroll-snap-align: center;
    /* Posisi magnet di tengah */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    /* Agar kartu tidak mengecil */
    background-color: #fff;
    transition: transform 0.3s ease;
}

/* Zoom effect saat hover (Desktop) */
.story-card:hover .story-img {
    transform: scale(1.1);
}

.story-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Konten Teks di dalam Kartu (Overlay Glass) */
.story-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 80px 20px 20px 20px;
    /* Padding atas besar untuk gradasi */

    /* Gradasi Hitam halus agar teks putih terbaca */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.6), transparent);

    color: white;
    text-align: left;
}

.story-year {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.story-title {
    font-family: 'Great Vibes', cursive;
    font-size: 2.2rem;
    margin-bottom: 5px;
    line-height: 1.2;
    color: #fff;
    /* Pastikan putih */
}

/* --- UPDATE STORY DESC --- */
.story-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    line-height: 1.5;
    opacity: 0.9;
    margin-bottom: 5px;
    /* Jarak ke tombol */

    /* Default (Terkunci 3 baris) */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;

    transition: max-height 0.3s ease;
    /* Transisi halus */
}

/* Class saat tombol diklik (Kunci dibuka) */
.story-desc.expanded {
    -webkit-line-clamp: unset;
    /* Lepas batasan baris */
    overflow: visible;
    display: block;
    /* Kembalikan ke block standard agar render penuh */
}

/* --- TOMBOL READ MORE --- */
.btn-read-more {
    background: none;
    border: none;
    padding: 0;
    color: #f1c40f;
    /* Warna Kuning Emas agar kontras */
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    transition: 0.3s;
}

.btn-read-more:hover {
    color: #fff;
    text-decoration: underline;
}

.story-counter {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 0.8rem;
    opacity: 0.6;
    font-family: 'Montserrat', sans-serif;
}


/* --- ANIMASI KUNANG-KUNANG (BACKGROUND DECOR) --- */
.firefly {
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: #fff;
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 10px #fff, 0 0 20px #f1c40f;
    animation: fly 10s infinite ease-in-out;
    z-index: 1;
}

/* Posisi acak kunang-kunang */
.firefly:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-duration: 8s;
    animation-delay: 0s;
}

.firefly:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-duration: 12s;
    animation-delay: 2s;
}

.firefly:nth-child(3) {
    top: 40%;
    left: 40%;
    animation-duration: 10s;
    animation-delay: 4s;
}

.firefly:nth-child(4) {
    top: 80%;
    left: 20%;
    animation-duration: 15s;
    animation-delay: 1s;
}

.firefly:nth-child(5) {
    top: 30%;
    left: 90%;
    animation-duration: 9s;
    animation-delay: 3s;
}

@keyframes fly {
    0% {
        transform: translate(0, 0);
        opacity: 0;
    }

    20% {
        opacity: 0.8;
    }

    50% {
        transform: translate(30px, -30px);
        opacity: 0.4;
    }

    80% {
        opacity: 0.8;
    }

    100% {
        transform: translate(-20px, 20px);
        opacity: 0;
    }
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 480px) {
    .story-card {
        min-width: 80%;
        /* Kartu lebih lebar di HP */
        height: 400px;
    }

    .title-story {
        font-size: 2.8rem;
    }

    .section-story {
        padding-bottom: 60px;
    }
}

/* ===========================
   SAVE THE DATE STYLING
   =========================== */

.section-save-date {
    width: 100%;
    min-height: 100vh;
    /* Full screen agar dramatis */
    position: relative;
    /* Background Biru Bertekstur */
    background-color: #6c8caf;
    background-image: url('https://www.transparenttextures.com/patterns/canvas-orange.png');
    /* Pattern kertas */
    display: flex;
    justify-content: center;
    /* Center content kanan */
    align-items: center;
    overflow: hidden;
    padding: 50px 20px;
    z-index: 20;

    /* Lengkungan transisi dari section atas */
    margin-top: -50px;
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
}

/* --- DEKORASI MERAK (KIRI) --- */
.peacock-decoration {
    position: absolute;
    left: -50px;
    bottom: 0;
    width: 50%;
    height: 90%;
    z-index: 1;
    pointer-events: none;
}

.peacock-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom left;
    filter: drop-shadow(10px 10px 20px rgba(0, 0, 0, 0.2));
}

/* --- KONTEN KANAN --- */
.content-save-date {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.15);
    /* Glassmorphism Effect */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
    color: #fff;
    max-width: 500px;
    margin-left: 10%;
    /* Memberi ruang untuk merak di kiri */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.title-save {
    font-family: 'Great Vibes', cursive;
    font-size: 3.5rem;
    margin-bottom: 30px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Typography Tanggal */
.date-text-group {
    margin-bottom: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    padding: 20px 0;
}

.wedding-day {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 1rem;
    margin-bottom: 10px;
}

.wedding-date-main {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-family: 'Playfair Display', serif;
}

.day-number {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
}

.month-year {
    display: flex;
    flex-direction: column;
    text-align: left;
    font-size: 1.2rem;
    line-height: 1.2;
}

/* --- COUNTDOWN KOTAK --- */
.countdown-wrapper {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.time-box {
    background: rgba(255, 255, 255, 0.9);
    color: #1a2e40;
    /* Navy Blue Text */
    width: 70px;
    padding: 10px 5px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.time-box span {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
}

.time-box p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.6rem;
    text-transform: uppercase;
    margin-top: 2px;
    font-weight: 600;
}

.location-preview {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Button Calendar */
.btn-calendar {
    display: inline-block;
    padding: 12px 30px;
    background-color: #1a2e40;
    color: white;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    border-radius: 30px;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(26, 46, 64, 0.3);
}

.btn-calendar:hover {
    background-color: #34495e;
    transform: translateY(-3px);
}


/* --- RESPONSIVE MOBILE --- */
@media (max-width: 900px) {
    .section-save-date {
        flex-direction: column;
        justify-content: flex-start;
        min-height: auto;
        padding-bottom: 80px;
    }

    /* Merak pindah ke atas/belakang */
    .peacock-decoration {
        position: relative;
        left: 0;
        width: 100%;
        height: 285px;
        margin-bottom: -112px;
        /* Overlap dengan card */
        opacity: 0.8;
    }

    .peacock-img {
        object-position: center;
    }

    .content-save-date {
        margin-left: 0;
        width: 100%;
        max-width: 100%;
        padding: 40px 20px;
    }

    .title-save {
        font-size: 3rem;
    }

    .countdown-wrapper {
        gap: 10px;
    }

    .time-box {
        width: 60px;
    }

    .time-box span {
        font-size: 1.5rem;
    }
}

/* ===========================
   WEDDING EVENTS (ARCH DESIGN)
   =========================== */

.section-events {
    width: 100%;
    padding: 80px 20px 100px 20px;
    background-color: #f4f8fb;
    /* Putih kebiruan sangat muda */
    position: relative;
    z-index: 27;

    /* Lengkungan transisi dari section biru sebelumnya */
    margin-top: -50px;
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    background-image: url('../image/bg-second.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.events-header {
    margin-bottom: 50px;
    padding: 0 10px;
}

.title-event-main {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    color: #1a2e40;
    margin-bottom: 15px;
}

.subtitle-event {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #7f8c8d;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

/* --- EVENT CARDS CONTAINER --- */
.events-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    /* Jarak antar kartu */
    align-items: center;
}

/* --- KARTU "ARCH" --- */
.event-card {
    background-color: #fff;
    width: 100%;
    max-width: 350px;
    /* Lebar kartu ideal */
    position: relative;
    padding: 50px 30px 40px 30px;

    /* BENTUK KUBAH (ARCH) */
    border-top-left-radius: 180px;
    border-top-right-radius: 180px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;

    box-shadow: 0 10px 30px rgba(26, 46, 64, 0.08);
    /* Bayangan halus */
    border: 1px solid #eef2f5;
    transition: transform 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
}

/* Garis Tepi Ganda (Vintage Border Effect) */
.event-card::after {
    content: "";
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px solid #dbe4eb;
    /* Garis tipis */

    /* Mengikuti bentuk lengkungan induknya */
    border-top-left-radius: 170px;
    border-top-right-radius: 170px;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;

    pointer-events: none;
}

/* Dekorasi Icon (Kupu-kupu/Bunga) */
.event-icon-img {
    width: 100px;
    height: auto;
    margin-bottom: 5px;
    opacity: 0.8;
    /* filter: sepia(0.2) hue-rotate(190deg) saturate(0.8); */
    /* Menyamakan tone biru */
    transition: transform 0.3s ease;
}

.event-card:hover .event-icon-img {
    transform: rotate(10deg) scale(1.1);
}

.event-title {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    color: #1a2e40;
    margin-bottom: 10px;
}

.divider-short {
    height: 2px;
    width: 40px;
    background-color: #b0c4de;
    margin: 0 auto 25px auto;
}

/* Detail Teks */
.event-details {
    font-family: 'Playfair Display', serif;
    color: #34495e;
    margin-bottom: 30px;
}

.event-date {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-time {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.event-location-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
}

.event-location-text strong {
    color: #1a2e40;
    font-weight: 600;
}

/* Tombol Lokasi */
.btn-location {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 25px;
    border: 1px solid #1a2e40;
    border-radius: 30px;
    background-color: transparent;
    color: #1a2e40;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    /* Agar bisa diklik di atas border */
}

.btn-location:hover {
    background-color: #1a2e40;
    color: #fff;
    box-shadow: 0 5px 15px rgba(26, 46, 64, 0.2);
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 480px) {
    .section-events {
        padding: 60px 20px;
    }

    .event-card {
        padding: 40px 20px 30px 20px;
    }

    .event-title {
        font-size: 2.2rem;
    }
}

/* ===========================
   SECTION: OUR GALLERY
   =========================== */

.section-gallery {
    width: 100%;
    padding: 80px 20px;
    /* background-color: #ffffff; */
    position: relative;
    z-index: 28;

    /* Lengkungan transisi dari section events */
    margin-top: -40px;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05);
}

.gallery-header {
    text-align: center;
    margin-bottom: 40px;
}

.title-gallery {
    font-family: 'Great Vibes', cursive;
    font-size: 3.5rem;
    color: #1a2e40;
    margin-bottom: 10px;
}

.subtitle-gallery {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: #7f8c8d;
    letter-spacing: 1px;
}

/* --- MASONRY GRID LAYOUT --- */
.gallery-grid {
    /* Ini kuncinya: membagi konten menjadi 2 kolom koran */
    column-count: 2;
    column-gap: 15px;
    /* Jarak antar kolom */
}

.gallery-item {
    /* Mencegah gambar terpotong di tengah kolom */
    break-inside: avoid;
    margin-bottom: 15px;
    /* Jarak vertikal antar gambar */

    border-radius: 15px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
    /* Efek zoom sedikit saat hover */
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    /* Menghilangkan gap putih di bawah gambar */
    transition: filter 0.3s ease;
}

.gallery-item:hover img {
    filter: brightness(0.9);
}

/* --- VIDEO SECTION --- */
.video-container {
    margin-top: 50px;
    text-align: center;
}

.video-label {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: #1a2e40;
    margin-bottom: 20px;
    font-weight: 600;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* Rasio 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 5px solid #fff;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/* --- LIGHTBOX (MODAL) --- */
.lightbox {
    display: none;
    /* Hidden default */
    position: fixed;
    z-index: 1000;
    /* Paling atas di atas segalanya */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    /* Background hitam transparan */
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    animation: zoomIn 0.3s ease;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-btn:hover {
    color: #bbb;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===========================
   SECTION: WEDDING GIFT
   =========================== */

.section-gift {
    width: 100%;
    padding: 80px 20px 100px 20px;
    background-color: #ebf3f5;
    /* Background abu-biru muda */
    background-image: url('https://www.transparenttextures.com/patterns/cubes.png');
    position: relative;
    z-index: 29;

    /* Lengkungan transisi */
    margin-top: -40px;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    text-align: center;
    box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.05);
}

.gift-header {
    max-width: 600px;
    margin: 0 auto 50px auto;
}

.title-gift {
    font-family: 'Great Vibes', cursive;
    font-size: 3.5rem;
    color: #1a2e40;
    margin-bottom: 20px;
}

.subtitle-gift {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
}

/* --- BUTTON KLIK DISINI (Style Mirip Referensi) --- */
.btn-show-gift {
    background: linear-gradient(145deg, #333, #1a1a1a);
    /* Warna hitam/abu gelap */
    color: #fff;
    font-family: 'Playfair Display', serif;
    /* Font agak klasik */
    font-size: 1.1rem;
    padding: 12px 40px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    margin-bottom: 20px;
    animation: pulseBtn 2s infinite;
    /* Animasi denyut agar di-notice user */
}

.btn-show-gift:hover {
    transform: scale(1.05);
    background: #000;
}

@keyframes pulseBtn {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}

/* --- ANIMASI BUKA TUTUP (ACCORDION) --- */

/* Keadaan Awal (Tertutup) */
.gift-hidden {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(20px);
    /* Geser sedikit ke bawah */
    transition: all 0.8s ease-in-out;
    /* Durasi animasi pembukaan */
}

/* Keadaan Terbuka (Class 'open' ditambahkan via JS) */
.gift-hidden.open {
    max-height: 1500px;
    /* Nilai max-height harus lebih besar dari konten asli */
    opacity: 1;
    transform: translateY(0);
}

/* Pastikan container flex tetap jalan saat terbuka */
.gift-container {
    display: flex;
    /* Tetap display flex */
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
}

/* --- KARTU HADIAH (UMUM) --- */
.gift-card {
    width: 100%;
    max-width: 380px;
    border-radius: 20px;
    padding: 30px;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.gift-card:hover {
    transform: translateY(-5px);
}

/* --- TIPE 1: BANK CARD (ATM STYLE) --- */
.bank-mode {
    /* Gradient Biru Elegan */
    background: linear-gradient(135deg, #2c3e50, #4ca1af);
    color: #fff;
    text-align: left;
}

/* Efek Kilau/Shine pada kartu */
.bank-mode::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    pointer-events: none;
}

.card-chip img {
    width: 50px;
    margin-bottom: 20px;
}

.bank-logo {
    position: absolute;
    top: 25px;
    right: 25px;
}

.bank-logo img {
    height: 25px;
    /* Sesuaikan ukuran logo bank */
    filter: brightness(0) invert(1);
    /* Logo jadi putih */
}

.account-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    opacity: 0.8;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.account-number {
    font-family: 'Montserrat', sans-serif;
    /* Font monospaced lebih cocok u/ angka */
    font-size: 1.8rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.account-name {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Tombol Salin (Putih di atas background gelap) */
.btn-copy {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background-color: #fff;
    color: #1a2e40;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn-copy:hover {
    background-color: #f0f0f0;
}


/* --- DIVIDER --- */
.gift-divider {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    color: #999;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 300px;
}

.gift-divider::before,
.gift-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: #ccc;
    margin: 0 10px;
}


/* --- TIPE 2: ADDRESS CARD --- */
.address-mode {
    background-color: #fff;
    color: #1a2e40;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.gift-icon {
    font-size: 2.5rem;
    color: #d4af37;
    /* Warna Emas */
    margin-bottom: 15px;
}

.address-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.address-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 25px;
}

.btn-group-gift {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-copy-small,
.btn-maps-small {
    flex: 1;
    padding: 10px;
    font-size: 0.8rem;
    font-family: 'Montserrat', sans-serif;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid #1a2e40;
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.btn-copy-small {
    background-color: transparent;
    color: #1a2e40;
}

.btn-copy-small:hover {
    background-color: #1a2e40;
    color: #fff;
}

.btn-maps-small {
    background-color: #1a2e40;
    color: #fff;
}

.btn-maps-small:hover {
    background-color: #34495e;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 480px) {
    .account-number {
        font-size: 1.4rem;
    }

    .gift-card {
        padding: 25px 20px;
    }
}

/* ===========================
   SECTION: RSVP & WISHES
   =========================== */

.section-rsvp {
    width: 100%;
    padding: 80px 20px 40px 20px;
    /* background-color: #f0f4f8; */
    position: relative;
    z-index: 30;
    background-attachment: fixed;
    /* Background Image Gunung (Ilustrasi) */
    background-image: url('../image/bg-second.jpg');
    background-size: cover;
    background-position: center bottom;
    /* background-attachment: local; */
    /* Agar background ikut scroll */

    /* Lengkungan transisi */
    margin-top: -40px;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;

    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Overlay Putih Transparan agar background gunung jadi soft/pudar */
.section-rsvp::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(to bottom, #ebf3f5 0%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0.9) 100%); */
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    z-index: 0;
}

.rsvp-header,
.rsvp-form-card,
.wishes-box,
.footer-copyright {
    position: relative;
    z-index: 2;
    /* Agar konten di atas overlay */
    width: 100%;
    max-width: 500px;
}

.rsvp-header {
    text-align: center;
    margin-bottom: 30px;
}

.title-rsvp {
    font-family: 'Great Vibes', cursive;
    font-size: 3.5rem;
    color: #1a2e40;
    margin-bottom: 10px;
}

.subtitle-rsvp {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

/* --- FORM CARD --- */
.rsvp-form-card {
    background: rgba(255, 255, 255, 0.7);
    /* Glass Effect */
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    /* Padding kiri besar untuk icon */
    border: 1px solid #dbe4eb;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    background-color: rgba(255, 255, 255, 0.8);
    transition: 0.3s;
    outline: none;
    color: #333;
}

.form-input:focus {
    border-color: #1a2e40;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(26, 46, 64, 0.1);
}

.textarea-input {
    resize: none;
    padding-left: 45px;
}

/* Icon di dalam input */
.input-icon,
.input-icon-textarea {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
    font-size: 1rem;
    pointer-events: none;
}

.input-icon-textarea {
    top: 20px;
    transform: none;
}

.btn-send-wish {
    width: 100%;
    padding: 12px;
    background-color: #1a2e40;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-send-wish:hover {
    background-color: #34495e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 46, 64, 0.2);
}

/* --- DAFTAR UCAPAN (LIST) --- */
.wishes-box {
    margin-bottom: 50px;
}

.wishes-count {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: #1a2e40;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 1px solid #dbe4eb;
    padding-bottom: 10px;
}

.wishes-list {
    max-height: 400px;
    overflow-y: auto;
    /* Scrollable jika banyak */
    padding-right: 5px;
}

/* Custom Scrollbar */
.wishes-list::-webkit-scrollbar {
    width: 5px;
}

.wishes-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.wish-item {
    background-color: #fff;
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
    border-left: 4px solid #1a2e40;
    /* Aksen kiri */
}

.wish-avatar {
    width: 40px;
    height: 40px;
    background-color: #1a2e40;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    flex-shrink: 0;
    font-family: 'Montserrat', sans-serif;
}

.wish-content {
    flex: 1;
}

.wish-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.wish-name {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #333;
}

/* Badge Kehadiran */
.badge-attend {
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
}

.present {
    background-color: #e8f5e9;
    color: #27ae60;
}

.absent {
    background-color: #fbe9e7;
    color: #e74c3c;
}

.maybe {
    background-color: #fff3e0;
    color: #f39c12;
}

.wish-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: #555;
    line-height: 1.4;
    margin-bottom: 5px;
}

.wish-time {
    font-size: 0.7rem;
    color: #999;
}

/* Animasi Slide Down untuk item baru */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer Copyright */
.footer-copyright {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    color: #888;
    margin-top: 20px;
}

/* ===========================
   SECTION: CLOSING
   =========================== */

.section-closing {
    width: 100%;
    min-height: 100vh;
    /* Full screen penutup */
    padding: 100px 20px 40px 20px;
    position: relative;
    z-index: 31;
    /* Paling atas */

    /* Background Scenic (Pemandangan) */
    background: url('../image/bg-second.jpg') no-repeat center center;
    background-size: cover;

    /* Overlay Gradient agar teks terbaca */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;

    /* Lengkungan transisi */
    margin-top: -40px;
    /* border-top-left-radius: 40px; */
    /* border-top-right-radius: 40px; */
}

/* Layer pudar putih di atas background */
.section-closing::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgb(255 255 255 / 13%) 0%, rgba(235, 243, 245, 0.8) 100%);
    z-index: 0;
}

.closing-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    width: 100%;
}

/* --- FRAME FOTO & BUNGA --- */
.closing-frame {
    position: relative;
    width: 280px;
    /* Lebar foto */
    margin: 0 auto 30px auto;
    display: flex;
    justify-content: center;
}

.closing-photo-mask {
    width: 100%;
    height: 350px;
    overflow: hidden;
    border-radius: 150px 150px 0 0;
    /* Bentuk Arch / Kubah */
    border: 5px solid #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    background-color: #ccc;
    position: relative;
    z-index: 1;
}

.photo-couples {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 5s ease;
}

/* Efek Zoom lambat pada foto */
.closing-frame:hover .photo-couples {
    transform: scale(1.1);
}

/* Bunga Overlay */
.flower-decor-main {
    position: absolute;
    bottom: -56px;
    /* Menjorok ke bawah foto */
    left: 50%;
    transform: translateX(-50%);
    width: 190px;
    /* Lebih lebar dari fotonya */
    max-width: none;
    z-index: 5;
    /* Di atas foto */
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.1));
    /* Sesuaikan filter warna agar biru */
    /* filter: sepia(0.2) hue-rotate(190deg) saturate(0.8); */
}

/* --- TEKS --- */
.closing-text-wrapper {
    position: relative;
    z-index: 6;
    /* Di atas bunga */
    margin-top: 20px;
}

.closing-message {
    font-family: 'Playfair Display', serif;
    /* Font Serif Elegan */
    font-size: 1rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 30px;
    font-style: italic;
}

.see-you-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #1a2e40;
    margin-bottom: 10px;
}

.signature-names {
    font-family: 'Great Vibes', cursive;
    font-size: 4rem;
    color: #1a2e40;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

.family-big {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    color: #555;
    margin-bottom: 50px;
}

.family-big .separator {
    margin: 0 10px;
    color: #ccc;
}

/* --- KUPU-KUPU ANIMASI --- */
.butterfly-container {
    position: absolute;
    top: 100px;
    left: -16px;

    z-index: 10;
    animation: floatButterfly 6s ease-in-out infinite;
}

.butterfly-anim {
    width: 180px;
    opacity: 1;
    transform: rotate(231deg);
}

.butterfly-anim2 {
    width: 160px;
    margin-top: 68px;
    opacity: 0.8;
    transform: rotate(20deg);
}

@keyframes floatButterfly {

    0%,
    100% {
        transform: translateY(0) rotate(15deg);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

/* --- FOOTER KECIL --- */
.final-footer {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    z-index: 10;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    color: #999;
}

.final-footer i {
    color: #e74c3c;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* Responsive Mobile */
@media (max-width: 480px) {
    .signature-names {
        font-size: 3rem;
    }

    .closing-frame {
        width: 240px;
    }

    .flower-decor-main {
        width: 152px;
    }

    .closing-photo-mask {
        height: 300px;
    }
}

/* --- TARUH INI DI BAGIAN PALING BAWAH CSS --- */

/* Pengaturan Khusus Layar HP / Tablet (Lebar di bawah 900px) */
@media (max-width: 900px) {

    /* 1. Ubah container agar tidak maksa ke samping */
    .container {
        flex-direction: column;
        /* Susun ke bawah (meski left-side kita hide) */
    }

    /* 2. Sembunyikan Foto Desktop (Left Side) di HP */
    .left-side {
        display: none;
    }

    /* 3. Atur Right Side agar memenuhi layar HP */
    .right-side {
        flex: 1;
        /* Reset flex */
        width: 100%;
        /* Lebar 100% layar HP */
        height: auto;

        /* PENTING: Reset min-width yang tadi 350px menjadi 0 */
        min-width: 0;

        /* Hapus bayangan agar terlihat menyatu dengan layar HP */
        box-shadow: none;
    }
}

/* ===========================
   ANIMATION CLASSES (ON SCROLL)
   =========================== */

/* Base Class untuk semua elemen yang akan dianimasikan */
.reveal {
    opacity: 0;
    transition: all 1s cubic-bezier(0.5, 0, 0, 1);
    /* Easing mewah */
    visibility: hidden;
    /* Mencegah klik saat belum muncul */
}

/* Class aktif saat elemen masuk layar (ditambahkan via JS) */

/* --- VARIASI ARAH MASUK --- */

/* 1. Fade Up (Naik dari bawah) - Cocok untuk Teks */
.fade-up {
    transform: translateY(50px);
}

/* 2. Fade Down (Turun dari atas) - Cocok untuk Ornamen Atas */
.fade-down {
    transform: translateY(-50px);
}

/* 3. Zoom In (Membesar) - Cocok untuk Kartu/Foto */
.zoom-in {
    transform: scale(0.85);
}

/* --- DELAY (Agar muncul bergantian/antri) --- */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.delay-500 {
    transition-delay: 0.5s;
}

/* ===========================
   ANIMATION CLASSES (UPDATE)
   =========================== */

/* Base Class Animasi */
.reveal {
    opacity: 0;
    /* Menggunakan cubic-bezier untuk efek 'Ease Out' yang mewah (cepat di awal, pelan di akhir) */
    transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    visibility: hidden;
}

.reveal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(0, 0) scale(1) !important;
}

/* --- ARAH ANIMASI --- */

/* 1. Fade Up (Naik) */
.fade-up {
    transform: translateY(60px);
}

/* 2. Fade Left (Dari Kiri) - Cocok untuk Groom */
.fade-left {
    transform: translateX(-60px);
}

/* 3. Fade Right (Dari Kanan) - Cocok untuk Bride */
.fade-right {
    transform: translateX(60px);
}

/* 4. Zoom In (Membesar) */
.zoom-in2 {
    transform: scale(0.5);
}

/* 5. Fade In (Muncul di tempat) - Cocok untuk ornamen sudut */
.fade-in {
    transform: scale(1);
    /* Hanya main opacity */
}

.butterfly-anim,
.butterfly-anim2 {
    animation: floating 3s ease-in-out infinite alternate;
}

.butterfly-anim2 {
    animation-delay: 1.5s;
    /* Beda waktu biar tidak barengan */
}

@keyframes floating {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    100% {
        transform: translateY(-15px) rotate(5deg);
    }
}

/* Pastikan posisi footer tidak menutupi konten */
.final-footer {
    margin-top: 40px;
    font-size: 0.8rem;
    color: #888;
    position: relative;
    z-index: 10;
}

.final-footer i {
    color: #e74c3c;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }
}