/* ============================================================
   WEDDING INVITATION - BATUL & ANAM
   Tema: Maroon, Cream, Putih
   ============================================================ */

:root {
    --maroon: #6B1A1A;
    --maroon-light: #8B3A3A;
    --maroon-dark: #3D0E0E;
    --white: #FFFFFF;
    --cream: #FFF8F5;
    --cream-dark: #F5EDE8;
    --brown: #3D2C2C;
    --text: #4A3A3A;
    --text-light: #6E5A5A;
    --bg-soft: #FAF0EC;
    --shadow: 0 4px 24px rgba(107, 26, 26, 0.08);
    --shadow-hover: 0 8px 40px rgba(107, 26, 26, 0.12);
    --border: rgba(107, 26, 26, 0.12);
    --font-display: 'Great Vibes', cursive;
    --font-hero: 'Alex Brush', cursive;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: var(--font-body);
    background: #1a0606;
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 900px; margin: 0 auto; padding: 0 20px; }
.section-pad { padding: 40px 0; }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-head { text-align: center; margin-bottom: 48px; }

.section-sub {
    font-size: 1.25rem; font-weight: 700; letter-spacing: 5px;
    text-transform: uppercase; color: rgba(255,255,255,0.92); margin-bottom: 14px;
    text-shadow: 0 2px 10px rgba(30,8,8,0.4);
}

.section-divider {
    position: relative; width: 90px; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    margin: 18px auto 0;
}

.section-divider::before {
    content: ''; position: absolute; left: 50%; top: 50%;
    width: 8px; height: 8px; transform: translate(-50%, -50%) rotate(45deg);
    background: rgba(255,255,255,0.85); border-radius: 1px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-body); cursor: pointer; transition: var(--transition);
    border: none; outline: none;
}

/* ============================================================
   GATE / INTRO SCREEN
   ============================================================ */
.gate {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    background:
        radial-gradient(ellipse at 50% 40%, rgba(139,58,58,0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 90%, rgba(255,248,245,0.04) 0%, transparent 40%),
        linear-gradient(160deg, rgba(30,8,8,0.5), rgba(50,18,18,0.5)),
        linear-gradient(135deg, rgba(107,26,26,0.4), rgba(61,14,14,0.4)),
        url(../images/DESIGN-COVER-BUKA-UNDANGAN-44.jpg);
    background-blend-mode: normal, normal, normal, color, normal;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.gate-content {
    position: relative; z-index: 3; text-align: center;
    padding: 20px 32px; max-width: 440px; width: 100%;
}

.gate-label {
    font-size: 0.75rem; letter-spacing: 5px; text-transform: uppercase;
    color: rgba(255,255,255,0.75); margin-bottom: 12px;
    text-shadow: 0 1px 8px rgba(30,8,8,0.6);
}

.gate-couple {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.6rem, 6.5vw, 2.6rem);
    color: var(--white); line-height: 1.2; margin-bottom: 8px;
    text-transform: uppercase; font-weight: 800; letter-spacing: 2px;
    white-space: nowrap; /* BATUL & ANAM selalu satu baris */
    text-shadow: 0 2px 14px rgba(30,8,8,0.7);
}

.gate-amp {
    font-size: 2rem; color: rgba(255,255,255,0.3);
    font-family: var(--font-heading);
}

.gate-date {
    font-family: var(--font-heading); font-size: 1.1rem;
    color: rgba(255,255,255,0.5); letter-spacing: 4px; margin-bottom: 16px;
}

.gate-divider {
    width: 40px; height: 1.5px;
    background: var(--maroon-light); opacity: 0.3;
    margin: 0 auto 20px;
}

.gate-to {
    font-size: 0.85rem; color: rgba(255,255,255,0.75); margin-bottom: 6px;
    text-shadow: 0 1px 8px rgba(30,8,8,0.6);
}

.gate-name {
    font-family: var(--font-body); font-size: 1.6rem;
    color: var(--white); font-weight: 600; margin-bottom: 32px;
    text-shadow: 0 2px 12px rgba(30,8,8,0.7);
}

.btn-gate {
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
    border: none; border-radius: 50px; color: var(--white);
    font-size: 0.85rem; font-weight: 500; letter-spacing: 2px;
    box-shadow: 0 4px 20px rgba(107,26,26,0.4);
}

.btn-gate:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(107,26,26,0.5);
}

.gate.closing {
    animation: gateFadeOut 0.8s ease forwards;
}

@keyframes gateFadeOut {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.05); pointer-events: none; }
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content { display: none; opacity: 0; }
.main-content.active { display: block; opacity: 1; transition: opacity 0.8s ease; }

/* ============================================================
   BACKGROUND KONTINU (satu gambar utuh, tidak patah-patah)
   ============================================================ */
.bg-continuous {
    position: fixed; inset: 0; z-index: 0;
    background:
        radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(61,14,14,0.07) 100%),
        radial-gradient(ellipse at 50% 50%, rgba(139,58,58,0.05) 0%, transparent 50%),
        linear-gradient(rgba(107,26,26,0.35), rgba(61,14,14,0.35)),
        url(../images/DESIGN-BG-NAMA-44.jpg);
    background-blend-mode: normal, normal, color, normal;
    background-size: cover;
    background-position: center;
    pointer-events: none;
}

/* ============================================================
   SLIDE SCROLL
   Setiap section min-height 100vh, scrolling smooth tanpa snap
   ============================================================ */

.main-content > section,
.main-content > footer {
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* Hero khusus: biarkan vertikalnya persis seperti sebelumnya */
.main-content > .hero {
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
}

/* ============================================================
   SLIDE NAVIGATION DOTS
   ============================================================ */
.slide-nav {
    position: fixed; right: 14px; top: 50%; transform: translateY(-50%);
    z-index: 960; /* di atas canvas kelopak (950) agar tidak tertutup */
    display: flex; flex-direction: column; gap: 12px;
}

.slide-nav button {
    width: 10px; height: 10px; padding: 0; cursor: pointer;
    border: 1.5px solid rgba(255,255,255,0.55); border-radius: 50%;
    background: rgba(255,255,255,0.15);
    transition: var(--transition);
}

.slide-nav button:hover {
    background: rgba(255,255,255,0.45);
    transform: scale(1.25);
}

.slide-nav button.active {
    background: var(--white); border-color: var(--white);
    transform: scale(1.35);
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* ============================================================
   TRANSISI SECTION — FADE IN SEDERHANA
   Transisi antar section dibuat smooth dengan fade + slide-up
   ringan. Tidak ada efek 3D/rotate/perspective.
   ============================================================ */

@keyframes slideContentIn {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

.main-content > section.slide-on > .container,
.main-content > .hero.slide-on .hero-content,
.main-content > footer.slide-on > .container {
    animation: slideContentIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes flowerFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.main-content > section.slide-on > .corner-flower {
    animation: flowerFadeIn 0.8s ease both;
}

/* --- Hormati preferensi pengguna --- */
@media (prefers-reduced-motion: reduce) {
    .main-content > section.slide-on > .container,
    .main-content > .hero.slide-on .hero-content,
    .main-content > footer.slide-on > .container,
    .main-content > section.slide-on > .corner-flower {
        animation: none;
    }
}

/* ============================================================
   MUSIC BUTTON
   ============================================================ */
.music-btn {
    position: fixed; bottom: 20px; right: 20px; z-index: 900;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--white); border: 1px solid var(--border);
    color: var(--maroon); font-size: 1rem; cursor: pointer;
    box-shadow: var(--shadow); transition: var(--transition);
    display: flex; align-items: center; justify-content: center;
}

.music-btn:hover { box-shadow: var(--shadow-hover); color: var(--maroon-light); border-color: var(--maroon-light); }
.music-btn.playing { color: var(--maroon); border-color: var(--maroon); animation: musicSpin 4s linear infinite; }
@keyframes musicSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ============================================================
   HERO / COVER  
   ============================================================ */
.hero {
    position: relative; min-height: 100vh; min-height: 100dvh;
    display: flex; align-items: center; justify-content: center;
    background:
        /* Vignette halus di tepi */
        radial-gradient(ellipse at 50% 50%, transparent 50%, rgba(30,8,8,0.15) 100%),
        /* Warm glow dari atas */
        radial-gradient(ellipse at 50% 30%, rgba(139,58,58,0.12) 0%, transparent 45%),
        /* Dark overlay */
        linear-gradient(160deg, rgba(30,8,8,0.55) 0%, rgba(50,18,18,0.55) 40%, rgba(30,8,8,0.55) 100%),
        /* Color blend */
        linear-gradient(135deg, rgba(107,26,26,0.45), rgba(61,14,14,0.45)),
        url(../images/DESIGN-BG-NAMA-44.jpg);
    background-blend-mode: normal, normal, normal, color, normal;
    background-size: cover;
    background-position: center;
    overflow: hidden; padding: 40px 20px 0;
}

.hero-hidden {
    display: none !important;
}

.hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(139,58,58,0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(107,26,26,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 60%, rgba(139,58,58,0.08) 0%, transparent 50%);
}

.hero-content {
    position: relative; z-index: 3; text-align: center; max-width: 600px;
}

.hero-sup {
    font-size: 0.8rem; letter-spacing: 5px; text-transform: uppercase;
    color: rgba(255,255,255,0.6); margin-bottom: 20px;
}

.hero-title { margin-bottom: 16px; }

.hero-title span {
    display: block; font-family: var(--font-hero);
    font-size: 4.5rem; line-height: 1.1;
    color: var(--white); text-shadow: 0 2px 30px rgba(107,26,26,0.4);
}

.hero-amp {
    font-size: 2.5rem !important; opacity: 0.4; padding: 4px 0;
    color: rgba(255,255,255,0.5) !important; text-shadow: none !important;
}

.hero-date {
    font-family: var(--font-heading); font-size: 1.2rem;
    color: rgba(255,255,255,0.5); letter-spacing: 4px; margin-bottom: 16px;
}

.hero-divider {
    width: 40px; height: 1.5px;
    background: var(--maroon-light); opacity: 0.3;
    margin: 0 auto 20px;
}

.hero-to {
    font-size: 0.85rem; color: rgba(255,255,255,0.5); margin-bottom: 6px;
}

.hero-name {
    font-family: var(--font-heading); font-size: 1.4rem;
    color: var(--white); font-weight: 600; margin-bottom: 32px;
}

.btn-hero {
    padding: 14px 36px;
    background: rgba(61,14,14,0.45);
    border: 1.5px solid rgba(255,255,255,0.75); border-radius: 50px;
    color: var(--white); font-size: 0.9rem; font-weight: 500; letter-spacing: 1px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.25);
}

.btn-hero:hover { background: var(--maroon); border-color: var(--white); color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(107,26,26,0.5); }

/* Scroll-hint: panah di bawah tombol hero */
.scroll-hint {
    margin-top: 40px;
    color: rgba(255,255,255,0.45);
    font-size: 1.2rem;
    animation: bounceHint 2s ease-in-out infinite;
}

@keyframes bounceHint {
    0%, 100% { transform: translateY(0); opacity: 0.45; }
    50% { transform: translateY(10px); opacity: 0.8; }
}

/* ============================================================
   MARQUEE BANNER (Save The Date)
   Footer tetap di dasar layar - posisinya diam selalu di bawah
   seperti footer di Word, tidak ikut hilang saat di-scroll.
   ============================================================ */
.marquee {
    background: rgba(61,14,14,0.38); /* transparan halus, tidak maroon pekat */
    overflow: hidden;
    padding: 5px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(3px);
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 895; /* di atas konten (1), di bawah tombol musik (900) & dots (960) */
    pointer-events: none; /* tidak mengganggu klik konten */
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeScroll 26s linear infinite;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-right: 24px;
    white-space: nowrap;
    font-family: var(--font-heading);
    font-size: 0.68rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55); /* redup, tidak mengundang fokus */
}

.marquee-content i {
    font-size: 0.6rem;
    color: rgba(214,166,168,0.5);
    animation: heartBeat 2s ease infinite;
}

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ============================================================
   QUOTE SECTION
   ============================================================ */
.quote {
    position: relative;
    z-index: 1;
}

.quote-card {
    text-align: center; max-width: 650px; margin: 0 auto;
    padding: 50px 40px; background: var(--white);
    border-radius: 16px; border: 1px solid var(--border); position: relative;
    box-shadow: var(--shadow);
}

.quote-photo-wrap { margin-bottom: 30px; }

.quote-photo-placeholder {
    width: 220px; height: 220px; border-radius: 50%; margin: 0 auto;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    background: linear-gradient(135deg, rgba(107,26,26,0.05), rgba(139,58,58,0.03));
    border: 2px dashed var(--border); color: var(--text-light); font-size: 2.2rem;
    transition: var(--transition); overflow: hidden;
}

.quote-photo-placeholder i { color: var(--maroon-light); opacity: 0.4; }
.quote-photo-placeholder span { font-size: 0.8rem; letter-spacing: 1px; opacity: 0.5; }
.quote-photo-placeholder img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.quote-bismillah { margin-bottom: 24px; text-align: center; display: flex; justify-content: center; }
.quote-bismillah img { max-width: 280px; width: auto; height: auto; }

.quote-text {
    font-family: var(--font-heading); font-size: 1.15rem;
    font-style: italic; line-height: 1.9; color: var(--brown); margin-bottom: 16px;
}

.quote-ref { font-size: 0.9rem; color: var(--maroon-light); font-weight: 500; }

/* ============================================================
   COUPLE SECTION
   ============================================================ */
.couple {
    position: relative;
    z-index: 1;
}

.couple-salam { text-align: center; font-size: 1rem; color: var(--white); margin-bottom: 12px; }
.couple-intro { text-align: center; font-size: 0.95rem; color: rgba(255,255,255,0.97); margin-bottom: 40px; line-height: 1.8; text-shadow: 0 1px 6px rgba(0,0,0,0.35); }

.couple-grid {
    display: grid; grid-template-columns: 1fr auto 1fr;
    gap: 30px; align-items: start; max-width: 750px; margin: 0 auto;
}

.couple-card {
    text-align: center; padding: 40px 24px;
    background: var(--white); border-radius: 16px;
    box-shadow: var(--shadow); transition: var(--transition);
    position: relative;
}

.couple-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--maroon), transparent);
    opacity: 0.3;
}

.couple-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.couple-photo-wrap { margin-bottom: 20px; display: inline-block; }

.couple-photo {
    width: 140px; height: 140px; border-radius: 50%; margin: 0 auto;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(107,26,26,0.06), rgba(139,58,58,0.04));
    border: 3px solid rgba(107,26,26,0.12);
    font-size: 2.5rem; color: var(--maroon-light);
    transition: var(--transition); overflow: hidden;
}

.couple-photo img { width: 100%; height: 100%; object-fit: cover; }
.couple-card:hover .couple-photo { border-color: var(--maroon); }

.couple-name { font-family: var(--font-hero); font-size: 2rem; color: var(--maroon-dark); margin-bottom: 4px; }
.couple-fullname { font-size: 0.88rem; color: var(--maroon-light); margin-bottom: 12px; }
.couple-parent { font-size: 0.88rem; color: var(--text-light); line-height: 1.6; margin-bottom: 16px; }

.couple-ig {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.85rem; color: var(--maroon-light);
    padding: 8px 20px; border: 1px solid var(--border); border-radius: 50px;
    transition: var(--transition);
}

.couple-ig:hover { border-color: var(--maroon-light); background: rgba(107,26,26,0.03); color: var(--maroon); }

.couple-heart { display: flex; align-items: center; justify-content: center; padding-top: 80px; }
.couple-heart i { font-size: 1.5rem; color: var(--maroon-light); animation: heartBeat 2s ease infinite; }

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.2); }
    30% { transform: scale(1); }
    45% { transform: scale(1.1); }
    60% { transform: scale(1); }
}

/* ============================================================
   COUNTDOWN
   ============================================================ */
.countdown {
    position: relative;
    z-index: 1;
}

.countdown-grid {
    display: flex; justify-content: center; gap: 16px; max-width: 500px; margin: 0 auto;
}

.countdown-item {
    flex: 1; text-align: center; padding: 20px 12px;
    background: var(--white); border-radius: 12px;
    border: 1px solid var(--border); position: relative;
    box-shadow: var(--shadow);
}

.countdown-item::after {
    content: ''; position: absolute; bottom: -1px;
    left: 20%; right: 20%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--maroon), transparent);
    opacity: 0.2; border-radius: 1px;
}

.countdown-num {
    display: block; font-family: var(--font-heading);
    font-size: 2.4rem; font-weight: 600; color: var(--maroon-dark);
    line-height: 1; margin-bottom: 4px; font-variant-numeric: tabular-nums;
}

.countdown-lbl {
    font-size: 0.78rem; color: var(--text-light);
    text-transform: uppercase; letter-spacing: 2px;
}

.calendar-wrap { text-align: center; margin-top: 30px; }

.btn-calendar {
    padding: 12px 32px; background: var(--white);
    border: 1.5px solid var(--border); border-radius: 50px;
    color: var(--brown); font-size: 0.85rem;
}

.btn-calendar:hover { border-color: var(--maroon); color: var(--maroon); background: rgba(107,26,26,0.03); }
.btn-calendar i { color: var(--maroon-light); }

/* ============================================================
   EVENT SECTION
   ============================================================ */
.event {
    position: relative;
    z-index: 1;
}

.event-desc { text-align: center; font-size: 0.95rem; color: rgba(255,255,255,0.97); margin-bottom: 30px; text-shadow: 0 1px 6px rgba(0,0,0,0.35); }

.event-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 800px; margin: 0 auto;
}

.event-card {
    text-align: center; padding: 30px 20px;
    background: var(--white); border-radius: 16px;
    box-shadow: var(--shadow); transition: var(--transition);
    position: relative; border: 1px solid var(--border);
}

.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: rgba(107,26,26,0.15); }

.event-icon {
    width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(107,26,26,0.08), rgba(139,58,58,0.04));
    font-size: 1.3rem; color: var(--maroon);
}

.event-title {
    font-family: var(--font-heading); font-size: 1.2rem;
    color: var(--maroon-dark); margin-bottom: 8px;
}

.event-day {
    font-size: 0.85rem; font-weight: 500;
    color: var(--maroon-light); margin-bottom: 8px;
}

.event-time {
    font-size: 0.85rem; color: var(--text); margin-bottom: 16px;
}

.event-time i { color: var(--maroon-light); margin-right: 6px; }

.event-loc {
    font-size: 0.88rem; color: var(--text-light); line-height: 1.6;
    padding-top: 16px; border-top: 1px solid var(--border);
}

.event-loc i { color: var(--maroon-light); margin-right: 6px; }

.event-btns {
    display: flex; justify-content: center; gap: 12px; margin-top: 30px; flex-wrap: wrap;
}

.btn-map {
    padding: 12px 28px; background: var(--white);
    border: 1.5px solid var(--maroon-light); border-radius: 50px;
    color: var(--maroon-light); font-size: 0.85rem;
}

.btn-map:hover { background: var(--maroon); border-color: var(--maroon); color: var(--white); }

/* ============================================================
   LOVE STORY
   ============================================================ */
.story {
    position: relative;
    z-index: 1;
}

.story-tagline {
    text-align: center; font-family: var(--font-heading);
    font-size: 1.05rem; font-style: italic; color: rgba(255,255,255,0.98); margin-bottom: 50px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.35);
}

.story-tagline i { margin-right: 6px; font-size: 0.8rem; color: rgba(255,255,255,0.85); }

.story-timeline { position: relative; max-width: 500px; margin: 0 auto; padding-left: 40px; }

.story-timeline::before {
    content: ''; position: absolute; left: 11px; top: 0; bottom: 0;
    width: 2px; background: linear-gradient(to bottom, var(--maroon-light), rgba(107,26,26,0.3), var(--maroon-light));
}

.story-item { position: relative; margin-bottom: 40px; }
.story-item:last-child { margin-bottom: 0; }

.story-dot {
    position: absolute; left: -36px; top: 4px;
    width: 14px; height: 14px; z-index: 2;
    border-radius: 50%;
    border: 2px solid var(--maroon-light);
    background: var(--white);
    box-shadow: 0 0 0 3px var(--white);
}

.story-content {
    background: var(--white); padding: 24px; border-radius: 12px;
    border: 1px solid var(--border); transition: var(--transition);
    box-shadow: var(--shadow);
}

.story-content:hover { border-color: rgba(107,26,26,0.2); box-shadow: var(--shadow-hover); }

.story-phase { font-family: var(--font-heading); font-size: 1.1rem; color: var(--maroon-dark); margin-bottom: 8px; }
.story-text { font-size: 0.9rem; color: var(--text-light); line-height: 1.7; }

/* Timeline story muncul satu per satu saat di-scroll */
.story-item.reveal {
    opacity: 0;
    transition: none;
}

.story-item.reveal.active {
    animation: storyReveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.story-item.reveal.active:nth-child(1) { animation-delay: 0.05s; }
.story-item.reveal.active:nth-child(2) { animation-delay: 0.15s; }
.story-item.reveal.active:nth-child(3) { animation-delay: 0.25s; }
.story-item.reveal.active:nth-child(4) { animation-delay: 0.35s; }

@keyframes storyReveal {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.story-photo { text-align: center; max-width: 300px; margin: 0 auto; }

.story-photo-top { margin-bottom: 44px; }
.story-photo-bottom { margin-top: 50px; }

.story-photo-frame {
    background: var(--white); padding: 2px;
    border-radius: 10px; border: 1px solid var(--border);
    box-shadow: var(--shadow); transition: var(--transition);
    transform: rotate(-2deg);
}

.story-photo-bottom .story-photo-frame { transform: rotate(2deg); }

.story-photo-frame:hover { transform: rotate(0deg) scale(1.02); box-shadow: var(--shadow-hover); }

.story-photo-frame img {
    width: 100%; aspect-ratio: 2 / 3; object-fit: cover;
    border-radius: 8px; display: block;
}


.story-photo-caption {
    margin-top: 12px; font-family: var(--font-heading); font-size: 0.95rem;
    font-style: italic; letter-spacing: 1px; color: rgba(255,255,255,0.85);
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery {
    position: relative;
    z-index: 1;
}

.gallery-tagline {
    text-align: center; font-family: var(--font-heading);
    font-size: 1.05rem; font-style: italic; color: rgba(255,255,255,0.98); margin-bottom: 30px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.35);
}

.gallery-tagline i { color: rgba(255,255,255,0.85); margin-right: 6px; font-size: 0.8rem; }

.gallery-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 700px; margin: 0 auto;
}

.gallery-item {
    aspect-ratio: 1; border-radius: 12px; overflow: hidden;
    cursor: pointer; border: 2px solid transparent; transition: var(--transition);
}

.gallery-item:hover { border-color: var(--maroon); }

/* Galeri muncul satu per satu saat di-scroll */
.gallery-item.reveal {
    opacity: 0;
    transition: border-color 0.3s ease;
}

.gallery-item.reveal.active {
    animation: galleryReveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.gallery-item.reveal.active:nth-child(1) { animation-delay: 0.05s; }
.gallery-item.reveal.active:nth-child(2) { animation-delay: 0.1s; }
.gallery-item.reveal.active:nth-child(3) { animation-delay: 0.15s; }
.gallery-item.reveal.active:nth-child(4) { animation-delay: 0.2s; }
.gallery-item.reveal.active:nth-child(5) { animation-delay: 0.25s; }
.gallery-item.reveal.active:nth-child(6) { animation-delay: 0.3s; }
.gallery-item.reveal.active:nth-child(7) { animation-delay: 0.35s; }
.gallery-item.reveal.active:nth-child(8) { animation-delay: 0.4s; }
.gallery-item.reveal.active:nth-child(9) { animation-delay: 0.45s; }

@keyframes galleryReveal {
    from { opacity: 0; transform: translateY(30px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.gal-placeholder {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(107,26,26,0.05), rgba(139,58,58,0.03));
    color: var(--maroon-light); font-size: 1.8rem; transition: var(--transition);
}

.gal-placeholder img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item:hover .gal-placeholder { transform: scale(1.08); }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
    display: none; position: fixed; inset: 0; z-index: 2000;
    background: rgba(45,14,14,0.97);
    align-items: center; justify-content: center;
}

.lightbox.active { display: flex; }

.lbox-close {
    position: absolute; top: 20px; right: 20px;
    color: var(--white); font-size: 2.5rem; cursor: pointer;
    width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; transition: var(--transition); z-index: 10;
}

.lbox-close:hover { background: rgba(255,255,255,0.1); transform: rotate(90deg); }

.lbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.08); border: none; color: var(--white);
    font-size: 1.2rem; width: 44px; height: 44px; border-radius: 50%;
    cursor: pointer; transition: var(--transition); z-index: 10;
}

.lbox-nav:hover { background: rgba(255,255,255,0.15); }
.lbox-prev { left: 20px; }
.lbox-next { right: 20px; }

.lbox-content { text-align: center; }

.lbox-image {
    width: 320px; height: 320px; border-radius: 12px; overflow: hidden;
}

.lbox-image .gal-placeholder { font-size: 3rem; }
.lbox-image img { width: 100%; height: 100%; object-fit: cover; }

.lbox-counter { margin-top: 16px; font-size: 0.85rem; color: rgba(255,255,255,0.5); }

/* ============================================================
   WEDDING GIFT
   ============================================================ */
.gift {
    position: relative;
    z-index: 1;
}

.gift-desc { text-align: center; font-size: 0.95rem; color: rgba(255,255,255,0.97); max-width: 500px; margin: 0 auto 40px; line-height: 1.8; text-shadow: 0 1px 6px rgba(0,0,0,0.35); }

.gift-banks { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 550px; margin: 0 auto; }

.gift-card {
    text-align: center; padding: 30px 20px; background: var(--white);
    border-radius: 16px; border: 1px solid var(--border); transition: var(--transition);
    position: relative; box-shadow: var(--shadow);
}

.gift-card:hover { transform: translateY(-4px); border-color: rgba(107,26,26,0.2); box-shadow: var(--shadow-hover); }

.gift-bank-icon { font-size: 1.8rem; color: var(--maroon-light); margin-bottom: 8px; }
.gift-bank-name { font-family: var(--font-heading); font-size: 1.1rem; color: var(--maroon-dark); margin-bottom: 12px; }
.gift-acc-number { font-size: 1rem; font-weight: 500; color: var(--brown); letter-spacing: 2px; margin-bottom: 4px; }
.gift-acc-name { font-size: 0.85rem; color: var(--text-light); margin-bottom: 16px; }

.btn-copy {
    padding: 10px 24px; background: var(--white);
    border: 1px solid var(--border); border-radius: 50px;
    color: var(--brown); font-size: 0.85rem;
}

.btn-copy:hover { border-color: var(--maroon); color: var(--maroon); background: rgba(107,26,26,0.03); }
.btn-copy i { font-size: 0.85rem; }

.gift-physical { text-align: center; margin-top: 30px; }

.btn-gift-physical {
    padding: 12px 28px; background: var(--white);
    border: 1.5px solid var(--border); border-radius: 50px;
    color: var(--brown); font-size: 0.85rem;
}

.btn-gift-physical:hover { border-color: var(--maroon-light); color: var(--maroon-light); }

.gift-address {
    margin-top: 20px; padding: 24px; background: var(--white);
    border-radius: 12px; border: 1px solid var(--border);
    text-align: left; font-size: 0.85rem; color: var(--text);
    line-height: 2; max-width: 400px; margin: 20px auto 0;
    box-shadow: var(--shadow);
}

.gift-address .btn-copy { margin-top: 12px; }

/* ============================================================
   RSVP SECTION
   ============================================================ */
.rsvp {
    position: relative;
    z-index: 1;
}

.rsvp-desc { text-align: center; font-size: 0.95rem; color: rgba(255,255,255,0.97); margin-bottom: 30px; text-shadow: 0 1px 6px rgba(0,0,0,0.35); }

.rsvp-doa-section { padding: 20px 0; }

.rsvp-doa {
    text-align: center; max-width: 550px; margin: 0 auto;
    padding: 30px 24px; background: var(--white);
    border-radius: 16px; border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.doa-arab { font-size: 4rem; line-height: 1.8; color: var(--maroon); margin-bottom: 16px; direction: rtl; }
.doa-latin { font-family: var(--font-heading); font-size: 0.9rem; font-style: italic; color: var(--brown); line-height: 1.7; }

.rsvp-form {
    max-width: 480px; margin: 0 auto; padding: 32px 28px;
    background: var(--white); border-radius: 16px; box-shadow: var(--shadow);
    position: relative;
}

.form-row { margin-bottom: 14px; }

.form-input {
    width: 100%; padding: 14px 18px; background: var(--cream);
    border: 1.5px solid var(--border); border-radius: 12px; color: var(--brown);
    font-family: var(--font-body); font-size: 0.9rem; transition: var(--transition); outline: none;
}

.form-input:focus { border-color: var(--maroon); background: var(--white); box-shadow: 0 0 0 3px rgba(107,26,26,0.08); }
.form-input::placeholder { color: var(--text-light); opacity: 0.6; }
textarea.form-input { resize: vertical; min-height: 80px; }

.radio-group { display: flex; gap: 8px; }
.radio-btn { flex: 1; cursor: pointer; }
.radio-btn input { display: none; }

.radio-label {
    display: block; text-align: center; padding: 12px 8px;
    background: var(--cream); border: 1.5px solid var(--border);
    border-radius: 10px; font-size: 0.82rem; color: var(--text-light); transition: var(--transition);
}

.radio-btn input:checked + .radio-label { background: rgba(107,26,26,0.06); border-color: var(--maroon); color: var(--maroon-dark); }

.btn-submit {
    width: 100%; padding: 14px;
    background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
    border: none; border-radius: 12px; color: var(--white);
    font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: var(--transition);
    position: relative;
}

.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(107,26,26,0.3); }
.btn-submit.loading .btn-text { visibility: hidden; }
.btn-submit.loading .btn-load { visibility: visible; }

.btn-load { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; visibility: hidden; }

.form-msg {
    margin-top: 14px; padding: 10px 14px; border-radius: 10px;
    font-size: 0.82rem; display: none; text-align: center;
}

.form-msg.success { display: block; background: rgba(107,26,26,0.06); color: var(--maroon); border: 1px solid rgba(107,26,26,0.12); }
.form-msg.error { display: block; background: rgba(239,68,68,0.08); color: #ef4444; border: 1px solid rgba(239,68,68,0.15); }

.rsvp-stats { display: flex; justify-content: center; gap: 30px; margin-top: 30px; }

.stat-item { text-align: center; }

.stat-num {
    display: block; font-family: var(--font-heading);
    font-size: 1.4rem; color: #fff; font-weight: 600;
}

.stat-lbl { font-size: 0.8rem; color: rgba(255,255,255,0.85); text-transform: uppercase; letter-spacing: 1px; }

/* ============================================================
   BEST WISHES
   ============================================================ */
.wishes {
    position: relative;
    z-index: 1;
}

.wishes-desc { text-align: center; font-size: 0.95rem; color: rgba(255,255,255,0.97); margin-bottom: 30px; text-shadow: 0 1px 6px rgba(0,0,0,0.35); }

.wishes-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
    max-width: 700px; margin: 0 auto; align-items: start;
}

.wishes-form-wrap {
    padding: 28px; background: var(--white); border-radius: 16px;
    border: 1px solid var(--border); position: relative;
    box-shadow: var(--shadow);
}

.wishes-form-wrap .btn-submit { background: linear-gradient(135deg, var(--maroon-light), var(--maroon)); }
.wishes-form-wrap .btn-submit:hover { box-shadow: 0 6px 20px rgba(107,26,26,0.25); }

.wishes-list-wrap {
    padding: 28px; background: var(--white); border-radius: 16px;
    border: 1px solid var(--border); max-height: 450px; overflow-y: auto;
    box-shadow: var(--shadow);
}

.wishes-list-wrap::-webkit-scrollbar { width: 3px; }
.wishes-list-wrap::-webkit-scrollbar-thumb { background: var(--maroon-light); border-radius: 2px; }

.wishes-header { font-size: 0.85rem; color: var(--maroon-light); margin-bottom: 16px; font-weight: 500; }

.wish-item {
    padding: 14px; margin-bottom: 10px;
    background: var(--white); border-radius: 10px; border: 1px solid var(--border);
}

.wish-item-name { font-weight: 500; color: var(--maroon-dark); font-size: 0.85rem; margin-bottom: 4px; }
.wish-item-msg { font-size: 0.82rem; color: var(--text-light); line-height: 1.5; }
.wish-item-date { font-size: 0.78rem; color: var(--text-light); opacity: 0.7; margin-top: 8px; }
.wish-loading, .wish-empty { text-align: center; color: var(--text-light); padding: 30px 0; font-size: 0.85rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    position: relative;
    text-align: center; padding: 60px 20px 120px; /* ruang bawah agar tidak tertutup marquee footer */
    background:
        radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(30,8,8,0.12) 100%),
        radial-gradient(ellipse at 50% 30%, rgba(139,58,58,0.1) 0%, transparent 50%),
        linear-gradient(160deg, rgba(30,8,8,0.55), rgba(50,18,18,0.55)),
        linear-gradient(135deg, rgba(107,26,26,0.45), rgba(61,14,14,0.45)),
        url(../images/DESIGN-BG-NAMA-44.jpg);
    background-blend-mode: normal, normal, normal, color, normal;
    background-size: cover;
    background-position: center;
    color: var(--white);
}

.footer-thanks {
    font-size: 0.95rem; color: rgba(255,255,255,0.97);
    line-height: 1.8; max-width: 520px; margin: 0 auto 12px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.35);
}

.footer-thanks2 { font-size: 0.9rem; color: rgba(255,255,255,0.9); margin-bottom: 30px; text-shadow: 0 1px 6px rgba(0,0,0,0.35); }

.footer-names { font-family: var(--font-hero); font-size: 2.5rem; color: var(--white); margin-bottom: 8px; }
.footer-amp { color: rgba(255,255,255,0.3); }

.footer-line { width: 50px; height: 1px; background: var(--maroon-light); margin: 0 auto 20px; opacity: 0.3; }

.footer-hashtag { font-family: var(--font-heading); font-size: 1rem; color: var(--maroon-light); opacity: 0.6; margin-bottom: 24px; }
.footer-copy { font-size: 0.85rem; color: rgba(255,255,255,0.85); letter-spacing: 2px; }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
    position: fixed; bottom: 80px; left: 50%;
    transform: translateX(-50%) translateY(20px); z-index: 9999;
    opacity: 0; transition: var(--transition); pointer-events: none;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.toast-body {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 24px; background: var(--white);
    border-radius: 12px; box-shadow: 0 8px 40px rgba(0,0,0,0.15);
    font-size: 0.85rem; color: var(--brown); border: 1px solid var(--border);
}

.toast-icon { color: var(--maroon-light); font-size: 1.1rem; }

/* ============================================================
   SECTION FLOWER DECORATIONS
   Mengisi area kosong antar konten dengan dekorasi bunga
   ============================================================ */
.section-deco {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.section-deco img {
    width: 280px;
    height: auto;
    opacity: 0.45;
    filter: brightness(0.95) saturate(0.9);
}

.section-deco.top-left {
    top: 30px; left: -30px;
    transform: rotate(-20deg);
}

.section-deco.top-right {
    top: 30px; right: -30px;
    transform: rotate(20deg) scaleX(-1);
}

.section-deco.bottom-left {
    bottom: 30px; left: -30px;
    transform: rotate(15deg) scaleY(-1);
}

.section-deco.bottom-right {
    bottom: 30px; right: -30px;
    transform: rotate(-15deg) scaleX(-1) scaleY(-1);
}

@media (max-width: 768px) {
    .section-deco img { width: 180px; opacity: 0.35; }
    .section-deco.top-left,
    .section-deco.bottom-left { left: -40px; }
    .section-deco.top-right,
    .section-deco.bottom-right { right: -40px; }
}

@media (max-width: 480px) {
    .section-deco img { width: 130px; opacity: 0.28; }
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ============================================================
   PETALS CANVAS + 3D TILT
   ============================================================ */
#petalsCanvas {
    position: fixed; inset: 0;
    width: 100%; height: 100%;
    pointer-events: none; z-index: 950; /* di atas musik (900), di bawah lightbox (2000)/gate (9999) */
}

#sideFlowersCanvas {
    position: fixed; inset: 0;
    width: 100%; height: 100%;
    pointer-events: none; z-index: 940; /* sedikit di bawah kelopak */
}

.tilt {
    will-change: transform;
    transform-style: preserve-3d;
    transition: opacity 0.7s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================================
   RESPONSIVE - MOBILE FIRST (PORTRAIT OPTIMIZED)
   ============================================================ */
@media (max-width: 768px) {
    .section-pad { padding: 30px 0; }

    .hero-title span { font-size: 3.2rem; }
    .hero-amp { font-size: 1.8rem !important; }
    .hero-date { font-size: 1.1rem; }
    .gate-couple { font-size: 2rem; }
    .gate-amp { font-size: 1.5rem; }
    .gate-name { font-size: 1.3rem; }

    .couple-grid { grid-template-columns: 1fr; gap: 20px; }
    .couple-heart { padding-top: 0; order: -1; }

    .event-grid { grid-template-columns: 1fr; max-width: 400px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gift-banks { grid-template-columns: 1fr; }
    .wishes-grid { grid-template-columns: 1fr; }

    .countdown-grid { gap: 10px; }
    .countdown-item { padding: 16px 10px; }
    .countdown-num { font-size: 1.8rem; }

    .rsvp-stats { gap: 20px; }
    .quote-card { padding: 30px 24px; }
    .quote-photo-placeholder { width: 180px; height: 180px; font-size: 1.8rem; }

    .story-timeline { padding-left: 30px; }
    .story-timeline::before { left: 8px; }
    .story-dot { left: -28px; width: 12px; height: 12px; }
    .lbox-image { width: 250px; height: 250px; }
    .event-btns { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
    .section-sub { letter-spacing: 3px; text-wrap: balance; }
    .hero-title span { font-size: 2.6rem; }
    .hero-amp { font-size: 1.5rem !important; }
    .hero-date { font-size: 1rem; }

    .countdown-grid { max-width: 320px; margin: 0 auto; }
    .countdown-num { font-size: 1.5rem; }
    .countdown-lbl { font-size: 0.68rem; }
    .radio-group { flex-direction: column; }
    .quote-text { font-size: 1rem; }
    .doa-arab { font-size: 1.2rem; }
    .footer-names { font-size: 2rem; }
    .gate-couple { font-size: 1.7rem; }
}
