@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);
    }
}

@keyframes slideInFlower3 {
    from {
        opacity: 0;
        transform: translateY(100px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 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));
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 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;
    margin: 0;
    padding: 0;
    color: #4a4a4a;
}

.wrapper {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* --- BAGIAN KIRI (DESKTOP VIEW) --- */
.left-section {
    flex: 1.4;
    /* Ganti dengan foto prewedding utama yang senada dengan tema garden */

    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 80px 60px;
    position: relative;
    overflow: hidden;
}

/* Overlay Gradasi: Menggunakan nuansa Maroon Gelap ke Transparan */
.left-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(70, 40, 30, 0) 0%, rgba(70, 40, 30, 0.4) 30%, rgb(140 76 81 / 71%) 70%, #591c1f 100%);
    z-index: 1;
}

.left-content {
    position: relative;
    z-index: 3;
    color: white;
    text-align: center;
    animation: fadeInUp 1.5s ease;
}

/* Dekorasi Ornamen Garden di Samping */
.left-decor {
    position: absolute;
    top: 50px;
    right: -20px;
    width: 250px;
    z-index: 2;
    opacity: 0.8;
    transform: rotate(15deg);
    pointer-events: none;
}

.left-garden-ornament {
    width: 100%;
    filter: drop-shadow(2px 4px 10px rgba(0, 0, 0, 0.3));
}

.left-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    letter-spacing: 6px;
    font-size: 0.9rem;
    margin-bottom: 0;
    text-transform: uppercase;
    color: var(--gold-text);
    /* Gunakan warna gold */
}

.bride-name-cursive {
    font-family: 'Great Vibes', cursive;
    /* Konsisten dengan mobile */
    font-size: 5.5rem;
    margin: 10px 0;
    font-weight: 400;
    color: white;
    text-shadow: 2px 4px 15px rgba(0, 0, 0, 0.5);
}

/* Divider Baru: Line Gold dengan Icon */
.left-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.gold-line {
    width: 80px;
    height: 1px;
    background: var(--gold-gradient);
}

.gold-heart {
    color: var(--gold-text);
    font-size: 0.8rem;
}

.wedding-date {
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 5px;
    font-weight: 400;
    font-size: 1rem;
    text-transform: uppercase;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.9);
}

/* Responsif: Tetap disembunyikan di mobile agar fokus ke undangan */
@media (max-width: 1024px) {
    .left-section {
        display: none;
    }
}

/* --- BAGIAN KANAN (SAMPUL ELEGAN) --- */
.right-section {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    background: url('../images/bg-sampul-goldred.webp') no-repeat center center;
    background-size: cover;
    scroll-behavior: smooth;
}

.section {
    min-height: 100vh;
    display: flex;
    position: relative;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

:root {
    --maroon-solid: #591c1f;
    --maroon-transparent: rgba(128, 0, 0, 0.6);
    --gold-gradient: #f8f9f5;
    --gold-text: #d4af37;
    --white: #ffffff;
}

/* first/  */


.first-screen {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    color: var(--white);
    font-family: 'Playfair Display', serif;
}

/* Background Photo Setup */
.bg-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    z-index: 1;
}

/* Overlay Gradasi Maroon untuk Nuansa Garden yang Hangat */
.overlay-maroon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #00000075;
    z-index: 2;
}

.content {
    position: relative;
    z-index: 3;
    height: 82%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Meniru layout gambar: teks di atas, tombol di bawah */
    padding: 40px 20px;
}

/* Typography & Animations */
.the-wedding {
    font-family: "Cormorant Garamond", Sans-serif;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 10px;
    opacity: 0;
    animation: fadeInDown 1.2s forwards;
}

.couple-names {
    font-size: 1.5rem;
    letter-spacing: 4px;
    font-weight: 700;
    text-transform: uppercase;
    /* text-shadow: 4px 4px 20px rgb(132 0 0); */
    opacity: 0;
    animation: fadeInDown 1.2s forwards 0.5s;
}

.recipient-label {
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: 300;
}

.guest-name {
    font-size: 1.4rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
}

/* Button "Buka Undangan" ala Gold */
.btn-open-invitation {
    background: var(--gold-gradient);
    border: none;
    padding: 12px 40px;
    border-radius: 25px;
    color: var(--maroon-solid);
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 1.2s forwards 1s;
}

.btn-open-invitation:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

/* Animations Keyframes */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.top-content {
    position: relative;
    /* padding: 40px 0px; */
    /* background-image: url(shadow-white.webp); */
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.95;
    animation: fadeInDown 1.2s forwards;
    z-index: 4;
}

/* Karena .top-content sudah punya animasi, kita hapus animasi individual di teks 
   agar muncul bersamaan dengan background shadow-nya */
.the-wedding,
.couple-names {
    opacity: 1 !important;
    animation: none !important;
}

/* opening/ */
.opening-section {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f7efe1;
    /* Fallback warna gelap */
}

/* Video Background Styling */
.video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    /* width: auto; */
    /* height: auto; */
    z-index: 1;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.opening-container {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Teks sekarang benar-benar di tengah vertikal */
    align-items: center;
    height: 100%;
    width: 100%;
    gap: 30px;
    /* Jarak antara konten utama dan scroll indicator */
}

/* Shadow Decor Adopting shadow-white.webp */
.shadow-decor {
    background-image: url('shadow-white.webp');
    background-size: 100% 100%;
    /* Menyesuaikan ukuran box */
    background-repeat: no-repeat;
    background-position: center;
    padding: 40px 40px;
    /* Padding diperbesar agar shadow terlihat luas */
    opacity: 0;
    animation: zoomIn 2s ease-out forwards;
    animation-delay: 5s;
    z-index: 4;
}

.opening-names {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    letter-spacing: 5px;
    line-height: 1.2;
    color: var(--maroon-solid);
    /* text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.5); */
    margin: 20px 0;
}

.wedding-date-opening {
    font-size: 1.5rem;
    letter-spacing: 8px;
    font-weight: 300;
    border-top: 1px solid var(--gold-text);
    border-bottom: 1px solid var(--gold-text);
    display: inline-block;
    color: var(--maroon-solid);
    padding: 10px 20px;
}

.scroll-indicator {
    position: absolute;
    bottom: 184px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: fadeIn 1.5s ease-out forwards;
    animation-delay: 6s;
}


.fg-item {
    position: absolute;
    bottom: -100px;
    opacity: 0;
    transition: none;
    /* Menggabungkan dua animasi: growFlower (sekali) dan sway (terus-menerus) */
    /* Kita gunakan transform-origin: bottom agar ayunan berpusat di bawah/akar */
    transform-origin: bottom center;
    animation: growFlower 2s ease forwards, sway 4s ease-in-out infinite alternate;
}

/* Penentuan Animasi Individual agar tidak mengayun bersamaan (staggered) */


.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--gold-text);
    border-radius: 15px;
    position: relative;
}

.scrol-text {
    color: var(--gold-text);
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--gold-text);
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scrollMouse 2s infinite;
}

/* Keyframes */
@keyframes scrollMouse {
    0% {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, 15px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 0.8;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Class untuk Animasi On Scroll (Triggered by JS) */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.opening-sub {
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 50px;
}

/* quotes/ */
.quotes-section {
    padding: 50px 20px;
    background-color: var(--maroon-solid);
    /* Warna dasar soft pink/cream sesuai gambar */
    display: flex;
    justify-content: center;
    align-items: center;
}

.quotes-container {
    max-width: 400px;
    /* Lebar menyerupai ukuran mobile/referensi */
    width: 100%;
    position: relative;
    background-color: #ffffffc9;
    /* Membuat bentuk Arch */
    border-radius: 200px 200px 50px 50px;
    padding: 60px 30px;
    box-shadow: 0px 0px 30px 17px rgb(0 0 0 / 18%);
    text-align: center;
    overflow: hidden;
    border: 8px solid #ecdbab;
    outline: 1px solid #e0caca;
    /* Garis tepi tipis */
}

.quotes-top-illustration {
    width: 100%;
    max-width: 200px;
    margin: 0 auto 20px;
    display: block;
}

/* Image Wrapper dengan Rounded Corners */
.quotes-image-wrapper {
    width: 100%;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgb(107 154 138);
    margin-bottom: -30px;
    /* Overlap sedikit dengan box teks di bawah */
    z-index: 2;
}

.quotes-img {
    width: 100%;
    height: auto;
    display: block;
    transform: scale(1.05);
    transition: transform 2s ease;
}

/* Content Wrapper dengan Background Webp */
.quotes-content-wrapper {
    position: relative;
    width: 95%;
    padding: 60px 30px 40px;
    border-radius: 0 0 30px 30px;
    z-index: 1;
    overflow: hidden;
    text-align: center;
}

.bg-garden-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('bg-sampul-garden.webp');
    background-size: cover;
    background-position: center;
    opacity: 1;
    /* Tipis-tipis agar teks tetap terbaca */
    z-index: -1;
}

.quotes-text-inner {
    position: relative;
}

.initials {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--gold-text);
    margin-bottom: 20px;
    font-weight: 700;
}

.ampersand {
    font-family: 'Great Vibes', cursive;
    font-size: 1.8rem;
    color: var(--maroon-solid);
    /* Maroon */
}

.quote-verse {
    font-family: 'Crimson Text', serif;
    /* Font klasik formal */
    font-style: italic;
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 20px;
    padding: 0 10px;
}

.quote-source {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #b5838d;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quotes-title {
    font-family: 'Great Vibes', cursive;
    font-size: 2.2rem;
    color: #b5838d;
    /* Warna dusty rose */
    margin-bottom: 25px;
}

.quotes-bottom-decoration {
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    z-index: 1;
    pointer-events: none;
}

/* --- GLOBAL ANIMATION SYSTEM --- */

/* State Awal (Tersembunyi) */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    visibility: hidden;
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
}

.reveal-up {
    transform: translateY(50px);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

/* State Akhir (Muncul) */
.active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translate(0, 0) !important;
}

/* --- CUSTOM DELAYS (Opsional per Section) --- */
#save-the-date .reveal-up:nth-child(1) {
    transition-delay: 0.2s;
}

#save-the-date .reveal-up:nth-child(2) {
    transition-delay: 0.4s;
}

/* couple/ */
.couple-section {
    position: relative;
    padding: 80px 20px;
    /* background-color: #fff; */
    overflow: hidden;
    text-align: center;
}

.card-couple {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 60px 30px;
    border-radius: 165px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    width: 100%;
    text-align: center;
    border: 1px solid rgba(212, 163, 115, 0.2);
    z-index: 5;
}

.couple-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('bg-sampul-garden.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    /* Transparan agar konten tetap fokus */
    z-index: 1;
}

.couple-container {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.flower-top {
    width: 120px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    transform-origin: bottom center;
    /* Animasi sway terus menerus */
    animation: sway 4s ease-in-out infinite alternate;
}


.title-married {
    font-family: 'Pinyon Script', cursive;
    font-size: 2rem;
    color: var(--maroon-solid);
    margin-bottom: 15px;
}

.intro-text {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 50px;
    padding: 0 10px;
}

/* Photo Frame Oval */
.photo-frame {
    position: relative;
    width: 200px;
    height: 280px;
    margin: 0 auto 20px;
    border: 3px solid var(--gold-text);
    border-radius: 100px;
    /* Bentuk Oval */
    overflow: visible;
    /* Biar bunga bisa keluar dari frame */
}

.mempelai-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 100px;
}

.flower-decor-photo {
    position: absolute;
    width: 100px;
    bottom: -10px;
    right: -20px;
    z-index: 3;
    transform-origin: bottom left;
    /* Ayunan berpusat di sudut kiri bawah bunga */
    animation: sway 3.5s ease-in-out infinite alternate-reverse;
    /* Kecepatan berbeda agar lebih dinamis */
}

/* Mempelai Detail */
.mempelai-name {
    font-family: 'Pinyon Script', cursive;
    font-size: 3rem;
    color: var(--maroon-solid);
    margin-bottom: 5px;
}

.full-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    /* letter-spacing: 2px; */
    color: #333;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.parent-info {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.btn-instagram {
    display: inline-block;
    padding: 6px 15px;
    background: var(--gold-gradient);
    color: var(--maroon-solid);
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.separator-ampersand {
    font-family: 'Great Vibes', cursive;
    font-size: 4rem;
    color: var(--gold-text);
    margin: 40px 0;
}


.save-the-date {
    position: relative;
    background-color: var(--maroon-solid);
    /* Warna gelap Betawi/Jawa */
    padding: 0;
    min-height: 95vh;
    overflow: hidden;
    padding-bottom: 60px;
}

/* Slider Style */
.slider-wrapper {
    position: relative;
    width: 100%;
    /* Gunakan height yang lebih besar agar transisi gradient punya ruang */
    height: 70vh;
    margin-bottom: -100px;
    /* Menarik konten bawah lebih naik agar menumpuk di atas foto */
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slider-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.slider-img.active {
    opacity: 1;
    z-index: 2;
}

/* Gradient Overlay: Menyambungkan foto dengan background cokelat di bawah */
.slider-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    /* Perbesar tinggi gradient menjadi 60-70% untuk transisi yang sangat halus */
    height: 70%;
    /* Gradasi dari transparan ke warna background solid #46281e */
    background: linear-gradient(to bottom, rgba(70, 40, 30, 0) 0%, rgba(70, 40, 30, 0.4) 30%, rgb(140 76 81 / 71%) 70%, #591c1f 100%);
    z-index: 3;
}

/* Countdown Section */
.countdown-container {
    position: relative;
    /* Hilangkan margin-top negatif jika sudah menggunakan margin-bottom negatif pada slider-wrapper */
    z-index: 4;
    text-align: center;
    padding: 0 20px;
}

.flower-mini {
    width: 80px;
    margin-bottom: 10px;
}

.std-title {
    font-family: 'Pinyon Script', cursive;
    font-style: italic;
    font-size: 2.2rem;
    color: #efbc4b;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

/* Timer Box Style (Adopsi dari gambar referensi) */
.timer-wrapper {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.timer-box {
    background-color: #d4b581;
    /* Warna krem emas sesuai referensi */
    width: 70px;
    height: 70px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.timer-box span {
    font-size: 1.5rem;
    font-weight: 700;
    color: #46281e;
}

.timer-box p {
    font-size: 0.7rem;
    margin: 0;
    text-transform: uppercase;
    color: #46281e;
}

/* Button & Text */
.btn-calendar {
    background-color: white;
    color: #333;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.btn-calendar:hover {
    background-color: #e91e63;
    color: white;
}

.std-invitation-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 320px;
    margin: 0 auto 25px auto;
}


/* event/ */
.event-section {
    padding: 80px 20px;
        min-height: 60vh;
    background-color: var(--maroon-solid);
    /* Ivory white */
}

.event-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
}

/* Card Styling dengan Bentuk Arch (Lengkungan) */
.event-card {
    position: relative;
    width: 100%;
    padding: 60px 30px;
    border-radius: 180px 180px;
    /* Membuat bentuk Arch atas */
    border: 3px solid var(--gold-text);
    overflow: hidden;
    text-align: center;
    background-color: white;
    box-shadow: 0 15px 35px rgba(128, 0, 0, 0.1);
}

/* Background Card Overlay */
.card-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/bg-sampul-goldred.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    /* Halus agar teks terbaca */
    z-index: 1;
}

.card-content {
    position: relative;
    z-index: 2;
}

/* Typography Event */
.event-type {
    font-family: 'Pinyon Script', cursive;
    font-size: 2.8rem;
    color: var(--maroon-solid);
    margin-bottom: 25px;
}

.event-date-box {
    margin-bottom: 30px;
}

.day {
    font-weight: 700;
    letter-spacing: 3px;
    color: #333;
}

.date {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    line-height: 1;
    color: #000;
    margin: 5px 0;
}

.month-year {
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.time {
    font-size: 0.9rem;
    color: #555;
}

.location-box {
    margin-top: 20px;
    padding: 0 10px;
}

.gold-icon {
    font-size: 1.5rem;
    color: var(--gold-text);
    margin-bottom: 10px;
}

.venue-name {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.address {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 30px;
}

/* Button Google Map Gold Pill */
.btn-google-maps {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gold-gradient);
    color: var(--maroon-solid);
    padding: 10px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: 0.3s ease;
}

.btn-google-maps:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(191, 149, 63, 0.4);
}

/* story/ */
/* --- STORY SECTION --- */
.section-story {
    padding: 100px 20px;
    background-color: #fffaf5;
    /* Cream lembut agar warna gold & green menonjol */
    overflow: hidden;
}

.story-container {
    max-width: 900px;
    margin: 0 auto;
}

.story-header {
    text-align: center;
    margin-bottom: 60px;
}

.story-main-title {
    font-family: 'Great Vibes', cursive;
    font-size: 3.5rem;
    color: #800000;
    /* Deep Red/Maroon */
    margin-bottom: 10px;
}

.story-line {
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, transparent, #d4af37, transparent);
    /* Antique Gold */
    margin: 0 auto;
}

/* --- STORY ITEM LAYOUT --- */
.story-item {
    display: flex;
    align-items: center;
    margin-bottom: 80px;
    gap: 40px;
}

/* Membuat Layout Zigzag */
.story-item.item-reverse {
    flex-direction: row-reverse;
}

/* --- IMAGE STYLING --- */
.story-image-box {
    flex: 1;
    position: relative;
    padding: 15px;
}

.story-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    z-index: 2;
    position: relative;
    filter: sepia(20%);
    /* Memberikan kesan vintage/classic */
}

/* Frame Emas di belakang foto */
.image-frame-gold {
    position: absolute;
    top: 0;
    left: 0;
    width: 90%;
    height: 90%;
    border: 3px solid #d4af37;
    /* Gold */
    border-radius: 15px;
    z-index: 1;
    transform: translate(25px, 25px);
    /* Offset agar terlihat artistik */
}

/* --- TEXT STYLING --- */
.story-text {
    flex: 1;
}

.story-date {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: #2d5a27;
    /* Forest Green */
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.story-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #800000;
    /* Red */
    margin-bottom: 15px;
}

.story-text p {
    font-family: 'Crimson Text', serif;
    font-size: 1.1rem;
    color: #444;
    line-height: 1.6;
}

/* Responsive Mobile */
@media (max-width: 768px) {

    .story-item,
    .story-item.item-reverse {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .story-image-box {
        width: 100%;
    }

    .image-frame-gold {
        transform: translate(15px, 15px);
    }
}

/* --- ANIMATION SYSTEM --- */

/* State Awal: Tersembunyi di kiri */
.reveal-left {
    opacity: 0;
    transform: translateX(-80px);
    /* Geser ke kiri */
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
}

/* State Awal: Tersembunyi di kanan */
.reveal-right {
    opacity: 0;
    transform: translateX(80px);
    /* Geser ke kanan */
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
}

/* State Akhir: Muncul ke posisi normal */
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Tambahan: Delay beruntun jika ada elemen yang berdekatan */
.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

/* galeri/ */
.gallery-section {
    padding: 80px 20px;
    background-color: var(--maroon-solid);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.gallery-container {
    max-width: 1000px;
    margin: 0 auto;
}

.gallery-title {
    font-family: 'Pinyon Script', cursive;
    font-size: 3.5rem;
    color: var(--gold-gradient);
    margin-bottom: 10px;
}

.gallery-subtitle {
    font-size: 1rem;
    color: var(--gold-text);
    margin-bottom: 50px;
}

/* Video Styling */
.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 50px;
    padding: 10px;
    background: var(--gold-gradient);
    /* Frame Emas */
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(128, 0, 0, 0.15);
}

.video-frame {
    position: relative;
    padding-bottom: 56.25%;
    /* Ratio 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
}

.video-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.flower-video-decor {
    position: absolute;
    width: 90px;
    top: -40px;
    right: -30px;
    z-index: 3;
}

/* Photo Grid Styling */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 kolom di mobile */
    grid-auto-rows: 150px;
    /* Tinggi dasar baris */
    gap: 12px;
    padding: 0 10px;
}

.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    /* Lebih rounded sesuai gambar referensi */
    border: 2px solid var(--gold-text);
    display: block;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Variasi Ukuran Item */
.photo-item.tall {
    grid-row: span 2;
    /* Mengambil 2 baris (lebih tinggi) */
}

.photo-item.big {
    grid-row: span 2;
    grid-column: span 1;
}

.photo-item:hover img {
    transform: scale(1.1);
}

/* Styling Video Frame */
.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 50px;
    padding: 8px;
    background: var(--gold-gradient);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.video-frame {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 15px;
}

.flower-video-decor {
    position: absolute;
    width: 100px;
    top: -45px;
    right: -35px;
    z-index: 3;
}

.flower-gallery-bottom {
    width: 82px;
    margin-top: -130px;
    opacity: 0.9;
    margin-left: -38px;
}

/* Responsif untuk Tablet & Desktop */
@media (min-width: 768px) {
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 3 kolom di layar besar */
        grid-auto-rows: 200px;
        gap: 20px;
    }

    .photo-item.big {
        grid-column: span 2;
        /* Gambar utama jadi lebih lebar di desktop */
        grid-row: span 2;
    }
}

.gift-section {
    padding: 50px 20px;
    background-color: var(--maroon-solid);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.gift-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.gift-title {
    font-family: 'Pinyon Script', cursive;
    font-size: 3.5rem;
    color: var(--gold-gradient);
    margin-bottom: 15px;
}

.gift-subtitle {
    font-size: 0.95rem;
    color: var(--gold-gradient);
    line-height: 1.6;
    margin-bottom: 50px;
    padding: 0 20px;
}

.gift-cards-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.gift-card {
    background: #fff;
    border: 2px solid var(--gold-text);
    border-radius: 20px;
    padding: 40px 30px;
    width: 100%;
    max-width: 320px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(128, 0, 0, 0.1);
}

/* Background pola halus di dalam kartu */
.card-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('bg-sampul-garden.webp');
    background-size: cover;
    opacity: 0.05;
    z-index: 1;
}

.bank-logo,
.gift-icon,
.account-info,
.btn-copy {
    position: relative;
    z-index: 2;
}

.gift-icon .gold-icon {
    font-size: 3rem;
    color: var(--gold-text);
    margin-bottom: 20px;
}

.account-info {
    margin: 20px 0;
}

.account-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.account-number {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--maroon-solid);
    font-weight: 700;
}

.address-text {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

/* Styling Tombol List Kado */
.btn-gift-list {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: 2px solid var(--gold-text);
    color: var(--gold-text);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.4s ease;
    font-family: 'Playfair Display', serif;
}

.btn-gift-list i {
    font-size: 1.1rem;
}

.btn-gift-list:hover {
    background: var(--gold-gradient);
    color: var(--maroon-solid);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Responsif untuk Mobile */
@media (max-width: 480px) {
    .btn-gift-list {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}

/* Button Copy Gold */
.btn-copy {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--gold-gradient);
    border: none;
    color: var(--maroon-solid);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.85rem;
    cursor: pointer;
    margin: 0 auto;
    transition: 0.3s;
}

.btn-copy:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(191, 149, 63, 0.4);
}

.flower-gift-decor {
    width: 120px;
    margin-top: 50px;
}

/* rsvp/ */
.rsvp-section {
    padding: 80px 20px;
    background: transparent;
    /* Sesuai permintaan */
    position: relative;
    z-index: 2;
}

.rsvp-container {
    max-width: 600px;
    margin: 0 auto;
}

.rsvp-title {
    font-family: 'Great Vibes', cursive;
    font-size: 3.5rem;
    color: var(--maroon-solid);
    text-align: center;
}

.rsvp-subtitle {
    text-align: center;
    color: #555;
    margin-bottom: 40px;
    font-style: italic;
}

/* Form Styling */
.rsvp-form-wrapper {
    background: rgba(255, 255, 255, 0.8);
    /* Semi-transparan agar kontras */
    padding: 30px;
    border-radius: 20px;
    border: 2px solid var(--gold-text);
    box-shadow: 0 10px 30px rgba(128, 0, 0, 0.1);
    margin-bottom: 50px;
}

.input-group {
    margin-bottom: 15px;
}

.rsvp-form-wrapper input,
.rsvp-form-wrapper select,
.rsvp-form-wrapper textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    outline: none;
    background: rgba(255, 255, 255, 0.9);
}

.rsvp-form-wrapper input:focus,
.rsvp-form-wrapper textarea:focus {
    border-color: var(--maroon-solid);
}

.btn-rsvp {
    width: 100%;
    padding: 15px;
    background: var(--gold-gradient);
    border: none;
    border-radius: 50px;
    color: var(--maroon-solid);
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-rsvp:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(191, 149, 63, 0.4);
}

/* Wishes Display (Guest Book List) */
.wishes-display {
    background: rgba(128, 0, 0, 0.05);
    /* Maroon sangat tipis */
    border-radius: 20px;
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid rgba(191, 149, 63, 0.3);
}

.wishes-counter {
    background-color: #2d5a27;
    /* Green */
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    width: fit-content;
    margin-bottom: 20px;
    align-self: center;
}

.count-number {
    font-weight: 800;
    color: #d4af37;
    /* Gold */
}

.wish-item {
    background: white;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    border-left: 4px solid var(--maroon-solid);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.wish-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.wish-name {
    font-weight: bold;
    color: var(--maroon-solid);
}

.wish-status {
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 20px;
}

.wish-status.hadir {
    background: #e8f5e9;
    color: #2e7d32;
}

.wish-status.tidak-hadir {
    background: #ffebee;
    color: #c62828;
}

.wish-text {
    font-size: 0.9rem;
    color: #444;
    line-height: 1.5;
}

.flower-rsvp-decor {
    width: 150px;
    display: block;
    margin: 40px auto 0;
}

/* Custom Scrollbar untuk Guest Book */
.wishes-display::-webkit-scrollbar {
    width: 5px;
}

.wishes-display::-webkit-scrollbar-track {
    background: transparent;
}

.wishes-display::-webkit-scrollbar-thumb {
    background: var(--gold-text);
    border-radius: 10px;
}

/* closing/ */
/* --- CLOSING SECTION DENGAN FOTO BACKGROUND --- */
.closing-section {
    position: relative;
    padding: 100px 20px 0px;
    /* Ganti dengan foto penutup Anda */
    background-position: center;
    background-attachment: scroll;
    /* Atau 'fixed' untuk efek parallax */
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    /* Pastikan section memiliki tinggi yang cukup */
}

/* Overlay Gradasi Maroon untuk kontras teks */
.closing-overlay-maroon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradasi dari maroon gelap ke maroon transparan */
    background: linear-gradient(to bottom, rgba(70, 40, 30, 0) 0%, rgba(70, 40, 30, 0.4) 30%, rgb(140 76 81 / 71%) 70%, #591c1f 100%);
    z-index: 1;
}

.closing-container {
    position: relative;
    max-width: 500px;
    margin-top: 175px;
    /* margin: 0 auto; */
    z-index: 2;
}

/* Typography Putih */
.closing-text-white {
    font-size: 1rem;
    line-height: 1.2;
    color: var(--gold-gradient);
    margin-bottom: 5px;
    font-weight: 300;
}

.closing-sub-title-white {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
    margin-top: 53px;
    letter-spacing: 1px;
}

/* Nama Pasangan Gold */
.couple-names-final {
    font-family: 'Pinyon Script', cursive;
    font-size: 3.5rem;
    color: var(--gold-text);
    color: var(--maroon-solid);
    margin-bottom: 15px;
    text-shadow: 2px 2px 10px rgb(255 234 234 / 50%);


    /* Bayangan teks agar lebih pop */
}

.couple-names-final span {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
}

/* Hashtag Gold */
.hashtag-final {
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: #ffffff;
    opacity: 0.9;
    margin-top: 20px;
    margin-bottom: 60px;
    /* Jarak ke footer */
}

/* Footer tetap di bawah */
.main-footer {
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    padding-top: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
}

.main-footer i {
    color: #ff4d4d;
    animation: heartBeat 1.5s infinite;
}

/* Bunga di pojok tetap dipertahankan dengan sway */
.flower-closing-accent {
    position: absolute;
    width: 130px;
    bottom: -130px;
    right: -42px;
    opacity: 0.5;
    z-index: 3;
    transform-origin: bottom center;
    animation: sway 4s ease-in-out infinite alternate;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.3));
}