/* ========================================
   UNDANGAN PERNIKAHAN DIGITAL
   Alkifli & Nurfadilla
   Theme: Rumah Adat Minangkabau
   MOBILE-FIRST REDESIGN v2.0
   ======================================== */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Cinzel:wght@400;500;600;700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=Poppins:wght@200;300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Amiri:ital,wght@0,400;0,700;1,400&family=DM+Sans:wght@400;500;600;700&display=swap');

/* ---------- CSS Custom Properties (Romantic Palette) ---------- */
:root {
    /* Primary - Deep Burgundy Romance */
    --maroon-950: #1A0505;
    --maroon-900: #2D0A0A;
    --maroon-800: #4A0E0E;
    --maroon-700: #6B1115;
    --maroon-600: #8B1A1A;
    --maroon-500: #A52A2A;
    --maroon-400: #B83D3D;
    --maroon-300: #CC5555;
    --maroon-200: #DE8888;
    --maroon-100: #F0BCBC;
    --maroon-50: #FDE8E8;

    /* Accent - Warm Champagne Gold */
    --gold-700: #8B6914;
    --gold-600: #A07C1C;
    --gold-500: #B8860B;
    --gold-400: #D4A017;
    --gold-350: #DFB832;
    --gold-300: #E6C25A;
    --gold-200: #EDD87A;
    --gold-150: #F2E8A0;
    --gold-100: #F7F0C8;
    --gold-50: #FDF9E8;

    /* Rose/Blush accents for romance */
    --rose-deep: #C4728D;
    --rose-medium: #D4899E;
    --rose-soft: #E8B4C4;
    --rose-light: #F5DAE4;
    --rose-fade: #FBF0F5;

    /* Nature Green */
    --green-600: #1A3D2E;
    --green-500: #2D5A42;
    --green-400: #4A8060;
    --green-300: #7AA388;

    /* Base / Surfaces */
    --cream: #FAF3E8;
    --cream-warm: #F5EBD8;
    --cream-parchment: #F0E4CD;
    --parchment: #E8D9BF;
    --white: #FFFFFF;
    --off-white: #FEFCF9;

    /* Text - Optimized for readability */
    --text-primary: #2D1810;
    --text-secondary: #5C4033;
    --text-muted: #8B7365;
    --text-light: #A89080;
    --overlay-dark: rgba(45, 24, 16, 0.88);

    /* Gradients - Romantic & Harmonious */
    --gradient-primary: linear-gradient(135deg, var(--maroon-700) 0%, var(--maroon-500) 50%, var(--rose-deep) 100%);
    --gradient-gold: linear-gradient(135deg, var(--gold-500) 0%, var(--gold-300) 50%, var(--gold-200) 100%);
    --gradient-shimmer: linear-gradient(105deg, var(--gold-400) 0%, var(--gold-100) 25%, var(--gold-400) 50%, var(--gold-100) 75%, var(--gold-400) 100%);
    --gradient-card: linear-gradient(165deg, rgba(255,255,255,0.97) 0%, rgba(250,243,232,0.92) 100%);
    --gradient-romantic: linear-gradient(135deg, var(--maroon-600) 0%, var(--rose-deep) 100%);
    --gradient-soft-bg: linear-gradient(180deg, var(--cream) 0%, var(--rose-fade) 50%, var(--cream) 100%);

    /* Shadows - Layered depth */
    --shadow-xs: 0 2px 8px rgba(107, 17, 21, 0.06);
    --shadow-sm: 0 4px 16px rgba(107, 17, 21, 0.08);
    --shadow-md: 0 8px 30px rgba(107, 17, 21, 0.12);
    --shadow-lg: 0 16px 48px rgba(107, 17, 21, 0.15);
    --shadow-xl: 0 24px 64px rgba(107, 17, 21, 0.18);
    --shadow-gold: 0 4px 20px rgba(212, 160, 23, 0.22);
    --shadow-glow: 0 0 30px rgba(212, 160, 23, 0.30);
    --shadow-soft-inset: inset 0 2px 8px rgba(107, 17, 21, 0.06);
    --shadow-rose: 0 8px 28px rgba(196, 114, 141, 0.20);

    /* Typography Scale (Mobile-First Fluid) */
    --font-display: 'Great Vibes', 'Brush Script MT', cursive;
    --font-heading: 'Cinzel', 'Cormorant Garamond', 'Playfair Display', serif;
    --font-body: 'DM Sans', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-arabic: 'Amiri', serif;

    /* Touch target size */
    --touch-min: 48px;
    --touch-comfortable: 56px;

    /* Z-index layers */
    --z-base: 1;
    --z-above: 10;
    --z-overlay: 100;
    --z-modal: 1000;
    --z-gate: 9999;

    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s var(--ease-out-expo);
    --transition-base: all 0.35s var(--ease-out-expo);
    --transition-slow: all 0.5s var(--ease-out-expo);
}


/* ========================================
   RESET & BASE - MOBILE FIRST
   ======================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--cream);
    overflow-x: hidden;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url('../img/galeri4.jpeg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    opacity: 0.05;
    pointer-events: none;
    z-index: -2;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url('../img/galeri4.jpeg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    opacity: 0.12;
    pointer-events: none;
    z-index: -1;
}

body.no-scroll { overflow: hidden; height: 100vh; position: fixed; width: 100%; }

img { max-width: 100%; display: block; height: auto; }
a { text-decoration: none; color: inherit; }

::selection { background: var(--gold-300); color: var(--maroon-900); }
:focus-visible { outline: 2px solid var(--gold-400); outline-offset: 3px; border-radius: 4px; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--maroon-800); }
::-webkit-scrollbar-thumb { background: var(--gold-400); border-radius: 10px; }


/* ========================================
   PREMIUM OPENING GATE
   ======================================== */
#gate-overlay {
    position: fixed; inset: 0;
    height: 100vh; height: 100dvh;
    z-index: var(--z-gate);
    overflow: hidden;
    perspective: 1800px;
    background: url('../img/fotobg.jpeg') center center / cover no-repeat;
}

/* Overlay gelap semi-transparan agar teks terbaca jelas */
#gate-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 5, 5, 0.45) 0%,
        rgba(20, 8, 8, 0.55) 40%,
        rgba(20, 8, 8, 0.55) 60%,
        rgba(10, 5, 5, 0.45) 100%
    );
    z-index: 1;
    pointer-events: none;
}
#gate-burst-canvas { position: absolute; inset: 0; z-index: 20; pointer-events: none; }

.gate-outer-border { position: absolute; inset: 0; z-index: 30; pointer-events: none; }
.gob-corner { position: absolute; width: 70px; height: 70px; z-index: 35; filter: drop-shadow(1px 2px 4px rgba(0,0,0,0.5)); }
.gob-corner::before {
    content: ''; position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0 L100 0 Q80 20 60 20 Q40 20 20 40 Q0 60 0 100 Z' fill='none' stroke='%23E6C25A' stroke-width='2'/%3E%3Ccircle cx='5' cy='5' r='3' fill='%23FBF1C7'/%3E%3C/svg%3E");
    opacity: 0.85; background-size: contain; background-repeat: no-repeat;
}
.gob-corner.top-left { top: 10px; left: 10px; }
.gob-corner.top-right { top: 10px; right: 10px; transform: scaleX(-1); }
.gob-corner.bottom-left { bottom: 10px; left: 10px; transform: scaleY(-1); }
.gob-corner.bottom-right { bottom: 10px; right: 10px; transform: scale(-1); }

.gob-side { position: absolute; background: linear-gradient(to right, #B8860B, #E6C25A, #FBF1C7, #E6C25A, #B8860B); z-index: 32; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.4)); }
.gob-top { top: 14px; left: 95px; right: 95px; height: 1.5px; }
.gob-bottom { bottom: 14px; left: 95px; right: 95px; height: 1.5px; }
.gob-left { left: 14px; top: 95px; bottom: 95px; width: 1.5px; background: linear-gradient(to bottom, #B8860B, #E6C25A, #FBF1C7, #E6C25A, #B8860B); }
.gob-right { right: 14px; top: 95px; bottom: 95px; width: 1.5px; background: linear-gradient(to bottom, #B8860B, #E6C25A, #FBF1C7, #E6C25A, #B8860B); }

.gate-panel { position: absolute; top: 0; width: 50%; height: 100%; z-index: 3; will-change: transform; transform-style: preserve-3d; background: transparent; }
.gate-left { left: 0; transform-origin: left center; }
.gate-right { right: 0; transform-origin: right center; }

.gate-panel-inner { 
    position: relative; width: 100%; height: 100%; 
    background: transparent;
    overflow: hidden; 
}
.gate-velvet { display: none; }
.gate-velvet::after { display: none; }
.gate-noise { display: none; }
.gate-filigree { position: absolute; top: 30px; bottom: 30px; width: 1px; background: linear-gradient(180deg, transparent, rgba(212,160,23,0.25) 50%, transparent); z-index: 5; }
.gate-filigree-left { right: 8px; }
.gate-filigree-right { left: 8px; }

.gate-seam {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 2px; height: 100%;
    background: linear-gradient(180deg, transparent, rgba(212,160,23,0.5), transparent);
    z-index: 10; box-shadow: 0 0 12px rgba(212,160,23,0.15);
}

.gate-center { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; z-index: 50; pointer-events: none; padding-bottom: 16px; }
.gate-center-content { text-align: center; padding: 30px 24px; position: relative; pointer-events: auto; max-width: 420px; width: 92%; z-index: 55; background: rgba(10, 4, 4, 0.25); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); border-radius: 16px; }

.ornate-frame-top, .ornate-frame-bottom { display: flex; justify-content: center; opacity: 0; width: 100%; }
.ornate-frame-top { margin-bottom: 12px; }
.ornate-frame-bottom { margin-top: 12px; }
.ornate-frame-top svg, .ornate-frame-bottom svg { width: 220px; height: auto; }
.ornate-side { position: absolute; top: 12%; bottom: 12%; width: 14px; opacity: 0; }
.ornate-side svg { width: 100%; height: 100%; }
.ornate-side-left { left: 0; }
.ornate-side-right { right: 0; }

.gate-label {
    font-family: var(--font-heading); font-size: 0.75rem;
    letter-spacing: 5px; text-transform: uppercase;
    color: var(--gold-300); margin-bottom: 14px;
    font-weight: 500; opacity: 0;
    text-shadow: 0 1px 4px rgba(0,0,0,1), 0 2px 12px rgba(0,0,0,0.9), 0 0 20px rgba(0,0,0,0.8);
}

.gate-names {
    font-family: var(--font-body); font-size: 1.85rem; font-weight: 600;
    letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--gold-400); margin-bottom: 18px; line-height: 1.2;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.gate-name-line { display: inline-flex; justify-content: center; flex-wrap: wrap; }
.gate-letter { display: inline-block; opacity: 0; transform: translateY(25px) scale(0.6); filter: blur(6px); will-change: transform, opacity, filter; text-shadow: 0 1px 4px rgba(0,0,0,1), 0 2px 12px rgba(0,0,0,0.9), 0 0 20px rgba(0,0,0,0.8); }
.gate-amp { display: block; font-family: var(--font-heading); font-size: 1.2rem; color: var(--gold-300); opacity: 0; margin: 2px 0; font-style: italic; text-shadow: 0 1px 4px rgba(0,0,0,1), 0 2px 12px rgba(0,0,0,0.9), 0 0 20px rgba(0,0,0,0.8); }
.gate-date { font-family: var(--font-heading); font-size: 0.82rem; color: var(--gold-200); letter-spacing: 3px; margin-bottom: 18px; opacity: 0; text-shadow: 0 1px 4px rgba(0,0,0,1), 0 2px 12px rgba(0,0,0,0.9), 0 0 20px rgba(0,0,0,0.8); }
.gate-guest { margin-bottom: 24px; opacity: 0; }
.gate-guest-label { display: block; font-family: var(--font-heading); font-size: 0.72rem; color: var(--gold-200); margin-bottom: 4px; text-shadow: 0 1px 4px rgba(0,0,0,1), 0 2px 12px rgba(0,0,0,0.9), 0 0 20px rgba(0,0,0,0.8); }
.gate-guest-name { display: block; font-family: var(--font-heading); font-size: 1rem; font-weight: 600; color: var(--gold-400); letter-spacing: 1.5px; text-shadow: 0 1px 4px rgba(0,0,0,1), 0 2px 12px rgba(0,0,0,0.9), 0 0 20px rgba(0,0,0,0.8); }

.gate-btn-wrapper { position: relative; display: inline-block; opacity: 0; }
.gate-btn-frame { position: absolute; inset: -6px -10px; pointer-events: none; }
.gate-btn-frame svg { width: 100%; height: 100%; }

.gate-btn-open {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: var(--touch-comfortable); min-width: 200px;
    padding: 14px 32px; font-family: var(--font-heading); font-size: 0.76rem;
    font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase;
    color: var(--gold-400);
    background: transparent;
    border: 1.5px solid rgba(212,160,23,0.45); border-radius: var(--radius-full);
    cursor: pointer; position: relative; overflow: hidden; transition: var(--transition-base);
    box-shadow: 0 0 20px rgba(212,160,23,0.08), inset 0 1px 0 rgba(212,160,23,0.12);
    text-shadow: 0 2px 8px rgba(0,0,0,0.9), 0 0 15px rgba(0,0,0,0.7);
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.gate-btn-open:active { transform: scale(0.97); background: transparent; }
.gate-btn-icon { display: flex; align-items: center; flex-shrink: 0; }
.gate-btn-icon svg { width: 18px; height: 18px; }
.gate-btn-text { position: relative; z-index: 1; }
.gate-btn-glint {
    position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
    background: linear-gradient(105deg, transparent 30%, rgba(255,241,199,0.22) 48%, rgba(255,241,199,0.38) 50%, rgba(255,241,199,0.22) 52%, transparent 70%);
    pointer-events: none; animation: glintSweep 4s cubic-bezier(0.22,1,0.36,1) infinite; animation-delay: 1s;
}
@keyframes glintSweep { 0%, 100% { left: -120%; } 40% { left: 150%; } 40.01% { left: -120%; } }

.gate-particles { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.gate-particle { position: absolute; border-radius: 50%; pointer-events: none; }
.gate-particle.gp-glow { background: radial-gradient(circle, rgba(212,160,23,0.7), transparent 70%); box-shadow: 0 0 8px rgba(212,160,23,0.4); }
.gate-particle.gp-soft { background: radial-gradient(circle, rgba(185,39,39,0.35), transparent 70%); }
.gate-particle.gp-diamond { border-radius: 0; border: 1px solid rgba(212,160,23,0.2); background: none; }

.parallax-ornaments { position: fixed; inset: 0; z-index: 49; pointer-events: none; overflow: hidden; }
.parallax-ornaments .po-item { position: absolute; opacity: 0.05; will-change: transform; color: var(--gold-400); }


/* ========================================
   FLOATING PARTICLES
   ======================================== */
.petal-container { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.petal { position: absolute; opacity: 0.35; animation: fallingPetal linear infinite; pointer-events: none; }
.petal.gold { width: 6px; height: 6px; background: radial-gradient(ellipse, var(--gold-400), transparent 70%); border-radius: 50%; box-shadow: 0 0 5px rgba(212,160,23,0.5); }
.petal.maroon { width: 10px; height: 10px; background: radial-gradient(ellipse, var(--maroon-400), transparent 70%); border-radius: 50% 0 50% 50%; }
@keyframes fallingPetal { 0% { transform: translateY(-5%) rotate(0deg) translateX(0); opacity: 0; } 10% { opacity: 0.5; } 90% { opacity: 0.2; } 100% { transform: translateY(110vh) rotate(720deg) translateX(80px); opacity: 0; } }


/* ========================================
   MAIN CONTENT
   ======================================== */
#main-content { opacity: 0; transition: opacity 0.8s ease 0.3s; }
#main-content.visible { opacity: 1; }


/* ========================================
   SECTIONS - MOBILE FIRST BASE
   ======================================== */
section { padding: clamp(40px,8vw,80px) clamp(16px,4vw,24px); position: relative; }
.section-container { max-width: 720px; margin: 0 auto; }

.section-title {
    font-family: var(--font-display); font-size: clamp(2rem,6vw,3.2rem);
    color: var(--text-primary); text-align: center; margin-bottom: 8px;
    background: var(--gradient-shimmer); background-size: 200% auto;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    animation: goldShimmerText 5s linear infinite;
}
@keyframes goldShimmerText { 0% { background-position: 0% center; } 100% { background-position: 200% center; } }

.section-subtitle {
    font-family: var(--font-heading); font-size: clamp(0.72rem,1.6vw,0.95rem);
    color: var(--text-light); text-align: center; letter-spacing: 3px;
    text-transform: uppercase; margin-bottom: clamp(28px,6vw,50px); font-weight: 700;
}


/* ========================================
   HERO SECTION
   ======================================== */
#hero {
    min-height: 100vh; min-height: 100dvh;
    padding: 90px 20px 70px; text-align: center;
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.hero-bg-layers { display: none; }
.hero-content { position: relative; z-index: 1; width: 100%; }

/* ── Arch Frame ── */
.hero-frame-wrapper {
    position: relative; margin: 0 auto 0;
    width: clamp(280px,78vw,380px); height: clamp(390px,105vw,540px);
    z-index: 5;
}

.butterfly { position: absolute; width: clamp(38px,10vw,64px); height: clamp(38px,10vw,64px); z-index: 10; filter: drop-shadow(0 3px 12px rgba(139,26,26,0.15)); }
.butterfly.b-left { top: 15%; left: clamp(-52px,-12vw,-74px); animation: flutter 4s ease-in-out infinite alternate; }
.butterfly.b-right { top: 45%; right: clamp(-52px,-12vw,-74px); transform: scaleX(-1); animation: flutter 4s ease-in-out infinite alternate-reverse; }
@keyframes flutter { 0% { transform: scale(1) rotate(-4deg) translateY(0); } 100% { transform: scale(1.08) rotate(4deg) translateY(-8px); } }

/* Double border arch seperti referensi */
.arch-frame-outer {
    width: 100%; height: 100%;
    border: 2.5px solid var(--maroon-600);
    border-radius: clamp(155px,43vw,215px) clamp(155px,43vw,215px) 0 0;
    padding: 7px;
    position: relative;
    box-shadow: 0 12px 40px rgba(107,17,21,0.18), 0 4px 16px rgba(107,17,21,0.10);
    background: rgba(255,255,255,0.15);
}
/* Inner border tipis */
.arch-frame-outer::before {
    content: '';
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(139,26,26,0.3);
    border-radius: clamp(150px,41vw,210px) clamp(150px,41vw,210px) 0 0;
    pointer-events: none;
    z-index: 2;
}
/* Gold corner accent kiri */
.arch-frame-outer::after {
    content: '';
    position: absolute;
    bottom: -1px; left: -1px; right: -1px;
    height: 6px;
    background: linear-gradient(90deg, var(--gold-400), var(--gold-200), var(--gold-400));
    z-index: 3;
}
.arch-frame-inner {
    width: 100%; height: 100%;
    border-radius: clamp(148px,40vw,208px) clamp(148px,40vw,208px) 0 0;
    overflow: hidden; position: relative;
}
.arch-frame-inner .couple-photo-placeholder {
    width: 100%; height: 100%;
    background-size: cover; background-position: center top;
    filter: brightness(1.02) contrast(1.02) saturate(1.08);
}

/* ── Hero Text Bridge ── */
.hero-text-bridge {
    margin-top: 0;
    padding: 20px 16px 10px;
    position: relative;
    text-align: center;
}
/* Ornamen garis emas di atas teks */
.hero-text-bridge::before {
    content: '';
    display: block;
    width: 60px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
    margin: 0 auto 14px;
}

.hero-wedding-label {
    font-family: var(--font-heading);
    font-size: clamp(0.65rem,1.6vw,0.82rem);
    letter-spacing: 5px; text-transform: uppercase;
    color: var(--maroon-500); margin-bottom: 4px; opacity: 0.75;
    font-weight: 700;
}

.hero-main-names {
    font-family: var(--font-display);
    font-size: clamp(2.6rem,8vw,5rem);
    color: var(--maroon-600); margin: 4px 0 8px; line-height: 1.1;
}
.hero-main-names .name-g,
.hero-main-names .name-b {
    display: block;
}
.hero-main-names .amp {
    font-family: var(--font-heading);
    font-size: clamp(2rem,5vw,3.5rem);
    color: var(--gold-500); display: block;
    margin: 2px 0; font-style: italic; font-weight: 400;
}

/* Tanggal dengan ornamen */
.hero-main-date {
    display: flex; align-items: center; justify-content: center;
    gap: 10px; margin-top: 10px;
}
.hero-main-date span {
    flex: 1; max-width: 50px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-400));
}
.hero-main-date span:last-child {
    background: linear-gradient(90deg, var(--gold-400), transparent);
}
.hero-main-date p {
    font-family: var(--font-heading);
    font-size: clamp(0.72rem,1.8vw,0.88rem);
    color: var(--maroon-700); letter-spacing: 3px;
    background: rgba(212,160,23,0.08);
    padding: 5px 14px; border-radius: 20px;
    border: 1px solid rgba(212,160,23,0.2);
}

.scroll-down { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text-light); font-size: 0.68rem; letter-spacing: 2px; text-transform: uppercase; animation: bounceDown 2.5s ease-in-out infinite; }
.scroll-down .arrow { width: 16px; height: 16px; border-right: 2px solid var(--gold-400); border-bottom: 2px solid var(--gold-400); transform: rotate(45deg); }
@keyframes bounceDown { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }


/* ========================================
   AYAT / QURAN VERSE
   ======================================== */
#ayat { background: transparent; text-align: center; position: relative; padding: clamp(32px,7vw,56px) 20px; }
#ayat .section-bg { display: none; }
#ayat .section-container { position: relative; z-index: 1; }

.ayat-box {
    max-width: 520px; margin: 0 auto;
    padding: clamp(32px,7vw,48px) clamp(24px,5vw,40px);
    background: transparent;
    border-radius: 4px;
    border: 1px solid rgba(212,160,23,0.35);
    box-shadow:
        0 2px 0 rgba(212,160,23,0.35),
        0 -2px 0 rgba(212,160,23,0.35),
        3px 0 0 rgba(212,160,23,0.2),
        -3px 0 0 rgba(212,160,23,0.2);
    position: relative;
    overflow: hidden;
}

/* Corner ornaments */
.ayat-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        radial-gradient(circle at 0% 0%, rgba(212,160,23,0.12) 0%, transparent 40%),
        radial-gradient(circle at 100% 0%, rgba(212,160,23,0.12) 0%, transparent 40%),
        radial-gradient(circle at 0% 100%, rgba(212,160,23,0.12) 0%, transparent 40%),
        radial-gradient(circle at 100% 100%, rgba(212,160,23,0.12) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

/* Corner bracket decorations */
.ayat-box::after {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(212,160,23,0.15);
    border-radius: 2px;
    pointer-events: none;
    z-index: 0;
}

/* Bismillah ornament top */
.ayat-bismillah {
    font-family: var(--font-arabic);
    font-size: clamp(1.1rem,3vw,1.4rem);
    color: var(--gold-500);
    margin-bottom: 16px;
    opacity: 0.7;
    position: relative; z-index: 1;
}

/* Gold divider line */
.ayat-divider {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; margin: 16px auto;
    position: relative; z-index: 1;
}
.ayat-divider::before, .ayat-divider::after {
    content: '';
    flex: 1; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212,160,23,0.5));
}
.ayat-divider::after {
    background: linear-gradient(90deg, rgba(212,160,23,0.5), transparent);
}
.ayat-divider span {
    width: 6px; height: 6px;
    background: var(--gold-400);
    transform: rotate(45deg);
    flex-shrink: 0;
}

.ayat-arab {
    font-size: clamp(1.25rem,3.2vw,1.7rem);
    color: var(--maroon-500);
    line-height: 2.2; margin-bottom: 0;
    direction: rtl; font-family: var(--font-arabic);
    font-weight: 700;
    position: relative; z-index: 1;
    text-shadow: 0 1px 2px rgba(107,17,21,0.08);
}

.ayat-terjemah {
    font-family: var(--font-heading);
    font-size: clamp(0.78rem,1.8vw,0.95rem);
    color: var(--maroon-700);
    font-style: italic;
    font-weight: 600;
    line-height: 2;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative; z-index: 1;
}

.ayat-sumber {
    font-family: var(--font-heading);
    font-size: clamp(0.78rem,1.8vw,0.9rem);
    color: var(--gold-500);
    font-weight: 700; letter-spacing: 2px;
    position: relative; z-index: 1;
    display: inline-flex; align-items: center; gap: 8px;
}
.ayat-sumber::before, .ayat-sumber::after {
    content: '—';
    color: var(--gold-400);
}


/* Gonjong Separator */
.gonjong-separator { text-align: center; padding: 16px 0; position: relative; background: transparent !important; }
.gonjong-separator::before { content: ''; position: absolute; top: 50%; left: 8%; right: 8%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-400), transparent); opacity: 0.25; }
.gonjong-separator svg { position: relative; z-index: 1; }

/* Ornament Separator */
.ornament-separator {
    text-align: center;
    padding: 8px 0 16px;
    position: relative;
    z-index: 5;
    background: transparent;
}
.ornament-separator svg { display: block; margin: 0 auto; max-width: 400px; }

/* Ornament Separator Full width */
.ornament-separator-full {
    text-align: center;
    padding: 4px 0;
    position: relative;
    z-index: 5;
    background: transparent;
}
.ornament-separator-full svg { display: block; margin: 0 auto; max-width: 560px; }


/* ========================================
   COUPLE / MEMPELAI
   ======================================== */
#couple { background: transparent; position: relative; padding: clamp(32px,7vw,56px) 16px; }
#couple .section-bg { display: none; }
#couple .section-container { position: relative; z-index: 1; }

/* ── Main Card ── */
.couple-main-card {
    background: rgba(255, 253, 245, 0.70);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: clamp(28px,6vw,44px) clamp(16px,4vw,28px);
    position: relative;
    box-shadow: 0 8px 40px rgba(107,17,21,0.10), 0 2px 12px rgba(107,17,21,0.06);
    max-width: 460px; margin: 0 auto; overflow: hidden;
    border: 1.5px solid rgba(212,160,23,0.18);
}
/* Gold shimmer top border */
.couple-main-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-400), var(--gold-200), var(--gold-400), transparent);
    border-radius: 24px 24px 0 0;
}
.card-bg-sketch { position: absolute; top: 50%; left: 50%; width: 140%; height: 100%; background-image: url('../img/cover_bg.png'); background-size: contain; background-repeat: no-repeat; background-position: center; opacity: 0.03; transform: translate(-50%,-50%); pointer-events: none; filter: sepia(1); }
.card-content { position: relative; z-index: 2; text-align: center; }

/* ── Card Header ── */
.card-header { margin-bottom: clamp(24px,5vw,36px); }
.card-title {
    font-family: var(--font-display);
    font-size: clamp(2rem,6vw,3rem);
    color: var(--maroon-600); margin-bottom: 10px; font-weight: 400; line-height: 1.1;
}
.card-greeting {
    font-family: var(--font-heading); font-size: clamp(0.82rem,2vw,0.95rem);
    color: var(--text-secondary); font-style: italic; margin-bottom: 10px; font-weight: 600;
}
.card-islamic-text {
    font-size: clamp(0.8rem,1.8vw,0.92rem); color: var(--text-muted);
    line-height: 1.85; padding: 0 8px; font-weight: 500;
}

/* ── Couple Person Card ── */
.couple-person {
    background: rgba(255,255,255,0.50);
    border-radius: 20px;
    padding: clamp(20px,5vw,28px) clamp(16px,4vw,24px);
    margin-bottom: 16px;
    border: 1px solid rgba(212,160,23,0.15);
    box-shadow: 0 4px 20px rgba(107,17,21,0.06);
    position: relative;
    overflow: hidden;
}
.couple-person::before {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-300), transparent);
}
.couple-person.groom::after {
    content: '♂';
    position: absolute; top: 12px; right: 14px;
    font-size: 1rem; color: var(--maroon-200); opacity: 0.4;
}
.couple-person.bride::after {
    content: '♀';
    position: absolute; top: 12px; right: 14px;
    font-size: 1rem; color: var(--rose-soft); opacity: 0.5;
}

/* ── Photo Frame ── */
.person-photo-arch {
    width: clamp(150px,40vw,190px);
    height: clamp(210px,56vw,270px);
    margin: 0 auto 18px;
}
.photo-frame-outer {
    width: 100%; height: 100%;
    border-radius: 999px;
    padding: 4px;
    background: linear-gradient(135deg, var(--gold-400), var(--gold-200), var(--maroon-400), var(--gold-400));
    box-shadow: 0 6px 24px rgba(107,17,21,0.18), 0 0 0 3px rgba(212,160,23,0.12);
}
.photo-frame-inner {
    width: 100%; height: 100%;
    border-radius: 999px;
    overflow: hidden;
    background: #fdf6e3;
    border: 3px solid rgba(255,255,255,0.8);
}
.photo-frame-inner img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.photo-frame-inner .couple-photo-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: clamp(3rem,8vw,5rem); color: var(--maroon-600); background: rgba(139,26,26,0.04); }

/* ── Person Info ── */
.person-name {
    font-family: var(--font-display);
    font-size: clamp(1.6rem,4.5vw,2.4rem);
    color: var(--maroon-600); margin-bottom: 6px; line-height: 1.2;
}
.person-info {
    font-family: var(--font-heading);
    font-size: clamp(0.78rem,1.8vw,0.9rem);
    color: var(--text-secondary); margin-bottom: 16px;
    padding: 8px 12px;
    background: rgba(212,160,23,0.06);
    border-radius: 10px;
    border: 1px solid rgba(212,160,23,0.1);
    line-height: 1.7;
    font-weight: 600;
}

.btn-instagram-pill {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: var(--touch-min); padding: 10px 22px;
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
    color: var(--white); text-decoration: none;
    border-radius: var(--radius-full); font-family: var(--font-body); font-size: 0.82rem; font-weight: 600;
    transition: var(--transition-fast); box-shadow: 0 4px 15px rgba(131,58,180,0.3);
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn-instagram-pill:active { transform: scale(0.96); opacity: 0.9; }
.btn-instagram-pill svg { width: 17px; height: 17px; flex-shrink: 0; }

/* ── Ampersand Divider ── */
.ampersand-divider {
    display: flex; align-items: center; justify-content: center;
    gap: 14px; margin: 8px 0;
}
.ampersand-divider .line {
    height: 1px; flex-grow: 1; max-width: 60px;
    background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
}
.ampersand-divider .amp {
    font-family: var(--font-display);
    font-size: clamp(2rem,5vw,3rem);
    color: var(--gold-500); font-weight: 400; line-height: 1;
}

.hanging-ornament { position: absolute; width: 50px; height: 50px; z-index: 5; pointer-events: none; filter: drop-shadow(0 3px 10px rgba(139,26,26,0.15)); opacity: 0.6; }
.hanging-ornament svg { width: 100%; height: 100%; }
.hanging-ornament.left { top: -16px; left: -16px; transform: rotate(5deg); animation: swaying 6s ease-in-out infinite alternate; }
.hanging-ornament.right { top: -16px; right: -16px; transform: scaleX(-1) rotate(5deg); animation: swaying 6.5s ease-in-out infinite alternate-reverse; }
@keyframes swaying { 0% { transform: rotate(5deg) translateY(0); } 100% { transform: rotate(-3deg) translateY(-6px); } }

/* Minang divider */
.minang-divider { text-align: center; padding: 12px 0; position: relative; }
.minang-divider svg { width: clamp(140px,38vw,200px); height: auto; opacity: 0.5; }

/* ========================================
   COUNTDOWN
/* ========================================
   COUNTDOWN
   ======================================== */
#countdown {
    padding: clamp(24px,6vw,48px) 20px; text-align: center;
    position: relative; overflow: hidden; background: transparent;
    margin-top: -20px; z-index: 1;
}
.countdown-premium-bg { display: none; }
.countdown-arch-outer { max-width: 480px; margin: 0 auto; position: relative; z-index: 2; }

/* Card utama — champagne gold seperti referensi */
.countdown-arch-inner {
    padding: clamp(28px,6vw,40px) clamp(20px,5vw,36px) clamp(24px,5vw,36px);
    border-radius: 24px;
    background: linear-gradient(145deg,
        rgba(245,230,163,0.72) 0%,
        rgba(240,217,122,0.72) 20%,
        rgba(247,238,188,0.72) 50%,
        rgba(240,217,122,0.72) 80%,
        rgba(232,204,90,0.72) 100%
    );
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    position: relative;
    box-shadow:
        0 20px 60px rgba(107,17,21,0.10),
        0 4px 16px rgba(107,17,21,0.08),
        inset 0 1px 0 rgba(255,255,255,0.5),
        inset 0 -2px 0 rgba(184,134,11,0.2);
    overflow: hidden;
}

/* Shimmer overlay */
.countdown-arch-inner::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.45) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 80%, rgba(255,255,255,0.2) 0%, transparent 50%);
    pointer-events: none; z-index: 0;
    border-radius: inherit;
}

/* Inner border tipis */
.countdown-arch-inner::after {
    content: '';
    position: absolute; inset: 8px;
    border: 1px solid rgba(184,134,11,0.25);
    border-radius: 18px;
    pointer-events: none; z-index: 0;
}

.premium-filigree { display: none; }

/* Judul "Save The Date" */
.countdown-title-premium {
    font-family: var(--font-display);
    font-size: clamp(2.2rem,7vw,4rem);
    color: var(--maroon-700);
    margin-bottom: clamp(20px,4vw,32px);
    position: relative; z-index: 1;
    display: block;
    text-shadow:
        0 1px 0 rgba(255,255,255,0.4),
        0 2px 8px rgba(107,17,21,0.15);
    line-height: 1.1;
}

/* Grid countdown */
.countdown-wrapper-premium {
    display: grid; grid-template-columns: repeat(4,1fr);
    gap: clamp(8px,2.5vw,14px);
    padding: 0 4px;
    position: relative; z-index: 1;
}
.countdown-item-premium { display: flex; flex-direction: column; align-items: center; gap: 0; }

/* Kotak angka — merah maroon gelap seperti referensi */
.countdown-box {
    width: 100%;
    aspect-ratio: 1;
    max-width: clamp(68px,19vw,88px);
    background: linear-gradient(160deg, var(--maroon-600) 0%, var(--maroon-800) 50%, var(--maroon-900) 100%);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    box-shadow:
        0 8px 24px rgba(45,10,10,0.45),
        0 2px 6px rgba(45,10,10,0.3),
        inset 0 1px 0 rgba(255,255,255,0.08),
        inset 0 -2px 0 rgba(0,0,0,0.2);
    border: 1px solid rgba(139,26,26,0.5);
    overflow: hidden;
}
/* Highlight atas kotak */
.countdown-box::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 45%;
    background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 100%);
    border-radius: 14px 14px 0 0;
    pointer-events: none;
}
/* Inner border tipis */
.countdown-box::after {
    content: '';
    position: absolute; inset: 4px;
    border: 0.5px solid rgba(230,194,90,0.2);
    border-radius: 10px;
    pointer-events: none;
}

.countdown-number {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem,5vw,2.8rem);
    font-weight: 700; color: #FFF; line-height: 1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    position: relative; z-index: 1;
}

.countdown-label-premium {
    margin-top: 8px;
    font-family: var(--font-heading);
    font-size: clamp(0.58rem,1.5vw,0.78rem);
    color: var(--maroon-800);
    text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700;
    opacity: 0.75;
}

#event .section-title, #lovestory .section-title, #gallery .section-title,
#rsvp .section-title, #wishes .section-title, #gift .section-title {
    background: none; -webkit-text-fill-color: var(--maroon-700); color: var(--maroon-700);
}


/* ========================================
   EVENT / ACARA
   ======================================== */
#event { background: transparent; position: relative; }
#event .section-bg { display: none; }
#event .section-container { position: relative; z-index: 1; }

.event-grid-pill {
    display: flex; flex-direction: column;
    gap: clamp(20px,5vw,32px);
    align-items: center; padding: 8px 0;
}
.event-card-pill { width: 100%; max-width: 400px; position: relative; }

/* ── Card Outer — border emas gradient ── */
.pill-outer {
    border-radius: 24px;
    padding: 3px;
    background: linear-gradient(145deg, #CFB53B, #F5DEB3, #E6C25A, #B8860B, #F5DEB3, #CFB53B);
    box-shadow: 0 16px 48px rgba(107,17,21,0.14), 0 4px 16px rgba(107,17,21,0.08);
    position: relative; overflow: hidden;
    min-height: unset;
}
.pill-pattern-overlay { display: none; }

/* ── Card Inner ── */
.pill-content-arch {
    background: rgba(255, 253, 245, 0.70);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-radius: 22px;
    min-height: unset; height: auto;
    position: relative; z-index: 2;
    display: flex; align-items: center; justify-content: center;
    padding: clamp(28px,6vw,40px) clamp(20px,5vw,32px);
    overflow: hidden;
}

/* Background watermark */
.pill-content-arch::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(212,160,23,0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 50% 100%, rgba(139,26,26,0.04) 0%, transparent 60%);
    pointer-events: none;
}

/* Garis emas atas */
.pill-content-arch::after {
    content: '';
    position: absolute; top: 0; left: 15%; right: 15%; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(212,160,23,0.4), transparent);
    pointer-events: none;
}

.pill-inner-ornament { display: none; }

.pill-body { text-align: center; width: 100%; position: relative; z-index: 3; }

/* Badge label akad/resepsi */
.event-card-pill.akad .pill-outer { background: linear-gradient(145deg, #8B1A1A, #C4728D, #8B1A1A, #6B1115); }
.event-card-pill.resepsi .pill-outer { background: linear-gradient(145deg, #B8860B, #F5DEB3, #D4A017, #8B6914); }

/* Icon hati */
.pill-heart {
    width: 52px; height: 52px;
    margin: 0 auto 12px;
    color: #fff;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(107,17,21,0.25);
    animation: pulseHeart 2.2s infinite;
}
.pill-heart svg { width: 26px; height: 26px; }
@keyframes pulseHeart { 0%, 100% { transform: scale(1); box-shadow: 0 4px 16px rgba(107,17,21,0.25); } 50% { transform: scale(1.08); box-shadow: 0 6px 20px rgba(107,17,21,0.35); } }

/* Judul */
.pill-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem,5vw,2.6rem);
    color: var(--maroon-600); margin-bottom: 14px; font-weight: 400; line-height: 1.1;
}

/* Divider ornamen kecil */
.pill-divider {
    display: flex; align-items: center; justify-content: center;
    gap: 6px; margin: 10px auto 14px;
}
.pill-divider::before, .pill-divider::after {
    content: ''; flex: 1; max-width: 50px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212,160,23,0.5));
}
.pill-divider::after { background: linear-gradient(90deg, rgba(212,160,23,0.5), transparent); }
.pill-divider span { width: 5px; height: 5px; background: var(--gold-400); transform: rotate(45deg); flex-shrink: 0; }

/* Tanggal */
.pill-date {
    font-family: var(--font-heading);
    font-size: clamp(0.88rem,2.2vw,1.05rem);
    color: var(--maroon-700); margin-bottom: 4px; font-weight: 700;
    background: rgba(212,160,23,0.08);
    padding: 6px 16px; border-radius: 20px;
    display: inline-block;
    border: 1px solid rgba(212,160,23,0.2);
}

/* Waktu */
.pill-time {
    font-family: var(--font-heading);
    font-size: clamp(0.78rem,1.8vw,0.92rem);
    color: var(--text-secondary); margin: 8px 0 20px; font-style: italic; font-weight: 600;
}

/* Garis pemisah lokasi */
.pill-loc-divider {
    width: 40px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
    margin: 0 auto 16px;
}

/* Icon lokasi */
.pill-loc-icon {
    width: 36px; height: 36px; margin: 0 auto 10px;
    color: var(--maroon-600);
    background: rgba(139,26,26,0.06);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(139,26,26,0.12);
}
.pill-loc-icon svg { width: 20px; height: 20px; }

/* Nama tempat */
.pill-loc-name {
    font-family: var(--font-heading);
    font-size: clamp(0.9rem,2.2vw,1.08rem);
    color: var(--maroon-600); font-weight: 700; margin-bottom: 8px;
    text-transform: uppercase; letter-spacing: 0.5px;
}

/* Alamat */
.pill-address {
    font-size: clamp(0.8rem,1.8vw,0.92rem);
    color: var(--text-secondary); line-height: 1.7;
    margin-bottom: 20px; padding: 8px 12px;
    background: rgba(212,160,23,0.05);
    border-radius: 10px;
    border: 1px solid rgba(212,160,23,0.1);
    font-weight: 600;
}

/* Tombol maps */
.btn-pill-maps {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: var(--touch-min); padding: 11px 24px;
    background: var(--gradient-primary); color: var(--white); text-decoration: none;
    border-radius: var(--radius-full); font-family: var(--font-heading); font-size: 0.82rem;
    font-weight: 600; letter-spacing: 0.5px; transition: var(--transition-fast);
    box-shadow: 0 4px 16px rgba(107,17,21,0.25);
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn-pill-maps:active { transform: scale(0.96); opacity: 0.9; }
.btn-pill-maps svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }


/* ========================================
   LOVE STORY TIMELINE
   ======================================== */
#lovestory { background: transparent; position: relative; padding: clamp(32px,7vw,56px) 16px; }
#lovestory .section-bg { display: none; }
#lovestory .section-container { position: relative; z-index: 1; }

/* ── Foto tunggal di atas ── */
.lovestory-photo {
    width: 100%; max-width: 480px;
    margin: 0 auto 36px;
    border-radius: 18px; overflow: hidden;
    box-shadow: 0 12px 40px rgba(107,17,21,0.18);
    border: 3px solid rgba(212,160,23,0.3);
    position: relative;
    background: #f5ede0;
}
.lovestory-photo img {
    width: 100%; height: clamp(280px, 75vw, 400px);
    object-fit: cover; object-position: center top;
    display: block;
}
.lovestory-photo::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0; height: 80px;
    background: linear-gradient(to bottom, transparent, rgba(139,26,26,0.12));
    pointer-events: none;
}

/* ── Timeline container ── */
.timeline {
    position: relative;
    max-width: 480px; margin: 0 auto;
    display: flex; flex-direction: column; gap: 0;
}

/* ── Item ── */
.timeline-item {
    position: relative;
    padding: 20px 8px 28px;
    text-align: center;
    z-index: 1;
}
/* Garis vertikal penghubung antar item */
.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%; transform: translateX(-50%);
    width: 1px; height: 28px;
    background: linear-gradient(to bottom, rgba(212,160,23,0.5), transparent);
}
.timeline-item::before { display: none; }

/* ── Label judul ── */
.timeline-date {
    font-family: var(--font-heading);
    font-size: clamp(0.75rem, 2vw, 0.88rem);
    color: var(--gold-500);
    letter-spacing: 3px; font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: flex; align-items: center; justify-content: center; gap: 10px;
}
.timeline-date::before, .timeline-date::after {
    content: ''; width: 28px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-400));
}
.timeline-date::after { background: linear-gradient(90deg, var(--gold-400), transparent); }

/* ── Teks cerita ── */
.timeline-desc {
    font-family: var(--font-heading);
    font-size: clamp(0.88rem, 2.2vw, 1rem);
    color: var(--maroon-700);
    line-height: 2; text-align: center;
    padding: 0 4px; font-style: italic;
    font-weight: 600;
}

.timeline-title { display: none; }
.timeline-content { width: 100%; }
.timeline-photo { display: none; }


/* ========================================
   GALLERY - RESPONSIVE GRID + LIGHTBOX
   ======================================== */
/* ========================================
   GALLERY - RESPONSIVE GRID + LIGHTBOX
   ======================================== */
#gallery { background: transparent; position: relative; }
#gallery .section-bg { display: none; }
#gallery .section-container { position: relative; z-index: 1; }

/* ── Gallery Grid ── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-width: 520px;
    margin: 0 auto;
}

/* ── Gallery Item ── */
.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(107,17,21,0.14), 0 0 0 2px rgba(212,160,23,0.2);
    transition: var(--transition-base);
    border: 2px solid rgba(212,160,23,0.25);
    -webkit-tap-highlight-color: transparent;
    background: rgba(255,248,231,0.3);
}

/* Item pertama — lebih besar */
.gallery-item:first-child {
    grid-column: span 2;
    height: clamp(200px, 55vw, 280px);
}

/* Item lainnya — tinggi fleksibel */
.gallery-item:not(:first-child) {
    height: clamp(140px, 40vw, 180px);
}

.gallery-item:active { transform: scale(0.97); }

/* ── Foto ── */
.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.6s ease;
    display: block;
}
.gallery-item:active img { transform: scale(1.06); }

/* ── Overlay gelap + teks saat disentuh ── */
.gallery-item::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(139,26,26,0.0) 0%,
        rgba(139,26,26,0.55) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

/* ── Border emas animasi ── */
.gallery-item::after {
    content: '';
    position: absolute; inset: 0;
    border: 2px solid rgba(212,160,23,0);
    border-radius: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.gallery-item:active::before { opacity: 1; }
.gallery-item:active::after {
    border-color: rgba(212,160,23,0.7);
    box-shadow: inset 0 0 16px rgba(212,160,23,0.15);
}

/* ── Label nomor foto ── */
.gallery-item .gallery-num {
    position: absolute;
    bottom: 10px; right: 12px;
    font-family: var(--font-heading);
    font-size: 0.65rem; font-weight: 700;
    color: rgba(255,255,255,0.85);
    letter-spacing: 1px;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.gallery-item:active .gallery-num { opacity: 1; }

.gallery-placeholder { display: none; }
.gp-cover, .gp-moment, .gp-ring, .gp-floral, .gp-story { display: none; }

/* Lightbox */
.lightbox-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.92);
    z-index: calc(var(--z-modal) + 1); display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: var(--transition-base);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.lightbox-overlay.active { opacity: 1; visibility: visible; }
.lightbox-overlay img {
    max-width: 92vw; max-height: 85vh; object-fit: contain;
    border-radius: var(--radius-lg); box-shadow: var(--shadow-xl);
    transform: scale(0.9); transition: transform 0.4s var(--ease-out-expo);
}
.lightbox-overlay.active img { transform: scale(1); }
.lightbox-close {
    position: absolute; top: 20px; right: 20px;
    width: var(--touch-min); height: var(--touch-min);
    background: rgba(255,255,255,0.15); border: 1.5px solid rgba(255,255,255,0.25);
    border-radius: 50%; color: white; font-size: 1.4rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition-fast); -webkit-tap-highlight-color: transparent; z-index: 10;
}
.lightbox-close:active { background: rgba(255,255,255,0.25); transform: scale(0.93); }


/* ========================================
/* ========================================
   RSVP - TOUCH FRIENDLY
   ======================================== */
#rsvp { background: transparent; position: relative; }
#rsvp .section-bg { display: none; }
#rsvp .section-container { position: relative; z-index: 1; }

/* ── Card form utama ── */
.rsvp-form {
    max-width: 440px; margin: 0 auto;
    padding: clamp(28px,6vw,40px) clamp(20px,5vw,32px);
    background: rgba(255, 253, 245, 0.70);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 1px solid rgba(212,160,23,0.2);
    box-shadow: 0 16px 48px rgba(107,17,21,0.10), 0 4px 16px rgba(107,17,21,0.06);
    position: relative; overflow: hidden;
}
/* Shimmer top border */
.rsvp-form::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-400), var(--gold-200), var(--gold-400), transparent);
    border-radius: 24px 24px 0 0;
}

/* ── Intro text ── */
.rsvp-intro {
    font-family: var(--font-heading);
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.8;
    margin-bottom: 24px;
    padding: 12px 16px;
    background: rgba(212,160,23,0.06);
    border-radius: 12px;
    border: 1px solid rgba(212,160,23,0.12);
    font-weight: 600;
}
.rsvp-intro strong { color: var(--maroon-600); }

/* ── Form group ── */
.form-group { margin-bottom: 20px; }
.form-group > label {
    display: flex; align-items: center; gap: 8px;
    font-family: var(--font-heading); font-size: 0.85rem;
    color: var(--maroon-700); margin-bottom: 10px; font-weight: 700;
}
.form-icon { font-size: 1rem; }

/* ── Input & Select ── */
.form-group input, .form-group select, .form-group textarea {
    width: 100%; min-height: var(--touch-min); padding: 13px 16px;
    font-family: var(--font-body); font-size: 0.92rem; color: var(--text-primary);
    background: rgba(255,255,255,0.95);
    border: 1.5px solid rgba(212,160,23,0.25);
    border-radius: 14px; outline: none; transition: var(--transition-fast);
    -webkit-appearance: none; appearance: none;
    box-shadow: 0 2px 8px rgba(107,17,21,0.04);
    font-weight: 600;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--gold-400);
    box-shadow: 0 0 0 4px rgba(212,160,23,0.12), 0 2px 8px rgba(107,17,21,0.06);
}
.form-group input::placeholder { color: var(--text-light); }
.form-group textarea { resize: vertical; min-height: 90px; }
.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%238B7365'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}

/* ── Radio group ── */
.radio-group { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.radio-option input[type="radio"] { display: none; }
.radio-option label {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    min-height: 64px; padding: 10px 6px;
    background: rgba(255,255,255,0.95);
    border: 1.5px solid rgba(212,160,23,0.2);
    border-radius: 14px; cursor: pointer; transition: var(--transition-fast);
    font-family: var(--font-heading); font-size: 0.75rem; text-align: center; font-weight: 700;
    color: var(--text-secondary);
    box-shadow: 0 2px 8px rgba(107,17,21,0.04);
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.radio-icon {
    font-size: 1.1rem; font-weight: 700;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: rgba(212,160,23,0.1);
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition-fast);
}
.radio-option label:active { transform: scale(0.96); }
.radio-option input[type="radio"]:checked + label {
    background: linear-gradient(135deg, var(--maroon-700), var(--maroon-500));
    border-color: var(--maroon-400); color: #fff;
    box-shadow: 0 6px 20px rgba(139,26,26,0.3);
}
.radio-option input[type="radio"]:checked + label .radio-icon {
    background: rgba(255,255,255,0.2);
}

/* ── Submit button ── */
.btn-submit {
    width: 100%; min-height: var(--touch-comfortable); padding: 15px 24px;
    font-family: var(--font-heading); font-size: 0.88rem; font-weight: 600;
    letter-spacing: 2px; text-transform: uppercase; color: #fff;
    background: linear-gradient(135deg, var(--maroon-700) 0%, var(--maroon-500) 50%, var(--rose-deep) 100%);
    border: none; border-radius: var(--radius-full);
    cursor: pointer; transition: var(--transition-base);
    box-shadow: 0 8px 24px rgba(139,26,26,0.3);
    margin-top: 8px; position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn-submit::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}
.btn-submit:active { transform: scale(0.98) translateY(1px); box-shadow: var(--shadow-sm); }
.btn-submit:active::before { left: 100%; }
.btn-submit:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-submit.success-state { background: linear-gradient(135deg, #2D5A42 0%, #4A8060 100%); }


/* ========================================
   WISHES / UCAPAN
   ======================================== */
#wishes { background: transparent; position: relative; }
#wishes .section-bg { display: none; }
#wishes .section-container { position: relative; z-index: 1; }
.wishes-form {
    max-width: 460px; margin: 0 auto 32px; padding: clamp(24px,5vw,32px) clamp(18px,4vw,26px);
    background: rgba(255,248,231,0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg); border: 1.5px solid rgba(212,160,23,0.18); box-shadow: var(--shadow-sm);
}
.wishes-list { max-width: 460px; margin: 0 auto; max-height: 420px; overflow-y: auto; padding-right: 8px; -webkit-overflow-scrolling: touch; }
.wishes-list::-webkit-scrollbar { width: 4px; }
.wishes-list::-webkit-scrollbar-thumb { background: var(--gold-300); border-radius: 10px; }
.wish-item {
    padding: clamp(14px,3.5vw,18px); margin-bottom: 12px;
    background: rgba(255,248,231,0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-md); border: 1px solid rgba(212,160,23,0.1);
    box-shadow: var(--shadow-xs); transition: var(--transition-fast); animation: fadeInUp 0.5s ease forwards;
}
.wish-item:active { transform: translateY(-1px); border-color: rgba(212,160,23,0.22); }
.wish-name { font-family: var(--font-heading); font-size: clamp(0.88rem,2.2vw,1.05rem); font-weight: 600; color: var(--maroon-400); margin-bottom: 4px; }
.wish-time { font-size: 0.72rem; color: var(--text-light); margin-bottom: 8px; }
.wish-message { font-size: clamp(0.82rem,2vw,0.92rem); color: var(--text-secondary); line-height: 1.7; }


/* ========================================
   GIFT / HADIAH
   ======================================== */
#gift { background: transparent; text-align: center; position: relative; }
#gift .section-bg { display: none; }
#gift .section-container { position: relative; z-index: 1; }
.gift-intro { font-family: var(--font-heading); font-size: clamp(0.88rem,2vw,1rem); color: var(--text-secondary); max-width: 460px; margin: -20px auto 30px; line-height: 1.8; text-align: center; font-weight: 600; }
.gift-cards { display: flex; flex-direction: column; gap: 28px; align-items: center; padding: 16px 0; }

/* ── Bank Card Base ── */
.gift-card {
    position: relative;
    min-width: 300px; max-width: 360px; width: 92%;
    height: 200px;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 6px 20px rgba(0,0,0,0.2);
    transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), box-shadow 0.35s ease;
    animation: floatCard 6s ease-in-out infinite;
    -webkit-tap-highlight-color: transparent;
    text-align: left;
}
.gift-card:nth-child(even) { animation-delay: -3s; }
.gift-card:active { transform: scale(0.97) translateY(-4px); animation-play-state: paused; }
@keyframes floatCard { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ── BRI Card 1 (Alkifli) ── */
.gift-card.bri-1 {
    background: linear-gradient(135deg, #003087 0%, #0052cc 45%, #1a6fd4 70%, #0041a8 100%);
}
/* ── BRI Card 2 (Dilla) ── */
.gift-card.bri-2 {
    background: linear-gradient(135deg, #1a0533 0%, #3d0f6e 45%, #5c1a9e 70%, #2d0a55 100%);
}

/* ── Decorative circles ── */
.gift-card::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    z-index: 1;
    pointer-events: none;
}
.gift-card::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -40px;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    z-index: 1;
    pointer-events: none;
}

/* ── Card Inner Layout ── */
.gift-card-inner {
    position: relative;
    width: 100%; height: 100%;
    padding: 20px 22px 16px;
    display: flex; flex-direction: column; justify-content: space-between;
    z-index: 2;
}

/* ── Card Top Row ── */
.gift-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}
.gift-bank {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 800;
    color: rgba(255,255,255,0.9);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
}
.gift-bank-abbr {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 3px;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* ── Chip ── */
.gift-chip {
    width: 40px; height: 30px;
    border-radius: 5px;
    background: linear-gradient(135deg, #e6c25a 0%, #f5deb3 40%, #d4a017 60%, #b8860b 100%);
    box-shadow: 0 2px 6px rgba(0,0,0,0.35);
    position: relative;
    flex-shrink: 0;
}
.gift-chip::before {
    content: '';
    position: absolute;
    top: 50%; left: 0; right: 0;
    height: 1px;
    background: rgba(139,105,20,0.5);
    transform: translateY(-50%);
}
.gift-chip::after {
    content: '';
    position: absolute;
    left: 50%; top: 0; bottom: 0;
    width: 1px;
    background: rgba(139,105,20,0.5);
    transform: translateX(-50%);
}

/* ── Card Number ── */
.gift-number {
    font-family: 'Courier New', 'Lucida Console', monospace;
    font-size: clamp(1rem, 3.5vw, 1.15rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: 3px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.4);
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    word-break: break-all;
}

/* ── Card Bottom Row ── */
.gift-card-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}
.gift-card-holder { display: flex; flex-direction: column; gap: 2px; }
.gift-card-holder-label {
    font-family: var(--font-heading);
    font-size: 0.58rem;
    color: rgba(255,255,255,0.75);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 700;
}
.gift-name {
    font-family: var(--font-heading);
    font-size: clamp(0.8rem, 2vw, 0.92rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
    margin: 0;
}

/* ── Copy Button on card ── */
.btn-copy {
    margin: 0;
    min-height: 34px;
    padding: 6px 14px;
    font-family: var(--font-body);
    font-size: 0.7rem; font-weight: 600;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    border-radius: 20px;
    cursor: pointer;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    flex-shrink: 0;
}
.btn-copy:active, .btn-copy:hover {
    background: rgba(255,255,255,0.32);
    color: #fff;
}
.btn-copy.copied { background: rgba(74,128,96,0.7); border-color: rgba(74,128,96,0.9); color: #fff; }


/* ========================================
   CLOSING / PENUTUP
/* ========================================
   CLOSING / PENUTUP
   ======================================== */
#closing {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: url('../img/galeri4.jpeg') center center / cover no-repeat fixed;
    text-align: center; position: relative; overflow: hidden;
}
#closing .section-bg { display: none; }

/* ── Overlay agar teks terbaca ── */
.closing-bg-overlay {
    position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background: rgba(250, 243, 232, 0.82);
}

.closing-content {
    position: relative; z-index: 1;
    padding: clamp(40px,8vw,60px) clamp(24px,5vw,40px);
    max-width: 420px; margin: 0 auto;
}

/* Ornamen atas & bawah */
.closing-ornament-top, .closing-ornament-bottom {
    display: flex; justify-content: center; margin: 0 auto 8px;
}
.closing-ornament-bottom { margin: 8px auto 0; }

.closing-thanks {
    font-family: var(--font-heading); font-size: clamp(0.72rem,1.8vw,0.85rem);
    color: var(--gold-500); letter-spacing: 4px; text-transform: uppercase;
    margin-bottom: 10px; font-weight: 700;
}

.closing-names {
    font-family: var(--font-display); font-size: clamp(2.4rem,7vw,4rem);
    color: var(--maroon-600); margin-bottom: 4px; line-height: 1.15;
}
.closing-name-groom, .closing-name-bride { display: block; }
.closing-names .amp {
    color: var(--gold-400); font-family: var(--font-heading);
    font-size: clamp(1rem,3vw,1.6rem); display: block;
    margin: 2px 0; font-style: italic; font-weight: 700;
}

/* Divider berlian */
.closing-divider {
    display: flex; align-items: center; justify-content: center;
    gap: 10px; margin: 14px auto 18px;
}
.closing-divider span:not(.closing-divider-diamond) {
    flex: 1; max-width: 60px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212,160,23,0.5));
}
.closing-divider span:last-child {
    background: linear-gradient(90deg, rgba(212,160,23,0.5), transparent);
}
.closing-divider-diamond {
    width: 8px; height: 8px; flex-shrink: 0;
    background: var(--gold-400);
    transform: rotate(45deg);
    box-shadow: 0 0 6px rgba(212,160,23,0.4);
}

.closing-message {
    font-family: var(--font-heading); font-size: clamp(0.82rem,2vw,0.95rem);
    color: var(--maroon-700); font-style: italic;
    max-width: 340px; margin: 0 auto 20px; line-height: 2;
    font-weight: 600;
}

.closing-hashtag {
    font-family: var(--font-heading); font-size: clamp(0.95rem,2.5vw,1.2rem);
    color: var(--maroon-600); font-weight: 800; letter-spacing: 2px;
    margin-bottom: 20px;
    background: rgba(212,160,23,0.1);
    padding: 8px 20px; border-radius: 20px;
    border: 1px solid rgba(212,160,23,0.3);
    display: inline-block;
}

.closing-arabic {
    font-family: var(--font-arabic); font-size: clamp(1.1rem,3vw,1.4rem);
    color: var(--maroon-500); margin-top: 16px; line-height: 2;
    opacity: 0.85; font-weight: 700;
}


/* ========================================
   BOTTOM NAVIGATION (Mobile)
   ======================================== */
.bottom-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0;
    background: rgba(26,5,5,0.96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-top: 1.5px solid rgba(212,160,23,0.2);
    z-index: calc(var(--z-overlay) + 5);
    padding: 0; padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
    opacity: 0; transform: translateY(100%);
    transition: opacity 0.5s ease, transform 0.5s var(--ease-out-expo);
}
.bottom-nav.visible {
    opacity: 1; transform: translateY(0);
}
.bnav-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; padding: 10px 4px 12px;
    min-height: var(--touch-min); color: rgba(212,160,23,0.5);
    font-family: var(--font-heading); font-size: 0.6rem; letter-spacing: 0.3px;
    text-transform: uppercase; text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.bnav-item svg { width: 20px; height: 20px; flex-shrink: 0; transition: transform 0.2s ease; }
.bnav-item:active { transform: scale(0.9); }
.bnav-item.active { color: var(--gold-400); }
.bnav-item.active svg { transform: scale(1.15); filter: drop-shadow(0 0 4px rgba(212,160,23,0.6)); }

/* Adjust music toggle position when bottom nav is visible */
.has-bottom-nav .music-toggle { bottom: 74px; }

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
    .bottom-nav { display: none; }
    .has-bottom-nav .music-toggle { bottom: 20px; }
}


/* ========================================
   FOOTER
   ======================================== */
footer { padding: 22px clamp(16px,4vw,24px); text-align: center; background: linear-gradient(135deg, rgba(61,21,21,0.95), rgba(45,27,14,0.95)); backdrop-filter: blur(10px); border-top: 1.5px solid rgba(212,160,23,0.2); }
footer p { font-family: var(--font-heading); font-size: clamp(0.78rem,1.8vw,0.85rem); color: var(--gold-200); }
footer a { color: var(--gold-400); font-weight: 600; }


/* ========================================
   MUSIC TOGGLE
   ======================================== */
.music-toggle {
    position: fixed; bottom: 20px; right: 20px; width: 48px; height: 48px;
    border-radius: 50%; background: var(--gradient-primary);
    border: 2px solid rgba(230,194,90,0.3); cursor: pointer;
    z-index: var(--z-overlay); display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-md); transition: var(--transition-fast); color: white;
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.music-toggle:active { transform: scale(0.92); }
.music-toggle.playing { animation: musicPulse 1.8s ease-in-out infinite; }
@keyframes musicPulse { 0%, 100% { box-shadow: 0 4px 18px rgba(212,160,23,0.35); } 50% { box-shadow: 0 4px 28px rgba(212,160,23,0.62); } }
.sound-bars { display: flex; align-items: center; gap: 3px; height: 18px; }
.sound-bars .bar { width: 3px; background: white; border-radius: 3px; transition: height 0.2s ease; }
.music-toggle:not(.playing) .bar { height: 5px; }
.music-toggle.playing .bar { animation: soundWave 0.8s ease-in-out infinite; }
.music-toggle.playing .bar:nth-child(1) { animation-delay: 0s; }
.music-toggle.playing .bar:nth-child(2) { animation-delay: 0.15s; }
.music-toggle.playing .bar:nth-child(3) { animation-delay: 0.3s; }
.music-toggle.playing .bar:nth-child(4) { animation-delay: 0.45s; }
@keyframes soundWave { 0%, 100% { height: 5px; } 50% { height: 16px; } }


/* ========================================
   CORNER ORNAMENTS
   ======================================== */
.corner-ornament { position: fixed; width: 100px; height: 100px; opacity: 0.07; z-index: 50; pointer-events: none; }
.corner-ornament.top-left { top: 0; left: 0; background: radial-gradient(circle at top left, var(--gold-400), transparent 70%); }
.corner-ornament.top-right { top: 0; right: 0; background: radial-gradient(circle at top right, var(--rose-deep), transparent 70%); }
.corner-ornament.bottom-left { bottom: 0; left: 0; background: radial-gradient(circle at bottom left, var(--maroon-400), transparent 70%); }
.corner-ornament.bottom-right { bottom: 0; right: 0; background: radial-gradient(circle at bottom right, var(--gold-400), transparent 70%); }


/* ========================================
   SPARKLE EFFECTS
   ======================================== */
.sparkle { position: fixed; pointer-events: none; z-index: 98; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-400); opacity: 0; animation: sparkleFloat 5s ease-in-out infinite; }
@keyframes sparkleFloat { 0% { opacity: 0; transform: translateY(0) scale(0); } 25% { opacity: 0.8; transform: translateY(-18px) scale(1); } 75% { opacity: 0.3; transform: translateY(-50px) scale(0.5); } 100% { opacity: 0; transform: translateY(-70px) scale(0); } }

.minang-particle { position: fixed; pointer-events: none; z-index: 97; opacity: 0; animation: minangFloat 10s ease-in-out infinite; }
.minang-particle .ukiran { width: 24px; height: 24px; border: 1.5px solid var(--gold-400); border-radius: 0 50% 0 50%; transform: rotate(45deg); opacity: 0.12; }
@keyframes minangFloat { 0% { opacity: 0; transform: translateY(100vh) rotate(0deg); } 20% { opacity: 0.25; } 80% { opacity: 0.15; } 100% { opacity: 0; transform: translateY(-10vh) rotate(360deg); } }


/* ========================================
   SCROLL PROGRESS
   ======================================== */
#scroll-progress { position: fixed; top: 0; left: 0; height: 2.5px; background: linear-gradient(90deg, var(--maroon-600), var(--gold-400), var(--gold-200)); z-index: 9998; transition: width 0.1s ease; width: 0%; box-shadow: 0 0 6px rgba(212,160,23,0.4); }


/* ========================================
   TOAST NOTIFICATION
   ======================================== */
.toast {
    position: fixed; bottom: 80px; left: 50%;
    transform: translateX(-50%) translateY(16px);
    padding: 13px 26px; background: rgba(255,248,231,0.97);
    backdrop-filter: blur(12px); border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg); font-family: var(--font-heading);
    font-size: clamp(0.82rem,2vw,0.95rem); color: var(--text-primary);
    z-index: 10000; opacity: 0; visibility: hidden;
    transition: all 0.35s cubic-bezier(0.16,1,0.3,1); pointer-events: none;
    border: 1.5px solid rgba(212,160,23,0.18);
    max-width: 88vw; text-align: center; white-space: nowrap;
}
.toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.toast.success { border-left: 4px solid #4A8060; }
.toast.error { border-left: 4px solid var(--maroon-400); }


/* ========================================
   ANIMATION UTILITIES
   ======================================== */
.animate-on-scroll { opacity: 0; transform: translateY(28px); transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1); }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }
.cascade-in { opacity: 0; transform: translateY(32px) scale(0.96); transition: opacity 0.55s ease, transform 0.55s ease; }
.cascade-in.visible { opacity: 1; transform: translateY(0) scale(1); }

/* Delay classes */
.delay-100 { transition-delay: 0.1s !important; }
.delay-200 { transition-delay: 0.2s !important; }
.delay-300 { transition-delay: 0.3s !important; }
.delay-400 { transition-delay: 0.4s !important; }
.delay-500 { transition-delay: 0.5s !important; }
.delay-600 { transition-delay: 0.6s !important; }
.delay-700 { transition-delay: 0.7s !important; }
.delay-800 { transition-delay: 0.8s !important; }

/* Border draw animation */
.border-draw { position: relative; }
.border-draw::before { content: ''; position: absolute; inset: 0; border: 2px solid var(--gold-400); border-radius: inherit; opacity: 0; animation: drawBorder 2s ease forwards; animation-play-state: paused; pointer-events: none; }
.border-draw.animate::before { animation-play-state: running; }
@keyframes drawBorder { 0% { opacity: 0; clip-path: polygon(0 0, 0 0, 0 0, 0 0); } 25% { opacity: 1; clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); } 50% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 0); } 75% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); } 100% { opacity: 0.3; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); } }

/* Counter flip */
.flip-number { display: inline-block; }
.flip-number.flipping { animation: counterFlip 0.45s ease; }
@keyframes counterFlip { 0% { transform: rotateX(0deg); } 50% { transform: rotateX(90deg); opacity: 0.5; } 100% { transform: rotateX(0deg); opacity: 1; } }

/* Keyframes */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes zoomIn { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: scale(1); } }
@keyframes pulseGlow { 0%, 100% { box-shadow: 0 0 5px rgba(212,160,23,0.18); } 50% { box-shadow: 0 0 22px rgba(212,160,23,0.45), 0 0 45px rgba(212,160,23,0.15); } }

.minang-divider { text-align: center; padding: 12px 0; position: relative; }
.minang-divider svg { width: clamp(130px,36vw,200px); height: auto; opacity: 0.5; }

.gonjong-separator { text-align: center; padding: 16px 0; position: relative; background: transparent !important; }
.gonjong-separator::before { content: ''; position: absolute; top: 50%; left: 8%; right: 8%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-400), transparent); opacity: 0.25; }
.gonjong-separator svg { position: relative; z-index: 1; }


/* ========================================
   RESPONSIVE — TABLET & DESKTOP
   ======================================== */
@media (min-width: 481px) {
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .gallery-item:first-child { grid-column: span 3; height: clamp(220px, 40vw, 300px); }
    .gallery-item:not(:first-child) { height: clamp(150px, 22vw, 200px); }
}

@media (min-width: 641px) {
    section { padding: clamp(56px,8vw,80px) clamp(24px,4vw,32px); }
    .event-grid-pill { flex-direction: row; align-items: flex-start; justify-content: center; flex-wrap: wrap; }
    .event-card-pill { max-width: 380px; }
    .gift-cards { flex-direction: row; flex-wrap: wrap; justify-content: center; }
    .gift-card { min-width: 260px; max-width: 300px; width: auto; }
    .radio-group { flex-direction: row; }
    .timeline-item:hover { transform: translateX(5px); box-shadow: var(--shadow-glow); border-color: var(--gold-400); }
    .timeline-item:hover::before { background: var(--gold-400); box-shadow: 0 0 10px rgba(212,160,23,0.5); }
    .btn-instagram-pill:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
    .btn-pill-maps:hover { transform: translateY(-2px) scale(1.02); box-shadow: var(--shadow-lg); }
    .btn-submit:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
    .btn-submit:hover::before { left: 100%; }
    .btn-copy:hover { background: var(--gold-400); color: #fff; box-shadow: var(--shadow-gold); }
    .gallery-item:hover { transform: scale(1.02); box-shadow: 0 8px 30px rgba(212,160,23,0.25); border-color: rgba(212,160,23,0.4); }
    .gallery-item:hover img { transform: scale(1.06); }
    .gallery-item:hover::after { border-color: rgba(212,160,23,0.6); box-shadow: inset 0 0 20px rgba(212,160,23,0.12); }
    .gallery-item:hover::before { opacity: 1; }
    .gallery-item:hover .gallery-num { opacity: 1; }
}

@media (min-width: 769px) {
    .gate-names { font-size: 3rem; }
    .gate-center-content { max-width: 480px; }
    .gob-corner { width: 100px; height: 100px; }
    .gob-top, .gob-bottom { left: 125px; right: 125px; }
    .gob-left, .gob-right { top: 125px; bottom: 125px; }
    .ornate-frame-top svg, .ornate-frame-bottom svg { width: 270px; }
    .hero-frame-wrapper { width: 340px; height: 470px; }
    .couple-main-card { padding: 58px 40px; max-width: 520px; }
    .hanging-ornament { width: 74px; height: 74px; }
    .hanging-ornament.left { top: -28px; left: -28px; }
    .hanging-ornament.right { top: -28px; right: -28px; }
    .section-container { max-width: 760px; }
}

@media (min-width: 1025px) {
    section { padding: 90px 32px; }
    .section-container { max-width: 820px; }
    .gate-names { font-size: 2.8rem; }
    .gate-center-content { max-width: 520px; padding: 48px 42px; }
    .gob-corner { width: 120px; height: 120px; }
    .gob-top, .gob-bottom { left: 145px; right: 145px; }
    .gob-left, .gob-right { top: 145px; bottom: 145px; }
    .hero-frame-wrapper { width: 400px; height: 560px; }
    .event-grid-pill { gap: 40px; }
    .event-card-pill { max-width: 420px; }
    .hanging-ornament { width: 80px; height: 80px; }
    .parallax-ornaments .po-item { opacity: 0.06; }
}

/* Reduced-motion: disable all animations for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .animate-on-scroll { opacity: 1; transform: none; }
    .cascade-in { opacity: 1; transform: none; }
}


/* Override subtitle countdown agar lebih tebal dan gelap */
#countdown .section-subtitle {
    color: var(--maroon-700);
    font-weight: 800;
    letter-spacing: 5px;
}
