:root {
    /* Royal Midnight Navy & Gold Palette */
    --bg-midnight: #030A19;
    --bg-navy-dark: #07122A;
    --bg-card-grad: linear-gradient(145deg, rgba(12, 26, 58, 0.96), rgba(4, 11, 28, 0.98));
    
    /* Peacock & Gold Accents */
    --peacock-cyan: #00A896;
    --peacock-blue: #028090;
    --peacock-deep: #05668D;
    --gold-bright: #FFD700;
    --gold-primary: #D4AF37;
    --gold-light: #FFF4B8;
    --gold-foil: linear-gradient(135deg, #BF953F 0%, #FCF6BA 25%, #B38728 50%, #FBF5B7 75%, #AA771C 100%);
    --gold-shine: linear-gradient(45deg, #A87D2A, #EAD07C, #FFF3A8, #EAD07C, #9B722B);
    
    /* Text & Shadows */
    --text-gold: #FFF5D0;
    --card-shadow: 0 20px 45px rgba(0, 0, 0, 0.85), 0 0 25px rgba(0, 168, 150, 0.2);
}

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


body {
    font-family: 'Poppins', sans-serif;
    background-color: #030A19;

    background-image:
        linear-gradient(
            rgba(3, 10, 25, 0.30),
            rgba(3, 10, 25, 0.45)
        ),
        url("../assets/images/mandala-tile.jpg");

    background-position: center top;
    background-size: auto 100vh;
    background-repeat: repeat-x;
    background-attachment: fixed;

    color: var(--text-gold);
    overflow-x: hidden;
    position: relative;
}

/* REMOVE the old body::before background block */


/* -----------------------------------------------------------
 * Opening Invitation Splash Dialog
 * ----------------------------------------------------------- */
#invitation-splash {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh; height: 100dvh;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    perspective: 1800px;
    overflow: hidden;
}

#invitation-splash.hidden {
    display: none;
}

/* Peacock mandala panels (undertoned so the text stays clear) */
.splash-panel {
    position: absolute;
    top: 0; bottom: 0;
    width: 50.3%;
    overflow: hidden;
    background: #06132B;
    transition: transform 1.8s cubic-bezier(0.6, 0, 0.2, 1), opacity 0.5s ease 1.3s;
    will-change: transform, opacity;
}

.splash-left  { left: 0;  transform-origin: left center; }
.splash-right { right: 0; transform-origin: right center; }

.splash-art {
    position: absolute;
    inset: -4%;
    background: url("../assets/images/mandala-tile.jpg") left center / auto 100% repeat-x;
    animation: mandalaBreath 16s ease-in-out infinite alternate;
}

.splash-right .splash-art { background-position: right center; }

@keyframes mandalaBreath {
    from { transform: scale(1); }
    to   { transform: scale(1.07); }
}

.splash-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(3, 10, 25, 0.38), rgba(3, 10, 25, 0.68));
}

.splash-right::after {
    background: linear-gradient(to left, rgba(3, 10, 25, 0.38), rgba(3, 10, 25, 0.68));
}

/* Opening: the two halves swing apart like feathered doors */
#invitation-splash.opening .splash-left  { transform: translateX(-12%) rotateY(78deg);  opacity: 0; }
#invitation-splash.opening .splash-right { transform: translateX(12%)  rotateY(-78deg); opacity: 0; }
#invitation-splash.opening .splash-card  { opacity: 0; transform: scale(1.12); pointer-events: none; }
#invitation-splash.opening { pointer-events: none; }

.splash-card {
    background: var(--bg-card-grad);
    border: 3px solid var(--gold-primary);
    border-radius: 26px;
    padding: 40px 30px;
    max-width: 540px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0,0,0,0.95), 0 0 40px rgba(255, 215, 0, 0.4);
    position: relative;
    z-index: 2;
    max-height: calc(100vh - 30px);
    max-height: calc(100dvh - 30px);
    overflow-y: auto;
    animation: zoomIn 0.6s ease-out;
    transition: opacity 0.4s ease, transform 0.6s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.splash-subtitle {
    color: var(--peacock-cyan);
    letter-spacing: 3px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

.splash-couple {
    font-family: 'Cinzel Decorative', serif;
    font-size: 2.2rem;
    color: var(--text-gold);
    margin: 15px 0;
}

.splash-couple span {
    font-family: 'Great Vibes', cursive;
    color: var(--gold-bright);
    font-size: 2.8rem;
    margin: 0 8px;
}

.splash-desc {
    color: #E2B144;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.btn-open-invitation {
    background: var(--gold-shine);
    color: var(--bg-midnight);
    border: 2px solid var(--gold-bright);
    padding: 14px 36px;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0,0,0,0.7), 0 0 20px rgba(255, 215, 0, 0.5);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-open-invitation:hover {
    transform: scale(1.06);
    box-shadow: 0 12px 30px rgba(255, 215, 0, 0.9);
}

/* -----------------------------------------------------------
 * Sticky Header Navigation Bar & Sound Controls
 * ----------------------------------------------------------- */
.sticky-navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background: rgba(3, 10, 25, 0.92);
    border-bottom: 1.5px solid var(--gold-primary);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px max(25px, env(safe-area-inset-right)) 12px max(25px, env(safe-area-inset-left));
    box-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.nav-brand {
    font-family: 'Cinzel Decorative', serif;
    color: var(--gold-bright);
    font-size: 1.05rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-links a {
    color: var(--text-gold);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--gold-bright);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.audio-fab {
    background: var(--gold-shine);
    color: var(--bg-midnight);
    border: 1.5px solid var(--gold-bright);
    border-radius: 30px;
    padding: 7px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.6);
    transition: all 0.3s ease;
}

.audio-fab:hover {
    transform: scale(1.05);
}

.bell-fab {
    background: rgba(0, 168, 150, 0.3);
    color: var(--gold-bright);
    border: 1.5px solid var(--peacock-cyan);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.bell-fab:hover {
    transform: scale(1.1) rotate(15deg);
    background: var(--peacock-cyan);
    color: #fff;
}

/* Top Scroll Progress Indicator */
.scroll-progress-bar {
    position: fixed;
    top: 54px;
    left: 0;
    height: 3px;
    background: var(--gold-foil);
    width: 0%;
    z-index: 999;
    box-shadow: 0 0 8px var(--gold-bright);
}

/* -----------------------------------------------------------
 * Scroll Reveal Transitions
 * ----------------------------------------------------------- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header & Tamil Invocation */
header {
    text-align: center;
    padding: 105px 20px 10px;
}

.tamil-subtext {
    font-family: 'Mukta Malar', sans-serif;
    font-size: 1.75rem;
    color: #F0C456;
    font-weight: 800;
    line-height: 1.5;
    text-shadow: 0 2px 10px rgba(0,0,0,0.95);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 20px 20px 40px;
}

.hero-card {
    max-width: 860px;
    margin: 0 auto;
    min-height: 470px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(5, 12, 32, 0.92) 0%, rgba(5, 12, 32, 0.62) 40%, rgba(5, 12, 32, 0.06) 88%),
        url("../assets/images/peacock-feathers.svg") center / cover no-repeat,
        linear-gradient(145deg, #0C1A3A, #040B1C);
    border: 2px solid var(--gold-primary);
    border-radius: 28px;
    padding: 70px 25px;
    box-shadow: var(--card-shadow), inset 0 0 0 6px rgba(3, 10, 25, 0.55), inset 0 0 0 7px rgba(212, 175, 55, 0.35);
    position: relative;
    overflow: hidden;
}

.hero-card > * { position: relative; z-index: 1; }

.tilt-card { transition: transform 0.25s ease-out; will-change: transform; }

.invitation-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--peacock-cyan);
    font-weight: 700;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.95);
}

.couple-names {
    font-family: 'Cinzel Decorative', serif;
    font-size: 3.2rem;
    color: var(--text-gold);
    text-shadow: 2px 4px 12px rgba(0,0,0,0.9), 0 0 20px rgba(212, 175, 55, 0.4);
    margin: 15px 0;
    line-height: 1.2;
}

.couple-names span {
    display: inline-block;
    background: var(--gold-foil);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Great Vibes', cursive;
    font-size: 4rem;
    margin: 0 12px;
}

.wedding-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(7, 18, 42, 0.95), rgba(3, 10, 25, 0.95));
    color: var(--gold-bright);
    padding: 14px 36px;
    border-radius: 50px;
    border: 2px solid var(--gold-primary);
    font-weight: 600;
    letter-spacing: 2px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.8);
    font-size: 1.05rem;
    margin-top: 15px;
}

/* Section Header */
.section-header-title {
    text-align: center;
    font-family: 'Cinzel Decorative', serif;
    color: var(--gold-bright);
    font-size: 1.9rem;
    margin-bottom: 25px;
    text-shadow: 0 3px 10px rgba(0,0,0,0.8);
}

.section-header-title::after {
    content: '🦚  ✦  🦚';
    display: block;
    font-size: 1.1rem;
    color: var(--peacock-cyan);
    margin-top: 8px;
    letter-spacing: 10px;
}

/* Family Section */
.family-section {
    max-width: 980px;
    margin: 50px auto;
    padding: 0 20px;
}

.family-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 30px;
}

.family-card {
    background: var(--bg-card-grad);
    border: 2px solid var(--gold-primary);
    border-radius: 20px;
    padding: 35px 28px;
    text-align: center;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.family-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--peacock-cyan), var(--gold-bright), var(--peacock-blue));
}

.family-role {
    font-family: 'Cinzel Decorative', serif;
    background: var(--gold-foil);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.parents-label {
    font-size: 0.9rem;
    color: #E2B144;
    margin-bottom: 8px;
}

.parents-names {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-gold);
    line-height: 1.8;
    font-family: 'Playfair Display', serif;
}

.location-subtext {
    font-size: 0.88rem;
    color: #E2B144;
    margin-top: 6px;
}

/* Interactive Divine Sanctum (real golden lamps & Vinayagar) */
.interactive-sanctum {
    --sanctum-gold: #F3B92C;
    position: relative;
    overflow: hidden;
    max-width: 1000px;
    margin: 60px auto;
    padding: 34px 25px 30px;
    background:
        radial-gradient(ellipse at 50% 55%, rgba(0, 120, 130, 0.16) 0%, transparent 60%),
        linear-gradient(180deg, #03142C 0%, #021226 100%);
    border: 2.5px solid var(--sanctum-gold);
    box-shadow: var(--card-shadow), inset 0 0 40px rgba(0, 0, 0, 0.55);
    border-radius: 26px;
    text-align: center;
}

.sanctum-corner {
    position: absolute;
    top: 12px;
    width: 66px;
    height: auto;
    pointer-events: none;
    filter: drop-shadow(0 0 4px rgba(243, 185, 44, 0.35));
}
.sanctum-corner-l { left: 14px; }
.sanctum-corner-r { right: 14px; }

.sanctum-hanging {
    position: absolute;
    top: 0;
    width: 84px;
    height: auto;
    pointer-events: none;
    filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.7));
    transform-origin: 50% 0;
    animation: sanctumSway 6s ease-in-out infinite;
}
.sanctum-hanging-l { left: 10%; transform: translateX(-50%); }
.sanctum-hanging-r { right: 10%; transform: translateX(50%); animation-delay: -3s; }

@keyframes sanctumSway {
    0%, 100% { rotate: -1.2deg; }
    50% { rotate: 1.2deg; }
}

.sanctum-divider {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: min(60%, 420px);
    margin: 0 auto;
}
.sanctum-divider img { width: 40px; height: auto; flex: none; }
.sanctum-divider .sd-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--sanctum-gold));
}
.sanctum-divider .sd-line:last-child { background: linear-gradient(270deg, transparent, var(--sanctum-gold)); }
.sanctum-divider .sd-diamond {
    width: 9px; height: 9px; flex: none;
    background: var(--sanctum-gold);
    transform: rotate(45deg);
}
.sanctum-divider-top { margin-bottom: 14px; }
.sanctum-divider-bottom { margin-top: 30px; }

.sanctum-title {
    position: relative;
    font-family: 'Cinzel Decorative', serif;
    color: var(--sanctum-gold);
    font-size: 1.9rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 18px rgba(243, 185, 44, 0.25);
    margin-bottom: 10px;
}

.sanctum-hint {
    position: relative;
    max-width: 66%;
    margin: 0 auto 26px;
    font-size: 0.9rem;
    color: #F0B93B;
}

.sanctum-flex {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 0 6%;
}

.lamp-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    width: 190px;
    flex: none;
}

/* Lamp box = 140 x 340 design units: 70 units of headroom for the flames
   above a 112 x 270 lamp image. Everything inside is percentage-based so
   it scales cleanly on every screen. */
.lamp-wrapper {
    position: relative;
    width: 140px;
    aspect-ratio: 140 / 340;
}

.real-lamp-img {
    position: absolute;
    left: 10%;
    top: 20.6%;
    width: 80%;
    height: 79.4%;
    object-fit: contain;
    filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.85));
    transition: transform 0.3s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.lamp-card:hover .real-lamp-img {
    transform: scale(1.04);
}

.flame-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.btn-light {
    margin-top: 18px;
    background: linear-gradient(180deg, #F8E08F 0%, #EBC14E 55%, #D9A92F 100%);
    color: #1A1204;
    border: 1px solid #F8DE86;
    padding: 12px 28px;
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.55);
    transition: all 0.3s;
    cursor: pointer;
}

.btn-light:hover {
    transform: scale(1.06);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.9);
}

.ganesha-card {
    position: relative;
    width: 300px;
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    margin-bottom: 34px;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.ganesha-card:hover {
    transform: scale(1.04);
    filter: drop-shadow(0 0 22px rgba(255, 215, 0, 0.45));
}

.real-ganesha-img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 10px 22px rgba(0,0,0,0.85));
    user-select: none;
    -webkit-user-drag: none;
}

.blessing-tag {
    position: absolute;
    bottom: -22px;
    background: linear-gradient(180deg, #F8E08F 0%, #EBC14E 55%, #D9A92F 100%);
    color: #1A1204;
    font-size: 0.95rem;
    padding: 11px 26px;
    border-radius: 30px;
    white-space: nowrap;
    border: 1px solid #F8DE86;
    font-weight: 600;
    box-shadow: 0 6px 15px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.55);
}

.blessing-toast {
    display: none;
    margin-top: 35px;
    padding: 18px;
    background: var(--bg-card-grad);
    color: var(--gold-bright);
    border-radius: 14px;
    border: 2px solid var(--gold-primary);
    font-size: 1rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.7);
    animation: slideUp 0.4s ease-out;
}

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

/* -----------------------------------------------------------
 * Scratch Reveal Photo Gallery (20% Threshold Auto-Reveal)
 * ----------------------------------------------------------- */
.photo-gallery-section {
    max-width: 1100px;
    margin: 70px auto;
    padding: 0 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.photo-card {
    background: var(--bg-card-grad);
    border: 2px solid var(--gold-primary);
    border-radius: 18px;
    padding: 14px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
}

.scratch-container {
    position: relative;
    width: 100%;
    height: 270px;
    border-radius: 14px;
    overflow: hidden;
    border: 1.5px solid var(--gold-primary);
    background: #060E21;
    touch-action: none;
}

.revealed-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.scratch-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    cursor: crosshair;
    transition: opacity 0.6s ease;
}

.scratch-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(3, 10, 25, 0.88);
    color: var(--gold-bright);
    border: 1px solid var(--gold-primary);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 700;
    z-index: 6;
    pointer-events: none;
}

/* Schedule Section */
.schedule-section {
    max-width: 980px;
    margin: 60px auto;
    padding: 0 20px;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 25px;
}

.schedule-card {
    background: var(--bg-card-grad);
    border: 2px solid var(--gold-primary);
    border-radius: 18px;
    padding: 30px;
    box-shadow: var(--card-shadow);
}

.schedule-header {
    font-family: 'Cinzel Decorative', serif;
    color: var(--gold-bright);
    font-size: 1.3rem;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.schedule-header i { color: var(--peacock-cyan); }

.timeline-item {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 16px;
    align-items: flex-start;
}

.timeline-time {
    background: rgba(0, 168, 150, 0.2);
    border: 1px solid var(--peacock-cyan);
    color: var(--gold-bright);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.timeline-desc {
    min-width: 0;
    flex: 1 1 0;
    overflow-wrap: anywhere;
    font-size: 0.95rem;
    color: var(--text-gold);
    line-height: 1.5;
}

/* Venue Section */
.venue-section {
    max-width: 980px;
    margin: 70px auto;
    padding: 0 20px;
}

.venue-card {
    background: var(--bg-card-grad);
    border-radius: 22px;
    border: 2px solid var(--gold-primary);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.venue-header {
    background: var(--gold-shine);
    color: var(--bg-midnight);
    padding: 22px;
    text-align: center;
}

.venue-header h3 {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.55rem;
    font-weight: 800;
}

.venue-body {
    padding: 35px 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.venue-details p {
    margin-bottom: 18px;
    font-size: 1rem;
    color: var(--text-gold);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    line-height: 1.6;
}

.venue-details i {
    color: var(--gold-bright);
    font-size: 1.3rem;
    margin-top: 3px;
}

.btn-location {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--gold-shine);
    color: var(--bg-midnight);
    padding: 13px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    border: 1px solid var(--gold-bright);
    box-shadow: 0 6px 18px rgba(0,0,0,0.6);
    transition: transform 0.3s;
    margin-top: 10px;
}

.btn-location:hover { transform: scale(1.05); }

.map-frame-container {
    width: 100%; height: 260px;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--gold-primary);
}

.map-frame-container iframe {
    width: 100%; height: 100%;
    border: 0;
}

/* Countdown Section */
.countdown-section {
    background: linear-gradient(180deg, rgba(12, 26, 58, 0.9) 0%, rgba(3, 10, 25, 0.98) 100%);
    color: #FFF;
    padding: 60px 20px;
    text-align: center;
    margin-top: 70px;
    border-top: 3px solid var(--gold-primary);
    border-bottom: 3px solid var(--gold-primary);
}

.countdown-title {
    font-family: 'Cinzel Decorative', serif;
    color: var(--gold-bright);
    font-size: 1.7rem;
    margin-bottom: 30px;
}

.timer-grid {
    display: flex;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
}

.time-card {
    background: rgba(3, 10, 25, 0.85);
    border: 2px solid var(--gold-primary);
    padding: 18px 22px;
    border-radius: 16px;
    min-width: 100px;
}

.time-card span {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gold-bright);
}

.time-card label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #E2B144;
    font-weight: 600;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    background: #02050E;
    color: var(--gold-primary);
    font-size: 0.9rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

footer p { margin-bottom: 8px; }
.footer-sub { color: #E2B144; font-size: 0.8rem; }

/* Responsive Adjustments */
@media (max-width: 960px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .tamil-subtext { font-size: 1.3rem; }
    .nav-links { display: none; }
    .venue-body { grid-template-columns: 1fr; }
    .hero-card { min-height: 400px; padding: 50px 16px; }
    .couple-names { font-size: 2.2rem; }
    .couple-names span { font-size: 3.2rem; }
    /* Keep Lamp 1 | Vinayagar | Lamp 2 in one horizontal row on mobile */
    .sanctum-flex { flex-direction: row; flex-wrap: nowrap; justify-content: center; align-items: center; gap: 6px; padding: 0; }
    .lamp-card { width: 27%; flex: 0 1 27%; min-width: 0; }
    .lamp-wrapper { width: 100%; }
    .btn-light { padding: 7px 8px; font-size: 0.62rem; margin-top: 8px; }
    .ganesha-card { width: 42%; flex: 0 1 42%; min-width: 0; margin-bottom: 26px; }
    .blessing-tag { font-size: 0.62rem; padding: 6px 10px; bottom: -18px; }
    .sanctum-hint { max-width: 100%; font-size: 0.8rem; }
    .sanctum-corner { width: 40px; top: 8px; }
    .sanctum-corner-l { left: 10px; } .sanctum-corner-r { right: 10px; }
    .sanctum-hanging { width: 46px; }
    .sanctum-hanging-l { left: 8%; } .sanctum-hanging-r { right: 8%; }
    .sanctum-divider { width: 70%; }
    .sanctum-divider img { width: 30px; }
    .sanctum-title { padding: 0 34px; }
}
}

/* -----------------------------------------------------------
 * Site-wide peacock mandala backdrop (fixed, never affects layout)
 * ----------------------------------------------------------- */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 50% 45%, rgba(3, 10, 25, 0.72) 0%, rgba(3, 10, 25, 0.5) 45%, rgba(3, 10, 25, 0.22) 100%),
        url("../assets/images/mandala-tile.jpg") center top / auto 100% repeat-x;
}

/* Falling flowers & peacock feathers (Vinayagar blessing) */
#blessing-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 900;
}

/* -----------------------------------------------------------
 * Phone & tablet refinements
 * ----------------------------------------------------------- */
@media (max-width: 480px) {
    .sticky-navbar { padding-top: 10px; padding-bottom: 10px; }
    .nav-brand { font-size: 0.85rem; }
    .nav-controls { gap: 8px; }
    .audio-fab { padding: 6px 12px; font-size: 0.78rem; }
    .bell-fab { width: 34px; height: 34px; font-size: 0.9rem; }
    .scroll-progress-bar { top: 50px; }
    header { padding-top: 90px; }
    .splash-card { padding: 30px 18px; }
    .splash-couple { font-size: 1.7rem; }
    .splash-couple span { font-size: 2.2rem; }
    .btn-open-invitation { padding: 12px 20px; font-size: 0.9rem; text-align: center; }
    .section-header-title, .sanctum-title { font-size: 1.5rem; }
    .interactive-sanctum { padding: 35px 15px; margin: 40px 12px; }
    .family-card, .schedule-card { padding: 26px 18px; }
    .schedule-header { font-size: 1.1rem; }
    .venue-body { padding: 25px 16px; }
    .btn-location { padding: 12px 18px; font-size: 0.88rem; }
    .countdown-title { font-size: 1.35rem; }
    .timer-grid { gap: 12px; }
    .time-card { min-width: 70px; padding: 14px 12px; }
    .time-card span { font-size: 1.9rem; }
    .gallery-grid { gap: 12px; }
    .photo-card { padding: 8px; border-radius: 14px; }
    .scratch-container { height: 190px; }
}

@media (max-width: 360px) {
    .nav-brand { display: none; }
    .nav-controls { width: 100%; justify-content: space-between; }
    .scroll-progress-bar { top: 50px; }
}

/* Short landscape phones */
@media (max-height: 520px) {
    .splash-card { padding: 20px 24px; }
    .splash-couple { font-size: 1.6rem; margin: 6px 0; }
    .splash-desc { margin-bottom: 14px; }
    .hero-card { min-height: 0; }
}

/* Respect "reduce motion" settings */
@media (prefers-reduced-motion: reduce) {
    .splash-art { animation: none; }
    .reveal-on-scroll { transition-duration: 0.01s; }
}
