/* ===== CSS Reset & Variables ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gold: #3cbbb1;
    --gold-light: #8eddd6;
    --gold-dark: #2a9d94;
    --gold-glow: rgba(60, 187, 177, 0.3);
    --maroon: #1a5276;
    --maroon-dark: #0d2b42;
    --maroon-light: #2e7db5;
    --cream: #f0f7fa;
    --cream-dark: #dceef5;
    --text-dark: #1a2836;
    --text-light: #dceef5;
    --white: #ffffff;
    --shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 50px rgba(0, 0, 0, 0.12);
    --shadow-gold: 0 4px 25px rgba(60, 187, 177, 0.25);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', 'Noto Sans Tamil', sans-serif;
    background-color: var(--cream);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== Preloader ===== */
.preloader {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, var(--maroon-dark), var(--maroon));
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-inner {
    text-align: center;
    position: relative;
}

.preloader-rings {
    width: 150px;
    height: 150px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid transparent;
}

.ring-1 {
    border-top-color: var(--gold);
    border-right-color: var(--gold);
    animation: spin 1.2s linear infinite;
}

.ring-2 {
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    border-bottom-color: var(--gold-light);
    border-left-color: var(--gold-light);
    animation: spin 1.2s linear infinite reverse;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.preloader-monogram {
    width: 130px;
    height: 130px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.monogram-text {
    font-family: 'Engagement', cursive;
    font-size: 4.5rem;
    background: linear-gradient(135deg, #8eddd6, #3cbbb1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: monogramFadeIn 1s ease-out;
    position: relative;
    z-index: 1;
}

@keyframes monogramFadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* ===== Scroll Progress Bar ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
    z-index: 9999;
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px var(--gold-glow);
}

/* ===== Particles ===== */
.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% {
        transform: translateY(-100px) rotate(720deg);
        opacity: 0;
    }
}

/* ===== Confetti ===== */
.confetti-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 10001;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    top: -20px;
    animation: confettiFall linear forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotateZ(0deg) rotateX(0deg);
        opacity: 1;
    }
    75% { opacity: 1; }
    100% {
        transform: translateY(100vh) rotateZ(720deg) rotateX(360deg);
        opacity: 0;
    }
}

/* ===== Language Toggle ===== */
.lang-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.lang-btn {
    border: none;
    background: transparent;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.lang-btn.active {
    background: var(--gold);
    color: var(--maroon-dark);
    box-shadow: 0 4px 15px var(--gold-glow);
}

.lang-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.15);
}

/* When not on hero, switch to dark text */
.lang-toggle.scrolled {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(60, 187, 177, 0.2);
}

.lang-toggle.scrolled .lang-btn {
    color: var(--text-dark);
}

.lang-toggle.scrolled .lang-btn.active {
    background: var(--maroon);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(26, 82, 118, 0.3);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #091e30 0%, var(--maroon-dark) 25%, var(--maroon) 50%, var(--maroon-light) 75%, #091e30 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    overflow: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating background shapes */
.hero-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(60, 187, 177, 0.08), transparent 70%);
}

.shape-1 {
    width: 400px; height: 400px;
    top: -100px; left: -100px;
    animation: floatShape 20s ease-in-out infinite;
}
.shape-2 {
    width: 300px; height: 300px;
    top: 50%; right: -80px;
    animation: floatShape 25s ease-in-out infinite reverse;
}
.shape-3 {
    width: 200px; height: 200px;
    bottom: 10%; left: 10%;
    animation: floatShape 18s ease-in-out infinite 2s;
}
.shape-4 {
    width: 150px; height: 150px;
    top: 20%; right: 20%;
    background: radial-gradient(circle, rgba(60, 187, 177, 0.05), transparent 70%);
    animation: floatShape 22s ease-in-out infinite 5s;
}
.shape-5 {
    width: 250px; height: 250px;
    bottom: -50px; right: 30%;
    animation: floatShape 30s ease-in-out infinite 3s;
}

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(15px, 15px) scale(1.02); }
}

/* Corner decorations */
.corner-decor {
    position: absolute;
    width: clamp(100px, 15vw, 200px);
    height: clamp(100px, 15vw, 200px);
    z-index: 2;
    opacity: 0.8;
}
.corner-decor.top-left { top: 0; left: 0; }
.corner-decor.top-right { top: 0; right: 0; }
.corner-decor.bottom-left { bottom: 0; left: 0; }
.corner-decor.bottom-right { bottom: 0; right: 0; }

/* Hero Content */
.hero-content {
    text-align: center;
    z-index: 3;
    padding: 40px 20px;
    position: relative;
}

/* Staggered hero animations */
.anim-hero {
    opacity: 0;
    transform: translateY(30px);
    animation: heroReveal 0.8s ease forwards;
}

.anim-hero:nth-child(1) { animation-delay: 0.6s; }
.anim-hero:nth-child(2) { animation-delay: 0.8s; }

.names-container .anim-hero:nth-child(1) { animation-delay: 1.0s; }
.names-container .anim-hero:nth-child(2) { animation-delay: 1.15s; }
.names-container .anim-hero:nth-child(3) { animation-delay: 1.3s; }

.hero-closing.anim-hero { animation-delay: 1.5s; }

.scroll-indicator.anim-hero { animation-delay: 2.3s; }

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

/* Mandala ornaments (kept for 2nd mandala below names) */
.mandala-ornament {
    margin: 20px auto;
    width: 250px;
    max-width: 80vw;
}

.mandala-svg {
    width: 100%;
    animation: mandalaGlow 3s ease-in-out infinite alternate;
}

@keyframes mandalaGlow {
    0% { filter: drop-shadow(0 0 2px rgba(60, 187, 177, 0.2)); }
    100% { filter: drop-shadow(0 0 8px rgba(60, 187, 177, 0.4)); }
}

.hero-monogram {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    margin-bottom: 15px;
}

.hero-monogram-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
}

.hero-monogram-ring.ring-inner {
    width: 100%;
    height: 100%;
    border-top-color: rgba(60, 187, 177, 0.6);
    border-right-color: rgba(60, 187, 177, 0.6);
    animation: spin 3s linear infinite;
}

.hero-monogram-ring.ring-outer {
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    border-width: 1.5px;
    border-bottom-color: rgba(142, 221, 214, 0.4);
    border-left-color: rgba(142, 221, 214, 0.4);
    animation: spin 3s linear infinite reverse;
}

.hero-monogram-text {
    font-family: 'Engagement', cursive;
    font-size: 4rem;
    background: linear-gradient(135deg, #8eddd6, #3cbbb1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.wedding-label {
    font-family: 'Playfair Display', 'Noto Sans Tamil', serif;
    font-size: clamp(28px, 6vw, 30px);
    letter-spacing: 6px;
    color: var(--gold-light);
    margin-bottom: 5px;
    font-weight: 600;
    text-transform: uppercase;
}

.hero-tagline {
    font-family: 'Cormorant Garamond', 'Noto Sans Tamil', serif;
    font-size: clamp(14px, 2.5vw, 18px);
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    letter-spacing: 2px;
    margin-bottom: 25px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.names-container {
    margin: 10px 0;
}

.groom-name, .bride-name {
    font-family: 'Corinthia', 'Great Vibes', 'Noto Sans Tamil', cursive;
    font-size: clamp(2.2rem, 7vw, 4rem);
    color: var(--white);
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.4), 0 0 60px rgba(60, 187, 177, 0.15);
    line-height: 1.2;
    display: inline;
}

.name-line {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}

.degree-inline {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1rem, 2.5vw, 1.75rem);
    margin-left: 20px;
    color: var(--gold-light);
    letter-spacing: 2px;
    font-style: italic;
    font-weight: 400;
}

.person-detail {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(12px, 2vw, 15px);
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 1.5px;
    margin-top: 6px;
    font-weight: 400;
}

.parent-info {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(16px, 3vw, 22px);
    color: var(--gold-light);
    letter-spacing: 1px;
    margin-top: 5px;
    font-weight: 400;
    font-style: italic;
    opacity: 0.85;
}

.person-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.person-block .parent-info {
    order: 3;
}

.person-block .name-line {
    order: 1;
}

.person-block .person-detail {
    order: 2;
}

.hero-closing {
    font-family: 'Cormorant Garamond', 'Noto Sans Tamil', serif;
    font-size: clamp(13px, 2.3vw, 17px);
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    letter-spacing: 1.5px;
    margin-top: 25px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    text-align: center;
}

.ampersand-container {
    position: relative;
    display: inline-block;
    margin: 15px 0;
}

.ampersand-ring {
    position: absolute;
    width: 70px;
    height: 70px;
    border: 1px solid var(--gold-glow);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: ringPulse 3s ease-in-out infinite;
}

@keyframes ringPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0; }
}

.ampersand {
    font-family: 'Great Vibes', cursive !important;
    font-size: 3.5rem !important;
    color: var(--gold);
    text-shadow: 0 0 30px var(--gold-glow);
    position: relative;
    z-index: 1;
}

/* Scroll Indicator */
.scroll-indicator {
    margin-top: 40px;
    color: var(--gold-light);
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.scroll-arrow {
    margin-top: 8px;
    animation: scrollBounce 2s ease-in-out infinite;
    color: var(--gold);
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ===== Wave Dividers ===== */
.wave-divider {
    margin-top: -2px;
    line-height: 0;
    position: relative;
    z-index: 5;
}

.wave-divider svg {
    width: 100%;
    height: 80px;
    display: block;
}

.wave-divider.inverted {
    margin-top: 0;
    margin-bottom: -2px;
}

/* ===== Section Styles ===== */
.section-title {
    font-family: 'Playfair Display', 'Noto Sans Tamil', serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--maroon);
    text-align: center;
    margin-bottom: 10px;
    position: relative;
}

.section-title.light {
    color: var(--gold-light);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    margin: 12px auto 0;
}

.section-title.light::after {
    background: linear-gradient(to right, transparent, var(--gold-light), transparent);
}

/* Floral Divider */
.floral-divider {
    width: 280px;
    max-width: 80vw;
    margin: 0 auto 35px;
}

.floral-divider svg {
    width: 100%;
}

/* ===== Countdown Section ===== */
.countdown-section {
    padding: 0px 20px;
    text-align: center;
    background: var(--cream);
    position: relative;
}

.countdown-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--gold-dark);
    margin-bottom: 40px;
}

.countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 3vw, 25px);
    flex-wrap: wrap;
}

.countdown-item {
    text-align: center;
    min-width: 80px;
}

.countdown-number {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--maroon);
    line-height: 1;
    background: linear-gradient(135deg, var(--maroon-dark), var(--maroon), var(--maroon-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.countdown-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold-dark);
    margin-top: 8px;
    font-weight: 300;
}

.countdown-separator {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--gold);
    font-weight: 300;
    padding-bottom: 20px;
    animation: separatorPulse 1s ease-in-out infinite;
}

@keyframes separatorPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ===== Events Section ===== */
.events {
    padding: 80px 20px 60px;
    max-width: 950px;
    margin: 0 auto;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

/* Glass Card Effect */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(60, 187, 177, 0.15);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.glass-card-dark {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(60, 187, 177, 0.2);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

/* Shimmer effect on cards */
.card-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(60, 187, 177, 0.06),
        transparent
    );
    animation: shimmer 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.event-card {
    padding: 40px 30px 35px;
    text-align: center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s ease;
    box-shadow: var(--shadow);
}

.event-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(60, 187, 177, 0.08);
}

.event-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: 50px;
    box-shadow: 0 2px 10px var(--gold-glow);
}

.event-icon-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.event-icon-bg {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--cream-dark), transparent 70%);
    animation: iconGlow 3s ease-in-out infinite alternate;
}

@keyframes iconGlow {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.2); opacity: 0.8; }
}

.event-icon {
    font-size: 3.5rem;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.event-name {
    font-family: 'Playfair Display', 'Noto Sans Tamil', serif;
    font-size: 1.6rem;
    color: var(--maroon);
    margin-bottom: 20px;
}

.event-date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.date-day {
    font-family: 'Playfair Display', serif;
    font-size: 3.8rem;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.date-details {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.date-month {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.date-weekday {
    font-size: 0.9rem;
    color: #999;
    font-weight: 300;
}

.event-time-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: linear-gradient(135deg, var(--cream), var(--cream-dark));
    border-radius: 50px;
    margin-bottom: 25px;
    border: 1px solid rgba(60, 187, 177, 0.15);
}

.time-icon {
    color: var(--gold-dark);
    flex-shrink: 0;
}

.event-time {
    font-size: 1rem;
    color: var(--maroon);
    font-weight: 600;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 30px;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    font-family: 'Lato', 'Noto Sans Tamil', sans-serif;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn:hover::after {
    opacity: 1;
}

.btn-svg-icon {
    flex-shrink: 0;
}

.btn-calendar {
    background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(26, 82, 118, 0.2);
}

.btn-calendar:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 25px rgba(26, 82, 118, 0.35);
}

.btn-maps {
    background: linear-gradient(135deg, #4285f4, #1a73e8);
    color: var(--white);
    margin-top: 25px;
    font-size: 16px;
    padding: 15px 34px;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.25);
}

.btn-maps:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 30px rgba(66, 133, 244, 0.4);
}

.btn-download {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--white);
    font-size: 16px;
    padding: 16px 38px;
    box-shadow: var(--shadow-gold);
}

.btn-download:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 35px rgba(60, 187, 177, 0.45);
}

/* ===== Venue Section ===== */
.venue {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--maroon-dark) 0%, var(--maroon) 50%, #091e30 100%);
    position: relative;
    overflow: hidden;
}

.venue-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(60, 187, 177, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(60, 187, 177, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.venue-card {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 30px;
}

.venue-icon-wrap {
    margin-bottom: 15px;
    display: inline-block;
    animation: venueIconFloat 3s ease-in-out infinite;
}

@keyframes venueIconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.venue-name {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 25px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.venue-map {
    margin: 25px 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(60, 187, 177, 0.2);
}

.venue-map iframe {
    display: block;
}

/* ===== Download Section ===== */
.download {
    padding: 80px 20px;
    text-align: center;
    background: var(--cream);
}

.download-desc {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    color: #888;
    margin-bottom: 35px;
    font-style: italic;
}

.download-card {
    display: inline-block;
    text-align: center;
}

.download-preview {
    width: 240px;
    height: 380px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, var(--maroon-dark), var(--maroon), var(--maroon-light));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 20px 60px rgba(26, 82, 118, 0.3),
        0 0 0 1px rgba(60, 187, 177, 0.3);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.6s ease;
    position: relative;
    overflow: hidden;
}

.download-preview::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(60, 187, 177, 0.25);
    border-radius: 10px;
    pointer-events: none;
}

.download-preview:hover {
    transform: perspective(800px) rotateY(-5deg) translateY(-5px);
    box-shadow: 
        0 30px 80px rgba(26, 82, 118, 0.35),
        0 0 0 1px rgba(60, 187, 177, 0.4),
        10px 20px 40px rgba(0, 0, 0, 0.15);
}

.preview-inner {
    text-align: center;
    padding: 20px;
}

.preview-ornament {
    color: var(--gold);
    font-size: 12px;
    letter-spacing: 8px;
    margin: 12px 0;
}

.preview-label {
    font-family: 'Cormorant Garamond', serif;
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 15px;
}

.preview-names {
    font-family: 'Great Vibes', cursive;
    font-size: 1.5rem;
    color: var(--white);
    margin: 10px 0;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

.preview-date {
    font-size: 12px;
    color: var(--gold-light);
    letter-spacing: 2px;
}

/* ===== Footer ===== */
.footer {
    background: linear-gradient(135deg, #091e30 0%, var(--maroon-dark) 50%, var(--maroon) 100%);
    color: var(--cream);
    text-align: center;
    padding: 70px 20px;
    position: relative;
    overflow: hidden;
}

.footer-hearts {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.footer-heart {
    position: absolute;
    bottom: -30px;
    color: rgba(60, 187, 177, 0.15);
    animation: heartFloat linear infinite;
}

@keyframes heartFloat {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% {
        transform: translateY(-400px) scale(0.5) rotate(45deg);
        opacity: 0;
    }
}

.footer-content {
    position: relative;
    z-index: 2;
}

.footer-text {
    font-family: 'Cormorant Garamond', 'Noto Sans Tamil', serif;
    font-size: 1.2rem;
    margin: 20px 0 10px;
    font-weight: 400;
    font-style: italic;
    color: rgba(245, 234, 214, 0.8);
}

.footer-names {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    color: var(--gold-light);
    margin: 15px 0;
    text-shadow: 0 2px 15px rgba(60, 187, 177, 0.3);
}

.footer-date {
    font-size: 14px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 5px;
    font-weight: 300;
}

/* ===== Scroll to Top ===== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(26, 82, 118, 0.3);
    z-index: 999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(26, 82, 118, 0.4);
}

/* ===== Reveal Animation ===== */
.reveal-card {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-card:nth-child(2) {
    transition-delay: 0.15s;
}

/* ===== Tamil Font Adjustments ===== */
body.lang-ta .groom-name,
body.lang-ta .bride-name {
    font-family: 'Kavivanar', 'Noto Sans Tamil', sans-serif;
    font-size: clamp(1.6rem, 5vw, 2.8rem);
}

body.lang-ta .wedding-label {
    letter-spacing: 3px;
}

body.lang-ta .person-block .parent-info {
    order: 1;
}

body.lang-ta .person-block .name-line {
    order: 2;
}

body.lang-ta .person-block .person-detail {
    order: 3;
}

body.lang-ta .ampersand {
    font-family: 'Kavivanar', 'Noto Sans Tamil', sans-serif;
    font-size: 1.8rem;
}

body.lang-ta .hero-closing {
    font-family: 'Kavivanar', 'Noto Sans Tamil', sans-serif;
    font-size: clamp(12px, 2.2vw, 16px);
    letter-spacing: 0.5px;
}

body.lang-ta .parent-info {
    font-family: 'Kavivanar', 'Noto Sans Tamil', sans-serif;
    font-size: clamp(14px, 2.5vw, 18px);
    letter-spacing: 0.5px;
}

body.lang-ta .event-badge {
    font-size: 10px;
    letter-spacing: 0.5px;
}

/* Invitation Request Text */
.invitation-request {
    font-family: 'Cormorant Garamond', 'Noto Sans Tamil', serif;
    font-size: clamp(0.95rem, 2.5vw, 1.15rem);
    color: var(--gold-dark);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.8;
    font-style: italic;
    opacity: 0.9;
}

/* Couple Icon */
.couple-icon {
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.couple-icon svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
    }

    .lang-toggle {
        top: 10px;
        right: 10px;
        padding: 3px;
    }

    .lang-btn {
        padding: 7px 12px;
        font-size: 12px;
    }

    .hero-content {
        padding: 70px 15px 30px;
    }

    .event-card {
        padding: 35px 25px 30px;
    }

    .events, .download {
        padding: 60px 15px;
    }

    .venue {
        padding: 60px 15px;
    }

    .venue-card {
        padding: 30px 15px;
    }

    .countdown-item {
        min-width: 60px;
    }

    .corner-decor {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 400px) {
    .groom-name, .bride-name {
        font-size: 1.8rem;
    }

    .ampersand {
        font-size: 2.5rem;
    }

    .date-day {
        font-size: 3rem;
    }

    .download-preview {
        width: 200px;
        height: 320px;
    }

    .hero-monogram {
        width: 90px;
        height: 90px;
    }

    .hero-monogram-text {
        font-size: 3rem;
    }

    .hero-content {
        padding: 65px 10px 20px;
    }

    .wedding-label {
        letter-spacing: 3px;
        font-size: clamp(20px, 5vw, 26px);
    }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .particle, .confetti-piece, .footer-heart {
        display: none !important;
    }
}

/* ===== Download FAB ===== */
.download-fab {
    position: fixed;
    top: 23px;
    right: 205px;
    z-index: 1000;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fabPulse 3s ease-in-out infinite;
}

.download-fab:hover {
    background: var(--gold);
    color: var(--maroon-dark);
    transform: scale(1.1);
    box-shadow: 0 4px 20px var(--gold-glow);
}

@keyframes fabPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); }
    50% { box-shadow: 0 4px 20px var(--gold-glow), 0 0 0 4px rgba(60, 187, 177, 0.1); }
}

.download-fab.scrolled {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(60, 187, 177, 0.2);
    color: var(--maroon);
}

.download-fab.scrolled:hover {
    background: var(--gold);
    color: var(--white);
}

@media (max-width: 768px) {
    .download-fab {
        right: auto;
        left: 10px;
        top: 10px;
        width: 36px;
        height: 36px;
    }

    .download-fab svg {
        width: 16px;
        height: 16px;
    }
}

/* Countdown finished state */
.countdown-finished {
    font-family: 'Cormorant Garamond', 'Noto Sans Tamil', serif;
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    color: var(--maroon);
    font-style: italic;
    letter-spacing: 1px;
    padding: 20px 0;
    animation: celebrationPulse 2s ease-in-out infinite;
}

@keyframes celebrationPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.02); }
}

/* ===== English-keep in Tamil mode ===== */
.en-keep {
    font-family: 'Cormorant Garamond', 'Playfair Display', serif;
    font-style: normal;
}

/* ===== Mangalyam icon ===== */
.mangalyam-icon {
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mangalyam-icon svg {
    filter: drop-shadow(0 2px 4px rgba(160, 126, 46, 0.3));
}

/* ===== Section Floral Backgrounds ===== */
.section-floral-bg {
    position: relative;
    width: 100%;
    height: 0;
    pointer-events: none;
    z-index: 0;
}

.floral-bg-svg {
    position: absolute;
    width: clamp(100px, 20vw, 200px);
    opacity: 1;
    top: 20px;
}

.floral-bg-svg.floral-left {
    left: 0;
}

.floral-bg-svg.floral-right {
    right: 0;
}

.download-floral .floral-bg-svg {
    top: 60px;
}

@media (max-width: 768px) {
    .floral-bg-svg {
        width: 80px;
        opacity: 0.7;
    }
}
