@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;
}

:root {
    --maroon-solid: #712b2c;
    --maroon-transparent: rgba(128, 0, 0, 0.6);
    --gold-gradient: #f8f9f5;
    --gold-text: #d4af37;
    --white: #ffffff;
}

/* --- BAGIAN KIRI (DESKTOP VIEW) --- */
.left-section {
    flex: 1.4;
    /* Gunakan foto prewedding utama dengan nuansa adat */
    background: url('images-2.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 80px 60px;
    position: relative;
    overflow: hidden;
}

/* Overlay Gradasi: Cokelat Jawa ke Transparan */
.left-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradasi gelap di bawah agar teks putih/emas tetap terbaca */
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.2) 0%,
            transparent 50%,
            rgba(70, 40, 30, 0.9) 100%);
    z-index: 1;
}

.left-content {
    position: relative;
    z-index: 3;
    color: white;
    text-align: center;
    animation: fadeInUp 1.5s ease;
}

/* Dekorasi Gunungan di Pojok Atas */
.left-decor {
    position: absolute;
    top: -20px;
    right: -50px;
    width: 350px;
    /* Diperbesar agar megah */
    z-index: 2;
    opacity: 0.6;
    transform: rotate(-10deg);
    pointer-events: none;
}

.left-javanese-ornament {
    width: 100%;
    /* Memberikan efek siluet emas halus */
    filter: drop-shadow(0px 0px 15px rgba(255, 215, 0, 0.3));
}

.left-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    letter-spacing: 8px;
    font-size: 1rem;
    margin-bottom: 0;
    text-transform: uppercase;
    color: #FFD700;
    /* Kuning Emas */
}

/* Menggunakan Font Jawa Palsu untuk Nama */
.bride-name-jawa {
    font-family: 'JawaPalsu', serif;
    font-size: 5rem;
    margin: 5px 0;
    font-weight: 400;
    color: white;
    text-shadow: 3px 3px 15px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

/* Divider: Gunakan Bunga Betawi kecil di tengah */
.left-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
}

.gold-line {
    width: 100px;
    height: 1px;
    background: linear-gradient(to right, transparent, #FFD700, transparent);
}

.divider-icon {
    width: 35px;
    height: auto;
}

.wedding-date {
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 6px;
    font-weight: 400;
    font-size: 1.1rem;
    text-transform: uppercase;
    margin: 10px 0;
    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('../galeri/bg-sampul2.webp') no-repeat center center;
    background-size: cover;
    scroll-behavior: smooth;
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 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;
}

.section {
    min-height: 100vh;
    display: flex;
    position: relative;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.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%;
    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: 100%;
    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: 1rem;
    letter-spacing: 4px;
    color: #fff;
    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;
    color: var(--maroon-solid);
    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;
    margin-top: 20px;
    /* 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;
}

.bottom-content {
    width: 100%;
    align-self: center;
    max-width: 320px;
    margin-bottom: 50px;
    /* Jarak dari bawah layar */
}

.guest-card {
    background: rgb(255 255 255 / 25%);
    backdrop-filter: blur(29px);
    -webkit-backdrop-filter: blur(30px);
    padding: 25px 15px;
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

/* --- Definisi Animasi CSS --- */

/* State Awal: Elemen tidak terlihat dan sedikit di bawah */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation-name: fadeInUpAnimation;
    animation-duration: 1s;
    /* Durasi animasi */
    animation-fill-mode: forwards;
    /* Menjaga posisi akhir setelah animasi selesai */
    animation-timing-function: ease-out;
    /* Animasi terasa halus di akhir */
}

/* Keyframes untuk pergerakan */
@keyframes fadeInUpAnimation {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-down {
    opacity: 0;
    transform: translateY(-20px);
    /* Start 20px di atas posisi asli */
    animation-name: fadeInDownAnimation;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    animation-timing-function: ease-out;
}

@keyframes fadeInDownAnimation {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.title {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 20px;
    /* Merapatkan jarak dengan inisial */
}

.couple-initials {
    position: relative;
    font-family: 'Mea Culpa', cursive;
    height: 140px;
    /* Disesuaikan */
    width: 200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.couple-initials span {
    position: absolute;
    line-height: 1;
    color: var(--maroon-solid);
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
}

/* Huruf R (Kiri & Lebih Atas) */
.char-left {
    font-size: 6rem;
    top: -10px;
    left: -12px;
    z-index: 2;
}

.char-amp {
    font-size: 3rem;
    z-index: 3;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.char-right {
    font-size: 6rem;
    bottom: 26px;
    right: -17px;
    z-index: 1;
}

.guest-info {
    margin-top: 20px;
}

.guest-info p {
    font-family: 'Playfair Display', serif;
    font-size: 0.85rem;
    font-style: italic;
    margin-bottom: 8px;
}

.guest-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Tombol Open Invitation */
.btn-open {
    padding: 12px 28px;
    background-color: var(--maroon-solid);
    /* Cokelat earthy sesuai referensi */
    color: #ffffff;
    border: none;
    border-radius: 30px;
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-open:hover {
    background-color: #6e5c4a;
    transform: translateY(-2px);
}

/* 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);
    }
}

.bottom-content {
    width: 100%;
    max-width: 320px;
    margin-bottom: 50px;
    /* Jarak dari bawah layar */
}


/* --- Definisi Animasi CSS --- */

/* State Awal: Elemen tidak terlihat dan sedikit di bawah */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation-name: fadeInUpAnimation;
    animation-duration: 1s;
    /* Durasi animasi */
    animation-fill-mode: forwards;
    /* Menjaga posisi akhir setelah animasi selesai */
    animation-timing-function: ease-out;
    /* Animasi terasa halus di akhir */
}

/* Keyframes untuk pergerakan */
@keyframes fadeInUpAnimation {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-down {
    opacity: 0;
    transform: translateY(-20px);
    /* Start 20px di atas posisi asli */
    animation-name: fadeInDownAnimation;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    animation-timing-function: ease-out;
}

@keyframes fadeInDownAnimation {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.title {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 20px;
    /* Merapatkan jarak dengan inisial */
}

.couple-initials {
    position: relative;
    font-family: 'Mea Culpa', cursive;
    height: 140px;
    /* Disesuaikan */
    width: 200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.couple-initials span {
    position: absolute;
    line-height: 1;
    color: var(--maroon-solid);
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
}

/* Huruf R (Kiri & Lebih Atas) */
.char-left {
    font-size: 6rem;
    top: -10px;
    left: -12px;
    z-index: 2;
}

.char-amp {
    font-size: 3rem;
    z-index: 3;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.char-right {
    font-size: 6rem;
    bottom: 26px;
    right: -17px;
    z-index: 1;
}

.guest-info {
    margin-top: 20px;
}

.guest-info p {
    font-family: 'Playfair Display', serif;
    font-size: 0.85rem;
    font-style: italic;
    margin-bottom: 8px;
}

.guest-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.btn-open:hover {
    background-color: #6e5c4a;
    transform: translateY(-2px);
}

/* 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);
    }
}

/* /opening */
.opening-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: #46281e;
    /* Warna cokelat dasar agar tidak kedip saat loading */
}

.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.opening-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

/* Tipografi dengan Font Jawa Palsu */
.couple-names-opening {
    font-size: 1.8em;
    padding: 0 33px;
    margin-top: 10%;
    text-transform: uppercase;
    color: #efbc4b;
    text-shadow: 2px 2px 10px rgb(68 39 29 / 64%);
    opacity: 0;
    transform: translateY(20px);


}

.wedding-date-opening {
    color: #ffffff;
    /* font-family: 'Montserrat', sans-serif; */
    letter-spacing: 2px;
    font-size: 1.1rem;
    margin-top: 10px;
    opacity: 0;

    /* Delay sedikit lebih lama dari nama */
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid #efbc4b;
    border-radius: 15px;
    position: relative;
    justify-self: center;
    margin-bottom: 10px;
}

.wheel {
    width: 4px;
    height: 8px;
    background: #ffffff;
    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);
    }
}

/* Sembunyikan konten secara default */
.opening-text-wrapper,
.scroll-indicator {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.opening-section.active .couple-names-opening {
    animation: fadeInUpOpening 1.5s ease-out 5s forwards;
}

.opening-section.active .wedding-date-opening {
    animation: fadeInUpOpening 1.5s ease-out 5.3s forwards;
}

.opening-section.active .scroll-indicator {
    animation: fadeInOpening 1s ease-out 6s forwards;
}

/* Keyframes tetap sama */
@keyframes fadeInUpOpening {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInOpening {
    to {
        opacity: 1;
    }
}

/* quotes/ */
.quotes-section {
    min-height: 70vh;
    padding: 40px 0px;
    /* background-color: #361e16; */
    /* Warna gelap agar kontras dengan container putih/krem */
    display: flex;
    justify-content: center;
    background-image: url('../galeri/bg-sampul.webp');
    /* Masukkan link foto pengantin */
    background-size: cover;
    background-position: center;
}

.overlay-quotes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgb(255 255 255) 0%, #ffffffa8 50%, rgb(255 255 255 / 60%) 100%);
    z-index: 0;
}

.quotes-container {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    /* Jarak aman */
}

.quotes-image-wrapper {
    width: 100%;
    max-height: 450px;
    /* BATAS MAKSIMAL TINGGI GAMBAR */
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(158, 114, 80, 0.5);
    margin-bottom: -40px;
    /* Overlap lebih dalam agar transisi mulus */
    z-index: 2;
    position: relative;
}

.quotes-img {
    width: 100%;
    height: 300px;
    /* Menyamakan dengan max-height wrapper */
    object-fit: cover;
    /* Foto menyesuaikan area tanpa distorsi */
    object-position: center;
    /* Fokus ke tengah foto */
    display: block;
    transform: scale(1);
    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('../galeri/bg-sampul2.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: #efbc4b;
    margin-bottom: 20px;
    font-weight: 700;
}

.ampersand {
    font-family: 'Great Vibes', cursive;
    font-size: 1.8rem;
    color: var(--maroon-solid);
    /* Maroon */
}

.quote-verse {
    font-style: italic;
    color: #444;
    line-height: 1.3;
    font-size: 0.8rem;
    margin-bottom: 20px;
}

.quote-source {
    font-weight: 700;
    color: var(--maroon-solid);
    /* Maroon */
    letter-spacing: 2px;
    font-size: 0.9rem;
}

/* couple/ */
/* 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: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    width: 100%;
    text-align: center;
    border: 2px solid var(--maroon-solid);
    z-index: 5;
}

.couple-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../galeri/bg-sampul2.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: #efbc4b;
    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(--maroon-solid);
    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: 110px;
    bottom: -10px;
    right: -20px;
    z-index: 3;
    transform-origin: bottom left;
    /* Ayunan berpusat di sudut kiri bawah bunga */
    animation: swayOndel 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: #efbc4b;
    margin-bottom: 5px;
}

.full-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    /* letter-spacing: 2px; */
    color: var(--maroon-solid);
    margin-bottom: 10px;
}

.parent-info {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.btn-instagram {
    display: inline-block;
    padding: 6px 15px;
    background: #c097894a;
    color: #4f392e;
    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: #5f1214;
    /* Warna gelap Betawi/Jawa */
    padding: 0;
    min-height: 100vh;
    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%, rgba(70, 40, 30, 0.8) 70%, #5f1214 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: 150px;
    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;
}

/* Reveal Animation (Sesuai Observer Anda) */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.event-section {
    padding: 20px 20px 80px 20px;
    min-height: 50vh;
    background-color: #5f1214;
    /* 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: 30px;
    /* 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('../galeri/bg-sampul2.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(--gold-text);
    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;
        color: var(--maroon-solid);
    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 */
.section-story {
    padding: 80px 15px;
    /* background-color: #46281e; */
    /* Cokelat Jawa Utama */
    position: relative;
}

.story-container {
    position: relative;
    max-width: 450px;
    border: 2px solid rgb(223 192 117);
    margin: 0 auto;
    border-radius: 20px;
    padding: 20px 0;
    background-image: url('../galeri/bg-sampul2.webp');
    background-position: bottom center;
    background-size: cover;
    overflow: hidden;
    z-index: 1;
}

/* Lapisan khusus untuk Background Image dengan Opacity */
.story-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-image: url(../galeri/bg-sampul2.webp); */
    background-position: bottom center;
    background-size: cover;
    background-color: #5f1214c2;
    opacity: 0.8;
    z-index: -1;
    /* Meletakkan background di belakang konten */
}

.story-header {
    text-align: center;
    margin-bottom: 50px;
}

.story-flower {
    width: 60px;
    margin-bottom: 10px;
}

.story-title {
    font-family: 'Pinyon Script', cursive;
    font-size: 2.5rem;
    color: #efbc4b;
    margin-top: 30px;
    /* Kuning Betawi */
    font-style: italic;
}

/* Card Styling */
.story-card {
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.story-image-wrapper {
    width: 90%;
    /* padding: 0 30px; */
    height: 250px;
    /* border-radius: 25px; */
    overflow: hidden;
    z-index: 2;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.story-img {
    width: 100%;
    height: 100%;
    border-radius: 25px;
    object-fit: cover;
}

.story-content-box {
    position: relative;
    width: 90%;
    margin-top: -30px;
    /* Efek Overlap sesuai referensi */
    padding: 50px 25px 30px;
    background-color: #fff;
    border-radius: 25px 25px;
    text-align: center;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

/* Layer Background Kartu (Gunakan bg-sampul-javabetawi.webp) */
.bg-card-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../galeri/bg-sampul2.webp');
    background-size: cover;
    opacity: 0.15;
    /* Tipis saja agar teks tetap terbaca */
    z-index: -1;
}

.story-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #c9982c;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.story-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #555;
}

/* gallery/ */
.gallery-section {
    padding: 60px 0px;
    background-image: url('../galeri/bg-sampul-baru.webp');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.gallery-container {
    max-width: 500px;
    margin: 0 auto;
}

/* Jika dibuka di HP */
@media (max-width: 768px) {
    .gallery-container {
        width: 350px;
    }
}

.gallery-header {
    text-align: center;
    margin-bottom: 40px;
}

.gallery-icon {
    width: 160px;
    margin-bottom: 10px;
}

.gallery-title {
    font-family: 'Pinyon Script', cursive;
    font-size: 2.2rem;
    color: #efbc4b;
    /* Emas */
    font-style: italic;
}

/* Video Wrapper (Rasio 16:9) */
.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid rgb(223 192 117);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Photo Grid Styling */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 kolom untuk mobile */
    gap: 15px;
}

.photo-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 200px;
    /* Tinggi seragam atau bisa auto */
    border: 2px solid rgba(255, 215, 0, 0.3);
    transition: transform 0.3s ease;
}

.photo-item:hover {
    transform: scale(1.03);
    border-color: #FFD700;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

/* Dekorasi Bunga */
.gallery-decor-bottom {
    margin-top: 30px;
    text-align: center;
}

.decor-flower {
    width: 100px;
    opacity: 0.8;
}

.gift-section {
    padding: 80px 20px;
    padding: 80px 20px;
    /* background: #e8ebef; */
    background-image: url('../galeri/bg-sampul-baru.webp');
    background-size: cover;
    background-position: center;
    /* position: relative; */
    overflow: hidden;
    text-align: center;
    min-height: 60vh;
}

.gift-content {
    border-radius: 20px 20px 20px 20px;
    background-color: #fff;
    border-style: solid;
    border-width: 4px 4px 4px 4px;
    border-color: #D7BB83;
    padding: 20px;

}

.gift-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px 20px 20px 20px;
    background-image: url('../galeri/bg-sampul2.webp');
    background-position: center center;
    background-size: cover;
    opacity: 0.2;
}

.gift-container {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.gift-shadow-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    z-index: -1;
    opacity: 0.8;
}

.gift-title {
    font-family: 'Pinyon Script', cursive;
    font-size: 2.5rem;
    color: #c9982c;
    font-style: italic;
}

.gift-divider {
    width: 50px;
    height: 3px;
    background: #b5905d;
    margin: 15px auto 25px;
}

.gift-intro {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #46281e;
    margin-bottom: 30px;
}

/* Tombol Klik Disini */
.btn-show-gift {
    padding: 12px 35px;
    background: linear-gradient(195deg, #46281e82, #660808);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(44, 74, 94, 0.2);
}

.btn-show-gift:hover {
    background: #b5905d;
    transform: scale(1.05);
}

/* Wrapper Kartu Rekening */
.gift-card-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.8s ease-in-out, opacity 0.5s;
    opacity: 1;
    margin-top: 20px;
}

.gift-card-wrapper.active {
    max-height: 1000px;
    opacity: 1;
}

.account-card {
    background: white;
    padding: 30px 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(44, 74, 94, 0.1);
}

.account-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #eee;
}

.bank-logo {
    height: 30px;
    margin-bottom: 15px;
}

.account-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c4a5e;
    letter-spacing: 2px;
}

.account-name {
    font-size: 0.9rem;
    color: #3d637c;
    margin-bottom: 10px;
}

.btn-copy {
    background: #f0f4f8;
    border: 1px solid #660808;
    color: #660808;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: 0.3s;
}

.btn-copy:hover {
    background: #660808;
    color: white;
}

/* Alamat */
.address-item {
    margin-top: 10px;
}

.address-title {
    font-size: 1rem;
    color: #2c4a5e;
    margin-bottom: 5px;
}

.address-text {
    font-size: 0.9rem;
    margin-bottom: 10px;
    opacity: 0.8;
}

/* Decor */
.g-flower-left {
    position: absolute;
    bottom: -30px;
    left: -50px;
    width: 200px;
    opacity: 0.5;
    z-index: 2;
    transform: rotate(348deg);
}

.gift-icon {
    font-size: 50px;
    line-height: 1;
    text-align: center;
    height: 1em;
    margin-bottom: 27px;
}

/* rsvp/ */
.rsvp-section {
    padding: 80px 20px;
    background: linear-gradient(to bottom, rgb(102 8 8 / 5%), rgb(100 10 6 / 96%));
}

.rsvp-container {
    max-width: 450px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.wishes-title {
    font-family: 'Pinyon Script', cursive;
    font-style: italic;
    text-shadow: 0px 5px 11px #ddbeb3;
    font-size: 2.5rem;
    color: #efbc4b;
    margin-bottom: 5px;
}

.wishes-subtitle {
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    letter-spacing: 1px;
}

.decor-line {
    margin: 15px 0 30px;
}

.flower-mini {
    width: 80px;
}

/* Card Style */
.rsvp-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid rgb(223 192 117);
}

/* Hadir/Tidak Counter */
.rsvp-counter {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.count-box {
    flex: 1;
    padding: 15px;
    border-radius: 12px;
    color: white;
}

.count-box.hadir {
    background-color: #2e7d32;
}

/* Hijau Betawi */
.count-box.tidak-hadir {
    background-color: #c62828;
}

/* Merah Betawi */

.count-num {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Form Styling */
.form-group {
    margin-bottom: 15px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    background: #f9f9f9;
}

.btn-kirim {
    width: 100%;
    background-color: #d4b581;
    /* Warna Emas Jawa */
    color: #46281e;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-kirim:hover {
    background-color: #46281e;
    color: white;
}

/* Guestbook List */
.wishes-list {
    margin-top: 30px;
    max-height: 400px;
    overflow-y: auto;
    text-align: left;
    padding-right: 5px;
}

.wish-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.wish-avatar {
    width: 40px;
    height: 40px;
    background: #46281e;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wish-name {
    font-weight: 700;
    color: #46281e;
    margin-bottom: 3px;
}

.verified {
    color: #2e7d32;
    font-size: 0.8rem;
}

.wish-text {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

.wish-time {
    color: #aaa;
    font-size: 0.75rem;
}

.footer-grass {
    width: 100%;
    opacity: 0.8;
    margin-top: 0px;
    margin-bottom: -91px;
}

.closing-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
}

/* Background & Overlay */
.closing-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.closing-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.closing-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradasi gelap agar teks terbaca, seperti di referensi */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgb(101 8 8));
    z-index: 2;
}

/* Content Area */
.closing-content {
    position: relative;
    z-index: 10;
    padding: 0 30px;
    max-width: 450px;
}

.closing-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 40px;
    font-weight: 300;
}

.closing-greet p {
    font-family: 'Pinyon Script', cursive;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.couple-names-closing {
    font-family: 'JawaPalsu', serif;
    font-size: 2.8rem;
    color: #efbc4b;
    /* Kuning Betawi/Gold */
    margin-bottom: 30px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hashtag-wrapper {
    margin-bottom: 40px;
}

.hashtag-wrapper span {
    font-family: 'Montserrat', sans-serif;
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid #FFD700;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.mini-gunungan {
    width: 50px;
    opacity: 0.7;
    margin-bottom: 20px;
}

.credit-text p {
    font-size: 0.7rem;
    opacity: 0.6;
    letter-spacing: 2px;
}