/* ============================================
   DESIGN SYSTEM: ELEGANT CHAMPAGNE & ROYAL NAVY
   Undangan Metatah — Ni Putu Della Natalie (Della)
   Rich Varied Typography & Balanced Aesthetics
============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    /* Color Palette */
    --bg-cream: #FAF8F5;
    --bg-cream-deep: #F3ECE2;
    --royal-navy: #0A182E;
    --royal-navy-deep: #061122;
    --royal-blue: #142C52;
    
    /* Champagne Gold Scale */
    --gold: #C5A059;
    --gold-bright: #F0DEB0;
    --gold-deep: #9A7B38;
    --gold-pale: #F7F1DB;
    --gold-subtle: rgba(197, 160, 89, 0.25);
    --gold-border: rgba(197, 160, 89, 0.4);
    --gold-border-light: rgba(197, 160, 89, 0.25);
    
    /* Text Colors */
    --ink: #1E293B;
    --ink-muted: #64748B;
    --white: #FFFFFF;

    /* Varied Typography Hierarchy */
    --font-script: 'Great Vibes', 'Alex Brush', cursive;
    --font-cinzel: 'Cinzel', serif;
    --font-display: 'Playfair Display', serif;
    --font-body: 'Cormorant Garamond', serif;
    --font-label: 'Marcellus', serif;

    /* Spacing System */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-pill: 50px;

    /* Geometric Diamond Songket Pattern (Light Mode & Dark Mode) */
    --pattern-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cpath d='M 22 0 L 44 22 L 22 44 L 0 22 Z' fill='none' stroke='%23C5A059' stroke-width='1.2' opacity='0.22'/%3E%3Ccircle cx='22' cy='22' r='2' fill='%23C5A059' opacity='0.3'/%3E%3C/svg%3E");
    --pattern-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cpath d='M 22 0 L 44 22 L 22 44 L 0 22 Z' fill='none' stroke='%23F0DEB0' stroke-width='1.2' opacity='0.12'/%3E%3Ccircle cx='22' cy='22' r='2' fill='%23F0DEB0' opacity='0.18'/%3E%3C/svg%3E");

    /* Shadows */
    --shadow-sm: 0 4px 12px rgba(10, 24, 46, 0.06);
    --shadow-md: 0 12px 30px rgba(10, 24, 46, 0.08);
    --shadow-lg: 0 16px 36px rgba(10, 24, 46, 0.14);
    --shadow-xl: 0 20px 50px rgba(10, 24, 46, 0.18);
    --shadow-gold: 0 8px 24px rgba(197, 160, 89, 0.3);

    /* Transitions */
    --transition-fast: all 0.25s ease;
    --transition: all 0.35s ease;
    --transition-slow: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-cream);
    background-image: var(--pattern-light);
    background-repeat: repeat;
    background-size: 44px 44px;
    color: var(--ink);
    overflow-x: hidden;
    line-height: 1.75;
    font-size: 19px;
}

body.locked {
    overflow: hidden !important;
    height: 100vh;
    width: 100%;
}

img { max-width: 100%; display: block; }
button { font-family: var(--font-body); cursor: pointer; background: none; border: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============================================
   LAYOUT & CONTAINER
============================================ */
.section {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    background-color: var(--bg-cream);
    background-image: var(--pattern-light);
    background-repeat: repeat;
    background-size: 44px 44px;
    padding: var(--space-2xl) var(--space-lg);
}

/* ============================================
   BIDIRECTIONAL SCROLL ANIMATIONS SYSTEM
============================================ */
.fade-in, .fade-up, .zoom-in, .slide-up, .event-card, .form-container, .bank-info, .quote-container, .child-photo-frame, .arch-photo-frame {
    opacity: 0;
    transform: translateY(45px) scale(0.95);
    transition: opacity 0.85s cubic-bezier(0.165, 0.84, 0.44, 1),
                transform 0.85s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: opacity, transform;
}

.zoom-in {
    opacity: 0;
    transform: scale(0.85) translateY(20px);
}

.slide-up {
    opacity: 0;
    transform: translateY(60px);
}

.visible {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

/* Staggered Delay for Gallery Items */
.gallery-item {
    opacity: 0;
    transform: translateY(40px) scale(0.92);
    transition: opacity 0.7s cubic-bezier(0.165, 0.84, 0.44, 1),
                transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.gallery-item.visible {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}
.gallery-item:nth-child(even) { transition-delay: 0.1s; }
.gallery-item:nth-child(odd) { transition-delay: 0.05s; }

/* Staggered Delay for Countdown Cards */
.countdown-item {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    transition: opacity 0.6s cubic-bezier(0.165, 0.84, 0.44, 1),
                transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.countdown-item.visible {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}
.countdown-item:nth-child(1) { transition-delay: 0.05s; }
.countdown-item:nth-child(2) { transition-delay: 0.15s; }
.countdown-item:nth-child(3) { transition-delay: 0.25s; }
.countdown-item:nth-child(4) { transition-delay: 0.35s; }

/* Gentle Ambient Floating Icons */
.section-icon, .prayer-icon, .child-divider svg, .hero-icon {
    animation: floatIcon 4s ease-in-out infinite;
}
@keyframes floatIcon {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-6px) rotate(3deg); }
}

/* Soft Gold Pulse on Date Badge & Buttons */
.hero-date-badge, .btn-open {
    animation: softGoldPulse 3.2s ease-in-out infinite;
}
@keyframes softGoldPulse {
    0%, 100% { box-shadow: 0 6px 18px rgba(197, 160, 89, 0.3); }
    50% { box-shadow: 0 10px 28px rgba(197, 160, 89, 0.6); }
}

/* ============================================
   DECORATIVE ORNAMENTS
============================================ */
.ornament-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-md);
    width: 100%;
    max-width: 200px;
    margin: var(--space-md) auto 0;
    color: var(--gold);
    opacity: 0.8;
}
.ornament-divider .line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.5;
}
.ornament-divider svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Corner Frame Brackets */
.corner-frame { position: relative; }
.corner-frame::before,
.corner-frame::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 1px solid var(--gold-border);
    pointer-events: none;
    z-index: 2;
}
.corner-frame::before { top: var(--space-sm); left: var(--space-sm); border-right: none; border-bottom: none; }
.corner-frame::after { bottom: var(--space-sm); right: var(--space-sm); border-left: none; border-top: none; }

/* ============================================
   REUSABLE SECTION HEADER
============================================ */
.section-header { text-align: center; margin-bottom: var(--space-xl); }
.section-icon { width: 32px; height: 32px; color: var(--gold); margin: 0 auto var(--space-sm); }
.section-eyebrow {
    font-family: var(--font-cinzel);
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold-deep);
    font-weight: 600;
}
.section-header h2, .section-title {
    font-family: var(--font-display);
    font-size: 32px;
    color: var(--royal-navy);
    line-height: 1.2;
    margin-top: 4px;
}

/* ============================================
   COVER SECTION (Always stays in natural document flow)
============================================ */
.cover {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--royal-navy) 0%, var(--royal-navy-deep) 100%);
    padding: 0;
    z-index: 100;
}

.cover-content {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-lg);
    text-align: center;
    color: var(--bg-cream);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Sparkle Background Animation */
.cover-sparkles { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.sparkle {
    position: absolute;
    border-radius: 50%;
    background: var(--gold-bright);
    opacity: 0.35;
    pointer-events: none;
    animation: sparkleTwinkle 3.6s ease-in-out infinite;
}
@keyframes sparkleTwinkle {
    0%, 100% { opacity: 0.15; transform: scale(0.8); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

.cover-eyebrow {
    font-family: var(--font-cinzel);
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold-bright);
    margin-bottom: var(--space-md);
    font-weight: 600;
}

.top-flourish { margin: 0 auto var(--space-md); max-width: 140px; }

/* Arch Photo Frame on Cover */
.arch-photo-frame {
    width: 170px;
    height: 230px;
    margin: 0 auto var(--space-md);
    position: relative;
    border-radius: 110px 110px var(--radius-md) var(--radius-md);
    padding: var(--space-xs);
    border: 1.5px solid var(--gold-border);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}
.arch-photo {
    width: 100%;
    height: 100%;
    border-radius: 105px 105px 10px 10px;
    overflow: hidden;
}
.arch-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s ease;
}
.arch-photo-frame:hover .arch-photo img { transform: scale(1.05); }

/* Cover Title — Regal Cinzel font */
.cover-title {
    font-family: var(--font-cinzel);
    font-weight: 600;
    font-size: 24px;
    letter-spacing: 4px;
    color: var(--white);
    text-transform: uppercase;
    margin-bottom: 2px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.cover-title-sub {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 15px;
    color: var(--gold-bright);
    letter-spacing: 1px;
    margin-bottom: var(--space-md);
    opacity: 0.9;
}

/* Cover Name — Artistic Calligraphic Script Font (Great Vibes) */
.cover-names {
    margin-bottom: var(--space-md);
    position: relative;
}
.cover-names .name {
    font-family: var(--font-script);
    font-style: normal;
    font-weight: 400;
    font-size: 62px;
    background: linear-gradient(135deg, #FFFFFF 0%, #F0DEB0 50%, #C5A059 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 15px rgba(197, 160, 89, 0.35));
    line-height: 1.1;
    display: inline-block;
    padding: 0 10px;
}

.cover-date {
    font-family: var(--font-cinzel);
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--gold-pale);
    margin-bottom: var(--space-lg);
}

/* Address Box */
.address-box {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}
.address-label {
    font-family: var(--font-body);
    font-size: 14px;
    font-style: italic;
    color: rgba(255, 253, 248, 0.75);
    margin-bottom: 2px;
}
.guest-name {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--gold-bright);
}

/* Buka Undangan Button */
.btn-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 14px 34px;
    margin-top: var(--space-md);
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
    color: var(--royal-navy-deep);
    font-family: var(--font-cinzel);
    font-size: 12px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-gold);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.btn-open:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 28px rgba(197, 160, 89, 0.5);
}

/* ============================================
   HERO SECTION (High Contrast Date Badge & Glass Card)
============================================ */
.hero {
    min-height: 90vh;
    min-height: 90dvh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    padding: var(--space-xl) var(--space-lg) 60px;
    background: var(--royal-navy);
    color: var(--white);
    overflow: hidden;
    position: relative;
}
.hero-bg-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%; /* Positions Della's face & crown clearly in frame */
    opacity: 0.92;
    transition: opacity 1s ease;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    /* Soft gradient at the bottom so Della's face & crown stay 100% clear, while text at bottom is sharp */
    background: linear-gradient(180deg, rgba(10,24,46,0.1) 0%, rgba(10,24,46,0.2) 45%, rgba(6,17,34,0.85) 85%, #061122 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 440px;
}

/* Hero Content Area — Clean & Transparent so photo is 100% unblocked */
.hero-card {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-icon {
    width: 32px;
    height: 32px;
    color: var(--gold-bright);
    margin-bottom: var(--space-xs);
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
}

.hero-eyebrow {
    font-family: var(--font-cinzel);
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold-bright);
    margin-bottom: var(--space-xs);
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.hero-names {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--white);
    margin-bottom: var(--space-md);
    text-shadow: 0 3px 12px rgba(0,0,0,0.8);
}
.hero-nickname {
    font-family: var(--font-script);
    font-size: 38px;
    color: var(--gold-bright);
    font-weight: 400;
    display: inline-block;
    margin-top: 2px;
    text-shadow: 0 3px 15px rgba(0,0,0,0.9);
}

/* High Contrast Gold Pill Date Badge for Hero */
.hero-date-badge {
    background: linear-gradient(135deg, #F0DEB0 0%, #C5A059 100%);
    color: var(--royal-navy-deep);
    font-family: var(--font-cinzel);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 10px 22px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.3);
    text-transform: uppercase;
}

.section-edge {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 50px;
    background: var(--bg-cream);
    border-radius: 50% 50% 0 0;
}

/* ============================================
   PRAYER SECTION
============================================ */
.prayer { text-align: center; }
.prayer-icon { width: 32px; height: 32px; color: var(--gold); margin: 0 auto var(--space-xs); }

/* Balinese Calligraphic Script for Om Swastyastu */
.om-swastyastu {
    font-family: var(--font-script);
    font-size: 46px;
    color: var(--gold-deep);
    margin-bottom: var(--space-md);
    line-height: 1.2;
}

.prayer-text {
    font-size: 18px;
    color: var(--ink);
    line-height: 1.85;
    padding: var(--space-md);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

/* ============================================
   CHILD INFO SECTION (Enlarged Portrait Photo for Della)
============================================ */
.child-info { text-align: center; }
.child-tag {
    font-family: var(--font-cinzel);
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold-deep);
    font-weight: 600;
    margin-bottom: var(--space-lg);
}

/* Enlarged Majestic Portrait Frame for Della (260px x 360px) */
.child-photo-frame {
    width: 260px;
    height: 360px;
    margin: 0 auto var(--space-lg);
    position: relative;
    border-radius: 130px 130px var(--radius-lg) var(--radius-lg);
    padding: 6px;
    border: 2px solid var(--gold-border);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.25) 0%, transparent 100%);
}
.child-photo {
    width: 100%;
    height: 100%;
    border-radius: 124px 124px 14px 14px;
    overflow: hidden;
}
.child-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s ease;
}
.child-photo-frame:hover .child-photo img { transform: scale(1.06); }

.child-name {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 600;
    color: var(--royal-navy);
    margin: var(--space-md) 0 var(--space-xs);
}
.child-name .nickname {
    font-family: var(--font-script);
    font-size: 34px;
    color: var(--gold-deep);
    font-weight: 400;
    margin-left: 4px;
}

.child-divider { width: 24px; height: 24px; margin: 0 auto var(--space-md); color: var(--gold); }
.parents-info { font-size: 18px; color: var(--ink-muted); }
.parents-label { font-style: italic; margin-bottom: var(--space-xs); }
.parent-name {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--royal-navy);
    font-weight: 500;
}
.parent-separator { color: var(--gold-deep); font-style: italic; margin: 2px 0; }

/* ============================================
   BHAGAVAD GITA QUOTE SECTION (Strictly Centered)
============================================ */
.quote-section {
    background: var(--royal-navy);
    color: var(--white);
    text-align: center;
    border-radius: var(--radius-xl);
    margin: var(--space-lg) auto; /* Strictly centered on all screen sizes */
    width: calc(100% - 32px);
    max-width: 480px;
    padding: var(--space-2xl) var(--space-lg);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.quote-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    margin: 0 auto;
}

.quote-mark {
    font-family: var(--font-display);
    font-size: 56px;
    color: var(--gold-bright);
    line-height: 1;
    opacity: 0.4;
    margin-bottom: -10px;
    text-align: center;
}

.quote-text {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 20px;
    line-height: 1.7;
    color: var(--gold-pale);
    margin-bottom: var(--space-sm);
    text-align: center;
}

.quote-source {
    font-family: var(--font-cinzel);
    font-size: 13px;
    letter-spacing: 3px;
    color: var(--gold-bright);
    margin-bottom: var(--space-md);
    text-align: center;
    font-weight: 600;
}

.quote-divider {
    width: 50px;
    height: 1px;
    background: var(--gold);
    opacity: 0.3;
    margin: 0 auto var(--space-md);
}

.quote-translation {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.75;
    text-align: center;
}

/* ============================================
   EVENT DETAILS SECTION
============================================ */
.event-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gold-border);
}
.event-card-image {
    height: 480px;
    position: relative;
    overflow: hidden;
}
.event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}
.gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 85%, rgba(255, 255, 255, 0.6) 100%);
    pointer-events: none;
}

.event-card-body { padding: var(--space-xl) var(--space-lg); text-align: center; }
.event-date {
    font-family: var(--font-display);
    font-size: 23px;
    color: var(--royal-navy);
    font-weight: 600;
    margin-bottom: var(--space-md);
}
.event-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    color: var(--ink);
    margin-bottom: var(--space-md);
}
.event-row svg { color: var(--gold-deep); flex-shrink: 0; }

.map-embed {
    height: 190px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin: var(--space-lg) 0 var(--space-md);
    border: 1px solid var(--gold-border-light);
}

.btn-map {
    display: inline-block;
    width: 100%;
    padding: 14px var(--space-lg);
    background: var(--royal-navy);
    color: var(--gold-bright);
    font-family: var(--font-cinzel);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition);
    border: 1px solid rgba(197, 160, 89, 0.3);
}
.btn-map:hover { background: var(--royal-blue); transform: translateY(-1px); }

.event-message {
    text-align: center;
    margin: var(--space-xl) 0 var(--space-lg);
    font-size: 17px;
    color: var(--ink-muted);
    line-height: 1.8;
}
.event-signature { text-align: center; }
.signature-line { width: 45px; height: 1px; background: var(--gold); opacity: 0.5; margin: 0 auto var(--space-md); }
.signature-label { font-style: italic; color: var(--ink-muted); font-size: 16px; }
.signature-name { font-family: var(--font-display); font-size: 20px; color: var(--royal-navy); font-weight: 600; }

/* ============================================
   COUNTDOWN SECTION (Enlarged Photo Slider Frame)
============================================ */
.countdown-section { text-align: center; }
.countdown-photo-slider {
    width: 100%;
    max-width: 380px;
    height: 420px;
    margin: 0 auto var(--space-xl);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 2px solid var(--gold-border);
    padding: 4px;
    background: var(--white);
}
.countdown-photo-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 24px;
    transition: opacity 1s ease;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}
.countdown-item {
    flex: 1;
    max-width: 90px;
    background: var(--royal-navy);
    color: var(--white);
    padding: var(--space-md) var(--space-sm);
    border-radius: var(--radius-md);
    border: 1px solid rgba(197, 160, 89, 0.35);
}
.countdown-number {
    font-family: var(--font-cinzel);
    font-size: 26px;
    font-weight: 700;
    color: var(--gold-bright);
    line-height: 1.1;
}
.countdown-label {
    font-family: var(--font-cinzel);
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin-top: var(--space-xs);
}

/* ============================================
   GALLERY SECTION (Uniform Photo Sizes + Gold Corner Badges)
============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.gallery-item {
    width: 100%;
    height: 200px; /* Uniform height across all photos! */
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--gold-border);
    cursor: pointer;
    background: var(--white);
    transition: var(--transition);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Decorative Gold Flower Badge Overlay on Each Photo */
.gallery-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    background: rgba(10, 24, 46, 0.75);
    backdrop-filter: blur(4px);
    border: 1px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-bright);
    z-index: 3;
    transition: var(--transition-fast);
}
.gallery-badge svg { width: 14px; height: 14px; }

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-gold);
    border-color: var(--gold);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover .gallery-badge { background: var(--gold); color: var(--royal-navy-deep); }

/* Lightbox Modal */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(6, 17, 34, 0.95);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox-img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.lightbox-close, .lightbox-nav {
    position: absolute;
    background: rgba(197, 160, 89, 0.15);
    border: 1px solid var(--gold);
    color: var(--gold-bright);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(197, 160, 89, 0.35); }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-nav.prev { left: 16px; }
.lightbox-nav.next { right: 16px; }
.lightbox-count {
    position: absolute;
    bottom: 20px;
    color: var(--gold-pale);
    font-family: var(--font-cinzel);
    letter-spacing: 2px;
    font-size: 13px;
}

/* ============================================
   FORMS & RSVP / WISHES
============================================ */
.form-description {
    text-align: center;
    font-size: 17px;
    color: var(--ink-muted);
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}
.form-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl) var(--space-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gold-border);
}
.form-group { margin-bottom: var(--space-lg); text-align: left; }
.form-group label {
    display: block;
    font-family: var(--font-cinzel);
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--royal-navy);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}
.form-group input, .form-group select, .wish-form input, .wish-form textarea {
    width: 100%;
    padding: 12px var(--space-md);
    background: var(--bg-cream);
    border: 1px solid var(--gold-border-light);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--ink);
    outline: none;
    transition: var(--transition-fast);
}
.form-group input:focus, .form-group select:focus, .wish-form input:focus, .wish-form textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.2);
}

.radio-group { display: flex; flex-direction: column; gap: var(--space-sm); margin-top: var(--space-xs); }
.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px var(--space-md);
    background: var(--bg-cream);
    border: 1px solid var(--gold-border-light);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}
.radio-option:hover { border-color: var(--gold); }
.radio-option input { width: auto; accent-color: var(--gold-deep); }

.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--royal-navy);
    color: var(--gold-bright);
    font-family: var(--font-cinzel);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(197, 160, 89, 0.4);
    transition: var(--transition);
}
.btn-submit:hover {
    background: var(--royal-blue);
    transform: translateY(-1px);
}

.wish-count {
    text-align: center;
    margin-bottom: var(--space-lg);
    font-family: var(--font-display);
    font-size: 19px;
    color: var(--royal-navy);
}
.wish-form input { margin-bottom: var(--space-md); }
.wish-form textarea { height: 100px; resize: none; margin-bottom: var(--space-md); }
.wishes-list {
    margin-top: var(--space-lg);
    max-height: 350px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}
.wish-item {
    background: var(--bg-cream);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    border-left: 3px solid var(--gold);
    text-align: left;
}
.wish-author { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--royal-navy); }
.wish-time { font-size: 12px; color: var(--ink-muted); margin-bottom: var(--space-xs); }
.wish-text { font-size: 15px; color: var(--ink); line-height: 1.5; }

/* ============================================
   GIFT & BANK SECTION
============================================ */
.bank-info {
    text-align: center;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl) var(--space-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gold-border);
}
.bank-name {
    font-family: var(--font-cinzel);
    font-size: 13px;
    letter-spacing: 3px;
    color: var(--gold-deep);
    font-weight: 600;
    margin-bottom: var(--space-xs);
}
.account-number {
    font-family: var(--font-cinzel);
    font-size: 26px;
    font-weight: 700;
    color: var(--royal-navy);
    margin-bottom: 2px;
    letter-spacing: 2px;
}
.account-name {
    font-size: 16px;
    color: var(--ink-muted);
    margin-bottom: var(--space-lg);
}

/* ============================================
   FOOTER SECTION
============================================ */
.footer {
    background: var(--royal-navy);
    color: var(--white);
    text-align: center;
    padding: var(--space-2xl) var(--space-lg) 70px;
    max-width: 500px;
    margin: 0 auto;
}
.footer-thanks {
    font-size: 17px;
    color: var(--gold-pale);
    margin: var(--space-lg) 0 var(--space-xl);
    line-height: 1.8;
}
.footer-names {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--white);
}
.footer-names span { color: var(--gold-bright); font-weight: 600; }
.footer-credit {
    margin-top: var(--space-2xl);
    text-align: center;
}
.credit-label {
    font-family: var(--font-body);
    font-size: 17px;
    color: var(--gold-pale);
    opacity: 0.85;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}
.credit-link {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 19px;
    color: var(--gold-bright);
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-color: var(--gold);
    letter-spacing: 0.5px;
    transition: var(--transition-fast);
}
.credit-link:hover {
    color: var(--gold);
    text-decoration-color: var(--gold-bright);
}

/* ============================================
   FLOATING MUSIC CONTROL
============================================ */
.music-control {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--royal-navy);
    border: 1px solid var(--gold);
    color: var(--gold-bright);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(10, 24, 46, 0.25);
    transition: var(--transition);
}
.music-control:hover { background: var(--royal-blue); }
.music-control.playing { animation: musicSpin 6s linear infinite; }
@keyframes musicSpin { 100% { transform: rotate(360deg); } }

/* ============================================
   FALLING PETAL EFFECT
============================================ */
.petal {
    position: fixed;
    z-index: 101;
    color: var(--gold-bright);
    pointer-events: none;
}