@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}



@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(100px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px) translateX(-50%);
    }

    to {
        opacity: 1;
        transform: translateY(0) translateX(-50%);
    }
}

/* Animasi Pohon Melambai (Swaying) */
@keyframes sway {
    0% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(2deg);
    }

    /* Goyang sedikit ke kanan */
    100% {
        transform: rotate(0deg);
    }
}

/* Animasi Masuk Pohon Kanan 2 (Rotasi 346deg) */
@keyframes slideInTreeRight2 {
    from {
        opacity: 0;
        transform: translateX(100px) rotate(346deg);
    }

    to {
        opacity: 1;
        transform: translateX(0) rotate(346deg);
    }
}

/* Animasi Masuk Pohon Kanan 3 (Rotasi -15deg) */
@keyframes slideInTreeRight3 {
    from {
        opacity: 0;
        transform: translateX(100px) rotate(-15deg);
    }

    to {
        opacity: 1;
        transform: translateX(0) rotate(-15deg);
    }
}

/* Animasi Sway (Goyang) tetap menggunakan variabel agar fleksibel */
@keyframes swayMirror {
    0% {
        transform: rotate(var(--rotasi-asal));
    }

    50% {
        transform: rotate(calc(var(--rotasi-asal) + 2deg));
    }

    100% {
        transform: rotate(var(--rotasi-asal));
    }
}

/* Mengaktifkan scroll halus untuk seluruh halaman */
html {
    scroll-behavior: smooth;
}

/* --- CUSTOM SCROLLBAR --- */
/* Ukuran scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

/* Bagian jalur (track) scrollbar */
::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* Bagian batang (thumb) scrollbar */
::-webkit-scrollbar-thumb {
    background: #8da1b9;
    /* Warna biru sesuai Save The Date Anda */
    border-radius: 10px;
}

/* Batang scrollbar saat diarahkan kursor (hover) */
::-webkit-scrollbar-thumb:hover {
    background: #343638;
    /* Warna gelap sesuai tema card Anda */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    background-color: #1a2a33;
    color: white;
}

.wrapper {
    display: flex;
    height: 100vh;
    overflow: hidden;
    /* Mencegah seluruh halaman scroll */
}

/* Class khusus untuk nama pengantin */
.bride-name {
    font-family: "Beau Rivage", cursive;
    font-weight: 400;
    line-height: 1.2;
}

/* --- BAGIAN KIRI (FIXED/STATIS) --- */
.left-section {
    flex: 1.4;

    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 60px;
    position: relative;
}

.left-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.left-content {
    position: relative;
    bottom: -363px;
    z-index: 2;
}

.left-content h2 {
    font-weight: 300;
    letter-spacing: 3px;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.left-content h1 {
    font-size: 5rem;
}

/* Ukuran font diperbesar agar Beau Rivage terlihat jelas */

/* --- BAGIAN Kanan (SCROLLABLE) --- */
.right-section {
    flex: 1;
    overflow-y: auto;
   background-color: #1a2a33;
    scroll-behavior: smooth;
}

.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Tampilan Pertama di Kanan (Mobile View lookalike) */
.first-screen {

    background-size: cover;
    position: relative;
    z-index: 1;
}

.first-screen::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.first-screen h1 {
    font-size: 3.5rem;
    margin: 15px 0;
}

.btn-buka {
    margin-top: 25px;
    padding: 12px 30px;
    border: 1px solid #fff;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    backdrop-filter: blur(5px);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- RESPONSIVE (TABLET & HP) --- */
@media (max-width: 1024px) {
    .left-section {
        display: none;
        /* Sembunyikan bagian kiri */
    }

    .right-section {
        flex: 1;
        width: 100%;
    }
}

/* Container Utama Section Pembuka */
.opening-section {
    position: relative;
    min-height: 105vh;
    width: 100%;
    /* Gunakan background-pembukaan.png di sini */
    background: url('../images/bg-pembukaan.webp') no-repeat center center;
    background-size: cover;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Base Style untuk setiap elemen dekorasi */
.deco {
    position: absolute;
    pointer-events: none;
    /* Menjaga proporsi elemen 384x436 px */
    width: 384px;
    height: auto;
    object-fit: contain;
}

/* --- Penempatan Spesifik Elemen --- */

/* Gate: Paling atas membingkai teks */
.gate-top {
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 900px;
    /* z-index: 20; */
}

/* Pohon: Sebagai Latar Samping */
.tree-left {
    left: -179px;
    bottom: -48px;
    width: 416px;
    z-index: 5;
    filter: grayscale(100%);
    opacity: 0.8;
}

.tree-right2 {
    --rotasi-asal: 346deg;
    right: -165px;
    bottom: -53px;
    width: 343px;
    z-index: 5;
    /* opacity: 0; */
    /* Mulai dari tidak terlihat */
    transform-origin: bottom right;

    /* Jalankan animasi masuk khusus, lalu sambung ke animasi goyang */
    animation: slideInTreeRight2 1.8s ease-out 0.2s forwards,
        swayMirror 6s ease-in-out 2s infinite;
}

.tree-right3 {
    --rotasi-asal: -15deg;
    right: -184px;
    bottom: 9px;
    width: 393px;
    z-index: 5;
    /* opacity: 0; */
    transform-origin: bottom center;

    animation: slideInTreeRight3 1.5s linear forwards,
        swayMirror 4.5s ease-in-out 1.5s infinite;
}

.tree-right4 {
    --rotasi-asal: -15deg;
    right: -286px;
    bottom: 75px;
    width: 431px;
    z-index: 4;
    /* opacity: 0; */
    transform-origin: bottom center;

    animation: slideInTreeRight3 1.5s linear forwards,
        swayMirror 4.5s ease-in-out 1.5s infinite;
}

.tree-left2 {
    bottom: -37px;
    width: 280px;
    z-index: 5;
    left: -21px;
    filter: grayscale(100%);
}

.tree-left3 {
    bottom: -37px;
    width: 280px;
    z-index: 5;
    left: -21px;
    filter: grayscale(100%);
}

/* Altar: Pojok Kiri Bawah */
.altar-left {
    left: -26px;
    bottom: -50px;
    width: 275px;
    z-index: 15;
}

/* Merak: Bertengger di sisi kanan */
.merak-right {
    right: -23px;
    bottom: -68px;
    width: 215px;
    z-index: 16;
}

/* Bunga: Sebagai "Lantai" Depan */
.bunga-main {
    bottom: -37px;
    /* left: 50%; */
    transform: translateX(-50%);
    width: 154px;
    z-index: 25;
    filter: grayscale(100%);
    /* Paling depan */
}

/* Konten Teks Tengah */
.opening-content {
    top: -120px;
    position: relative;
    z-index: 10;
    text-align: center;
    color: #000000;
    /* Warna gelap vintage sesuai gambar */
}

/* --- Responsive untuk HP --- */
/* --- Responsive untuk HP --- */
@media (max-width: 768px) {

    /* Perkecil teks utama agar muat di antara dekorasi */
    .opening-content {
        top: -140px;
        /* Naikkan teks sedikit lebih tinggi agar tidak tertutup altar/bunga */
    }

    .opening-content h1 {
        font-size: 4.8rem !important
            /* Perkecil nama pengantin */
    }

    /* Atur ulang semua elemen dekorasi agar membingkai layar HP dengan pas */

    .tree-left {
        width: 250px;
        left: -100px;
        /* Tarik lebih keluar agar tidak menumpuk di tengah */
        bottom: 0;
    }

    .tree-right2 {
        width: 220px;
        right: -90px;
        bottom: 0;
    }

    .tree-right3 {
        width: 260px;
        right: -110px;
        bottom: 100px;
        /* Naikkan posisi pohon atas agar asimetris */
    }

    .tree-right4 {
        width: 260px;
        right: -110px;
        bottom: 100px;
        /* Naikkan posisi pohon atas agar asimetris */
    }

    .tree-left2 {
        width: 180px;
        left: -40px;
        bottom: -20px;
    }

    .tree-left3 {
        width: 180px;
        left: -40px;
        bottom: -20px;
    }

    /* Altar: Sesuaikan ukurannya agar tetap terlihat di pojok kiri */
    .altar-left {
        width: 255px;
        left: -20px;
        bottom: -30px;
        z-index: 15;
    }

    /* Merak: Tarik ke pojok kanan bawah */
    .merak-right {
        width: 195px;
        right: -10px;
        bottom: -40px;
        z-index: 16;
    }

    /* Bunga: Sebagai penutup lantai tengah */
    .bunga-main {
        width: 120px;
        bottom: -10px;
        /* left: 50%; */
        transform: translateX(-50%);
        z-index: 25;
    }

    /* Jika Gate diaktifkan nanti */
    .gate-top {
        width: 150%;
        /* Buat lebih besar agar melengkung sempurna di layar sempit */
        top: -10px;
    }


}

/* Container untuk daun-daun agar tidak mengganggu elemen lain */
.leaf-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 12;
    /* Di atas teks, di bawah gate */
    overflow: hidden;
}

/* Base style untuk setiap helai daun */
.leaf {
    position: absolute;
    top: -50px;
    width: 20px;
    height: 20px;
    background: url('../images/bunga-2.png') no-repeat center center;
    /* Mengambil aset bunga/daun kecil Anda */
    background-size: contain;
    opacity: 0.6;
    animation: fall linear infinite, swayLeaf ease-in-out infinite;
}

/* Animasi jatuh dari atas ke bawah */
@keyframes fall {
    0% {
        top: -50px;
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        top: 110vh;
        opacity: 0;
    }
}

/* Animasi melambai ke kiri dan kanan saat jatuh */
@keyframes swayLeaf {
    0% {
        transform: translateX(0) rotate(0deg);
    }

    50% {
        transform: translateX(50px) rotate(45deg);
    }

    100% {
        transform: translateX(0) rotate(90deg);
    }
}

/* Pohon-pohon muncul perlahan dari samping dengan EASE-OUT */
.tree-left {
    animation: slideInLeft 1.5s ease-out forwards;
}

.tree-left2 {
    animation: slideInLeft 1.8s ease-out 0.3s forwards;
    opacity: 0;
    /* Mulai dari transparan */
}

.tree-left3 {
    animation: slideInLeft 1.8s ease-out 0.3s forwards;
    opacity: 0;
    /* Mulai dari transparan */
}


/* Altar & Merak muncul dari bawah dengan EASE-IN-OUT */
.altar-left {
    animation: slideInUp 1.2s ease-in-out 0.5s forwards;
    opacity: 0;
}

.merak-right {
    animation: slideInUp 1.2s ease-in-out 0.7s forwards;
    opacity: 0;
}

/* Bunga di tengah bawah muncul dengan EASE */
.bunga-main {
    /* Tetap menjaga transform tengahnya */
    animation: slideInUp 1s ease 1s forwards;
    opacity: 0;
    transform: translateX(-50%) translateY(100px);
    /* Awal gerakan */
}

/* Gate (Jika aktif) muncul dari atas */
.gate-top {
    animation: slideInDown 1.5s ease-out forwards;
}

/* Konten Teks muncul dengan EFEK ZOOM (Scale) agar fokus */
.opening-content {
    animation: fadeInScale 2s ease 2s forwards;
    opacity: 0;
}

/* Pohon Sisi Kiri */
.tree-left {
    /* Animasi 1: Slide masuk | Animasi 2: Melambai (berulang selamanya) */
    animation: slideInLeft 1.5s ease-out forwards,
        sway 4s ease-in-out 1.5s infinite;
    transform-origin: bottom center;
    /* Titik tumpu gerakan di bawah */
}

.tree-left2 {
    animation: slideInLeft 1.8s ease-out 0.3s forwards,
        sway 5s ease-in-out 2.1s infinite;
    transform-origin: bottom left;
    opacity: 0;
    filter: grayscale(100%);
}

.tree-left3 {
    animation: slideInLeft 1.8s ease-out 0.3s forwards,
        sway 5s ease-in-out 2.1s infinite;
    transform-origin: bottom left;
    opacity: 0;
    filter: grayscale(100%);
}



/* --- SECTION QUOTES --- */
.quotes-section {
    min-height: 100vh;
    background-color: #343638;
    /* Warna merah marun sesuai gambar */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 40px;
    text-align: center;
    color: white;
    position: relative;
}

.quotes-ornament {
    width: 250px;
    /* Ukuran hiasan garis lengkung */
    height: auto;
    margin: 30px 0;
}

.quotes-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 600px;
    font-family: 'Georgia', serif;
    font-style: italic;
}

.quotes-section .arabic-text {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.quotes-section .surah {
    margin-top: 20px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Style untuk gambar di atas quotes */
.quotes-image-container {
    width: 100%;
    max-width: 400px;
    margin-bottom: 20px;
    padding: 0 20px;
}

.quotes-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    /* Style rounded asimetris: atas-kiri, atas-kanan, bawah-kanan, bawah-kiri */
    border-radius: 0 80px 0 80px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    object-position: top;
}

/* --- SECTION BRIDE & GROOM --- */
/* --- SECTION BRIDE & GROOM --- */
.couple-section {
    min-height: 100vh;
    background: url('../images/bg-2.png') no-repeat center center;
    background-size: cover;
    padding: 40px 20px;
    text-align: center;
    color: #4a4a4a;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    /* Wajib untuk posisi overlay */
    overflow: hidden;
    z-index: 1;
}

/* Penambahan Overlay Putih */
.couple-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    /* Putih dengan transparansi 70% */
    z-index: -1;
    /* Berada di belakang teks/foto tapi di depan background gambar */
}

.couple-section h2 {
    font-family: "Beau Rivage", cursive;
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.intro-text {
    font-size: 0.9rem;
    max-width: 500px;
    margin-bottom: 40px;
    line-height: 1.6;
    font-style: italic;
}

.photo-frame {
    width: 280px;
    height: 380px;
    border-radius: 150px;
    border: 8px solid white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 25px;
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    font-family: "Beau Rivage", cursive;
    font-size: 3rem;
    margin-bottom: 5px;
}

.full-name {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.parents-info {
    font-size: 0.9rem;
    color: #777;
}

.ampersand {
    font-family: "Beau Rivage", cursive;
    font-size: 4rem;
    margin: 40px 0;
}

/* --- ANIMASI COUPLE SECTION --- */
.couple-section h2,
.intro-text,
.ampersand {
    opacity: 0;
    transform: translateY(-20px);
    transition: all 1s ease-out;
}

/* Mempelai Wanita (Dewi) muncul dari kiri */
.mempelai-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1.2s ease-out;
}

/* Mempelai Pria (Julian) muncul dari kanan */
.mempelai-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 1.2s ease-out;
    margin-bottom: 70px;
}

/* Class pemicu saat di-scroll */
.couple-section.reveal h2,
.couple-section.reveal .intro-text,
.couple-section.reveal .ampersand {
    opacity: 1;
    transform: translateY(0);
}

.couple-section.reveal .mempelai-left,
.couple-section.reveal .mempelai-right {
    opacity: 1;
    transform: translateX(0);
}

/* Efek zoom halus pada foto saat masuk */
.photo-frame img {
    transition: transform 2s ease-out;
    transform: scale(1.1);
}

.couple-section.reveal .photo-frame img {
    transform: scale(1);
}

.btn-instagram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 10px;
    background-color: #343638;
    color: white;
    border-radius: 22px 22px 22px 22px;
    text-decoration: none;
    margin-top: 15px;
    font-size: 1.2rem;
    transition: 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-instagram:hover {
    background-color: #000;
    transform: translateY(-3px);
    color: #fff;
}

/* Memastikan ikon tetap di tengah */
.btn-instagram i {
    line-height: 0;
}

/* --- SECTION SAVE THE DATE --- */
.save-the-date {
    min-height: 100vh;
    background-color: #343638;
    /* Warna biru sesuai gambar */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    text-align: center;
    color: white;
}

.save-the-date h2 {
    font-family: "Beau Rivage", cursive;
    font-size: 4rem;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .save-the-date h2 {
        font-family: "Beau Rivage", cursive;
        font-size: 2rem;
        margin-bottom: 30px;
    }
}


.date-info {
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    padding: 20px 0;
    margin-bottom: 40px;
    width: 100%;
    max-width: 400px;
}

.date-info h3 {
    text-transform: uppercase;
    letter-spacing: 5px;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.big-date {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.big-date .day {
    font-size: 4rem;
    font-weight: bold;
}

.big-date .month-year {
    text-align: left;
    font-size: 1.2rem;
    line-height: 1.2;
}

/* Countdown Boxes */
.countdown-container {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.countdown-box {
    background: white;
    color: #1a2a33;
    width: 80px;
    padding: 15px 5px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.countdown-box span {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
}

.countdown-box label {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: bold;
    color: #8da1b9;
}

.location-text {
    font-size: 1rem;
    max-width: 300px;
    margin-bottom: 30px;
    line-height: 1.5;
}

.btn-remind {
    background-color: #1a2a33;
    color: white;
    padding: 12px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.btn-remind:hover {
    background-color: #2c3e50;
    transform: scale(1.05);
}

/* --- ANIMASI SAVE THE DATE --- */
.save-the-date h2,
.date-info,
.location-text,
.btn-remind {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

/* Kotak Countdown muncul dengan efek skala (zoom) */
.countdown-box {
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Class pemicu saat di-scroll */
.save-the-date.reveal h2,
.save-the-date.reveal .date-info,
.save-the-date.reveal .location-text,
.save-the-date.reveal .btn-remind {
    opacity: 1;
    transform: translateY(0);
}

.save-the-date.reveal .countdown-box {
    opacity: 1;
    transform: scale(1);
}

/* Delay bertahap untuk kotak countdown agar muncul bergantian */
.save-the-date.reveal .countdown-box:nth-child(1) {
    transition-delay: 0.4s;
}

.save-the-date.reveal .countdown-box:nth-child(2) {
    transition-delay: 0.6s;
}

.save-the-date.reveal .countdown-box:nth-child(3) {
    transition-delay: 0.8s;
}

.save-the-date.reveal .countdown-box:nth-child(4) {
    transition-delay: 1.0s;
}

.save-the-date.reveal .btn-remind {
    transition-delay: 1.2s;
}

/* --- SECTION AKAD & RESEPSI --- */
.event-section {
    min-height: 100vh;
    background: url('../images/bg-2.png') no-repeat center center;
    background-size: cover;
    padding: 60px 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    background-attachment: fixed;
    /* Menjaga agar elemen yang masuk tidak merusak layout */
}

/* Kartu Putih Utama dengan bentuk U di bawah */
.event-card {
    background-color: rgba(255, 255, 255, 0.95);
    width: 90%;
    max-width: 450px;
    padding: 60px 30px;
    text-align: center;
    color: #4a4a4a;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 250px 250px 250px 250px;
    /* Bentuk U-Shape sesuai referensi */
    border: 10px solid rgb(52 54 56 / 43%);

    /* Animasi Masuk */
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-in, transform 1s ease-out;
}

.event-title {
    font-family: "Beau Rivage", cursive;
    font-size: 3rem;
    margin: 20px 0 10px;
}

.event-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px 0;
    gap: 10px;
}

.event-divider span {
    height: 1px;
    width: 50px;
    background: #ccc;
}

.event-card h4 {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.event-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 5px;
}

.btn-maps {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #343638;
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
    margin: 20px 0 40px;
    transition: 0.3s;
}

.btn-maps:hover {
    background-color: #000;
    transform: translateY(-2px);
}

.event-title,
.event-divider,
.event-card p,
.btn-maps {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease-out;
}

/* --- Class Pemicu (Trigger) --- */
.event-section.reveal .event-card {
    opacity: 1;
    transform: translateY(0);
}

.event-section.reveal .event-title,
.event-section.reveal .event-divider,
.event-section.reveal .event-card p,
.event-section.reveal .btn-maps {
    opacity: 1;
    transform: translateY(0);
}

/* Memberikan delay bertahap sederhana */
.event-section.reveal .event-title {
    transition-delay: 0.3s;
}

.event-section.reveal .event-divider {
    transition-delay: 0.5s;
}

.event-section.reveal .event-card p {
    transition-delay: 0.7s;
}

.event-section.reveal .btn-maps {
    transition-delay: 0.9s;
}

/* --- SECTION LOVE STORY --- */
.story-section {
    min-height: 100vh;
    background-color: #343638;
    /* Marun sesuai gambar */
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    background-image: url('../images/bg-story.png');
    align-items: center;
    color: white;
}

.story-section h2 {
    font-family: "Beau Rivage", cursive;
    font-size: 3.5rem;
    margin-bottom: 40px;
}

/* Container untuk kartu cerita */
.story-card {
    width: 100%;
    max-width: 450px;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    /* Menjaga bentuk kotak proporsional */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* Efek gradient gelap di bawah agar teks putih terbaca */
.story-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgb(33 31 31 / 90%) 20%, rgba(0, 0, 0, 0) 70%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    text-align: center;
}

.story-overlay h3 {
    font-family: "Beau Rivage", cursive;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

/* Wrapper teks agar bisa scroll jika terlalu panjang */
.story-text {
    font-size: 0.95rem;
    line-height: 1.6;
    max-height: 150px;
    /* Batas tinggi teks */
    overflow-y: auto;
    /* Muncul scrollbar internal jika teks panjang */
    padding-right: 5px;
}

/* Styling scrollbar tipis agar tetap cantik */
.story-text::-webkit-scrollbar {
    width: 4px;
}

.story-text::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

/* --- ANIMASI STORY SECTION --- */
.story-section h2 {
    opacity: 0;
    transform: translateY(-30px);
    transition: all 1s ease-out;
}

.story-card {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
    will-change: transform, opacity;
}

/* Class pemicu saat di-scroll */
.story-section.reveal h2 {
    opacity: 1;
    transform: translateY(0);
}

.story-section.reveal .story-card {
    opacity: 1;
    transform: translateY(0);
}

/* Improvisasi Delay: Kartu muncul bergantian (staggered) */
.story-section.reveal .story-card:nth-child(2) {
    transition-delay: 0.2s;
}

.story-section.reveal .story-card:nth-child(3) {
    transition-delay: 0.5s;
}

.story-section.reveal .story-card:nth-child(4) {
    transition-delay: 0.8s;
}

/* Efek Hover untuk interaktivitas */
.story-card:hover {
    transform: scale(1.02) !important;
    transition: transform 0.3s ease-in-out;
}

/* --- SECTION GALLERY --- */
.gallery-section {
    min-height: 100vh;
    background: url('../images/bg-pembukaan.webp') no-repeat center center;
    background-size: cover;
    padding: 80px 20px;
    text-align: center;
    position: relative;
}

/* Overlay putih agar background tidak terlalu kontras */
.gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 1;
}

.gallery-content {
    position: relative;
    z-index: 2;
}

.gallery-section h2 {
    font-family: "Beau Rivage", cursive;
    font-size: 3.5rem;
    color: #4a4a4a;
    margin-bottom: 40px;
}

/* Grid Layout */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 2 kolom di HP */
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.gallery-item {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-item:hover {
    transform: scale(1.03);
}

/* Membuat beberapa gambar lebih besar (Span) */
.gallery-item.large {
    grid-column: span 2;
    /* Mengambil 2 kolom penuh */
    height: 250px;
}

.gallery-item.tall {
    grid-row: span 2;
    /* Mengambil 2 baris ke bawah */
    height: 100%;
}

/* Desktop View */
@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 3 kolom di Desktop */
    }

    .gallery-item.large {
        grid-column: span 1;
        /* Di desktop kembali normal atau sesuaikan */
    }
}

/* Styling Overlay Lightbox */
.lightbox-overlay {
    display: none;
    /* Sembunyi secara default */
    position: fixed;
    z-index: 9999;
    /* Paling depan */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    animation: zoomIn 0.3s ease;
    /* Efek animasi saat muncul */
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

@keyframes zoomIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* --- ANIMASI GALLERY --- */
.gallery-section h2 {
    opacity: 0;
    transform: translateY(-20px);
    transition: all 1s ease-out;
}

.gallery-item {
    opacity: 0;
    transform: scale(0.8) translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, opacity;
}

/* Class pemicu saat di-scroll */
.gallery-section.reveal h2 {
    opacity: 1;
    transform: translateY(0);
}

.gallery-section.reveal .gallery-item {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Improvisasi Delay: Foto muncul secara bergantian */
.gallery-section.reveal .gallery-item:nth-child(1) {
    transition-delay: 0.1s;
}

.gallery-section.reveal .gallery-item:nth-child(2) {
    transition-delay: 0.3s;
}

.gallery-section.reveal .gallery-item:nth-child(3) {
    transition-delay: 0.5s;
}

.gallery-section.reveal .gallery-item:nth-child(4) {
    transition-delay: 0.2s;
}

.gallery-section.reveal .gallery-item:nth-child(5) {
    transition-delay: 0.4s;
}

.gallery-section.reveal .gallery-item:nth-child(6) {
    transition-delay: 0.6s;
}

/* --- SECTION WEDDING GIFT --- */
.gift-section {
    padding: 80px 20px;
    /* background-color: #f9f9f9; */
    text-align: center;
    background-image: url('../images/bg-2.png');
    background-size: cover;
    color: #4a4a4a;
    background-attachment: fixed;
    background-position: center;
}

.gift-section h2 {
    font-family: "Beau Rivage", cursive;
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.gift-intro {
    font-size: 0.9rem;
    max-width: 500px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* Container Kartu Bank */
.bank-card {
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    width: 100%;
    max-width: 350px;
    border-radius: 20px;
    padding: 25px;
    margin: 0 auto 20px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    text-align: left;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.bank-logo {
    height: 30px;
    float: right;
}

.chip {
    width: 45px;
    margin-bottom: 20px;
}

.account-number {
    font-size: 1.4rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-family: 'Courier New', Courier, monospace;
}

.account-name {
    font-size: 1rem;
    text-transform: uppercase;
}

.btn-copy {
    display: block;
    width: fit-content;
    margin: 15px auto 0;
    padding: 8px 20px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.3s;
}

.btn-copy:hover {
    background: #f0f0f0;
}

/* Alamat Pengiriman */
.address-card {
    background: white;
    width: 100%;
    max-width: 450px;
    margin: 50px auto 0;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.gift-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #d4af37;
}

.address-title {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.address-details {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.address-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.btn-action {
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
    border: 1px solid #343638;
}

.btn-outline {
    color: #343638;
    background: white;
}

.btn-dark {
    color: white;
    background: #343638;
}

/* --- ANIMASI GIFT SECTION --- */
.gift-section h2,
.gift-intro {
    opacity: 0;
    transform: translateY(-20px);
    transition: all 1s ease-out;
}

/* Kartu bank muncul dari kiri dan kanan secara selang-seling */
.bank-card {
    opacity: 0;
    transition: all 1s ease-out;
}

.bank-card:nth-of-type(1) {
    transform: translateX(-50px);
}

.bank-card:nth-of-type(2) {
    transform: translateX(50px);
}

/* Kartu alamat muncul dengan efek zoom kecil */
.address-card {
    opacity: 0;
    transform: scale(0.9) translateY(30px);
    transition: all 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Class pemicu saat di-scroll */
.gift-section.reveal h2,
.gift-section.reveal .gift-intro {
    opacity: 1;
    transform: translateY(0);
}

.gift-section.reveal .bank-card {
    opacity: 1;
    transform: translateX(0);
}

.gift-section.reveal .address-card {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Delay staggered agar kartu muncul bergantian */
.gift-section.reveal .bank-card:nth-of-type(1) {
    transition-delay: 0.3s;
}

.gift-section.reveal .bank-card:nth-of-type(2) {
    transition-delay: 0.8s;
}

.gift-section.reveal .address-card {
    transition-delay: 1.0s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- SECTION RSVP --- */
.rsvp-section {
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 80px 20px;
    background: url('../images/bg-pembukaan.webp') no-repeat center center;
    background-size: cover;
    position: relative;
    display: flex;
    justify-content: center;
}

.rsvp-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: rgba(255, 255, 255, 0.85); */
    /* Overlay putih agar form fokus */
    z-index: 1;
}

.rsvp-container {
    position: relative;
    z-index: 2;
    background: white;
    width: 100%;
    max-width: 500px;
    padding: 40px 30px;
    border-radius: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.rsvp-container h2 {
    font-family: "Beau Rivage", cursive;
    font-size: 3.5rem;
    color: #4a4a4a;
    margin-bottom: 10px;
}

.rsvp-container p {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 30px;
}

/* Styling Form Input */
.rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}

.rsvp-form label {
    font-size: 0.85rem;
    font-weight: bold;
    color: #4a4a4a;
    margin-left: 5px;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-family: 'serif';
    font-size: 0.9rem;
    background-color: #fcfcfc;
    transition: 0.3s;
}

.rsvp-form input:focus {
    outline: none;
    border-color: #8da1b9;
    background-color: #fff;
}

.btn-send-rsvp {
    margin-top: 10px;
    padding: 15px;
    border: none;
    border-radius: 12px;
    background-color: #343638;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-send-rsvp:hover {
    background-color: #000;
    transform: translateY(-2px);
}


.wishes-count {
    font-family: "Beau Rivage", cursive;
    font-size: 1.2rem;
    color: #1a2e40;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 1px solid #dbe4eb;
    padding-bottom: 10px;
}

.wishes-container {
    width: 100%;
    position: relative;
    /* TAMBAHKAN INI */
    z-index: 2;
    max-width: 500px;
    /* background: white; */
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.wishes-container h2 {
    font-family: "Beau Rivage", cursive;
    font-size: 3rem;
    color: #4a4a4a;
    text-align: center;
    margin-bottom: 25px;
}

/* Area Daftar Ucapan yang bisa di-scroll */
.wishes-display {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    -webkit-overflow-scrolling: touch;
}

.wish-card {
    background: #fcfcfc;
    padding: 15px;
    border-radius: 15px;
    border-left: 4px solid #8da1b9;
    /* Aksen warna biru save the date */
}

.wish-card strong {
    display: block;
    font-size: 0.95rem;
    color: #1a2a33;
    margin-bottom: 5px;
}

.wish-card p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    font-style: italic;
}

.wish-card span {
    display: block;
    font-size: 0.7rem;
    color: #999;
    margin-top: 8px;
    text-align: right;
}

/* Custom Scrollbar */
.wishes-display::-webkit-scrollbar {
    width: 5px;
}

.wishes-display::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
}

/* --- ANIMASI RSVP & WISHES --- */
.rsvp-container,
.wishes-container {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease-out;
    will-change: transform, opacity;
}

/* Judul di dalam masing-masing kontainer */
.rsvp-container h2,
.wishes-container h2 {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s ease-out 0.4s;
}

/* Class pemicu saat di-scroll */
.rsvp-section.reveal .rsvp-container,
.rsvp-section.reveal .wishes-container {
    opacity: 1;
    transform: translateY(0);
}

.rsvp-section.reveal h2 {
    opacity: 1;
    transform: scale(1);
}

/* Delay staggered agar kontainer ucapan muncul sedikit setelah form */
.rsvp-section.reveal .wishes-container {
    transition-delay: 0.3s;
}

/* Animasi khusus untuk kartu ucapan saat baru masuk */
.wish-card {
    animation: fadeInSlide 0.5s ease forwards;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- SECTION PENUTUP --- */
/* --- ANIMASI CLOSING SECTION --- */
.closing-photo {
    opacity: 0;
    transform: scale(0.8);
    transition: all 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.closing-text,
.hashtag,
.closing-names,
.social-links,
.footer-logo {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

/* Class pemicu saat di-scroll */
.closing-section.reveal .closing-photo {
    opacity: 1;
    transform: scale(1);
}

.closing-section.reveal .closing-text,
.closing-section.reveal .hashtag,
.closing-section.reveal .closing-names,
.closing-section.reveal .social-links,
.closing-section.reveal .footer-logo {
    opacity: 1;
    transform: translateY(0);
}

/* Delay staggered untuk urutan kemunculan teks */
.closing-section.reveal .closing-text {
    transition-delay: 0.5s;
}

.closing-section.reveal .hashtag {
    transition-delay: 0.8s;
}

.closing-section.reveal .closing-names {
    transition-delay: 1.1s;
}

.closing-section.reveal .social-links {
    transition-delay: 1.4s;
}

.closing-section.reveal .footer-logo {
    transition-delay: 1.7s;
}

.closing-section {
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/bg-2.png') no-repeat center center;
    background-size: cover;
    padding: 80px 20px;
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Bingkai Foto Oval Penutup */
.closing-photo {
    width: 260px;
    height: 380px;
    border-radius: 130px;
    /* Bentuk oval sempurna */
    border: 4px solid white;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.closing-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.closing-text {
    max-width: 500px;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 30px;
    font-style: italic;
    padding: 0 10px;
}

.hashtag {
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: #f4f4f4;
}

.closing-names {
    font-family: "Beau Rivage", cursive;
    font-size: 3.5rem;
    margin-bottom: 40px;
}

/* Tombol Sosial Media */
.social-links {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

.social-icon {
    width: 45px;
    height: 45px;
    border: 1px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: 0.3s;
    font-size: 1.2rem;
}

.social-icon:hover {
    background: white;
    color: #333;
}

.footer-logo {
    opacity: 0.6;
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Keadaan awal elemen sebelum scroll sampai ke posisi */
.quotes-section .quotes-ornament,
.quotes-section .quotes-image-container,
.quotes-section .quotes-content {
    opacity: 0;
    filter: blur(5px);
    transition: all 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Ornamen atas muncul dari atas */
.quotes-section .ornament-up {
    transform: translateY(-30px);
}

/* Ornamen bawah muncul dari bawah */
.quotes-section .ornament-down {
    transform: translateY(30px);
}

/* Foto muncul dengan efek scale (zoom) */
.quotes-section .quotes-image {
    transform: scale(0.9);
    transition: transform 1.5s ease-out;
}

/* Teks konten muncul dari bawah */
.quotes-section .quotes-content {
    transform: translateY(40px);
}

/* Class aktif saat scroll sampai (akan dipicu via JS) */
.quotes-section.reveal .quotes-ornament,
.quotes-section.reveal .quotes-image-container,
.quotes-section.reveal .quotes-content {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

.quotes-section.reveal .quotes-image {
    transform: scale(1);
}

/* Tambahan: Animasi bernapas/mengambang untuk ornamen setelah muncul */
@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

.quotes-section.reveal .quotes-ornament {
    animation: float 4s ease-in-out infinite;
}