@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: #1a2a33;

}

.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;
    height: 100vh;
    position: sticky;
    top: 0;
    overflow: hidden;
    animation: fadeInBackground 2s ease-out;
}

/* Overlay: Mengubah ke Deep Maroon agar lebih mewah */
.left-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient dari deep maroon gelap ke transparan */
    background: linear-gradient(to top, rgba(80, 20, 30, 0.8) 0%, rgba(80, 20, 30, 0.2) 50%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

/* Tekstur Kertas 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.15;
    z-index: 1;
    pointer-events: none;
}

.left-content {
    position: relative;
    z-index: 2;
    color: #F2EDE4;
    /* Off-white hangat */
    text-align: center;
    animation: fadeInUp 1.5s ease-out;
}

.left-content h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 300;
    letter-spacing: 6px;
    font-size: 0.9rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    opacity: 0.9;
}

.bride-name-cursive {
    font-family: 'Great Vibes', cursive;
    /* Menggunakan font script yang sama dengan sisi kanan */
    font-size: 5rem;
    margin: 10px 0;
    font-weight: 400;
    line-height: 1.2;
    color: #fff;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.wedding-date {
    font-family: 'Playfair Display', serif;
    letter-spacing: 4px;
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    border-top: 1px solid rgba(242, 237, 228, 0.4);
    border-bottom: 1px solid rgba(242, 237, 228, 0.4);
    display: inline-block;
    padding: 10px 30px;
    margin-top: 15px;
}

/* --- Responsive: Sembunyikan left-section di mobile --- */
@media (max-width: 992px) {
    .left-section {
        display: none;
    }
}

/* Tambahan Animasi */
@keyframes fadeInBackground {
    from {
        opacity: 0;
        transform: scale(1.1);
    }

    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-color: var(--bg-cream);
    /* background-color: #1a2a33; */
    overflow-x: hidden;
    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.0); */
}

/* first  */
/* 1. Animasi Poster (Efek Zoom Out Halus) */
.animate-on-load .poster-img {
    animation: zoomOutEffect 3s ease-out forwards;
}

@keyframes zoomOutEffect {
    from {
        transform: scale(1.2);
        filter: brightness(0);
    }

    to {
        transform: scale(1);
        filter: brightness(0.7) contrast(1.1);
    }
}

/* 2. Default State untuk elemen yang akan muncul */
.animate-on-load .reveal-item {
    opacity: 0;
    transform: translateY(20px);
}

/* 3. Trigger Animasi Teks & Tombol */
.animate-on-load .reveal-item {
    animation: fadeInUpNetflix 0.8s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

@keyframes fadeInUpNetflix {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 4. Staggered Delay (Urutan Muncul) */
.animate-on-load .n-logo {
    animation-delay: 0.5s;
}

.animate-on-load .movie-title {
    animation-delay: 0.8s;
}

.animate-on-load .metadata {
    animation-delay: 1s;
}

.animate-on-load .guest-synopsis {
    animation-delay: 1.2s;
}

.animate-on-load .action-buttons {
    animation-delay: 1.4s;
}

.animate-on-load .netflix-badge {
    animation-delay: 1.7s;
}

/* 5. Efek Logo N (Flicker khas Film) */
.animate-on-load .n-red {
    animation: nFlicker 2s ease-in-out infinite alternate;
}

@keyframes nFlicker {

    0%,
    100% {
        text-shadow: 0 0 10px rgba(229, 9, 20, 0.5);
    }

    50% {
        text-shadow: 0 0 20px rgba(229, 9, 20, 0.8), 0 0 30px rgba(229, 9, 20, 0.4);
    }
}

/* first  */
:root {
    --primary-maroon: #802432;
    --soft-text: #757575;
    --bg-cream: #f9f6f4;
    --font-script: 'Great Vibes', cursive;
    /* Pastikan load di <head> */
    --font-serif: 'Playfair Display', serif;
}

.first-screen {
    position: relative;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-cream);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 20px 0;
}

.content-wrapper {
    width: 100%;
    max-width: 450px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* --- Styling Dekorasi --- */
.decoration {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    /* Klik tidak terhalang */
}

.top-right {
    top: -14px;
    z-index: 6;
    right: -16px;
    width: 150px;
    /* Atur ukuran sesuai asset */
}

.top-left {
    top: -27px;
    z-index: 6;
    left: -10px;
    rotate: 320deg;
    width: 150px;
    /* Atur ukuran sesuai asset */
}

.bottom-left {
    bottom: -14px;
    left: -22px;
    width: 180px;
}

.bottom-right {
    bottom: -25px;
    width: 180px;
    right: -17px;
    rotate: 257deg;
}

.decoration img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- Hero Image --- */
.hero-image-container {
    position: relative;
    top: -22px;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
    aspect-ratio: 3 / 4;
}

@media (min-width: 1024px) {
    .hero-image-container {
        aspect-ratio: 4 / 4;
        max-width: 450px;
    }
}

.hero-image {
    width: 100%;
    display: block;
}

.overlay-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to bottom, transparent, var(--bg-cream));
}

/* --- Typography --- */
.wedding-info {
    padding: 0 20px;
}

.sub-title {
    font-size: 0.75rem;
    letter-spacing: 3px;
    color: var(--soft-text);
    margin: 0 0 10px;
}

.couple-names {
    font-family: var(--font-script);
    font-size: 3.5rem;
    color: var(--primary-maroon);
    margin: 0 0 20px;
    line-height: 1;
}

.guest-section p {
    font-size: 0.85rem;
    color: var(--soft-text);
    margin-bottom: 5px;
}

.guest-name {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: #333;
    margin-bottom: 30px;
    font-weight: bold;
}

/* --- Button --- */
.btn-open {
    background-color: var(--primary-maroon);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(128, 36, 50, 0.3);
}

/* --- Animasi --- */
.animate-on-load .hero-image-container {
    animation: fadeInUp 1s ease forwards;
}

.animate-on-load .couple-names {
    animation: fadeInUp 1s ease 0.4s both;
}

.animate-on-load .guest-section {
    animation: fadeInUp 1s ease 0.7s both;
}

.animate-on-load .btn-open {
    animation: fadeInUp 1s ease 1s both;
}

.animate-on-load .top-right {
    animation: fadeInDown 1.2s ease 0.2s both;
}

.animate-on-load .bottom-left {
    animation: fadeInUp 1.2s ease 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.opening-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-cream);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    overflow: hidden;
}

.opening-wrapper {
    position: relative;
    z-index: 5;
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.opening-label {
    font-size: 0.8rem;
    letter-spacing: 4px;
    color: var(--soft-text);
    margin-bottom: 30px;
    font-weight: 500;
}

/* Bingkai Foto Lingkaran */
.image-frame-container {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto 40px;
}

.circle-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-maroon);
    position: relative;
    z-index: 2;
}

.circle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floral-frame {
    position: absolute;
    left: -20px;
    bottom: -80px;
    z-index: 3;
    pointer-events: none;
}


.floral-frame img {
    width: 20vh;
    height: 100%;
    object-fit: contain;
}

/* Info Nama & Tanggal */
.couple-names-main {
    font-family: var(--font-script);
    font-size: 3.5rem;
    color: var(--primary-maroon);
    text-shadow: 8px -11px 20px #ffffff;
    margin-bottom: 15px;
    line-height: 1.1;
}

.wedding-date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: var(--soft-text);
    font-size: 0.85rem;
    letter-spacing: 1.5px;
}

.wedding-date .line {
    width: 30px;
    height: 1px;
    background-color: var(--primary-maroon);
    opacity: 0.5;
}

/* Animasi saat Muncul (Setelah Klik Buka) */
.opening-section.active .circle-image {
    animation: zoomIn 1.2s cubic-bezier(0.17, 0.67, 0.83, 0.67) both;
}

.opening-section.active .opening-info {
    animation: fadeInUp 1s ease 0.5s both;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.quotes-section {
    position: relative;
    width: 100%;
    min-height: 80vh;
    /* Sedikit lebih pendek dari section utama */
    background-color: var(--bg-cream);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 25px;
    overflow: hidden;
}

.quotes-wrapper {
    position: relative;
    z-index: 5;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

/* Title Ar-Rum */
.quotes-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.quotes-title p {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-maroon);
    letter-spacing: 2px;
}

.line-short {
    width: 40px;
    height: 1px;
    background-color: var(--primary-maroon);
    opacity: 0.4;
}

/* Isi Teks */
.quote-icon {
    font-size: 1.5rem;
    color: var(--primary-maroon);
    opacity: 0.3;
    margin-bottom: 20px;
}

.quote-text {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--soft-text);
    margin: 0 0 25px 0;
    padding: 0 10px;
}

.quote-closing {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    color: #333;
    font-weight: 500;
}

/* Animasi Scroll (Opsional jika Anda menggunakan library seperti AOS atau manual) */
.quotes-section.animate-on-scroll .quotes-content {
    animation: fadeInUp 1.2s ease-out forwards;
}

/* 1. Keadaan Awal (Hidden) */
.opening-section .opening-wrapper,
.opening-section .decoration,
.quotes-section .quotes-wrapper,
.quotes-section .decoration {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Khusus dekorasi mungkin ingin variasi arah */
.opening-section .top-right,
.quotes-section .top-right {
    transform: translate(20px, -20px);
}

.opening-section .bottom-left,
.quotes-section .bottom-left {
    transform: translate(-20px, 20px);
}

/* 2. Keadaan Saat Reveal (Muncul) */
.section.reveal .opening-wrapper,
.section.reveal .quotes-wrapper {
    opacity: 1;
    transform: translateY(0);
}

.section.reveal .decoration {
    opacity: 1;
    transform: translate(0, 0);
    /* Sedikit delay agar bunga muncul setelah teks atau bersamaan dengan halus */
    transition-delay: 0.3s;
}

/* 3. Staggered Effect untuk elemen di dalam (Opsional tapi Cantik) */
.section.reveal .image-frame-container {
    animation: zoomIn 1.2s ease forwards;
}

.section.reveal .quotes-content {
    transition-delay: 0.5s;
}

/* Keyframes Tambahan */
@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* couple  */
.ig-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--accent);
    font-family: var(--sans-outfit);
    font-size: 0.85rem;
    font-weight: 500;
    transition: opacity 0.3s;
}

.ig-link:hover {
    opacity: 0.7;
}

.couple-section {
    position: relative;
    padding: 80px 20px;
    background-color: var(--bg-cream);
    overflow: hidden;
}

.couple-wrapper {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

/* Bingkai & Foto */
.couple-frame {
    position: relative;
    width: 250px;
    /* Sesuaikan dengan ukuran asset frame */
    height: 250px;
    margin: 0 auto 20px;
}

.frame-asset {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.photo-container {
    position: absolute;
    top: 15%;
    /* Menyesuaikan posisi tengah dalam frame-red.png */
    left: 15%;
    width: 70%;
    height: 70%;
    border-radius: 50%;
    overflow: hidden;
    z-index: 2;
}

.photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Detail Teks */
.couple-detail {
    text-align: center;
}

.couple-name {
    font-family: var(--font-script);
    font-size: 2.5rem;
    color: var(--primary-maroon);
    margin-bottom: 10px;
}

.parent-info {
    font-size: 0.85rem;
    color: var(--soft-text);
    margin-bottom: 5px;
}

.parent-names {
    font-family: var(--font-serif);
    font-weight: 700;
    color: #333;
    font-size: 1rem;
}

.ampersand {
    font-family: var(--font-script);
    font-size: 3rem;
    color: var(--primary-maroon);
    opacity: 0.5;
    margin: 10px 0;
}

/* --- Sinkronisasi dengan Observer (Reveal) --- */
.couple-section .couple-item {
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Item Pria muncul dari kiri */
.couple-section .couple-item:nth-child(1) {
    transform: translateX(-50px);
}

/* Item Wanita muncul dari kanan */
.couple-section .couple-item:nth-child(3) {
    transform: translateX(50px);
}

.couple-section.reveal .couple-item {
    opacity: 1;
    transform: translateX(0);
}

.couple-section.reveal .ampersand {
    animation: zoomIn 1s ease forwards 0.5s;
}

/* Styling Bunga Latar Belakang */
.flower-sway {
    position: absolute;
    top: -20px;
    /* Sedikit lebih keluar dari bingkai */
    left: -20px;
    width: 110%;
    /* Ukuran sedikit lebih besar dari frame */
    height: 110%;
    z-index: 1;
    /* Di bawah photo-container (z-index 2) dan frame (z-index 3) */
    opacity: 0.8;
    pointer-events: none;
    transform-origin: bottom center;
    animation: sway 4s ease-in-out infinite;
}

.flower-sway img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Animasi Berayun (Sway) */
@keyframes sway {

    0%,
    100% {
        transform: rotate(-3deg) scale(1);
    }

    50% {
        transform: rotate(3deg) scale(1.02);
    }
}

/* Penyesuaian Z-Index Elemen Lain */
.photo-container {
    z-index: 2;
    /* Di atas bunga sway */
}

.frame-asset {
    z-index: 3;
    /* Paling atas membingkai foto */
}

/* Tambahkan sedikit variasi delay agar kedua bunga tidak bergerak identik */
.couple-item:nth-child(3) .flower-sway {
    animation-delay: -2s;
}

/* save date  */
.save-the-date {
    position: relative;
    padding: 60px 20px;
    background-color: var(--bg-cream);
    text-align: center;
    overflow: hidden;
    min-height: 77vh;
}

.save-date-wrapper {
    position: relative;
    z-index: 5;
    max-width: 500px;
    margin: 0 auto;
}

.save-title {
    font-family: var(--font-script);
    font-size: 2.5rem;
    color: var(--primary-maroon);
    margin-bottom: 20px;
}

.save-description {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    color: var(--soft-text);
    line-height: 1.6;
    margin-bottom: 40px;
}

/* --- Countdown Styling --- */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
}

.countdown-item {
    background: white;
    width: 70px;
    height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(128, 36, 50, 0.1);
    border: 1px solid rgba(128, 36, 50, 0.1);
}

.countdown-item span {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-maroon);
}

.countdown-item p {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--soft-text);
    margin-top: 5px;
}

/* --- Button Calendar --- */
.btn-calendar {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: transparent;
    color: var(--primary-maroon);
    border: 2px solid var(--primary-maroon);
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-calendar:hover {
    background-color: var(--primary-maroon);
    color: white;
}

/* --- Sinkronisasi dengan Reveal Observer --- */
.save-the-date .save-date-wrapper {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s ease-out;
}

.save-the-date.reveal .save-date-wrapper {
    opacity: 1;
    transform: translateY(0);
}

/* event  */
.event-section {
    position: relative;
    padding: 80px 20px;
    background-color: var(--bg-cream);
    overflow: hidden;
}

.event-wrapper {
    position: relative;
    z-index: 5;
    max-width: 600px;
    margin: 0 auto;
}

.event-intro {
    text-align: center;
    margin-bottom: 50px;
    padding: 0 10px;
}

.event-intro p {
    font-family: var(--font-serif);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--soft-text);
}

/* --- Card Styling --- */
.event-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.event-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(128, 36, 50, 0.08);
    border: 1px solid rgba(128, 36, 50, 0.05);
    text-align: center;
}

.card-header {
    position: relative;
    padding: 40px 20px 20px;
    overflow: hidden;
}

.card-header h3 {
    font-family: var(--font-script);
    font-size: 2.8rem;
    color: var(--primary-maroon);
    position: relative;
    z-index: 2;
}

.card-floral-bg {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    opacity: 0.15;
    z-index: 1;
}

.card-body {
    padding: 0 30px 40px;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.info-item i {
    color: var(--primary-maroon);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.info-item p {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.5;
}

/* Button Maps */
.btn-maps {
    display: inline-block;
    margin-top: 15px;
    background-color: var(--primary-maroon);
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.btn-maps:hover {
    transform: translateY(-3px);
}

/* --- Sinkronisasi Reveal --- */
.event-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

.event-section.reveal .event-card:nth-child(1) {
    transition-delay: 0.2s;
    opacity: 1;
    transform: translateY(0);
}

.event-section.reveal .event-card:nth-child(2) {
    transition-delay: 0.5s;
    opacity: 1;
    transform: translateY(0);
}


/* story */
.story-section {
    position: relative;
    padding: 100px 20px;
    background-color: var(--bg-cream);
    overflow: hidden;
}

.story-header {
    margin-bottom: 60px;
    text-align: center;
}

.section-title {
    font-family: var(--font-script);
    font-size: 3.5rem;
    color: var(--primary-maroon);
}

.section-subtitle {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    color: var(--soft-text);
    letter-spacing: 1px;
}

/* --- Timeline Layout --- */
.story-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.story-item {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 80px;
}

.story-item.alternate {
    flex-direction: row-reverse;
}

.story-img {
    flex: 1;
    position: relative;
    max-width: 300px;
}

.story-img .main-img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.story-content {
    flex: 1;
    text-align: left;
}

.story-item.alternate .story-content {
    text-align: right;
}

.story-date {
    display: inline-block;
    color: var(--primary-maroon);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-family: var(--font-serif);
}

.story-content h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
}

.story-content p {
    color: var(--soft-text);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Animasi Reveal untuk Story */
.story-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

.story-section.reveal .story-item {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {

    .story-item,
    .story-item.alternate {
        flex-direction: column;
        text-align: center !important;
        gap: 20px;
    }

    .story-img {
        max-width: 100%;
        padding: 0 20px;
    }
}

/* gallery  */
.gallery-section {
    position: relative;
    padding: 80px 20px;
    background-color: var(--bg-cream);
    overflow: hidden;
}

.gallery-header {
    margin-bottom: 40px;
}

/* --- Gallery Grid Layout --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 kolom di mobile */
    grid-auto-rows: 150px;
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: #eee;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Hover Effect */
.gallery-item:hover img {
    transform: scale(1.1);
}

.overlay-plus {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(128, 36, 50, 0.3);
    /* Maroon Transparent */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay-plus i {
    color: white;
    font-size: 1.5rem;
}

.gallery-item:hover .overlay-plus {
    opacity: 1;
}

/* Variasi Ukuran Grid */
.gallery-item.tall {
    grid-row: span 2;
}

.gallery-item.wide {
    grid-column: span 2;
}

/* Animasi Reveal */
.gallery-item {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

.gallery-section.reveal .gallery-item {
    opacity: 1;
    transform: scale(1);
}

/* Memberikan delay bertahap untuk tiap item */
.gallery-section.reveal .gallery-item:nth-child(2) {
    transition-delay: 0.1s;
}

.gallery-section.reveal .gallery-item:nth-child(3) {
    transition-delay: 0.2s;
}

.gallery-section.reveal .gallery-item:nth-child(4) {
    transition-delay: 0.3s;
}

/* Responsive untuk Desktop */
@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
        gap: 20px;
    }
}

/* rsvp  */
.rsvp-section {
    position: relative;
    padding: 80px 20px;
    background-color: var(--bg-cream);
    overflow: hidden;
}

.rsvp-wrapper {
    position: relative;
    z-index: 5;
    max-width: 550px;
    margin: 0 auto;
}

/* --- Form Card --- */
.rsvp-form-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(128, 36, 50, 0.08);
    margin-bottom: 50px;
}

.form-group {
    text-align: left;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: var(--font-serif);
    font-size: 0.9rem;
    color: #444;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 0.95rem;
    background: #fdfdfd;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-maroon);
}

.btn-send {
    width: 100%;
    background-color: var(--primary-maroon);
    color: white;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s ease;
}

.btn-send:hover {
    transform: scale(1.02);
}

/* --- Wishes Display --- */
.wishes-display {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid rgba(128, 36, 50, 0.1);
}

.wish-item {
    display: flex;
    gap: 15px;
    background: white;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    text-align: left;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.wish-avatar {
    width: 40px;
    height: 40px;
    background: var(--bg-cream);
    color: var(--primary-maroon);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-weight: bold;
    flex-shrink: 0;
}

.wish-name {
    font-family: var(--font-serif);
    font-weight: 700;
    color: #333;
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.badge-status {
    font-size: 0.7rem;
    padding: 2px 8px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 20px;
}

.wish-text {
    font-size: 0.85rem;
    color: var(--soft-text);
    margin: 5px 0 8px;
    line-height: 1.5;
}

.wish-time {
    font-size: 0.75rem;
    color: #999;
}

/* Scrollbar Custom */
.wishes-display::-webkit-scrollbar {
    width: 5px;
}

.wishes-display::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
}


/* gift */
.gift-section {
    position: relative;
    padding: 80px 20px;
    background-color: var(--bg-cream);
    overflow: hidden;
}

.gift-wrapper {
    position: relative;
    z-index: 5;
    max-width: 600px;
    margin: 0 auto;
}

.gift-header {
    margin-bottom: 40px;
}

.gift-cards {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.gift-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(128, 36, 50, 0.08);
    text-align: center;
    border: 1px solid rgba(128, 36, 50, 0.1);
}

.gift-flower-bg {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 100px;
    opacity: 0.1;
    z-index: 1;
}

.bank-logo {
    font-family: var(--font-serif);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--primary-maroon);
    margin-bottom: 15px;
}

.gift-icon {
    font-size: 2rem;
    color: var(--primary-maroon);
    margin-bottom: 10px;
}

.account-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.account-holder {
    font-size: 0.9rem;
    color: var(--soft-text);
    margin-bottom: 20px;
}

.address-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 15px;
}

.btn-copy {
    background-color: var(--primary-maroon);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-copy:hover {
    background-color: #a02d3f;
    transform: translateY(-2px);
}

/* Animasi Reveal */
.gift-card {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.gift-section.reveal .gift-card {
    opacity: 1;
    transform: translateY(0);
}

.closing-section {
    position: relative;
    padding: 100px 20px 40px;
    background-color: var(--bg-cream);
    text-align: center;
    overflow: hidden;
}

.closing-wrapper {
    position: relative;
    z-index: 5;
    max-width: 500px;
    margin: 0 auto;
}

/* Teks Penutup */
.closing-text p {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    color: var(--soft-text);
    line-height: 1.8;
    margin-bottom: 20px;
}

.spiritual-quote {
    font-weight: 700;
    color: var(--primary-maroon) !important;
    font-style: italic;
}

/* Foto Penutup */
.closing-photo {
    position: relative;
    width: 220px;
    height: 300px;
    margin: 40px auto;
}

.photo-frame {
    width: 100%;
    height: 100%;
    border-radius: 150px 150px;
    /* Bentuk Arch/Kubah */
    overflow: hidden;
    border: 5px solid white;
    box-shadow: 0 15px 35px rgba(128, 36, 50, 0.15);
    position: relative;
    z-index: 2;
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Identitas Final */
.couple-names-footer {
    font-family: var(--font-script);
    font-size: 3rem;
    color: var(--primary-maroon);
    margin-bottom: 10px;
}

.hashtag {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    letter-spacing: 3px;
    color: var(--soft-text);
    text-transform: uppercase;
}

/* Footer Style */
.main-footer {
    margin-top: 80px;
    border-top: 1px solid rgba(128, 36, 50, 0.1);
    padding-top: 30px;
}

.main-footer p {
    font-size: 0.8rem;
    color: #999;
    letter-spacing: 1px;
}

.main-footer i {
    color: var(--primary-maroon);
    margin: 0 3px;
    font-size: 0.7rem;
}

/* Sinkronisasi Reveal */
.closing-section .closing-wrapper {
    opacity: 0;
    transform: scale(0.95);
    transition: all 1.5s ease-out;
}

.closing-section.reveal .closing-wrapper {
    opacity: 1;
    transform: scale(1);
}

/* Import Google Fonts (Tambahkan di bagian head HTML) */