/* ==========================================
   Premium Design System & Base Variables
   ========================================== */
:root {
    /* Color Palette */
    --color-maroon: #7D0A15;
    --color-maroon-dark: #4A030A;
    --color-gold-light: #F3E5AB;
    --color-gold: #D4AF37;
    --color-gold-dark: #AA7C11;
    --color-cream: #aff7b5;
    --color-charcoal: #2A2A2A;
    --color-sand: #C8E6C9;
    --color-white: #FFFFFF;

    /* Theme colors for events */
    --event-mehndi: #4A5F43;
    /* Henna Olive Green */
    --event-upanayanam: #E35D25;
    /* Sacred Saffron */
    --event-sangeeth: #491E43;
    /* Royal Purple / Stage Night */
    --event-haldi: #DE9B16;
    /* Turmeric Yellow-Orange */
    --event-wedding: #800020;
    /* Auspicious Red/Crimson */

    /* Typography */
    --font-heading: 'Marcellus', serif;
    --font-accent: 'Yatra One', cursive, serif;
    --font-cursive: 'Allura', cursive, serif;
    --font-body: 'Outfit', sans-serif;

    /* Spacing & Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius-lg: 16px;
    --border-radius-sm: 8px;
}

/* ==========================================
   Reset & Core Styling
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-cream);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M40 0 C42 12, 50 20, 60 20 C50 20, 42 28, 40 40 C38 28, 30 20, 20 20 C30 20, 38 12, 40 0 Z M40 40 C42 52, 50 60, 60 60 C50 60, 42 68, 40 80 C38 68, 30 60, 20 60 C30 60, 38 52, 40 40 Z' fill='%23d4af37' fill-opacity='0.06'/%3E%3C/svg%3E");
    color: var(--color-charcoal);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center {
    text-align: center;
}

.gold-gradient-text {
    background: linear-gradient(135deg, var(--color-gold-dark) 0%, var(--color-gold) 50%, var(--color-gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

a {
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* ==========================================
   Custom Background & Falling Petals Canvas
   ========================================== */
#petals-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99;
    perspective: 1000px;
    overflow: hidden;
}

.flying-petal {
    position: absolute;
    pointer-events: none;
    will-change: transform;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ==========================================
   Preloader screen (Traditional Mandap Entrance)
   ========================================== */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('photos/creative_wedding_bg_3.png') no-repeat center center/cover;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(35, 2, 7, 0.4) 0%, rgba(15, 0, 3, 0.85) 100%);
    z-index: 1;
}

.loader-wrapper.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* ==========================================
   Interactive 3D Royal Scroll Preloader
   ========================================== */
.scroll-container {
    position: relative;
    width: 440px;
    height: 520px;
    /* Elevated height for a longer scroll */
    perspective: 1200px;
    z-index: 10001;
    transition: transform 0.8s ease, opacity 0.8s ease;
    transform-style: preserve-3d;
    transform: none;
    /* Fixed upright scroll without tilt */
}

.scroll-container:hover {
    transform: none;
    /* Completely fixed without hover movement */
}

.scroll-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
}

/* Rods styling and unrolling paper roll simulator */
.scroll-rod {
    position: absolute;
    width: 470px;
    height: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 5;
    transition: transform 1.6s cubic-bezier(0.15, 0.85, 0.3, 1.12);
    /* Settle bounce/overshoot unroll */
    transform-style: preserve-3d;
}

/* Realistic 3D paper cylinder wrapped around rods when closed (covers the gold shafts) */
.scroll-rod::before {
    content: '';
    position: absolute;
    width: 426px;
    /* Covers the gold shafts between the knobs */
    height: 36px;
    /* Thick roll when closed */
    background: linear-gradient(to bottom,
            #e5dccb 0%,
            #faf8f2 25%,
            #e5dccb 50%,
            #cbbca3 75%,
            #9b8b6e 100%);
    left: 50%;
    border-radius: 4px;
    box-shadow:
        0 6px 15px rgba(0, 0, 0, 0.35),
        inset 0 1px 2px rgba(255, 255, 255, 0.5);
    z-index: 6;
    /* Placed above the shaft to hide it */
    transition: height 1.6s cubic-bezier(0.15, 0.85, 0.3, 1.12), opacity 1.2s ease, transform 1.6s;
}

.rod-top::before {
    top: 50%;
    margin-top: -18px;
    transform: translateX(-50%) translateY(2px);
}

.rod-bottom::before {
    top: 50%;
    margin-top: -18px;
    transform: translateX(-50%) translateY(-2px);
}

/* When the scroll is unrolled, the roll thickness shrinks to zero */
.scroll-container.open .scroll-rod::before {
    height: 0px;
    opacity: 0;
    pointer-events: none;
}

.rod-top {
    top: 50%;
    margin-top: -12px;
}

.rod-bottom {
    top: 50%;
    margin-top: -12px;
}

.rod-shaft {
    flex: 1;
    height: 18px;
    /* Thicker rods for weight */
    background: linear-gradient(to bottom, #d4af37 0%, #fff0b8 20%, #d4af37 40%, #a67c1e 75%, #5a420b 90%, #d4af37 100%);
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.4);
    border-radius: 3px;
    position: relative;
    z-index: 1;
    /* Hidden behind paper cylinder when closed */
}

.rod-knob {
    width: 24px;
    height: 26px;
    background: radial-gradient(circle at 35% 35%, #fff0b8 0%, #d4af37 55%, #6a4f0b 100%);
    border: 1.5px solid #4a3707;
    border-radius: 50%;
    box-shadow:
        0 6px 12px rgba(0, 0, 0, 0.45),
        inset 0 1px 2px rgba(255, 255, 255, 0.65);
    position: relative;
    z-index: 7;
    /* Always visible at the ends */
}

/* Paper styling with realistic curvature shadows near the cylinders */
.scroll-paper {
    position: absolute;
    width: 400px;
    height: 0px;
    /* Closed by default */
    background: #faf8f2 url('photos/royal_scroll_paper_bg.png') no-repeat center center;
    background-size: 100% 100%;
    z-index: 2;
    overflow: hidden;
    transition: height 1.6s cubic-bezier(0.15, 0.85, 0.3, 1.12), box-shadow 1.2s;
    /* Custom overshoot bounce unroll */
    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.45),
        inset 0 0 25px rgba(0, 0, 0, 0.06),
        inset 0 0 10px rgba(181, 139, 32, 0.1);
    border-left: 2.5px solid #aa7c11;
    border-right: 2.5px solid #aa7c11;
}

/* Realistic paper waves/folds overlay */
.scroll-paper-waves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.02) 15%,
            rgba(255, 255, 255, 0.05) 25%,
            rgba(0, 0, 0, 0.03) 35%,
            rgba(255, 255, 255, 0.05) 45%,
            rgba(0, 0, 0, 0.02) 55%,
            rgba(255, 255, 255, 0.04) 65%,
            rgba(0, 0, 0, 0.03) 75%,
            rgba(255, 255, 255, 0.04) 85%,
            rgba(0, 0, 0, 0) 100%);
    z-index: 3;
    pointer-events: none;
    opacity: 0;
    transition: opacity 2s ease 1s;
}

.scroll-container.open .scroll-paper-waves {
    opacity: 1;
}

.scroll-paper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 32px;
    /* Deep shadow wrapping into the top cylinder */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0) 100%);
    z-index: 4;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.5s ease 1s;
}

.scroll-paper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 32px;
    /* Deep shadow wrapping into the bottom cylinder */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0) 100%);
    z-index: 4;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.5s ease 1s;
}

.scroll-container.open .scroll-paper::before,
.scroll-container.open .scroll-paper::after {
    opacity: 1;
}

.scroll-content-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 480px;
    /* Expanded target unrolled height */
    padding: 35px 40px 180px 40px;
    /* Push content way up to clear the bottom colorful peacocks completely */
    text-align: center;
    color: var(--color-maroon-dark);
    box-sizing: border-box;
}

.scroll-header-arch,
.loader-title,
.loader-divider-gold,
.loader-subtitle,
.loader-date,
.scroll-content-inner .enter-btn {
    opacity: 0;
}

/* Staggered fade in delays to match the unrolling process */
.scroll-container.open .scroll-header-arch {
    animation: fadeInScrollItem 0.5s forwards 0.2s;
}

/* Bride & Groom names fade in */
.scroll-container.open .loader-title {
    animation: fadeInScrollItem 0.5s forwards 0.5s;
}

.scroll-container.open .loader-divider-gold {
    animation: fadeInScrollItem 0.5s forwards 0.8s;
}

.scroll-container.open .loader-subtitle {
    animation: fadeInScrollItem 0.5s forwards 1.0s;
}

.scroll-container.open .loader-date {
    animation: fadeInScrollItem 0.5s forwards 1.2s;
}

.scroll-container.open .scroll-content-inner .enter-btn {
    animation: fadeInScrollItem 0.5s forwards 1.4s;
    pointer-events: auto;
}

@keyframes fadeInScrollItem {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.scroll-header-arch {
    font-size: 1.2rem;
    color: #c59b27;
    margin-bottom: 8px;
    /* Reduced margin */
    letter-spacing: 12px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.loader-title {
    font-family: var(--font-cursive);
    font-size: 2.8rem;
    font-weight: normal;
    line-height: 1.25;
    margin-bottom: 8px;
    color: #7D0A15;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.12);
}

.loader-divider-gold {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    /* Tightened */
}

.loader-divider-gold .gold-line {
    width: 60px;
    height: 1px;
    background-color: var(--color-gold);
}

.loader-divider-gold .gold-dot {
    width: 4px;
    height: 4px;
    background-color: var(--color-gold-dark);
    border-radius: 50%;
}

.loader-subtitle {
    font-size: 0.75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--color-gold-dark);
    font-weight: 600;
    margin-bottom: 4px;
    /* Tightened */
}

.loader-date {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-charcoal);
    margin-bottom: 15px;
    /* Tightened to lift the button higher */
}

.enter-btn {
    background: #b58b20;
    color: #4a030a;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 10px 36px;
    border: 2px solid #8e6d15;
    border-radius: 40px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    outline: 2px dashed #fae097;
    outline-offset: -5px;
    transition: all 0.3s ease;
}

.enter-btn:hover {
    background: #c39a2b;
    box-shadow: 0 7px 20px rgba(181, 139, 32, 0.4);
}

.scroll-content-inner .enter-btn {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease 0.6s, transform 0.3s ease, box-shadow 0.3s ease;
}

/* Wax Seal Button centered on closed scroll */
.wax-seal {
    position: absolute;
    width: 64px;
    height: 64px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(1);
    z-index: 6;
    cursor: pointer;
    border-radius: 50%;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.6s;
}

.wax-seal:hover {
    transform: translate(-50%, -50%);
}

.seal-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(212, 175, 55, 0.4);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
    animation: heartbeat 2s infinite;
    opacity: 0.8;
}

.seal-wax {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 35% 35%, #b51e2b 0%, #7d0c15 65%, #470105 100%);
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.35),
        inset 0 -3px 5px rgba(0, 0, 0, 0.55),
        0 6px 14px rgba(0, 0, 0, 0.5);
}

.seal-monogram {
    font-size: 1.6rem;
    color: var(--color-gold-light);
    line-height: 1;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    user-select: none;
}

.envelope-hint {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-gold-light);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.6s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

/* Open Scroll State Animations */
.scroll-container.open .rod-top {
    transform: translate(-50%, -240px);
}

.scroll-container.open .rod-bottom {
    transform: translate(-50%, 240px);
}

.scroll-container.open .scroll-paper {
    height: 480px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(212, 175, 55, 0.1);
}

.scroll-container.open .wax-seal {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.5) rotate(45deg);
}

/* Zoom entry transition */
.scroll-container.zoomed {
    transform: scale(2.2);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.8s cubic-bezier(0.6, -0.28, 0.735, 0.045), opacity 0.6s ease;
}

@media screen and (max-width: 500px) {
    .scroll-container {
        width: 90vw;
        max-width: 360px;
        height: 420px;
    }

    .scroll-rod {
        width: 96vw;
        max-width: 380px;
    }

    .scroll-rod::before {
        width: calc(100% - 44px);
        height: 30px;
    }

    .scroll-paper {
        width: 82vw;
        max-width: 320px;
    }

    .scroll-container.open .scroll-paper {
        height: 380px;
    }

    .scroll-content-inner {
        height: 380px;
        padding: 25px 20px 140px 20px;
    }

    .scroll-container.open .rod-top {
        transform: translate(-50%, -190px);
    }

    .scroll-container.open .rod-bottom {
        transform: translate(-50%, 190px);
    }

    .loader-title {
        font-size: 1.35rem;
    }

    .loader-date {
        font-size: 0.78rem;
        margin-bottom: 10px;
    }

    .enter-btn {
        padding: 8px 24px;
        font-size: 0.78rem;
    }
}

@media screen and (max-height: 700px) and (max-width: 500px) {
    .scroll-container {
        height: 360px;
    }

    .scroll-container.open .scroll-paper {
        height: 320px;
    }

    .scroll-content-inner {
        height: 320px;
        padding: 15px 15px 110px 15px;
    }

    .scroll-container.open .rod-top {
        transform: translate(-50%, -160px);
    }

    .scroll-container.open .rod-bottom {
        transform: translate(-50%, 160px);
    }

    .scroll-header-arch {
        font-size: 1rem;
        margin-bottom: 4px;
    }

    .loader-title {
        font-size: 1.2rem;
        margin-bottom: 4px;
    }
}

/* ==========================================
   Background Music Button
   ========================================== */
.audio-control {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-maroon) 0%, var(--color-maroon-dark) 100%);
    border: 2px solid var(--color-gold);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-gold);
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
}

.audio-control:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.audio-control i {
    font-size: 1.2rem;
}

.audio-waves {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.audio-waves span {
    width: 3px;
    height: 15px;
    background-color: var(--color-gold);
    border-radius: 2px;
    animation: wave 1s linear infinite alternate;
}

.audio-waves span:nth-child(2) {
    animation-delay: 0.2s;
    height: 25px;
}

.audio-waves span:nth-child(3) {
    animation-delay: 0.4s;
    height: 10px;
}

.audio-waves span:nth-child(4) {
    animation-delay: 0.6s;
    height: 20px;
}

.audio-control.playing i {
    opacity: 0;
}

.audio-control.playing .audio-waves {
    opacity: 1;
}

/* ==========================================
   Hero Header Section
   ========================================== */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--color-white);
    overflow: hidden;
    background: transparent;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('photos/royal_artwork_paper_bg.png') center center / cover no-repeat;
    z-index: 1;
}

#hero-video {
    position: absolute;
    top: clamp(50px, 8.5vh, 90px);
    left: 0;
    width: 100%;
    height: calc(100% - clamp(100px, 17vh, 180px));
    max-width: 100vw;
    object-fit: fill;
    object-position: center center;
    background-color: transparent;
    mix-blend-mode: normal;
    filter: none;
    clip-path: none;
    z-index: 3;
    opacity: 1;
    transition: opacity 1.5s ease-in-out;
    pointer-events: none;
}

#hero-video.fade-out {
    opacity: 0;
}

/* ==========================================
   Intro Video Parchment Decor Overlay
   ========================================== */
.hero-video-decor {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: max(20px, env(safe-area-inset-top)) 20px max(35px, env(safe-area-inset-bottom)) 20px;
    box-sizing: border-box;
    transition: opacity 1.5s ease-in-out;
}

.hero-video-decor.fade-out {
    opacity: 0;
}

.video-top-header {
    text-align: center;
    color: var(--color-maroon-dark);
}

.sacred-symbol {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 2px;
    letter-spacing: 8px;
}

.shloka-text {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-gold-dark);
    letter-spacing: 2px;
    display: block;
    margin-bottom: 4px;
}

.decor-couple-names {
    font-family: var(--font-accent);
    font-size: 1.85rem;
    color: var(--color-maroon);
    text-shadow: 1px 1px 2px rgba(212, 175, 55, 0.4);
    margin: 0;
    line-height: 1.2;
}

.video-bottom-footer {
    text-align: center;
    color: var(--color-maroon-dark);
}

.decor-blessing {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-style: italic;
    color: var(--color-charcoal);
    margin-bottom: 8px;
}

.decor-date-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-maroon) 0%, var(--color-maroon-dark) 100%);
    color: var(--color-gold-light);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 22px;
    border-radius: 30px;
    border: 1px solid var(--color-gold);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    letter-spacing: 1px;
}

/* ==========================================
   Hero Ken Burns Slideshow
   ========================================== */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-slideshow .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1);
    transition: opacity 1.5s ease-in-out;
}

.slideshow-active .slide {
    animation: kenBurnsCrossfade 24s infinite;
}

.slideshow-active .slide:nth-child(1) {
    animation-delay: 0s;
}

.slideshow-active .slide:nth-child(2) {
    animation-delay: 8s;
}

.slideshow-active .slide:nth-child(3) {
    animation-delay: 16s;
}

@keyframes kenBurnsCrossfade {
    0% {
        opacity: 0;
        transform: scale(1.0) translate(0, 0);
    }

    6% {
        opacity: 1;
    }

    33.33% {
        opacity: 1;
    }

    39.33% {
        opacity: 0;
        transform: scale(1.12) translate(-10px, -5px);
    }

    100% {
        opacity: 0;
    }
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(20, 0, 3, 0.45) 0%, rgba(20, 0, 3, 0.8) 100%);
    z-index: 2;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-bg-overlay.fade-in {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 0 20px;
}

.hero-tagline {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--color-gold-light);
    display: block;
    margin-bottom: 20px;
}

.hero-couple-names {
    font-family: var(--font-accent);
    font-size: 3.8rem;
    line-height: 1.2;
    margin-bottom: 25px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8), 0 0 35px rgba(212, 175, 55, 0.35);
}

.hero-couple-names span {
    display: block;
}

.hero-couple-names .ampersand {
    font-size: 2.2rem;
    margin: 5px 0;
    color: var(--color-gold);
}

.hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.hero-divider .line {
    width: 80px;
    height: 1px;
    background-color: var(--color-gold);
}

.hero-divider .mandapa-icon {
    font-size: 1.5rem;
    color: var(--color-gold);
    margin: 0 15px;
}

.hero-date,
.hero-venue {
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-date i,
.hero-venue i {
    color: var(--color-gold);
    margin-right: 8px;
}

.scroll-down {
    display: inline-block;
    margin-top: 40px;
    color: var(--color-gold);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

/* ==========================================
   Invitation Message Section
   ========================================== */
.invitation-msg-section {
    padding: 100px 0;
    background-color: var(--color-sand);
    position: relative;
}

.royal-border-decor {
    width: 250px;
    height: 35px;
    margin: 0 auto;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.7;
}

.top-decor {
    margin-bottom: 40px;
    border-bottom: 2px double var(--color-gold);
}

.bottom-decor {
    margin-top: 40px;
    border-top: 2px double var(--color-gold);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    margin-bottom: 30px;
    font-weight: 700;
}

.couple-avatars {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.avatar-card {
    background: var(--color-white);
    padding: 20px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    width: 250px;
    transition: var(--transition-smooth);
}

.avatar-card:hover {
    border-color: var(--color-gold);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.15);
}

/* ==========================================
   Temple Arch Avatars styling
   ========================================== */
.avatar-frame-arch {
    position: relative;
    width: 180px;
    height: 240px;
    border-radius: 90px 90px 8px 8px;
    /* Elegant traditional arch shape */
    overflow: hidden;
    margin: 0 auto 20px;
    border: 3px solid var(--color-gold-light);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.avatar-frame-arch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

.avatar-card:hover .avatar-frame-arch img {
    transform: scale(1.08);
}

.glow-ring {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    border: 2px dashed rgba(212, 175, 55, 0.4);
    border-radius: 50%;
    pointer-events: none;
    animation: spinSlow 30s linear infinite;
}

.avatar-heart-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.heart-pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(125, 10, 21, 0.3);
    border-radius: 50%;
    animation: pulseGlow 1.8s infinite ease-out;
}

@keyframes pulseGlow {
    0% {
        transform: scale(0.6);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.avatar-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--color-maroon);
    margin-bottom: 5px;
}

.avatar-role {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-gold-dark);
    font-weight: 600;
}

.avatar-heart {
    font-size: 2.5rem;
    color: var(--color-maroon);
    animation: heartbeat 1.5s infinite;
}

.message-card-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(20px, 4vw, 50px);
    margin: 40px auto;
    width: 100%;
    max-width: 1100px;
    box-sizing: border-box;
}

.side-character {
    width: clamp(140px, 16vw, 190px);
    flex-shrink: 0;
    display: block;
    opacity: 0;
    transition: opacity 1s ease, transform 1s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.bride-character {
    transform: translateX(-40px);
}

.groom-character {
    transform: translateX(40px);
}

.message-card-wrapper.active .bride-character {
    opacity: 1;
    transform: translateX(0);
    animation: floatIllustrationBride 6s ease-in-out infinite 1s;
}

.message-card-wrapper.active .groom-character {
    opacity: 1;
    transform: translateX(0);
    animation: floatIllustrationGroom 6s ease-in-out infinite 1s;
}

.side-character img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.12));
}

@keyframes floatIllustrationBride {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(1deg);
    }
}

@keyframes floatIllustrationGroom {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(-1deg);
    }
}

.message-card {
    flex: 1;
    max-width: 680px;
    margin: 0;
    padding: 30px;
    background-color: var(--color-white);
    border-radius: var(--border-radius-lg);
    border-left: 5px solid var(--color-gold);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
    box-sizing: border-box;
}

.invitation-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-maroon-dark);
    line-height: 1.6;
    margin-bottom: 25px;
    font-style: italic;
}

.shloka {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #b8860b;
    margin-bottom: 25px;
    letter-spacing: 1px;
    font-weight: 500;
}

.sub-text {
    font-size: 0.95rem;
    color: var(--color-charcoal);
    font-weight: 400;
}

/* ==========================================
   Countdown Section
   ========================================== */
.countdown-section {
    padding: 60px 0;
    background: radial-gradient(circle at center, var(--color-maroon) 0%, var(--color-maroon-dark) 100%);
    color: var(--color-white);
    border-top: 3px solid var(--color-gold);
    border-bottom: 3px solid var(--color-gold);
}

.countdown-heading {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-gold-light);
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.countdown-box {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 20px;
    border-radius: var(--border-radius-sm);
    min-width: 100px;
    backdrop-filter: blur(5px);
    transition: var(--transition-smooth);
}

.countdown-box:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--color-gold);
}

.countdown-box .num {
    display: block;
    font-size: 2.2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 5px;
}

.countdown-box .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-gold-light);
}

/* ==========================================
   Video Teaser Section
   ========================================== */
.video-section {
    padding: 80px 0;
    background-color: var(--color-cream);
}

.video-player-container {
    max-width: 800px;
    margin: 40px auto 0;
    border: 4px solid var(--color-gold);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.video-player-container video {
    width: 100%;
    display: block;
}

/* ==========================================
   Schedule Timeline Section
   ========================================== */
.schedule-section {
    padding: 100px 0;
    background-color: var(--color-sand);
    overflow: hidden;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 60px auto 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--color-gold);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    display: flex;
    flex-direction: column;
}

.timeline-item::after {
    content: '🌸';
    position: absolute;
    width: 30px;
    height: 30px;
    right: -15px;
    background-color: var(--color-cream);
    border: 2px solid var(--color-gold);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.timeline-item:nth-child(odd) {
    left: 0;
    align-items: flex-end;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    align-items: flex-start;
    text-align: left;
}

.timeline-item:nth-child(even)::after {
    left: -15px;
}

.font-cinzel {
    font-family: var(--font-accent);
}

.timeline-card-wrapper {
    position: relative;
    width: 100%;
    max-width: 380px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    background-color: var(--color-white);
    border: 3px solid var(--color-white);
    transition: var(--transition-smooth);
}

.timeline-card-wrapper .timeline-img-holder {
    width: 100%;
    max-width: 100%;
    height: 220px;
    border-radius: 0;
    border: none;
    box-shadow: none;
    margin-bottom: 0;
}

.timeline-card-wrapper .timeline-content {
    max-width: 100%;
    border-radius: 0;
    box-shadow: none;
}

.timeline-img-holder {
    width: 100%;
    max-width: 380px;
    height: 220px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 3px solid var(--color-white);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    transition: var(--transition-smooth);
    position: relative;
}

/* ==========================================
   3D Mandap Gate Royal Cover & Reveal System
   ========================================== */
.video-overlay-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    cursor: pointer;
    pointer-events: auto;
    perspective: 1200px;
    transform-style: preserve-3d;
    border-radius: var(--border-radius-lg);
}

.door {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(145deg, #A81223 0%, #7D0A15 45%, #4A030A 85%, #200004 100%);
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.7), inset 0 0 12px rgba(212, 175, 55, 0.5);
    transition: transform 2.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.8s ease, filter 2.2s ease, box-shadow 2.2s ease;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    z-index: 1;
}

/* Ornate Gold Corner Brackets */
.door-corner {
    position: absolute;
    width: 28px;
    height: 28px;
    border: 2px solid var(--color-gold);
    pointer-events: none;
    z-index: 2;
}

.door-left .top-left {
    top: 16px;
    left: 16px;
    border-right: none;
    border-bottom: none;
}

.door-left .bottom-left {
    bottom: 16px;
    left: 16px;
    border-right: none;
    border-top: none;
}

.door-right .top-right {
    top: 16px;
    right: 16px;
    border-left: none;
    border-bottom: none;
}

.door-right .bottom-right {
    bottom: 16px;
    right: 16px;
    border-left: none;
    border-top: none;
}

/* Ornate Gold Filigree Inner Border */
.door-inner-border {
    position: absolute;
    top: 12px;
    bottom: 12px;
    width: calc(100% - 18px);
    border: 1.5px solid rgba(212, 175, 55, 0.5);
    outline: 1px dashed rgba(255, 224, 125, 0.35);
    outline-offset: -5px;
    pointer-events: none;
}

/* Gold Mandala Pattern Overlay */
.door-mandala {
    position: absolute;
    top: 50%;
    width: 160px;
    height: 160px;
    margin-top: -80px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 100 100'%3E%3Cpath d='M50 0 A50 50 0 0 1 50 100 A50 50 0 0 1 50 0 Z M50 10 C27.6 10 9.5 28.1 9.5 50 C9.5 71.9 27.6 90 50 90 C72.4 90 90.5 71.9 90.5 50 C90.5 28.1 72.4 10 50 10 Z' fill='none' stroke='%23d4af37' stroke-width='0.8' stroke-opacity='0.3'/%3E%3Cpath d='M50 15 L50 85 M15 50 L85 50 M25 25 L75 75 M25 75 L75 25' stroke='%23d4af37' stroke-width='0.5' stroke-opacity='0.25'/%3E%3Ccircle cx='50' cy='50' r='30' fill='none' stroke='%23ffe07d' stroke-width='0.6' stroke-opacity='0.35' stroke-dasharray='2 2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.75;
    pointer-events: none;
}

.door-left {
    left: 0;
    border-right: 2.5px solid var(--color-gold);
    transform-origin: left center;
    border-top-left-radius: var(--border-radius-lg);
    border-bottom-left-radius: var(--border-radius-lg);
}

.door-left .door-inner-border {
    left: 12px;
    border-right: none;
}

.door-left .door-mandala {
    right: -80px;
}

.door-right {
    right: 0;
    border-left: 2.5px solid var(--color-gold);
    transform-origin: right center;
    border-top-right-radius: var(--border-radius-lg);
    border-bottom-right-radius: var(--border-radius-lg);
}

.door-right .door-inner-border {
    right: 6px;
    border-left: none;
}

.door-right .door-mandala {
    left: -80px;
}

/* Royal Center Seal Wrapper with 3D Elevation */
.overlay-seal-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(40px);
    z-index: 5;
    text-align: center;
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.2s ease, filter 1.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90%;
    pointer-events: none;
    transform-style: preserve-3d;
}

.seal-burst-ring {
    position: absolute;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    border: 2px solid var(--color-gold-light);
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

.seal-glow {
    position: absolute;
    width: 76px;
    height: 76px;
    background-color: rgba(212, 175, 55, 0.5);
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.85);
    animation: heartbeat 2s infinite;
    opacity: 0.9;
    z-index: -1;
}

.seal-wax {
    width: 66px;
    height: 66px;
    background: radial-gradient(circle at 35% 35%, #E61C30 0%, #9E0D1A 50%, #5C030A 85%, #300003 100%);
    border-radius: 50%;
    border: 2.5px solid #FFE07D;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow:
        inset 0 3px 6px rgba(255, 255, 255, 0.6),
        inset 0 -4px 8px rgba(0, 0, 0, 0.8),
        0 10px 22px rgba(0, 0, 0, 0.65),
        0 0 15px rgba(212, 175, 55, 0.4);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.seal-wax::after {
    content: '⚜';
    font-size: 1.4rem;
    color: #FFE07D;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8), 0 0 6px rgba(212, 175, 55, 0.6);
}

/* Event Title on Cover (Placed cleanly above the wax seal) */
.event-cover-tag {
    font-family: var(--font-accent);
    font-size: 1.15rem;
    font-weight: 700;
    color: #FFE07D;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 14px;
    margin-top: 0;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9), 0 0 12px rgba(212, 175, 55, 0.5);
    position: relative;
    padding-bottom: 6px;
}

.event-cover-tag::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1.5px;
    background: linear-gradient(to right, transparent, var(--color-gold), transparent);
}

.unveil-hint {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.unveil-hint .sparkle {
    color: var(--color-gold);
    font-size: 0.8rem;
    animation: heartbeat 1.5s infinite;
}

.unveil-text {
    font-size: 0.75rem;
    color: var(--color-gold-light);
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
    font-weight: 700;
}

/* 3D Mandap Door Swing Open Revealed State */
.video-revealed .door-left {
    transform: rotateY(-140deg) scale(0.92);
    opacity: 0;
    filter: brightness(1.35) contrast(1.1);
    box-shadow: -30px 30px 50px rgba(0, 0, 0, 0.8);
}

.video-revealed .door-right {
    transform: rotateY(140deg) scale(0.92);
    opacity: 0;
    filter: brightness(1.35) contrast(1.1);
    box-shadow: 30px 30px 50px rgba(0, 0, 0, 0.8);
}

.video-revealed .overlay-seal-wrapper {
    transform: translate(-50%, -50%) translateZ(140px) rotate(20deg) scale(1.8);
    opacity: 0;
    filter: blur(4px);
    pointer-events: none;
}



.drifting-feather {
    position: absolute;
    z-index: 99;
    pointer-events: none;
    font-size: 1.2rem;
    opacity: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    animation: featherDrift 2.5s ease-out forwards;
}

@keyframes featherDrift {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(0.5);
        opacity: 0;
    }

    20% {
        opacity: 0.9;
    }

    100% {
        transform: translate(var(--feather-tx), var(--feather-ty)) rotate(var(--feather-rot)) scale(1);
        opacity: 0;
    }
}

.video-revealed .seal-burst-ring {
    animation: sealBurst 0.8s ease-out forwards;
}

@keyframes sealBurst {
    0% {
        transform: scale(0.6);
        opacity: 1;
        border-width: 4px;
    }

    100% {
        transform: scale(3.5);
        opacity: 0;
        border-width: 1px;
    }
}

.video-revealed .video-overlay-cover {
    pointer-events: none;
}

.timeline-item:hover .timeline-img-holder {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.timeline-img-holder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.timeline-img-holder video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: var(--color-maroon-dark);
    display: block;
}

/* Hide volume and mute buttons in video controls */
.timeline-img-holder video::-webkit-media-controls-volume-control-container,
.timeline-img-holder video::-webkit-media-controls-mute-button {
    display: none !important;
}


/* Wedding Event Slideshow/Carousel */
.wedding-slideshow {
    position: relative;
}

.wedding-slideshow img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    z-index: 1;
}

.wedding-slideshow img.active {
    opacity: 1;
    z-index: 2;
}

.timeline-content {
    padding: 24px;
    background-color: var(--color-white);
    position: relative;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    max-width: 380px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

/* Event color thematic accents */
.timeline-mehndi .timeline-content {
    border-top: 4px solid var(--event-mehndi);
}

.timeline-upanayanam .timeline-content {
    border-top: 4px solid var(--event-upanayanam);
}

.timeline-sangeeth .timeline-content {
    border-top: 4px solid var(--event-sangeeth);
}

.timeline-haldi .timeline-content {
    border-top: 4px solid var(--event-haldi);
}

.timeline-wedding .timeline-content {
    border-top: 4px solid var(--event-wedding);
}

.event-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 8px;
    display: inline-block;
}

.timeline-mehndi .event-tag {
    color: var(--event-mehndi);
}

.timeline-upanayanam .event-tag {
    color: var(--event-upanayanam);
}

.timeline-sangeeth .event-tag {
    color: var(--event-sangeeth);
}

.timeline-haldi .event-tag {
    color: var(--event-haldi);
}

.timeline-wedding .event-tag {
    color: var(--event-wedding);
}

.event-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--color-maroon-dark);
    margin-bottom: 8px;
}

.event-date,
.event-time {
    font-size: 0.85rem;
    color: var(--color-charcoal);
    margin-bottom: 4px;
    font-weight: 500;
}

.event-date i,
.event-time i {
    color: var(--color-gold-dark);
    margin-right: 6px;
}

.event-desc {
    font-size: 0.85rem;
    color: #666;
    margin-top: 10px;
    line-height: 1.5;
}

/* ==========================================
   Photo Gallery Section
   ========================================== */
.gallery-section {
    padding: 100px 0;
    background-color: var(--color-cream);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 50px;
}

/* ==========================================
   Polaroid Gallery styling
   ========================================== */
.polaroid-card {
    background: transparent;
    padding: 0;
    height: auto !important;
}

.polaroid-frame {
    background-color: var(--color-white);
    padding: 15px 15px 45px 15px;
    border-radius: 4px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.15);
    transform: rotate(var(--rotation, 0deg));
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.5s;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    position: relative;
    cursor: pointer;
}

.polaroid-img-wrapper {
    width: 100%;
    height: 280px;
    overflow: hidden;
    border: 1px solid #eee;
    border-radius: 2px;
}

.polaroid-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.polaroid-caption {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-maroon-dark);
    text-align: center;
    margin-top: 15px;
    letter-spacing: 1px;
}

.gallery-item:hover .polaroid-frame {
    z-index: 10;
    transform: rotate(0deg) scale(1.05) translateY(-10px);
    box-shadow: 0 20px 35px rgba(212, 175, 55, 0.25), 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* ==========================================
   Traditional Indian Festive Accents
   ========================================== */
.traditional-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 30px auto;
    width: 100%;
    max-width: 400px;
}

.traditional-divider .line {
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--color-gold) 50%, transparent);
}

.traditional-divider .divider-icon {
    font-size: 1.3rem;
    color: var(--color-gold);
    animation: spinSlow 25s linear infinite;
    display: inline-block;
}

/* Hanging Marigold Garlands (Toran) */
.marigold-toran {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 45px;
    display: flex;
    justify-content: space-around;
    pointer-events: none;
    z-index: 10;
    overflow: hidden;
}

.toran-strand {
    position: relative;
    width: 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-origin: top center;
    animation: toranSway 4s ease-in-out infinite alternate;
}

.toran-strand:nth-child(even) {
    animation-delay: 0.5s;
    animation-duration: 4.5s;
}

.toran-strand:nth-child(3n) {
    animation-delay: 1s;
    animation-duration: 3.8s;
}

/* Drawing marigold loops/strands */
.toran-strand::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: #DE9B16;
    /* Orange Marigold */
    border-radius: 50%;
    box-shadow: 0 8px 0 #DE9B16, 0 16px 0 #ffaa00, 0 24px 0 #4A5F43;
    /* Marigold, green leaf */
}

@keyframes toranSway {
    0% {
        transform: rotate(-3deg);
    }

    100% {
        transform: rotate(3deg);
    }
}

/* ==========================================
   Gallery Lightbox Overlay
   ========================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 2, 3, 0.95);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: var(--color-white);
    font-size: 3rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.lightbox-close:hover {
    color: var(--color-gold);
}

.lightbox-content-wrapper {
    max-width: 90%;
    max-height: 80%;
    border: 3px solid var(--color-gold);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    animation: zoomIn 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    object-fit: contain;
}

/* ==========================================
   Venue Section
   ========================================== */
.venue-section {
    padding: 100px 0;
    background-color: var(--color-sand);
}

.venue-flex-container {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.venue-info-card,
.venue-map-card {
    flex: 1;
    min-width: 300px;
    height: 380px;
    background-color: var(--color-white);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    border-top: 5px solid var(--color-gold);
    overflow: hidden;
    box-sizing: border-box;
}

.venue-info-card {
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.venue-name {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-maroon);
    margin-bottom: 15px;
}

.venue-address {
    font-size: 0.95rem;
    color: var(--color-charcoal);
    margin-bottom: 15px;
    line-height: 1.6;
}

.venue-address i {
    color: var(--color-gold-dark);
    margin-right: 10px;
    font-size: 1.2rem;
}

.venue-description {
    font-size: 0.88rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.maps-btn {
    display: inline-block;
    align-self: flex-start;
    background: linear-gradient(135deg, var(--color-maroon) 0%, var(--color-maroon-dark) 100%);
    color: var(--color-gold-light);
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(125, 10, 21, 0.25);
    border: 1px solid var(--color-gold);
}

.maps-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(125, 10, 21, 0.4);
    color: var(--color-white);
}

.maps-btn i {
    margin-right: 8px;
}

.venue-map-card {
    padding: 0;
    position: relative;
    display: flex;
    flex-direction: column;
}

.venue-map-card iframe {
    width: 100%;
    height: 100%;
    min-height: 100%;
    flex: 1;
    border: 0;
    display: block;
}

/* ==========================================
   RSVP Section
   ========================================== */
.rsvp-section {
    padding: 100px 0;
    background-color: var(--color-cream);
}

.rsvp-subtitle {
    max-width: 600px;
    margin: 0 auto 40px;
    color: #666;
    font-size: 0.95rem;
}

.rsvp-form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--color-white);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    position: relative;
    overflow: hidden;
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-maroon-dark);
}

.form-group input[type="text"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-gold);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.15);
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-label {
    flex: 1;
    cursor: pointer;
}

.radio-label input {
    display: none;
}

.radio-label span {
    display: block;
    padding: 12px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    transition: var(--transition-smooth);
}

.radio-label input:checked+span {
    background-color: rgba(125, 10, 21, 0.05);
    border-color: var(--color-maroon);
    color: var(--color-maroon);
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
    color: var(--color-maroon-dark);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    padding: 14px;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    transition: var(--transition-smooth);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

/* Success Card */
.rsvp-success {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.rsvp-success.active {
    opacity: 1;
    pointer-events: auto;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: heartbeat 1.5s infinite;
}

.rsvp-success h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-maroon);
    margin-bottom: 10px;
}

.rsvp-success p {
    color: #666;
    margin-bottom: 30px;
    max-width: 400px;
}

.reset-btn {
    background-color: var(--color-sand);
    border: 1px solid #ddd;
    color: var(--color-charcoal);
    padding: 10px 24px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.reset-btn:hover {
    background-color: #eee;
}

/* ==========================================
   Footer
   ========================================== */
footer {
    padding: 60px 0;
    background: radial-gradient(circle at center, var(--color-maroon) 0%, var(--color-maroon-dark) 100%);
    color: var(--color-white);
    border-top: 3px solid var(--color-gold);
}

.footer-blessing {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--color-gold-light);
    max-width: 600px;
    margin: 0 auto 20px;
}

.footer-divider {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer-copyright {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 1px;
}

/* ==========================================
   Animations
   ========================================== */
@keyframes spinSlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes wave {
    from {
        height: 5px;
    }

    to {
        height: 25px;
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

/* Scroll Animation classes */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-up-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.25, 0.8, 0.25, 1), transform 1s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.fade-up-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

/* Delay modifiers */
.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

/* ==========================================
   Responsive Media Queries
   ========================================== */
/* ==========================================
   Responsive Media Queries
   ========================================== */
@media screen and (max-width: 900px) {
    .video-frame-container {
        width: 100% !important;
        max-width: 100% !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: clamp(25px, 5vh, 45px) 0 !important;
    }

    #hero-video {
        width: 100% !important;
        max-width: 100% !important;
        box-shadow: none !important;
        top: clamp(45px, 8vh, 80px) !important;
        height: calc(100% - clamp(90px, 16vh, 160px)) !important;
        object-fit: fill !important;
    }

    .message-card-wrapper {
        position: relative;
        flex-direction: column;
        gap: 20px;
        padding-bottom: 25px;
    }

    .side-character {
        display: block !important;
        position: absolute;
        bottom: -20px;
        width: 105px !important;
        z-index: 5;
    }

    .bride-character {
        left: -15px !important;
        transform: translateX(-30px);
    }

    .groom-character {
        right: -15px !important;
        transform: translateX(30px);
    }

    .message-card-wrapper.active .bride-character {
        opacity: 1;
        transform: translateX(0);
        animation: floatIllustrationBride 6s ease-in-out infinite 1s;
    }

    .message-card-wrapper.active .groom-character {
        opacity: 1;
        transform: translateX(0);
        animation: floatIllustrationGroom 6s ease-in-out infinite 1s;
    }

    .timeline::after {
        display: none;
    }

    .timeline-item {
        width: 100%;
        padding: 16px 0;
        left: 0 !important;
        align-items: center !important;
        text-align: center !important;
    }

    .timeline-item::after,
    .timeline-item:nth-child(even)::after {
        display: none;
    }

    .timeline-card-wrapper {
        width: 100%;
        max-width: 380px;
        margin: 0 auto;
    }

    .venue-flex-container {
        flex-direction: column-reverse;
        gap: 30px;
    }

    .venue-info-card,
    .venue-map-card {
        min-width: 0;
        width: 100%;
    }

    .hero-couple-names {
        font-size: 2.8rem;
    }
}

@media screen and (max-width: 600px) {
    html {
        font-size: 15px;
    }

    .container {
        padding: 0 16px;
    }

    .hero-couple-names {
        font-size: 2.2rem;
    }

    .hero-couple-names .ampersand {
        font-size: 1.6rem;
    }

    .hero-divider .line {
        width: clamp(25px, 12vw, 60px);
    }

    .hero-divider .mandapa-icon {
        margin: 0 10px;
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2.1rem;
        margin-bottom: 20px;
    }

    .invitation-msg-section,
    .schedule-section,
    .gallery-section,
    .venue-section,
    .rsvp-section {
        padding: 60px 0;
    }

    .message-card {
        padding: 25px 22px 35px 22px;
        border-left-width: 4px;
    }

    .invitation-text {
        font-size: 1.25rem;
        line-height: 1.5;
        margin-bottom: 16px;
    }

    .avatar-card {
        width: 100%;
    }

    .avatar-heart {
        transform: rotate(90deg);
        margin: 10px 0;
    }

    /* Single-row 4-column responsive countdown grid */
    .countdown-container {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        max-width: 440px;
        margin: 0 auto;
    }

    .countdown-box {
        min-width: 0;
        width: 100%;
        padding: 12px 4px;
    }

    .countdown-box .num {
        font-size: 1.45rem;
    }

    .countdown-box .label {
        font-size: 0.65rem;
        letter-spacing: 1px;
    }

    /* Timeline card scaling on mobile */
    .timeline-item {
        padding: 16px 0;
        align-items: center !important;
        text-align: center !important;
    }

    .timeline::after,
    .timeline-item::after,
    .timeline-item:nth-child(even)::after {
        display: none !important;
    }

    .timeline-card-wrapper {
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
    }

    .timeline-img-holder {
        height: 195px;
    }

    .timeline-content {
        padding: 18px;
    }

    .event-cover-tag {
        font-size: 0.92rem;
        letter-spacing: 1.5px;
        margin-bottom: 8px;
    }

    .seal-wax {
        width: 52px;
        height: 52px;
    }

    .seal-wax::after {
        font-size: 1.1rem;
    }

    .seal-glow {
        width: 60px;
        height: 60px;
    }

    .door-mandala {
        width: 110px;
        height: 110px;
        margin-top: -55px;
    }

    .door-left .door-mandala {
        right: -55px;
    }

    .door-right .door-mandala {
        left: -55px;
    }

    .unveil-text {
        font-size: 0.68rem;
        letter-spacing: 2px;
    }

    /* Gallery grid minmax update */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 16px;
        margin-top: 30px;
    }

    .polaroid-img-wrapper {
        height: 220px;
    }

    .venue-info-card,
    .venue-map-card {
        width: 100%;
        height: 320px;
        min-height: 320px;
    }

    .venue-info-card {
        padding: 24px 20px;
    }

    .audio-control {
        bottom: max(20px, env(safe-area-inset-bottom));
        right: max(20px, env(safe-area-inset-right));
        width: 48px;
        height: 48px;
    }

    .rsvp-form-container {
        padding: 20px 16px;
    }

    .radio-group {
        flex-direction: column;
        gap: 10px;
    }

    .footer-blessing {
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 380px) {
    .hero-couple-names {
        font-size: 1.85rem;
    }

    .hero-tagline {
        font-size: 0.75rem;
        letter-spacing: 3px;
    }

    .hero-date,
    .hero-venue {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .countdown-box {
        padding: 8px 2px;
    }

    .countdown-box .num {
        font-size: 1.2rem;
    }

    .countdown-box .label {
        font-size: 0.55rem;
        letter-spacing: 0.5px;
    }

    .timeline-item {
        padding-left: 45px;
        padding-right: 5px;
    }

    .timeline::after {
        left: 16px;
    }

    .timeline-item::after,
    .timeline-item:nth-child(even)::after {
        left: 2px;
    }

    .event-cover-tag {
        font-size: 0.82rem;
        letter-spacing: 1px;
    }
}