/* ==========================================
   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: #FCFBF7;
    --color-charcoal: #2A2A2A;
    --color-sand: #F7F5EE;
    --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: 'Playfair Display', serif;
    --font-accent: 'Cinzel Decorative', serif;
    --font-body: 'Montserrat', 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.035'/%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-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 99;
}

/* ==========================================
   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: rotateX(8deg) rotateY(-3deg); /* Realistic 3D angle on load */
}

.scroll-container:hover {
    transform: rotateX(12deg) rotateY(-5deg) translateY(-5px);
}

.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 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 6s cubic-bezier(0.15, 0.85, 0.3, 1.12), opacity 5s ease, transform 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 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.8s forwards 1.2s;
}

/* Bride & Groom names fade in at 2 seconds mark */
.scroll-container.open .loader-title {
    animation: fadeInScrollItem 0.8s forwards 2.0s;
}

.scroll-container.open .loader-divider-gold {
    animation: fadeInScrollItem 0.8s forwards 2.8s;
}

.scroll-container.open .loader-subtitle {
    animation: fadeInScrollItem 0.8s forwards 3.6s;
}

.scroll-container.open .loader-date {
    animation: fadeInScrollItem 0.8s forwards 4.3s;
}

.scroll-container.open .scroll-content-inner .enter-btn {
    animation: fadeInScrollItem 0.8s forwards 5.0s;
    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-accent);
    font-size: 1.6rem; /* Slightly smaller for better fit and elegance */
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px; /* Tightened */
    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 {
    transform: translateY(-2px);
    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%) scale(1.12);
}

.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;
        height: 520px;
    }
    .scroll-rod {
        width: 96vw;
    }
    .scroll-paper {
        width: 82vw;
    }
    .scroll-container.open .scroll-paper {
        height: 460px;
    }
    .scroll-content-inner {
        height: 460px;
    }
    .scroll-container.open .rod-top {
        transform: translate(-50%, -230px);
    }
    .scroll-container.open .rod-bottom {
        transform: translate(-50%, 230px);
    }
}

/* ==========================================
   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;
}

#hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 3;
    opacity: 1;
    transition: opacity 1.5s ease-in-out;
    pointer-events: none;
}

#hero-video.fade-out {
    opacity: 0;
}

.skip-video-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(15, 0, 3, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: var(--color-gold-light);
    padding: 10px 20px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 30px;
    cursor: pointer;
    z-index: 105; /* higher than video and overlay to ensure clickability */
    transition: var(--transition-smooth);
    opacity: 0;
    visibility: hidden;
}

.skip-video-btn.visible {
    opacity: 1;
    visibility: visible;
}

.skip-video-btn:hover {
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
    border-color: var(--color-gold-light);
    color: var(--color-maroon-dark);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

/* ==========================================
   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;
}

.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 {
    transform: translateY(-8px);
    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 {
    max-width: 750px;
    margin: 0 auto;
    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);
}

.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);
}

.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;
}

.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);
}

.timeline-item:hover .timeline-img-holder {
    transform: scale(1.03);
    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;
}

/* 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: 320px;
}

.venue-info-card {
    background-color: var(--color-white);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border-top: 5px solid var(--color-gold);
}

.venue-name {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-maroon);
    margin-bottom: 20px;
}

.venue-address {
    font-size: 1rem;
    color: var(--color-charcoal);
    margin-bottom: 20px;
    line-height: 1.6;
}

.venue-address i {
    color: var(--color-gold-dark);
    margin-right: 10px;
    font-size: 1.2rem;
}

.venue-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.maps-btn {
    display: inline-block;
    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 {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 4px solid var(--color-white);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    height: 400px;
}

.venue-map-card iframe {
    width: 100%;
    height: 100%;
    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
   ========================================== */
@media screen and (max-width: 900px) {
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 20px;
        text-align: left !important;
        align-items: flex-start !important;
    }
    
    .timeline-item::after {
        left: 15px;
        right: auto;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item:nth-child(even)::after {
        left: 15px;
    }

    .venue-flex-container {
        flex-direction: column-reverse;
        gap: 30px;
    }

    .hero-couple-names {
        font-size: 2.8rem;
    }
}

@media screen and (max-width: 600px) {
    html {
        font-size: 15px;
    }

    .hero-couple-names {
        font-size: 2.2rem;
    }

    .hero-couple-names .ampersand {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .avatar-card {
        width: 100%;
    }

    .avatar-heart {
        transform: rotate(90deg);
        margin: 10px 0;
    }

    .countdown-container {
        gap: 10px;
    }

    .countdown-box {
        min-width: 70px;
        padding: 12px;
    }

    .countdown-box .num {
        font-size: 1.6rem;
    }

    .audio-control {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .rsvp-form-container {
        padding: 24px;
    }

    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
}
