@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 {
    background-color: #e9eff5;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #6d5d4b;
    background-color: #fff;

}

.wrapper {
    display: flex;
    height: 100vh;
    overflow: hidden;
    /* Mencegah seluruh halaman scroll */
}

/* Class khusus untuk nama pengantin */

/* --- BAGIAN KIRI (FIXED/STATIS) --- */
/* --- BAGIAN KIRI (FIXED/STATIS) --- */
/* --- BAGIAN KIRI (FIXED/STATIS) --- */
.left-section {
    color: #1a1a1a;
    flex: 1.8;
    background: url('images.jpeg') no-repeat center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Mempertahankan posisi konten di bawah */
    padding: 60px;
    position: relative;
    overflow: hidden;
    border-right: 1px solid #e8e2d9;
    /* Border halus warna pasir */
}

/* Overlay Cerah Scandi */
.left-section::before {
    content: "";
    position: absolute;
    inset: 0;
    /* Gradient cerah yang lembut untuk transisi ke konten */
    background: linear-gradient(to top,
            #fcfcfc 0%,
            rgba(252, 252, 252, 0.4) 50%,
            transparent 100%);
    z-index: 1;
}

/* Aksen Cahaya Lembut (Bukan Neon) */
.left-section::after {
    content: "";
    position: absolute;
    top: -10%;
    right: -10%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, #e8e2d9 0%, transparent 70%);
    filter: blur(80px);
    opacity: 0.3;
    z-index: 1;
    animation: scandiPulse 10s ease-in-out infinite alternate;
}

@keyframes scandiPulse {
    from {
        transform: scale(1);
        opacity: 0.2;
    }

    to {
        transform: scale(1.15);
        opacity: 0.4;
    }
}

.left-content {
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
}

/* Penyesuaian Tipografi Scandi */
.left-content h2 {
    font-weight: 800;
    letter-spacing: 6px;
    /* Sedikit lebih rapat namun tetap luas */
    font-size: 0.75rem;
    margin-bottom: 15px;
    color: #a0a0a0;
    /* Abu-abu kalem khas Scandi */
    text-transform: uppercase;
    text-shadow: none;
    /* Menghapus glow neon */
}

.left-content h1 {
    font-size: 4.5rem;
    /* Ukuran lebih proporsional */
    font-family: 'Playfair Display', serif;
    /* Font Serif yang elegan */
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.left-content h1 span {
    display: block;
    font-size: 2.2rem;
    color: #e8e2d9;
    /* Warna pasir untuk aksen nama */
    -webkit-text-stroke: 0;
    /* Menghapus outline agar lebih solid & clean */
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 300;
    margin-top: 5px;
}

/* Dekorasi Garis Scandi (Warna Pasir) */
.left-decor-line {
    width: 50px;
    height: 1px;
    /* Lebih tipis agar terlihat premium */
    background: #1a1a1a;
    margin-bottom: 25px;
    box-shadow: none;
    /* Menghapus shadow neon */
}

/* Ukuran font diperbesar agar Beau Rivage terlihat jelas */

/* --- BAGIAN Kanan (SCROLLABLE) --- */
.right-section {
     flex: 1; 
    overflow-y: auto;
    /* 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); */
}


/* Import Google Fonts */
:root {
    --bg-scandi: #fcfcfc;
    --text-primary: #1a1a1a;
    --accent-sand: #e8e2d9;
    --muted-grey: #a0a0a0;
    --color-dusty-blue: #5b758d;
    --color-text-dark: #2c3e50;
    --color-text-muted: #576574;
    --envelope-color: #92a4b8;
    --bg-countdown: #fcfbfa;
    --color-dusty-bg: #8ba0b5;
    --color-card-bg: #DFDCD4;
    --color-dusty-blue-dark: #3a506b;
    --color-text-card: #4a5568;
    --card-border-line: rgba(139, 160, 181, 0.35);
    --bg-dresscode: #fcfbfa;
    /* Nuansa linen/paper lembut sesuai tema countdown */
    --swatch-border: rgba(83, 109, 133, 0.15);
    --gallery-border-line: rgba(255, 255, 255, 0.45);
    --color-dusty-blue: #536d85;
    --color-dusty-dark: #3a506b;
    --bg-closing: #fcfbfa;
}

/* Container First Screen 9:16 */
.first-screen {
    position: relative;
    width: 100%;
    max-width: 430px;
    aspect-ratio: 9 / 16;
    height: auto;
    background-color: #ffffff;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
}

/* Base Layer Stack untuk Semua Aset 9:16 */
.decor-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}

/* Envelope Clickable Container */
.envelope-interactive-area {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    outline: none;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Efek Floating & Hover Amplop */
.envelope-interactive-area:hover {
    transform: scale(1.015);
}

.envelope-interactive-area:active {
    transform: scale(0.985);
}

/* Susunan Z-Index */
.layer-photo {
    z-index: 1;
}

.layer-envelope {
    top: -25px;
    z-index: 2;
}

.layer-decor-1 {
    width: 85%;
    z-index: 3;
    left: 75px;
    top: -20px;
}

.layer-decor-2 {
    z-index: 4;
    top: -82px;
    left: -2px;
}

.layer-decor-3 {
    z-index: 5;
    top: -15px;
    left: -15px;
}

.layer-content {
    z-index: 6;
    pointer-events: none;
}

/* Posisi Foto Presisi di Dalam Frame Amplop */
.polaroid-wrapper {
    position: absolute;
    top: 27%;
    left: 25.3%;
    width: 53.4%;
    height: 30%;
    transform: rotate(-3.2deg);
    overflow: hidden;
    background-color: #f1f5f9;
}

.polaroid-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
    animation: slideUpPhoto 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Content Overlay (Header & Footer Text) */
.layer-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 90%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 7% 6% 6% 6%;
    text-align: center;
}

/* Header Typography */
.header-title-wrap {
    animation: fadeInDown 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    margin-top: 1vh;
}

.title-sweet {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    letter-spacing: 0.34em;
    color: var(--color-dusty-blue);
    font-weight: 600;
}

.title-number {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    line-height: 1;
    font-style: italic;
    color: var(--color-dusty-blue);
    margin: 4px 0 2px 0;
    font-weight: 400;
}

.title-number span {
    font-family: 'Great Vibes', cursive;
    font-size: 1.9rem;
    font-style: normal;
    margin-left: 10px;
    vertical-align: super;
}

.title-subtitle {
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    color: var(--color-dusty-blue);
    text-transform: uppercase;
    font-weight: 600;
}

/* Footer Section Typography */
.footer-details-wrap {
    animation: fadeInUp 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards;
    opacity: 0;
}

.name-person {
    font-family: 'Great Vibes', cursive;
    font-size: 3.2rem;
    color: var(--color-dusty-blue);
    line-height: 1.1;
    margin-bottom: 4px;
}

.guest-info {
    margin-top: 2px;
}

.guest-tag {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-muted);
    letter-spacing: 0.02em;
    margin-bottom: 2px;
}

.guest-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text-dark);
    letter-spacing: 0.01em;
}

.tap-instruction {
    font-size: 0.72rem;
    color: var(--color-dusty-blue);
    opacity: 0.85;
    margin-top: 6px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
    animation: pulseHint 2s infinite ease-in-out;
}

/* Animasi On-Load */
.fade-in-decor {
    animation: fadeIn 1.2s ease-out forwards;
}

.pop-seal {
    animation: scaleIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.5s forwards;
    opacity: 0;
    transform-origin: 80% 70%;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUpPhoto {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulseHint {

    0%,
    100% {
        opacity: 0.5;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-2px);
    }
}

/* Update / Tambahan Styling untuk Tombol Open Invitation */
.btn-open-invitation {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-dusty-blue-dark);
    color: #ffffff;
    font-family: 'Cinzel', serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    padding: 10px 28px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    margin-top: 12px;
    box-shadow: 0 4px 15px rgba(58, 80, 107, 0.35);
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    pointer-events: auto;
    /* Memastikan tombol dapat diklik di atas layer-content */
}

.btn-open-invitation:hover {
    background-color: #2b3d52;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(58, 80, 107, 0.45);
}

.btn-open-invitation:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(58, 80, 107, 0.3);
}

@media (max-width: 1024px) {
    .left-section {
        display: none;
        /* Sembunyikan bagian kiri */
    }

    .right-section {
        flex: 1;
        width: 100%;
    }

}


/* couple / */
.couple-section {
    position: relative;
    padding: 120px 20px;
    background-color: #fcfcfc;
    overflow: hidden;
}

/* Dekorasi Atas */
.scandi-top-decor {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: 1s ease;
}

.reveal .scandi-top-decor {
    opacity: 1;
    transform: translateY(0);
}

.arc-line {
    width: 100px;
    height: 50px;
    border: 1px solid #e8e2d9;
    border-radius: 100px 100px 0 0;
    margin: 0 auto 15px;
}

.decor-tag {
    font-size: 0.7rem;
    letter-spacing: 5px;
    color: #a0a0a0;
    font-weight: 700;
}

/* Gallery Layout */
.couple-gallery-layout {
    display: flex;
    flex-direction: column;
    gap: 120px;
    max-width: 1000px;
    margin: 0 auto;
}

.scandi-profile {
    display: flex;
    align-items: center;
    gap: 60px;
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.2, 1, 0.3, 1);
}

.groom {
    transform: translateX(-50px);
}

.bride {
    flex-direction: row-reverse;
    transform: translateX(50px);
}

.reveal .scandi-profile {
    opacity: 1;
    transform: translateX(0);
}

/* Image Frame */
.profile-image-box {
    position: relative;
    width: 350px;
    height: 480px;
    flex-shrink: 0;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
    filter: sepia(10%) contrast(1.02);
    position: relative;
    z-index: 2;
}

.img-offset-border {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 1px solid #e8e2d9;
    z-index: 1;
}

.bride .img-offset-border {
    left: -20px;
}

/* Info Styling */
.profile-info {
    max-width: 400px;
}

.profile-name {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.profile-line {
    width: 40px;
    height: 1px;
    background: #1a1a1a;
    margin-bottom: 25px;
}

.profile-desc {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: #a0a0a0;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 5px;
}

.parent-names {
    font-size: 1.1rem;
    color: #1a1a1a;
    line-height: 1.6;
    margin-bottom: 25px;
}

.scandi-social {
    text-decoration: none;
    color: #a0a0a0;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.scandi-social:hover {
    color: #1a1a1a;
    transform: translateX(5px);
}

/* Responsive Mobile */
@media (max-width: 850px) {

    .scandi-profile,
    .bride {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .profile-image-box {
        width: 280px;
        height: 380px;
    }

    .profile-line {
        margin: 0 auto 25px;
    }

    .profile-name {
        font-size: 2.2rem;
    }
}

/* save date  */
.save-the-date {
    position: relative;
    padding: 100px 20px;
    background-color: #fcfcfc;
    overflow: hidden;
}

.scandi-calendar-wrapper {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

/* Dekorasi Text Background */
.calendar-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15rem;
    font-weight: 900;
    color: #f4f1ec;
    z-index: 1;
    letter-spacing: -10px;
    user-select: none;
}

.calendar-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Info Section */
.calendar-info {
    text-align: left;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

.reveal #save-the-date .calendar-info {
    opacity: 1;
    transform: translateY(0);
}

.calendar-subtitle {
    font-size: 0.7rem;
    letter-spacing: 5px;
    color: #a0a0a0;
    margin-bottom: 15px;
}

.calendar-main-date {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    line-height: 1.1;
    color: #1a1a1a;
    margin-bottom: 30px;
}

.calendar-divider {
    width: 50px;
    height: 1px;
    background: #1a1a1a;
    margin-bottom: 30px;
}

.calendar-note {
    font-size: 0.95rem;
    color: #7a7a7a;
    line-height: 1.8;
    max-width: 350px;
}

/* Calendar Visual */
.calendar-visual {
    background: #ffffff;
    /* Pastikan Putih */
    padding: 40px;
    border: 1px solid #e8e2d9;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    opacity: 0;
    /* Akan diubah oleh .reveal */
    transform: scale(0.95);
    transition: all 1.2s cubic-bezier(0.2, 1, 0.3, 1);
}

.reveal .calendar-info,
.reveal .calendar-visual {
    opacity: 1 !important;
    transform: translate(0) scale(1) !important;
}

.calendar-month {
    text-align: center;
    font-weight: 800;
    letter-spacing: 3px;
    font-size: 0.9rem;
    margin-bottom: 30px;
    color: #1a1a1a !important;
}

.calendar-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #a0a0a0;
    margin-bottom: 20px;
}

.calendar-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    text-align: center;
}

.calendar-days-grid span {
    font-size: 0.85rem;
    padding: 10px 0;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Penanda Tanggal */
.marked-day {
    background: #1a1a1a;
    color: #ffffff !important;
    font-weight: 700;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.marked-day::after {
    content: "THE DAY";
    position: absolute;
    bottom: -20px;
    white-space: nowrap;
    font-size: 0.5rem;
    letter-spacing: 1px;
    color: #1a1a1a;
    font-weight: 800;
}

/* Responsive */
@media (max-width: 850px) {
    .calendar-grid-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .calendar-info {
        text-align: center;
    }

    .calendar-divider {
        margin: 0 auto 30px;
    }

    .calendar-note {
        margin: 0 auto;
    }

    .calendar-bg-text {
        font-size: 8rem;
    }
}

/* event section  */
.event-section {
    position: relative;
    width: 100%;
    max-width: 430px;
    aspect-ratio: 9 / 16;
    height: auto;
    background-color: #DFDCD4;
    overflow: visible;
    /* Diubah ke visible agar canvas bisa tembus ke countdown section di bawahnya */
    margin: 0 auto;
}

/* Base Layer Stack 9:16 */
.event-decor-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}

/* Urutan Z-Index Spesifikasi */
.event-layer-photo {
    z-index: 0;
}

.layer-envelope {
    top: -25px;
    z-index: 2;
}

.event-layer-canvas {
    z-index: 3;
}

.event-layer-decor-1 {
    z-index: 4;
    left: 28px;
}

.event-layer-decor-2 {
    z-index: 5;
    top: 12%;
    left: -24px;
}

.event-layer-content {
    z-index: 6;
}

/* 1. Posisi Foto Pembuka di dalam Amplop Atas */
.event-photo-wrapper {
    position: absolute;
    top: 10.8%;
    left: 24.6%;
    width: 50.8%;
    height: 30.5%;
    transform: rotate(-3.2deg);
    overflow: hidden;
    background-color: #f1f5f9;
}

.event-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* 6. Text Content di atas Canvas (Renda) */
.event-decor-layer.event-layer-canvas {
    top: 12%;
    /* Menggeser canvas sedikit lebih ke bawah */
    left: 50%;
    width: 108%;
    /* Diperbesar agar renda melebar ke samping */
    height: 105%;
    /* Diperpanjang agar ujung renda menembus ke section countdown */
    transform: translateX(-50%) scale(1);
    transform-origin: center top;
}

/* 6. Text Content di atas Canvas (Renda) */
.event-layer-content {
    position: absolute;
    top: 36%;
    left: 50%;
    transform: translateX(-50%);
    width: 86%;
    height: 64%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 21px;
    box-sizing: border-box;
}

/* Typography */
.event-invite-tag {
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    letter-spacing: 0.22em;
    color: var(--color-dusty-blue);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 8px;
}

.event-title-sweet {
    font-family: 'Cinzel', serif;
    font-size: 1.7rem;
    letter-spacing: 0.32em;
    color: var(--color-dusty-blue);
    font-weight: 600;
    line-height: 1;
}

.event-title-number {
    font-family: 'Cinzel', serif;
    font-size: 6.8rem;
    line-height: 1;
    font-style: italic;
    color: var(--color-dusty-blue);
    margin: 6px 0 2px 0;
    font-weight: 400;
}

.event-title-number span {
    font-family: 'Great Vibes', cursive;
    font-size: 2.1rem;
    font-style: normal;
    margin-left: 12px;
    vertical-align: super;
}

.event-title-sub {
    font-family: 'Cinzel', serif;
    font-size: 0.68rem;
    letter-spacing: 0.24em;
    color: var(--color-dusty-blue);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 12px;
}

.event-divider-heart {
    width: 14px;
    height: auto;
    opacity: 0.6;
    margin-bottom: 6px;
}

.event-name-person {
    font-family: 'Great Vibes', cursive;
    font-size: 3.1rem;
    color: var(--color-dusty-blue);
    line-height: 1;
    margin-bottom: 4px;
}

.event-date {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    letter-spacing: 0.28em;
    color: var(--color-dusty-blue);
    font-weight: 600;
}

.event-divider-heart {
    width: 14px;
    height: auto;
    opacity: 0.6;
    margin-bottom: 6px;
}



.event-date {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    letter-spacing: 0.28em;
    color: var(--color-dusty-blue);
    font-weight: 600;
}


/* State Awal (Sebelum Terlihat di Layar) */
.event-section .event-photo-wrapper {
    opacity: 0;
    transform: translateY(30px) rotate(-3.2deg);
    transition: opacity 2s cubic-bezier(0.25, 1, 0.5, 1),
        transform 2s cubic-bezier(0.25, 1, 0.5, 1);
}

.event-section .event-layer-envelope {
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 1.8s cubic-bezier(0.25, 1, 0.5, 1) 0.2s,
        transform 1.8s cubic-bezier(0.25, 1, 0.5, 1) 0.2s;
}

.event-section .event-layer-canvas {
    opacity: 0;
    transform: translateX(-50%) translateY(20px) scale(0.96);
    transition: opacity 2s cubic-bezier(0.25, 1, 0.5, 1) 0.4s,
        transform 2s cubic-bezier(0.25, 1, 0.5, 1) 0.4s;
}

.event-section .event-layer-decor-1 {
    opacity: 0;
    transform: translate(35px, -20px);
    transition: opacity 2.2s cubic-bezier(0.25, 1, 0.5, 1) 0.6s,
        transform 2.2s cubic-bezier(0.25, 1, 0.5, 1) 0.6s;
}

.event-section .event-layer-decor-2 {
    opacity: 0;
    transform: translate(-35px, 20px);
    transition: opacity 2.2s cubic-bezier(0.25, 1, 0.5, 1) 0.75s,
        transform 2.2s cubic-bezier(0.25, 1, 0.5, 1) 0.75s;
}

.event-section .event-layer-content {
    opacity: 0;
    transform: translate(-50%, 25px);
    transition: opacity 2s cubic-bezier(0.25, 1, 0.5, 1) 1s,
        transform 2s cubic-bezier(0.25, 1, 0.5, 1) 1s;
}

/* State Aktif Saat .reveal Ditambahkan (Perlahan Muncul Sesuai Urutan) */
.event-section.reveal .event-photo-wrapper {
    opacity: 1;
    transform: translateY(0) rotate(-3.2deg);
}

.event-section.reveal .event-layer-envelope {
    opacity: 1;
    transform: scale(1);
}

.event-section.reveal .event-layer-canvas {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}

.event-section.reveal .event-layer-decor-1,
.event-section.reveal .event-layer-decor-2 {
    opacity: 1;
    transform: translate(0, 0);
}

.event-section.reveal .event-layer-content {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* story  */
.story-section {
    position: relative;
    padding: 120px 20px;
    background-color: #fcfcfc;
    /* Tone cerah Scandi */
    overflow: hidden;
}

/* Dekorasi Background Text */
.scandi-story-bg {
    position: absolute;
    top: 50%;
    right: -5%;
    transform: translateY(-50%);
    font-size: 12rem;
    font-weight: 900;
    color: #f4f1ec;
    z-index: 1;
    letter-spacing: -5px;
    opacity: 0.8;
}

.scandi-story-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

.story-tag {
    font-size: 0.7rem;
    letter-spacing: 5px;
    color: #a0a0a0;
    margin-bottom: 15px;
    font-weight: 700;
}

.story-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.header-divider {
    width: 40px;
    height: 1px;
    background: #1a1a1a;
    margin: 0 auto;
}

/* Timeline Content */
.scandi-story-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.story-box {
    display: flex;
    gap: 40px;
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.2, 1, 0.3, 1);
}

.reveal.story-section .story-box {
    opacity: 1;
    transform: translateY(0);
}

.reveal.story-section .story-box:nth-child(2) {
    transition-delay: 0.3s;
}

.reveal.story-section .story-box:nth-child(3) {
    transition-delay: 0.6s;
}

.story-number {
    font-size: 4rem;
    font-family: 'Playfair Display', serif;
    line-height: 0.8;
    color: transparent;
    -webkit-text-stroke: 1px #e8e2d9;
    /* Outline style */
    font-weight: 900;
}

.story-content {
    text-align: left;
}

.story-era {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.story-content p {
    font-size: 0.95rem;
    color: #7a7a7a;
    line-height: 1.8;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .story-box {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .story-content {
        text-align: center;
    }

    .scandi-story-bg {
        font-size: 6rem;
    }
}

/* --- Tambahan Styling Foto Cerita --- */
.story-main-visual {
    max-width: 600px;
    margin: 0 auto 80px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1.2s cubic-bezier(0.2, 1, 0.3, 1);
}

.reveal.story-section .story-main-visual {
    opacity: 1;
    transform: translateY(0);
}

.visual-frame {
    position: relative;
    padding: 15px;
}

.story-featured-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 2px;
    filter: sepia(10%) contrast(1.05);
    position: relative;
    z-index: 2;
}

.frame-decor-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 100px;
    border-top: 2px solid #e8e2d9;
    border-left: 2px solid #e8e2d9;
    z-index: 1;
}

/* Responsif Mobile untuk Foto */
@media (max-width: 768px) {
    .story-featured-img {
        height: 250px;
    }

    .story-main-visual {
        margin-bottom: 50px;
    }
}

/* galleri  */
.gallery-section{
        background-image: url(../images/BG3.webp);
    background-size: cover;
        margin-top: -4px;
    background-position: center;
}
.gallery-item {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    /* Rasio portrait elegan untuk item 1, 2, 4, dst */
    border-radius: 8px;
    overflow: hidden;
    background: #e2e8f0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    display: block;
    text-decoration: none;
    cursor: pointer;
    border: 3px solid rgba(255, 255, 255, 0.85);
    box-sizing: border-box;
}

/* Khusus Galeri Ke-3: Memanjang Penuh 2 Kolom (Landscape) */
.gallery-item.gallery-item-wide {
    grid-column: span 2;
    aspect-ratio: 16 / 10;
    /* Rasio melebar horizontal */
}

/* Header Section */
.gallery-header {
    margin-bottom: 24px;
    color: var(--color-dusty-bg);
}

.gallery-tag {
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    font-weight: 600;
    opacity: 0.9;
    margin-bottom: 4px;
}

.gallery-title {
    font-family: 'Great Vibes', cursive;
    font-size: 3.2rem;
    line-height: 1.1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Asymmetric Editorial Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
}




/* Image & Hover Effect */
.gallery-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.45s ease;
}

.gallery-item:hover .gallery-thumb {
    transform: scale(1.06);
    filter: brightness(0.92);
}

/* Hover Magnifier Icon Overlay */
.gallery-overlay-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(58, 80, 107, 0.25);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-overlay-icon svg {
    width: 26px;
    height: 26px;
    stroke: #ffffff;
    fill: none;
    stroke-width: 2;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item:hover .gallery-overlay-icon {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay-icon svg {
    transform: scale(1);
}

/* =========================================
   ANIMASI ON-SCROLL (.reveal) GALLERY SECTION (SLOW & SMOOTH)
   ========================================= */

/* State Awal */
.gallery-section .gallery-header {
    opacity: 0;
    transform: translateY(-24px);
    transition: opacity 1.8s cubic-bezier(0.25, 1, 0.5, 1),
        transform 1.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-section .gallery-item {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: opacity 1.8s cubic-bezier(0.25, 1, 0.5, 1),
        transform 1.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Stagger Delay saat Reveal (Muncul Perlahan Bertahap) */
.gallery-section.reveal .gallery-header {
    opacity: 1;
    transform: translateY(0);
}

.gallery-section.reveal .gallery-item:nth-child(1) {
    transition-delay: 0.25s;
}

.gallery-section.reveal .gallery-item:nth-child(2) {
    transition-delay: 0.45s;
}

.gallery-section.reveal .gallery-item:nth-child(3) {
    transition-delay: 0.65s;
}

.gallery-section.reveal .gallery-item:nth-child(4) {
    transition-delay: 0.85s;
}

.gallery-section.reveal .gallery-item:nth-child(5) {
    transition-delay: 1.05s;
}

.gallery-section.reveal .gallery-item:nth-child(6) {
    transition-delay: 1.25s;
}

.gallery-section.reveal .gallery-item {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.scandi-gift-decor {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #f4f1ec 0%, transparent 70%);
    z-index: 1;
    opacity: 0.5;
}

.gift-header-scandi {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.gift-tag {
    font-size: 0.7rem;
    letter-spacing: 4px;
    color: #a0a0a0;
    font-weight: 800;
}

.gift-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #1a1a1a;
    margin: 10px 0;
}

.gift-divider {
    width: 40px;
    height: 2px;
    background: #1a1a1a;
    margin: 20px auto;
}

.gift-intro {
    font-size: 0.9rem;
    color: #7a7a7a;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Card Styling */
.scandi-gift-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto 60px;
    position: relative;
    z-index: 2;
}

.scandi-card {
    background: #ffffff;
    border: 1px solid #e8e2d9;
    padding: 40px;
    border-radius: 4px;
    text-align: left;
    transition: 0.4s ease;
    /* State Awal Reveal */
    opacity: 0;
    transform: translateY(20px);
}

.reveal.gift-section .scandi-card {
    opacity: 1;
    transform: translateY(0);
}

.reveal.gift-section .scandi-card:nth-child(2) {
    transition-delay: 0.2s;
}

.scandi-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.02);
    border-color: #1a1a1a;
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.bank-label {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #a0a0a0;
}

.acc-number {
    font-size: 1.5rem;
    color: #1a1a1a;
    letter-spacing: 2px;
    margin-bottom: 5px;
    font-weight: 500;
}

.acc-name {
    font-size: 0.9rem;
    color: #a0a0a0;
    margin-bottom: 30px;
}

.btn-copy-scandi {
    background: transparent;
    border: 1px solid #1a1a1a;
    color: #1a1a1a;
    padding: 10px 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
}

.btn-copy-scandi:hover {
    background: #1a1a1a;
    color: #ffffff;
}

/* Shipping Module */
.scandi-shipping-module {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: #f4f1ec;
    display: flex;
    align-items: center;
    gap: 25px;
    text-align: left;
    border-radius: 2px;
    opacity: 0;
    transition: 1s 0.4s ease;
}

.reveal.gift-section .scandi-shipping-module {
    opacity: 1;
}

.shipping-icon {
    font-size: 2rem;
    color: #1a1a1a;
}

.shipping-info h4 {
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.shipping-info p {
    font-size: 0.85rem;
    color: #7a7a7a;
    margin-bottom: 10px;
}

.maps-text-link {
    font-size: 0.7rem;
    font-weight: 800;
    color: #1a1a1a;
    text-decoration: none;
    border-bottom: 1px solid #1a1a1a;
}

/* Responsive */
@media (max-width: 768px) {
    .scandi-gift-grid {
        grid-template-columns: 1fr;
    }

    .scandi-shipping-module {
        flex-direction: column;
        text-align: center;
    }
}

/* rsvp  */
.rsvp-section {
    position: relative;
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    background-image: url('../images/BG1.webp');
    background-size: cover;
    background-position: center;
    padding: 36px 20px 44px 20px;
    box-sizing: border-box;
    overflow: hidden;
}

/* Header Section */
.rsvp-header {
    text-align: center;
    color: #ffffff;
    margin-bottom: 20px;
}

.rsvp-tag {
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    font-weight: 600;
    opacity: 0.9;
    margin-bottom: 2px;
}

.rsvp-title {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    line-height: 1.1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Container Wrapper untuk Kedua Card agar Lebar Identik */
.rsvp-cards-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

/* Base Style untuk Kedua Card */
.rsvp-card,
.wishes-card {
    position: relative;
    width: 100%;
    background: var(--color-card-bg);
    border-radius: 10px;
    padding: 20px 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12), inset 0 0 0 1px #ffffff;
    box-sizing: border-box;
}

/* Ornamen Inner Border Line Seragam */
.rsvp-card::before,
.wishes-card::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid var(--card-border-line);
    border-radius: 7px;
    pointer-events: none;
}

/* Form Elements */
.rsvp-form-group {
    margin-bottom: 12px;
    text-align: left;
    position: relative;
    z-index: 2;
}

.rsvp-label {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    font-weight: 700;
    color: var(--color-dusty-blue-dark);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.rsvp-input,
.rsvp-select,
.rsvp-textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid rgba(83, 109, 133, 0.25);
    border-radius: 6px;
    background: #ffffff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.8rem;
    color: var(--color-text-card);
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rsvp-input:focus,
.rsvp-select:focus,
.rsvp-textarea:focus {
    border-color: var(--color-dusty-blue-dark);
    box-shadow: 0 0 0 3px rgba(83, 109, 133, 0.15);
}

.rsvp-textarea {
    resize: none;
    height: 72px;
}

/* Button Wrapper & Button Styling */
.btn-submit-wrap {
    display: flex;
    justify-content: center;
    margin-top: 14px;
    position: relative;
    z-index: 2;
}

.btn-submit-rsvp {
    padding: 9px 28px;
    background: var(--color-dusty-blue-dark);
    color: #ffffff;
    border: none;
    border-radius: 20px;
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(58, 80, 107, 0.3);
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn-submit-rsvp:hover {
    background: #2b3d52;
    transform: translateY(-2px);
}

/* Wishes Card Styling */
.wishes-card-title {
    font-family: 'Cinzel', serif;
    font-size: 0.82rem;
    letter-spacing: 0.2em;
    color: var(--color-dusty-blue-dark);
    text-align: center;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
}

.wishes-list {
    max-height: 220px;
    overflow-y: auto;
    padding-right: 4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.wishes-list::-webkit-scrollbar {
    width: 4px;
}

.wishes-list::-webkit-scrollbar-thumb {
    background: rgba(83, 109, 133, 0.3);
    border-radius: 4px;
}

.wish-item {
    background: #ffffff;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid rgba(83, 109, 133, 0.12);
    text-align: left;
}

.wish-sender-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.wish-sender-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-dusty-blue-dark);
}

.wish-badge {
    font-size: 0.58rem;
    padding: 2px 7px;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.badge-attending {
    background: #e1f2e8;
    color: #2e7d32;
}

.badge-absent {
    background: #fdeaea;
    color: #c62828;
}

.wish-text {
    font-size: 0.72rem;
    color: var(--color-text-card);
    line-height: 1.4;
    word-break: break-word;
}

.wish-timestamp {
    font-size: 0.58rem;
    color: #94a3b8;
    margin-top: 4px;
    text-align: right;
}

/* =========================================
     ANIMASI ON-SCROLL (.reveal)
     ========================================= */

.rsvp-section .rsvp-header {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.rsvp-section .rsvp-card {
    opacity: 0;
    transform: translateY(22px) scale(0.97);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}

.rsvp-section .wishes-card {
    opacity: 0;
    transform: translateY(22px) scale(0.97);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.rsvp-section.reveal .rsvp-header {
    opacity: 1;
    transform: translateY(0);
}

.rsvp-section.reveal .rsvp-card,
.rsvp-section.reveal .wishes-card {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* closing  */
.closing-section {
    position: relative;
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    background-color: var(--bg-closing);
    padding: 55px 24px 60px 24px;
    box-sizing: border-box;
    text-align: center;
    overflow: hidden;
    min-height: 50vh;
}

.closing-content-wrap {
    display: flex;
    flex-direction: column;
    gap: 50px;
    align-items: center;
    justify-content: center;
}

/* Title / Thank You */
.closing-title {
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    letter-spacing: 0.32em;
    color: var(--color-dusty-blue);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 24px;
}

/* Message */
.closing-message {
    font-family: 'Cinzel', serif;
    font-size: 0.88rem;
    line-height: 1.8;
    color: var(--color-dusty-blue);
    font-weight: 400;
    max-width: 85%;
    margin: 0 auto 38px auto;
}

/* Signature Block */
.closing-signature {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.closing-with-love {
    font-family: 'Great Vibes', cursive;
    font-size: 2.3rem;
    color: var(--color-dusty-blue);
    line-height: 1.1;
    margin-bottom: 4px;
}

.closing-name {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    letter-spacing: 0.28em;
    color: var(--color-dusty-dark);
    font-weight: 700;
    text-transform: uppercase;
}

/* =========================================
     ANIMASI ON-SCROLL (.reveal)
     ========================================= */

/* State Awal */
.closing-section .closing-title {
    opacity: 0;
    transform: translateY(-16px);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.closing-section .closing-message {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}

.closing-section .closing-signature {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

/* Reveal Trigger */
.closing-section.reveal .closing-title,
.closing-section.reveal .closing-message,
.closing-section.reveal .closing-signature {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Footer Section */
.scandi-footer {
    padding: 80px 20px;
    background-color: #ffffff;
    border-top: 1px solid #f4f1ec;
    text-align: center;
}

.made-by {
    font-size: 0.65rem;
    letter-spacing: 3px;
    color: #a0a0a0;
    margin-bottom: 10px;
    font-weight: 800;
}

.footer-brand {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 25px;
    font-weight: 800;
    letter-spacing: 1px;
}

.footer-copyright {
    font-size: 0.6rem;
    color: #e0e0e0;
    letter-spacing: 1px;
}

/* Responsive Breakdown */
@media (max-width: 600px) {
    .footer-celebrant-name {
        font-size: 2.5rem;
    }

    .closing-visual {
        width: 220px;
        height: 320px;
    }

    .scandi-thanks-text {
        font-size: 0.85rem;
    }
}


.countdown-section {
    position: relative;
    width: 100%;
    max-width: 430px;
    aspect-ratio: 9 / 16;
    height: auto;
    background-color: transparent;
    overflow: hidden;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Background Sketsa Pemandangan (Layer 0) */
.countdown-bg-base {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
    user-select: none;
}

/* Kartu Kertas Vintage Renda & Ornamen (Layer 1) */
.countdown-card-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
    pointer-events: none;
    user-select: none;
}

/* Container Konten Teks & Timer (Layer 2) */
.countdown-content-box {
    position: absolute;
    top: 34%;
    left: 50%;
    transform: translateX(-50%);
    width: 68%;
    height: 35%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    box-sizing: border-box;
    padding: 6% 4%;
    z-index: 2;
}

/* Title: SAVE the DATE */
.countdown-title-script {
    font-family: 'Cinzel', serif;
    font-size: 1.55rem;
    letter-spacing: 0.18em;
    color: #556c82;
    font-weight: 600;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.countdown-title-script span {
    font-family: 'Great Vibes', cursive;
    font-size: 2.1rem;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0;
    margin: 0 2px;
    text-transform: lowercase;
}

/* Grid 2x2 Timer Elegan */
.countdown-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
    width: 100%;
    margin: auto 0;
}

.countdown-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.countdown-grid-number {
    font-family: 'Cinzel', serif;
    font-size: 2.6rem;
    line-height: 1;
    font-style: italic;
    color: #556c82;
    font-weight: 400;
    margin-bottom: 4px;
}

.countdown-grid-label {
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    color: #6d8296;
    text-transform: capitalize;
    font-weight: 500;
}

/* =========================================
   ANIMASI ON-SCROLL (.reveal) SLOW & SMOOTH
   ========================================= */

/* State Awal */
.countdown-section .countdown-bg-base {
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 2s cubic-bezier(0.25, 1, 0.5, 1),
        transform 2.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.countdown-section .countdown-card-layer {
    opacity: 0;
    transform: scale(0.93) translateY(20px);
    transition: opacity 2s cubic-bezier(0.25, 1, 0.5, 1) 0.3s,
        transform 2s cubic-bezier(0.25, 1, 0.5, 1) 0.3s;
}

.countdown-section .countdown-content-box {
    opacity: 0;
    transform: translate(-50%, 25px);
    transition: opacity 1.8s cubic-bezier(0.25, 1, 0.5, 1) 0.6s,
        transform 1.8s cubic-bezier(0.25, 1, 0.5, 1) 0.6s;
}

/* State Aktif saat .reveal */
.countdown-section.reveal .countdown-bg-base {
    opacity: 1;
    transform: scale(1);
}

.countdown-section.reveal .countdown-card-layer {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.countdown-section.reveal .countdown-content-box {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* =========================================
   SMOOTH & ORGANIC ON-SCROLL ANIMATION
   ========================================= */

/* State Awal */
.countdown-section .layer-cd-decor-1 {
    opacity: 0;
    transform: translate(-30px, -20px);
    transition: opacity 1.8s cubic-bezier(0.25, 1, 0.5, 1), transform 1.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.countdown-section .layer-cd-decor-2 {
    opacity: 0;
    transform: translate(30px, 20px);
    transition: opacity 1.8s cubic-bezier(0.25, 1, 0.5, 1) 0.2s, transform 1.8s cubic-bezier(0.25, 1, 0.5, 1) 0.2s;
}

.countdown-section .layer-cd-card {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 1.6s cubic-bezier(0.25, 1, 0.5, 1) 0.3s, transform 1.6s cubic-bezier(0.25, 1, 0.5, 1) 0.3s;
}

.countdown-section .layer-cd-decor-3 {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 1.8s cubic-bezier(0.25, 1, 0.5, 1) 0.5s, transform 1.8s cubic-bezier(0.25, 1, 0.5, 1) 0.5s;
}

/* Animasi Terbang Lembut Merpati (Meluncur dari Kanan Atas) */
.countdown-section .layer-cd-decor-4 {
    opacity: 0;
    transform: translate(45px, -35px) rotate(4deg) scale(0.92);
    transition: opacity 2.2s cubic-bezier(0.22, 1, 0.36, 1) 0.75s, transform 2.2s cubic-bezier(0.22, 1, 0.36, 1) 0.75s;
}

.countdown-section .countdown-content-box {
    opacity: 0;
    transform: translate(-50%, 15px);
    transition: opacity 1.6s cubic-bezier(0.25, 1, 0.5, 1) 0.9s, transform 1.6s cubic-bezier(0.25, 1, 0.5, 1) 0.9s;
}

/* State Aktif saat .reveal */
.countdown-section.reveal .layer-cd-decor-1,
.countdown-section.reveal .layer-cd-decor-2 {
    opacity: 1;
    transform: translate(0, 0);
}

.countdown-section.reveal .layer-cd-card {
    opacity: 1;
    transform: scale(1);
}

.countdown-section.reveal .layer-cd-decor-3 {
    opacity: 1;
    transform: translateY(0);
}

.countdown-section.reveal .layer-cd-decor-4 {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(1);
}

.countdown-section.reveal .countdown-content-box {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* party */
/* =========================================
   PARTY SECTION (OPTIMIZED & REFINED)
   ========================================= */
.party-section {
    position: relative;
    width: 100%;
    max-width: 430px;
    top: -4px;
    aspect-ratio: 9 / 16;
    height: auto;
    background-color: #DFDCD4;
    min-height: 70vh;
    overflow: hidden;
    margin: 0 auto;
    box-sizing: border-box;
}

.party-wave-top {
    position: absolute;
    left: 0;
    width: 100%;
    height: 28px;
    z-index: 9998;
    top: -2px;
    pointer-events: none;
    user-select: none;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.05));
}

.party-wave-svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* Dekorasi Bunga Kanan Atas */
.party-decor-top-right {
    position: absolute;
    top: -10%;
    right: -16%;
    width: 77%;
    height: auto;
    object-fit: contain;
    z-index: 1;
    pointer-events: none;
    user-select: none;
}

/* Dekorasi Bunga Kiri Bawah */
.party-decor-bottom-left {
    position: absolute;
    bottom: -4%;
    left: -8%;
    width: 66%;
    height: auto;
    object-fit: contain;
    z-index: 1;
    pointer-events: none;
    user-select: none;
}

/* Container Kartu Arch Utama */
.party-arch-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 90%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Konten terdistribusi seimbang dari atas ke bawah */
    padding: 10%;
    box-sizing: border-box;
}

/* Background Card Arch (party-bg-detail.png) */
.party-arch-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
    pointer-events: none;
}

/* Balon Udara & Awan */
.party-balloon-wrap {
    position: relative;
    z-index: 2;
    width: 52%;
    max-width: 180px;
    margin-bottom: 6px;
    display: flex;
    justify-content: center;
}

.party-balloon-img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Text Detail Content */
.party-details-content {
     position: relative;
    z-index: 2;
        padding: 10px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.party-card-title {
    font-family: 'Great Vibes', cursive;
    font-size: 2.7rem;
    line-height: 1.05;
    color: #4A637B;
    margin-bottom: 10px;
}

.party-card-date {
    font-family: 'Cinzel', serif;
    font-size: 0.76rem;
    font-style: italic;
    font-weight: 600;
    color: #5D7388;
    line-height: 1.5;
    margin-bottom: 14px;
    letter-spacing: 0.04em;
}

.party-location-icon {
    width: 24px;
    height: 24px;
    stroke: #6E859A;
    fill: none;
    stroke-width: 1.5;
    margin-bottom: 6px;
}

.party-venue-name {
    font-family: 'Cinzel', serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: #384F66;
    line-height: 1.35;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.party-venue-address {
    font-family: 'Cinzel', serif;
    font-size: 0.68rem;
    font-style: italic;
    color: #5D7388;
    line-height: 1.45;
    max-width: 92%;
    margin-bottom: 18px;
}

/* Tombol View Location */
.btn-party-map {
    display: inline-block;
    background-color: #7D92A6;
    color: #ffffff;
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    font-style: italic;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-decoration: none;
    padding: 8px 24px;
    border-radius: 24px;
    box-shadow: 0 5px 15px rgba(74, 99, 123, 0.25);
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-party-map:hover {
    background-color: #5D7388;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 99, 123, 0.35);
}

/* =========================================
   SMOOTH & RELAXED ON-SCROLL ANIMATION
   ========================================= */

/* State Awal */
.party-section .party-decor-top-right {
    opacity: 0;
    transform: translate(60px, -20px);
    transition: opacity 1.8s cubic-bezier(0.25, 1, 0.5, 1), transform 1.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.party-section .party-decor-bottom-left {
    opacity: 0;
    transform: translate(-60px, 20px);
    transition: opacity 1.8s cubic-bezier(0.25, 1, 0.5, 1), transform 1.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.party-section .party-arch-bg {
    opacity: 0;
    transform: scale(0.94);
    transition: opacity 1.6s cubic-bezier(0.25, 1, 0.5, 1) 0.3s, transform 1.6s cubic-bezier(0.25, 1, 0.5, 1) 0.3s;
}

.party-section .party-balloon-wrap {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.6s cubic-bezier(0.25, 1, 0.5, 1) 0.6s, transform 1.6s cubic-bezier(0.25, 1, 0.5, 1) 0.6s;
}

.party-section .party-details-content {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 1.8s cubic-bezier(0.25, 1, 0.5, 1) 0.9s, transform 1.8s cubic-bezier(0.25, 1, 0.5, 1) 0.9s;
}

/* State Reveal (Slow, Organic Flow) */
.party-section.reveal .party-decor-top-right,
.party-section.reveal .party-decor-bottom-left {
    opacity: 1;
    transform: translate(0, 0);
}

.party-section.reveal .party-arch-bg {
    opacity: 1;
    transform: scale(1);
}

.party-section.reveal .party-balloon-wrap {
    opacity: 1;
    transform: translateY(0);
}

.party-section.reveal .party-details-content {
    opacity: 1;
    transform: translateY(0);
}

/* Event Detail Card */
.event-card {
    position: relative;
    background: var(--color-card-bg);
    border-radius: 6px;
    padding: 14px 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12), inset 0 0 0 1px #ffffff;
    box-sizing: border-box;
}

/* Inner Border Line Ornamen */
.event-card::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid var(--card-border-line);
    border-radius: 4px;
    pointer-events: none;
}

.event-card-title {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    letter-spacing: 0.22em;
    color: var(--color-dusty-blue-dark);
    text-align: center;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.event-card-body {
    display: grid;
    grid-template-columns: 55px 1fr;
    align-items: center;
    gap: 14px;
}

.event-icon-box {
    display: flex;
    justify-content: center;
    align-items: center;
}

.event-icon-box svg {
    width: 44px;
    height: 44px;
    stroke: var(--color-dusty-blue-dark);
    fill: none;
    stroke-width: 1.2;
}

.event-info-box {
    text-align: left;
}

.event-time {
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-dusty-blue-dark);
    margin-bottom: 2px;
}

.event-venue {
    font-size: 0.76rem;
    font-weight: 600;
    color: #2d3748;
    line-height: 1.3;
}

.event-address {
    font-size: 0.68rem;
    color: var(--color-text-card);
    line-height: 1.3;
    margin-top: 1px;
    font-weight: 400;
}

/* View Map Button */
.btn-view-map {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 14px;
    background: #e6ecf2;
    color: var(--color-dusty-blue-dark);
    border: 1px solid rgba(83, 109, 133, 0.25);
    border-radius: 12px;
    font-family: 'Cinzel', serif;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.btn-view-map:hover {
    background: var(--color-dusty-blue-dark);
    color: #ffffff;
}

.event-venue-photo-wrapper {
    position: relative;
    background: var(--color-card-bg);
    border-radius: 6px;
    padding: 5px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1), inset 0 0 0 1px #ffffff;
    overflow: hidden;
}

.event-venue-photo-wrapper::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    border: 1px solid var(--card-border-line);
    border-radius: 4px;
    pointer-events: none;
    z-index: 2;
}

.venue-img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    display: block;
    border-radius: 3px;
}

.event-map-wrapper {
    position: relative;
    background: var(--color-card-bg);
    border-radius: 6px;
    padding: 6px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1), inset 0 0 0 1px #ffffff;
    overflow: hidden;
}

.event-map-wrapper::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    border: 1px solid var(--card-border-line);
    border-radius: 4px;
    pointer-events: none;
    z-index: 2;
}

.map-frame {
    width: 100%;
    height: 105px;
    border: 0;
    border-radius: 3px;
    display: block;
    filter: saturate(0.85) contrast(1.05);
    /* Tone map diselaraskan dengan Dusty Blue */
}

/* =========================================
     ANIMASI ON-SCROLL (.reveal)
     ========================================= */

.party-section .party-header {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.party-section .card-ceremony {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}

.party-section .card-reception {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.25s, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.25s;
}

.party-section .event-map-wrapper {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.35s, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.35s;
}

.party-section .party-decor-bottom-left {
    opacity: 0;
    transform: translate(-15px, 15px);
    transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s, transform 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
}

/* Reveal Trigger */
.party-section.reveal .party-header {
    opacity: 1;
    transform: translateY(0);
}

.party-section.reveal .card-ceremony,
.party-section.reveal .card-reception,
.party-section.reveal .event-map-wrapper {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.party-section.reveal .party-decor-bottom-left {
    opacity: 1;
    transform: translate(0, 0);
}

.dresscode-section {
    position: relative;
    min-height: 40vh;
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    background-image: url('../images/BG1.webp');
    background-size: cover;
    background-position: center;
        top: -4px;
    padding: 36px 20px 0px 20px;
    box-sizing: border-box;
    text-align: center;
    overflow: hidden;
}

/* Label Title */
.dresscode-tag {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    letter-spacing: 0.28em;
    color: var(--color-card-bg);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 12px;
}

/* Main Dresscode Highlight (Italic Serif) */
.dresscode-main-text {
    font-family: 'Cinzel', serif;
    font-size: 2.1rem;
    line-height: 1.25;
    font-style: italic;
    color: var(--color-card-bg);
    font-weight: 400;
    margin-bottom: 22px;
}

.dresscode-main-text span {
    display: block;
    font-size: 1.6rem;
    font-style: italic;
}

/* Color Swatches Palette Wrap */
.dresscode-swatches {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

/* Swatch Dot */
.color-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--swatch-border);
    position: relative;
    box-sizing: border-box;
}

/* Warna Palette Sesuai Tema White & Denim */
.color-dot.dot-white {
    background-color: #ffffff;
}

.color-dot.dot-offwhite {
    background-color: #f1f3f5;
}

.color-dot.dot-light-denim {
    background-color: #9cb3c9;
}

.color-dot.dot-denim {
    background-color: #5c7c99;
}

.color-dot.dot-dark-denim {
    background-color: #3b536b;
}

/* =========================================
     ANIMASI ON-SCROLL (.reveal)
     ========================================= */

/* State Awal */
.dresscode-section .dresscode-tag {
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.dresscode-section .dresscode-main-text {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}

.dresscode-section .color-dot {
    opacity: 0;
    transform: scale(0.4);
    transition: opacity 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Stagger Delay saat Reveal */
.dresscode-section.reveal .dresscode-tag,
.dresscode-section.reveal .dresscode-main-text {
    opacity: 1;
    transform: translateY(0);
}

.dresscode-section.reveal .color-dot:nth-child(1) {
    transition-delay: 0.25s;
}

.dresscode-section.reveal .color-dot:nth-child(2) {
    transition-delay: 0.32s;
}

.dresscode-section.reveal .color-dot:nth-child(3) {
    transition-delay: 0.39s;
}

.dresscode-section.reveal .color-dot:nth-child(4) {
    transition-delay: 0.46s;
}

.dresscode-section.reveal .color-dot:nth-child(5) {
    transition-delay: 0.53s;
}

.dresscode-section.reveal .color-dot {
    opacity: 1;
    transform: scale(1);
}