@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%);
    }
}

@keyframes slideInUpAccent {
    from {
        opacity: 0;
        transform: translateY(50px) translateX(-50%);
    }

    to {
        opacity: 1;
        transform: translateY(0) translateX(-50%);
    }
}

/* Mengatur delay agar elemen muncul bergantian */


/* Variasi delay untuk elemen berurutan (stagger effect) */
.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

/* --- Penerapan pada Elemen --- */

/* Delay berbeda untuk setiap daun agar lebih dinamis */


/* State dasar sebelum animasi */
.animate-hidden {
    opacity: 0;
    transform: translateY(40px);
    /* Muncul dari bawah */
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    visibility: hidden;
}

/* State saat elemen masuk ke viewport */
.animate-show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

/* --- Animasi Pesan Penutup (Fade In saja) --- */


/* --- Animasi Thank You (Expand Letter Spacing) --- */
.thank-you-text.animate-hidden {
    opacity: 0;
    letter-spacing: 10px;
    transform: scale(1.1);
    transition: all 1.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.thank-you-text.animate-show {
    opacity: 1;
    letter-spacing: -2px;
    /* Kembali ke gaya rapat sesuai gambar */
    transform: scale(1);
}

/* --- Animasi Foto Closing (Zoom Out ke Frame) --- */
.closing-photo.animate-hidden {
    opacity: 0;
    transform: scale(1.05);
    transition: all 1.5s ease-out;
}

.closing-photo.animate-show {
    opacity: 1;
    transform: scale(1);
}

/* 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,
html {
    overflow-x: hidden;
    /* Mencegah scroll horizontal seluruh halaman */
    margin: 0;
    padding: 0;
    width: 100%;
}

.wrapper {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

/* Reset & Base Font */
body,
html {

    font-family: 'Serif', 'Georgia', serif;
    color: #6d5d4b;
    background-color: #fefffa;

}

.wrapper {
    display: flex;
    height: 100vh;
    overflow: hidden;
    /* Mencegah seluruh halaman scroll */
}

/* Class khusus untuk nama pengantin */

/* --- BAGIAN KIRI (FIXED/STATIS) --- */
.left-section {
    flex: 1.4;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 60px;
    position: relative;
    /* Memberikan efek transisi halus saat halaman terbuka */
    animation: fadeInBackground 2s ease-out;
}

/* Overlay: Mengubah dari Hitam ke Cokelat Terracotta Gelap agar lebih hangat */
.left-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient dari warm-dark ke transparent */
    background: linear-gradient(to top, rgba(44, 44, 44, 0.7) 0%, rgba(44, 44, 44, 0) 60%);
    z-index: 1;
}

/* Tekstur Kertas (Optional: agar senada dengan right section) */
.left-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('https://www.transparenttextures.com/patterns/natural-paper.png');
    opacity: 0.1;
    z-index: 1;
    pointer-events: none;
}

.left-content {
    position: relative;
    z-index: 2;
    color: #F2EDE4;
    /* Off-white hangat agar tidak terlalu kontras */
    text-align: center;
    animation: fadeInUp 1.5s ease-out;
}

.left-content h2 {
    font-family: var(--sans-outfit);
    /* Konsisten dengan right section */
    font-weight: 300;
    letter-spacing: 6px;
    font-size: 0.85rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    opacity: 0.9;
}

.bride-name-cursive {
    font-family: var(--serif-playfair);
    /* Mengganti cursive dengan Serif khas galeri */
    font-size: 4rem;
    margin: 15px 0;
    font-weight: 400;
    font-style: italic;
    /* Memberikan kesan elegan tanpa terlihat "childish" */
    line-height: 1.1;
}

.wedding-date {
    font-family: var(--sans-outfit);
    letter-spacing: 4px;
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    border-top: 1px solid rgba(242, 237, 228, 0.3);
    border-bottom: 1px solid rgba(242, 237, 228, 0.3);
    display: inline-block;
    padding: 8px 20px;
    margin-top: 10px;
}

/* Animasi Internal */
@keyframes fadeInBackground {
    from {
        opacity: 0;
        transform: scale(1.05);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 1024px) {
    .left-section {
        display: none;
        /* Sembunyikan bagian kiri */
    }

    .right-section {
        flex: 1;
        width: 100%;
    }
}


/* Ukuran font diperbesar agar Beau Rivage terlihat jelas */

/* --- BAGIAN Kanan (SCROLLABLE) --- */
.right-section {
    flex: 1;
    overflow-y: auto;
    background: url(../images/sampul-new.webp) no-repeat center center;
    background-size: cover;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

@font-face {
    font-family: 'Embassy BT Regular';
    src: url('../font/embassy-bt-regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.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.0); */
}

/* first  */
:root {
    --bg-warm: #fffdfa;
    /* Warna kertas hangat */
    --accent: #B88E8D;
    /* Dusty Rose */
    --dark-text: #2C2C2C;
    --serif-playfair: 'Playfair Display', serif;
    --sans-outfit: 'Outfit', sans-serif;
    /* Font modern & bersih */
}

.first-screen {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    /* Penting agar zoom tidak meluap keluar layar */
    color: #4a4a4a;
}

/* Background dipindah ke sini agar bisa dianimasikan tanpa menarik teks */
.first-screen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/sampul-new.webp') no-repeat center center;
    background-size: cover;
    z-index: 0;
    /* Animasi Zoom Out: dari skala besar (1.2) ke normal (1) */
    animation: zoomOutBG 3s ease-out forwards;
}

/* Overlay tetap menggunakan ::before agar berada di atas background tapi di bawah teks */
.first-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    z-index: 1;
}

.content-wrapper {
    position: relative;
    z-index: 2;
    /* Pastikan teks berada paling atas */
    padding: 20px;
    width: 100%;
    max-width: 600px;
}

/* Keyframe untuk efek Zoom Out */
@keyframes zoomOutBG {
    from {
        transform: scale(1.3);
        /* Mulai dari sangat dekat */
    }

    to {
        transform: scale(1);
        /* Berakhir di ukuran normal */
    }
}

/* Animasi per elemen */
.wedding-of {
    font-size: 0.9rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 15px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.5s;
}

.couple-names {
    font-family: 'Playfair Display', serif;
    /* Font klasik/script sangat disarankan */
    font-size: 3.5rem;
    margin-bottom: 40px;
    text-transform: uppercase;
    font-weight: 300;
    color: #7A6B61;
    line-height: 1.2;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.8s;
}

.guest-container {
    margin-bottom: 35px;
    margin-top: 20vh;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1.1s;
}

.guest-label {
    font-size: 0.85rem;
    margin-bottom: 8px;
    font-style: italic;
    font-weight: 400;
    line-height: 1.5em;
    color: #7A6B61;
}

.guest-name {
    font-size: 1.5rem;
    font-weight: 600;
    border-bottom: 1px solid #4a4a4a;
    display: inline-block;
    padding-bottom: 5px;
}

.btn-open {
    background-color: #8b7e74;
    /* Warna earthy/luxury */
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background 0.3s ease;
    opacity: 0;
    animation: zoomIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 1.5s;
}

.btn-open:hover {
    transform: scale(1.05);
    background-color: #72655c;
}

/* Keyframes Animasi */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Mobile */
@media (max-width: 480px) {
    .couple-names {
        font-size: 2.5rem;
    }

    .guest-name {
        font-size: 1.2rem;
    }
}

/* opening  */
/* Styling Dasar Section */
.opening-section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    /* background: url('../images/sampul-new.webp') no-repeat center center;
            background-size: cover;
            background-attachment: fixed; */
    /* Memberikan efek parallax halus */
    box-sizing: border-box;
}

.opening-section .container {
    max-width: 500px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Foto Pembuka dengan Frame */
.opening-image-wrapper {
    width: 100%;
    border-radius: 30px 30px 0px 0px;
    /* Sesuai referensi image_2d886d.jpg */
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: scale(0.9);
    transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.opening-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Content Box untuk Text */
.opening-text-content {
    background-color: rgba(243, 241, 235, 0.9);
    /* Warna cream lembut sesuai image_2d886d.jpg */
    padding: 40px 30px;
    border-radius: 0px 0px 20px 20px;
    text-align: center;
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease-out 0.4s;
    /* Delay sedikit setelah foto muncul */
}

.opening-quote {
    font-family: 'Crimson Text', serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #5d544d;
    font-style: italic;
    margin-bottom: 20px;
}

.opening-source {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #8b7e74;
    text-transform: uppercase;
}

/* Logic Animasi via Observer (Class .reveal) */
.opening-section.reveal .opening-image-wrapper {
    opacity: 1;
    transform: scale(1);
}

.opening-section.reveal .opening-text-content {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .opening-quote {
        font-size: 1rem;
        line-height: 1.6;
    }

    .opening-section {
        padding: 40px 15px;
    }
}

/* quotes  */
.quotes-section {
    padding: 150px 20px;
    background-color: var(--bg-warm);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Efek Glow Hangat */
.glow-soft {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 163, 115, 0.15) 0%, rgba(242, 237, 228, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

.quotes-container {
    max-width: 800px;
    width: 100%;
    text-align: center;
    z-index: 1;
}

.vertical-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--accent));
    margin: 0 auto 30px;
}

.quote-title {
    font-family: var(--sans-outfit);
    text-transform: uppercase;
    letter-spacing: 5px;
    font-size: 0.75rem;
    color: var(--accent);
    margin-bottom: 40px;
    font-weight: 500;
}

.quote-text-box {
    padding: 0 10%;
}

.quote-text {
    font-family: var(--serif-playfair);
    font-size: 1.35rem;
    line-height: 2;
    color: var(--dark-text);
    font-style: italic;
    margin-bottom: 25px;
}

.quote-author {
    font-family: var(--sans-outfit);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    color: #888;
}

/* Dots Divider */
.floral-divider {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.dot {
    width: 4px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 50%;
    opacity: 0.4;
}

.dot.main {
    width: 8px;
    height: 8px;
    opacity: 0.8;
}

/* --- Animasi On Scroll (Intersection Observer) --- */

/* Kondisi Awal */
.quotes-section .reveal-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Kondisi setelah Section mendapat class .reveal */
.quotes-section.reveal .reveal-item {
    opacity: 1;
    transform: translateY(0);
}

/* Urutan Animasi (Staggered) */
.quotes-section.reveal .vertical-line {
    transition-delay: 0.2s;
}

.quotes-section.reveal .quote-title {
    transition-delay: 0.4s;
}

.quotes-section.reveal .quote-text {
    transition-delay: 0.6s;
}

.quotes-section.reveal .quote-author {
    transition-delay: 0.9s;
}

.quotes-section.reveal .floral-divider {
    transition-delay: 1.2s;
}

/* Responsive */
@media (max-width: 768px) {
    .quote-text {
        font-size: 1.15rem;
        padding: 0;
    }
}

/* couple  */
/* Info Styling */
.couple-section {
    /* Menggunakan repeat-y agar motif menyambung ke bawah */
    background: url('../images/batik-pattern.webp') repeat-y center top;
    background-size: contain;
    /* Memastikan lebar motif sesuai dengan lebar layar */
    background-color: #f4f2ece6;
    padding: 100px 20px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Tambahan: Jika layar sangat lebar (Desktop), 
   kita batasi background-size agar motif tidak terlalu besar */
@media (min-width: 768px) {
    .couple-section {
        background-size: auto 100%;
        /* Menjaga proporsi motif di layar besar */
    }
}

.couple-container {
    max-width: 600px;
    width: 100%;
    text-align: center;
    /* Warna teks putih tulang yang elegan */
    color: #E8E4DA;
    position: relative;
    z-index: 2;
}

/* Sisanya tetap sama seperti sebelumnya agar animasi reveal bekerja */
.couple-intro .salam {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    margin-bottom: 20px;
    color: #7A6B61;
    padding: 0px 20px;
    font-weight: 100;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.8s all ease;
}

.couple-intro .intro-text {
    font-size: 0.7rem;
    font-weight: 400;
    font-family: "Arapey", Sans-serif;
    line-height: 1.5em;
    padding: 0px 60px;
    margin-bottom: 50px;
    color: #7A6B62;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.8s all ease 0.2s;
}

.image-frame {
    width: 200px;
    height: 275px;
    margin: 0 auto 25px;
    border-radius: 50% / 40%;
    border: 3px solid #856B22;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 20px rgb(133 107 34 / 63%);
    opacity: 0;
    transform: scale(0.8);
    transition: 1s all cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nama-panggilan {
    font-family: 'Embassy BT Regular', sans-serif;
    font-size: 2.5rem;
    font-weight: normal;
    color: #7A6B61;
    margin-bottom: 10px;
    opacity: 0;
    transition: 0.8s all ease 0.5s;
}

.nama-lengkap {
    font-size: 25px;
    font-family: "Arapey", Sans-serif;
    font-weight: 400;
        padding: 0px 40px;
    line-height: 1.1em;
    color: #7A6B61;
    opacity: 0;
    transition: 0.8s all ease 0.7s;
}

.anak-ke {
    font-size: 12px;
    font-weight: 400;
    margin-top: 10px;
        padding: 0px 50px;
    line-height: 1.1em;
    color: #7A6B61;
}

.ampersand {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: #79746B;
    margin: 50px 0;
    font-weight: 500;
    opacity: 0;
    transition: 0.5s all ease;
}

.ig-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    color: #c5a059;
    text-decoration: none;
    font-size: 0.9rem;
    border: 1px solid #c5a059;
    padding: 5px 15px;
    border-radius: 20px;
    opacity: 0;
    transition: 0.8s all ease 0.9s;
}

.ig-link:hover {
    background: #c5a059;
    color: #000;
}

/* Logic Animasi Reveal */
.couple-section.reveal .salam,
.couple-section.reveal .intro-text,
.couple-section.reveal .nama-panggilan,
.couple-section.reveal .nama-lengkap,
.couple-section.reveal .ig-link,
.couple-section.reveal .ampersand {
    opacity: 1;
    transform: translateY(0);
}

.couple-section.reveal .image-frame {
    opacity: 1;
    transform: scale(1);
}

/* save date  */
.save-the-date {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Menggunakan background utama yang konsisten */
    padding: 60px 20px;
    overflow: hidden;
}

.std-wrapper {
    position: relative;
    width: 100%;
    max-width: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Overlay Gunungan */
.gunungan-overlay {
    position: absolute;
    width: 120%;
    height: auto;
    z-index: 1;
    opacity: 0;
    transform: scale(1.2);
    transition: all 1.5s cubic-bezier(0.22, 1, 0.36, 1);
    /* Menggunakan filter untuk menyesuaikan warna gunungan jika perlu */
    filter: brightness(0) invert(1) opacity(0.8);
}

.gunungan-overlay img {
    width: 100%;
    height: auto;
}

/* Konten di dalam Gunungan */
.std-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #5d544d;
    padding: 40px 20px;
    margin-top: 120px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out 0.8s;
}

.std-title {
    font-family: 'Embassy BT Regular', sans-serif;
    font-size: 1rem;
    margin-bottom: 10px;
    font-weight: normal;
    color: #8b7e74;
}

.std-sub {
    font-size: 14px;
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.4px;
    margin-top: 15px;
    text-transform: uppercase;
    font-weight: 500;
}

.std-couple {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin-bottom: 10px;
    line-height: 1em;
    font-weight: normal;
    text-transform: uppercase;
}

.std-date {
    font-size: 0.7rem;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

/* Countdown Styling */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.timer-box {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
    width: 70px;
    height: 85px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 35px;
    /* Oval shape sesuai image_2bc1f9.jpg */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.timer-box .number {
    font-size: 1.4rem;
    font-weight: 700;
    display: block;
}

.timer-box .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #8b7e74;
}

/* Animasi Reveal via Observer */
.save-the-date.reveal .gunungan-overlay {
    opacity: 1;
    transform: scale(1);
}

.save-the-date.reveal .std-content {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Adjustment */
@media (max-width: 480px) {
    .std-title {
        font-size: 2.5rem;
    }

    .std-couple {
        font-size: 1.8rem;
    }

    .timer-box {
        width: 60px;
        height: 75px;
    }
}

/* event  */
.event-section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    background-color: #f4f2ecab;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0 100px 0;
    /* Padding atas dihilangkan karena ada foto */
    overflow: hidden;
}

/* Container Foto Atas */
.event-image-top {
    width: 100%;
    height: 60vh;
    /* Mengatur tinggi foto */
    overflow: hidden;
    position: relative;
    z-index: 0;
    opacity: 0;
    transition: all 1.5s ease-out;
}

.event-image-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Ornamen Gerbang */
.ornament-gate {
    position: absolute;
    top: calc(60vh - 80px);
    /* Menempelkan gerbang di bawah foto */
    width: 100%;
    max-width: 600px;
    z-index: 2;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 1.2s ease-out 0.3s;
}

.ornament-gate img {
    width: 100%;
    opacity: 0.6;
    height: auto;
}

.event-container {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 20px 40px 20px 40px;
    max-width: 500px;
    margin-top: 50px;
    margin-top: 25vh;
    /* Jarak disesuaikan setelah ada foto */
    text-align: center;
    color: #5d544d;
}

.event-card {
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

/* Staggered delay untuk kartu resepsi */
.event-card.resepsi {
    transition-delay: 0.3s;
}

.event-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #8b7e74;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.event-info p {
    margin-bottom: 8px;
    font-size: 1rem;
    font-family: "Arapey", Sans-serif;
    font-weight: 400;
}

.event-info .location-name {
    font-weight: 700;
    margin-top: 15px;
}

.btn-location {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 30px;
    background-color: #8b7e74;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.8rem;
    /* letter-spacing: 2px; */
    font-family: "Arapey", Sans-serif;
    /* font-size: 15px; */
    font-weight: 500;
    transition: transform 0.3s ease;
}

.btn-location:hover {
    transform: scale(1.05);
    background-color: #72655c;
}

/* Ornamen Bawah */
.ornament-bottom {
    position: absolute;
    bottom: 0px;
    width: 100%;
    z-index: 3;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1.2s ease-out 0.5s;
}

.ornament-bottom img {
    width: 100%;
    opacity: 0.8;
    height: auto;
    filter: sepia(0.2) contrast(0.9);
}

/* Reveal Animations */
.event-section.reveal .event-image-top {
    opacity: 1;
}

.event-section.reveal .ornament-gate {
    opacity: 1;
    transform: translateY(0);
}

.event-section.reveal .event-card {
    opacity: 1;
    transform: translateY(0);
}

.event-section.reveal .ornament-bottom {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Mobile */
@media (max-width: 480px) {
    .event-image-top {
        height: 50vh;
    }

    /* .ornament-gate {
                top: calc(50vh - 60px);
            } */

    .event-title {
        font-size: 1.3rem;
    }

    .event-card {
        margin-bottom: 50px;
    }
}

/* story  */
.story-section {
    padding: 80px 20px;
    /* background: url('../images/sampul-new.webp') no-repeat center center;
            background-size: cover; */
    text-align: center;
    overflow: hidden;
}

.story-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: #8b7e74;
    margin-bottom: 30px;
    text-transform: uppercase;
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

/* Row Foto di Bagian Atas */
.story-photos {
    width: 100%;
    overflow: hidden;
    margin-bottom: 40px;
    padding: 10px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease-out 0.3s;
}

.photo-track {
    display: flex;
    gap: 15px;
    width: max-content;
    animation: scrollSlider 25s linear infinite;
}

.photo-track:hover {
    animation-play-state: paused;
}

.story-photo-item {
    flex: 0 0 100px;
    height: 120px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.story-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes scrollSlider {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Reveal Animation */
.story-section.reveal .story-photos {
    opacity: 1;
    transform: translateY(0);
}

/* Kartu Cerita */
.story-content {
    max-width: 360px;
    margin: 0 auto;
}

.story-card {
    background: rgba(255, 255, 255, 0.4);
    /* Efek glassmorphism halus */
    backdrop-filter: blur(5px);
    padding: 30px;
    border-radius: 25px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

/* Staggered delay untuk kartu-kartu cerita */
.story-card:nth-child(1) {
    transition-delay: 0.5s;
}

.story-card:nth-child(2) {
    transition-delay: 0.7s;
}

.story-card:nth-child(3) {
    transition-delay: 0.9s;
}

.story-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: #8b7e74;
    margin-bottom: 15px;
}

.story-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #5d544d;
}

/* Reveal Animations */
.story-section.reveal .story-title {
    opacity: 1;
    transform: translateY(0);
}

.story-section.reveal .story-photos {
    opacity: 1;
    transform: translateX(0);
}

.story-section.reveal .story-card {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .story-photo-item {
        width: 80px;
        height: 100px;
    }

    .story-subtitle {
        font-size: 1.4rem;
    }

    .story-title {
        font-size: 2.2rem;
    }
}

/* gift  */
.gift-section {
    padding: 80px 20px;
    /* background: url('../images/sampul-new.webp') no-repeat center center;
            background-size: cover; */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.gift-container {
    max-width: 500px;
    width: 100%;
    text-align: center;
}

/* Card Utama Sesuai image_1f73f4.png */
.gift-card-main {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

.gift-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: #8b7e74;
    font-weight: 500;
    margin-bottom: 20px;
}

.gift-intro {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #5d544d;
    margin-bottom: 30px;
}

.btn-toggle-gift {
    background-color: #8b7e74;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 0.9rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
}

.btn-toggle-gift:hover {
    background-color: #72655c;
    transform: scale(1.05);
}

/* Detail Section (Data Rekening) */
.gift-details {
    max-height: 0;
    /* Tertutup secara default */
    overflow: hidden;
    opacity: 0;
    display: flex;
    /* Tetap flex agar layout rapi */
    flex-direction: column;
    gap: 20px;
    transition: max-height 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.5s ease,
        margin-top 0.5s ease;
    margin-top: 0;
}

/* Class ini akan ditambahkan melalui JavaScript */
.gift-details.show {
    max-height: 1000px;
    /* Nilai besar agar semua konten tertampung */
    opacity: 1;
    margin-top: 30px;
    padding-bottom: 20px;
    /* Ruang napas di bawah */
}

.account-card {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    /* Animasi tambahan agar kartu muncul satu per satu */
    transform: translateY(20px);
    transition: transform 0.5s ease;
}

.gift-details.show .account-card {
    transform: translateY(0);
}

.bank-logo {
    height: 30px;
    margin-bottom: 15px;
}

.account-number {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.account-name {
    font-size: 0.9rem;
    color: #8b7e74;
    margin-bottom: 15px;
}

.btn-copy {
    background: transparent;
    border: 1px solid #8b7e74;
    color: #8b7e74;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-copy:hover {
    background: #8b7e74;
    color: white;
}

/* Icon Address */
.icon-address {
    font-size: 2rem;
    color: #8b7e74;
    margin-bottom: 10px;
}

.address-title {
    font-family: 'Playfair Display', serif;
    margin-bottom: 10px;
}

/* Reveal Logic */
.gift-section.reveal .gift-card-main {
    opacity: 1;
    transform: translateY(0);
}

.bank-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 10px;
}

/* gallery  */
.gallery-section {
    padding: 80px 20px;
    /* background: url('../images/sampul-new.webp') no-repeat center center;
            background-size: cover; */
    text-align: center;
}

.gallery-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: #8b7e74;
    margin-bottom: 40px;
    text-transform: uppercase;
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

/* Grid Layout Mosaik */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    /* Sesuai lekukan pada image_2a5599.jpg */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item a {
    display: block;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
    /* Memberikan petunjuk visual bahwa gambar bisa diklik */
}

/* Pastikan gambar di dalam tag <a> tetap memenuhi container */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Pengaturan Spasi Grid Sesuai Gambar */
.item-1 {
    grid-column: span 1;
}

.item-2 {
    grid-column: span 2;
}

.item-3 {
    grid-column: span 1;
}

.item-4 {
    grid-column: span 2;
}

.item-5 {
    grid-column: span 3;
    height: 300px;
}

.item-6 {
    grid-column: span 3;
    height: 400px;
}

/* Reveal Animations dengan Staggered Delay */
.gallery-section.reveal .gallery-title {
    opacity: 1;
    transform: translateY(0);
}

.gallery-section.reveal .gallery-item {
    opacity: 1;
    transform: scale(1);
}

/* Memberikan delay yang berbeda agar muncul bergantian */
.gallery-section.reveal .item-1 {
    transition-delay: 0.2s;
}

.gallery-section.reveal .item-2 {
    transition-delay: 0.4s;
}

.gallery-section.reveal .item-3 {
    transition-delay: 0.6s;
}

.gallery-section.reveal .item-4 {
    transition-delay: 0.8s;
}

.gallery-section.reveal .item-5 {
    transition-delay: 1.0s;
}

.gallery-section.reveal .item-6 {
    transition-delay: 1.2s;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .item-5,
    .item-6 {
        height: 250px;
    }

    .gallery-title {
        font-size: 2.2rem;
    }
}

/* Container Video Responsif */
.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 40px auto;
    /* Jarak ke judul dan ke grid foto */
    padding-bottom: 56.25%;
    /* Rasio 16:9 */
    height: 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);

    /* Animasi awal */
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease-out 0.4s;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Reveal Animation untuk Video */
.gallery-section.reveal .video-container {
    opacity: 1;
    transform: translateY(0);
}

/* Penyesuaian margin grid agar lebih rapi di bawah video */
.gallery-grid {
    margin-top: 20px;
}

/* /rsvp/ */

.rsvp-section {
    /* background: url('../images/sampul-new.webp') no-repeat center center;
            background-size: cover; */
    padding: 100px 20px;
    display: flex;
    justify-content: center;
}

.rsvp-container {
    max-width: 500px;
    width: 100%;
}

/* Kartu RSVP Sesuai image_2ac5d7.png */
.rsvp-card {
    background-color: #cfc3a8e0;
    /* Warna cokelat earthy */
    border-radius: 30px;
    padding: 30px;
    color: #ffffff;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease-out;
}

.rsvp-image {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.2);
}

.rsvp-image img {
    width: 100%;
    display: block;
}

.rsvp-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.rsvp-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Form Styling */
.rsvp-form {
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 20px;
    border-radius: 25px;
    border: none;
    font-size: 0.9rem;
}

/* Container grup radio */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* Jarak antar baris pilihan */
    margin-top: 10px;
}

/* Styling label sebagai baris */
.radio-group label {
    font-weight: normal;
    display: flex;
    align-items: center;
    /* Menjaga teks dan bulatan sejajar di tengah secara vertikal */
    gap: 12px;
    /* Jarak antara bulatan radio dan teks */
    cursor: pointer;
    font-size: 0.9rem;
    color: #ffffff;
    transition: opacity 0.2s;
}

/* Mempercantik input radio (opsional, agar lebih rapi) */
.radio-group input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    /* Menghilangkan margin bawaan browser yang sering merusak alignment */
    cursor: pointer;
    accent-color: #4a423c;
    /* Warna saat dipilih agar senada dengan tombol */
}

.radio-group label:hover {
    opacity: 0.8;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background-color: #8b7e74;
    /* Warna tombol lebih gelap */
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background-color: #332d29;
}

/* Wishing Wall Styling */
.wishing-wall {
    margin-top: 50px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out 0.4s;
}

.wall-title {
    font-family: 'Playfair Display', serif;
    text-align: center;
    color: #5d544d;
    margin-bottom: 20px;
}

.messages-list {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    padding: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.message-item {
    background: white;
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.message-item strong {
    display: block;
    color: #8b7e74;
    margin-bottom: 5px;
}

/* Reveal Logic */
.rsvp-section.reveal .rsvp-card,
.rsvp-section.reveal .wishing-wall {
    opacity: 1;
    transform: translateY(0);
}

/* closing  */
.closing-section {
    position: relative;
    padding: 100px 20px 0 20px;
    /* Padding bawah 0 agar footer menempel */
    background: url('../images/sampul-new.webp') no-repeat center center;
    background-size: cover;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Menjaga footer tetap di paling bawah */
}

.closing-container {
    max-width: 500px;
    margin: 0 auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
}

.closing-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #5d544d;
    font-style: italic;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease-out;
}

.closing-image-wrapper {
    width: 100%;
    max-width: 180px;
    margin: 0 auto;
    border-radius: 150px 150px 20px 20px;
    /* Bentuk kubah elegan */
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: scale(0.9);
    transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}

.closing-image-wrapper img {
    width: 100%;
    display: block;
}

.closing-footer-content {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out 0.6s;
}

.closing-couple {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: #8b7e74;
    margin-bottom: 10px;
}

.closing-hashtag {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    letter-spacing: 2px;
    color: #373737;
    margin-bottom: 20px;
}

.closing-thank-you {
    font-size: 0.9rem;
    color: #8b7e74;
    letter-spacing: 1px;
}

/* Footer Amorra.id */
.main-footer {
    padding: 40px 0 20px 0;
    font-size: 0.85rem;
    color: #8b7e74;
    opacity: 0;
    transition: opacity 1s ease 1s;
}

.main-footer i {
    color: #e74c3c;
    /* Warna hati merah */
    margin: 0 5px;
}

/* Reveal Logic */
.closing-section.reveal .closing-text,
.closing-section.reveal .closing-footer-content,
.closing-section.reveal .main-footer {
    opacity: 1;
    transform: translateY(0);
}

.closing-section.reveal .closing-image-wrapper {
    opacity: 1;
    transform: scale(1);
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .closing-couple {
        font-size: 2.2rem;
    }

    .closing-text {
        font-size: 0.9rem;
    }

    .closing-section {
        padding-top: 60px;
    }
}