/* ==========================================================================
   Dinesh & Madhu - Luxury Wedding Invitation Theme
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS VARIABLES & DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
    --ivory: #FDFDFD;
    --sky: #95D5FD;
    --sky-deep: #4FA3E3;
    --sky-pale: #E4F4FF;
    --ink: #33475A;

    --color-white-pure: var(--ivory);
    --color-white-card: #FFFFFF;
    --color-sky-blue: var(--sky);
    --color-sky-deep: var(--sky-deep);
    --color-sky-pale: var(--sky-pale);
    --color-ink: var(--ink);

    --color-blue-dark: #0A243F;
    --color-blue-royal: #18507A;
    --color-blue-light: var(--sky-pale);

    --color-text-primary: var(--ink);
    --color-text-subtle: #4FA3E3;
    --color-text-muted: #64748B;

    /* Clean Non-Cursive Fonts */
    --font-heading: 'Cinzel', 'Cormorant Garamond', Georgia, serif;
    --font-subheading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Jost', sans-serif;

    --transition-fast: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 1.2s cubic-bezier(0.16, 1, 0.3, 1);

    --shadow-card: 0 15px 35px rgba(149, 213, 253, 0.3), 0 2px 10px rgba(51, 71, 90, 0.05);
    --shadow-blue-glow: 0 10px 30px rgba(149, 213, 253, 0.35);

    --border-sky-subtle: 1px solid rgba(149, 213, 253, 0.6);
    --border-sky-bright: 2px solid var(--sky);

    --max-width: 1100px;
    --nav-height: 70px;
}

/* --------------------------------------------------------------------------
   2. RESET & BASE STYLES
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    background: #F5F9FF;
    color: var(--ink);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* ---- Global Watercolor Floral Background (fixed, low opacity) ---- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/hero_wedding_blue_bg.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.45;
    z-index: 0;
    pointer-events: none;
}

/* Canvas Overlay for Falling Petals */
#petals-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 2;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
    outline: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

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

.font-gold {
    color: var(--sky-deep);
}

.cursive-text {
    font-family: var(--font-subheading);
    font-style: italic;
    font-size: 2.2rem;
    color: var(--sky-deep);
    line-height: 1.2;
    display: inline-block;
}

.hidden {
    display: none !important;
}

/* --------------------------------------------------------------------------
   3. DRIFTING AMBIENT FIELD (MOTES)
   -------------------------------------------------------------------------- */
.field {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.mote {
    position: absolute;
    bottom: -40px;
    border-radius: 50%;
    background: var(--sky);
    opacity: 0;
    animation-name: drift;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(0.6);
        opacity: 0;
    }

    8% {
        opacity: .55;
    }

    50% {
        transform: translate(var(--dx), -52vh) scale(1);
        opacity: .35;
    }

    92% {
        opacity: .15;
    }

    100% {
        transform: translate(calc(var(--dx) * 1.6), -108vh) scale(0.5);
        opacity: 0;
    }
}

/* --------------------------------------------------------------------------
   4. TOP NAVIGATION & FLOATING CONTROLS
   -------------------------------------------------------------------------- */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 100;
    background: rgba(253, 253, 253, 0.92);
    border-bottom: 1px solid rgba(149, 213, 253, 0.5);
    box-shadow: 0 4px 20px rgba(149, 213, 253, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all var(--transition-fast);
}

.top-nav.scrolled {
    background: rgba(253, 253, 253, 0.98);
    border-bottom: 2px solid var(--sky);
    box-shadow: 0 4px 20px rgba(51, 71, 90, 0.08);
}

.nav-brand {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--sky-deep);
    text-transform: uppercase;
}

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

.nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 30px;
    background: var(--sky-pale);
    border: 1px solid var(--sky);
    color: var(--ink);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.nav-btn:hover {
    background: var(--sky);
    color: var(--ink);
    box-shadow: 0 0 12px var(--shadow-blue-glow);
    transform: translateY(-2px);
}

.nav-btn-gold {
    background: var(--sky-deep);
    color: #FFFFFF;
    font-weight: 600;
    border: none;
}

.nav-btn-gold:hover {
    background: var(--ink);
    box-shadow: 0 4px 15px rgba(51, 71, 90, 0.25);
    transform: translateY(-2px);
}

/* Sound Wave Animation */
.sound-wave {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 12px;
}

.sound-wave span {
    width: 2px;
    height: 100%;
    background-color: var(--sky-deep);
    border-radius: 1px;
    animation: wave 1.2s infinite ease-in-out alternate;
}

.sound-wave span:nth-child(1) {
    animation-delay: 0.2s;
}

.sound-wave span:nth-child(2) {
    animation-delay: 0.4s;
}

.sound-wave span:nth-child(3) {
    animation-delay: 0.6s;
}

.paused .sound-wave span {
    animation-play-state: paused;
    height: 3px;
}

@keyframes wave {
    0% {
        height: 3px;
    }

    100% {
        height: 14px;
    }
}

/* Floating Navigation Indicator (Dots) */
.section-indicator {
    position: fixed;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 90;
}

.nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(149, 213, 253, 0.4);
    border: 1px solid var(--sky);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-dot:hover,
.nav-dot.active {
    background: var(--sky-deep);
    border-color: var(--ink);
    box-shadow: 0 0 12px var(--sky);
    transform: scale(1.35);
}

.nav-dot::after {
    content: attr(data-title);
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    background: #FFFFFF;
    color: var(--ink);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
    border: var(--border-sky-subtle);
    box-shadow: 0 4px 12px rgba(51, 71, 90, 0.1);
}

.nav-dot:hover::after {
    opacity: 1;
}

/* --------------------------------------------------------------------------
   5. HERO SECTION & TAP TO OPEN GATE STAGE
   -------------------------------------------------------------------------- */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
}

.stage {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    background: transparent;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Arch ornaments */
.ornament {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: min(86vw, 640px);
    height: auto;
    z-index: 2;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-section.opened .ornament {
    opacity: 1;
}

.ornament.top {
    top: 6%;
}

.ornament.bottom {
    bottom: 6%;
    transform: translateX(-50%) scaleY(-1);
}

/* --------------------------------------------------------------------------
   5b. TEMPLE BACKDROP & INTERACTIVE DOOR
   -------------------------------------------------------------------------- */

/* Full-screen temple container that sits on top of the gate panels */
.temple-backdrop {
    position: absolute;
    inset: 0;
    z-index: 9;
    /* above gates (z:8), below seal (z:10) */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #F5F9FF;
    /* matches body bg */
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center center;
}

/* When hero is opened, fade + scale up the temple */
.hero-section.opened .temple-backdrop {
    opacity: 0;
    transform: scale(1.06);
    pointer-events: none;
}

/* Temple image — centred, contain so full temple is always visible */
.temple-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 100%;
    width: auto;
    max-width: none;
    max-height: 100%;
    object-fit: contain;
    object-position: center bottom;
    user-select: none;
    pointer-events: none;
}

/* On screens where the image is narrower than viewport, show it full */
@media (max-aspect-ratio: 9/16) {
    .temple-img {
        width: 100%;
        height: auto;
    }
}

/* Ambient vignette — darkens edges, keeps focus on temple */
.temple-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 80% at 50% 50%,
            transparent 40%,
            rgba(26, 56, 90, 0.18) 100%);
    pointer-events: none;
    z-index: 1;
}

/* ─── Top greeting text ─── */
.temple-top-text {
    position: absolute;
    top: clamp(22px, 5vh, 50px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    animation: floatIn 1s ease both;
}

.temple-om {
    font-size: clamp(1.4rem, 3vw, 2rem);
    filter: drop-shadow(0 2px 6px rgba(79, 163, 227, 0.4));
}

.temple-invite-label {
    position: absolute;
    bottom: clamp(74px, 10vh, 112px);
    /* Positioned cleanly above the bottom flower toggle control */
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    animation: floatIn 1s ease 0.3s both;
    pointer-events: none;
    white-space: nowrap;
}

.temple-invite-sub {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(1.6rem, 4.5vw, 2.6rem);
    letter-spacing: 0.04em;
    text-transform: none;
    color: #ffffff;
    font-weight: 400;
    background: rgba(10, 36, 63, 0.42);
    border-radius: 999px;
    border: 1px solid rgba(253, 238, 163, 0.32);
    padding: 2px 18px;
    text-shadow:
        0 2px 10px rgba(10, 36, 63, 0.92),
        0 0 22px rgba(79, 163, 227, 0.7);
}

.temple-invite-names {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.5rem, 5vw, 2.8rem);
    font-weight: 700;
    font-style: italic;
    letter-spacing: 0.06em;
    color: #0A243F;
    /* Gold gradient ribbon banner */
    background: linear-gradient(135deg,
            #c8971a 0%,
            #f5d67a 30%,
            #fdeea3 50%,
            #f5d67a 70%,
            #c8971a 100%);
    padding: 10px 40px 10px 40px;
    /* Ribbon notch shape using clip-path */
    clip-path: polygon(0% 0%,
            100% 0%,
            100% 75%,
            92% 100%,
            50% 82%,
            8% 100%,
            0% 75%);
    box-shadow:
        0 6px 24px rgba(200, 151, 26, 0.55),
        0 2px 8px rgba(10, 36, 63, 0.3);
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(10, 36, 63, 0.25);
    min-width: clamp(180px, 45vw, 320px);
}

.temple-invite-names span {
    color: var(--sky-deep);
    font-style: italic;
    font-family: 'Cormorant Garamond', serif;
}

/* ─── Names badge (floating over the door area) ─── */
.temple-names-badge {
    position: absolute;
    /* Positioned to float just above the doorway in the image —
       roughly 55% from top where the door arch begins */
    top: 52%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(253, 253, 253, 0.80);
    border: 1.5px solid rgba(149, 213, 253, 0.85);
    border-radius: 40px;
    padding: 7px 22px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 8px 24px rgba(149, 213, 253, 0.25);
    pointer-events: none;
    animation: floatIn 1.1s ease 0.2s both;
    white-space: nowrap;
}

.temple-name-d,
.temple-name-m {
    font-family: var(--font-heading);
    font-size: clamp(14px, 2.2vw, 22px);
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--sky-deep);
    text-transform: uppercase;
}

.temple-name-amp {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(16px, 2.5vw, 26px);
    font-style: italic;
    color: var(--sky-deep);
    font-weight: 400;
}

/* ─── Interactive Temple Door Button ─── */
.temple-door-btn {
    position: absolute;
    /* The door in the 9:16 image occupies roughly:
       - horizontal: centre 18% width
       - vertical:   55% to 85% from top
       We use percentage positioning so it scales responsively */
    left: 50%;
    top: 60%;
    transform: translate(-50%, -50%);
    width: clamp(90px, 16vw, 160px);
    height: clamp(130px, 24vw, 240px);
    z-index: 5;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 12px;
    gap: 0;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    transition: transform 0.3s ease;
}

/* Expand tap area on mobile */
@media (max-width: 600px) {
    .temple-door-btn {
        width: clamp(100px, 28vw, 160px);
        height: clamp(140px, 36vw, 220px);
    }
}

.temple-door-btn:hover {
    transform: translate(-50%, -50%) scale(1.04);
}

.temple-door-btn:active {
    transform: translate(-50%, -50%) scale(0.97);
}

/* Animated pulsing glow ring centred on the door */
.door-glow-ring {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1.5px solid rgba(149, 213, 253, 0.7);
    box-shadow: 0 0 0 0 rgba(79, 163, 227, 0.5);
    animation: doorPulse 2.2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes doorPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(79, 163, 227, 0.5);
        border-color: rgba(149, 213, 253, 0.7);
    }

    50% {
        box-shadow: 0 0 0 12px rgba(79, 163, 227, 0);
        border-color: rgba(149, 213, 253, 1);
    }
}

/* Tap hint chip at the bottom of the hotspot */
.door-tap-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(253, 253, 253, 0.88);
    border: 1px solid rgba(149, 213, 253, 0.9);
    border-radius: 20px;
    padding: 5px 14px;
    font-family: var(--font-body);
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--sky-deep);
    font-weight: 600;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 4px 12px rgba(79, 163, 227, 0.2);
    white-space: nowrap;
    animation: tapHintBounce 2s ease-in-out infinite;
    pointer-events: none;
    position: relative;
    z-index: 1;
}

.door-tap-hint i {
    font-size: 11px;
    color: var(--sky-deep);
}

@keyframes tapHintBounce {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.85;
    }

    50% {
        transform: translateY(4px);
        opacity: 1;
    }
}

/* ─── Bottom date strip ─── */
.temple-date-strip {
    position: absolute;
    bottom: clamp(18px, 4.5vh, 45px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    pointer-events: none;
    animation: floatIn 1.1s ease 0.3s both;
}

.temple-date-text {
    font-family: var(--font-heading);
    font-size: clamp(12px, 1.8vw, 17px);
    letter-spacing: 0.2em;
    color: var(--ink);
    background: rgba(253, 253, 253, 0.82);
    padding: 6px 22px;
    border-radius: 30px;
    border: 1px solid rgba(149, 213, 253, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    white-space: nowrap;
}

/* Shared entrance animation */
@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* temple-top-text uses inline flex so different from floatIn's translateX */
.temple-top-text {
    animation: fadeUp 1s ease both;
}

.temple-names-badge {
    animation: fadeIn 1.1s ease 0.2s both;
}

.temple-date-strip {
    animation: fadeIn 1.1s ease 0.35s both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translate(-50%, 10px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* --------------------------------------------------------------------------
   5c. CIRCULAR SEAL BUTTON (temple door CTA)
   -------------------------------------------------------------------------- */
.temple-seal-btn {
    position: absolute;
    left: 50%;
    /* Vertically centred over the door opening in the 9:16 image */
    top: 68%;
    transform: translate(-50%, -50%);
    width: clamp(140px, 24vw, 190px);
    height: clamp(140px, 24vw, 190px);
    z-index: 5;
    background: transparent;
    border: none;
    cursor: pointer;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.temple-seal-btn:hover {
    transform: translate(-50%, -50%) scale(1.08);
}

.temple-seal-btn:active {
    transform: translate(-50%, -50%) scale(0.95);
}

/* Expand touch area on small screens */
@media (max-width: 600px) {
    .temple-seal-btn {
        width: clamp(130px, 38vw, 180px);
        height: clamp(130px, 38vw, 180px);
        top: 70%;
    }
}

/* The SVG diamond that slowly rotates */
.seal-diamond-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    animation: sealRotate 20s linear infinite;
    filter: drop-shadow(0 0 10px rgba(200, 151, 26, 0.5));
}

/* Pause rotation on hover */
.temple-seal-btn:hover .seal-diamond-svg {
    animation-play-state: paused;
}

/* Static (Non-rotating) Inner Container */
.seal-inner-static {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    pointer-events: none;
    padding: 10px;
}

/* Om symbol */
.seal-om-icon {
    font-size: clamp(1.6rem, 3.8vw, 2.4rem);
    line-height: 1;
    color: #fdeea3;
    background: linear-gradient(135deg, #c8971a 0%, #f5d67a 40%, #fdeea3 60%, #c8971a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px rgba(200, 151, 26, 0.8)) drop-shadow(0 0 12px rgba(253, 238, 163, 0.9));
    animation: sealOmPulse 2.8s ease-in-out infinite;
}

/* High-contrast TAP TO OPEN Pill Badge */
.seal-tap-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #0A243F 0%, #18507A 100%);
    color: #fdeea3;
    border: 1.5px solid #f5d67a;
    border-radius: 20px;
    padding: 5px 14px;
    font-family: 'Cinzel', serif;
    font-size: clamp(10px, 1.6vw, 12px);
    font-weight: 700;
    letter-spacing: 2px;
    box-shadow: 0 4px 16px rgba(10, 36, 63, 0.7), 0 0 14px rgba(245, 214, 122, 0.5);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
    animation: tapBadgePulse 2s ease-in-out infinite;
    white-space: nowrap;
}

.seal-tap-badge .tap-icon {
    font-size: 11px;
    color: #f5d67a;
    animation: handTap 1.5s ease-in-out infinite;
}

@keyframes tapBadgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 16px rgba(10, 36, 63, 0.7), 0 0 14px rgba(245, 214, 122, 0.5);
    }
    50% {
        transform: scale(1.06);
        box-shadow: 0 6px 22px rgba(10, 36, 63, 0.9), 0 0 22px rgba(245, 214, 122, 0.85);
    }
}

@keyframes handTap {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-2px) scale(1.25);
    }
}

@keyframes sealOmPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.95;
    }

    50% {
        transform: scale(1.12);
        opacity: 1;
    }
}

@keyframes sealRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Pulsing diamond-shaped glow rings */
.seal-pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: transparent;
    border: 1px solid rgba(200, 151, 26, 0.5);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    animation: sealPulseRing 2.6s ease-out infinite;
}

.seal-pulse-1 {
    animation-delay: 0s;
}

.seal-pulse-2 {
    animation-delay: 1.3s;
}

@keyframes sealPulseRing {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    70% {
        transform: scale(1.28);
        opacity: 0;
    }

    100% {
        transform: scale(1.28);
        opacity: 0;
    }
}

/* --------------------------------------------------------------------------
   5d. CONFETTI CANVAS
   -------------------------------------------------------------------------- */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 200;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#confetti-canvas.active {
    opacity: 1;
}


.seal-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
    gap: 4px;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.seal {
    width: min(36vw, 190px);
    height: min(36vw, 190px);
    border-radius: 50%;
    border: 1.5px solid var(--sky-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(253, 253, 253, 0.88);
    box-shadow: 0 0 0 6px var(--sky-pale), 0 10px 30px rgba(149, 213, 253, 0.3);
    animation: sealPulse 2.4s ease-in-out infinite;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 15px;
    text-align: center;
}

.seal-wrap:hover .seal {
    transform: scale(1.06);
    box-shadow: 0 0 0 10px var(--sky-pale), 0 15px 40px rgba(79, 163, 227, 0.4);
}

@keyframes sealPulse {

    0%,
    100% {
        box-shadow: 0 0 0 6px var(--sky-pale);
    }

    50% {
        box-shadow: 0 0 0 12px var(--sky-pale);
    }
}

.seal-mark {
    font-family: var(--font-heading);
    font-size: clamp(14px, 2.2vw, 20px);
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--sky-deep);
    line-height: 1.4;
    text-transform: uppercase;
    text-align: center;
}

.seal-tap-prompt {
    font-family: var(--font-body);
    font-size: 12px;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--sky-deep);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(228, 244, 255, 0.85);
    padding: 6px 18px;
    border-radius: 20px;
    border: 1px solid var(--sky);
    animation: tapPulse 2s infinite ease-in-out;
}

@keyframes tapPulse {

    0%,
    100% {
        opacity: 0.7;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(4px);
    }
}

/* Seal mark text styling */
.seal-mark {
    text-align: center;
    line-height: 1.4;
}

.seal-name-line {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(13px, 2vw, 18px);
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--sky-deep);
    text-transform: uppercase;
}

.seal-amp-line {
    display: block;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(18px, 3vw, 26px);
    font-weight: 400;
    font-style: italic;
    color: var(--sky-deep);
    line-height: 1.2;
    margin: 2px 0;
}

/* Decorative heart divider below the seal circle */
.seal-divider-heart {
    width: min(55vw, 280px);
    margin: 10px 0 2px;
}

.seal-divider-heart svg,
.seal-divider-small svg {
    width: 100%;
    height: auto;
    display: block;
}

/* "You are Invited" italic text */
.seal-invited-text {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.6rem, 3.8vw, 2.6rem);
    font-style: italic;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: 1px;
    line-height: 1.2;
    margin: 4px 0 4px;
}

/* Small ornamental line divider below the invited text */
.seal-divider-small {
    width: min(42vw, 200px);
    margin: 2px 0 12px;
}

/* Gate panels */
.gate {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    background-image: url('../images/hero_wedding_blue_bg.jpg');
    background-size: 200% 100%;
    background-color: #F5F9FF;
    z-index: 8;
    display: flex;
    align-items: center;
    transition: transform 1.4s cubic-bezier(.65, 0, .35, 1);
    pointer-events: none;
}

.gate::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(245, 249, 255, 0.55);
    pointer-events: none;
}

.gate.left {
    left: 0;
    justify-content: flex-end;
    border-right: 1.5px solid var(--sky);
    background-position: left center;
}

.gate.right {
    right: 0;
    justify-content: flex-start;
    border-left: 1.5px solid var(--sky);
    background-position: right center;
}

.gate-pattern {
    width: 100%;
    height: 70%;
    background-image: repeating-linear-gradient(135deg,
            transparent 0px,
            transparent 26px,
            var(--sky-pale) 26px,
            var(--sky-pale) 27px);
    -webkit-mask-image: radial-gradient(circle at center, black 60%, transparent 100%);
    mask-image: radial-gradient(circle at center, black 60%, transparent 100%);
    opacity: .75;
}

/* WHEN HERO HAS .opened CLASS */
.hero-section.opened .seal-wrap {
    animation: sealCrack 0.6s ease forwards;
    pointer-events: none;
}

@keyframes sealCrack {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.12);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.25);
        opacity: 0;
        visibility: hidden;
    }
}

.hero-section.opened .gate.left {
    transform: translateX(-100%);
}

.hero-section.opened .gate.right {
    transform: translateX(100%);
}

/* Revealed Content */
.reveal {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 72px 6vw 96px;
    max-width: 900px;
    width: 100%;
}

.reveal>* {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-section.opened .reveal .hero-couple-portrait {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.hero-section.opened .reveal .eyebrow {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.hero-section.opened .reveal .names {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.8s;
}

.hero-section.opened .reveal .divider {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1.1s;
}

.hero-section.opened .reveal .tagline {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1.4s;
}

.hero-section.opened .reveal .hero-date-box {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1.7s;
}

.hero-section.opened .scroll-cue {
    opacity: 1;
    transform: translate(-50%, 0);
    transition-delay: 2.1s;
}

.eyebrow {
    font-size: clamp(11px, 1.4vw, 13px);
    letter-spacing: .35em;
    text-transform: uppercase;
    color: var(--sky-deep);
    font-weight: 600;
}

.names {
    margin: .4em 0 .2em;
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5.5vw, 4.2rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    line-height: 1.25;
    color: var(--ink);
}

.names .heart {
    display: inline-block;
    color: var(--sky-deep);
    padding: 0 .2em;
    font-size: 0.8em;
    animation: beat 1.8s ease-in-out infinite;
    animation-delay: 3s;
}

@keyframes beat {

    0%,
    100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.18);
    }

    40% {
        transform: scale(0.96);
    }
}

.divider {
    width: min(46vw, 220px);
    height: 10px;
    margin: .4em 0;
}

.divider svg {
    width: 100%;
    height: 100%;
    display: block;
}

.tagline {
    font-family: var(--font-subheading);
    font-style: italic;
    font-size: clamp(16px, 2.2vw, 22px);
    color: var(--ink);
    margin-bottom: 20px;
}

.hero-date-box {
    margin-top: 15px;
    padding: 15px 35px;
    background: #FFFFFF;
    border: var(--border-sky-bright);
    border-radius: 50px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.date-main {
    font-family: var(--font-body);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--ink);
}

.muhurtham-tag {
    font-size: 0.9rem;
    color: var(--sky-deep);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 1px;
    font-weight: 500;
}

.muhurtham-tag i {
    color: var(--sky-deep);
}

.scroll-cue {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translate(-50%, 0);
    z-index: 6;
    font-size: 11px;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--sky-deep);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.8s ease 2.1s;
}

.cue-arrow {
    font-size: 12px;
}

/* --------------------------------------------------------------------------
   6. GENERAL CONTENT SECTION & HEADINGS
   -------------------------------------------------------------------------- */
.content-section {
    padding: 100px 0;
    position: relative;
    z-index: 3;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-num {
    font-family: var(--font-body);
    font-size: 3.2rem;
    font-weight: 700;
    color: rgba(149, 213, 253, 0.4);
    display: block;
    line-height: 1;
    margin-bottom: -22px;
}

.section-title {
    font-family: var(--font-body);
    font-size: clamp(1.8rem, 3.8vw, 2.8rem);
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--ink);
    text-transform: uppercase;
}

.cursive-subtitle-wrap {
    margin-top: 5px;
}

.subtitle-plain {
    font-family: var(--font-subheading);
    font-size: 1.4rem;
    color: var(--color-text-muted);
    font-style: italic;
}

.section-subtitle {
    margin-top: 5px;
}

.ornamental-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.ornamental-divider .line {
    width: 60px;
    height: 1.5px;
    background: linear-gradient(to right, transparent, var(--sky), transparent);
}

.ornamental-divider .om-symbol {
    font-size: 1.2rem;
    color: var(--sky-deep);
}

/* --------------------------------------------------------------------------
   7. SECTION 01 – OUR SPECIAL DAY & COUPLE PORTRAIT
   -------------------------------------------------------------------------- */
.special-day-section {
    background: transparent;
}

.couple-portrait-wrapper {
    text-align: center;
    margin-bottom: 35px;
}

/* Hero reveal portrait (top of the opened invitation) */
.hero-couple-portrait {
    margin-bottom: 18px;
    display: flex;
    justify-content: center;
}

.hero-couple-frame {
    display: inline-block;
    width: clamp(180px, 32vw, 240px);
    height: clamp(180px, 32vw, 240px);
    border-radius: 50%;
    padding: 6px;
    background: linear-gradient(135deg, #FFFFFF 0%, var(--sky) 50%, var(--sky-deep) 100%);
    box-shadow: 0 15px 40px rgba(149, 213, 253, 0.45), 0 4px 15px rgba(51, 71, 90, 0.08);
    transition: transform var(--transition-smooth);
    animation: portraitFloat 3.5s ease-in-out infinite;
    animation-delay: 3s;
}

.hero-couple-frame:hover {
    transform: scale(1.05);
}

.hero-couple-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: contain;
    /* show full illustration — no cropping */
    object-position: center bottom;
    background: #E4F4FF;
    /* pale sky to fill any transparent gaps */
    border: 3px solid #FFFFFF;
    display: block;
}

@keyframes portraitFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.couple-avatar-frame {
    display: inline-block;
    width: 270px;
    height: 270px;
    border-radius: 50%;
    padding: 8px;
    background: linear-gradient(135deg, #FFFFFF 0%, var(--sky) 50%, var(--sky-deep) 100%);
    box-shadow: 0 15px 35px rgba(149, 213, 253, 0.4), 0 4px 15px rgba(51, 71, 90, 0.08);
    transition: transform var(--transition-smooth);
}

.couple-avatar-frame:hover {
    transform: scale(1.04);
}

.couple-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #FFFFFF;
}

.special-day-card {
    max-width: 750px;
    margin: 0 auto;
    background: #FFFFFF;
    border: var(--border-sky-bright);
    border-radius: 24px;
    padding: 45px 30px;
    box-shadow: var(--shadow-card);
    text-align: center;
    position: relative;
}

.special-day-card::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px dashed rgba(149, 213, 253, 0.6);
    border-radius: 18px;
    pointer-events: none;
}

.special-day-desc {
    font-family: var(--font-subheading);
    font-size: clamp(1.2rem, 2.2vw, 1.6rem);
    line-height: 1.7;
    color: var(--ink);
    margin-bottom: 25px;
}

.date-highlight-display {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 12px 32px;
    border-radius: 40px;
    background: var(--sky-pale);
    border: var(--border-sky-subtle);
}

.date-highlight-display .date-num {
    font-family: var(--font-body);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--ink);
}

.date-highlight-display .date-sep {
    font-size: 1.5rem;
    color: var(--sky-deep);
}

/* --------------------------------------------------------------------------
   8. SECTION 02 – SAVE THE DATE
   -------------------------------------------------------------------------- */
.events-section {
    background: transparent;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.event-card {
    background: #FFFFFF;
    border: var(--border-sky-subtle);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.event-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--sky);
    box-shadow: 0 20px 40px rgba(149, 213, 253, 0.4);
}

.event-card-header {
    text-align: center;
    margin-bottom: 25px;
}

.event-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    background: var(--sky-pale);
    color: var(--sky-deep);
    font-size: 0.75rem;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 12px;
}

.badge-gold {
    background: var(--sky-deep);
    color: #FFFFFF;
}

.event-title {
    font-family: var(--font-body);
    font-size: 2rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 15px;
}

.event-icon-wrapper {
    width: 60px;
    height: 60px;
    margin: 0 auto;
    border-radius: 50%;
    background: var(--sky-pale);
    border: var(--border-sky-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--sky-deep);
}

.wedding-img-frame {
    width: 75px;
    height: 75px;
    padding: 0;
    overflow: hidden;
    border: 2.5px solid #c8971a;
    box-shadow: 0 4px 18px rgba(200, 151, 26, 0.45), 0 0 20px rgba(245, 214, 122, 0.35);
    background: #0A243F;
}

.wedding-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
    transition: transform var(--transition-smooth);
}

.event-card:hover .wedding-card-img {
    transform: scale(1.12);
}

.floating-icon {
    animation: gentleFloat 4s infinite ease-in-out;
}

@keyframes gentleFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.event-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    text-align: left;
}

.event-detail-item i {
    font-size: 1.2rem;
    color: var(--sky-deep);
    margin-top: 4px;
}

.detail-label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

.detail-value {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--ink);
}

.detail-sub {
    font-size: 0.95rem;
    font-weight: 600;
}

/* Button Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all var(--transition-fast);
    width: 100%;
}

.btn-outline {
    border: var(--border-sky-bright);
    color: var(--ink);
    background: #FFFFFF;
}

.btn-outline:hover {
    border-color: var(--sky-deep);
    background: var(--sky-pale);
    color: var(--ink);
    box-shadow: 0 4px 15px rgba(149, 213, 253, 0.4);
}

.btn-gold,
.btn-primary {
    background: var(--sky-deep);
    color: #FFFFFF;
    border: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(79, 163, 227, 0.3);
}

.btn-gold:hover,
.btn-primary:hover {
    background: var(--ink);
    box-shadow: 0 6px 20px rgba(51, 71, 90, 0.3);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   9. SECTION 03 – JOIN US / VENUE
   -------------------------------------------------------------------------- */
.venue-section {
    background: transparent;
}

.venue-content-box {
    max-width: 900px;
    margin: 0 auto;
    background: #FFFFFF;
    border: var(--border-sky-bright);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-card);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.venue-info {
    text-align: left;
}

.venue-tag {
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
    color: var(--sky-deep);
}

.venue-name {
    font-family: var(--font-body);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.3;
    margin-bottom: 15px;
}

.venue-address {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.venue-address i {
    color: var(--sky-deep);
    margin-top: 4px;
}

.venue-action {
    display: flex;
    gap: 15px;
}

.open-map-btn {
    width: auto;
    padding: 12px 28px;
}

.map-wrapper {
    position: relative;
    width: 100%;
}

.map-frame-border {
    border-radius: 16px;
    overflow: hidden;
    border: var(--border-sky-bright);
    box-shadow: 0 10px 25px rgba(149, 213, 253, 0.3);
    transition: border-color var(--transition-fast);
}

.map-frame-border:hover {
    border-color: var(--sky-deep);
}

/* --------------------------------------------------------------------------
   10. COUNTDOWN SECTION
   -------------------------------------------------------------------------- */
.countdown-section {
    background: transparent;
}

.countdown-card-wrapper {
    max-width: 850px;
    margin: 0 auto;
    background: #FFFFFF;
    border: var(--border-sky-bright);
    border-radius: 24px;
    padding: 50px 30px;
    box-shadow: var(--shadow-card);
    text-align: center;
}

.countdown-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.number-box {
    width: 95px;
    height: 100px;
    background: linear-gradient(145deg, var(--sky-pale) 0%, #FFFFFF 100%);
    border: var(--border-sky-bright);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(149, 213, 253, 0.3);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.number-box::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(149, 213, 253, 0.5);
}

.number-box.tick-flip {
    animation: tickScale 0.3s ease-in-out;
}

@keyframes tickScale {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }
}

.number {
    font-family: var(--font-body);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1;
}

.unit-label {
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--sky-deep);
    font-weight: 600;
}

.countdown-sep {
    font-family: var(--font-body);
    font-size: 2.5rem;
    color: var(--sky-deep);
    margin-bottom: 25px;
}

.countdown-finished h3 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--ink);
    animation: pulse-heart 2s infinite;
}

/* --------------------------------------------------------------------------
   11. SECTION 04 – WEDDING DAY TIMELINE
   -------------------------------------------------------------------------- */
.timeline-section {
    background: transparent;
}

.timeline-wrapper {
    max-width: 750px;
    margin: 0 auto;
    position: relative;
    padding: 20px 0;
}

.timeline-line-background {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(149, 213, 253, 0.4);
    transform: translateX(-50%);
}

.timeline-line-progress {
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 0%;
    background: var(--sky-deep);
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--sky);
    transition: height 0.1s linear;
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 50%;
    position: relative;
    margin-bottom: 45px;
    width: 100%;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 50%;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    top: 15px;
    transform: translate(-50%, -50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #FFFFFF;
    border: var(--border-sky-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--sky-deep);
    z-index: 5;
    box-shadow: 0 4px 15px rgba(149, 213, 253, 0.4);
    transition: all var(--transition-fast);
}

.timeline-item.active .timeline-marker {
    background: var(--sky-deep);
    color: #FFFFFF;
    border-color: var(--sky-deep);
    box-shadow: 0 0 15px rgba(79, 163, 227, 0.4);
    transform: translate(-50%, -50%) scale(1.15);
}

.timeline-content {
    width: 82%;
    background: #FFFFFF;
    border: var(--border-sky-subtle);
    border-radius: 16px;
    padding: 25px;
    box-shadow: var(--shadow-card);
    text-align: left;
    transition: transform var(--transition-fast);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 30px;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 30px;
}

.time-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    background: var(--sky-pale);
    color: var(--sky-deep);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.timeline-title {
    font-family: var(--font-body);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 6px;
}

.timeline-desc {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   12. OUR INVITATION SECTION
   -------------------------------------------------------------------------- */
.invitation-section {
    position: relative;
    padding: 120px 0;
    background: transparent;
    overflow: hidden;
}

.invitation-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.invitation-bg-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(253, 253, 253, 0.85) 0%, rgba(253, 253, 253, 0.96) 90%);
    z-index: 2;
}

.invitation-card {
    max-width: 800px;
    margin: 0 auto;
    background: #FFFFFF;
    border: var(--border-sky-bright);
    border-radius: 24px;
    padding: 60px 40px;
    box-shadow: var(--shadow-card);
    text-align: center;
    position: relative;
}

.card-corner {
    position: absolute;
    width: 25px;
    height: 25px;
    border: 2px solid var(--sky);
}

.card-corner.tl {
    top: 12px;
    left: 12px;
    border-right: none;
    border-bottom: none;
}

.card-corner.tr {
    top: 12px;
    right: 12px;
    border-left: none;
    border-bottom: none;
}

.card-corner.bl {
    bottom: 12px;
    left: 12px;
    border-right: none;
    border-top: none;
}

.card-corner.br {
    bottom: 12px;
    right: 12px;
    border-left: none;
    border-top: none;
}

.section-tag {
    font-size: 0.8rem;
    letter-spacing: 3px;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
    color: var(--sky-deep);
}

.invitation-heading {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    color: var(--sky-deep);
}

.invitation-message {
    font-family: var(--font-subheading);
    font-size: clamp(1.2rem, 2.2vw, 1.6rem);
    line-height: 1.7;
    color: var(--ink);
    max-width: 620px;
    margin: 0 auto 30px;
}

.heart-divider {
    font-size: 1.8rem;
    color: var(--sky-deep);
    margin: 20px 0;
    animation: pulse-heart 2s infinite ease-in-out;
}

.gratitude-block {
    margin: 25px 0;
}

.gratitude-title {
    font-size: 0.85rem;
    letter-spacing: 3px;
    color: var(--sky-deep);
    font-weight: 600;
    margin-bottom: 8px;
}

.couple-names-grand {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 600;
    text-transform: uppercase;
    color: var(--ink);
    letter-spacing: 3px;
    margin-bottom: 6px;
}

.invitation-date {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--sky-deep);
    letter-spacing: 4px;
}

.honour-text {
    font-family: var(--font-subheading);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--color-text-muted);
    margin-top: 25px;
}

/* --------------------------------------------------------------------------
   13. FINAL CLOSING SECTION & FOOTER
   -------------------------------------------------------------------------- */
.closing-section {
    background: transparent;
    padding: 120px 0 80px;
}

.animated-heart-wrapper {
    font-size: 2.5rem;
    color: var(--sky-deep);
    margin-bottom: 20px;
}

.pulse-heart {
    animation: pulse-heart 1.8s infinite ease-in-out;
}

@keyframes pulse-heart {
    0% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.25);
    }

    30% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.15);
    }

    60% {
        transform: scale(1);
    }
}

.closing-couple-names {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--ink);
    margin-bottom: 10px;
}

.closing-date {
    font-family: var(--font-body);
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: 4px;
    color: var(--sky-deep);
    margin-bottom: 15px;
}

.closing-quote {
    font-family: var(--font-subheading);
    font-style: italic;
    font-size: 2rem;
    color: var(--sky-deep);
}

/* Site Footer */
.site-footer {
    text-align: center;
    padding: 30px 20px;
    background: var(--ivory);
    border-top: 1px solid rgba(149, 213, 253, 0.4);
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.site-footer .copyright {
    margin-top: 5px;
    font-size: 0.75rem;
    color: #94A3B8;
}

/* --------------------------------------------------------------------------
   14. ANIMATION REVEAL CLASSES (INTERSECTION OBSERVER)
   -------------------------------------------------------------------------- */
.scroll-reveal {
    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);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.scroll-slide-left {
    opacity: 0;
    transform: translateX(-50px) scale(0.95);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.scroll-slide-left.active {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.scroll-slide-right {
    opacity: 0;
    transform: translateX(50px) scale(0.95);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.scroll-slide-right.active {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.scroll-scale-up {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 1s ease, transform 1s ease;
}

.scroll-scale-up.active {
    opacity: 1;
    transform: scale(1);
}

.scroll-timeline-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-timeline-item.active {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   15. RESPONSIVE DESIGN & MEDIA QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .venue-content-box {
        grid-template-columns: 1fr;
        padding: 30px 20px;
    }

    .venue-info {
        text-align: center;
    }

    .venue-address {
        justify-content: center;
    }

    .venue-action {
        justify-content: center;
    }

    .section-indicator {
        display: none;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .content-section {
        padding: 70px 0;
    }

    .timeline-line-background,
    .timeline-line-progress {
        left: 25px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        justify-content: flex-start;
        padding-left: 65px;
        padding-right: 0;
    }

    .timeline-marker {
        left: 25px;
    }

    .timeline-item .timeline-content,
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .countdown-grid {
        gap: 10px;
    }

    .number-box {
        width: 68px;
        height: 75px;
    }

    .number {
        font-size: 2rem;
    }

    .countdown-sep {
        font-size: 1.8rem;
    }

    .invitation-card {
        padding: 40px 20px;
    }

    .couple-avatar-frame {
        width: 210px;
        height: 210px;
    }

    .names {
        font-size: clamp(1.8rem, 4.8vw, 3rem);
        letter-spacing: 2px;
    }
}

@media (max-width: 480px) {
    .hero-date-box {
        padding: 12px 20px;
    }

    .date-main {
        font-size: 1.1rem;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }

    .nav-btn .music-text {
        display: none;
    }
}

/* Accessibility: Support Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .seal-wrap {
        display: none;
    }

    .gate {
        animation: none !important;
        transform: translateX(0);
        display: none;
    }

    .ornament,
    .eyebrow,
    .names,
    .divider,
    .tagline,
    .scroll-cue {
        opacity: 1 !important;
        animation: none !important;
        transform: none !important;
    }

    .mote {
        animation-duration: 14s;
    }
}

/* ==========================================================================
   TAP-TO-OPEN GATE LOCK — hide all content until invitation is opened
   ========================================================================== */

/* ── Lock scrolling until opened ──
   Scoped to the template root, never to <body>. This stylesheet is loaded into
   the host app's document, so a `body { overflow: hidden }` here would freeze
   whatever page is rendering the template — the templates gallery and the
   builder included — and it would stay frozen, because the only thing that
   lifts the lock is a tap on this template's seal. Locking the root instead
   keeps the effect inside the invitation. */
.classic-wedding-template:not(.invitation-opened) {
    overflow: hidden;
    height: 100dvh;
}

/* ── Hide the top nav bar before opening ── */
.classic-wedding-template:not(.invitation-opened) .top-nav {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-100%);
}

/* ── Hide the floating section dots before opening ── */
.classic-wedding-template:not(.invitation-opened) .section-indicator {
    opacity: 0;
    pointer-events: none;
}

/* ── Hide every section that is NOT the hero section ── */
.classic-wedding-template:not(.invitation-opened) main>section:not(#hero) {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ── On open: reveal top nav with a slide-down ── */
.classic-wedding-template.invitation-opened .top-nav {
    animation: navSlideIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both;
}

@keyframes navSlideIn {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── On open: reveal nav dots ── */
.classic-wedding-template.invitation-opened .section-indicator {
    animation: fadeInNav 0.7s ease 1.1s both;
}

@keyframes fadeInNav {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ── On open: reveal content sections with a graceful fade-up ── */
.classic-wedding-template.invitation-opened main>section:not(#hero) {
    animation: sectionReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) 1.0s both;
}

@keyframes sectionReveal {
    from {
        opacity: 0;
        visibility: hidden;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* Thali SVG icon — sizes the custom gold thali necklace SVG in event card */
.thali-icon {
    width: 2em;
    height: 2em;
    display: inline-block;
    filter: drop-shadow(0 2px 6px rgba(200, 151, 26, 0.5));
}

/* Mandap SVG icon — wedding arch with couple */
.mandap-icon {
    width: 2.6em;
    height: 2.6em;
    display: inline-block;
    filter: drop-shadow(0 2px 8px rgba(200, 151, 26, 0.6));
}

/* Couple SVG icon — reception card male + female silhouette */
.couple-icon {
    width: 3em;
    height: 2.8em;
    display: inline-block;
    filter: drop-shadow(0 2px 8px rgba(79, 163, 227, 0.4));
}/* Classic Wedding stays in a phone-sized canvas on every screen. */
.classic-wedding-template{max-width:430px;width:100%;margin-inline:auto;position:relative;overflow:clip;font-size:14px;line-height:1.7;isolation:isolate}
.classic-wedding-template .stage{width:100%;min-height:100svh}.classic-wedding-template .container{width:100%;padding-inline:22px}.classic-wedding-template .content-section{padding:48px 0}.classic-wedding-template h1,.classic-wedding-template h2,.classic-wedding-template h3,.classic-wedding-template p{overflow-wrap:anywhere}
.classic-wedding-template .names{font-size:30px;letter-spacing:1px;line-height:1.3}.classic-wedding-template .temple-invite-label{width:90%;white-space:normal}.classic-wedding-template .temple-invite-names{font-size:25px;line-height:1.35;letter-spacing:.02em}.classic-wedding-template .temple-invite-sub{font-size:24px}.classic-wedding-template .section-title{font-size:24px;line-height:1.35;letter-spacing:1px}.classic-wedding-template .subtitle-plain{font-size:19px;line-height:1.5}.classic-wedding-template .event-title,.classic-wedding-template .timeline-title{font-size:21px;line-height:1.4}.classic-wedding-template .special-day-desc,.classic-wedding-template .honour-text,.classic-wedding-template .timeline-desc{font-size:14px;line-height:1.85}.classic-wedding-template .invitation-heading,.classic-wedding-template .couple-names-grand,.classic-wedding-template .closing-couple-names{font-size:28px;line-height:1.4}.classic-wedding-template .gratitude-title,.classic-wedding-template .section-tag{font-size:10px;letter-spacing:2px!important}.classic-wedding-template .closing-quote{font-size:17px;line-height:1.7}
.classic-wedding-template .events-grid,.classic-wedding-template .venue-content-box{grid-template-columns:minmax(0,1fr)}.classic-wedding-template .venue-content-box{padding:25px 18px}.classic-wedding-template .venue-info{text-align:center}.classic-wedding-template .venue-address,.classic-wedding-template .venue-action{justify-content:center}.classic-wedding-template .invitation-card{padding:30px 20px}.classic-wedding-template .couple-avatar-frame{width:190px;height:190px}.classic-wedding-template .timeline-line-background,.classic-wedding-template .timeline-line-progress,.classic-wedding-template .timeline-marker{left:20px}.classic-wedding-template .timeline-item,.classic-wedding-template .timeline-item:nth-child(even){justify-content:flex-start;padding-left:52px;padding-right:0}.classic-wedding-template .timeline-item .timeline-content{width:100%;margin-inline:0;padding:20px 16px}.classic-wedding-template .countdown-grid{gap:6px}.classic-wedding-template .number-box{width:58px;height:68px}.classic-wedding-template .number{font-size:26px}.classic-wedding-template .countdown-sep{font-size:22px}.classic-wedding-template .ornament{width:86%;max-width:370px}.classic-wedding-template .field{width:min(100%,430px);left:50%;transform:translateX(-50%)}
.classic-wedding-template .scroll-reveal,.classic-wedding-template .scroll-slide-left,.classic-wedding-template .scroll-slide-right,.classic-wedding-template .scroll-scale-up{transition-duration:.6s;transition-timing-function:cubic-bezier(.22,1,.36,1)}
@media(prefers-reduced-motion:reduce){.classic-wedding-template *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Keep the entry inside the first screen. */
.classic-wedding-template .hero-section,.classic-wedding-template .stage{min-height:100svh}
.classic-wedding-template .temple-seal-btn{touch-action:manipulation}
.classic-wedding-template .hero-section.opened .temple-backdrop{visibility:hidden;transition:opacity .7s ease,transform .8s ease,visibility 0s .8s}
@media(prefers-reduced-motion:reduce){
 .classic-wedding-template .scroll-reveal,.classic-wedding-template .scroll-slide-left,.classic-wedding-template .scroll-slide-right,.classic-wedding-template .scroll-scale-up{opacity:1;transform:none}
}

/* A quiet closing signature, with room for the floating flower control. */
.classic-wedding-template .site-footer{padding:34px 26px 94px;text-align:center;background:#edf5fb;border-top:1px solid #d4e3ef;color:#526b7e}
.classic-wedding-template .footer-flourish{display:flex;align-items:center;justify-content:center;gap:12px;margin-bottom:18px;color:#a2864c;font-size:22px}
.classic-wedding-template .footer-flourish span{width:36px;height:1px;background:#c7b68e}
.classic-wedding-template .footer-message{max-width:260px;margin:0 auto;font:13px/1.8 Jost,sans-serif}
.classic-wedding-template .footer-names{margin:8px 0 24px;font:italic 24px/1.4 'Cormorant Garamond',serif;color:#33475a}
.classic-wedding-template .footer-brand{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:10px 16px;border:1px solid #d4e3ef;border-radius:30px;background:#ffffffa6;font:11px/1.5 Jost,sans-serif;color:#526b7e;text-decoration:none}
.classic-wedding-template .footer-brand strong{font-weight:600;color:#33475a}
.classic-wedding-template .footer-brand:focus-visible{outline:2px solid #526b7e;outline-offset:4px}
