/* --- CSS VARIABLES --- */
:root {
    --gold-primary: #D4AF37;
    --gold-light: #FFDF73;
    --gold-dark: #997A15;
    --maroon-primary: #5E0B15; 
    --maroon-dark: #2A0001; 
    --cream: #FFF8F0;
    --black-soft: #0a0000;
    --gray: #cccccc;
    
    --font-cursive: 'Great Vibes', cursive;
    --font-serif: 'Playfair Display', serif;
    --font-royal: 'Cinzel Decorative', serif;
    --font-hindi: 'Yatra One', cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-serif); background-color: var(--black-soft); color: var(--black-soft); overflow-x: hidden; width: 100vw; }
body.locked { overflow: hidden; }

/* UTILITIES */
.text-center { text-align: center; }
.text-gold { color: var(--gold-primary); }
.text-cream { color: var(--cream); }
.text-white { color: #fff; }
.font-cursive { font-family: var(--font-cursive); }
.font-serif { font-family: var(--font-serif); }
.relative { position: relative; }
.z-10 { z-index: 10; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.flex-1 { flex: 1; }
.mt-2 { margin-top: clamp(10px, 2vw, 15px); }
.mt-4 { margin-top: clamp(15px, 4vw, 30px); }
.mb-2 { margin-bottom: clamp(10px, 2vw, 15px); }
.mb-4 { margin-bottom: clamp(15px, 4vw, 30px); }
.opacity-70 { background: rgba(0,0,0,0.7) !important; }
.opacity-80 { background: rgba(0,0,0,0.8) !important; }

/* --- 1. LIGHT THEME ENTRANCE PAGE --- */
#entrance-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 9999; display: flex; justify-content: center; align-items: center; text-align: center;
    transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: var(--cream); /* Light base */
    overflow: hidden;
}
.entrance-bg-image {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    /* Elegant Ivory/Daytime Palace Background */
    background: url('https://images.unsplash.com/photo-1596422846543-75c6fc197f07?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    animation: slowZoom 20s linear infinite alternate;
}
.entrance-light-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    /* Light cream/gold gradient overlay */
    background: radial-gradient(circle at center, rgba(255, 248, 240, 0.75), rgba(250, 235, 215, 0.95));
}

/* Responsive Mandala */
.css-mandala {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: min(90vw, 600px); height: min(90vw, 600px);
    border: 2px dashed rgba(94, 11, 21, 0.2);
    border-radius: 50%;
    animation: spinSlow 60s linear infinite;
}
.css-mandala::before, .css-mandala::after {
    content: ''; position: absolute; border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.4);
}
.css-mandala::before { top: 10%; left: 10%; right: 10%; bottom: 10%; }
.css-mandala::after { top: 20%; left: 20%; right: 20%; bottom: 20%; border: 2px dotted rgba(94, 11, 21, 0.3); }

.entrance-content { padding: clamp(20px, 5vw, 40px); width: 100%; max-width: 800px; }

/* Fluid Typography for Entrance */
.ganesha-text {
    font-family: var(--font-hindi); 
    font-size: clamp(2rem, 6vw, 3.5rem); 
    color: var(--maroon-primary);
    margin-bottom: 10px;
}
.om-divider img { width: clamp(30px, 8vw, 50px); }
.welcome-text {
    font-family: var(--font-royal); 
    color: var(--maroon-dark); 
    font-size: clamp(1rem, 3.5vw, 1.5rem);
    letter-spacing: clamp(1px, 0.5vw, 3px); 
    margin-bottom: clamp(15px, 4vw, 25px); 
    text-transform: uppercase;
}
.couple-names-large { 
    font-family: var(--font-cursive); 
    font-size: clamp(4rem, 12vw, 7.5rem); 
    line-height: 1.1; 
    margin-bottom: 15px; 
    text-shadow: 2px 2px 10px rgba(0,0,0,0.1); 
}
.ampersand-small { 
    font-family: var(--font-serif); 
    font-size: clamp(2rem, 6vw, 4rem); 
    color: var(--maroon-primary); 
}
.subtitle {
    color: var(--gold-dark); 
    font-size: clamp(1.1rem, 4vw, 1.4rem); 
    font-style: italic; 
    margin-bottom: clamp(20px, 6vw, 40px);
    font-family: var(--font-serif); 
}

/* Light Theme Button */
.royal-door-btn {
    background: var(--maroon-primary);
    border: 2px solid var(--gold-primary);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    color: var(--gold-light);
    font-weight: bold; font-family: var(--font-royal);
    padding: clamp(10px, 3vw, 15px) clamp(20px, 6vw, 45px); 
    font-size: clamp(1rem, 3vw, 1.3rem); 
    border-radius: 5px;
    cursor: pointer; transition: all 0.4s ease;
    text-transform: uppercase; letter-spacing: 1px;
}
.royal-door-btn:hover {
    background: var(--maroon-dark);
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.8);
}

#main-content { filter: blur(20px); opacity: 0; transition: filter 2s ease, opacity 2s ease; }

/* --- ANIMATIONS --- */
@keyframes slowZoom { 0% { transform: scale(1); } 100% { transform: scale(1.1); } }
@keyframes spinSlow { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }

/* Light Theme Shimmer */
@keyframes shimmerDark { 0% { background-position: -200% center; } 100% { background-position: 200% center; } }
.shimmer-text-dark {
    background: linear-gradient(90deg, var(--maroon-primary) 0%, var(--gold-dark) 50%, var(--maroon-primary) 100%);
    background-size: 200% auto; color: transparent; -webkit-background-clip: text; background-clip: text;
    animation: shimmerDark 5s linear infinite;
}
@keyframes shimmer { 0% { background-position: -200% center; } 100% { background-position: 200% center; } }
.shimmer-text {
    background: linear-gradient(90deg, var(--gold-dark) 0%, var(--gold-light) 50%, var(--gold-dark) 100%);
    background-size: 200% auto; color: transparent; -webkit-background-clip: text; background-clip: text;
    animation: shimmer 4s linear infinite;
}
@keyframes pulseGlow {
    0% { box-shadow: 0 0 10px rgba(212, 175, 55, 0.4); }
    50% { box-shadow: 0 0 25px rgba(212, 175, 55, 0.8), 0 0 40px rgba(212, 175, 55, 0.4); }
    100% { box-shadow: 0 0 10px rgba(212, 175, 55, 0.4); }
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.blink { animation: blink 2s infinite; }

/* --- GENERAL BUTTONS & MUSIC --- */
.glow-btn {
    background: transparent; border: 2px solid var(--gold-primary); color: var(--gold-primary);
    padding: clamp(10px, 3vw, 15px) clamp(20px, 6vw, 40px); 
    font-size: clamp(0.9rem, 2.5vw, 1.2rem); 
    font-family: var(--font-royal); text-transform: uppercase;
    letter-spacing: 1px; cursor: pointer; border-radius: 5px; transition: all 0.4s ease; animation: pulseGlow 3s infinite;
}
.glow-btn:hover { background: var(--gold-primary); color: var(--maroon-primary); box-shadow: 0 0 30px var(--gold-primary); transform: translateY(-3px); }
.small-btn { padding: 10px 20px; font-size: 1rem; animation: none; }
.outline-btn { background: transparent; border: 1px solid var(--gray); color: var(--gray); padding: clamp(10px, 3vw, 15px) clamp(15px, 4vw, 20px); font-family: var(--font-royal); cursor: pointer; transition: 0.3s; font-size: clamp(0.9rem, 2.5vw, 1rem); }
.outline-btn:hover { border-color: white; color: white; }

.music-btn {
    position: fixed; bottom: clamp(15px, 4vw, 30px); left: clamp(15px, 4vw, 30px); 
    width: clamp(40px, 10vw, 50px); height: clamp(40px, 10vw, 50px); border-radius: 50%;
    background: var(--maroon-dark); border: 2px solid var(--gold-primary); color: var(--gold-primary);
    font-size: clamp(1rem, 3vw, 1.2rem); z-index: 1000; cursor: pointer; display: none; transition: 0.3s;
}
.music-btn.pulse-glow { animation: pulseGlow 2s infinite; }

/* --- NAVBAR --- */
#navbar {
    position: fixed; top: 0; width: 100%; padding: 15px 5%; display: flex; justify-content: space-between;
    align-items: center; z-index: 100; background: transparent; transition: all 0.4s ease;
}
#navbar.sticky { background: rgba(42, 0, 1, 0.95); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(212, 175, 55, 0.3); padding: 10px 5%; }
.nav-brand { font-family: var(--font-royal); font-size: clamp(1.2rem, 4vw, 1.8rem); font-weight: bold; }
.heart-icon { font-size: 1rem; color: var(--gold-primary); animation: blink 1.5s infinite; }
.nav-links { list-style: none; display: flex; gap: 25px; }
.nav-links a { color: var(--cream); text-decoration: none; font-family: var(--font-royal); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--gold-primary); text-shadow: 0 0 10px var(--gold-primary); }
.hamburger { display: none; color: var(--gold-primary); font-size: 1.5rem; cursor: pointer; }

/* --- SECTIONS BASE --- */
.section-padding { padding: clamp(60px, 10vw, 100px) 0; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: clamp(40px, 8vw, 60px); }
.section-header h2 { font-family: var(--font-royal); font-size: clamp(2rem, 6vw, 3rem); color: var(--white-primary); margin-bottom: 10px; }
.divider-icon { width: clamp(40px, 8vw, 60px); margin: 0 auto; opacity: 0.8; }
.small-icon { width: clamp(30px, 6vw, 40px); }
.bg-cream { background-color: var(--cream); color: var(--maroon-dark); }
.pattern-bg { background-image: url('https://www.transparenttextures.com/patterns/cream-paper.png'); }
.dark-cinematic-bg { background: linear-gradient(135deg, var(--maroon-dark), #000); color: var(--cream); }
.parallax-section { background-attachment: fixed; background-position: center; background-repeat: no-repeat; background-size: cover; position: relative; }
.dark-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); }

/* --- HERO SECTION --- */
.cover-bg { background-image: url('https://images.unsplash.com/photo-1519225421980-715cb0215aed?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80'); height: 100vh; display: flex; align-items: center; justify-content: center; }
.content-wrapper { position: relative; z-index: 2; margin-top: 50px; padding: 0 15px;}
.top-tagline { color: var(--cream); font-family: var(--font-royal); letter-spacing: clamp(2px, 0.5vw, 4px); font-size: clamp(0.9rem, 2.5vw, 1.2rem); margin-bottom: 20px; text-transform: uppercase; }
.hero-names { font-family: var(--font-cursive); font-size: clamp(3rem, 12vw, 5rem); line-height: 1.1; margin: 10px 0; }
.ampersand { font-family: var(--font-serif); font-size: clamp(2rem, 8vw, 4rem); color: var(--cream); }
.date-highlight { display: inline-block; border-top: 2px solid var(--gold-primary); border-bottom: 2px solid var(--gold-primary); padding: 10px clamp(15px, 4vw, 30px); font-family: var(--font-royal); color: var(--gold-light); font-size: clamp(1.1rem, 3.5vw, 1.5rem); letter-spacing: 2px; margin-top: 20px; }
.scroll-indicator { position: absolute; bottom: -80px; left: 50%; transform: translateX(-50%); color: var(--gold-primary); text-align: center; font-family: var(--font-royal); font-size: clamp(0.8rem, 2vw, 1rem); width: max-content; }

/* --- FAMILY CARDS --- */
.family-cards-wrapper { display: flex; justify-content: space-between; align-items: center; gap: clamp(20px, 4vw, 30px); flex-wrap: wrap; }
.family-card { flex: 1; min-width: 280px; }
.glass-card { background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(10px); border: 1px solid rgba(212, 175, 55, 0.5); border-radius: 15px; padding: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); transition: transform 0.4s; }
.inner-border-gold { border: 1px solid var(--gold-primary); }
.card-inner-border { border: 1px dashed var(--gold-primary); border-radius: 10px; padding: clamp(20px, 5vw, 40px) 20px; text-align: center; }
.family-card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2); }
.family-card h3 { font-family: var(--font-royal); color: var(--maroon-primary); font-size: clamp(1.2rem, 3vw, 1.5rem); margin-bottom: 20px; text-transform: uppercase; }
.avatar { width: clamp(120px, 20vw, 160px); height: clamp(120px, 20vw, 160px); border-radius: 50%; margin: 0 auto 20px; border: 4px solid var(--gold-primary); background-size: cover; background-position: center; }
.groom-avatar { background-image: url('https://images.unsplash.com/photo-1506794778202-cad84cf45f1d?ixlib=rb-1.2.1&auto=format&fit=crop&w=300&q=80'); }
.bride-avatar { background-image: url('https://images.unsplash.com/photo-1534528741775-53994a69daeb?ixlib=rb-1.2.1&auto=format&fit=crop&w=300&q=80'); }
.person-name { font-family: var(--font-cursive); font-size: clamp(2rem, 6vw, 3rem); color: var(--gold-dark); margin-bottom: 10px; }
.parents-name { font-family: var(--font-serif); font-weight: 600; font-size: clamp(0.9rem, 2.5vw, 1rem); line-height: 1.5; color: var(--maroon-dark); }
.tagline { margin-top: 15px; font-style: italic; color: #555; font-size: clamp(0.85rem, 2.5vw, 1rem); }
.center-rings { flex: 0 0 auto; display: flex; justify-content: center; width: 100%; } /* Fixed for mobile */
.center-rings img { width: clamp(50px, 10vw, 80px); filter: drop-shadow(0 0 10px rgba(212,175,55,0.5)); }

@media (min-width: 769px) {
    .center-rings { width: auto; }
}

/* --- EXTENDED FAMILY --- */
.tree-hierarchy { display: flex; flex-direction: column; align-items: center; width: 100%; }
.step-row { width: 100%; display: flex; justify-content: center; z-index: 2; }
.flex-row { gap: clamp(10px, 2vw, 20px); flex-wrap: wrap; }
.vertical-line { width: 2px; height: clamp(30px, 6vw, 50px); background: var(--gold-primary); box-shadow: 0 0 10px var(--gold-primary); margin: 0 auto; }
.horizontal-divider { width: 100%; border-top: 1px solid rgba(212, 175, 55, 0.3); margin: clamp(20px, 5vw, 40px) 0; text-align: center; line-height: 0; }
.horizontal-divider i { background: var(--maroon-dark); padding: 0 15px; }

.gold-bordered-card { border: 2px solid var(--gold-primary); padding: clamp(10px, 3vw, 15px) clamp(20px, 5vw, 40px); background: rgba(0,0,0,0.4); backdrop-filter: blur(5px); border-radius: 10px; text-align: center; box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.2); }
.hero-card { transform: scale(1.1); border-width: 3px; }
.relation { font-family: var(--font-royal); color: var(--gold-light); font-size: clamp(0.7rem, 2vw, 0.9rem); letter-spacing: 1px; text-transform: uppercase; display: block; margin-bottom: 5px; }
.gold-bordered-card h4 { font-size: clamp(1rem, 3vw, 1.2rem); }

.inline-names { font-size: clamp(2rem, 6vw, 3.5rem); font-family: var(--font-cursive); background: rgba(0,0,0,0.5); padding: clamp(5px, 2vw, 10px) clamp(20px, 5vw, 40px); border-radius: 50px; border: 1px solid var(--gold-primary); text-align: center; }

.glass-pill { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(212, 175, 55, 0.4); padding: clamp(10px, 2vw, 15px) clamp(15px, 4vw, 25px); border-radius: 30px; backdrop-filter: blur(8px); text-align: center; min-width: clamp(150px, 40vw, 200px); transition: 0.3s; font-family: var(--font-royal); font-size: clamp(0.8rem, 2.5vw, 1rem); }
.glass-pill:hover { background: rgba(212, 175, 55, 0.2); border-color: var(--gold-primary); }
.highlight-pill { background: rgba(212, 175, 55, 0.15); border: 2px solid var(--gold-primary); transform: scale(1.05); }

.subsection-title { font-family: var(--font-royal); font-size: clamp(1.3rem, 4vw, 2rem); margin-bottom: clamp(15px, 4vw, 30px); text-transform: uppercase; letter-spacing: 1px; }
.family-grid-10 { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(8px, 2vw, 15px); max-width: 900px; width: 100%; }
.mini-glass-card { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(212, 175, 55, 0.2); padding: clamp(8px, 2vw, 10px) clamp(10px, 3vw, 20px); border-radius: 8px; font-size: clamp(0.8rem, 2.5vw, 0.95rem); transition: 0.3s; font-family: var(--font-royal); flex-grow: 1; text-align: center; }

.kids-cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(8px, 2vw, 12px); max-width: 800px; width: 100%; }
.floating-name { display: inline-block; padding: clamp(5px, 1.5vw, 8px) clamp(12px, 3vw, 20px); border: 1px dashed var(--gold-light); border-radius: 20px; font-family: var(--font-cursive); font-size: clamp(1.2rem, 4vw, 1.5rem); color: var(--cream); animation: float 4s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* --- STORY --- */
.timeline { position: relative; max-width: 1000px; margin: 0 auto; width: 100%; }
.timeline::after { content: ''; position: absolute; width: 3px; background-color: var(--gold-primary); top: 0; bottom: 0; left: 50%; margin-left: -1.5px; }
.timeline-item { padding: clamp(10px, 3vw, 20px) clamp(20px, 5vw, 40px); position: relative; width: 50%; }
.timeline-item.left { left: 0; text-align: right; }
.timeline-item.right { left: 50%; text-align: left; }
.timeline-item::after { content: ''; position: absolute; width: 20px; height: 20px; background-color: var(--cream); border: 4px solid var(--gold-primary); border-radius: 50%; top: clamp(30px, 8vw, 40px); z-index: 1; box-shadow: 0 0 10px var(--gold-primary); }
.timeline-item.left::after { right: -14px; }
.timeline-item.right::after { left: -14px; }
.timeline-content { padding: clamp(15px, 4vw, 20px); }
.timeline-content h3 { font-family: var(--font-royal); color: var(--maroon-primary); font-size: clamp(1.2rem, 3.5vw, 1.5rem); }
.timeline-content .date { color: var(--gold-dark); font-weight: bold; margin-bottom: 10px; font-family: var(--font-royal); font-size: clamp(0.9rem, 2.5vw, 1rem); }
.timeline-content p { font-size: clamp(0.9rem, 2.5vw, 1rem); }
.story-img { width: 100%; height: clamp(150px, 30vw, 200px); background-size: cover; background-position: center; border-radius: 10px; margin-bottom: 15px; border: 2px solid var(--gold-primary); }
.bg-story-1 { background-image: url('https://images.unsplash.com/photo-1544425555-4678262241aa?ixlib=rb-1.2.1&auto=format&fit=crop&w=600&q=80'); }
.bg-story-2 { background-image: url('https://images.unsplash.com/photo-1604908176997-125f25cc6f3d?ixlib=rb-1.2.1&auto=format&fit=crop&w=600&q=80'); }
.bg-story-3 { background-image: url('https://images.unsplash.com/photo-1605652683901-419b4b0e95cb?ixlib=rb-1.2.1&auto=format&fit=crop&w=600&q=80'); }

/* --- FLIP CARDS --- */
.events-bg { background-image: url('https://images.unsplash.com/photo-1532712938310-34cb3982ef74?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80'); }
.flip-cards-container { display: flex; justify-content: center; gap: clamp(20px, 5vw, 40px); flex-wrap: wrap; perspective: 1000px; }
.flip-card { background-color: transparent; width: clamp(280px, 80vw, 320px); height: clamp(380px, 100vw, 420px); cursor: pointer; }
.flip-card-inner { position: relative; width: 100%; height: 100%; text-align: center; transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1); transform-style: preserve-3d; }
.flip-card:hover .flip-card-inner { transform: rotateY(180deg); }
.flip-card-front, .flip-card-back { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; border-radius: 15px; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 20px; }
.flip-card-front { background: rgba(255, 248, 240, 0.95); color: var(--maroon-primary); }
.flip-card-back { background: var(--maroon-primary); color: var(--cream); transform: rotateY(180deg); }
.event-icon { font-size: clamp(3rem, 8vw, 4rem); color: var(--gold-primary); margin-bottom: 20px; }
.flip-card-front h3 { font-family: var(--font-royal); font-size: clamp(1.5rem, 5vw, 2rem); margin-bottom: 10px; }
.flip-card-front p { font-family: var(--font-royal); font-weight: bold; color: var(--gold-dark); font-size: clamp(1rem, 3vw, 1.2rem); }
.flip-card-back h3 { font-family: var(--font-royal); color: var(--gold-primary); font-size: clamp(1.4rem, 4vw, 1.8rem); margin-bottom: 20px; border-bottom: 1px solid var(--gold-primary); padding-bottom: 10px; }
.flip-card-back p { margin-bottom: 10px; font-size: clamp(0.9rem, 2.5vw, 1.1rem); }
.dress-code { font-style: italic; color: var(--gold-light); margin-top: 10px; }
.bg-maroon { background: rgba(94, 11, 21, 0.95); }

/* --- COUNTDOWN --- */
.countdown-section { padding: clamp(60px, 10vw, 80px) 0; background-image: url('https://images.unsplash.com/photo-1469334031218-e382a71b716b?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80'); color: white; }
.timer-rings { display: flex; justify-content: center; gap: clamp(15px, 4vw, 30px); flex-wrap: wrap; }
.ring-box { position: relative; width: clamp(80px, 20vw, 120px); height: clamp(80px, 20vw, 120px); }
.ring-box svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-box svg circle { width: 100%; height: 100%; fill: transparent; stroke: rgba(255,255,255,0.2); stroke-width: 4; stroke-linecap: round; }
.ring-box svg circle:nth-child(2) { stroke: var(--gold-primary); stroke-dasharray: 345; stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear; }
.time-content { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.time-content span { font-size: clamp(1.2rem, 4vw, 2rem); font-weight: bold; font-family: var(--font-royal); color: var(--gold-light); }
.time-content p { font-size: clamp(0.6rem, 2vw, 0.8rem); text-transform: uppercase; letter-spacing: 1px; font-family: var(--font-royal); }

/* --- GALLERY --- */
.masonry-grid { column-count: 3; column-gap: clamp(10px, 3vw, 20px); }
.grid-item { position: relative; margin-bottom: clamp(10px, 3vw, 20px); break-inside: avoid; border-radius: 10px; overflow: hidden; border: 2px solid transparent; transition: 0.3s; cursor: pointer; }
.grid-item img { width: 100%; display: block; border-radius: 8px; }
.overlay-icon { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(94, 11, 21, 0.6); display: flex; justify-content: center; align-items: center; opacity: 0; transition: 0.3s; color: var(--gold-primary); font-size: clamp(2rem, 6vw, 3rem); }
.grid-item:hover .overlay-icon { opacity: 1; }
.lightbox { display: none; position: fixed; z-index: 10000; top: 0; left: 0; width: 100vw; height: 100vh; background-color: rgba(0,0,0,0.9); justify-content: center; align-items: center; }
.lightbox-content { max-width: 90%; max-height: 90%; border: 2px solid var(--gold-primary); border-radius: 10px; animation: zoomIn 0.3s; }
.close-lightbox { position: absolute; top: 20px; right: clamp(20px, 5vw, 40px); color: var(--gold-primary); font-size: 40px; font-weight: bold; cursor: pointer; }

/* --- RSVP --- */
.rsvp-bg { background-image: url('https://images.unsplash.com/photo-1520854221256-17451cc331bf?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80'); }
.rsvp-glass-form { background: rgba(0,0,0,0.6); backdrop-filter: blur(15px); padding: clamp(25px, 6vw, 50px); border-radius: 20px; max-width: 600px; width: 100%; text-align: center; }
.input-group { margin-bottom: 20px; text-align: left; width: 100%; }
.input-group input, .input-group select { width: 100%; padding: clamp(10px, 3vw, 15px); background: rgba(255,255,255,0.1); border: 1px solid var(--gold-dark); border-radius: 5px; color: white; font-family: var(--font-serif); font-size: clamp(0.9rem, 2.5vw, 1rem); outline: none; transition: 0.3s; }
.input-group input:focus, .input-group select:focus { border-color: var(--gold-primary); background: rgba(255,255,255,0.15); }
.input-group select option { background: var(--maroon-dark); color: white; }
.btn-group { display: flex; gap: 15px; margin-top: 30px; flex-wrap: wrap; }
.whatsapp-btn { display: inline-block; background: #25D366; color: white; padding: clamp(10px, 3vw, 12px) clamp(20px, 5vw, 30px); border-radius: 50px; text-decoration: none; font-weight: bold; font-family: var(--font-royal); transition: 0.3s; font-size: clamp(0.9rem, 2.5vw, 1rem); }

/* --- CLOSING --- */
.closing-bg { background-image: url('https://images.unsplash.com/photo-1515934751635-c81c6bc9a2d8?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80'); height: clamp(60vh, 80vw, 80vh); display: flex; align-items: center; justify-content: center; }
.closing-content { animation: pulseGlow 4s infinite alternate; padding: clamp(20px, 5vw, 40px); border: 1px solid rgba(212,175,55,0.2); border-radius: 20px; background: rgba(0,0,0,0.3); backdrop-filter: blur(5px); width: 90%; max-width: 600px; }

/* --- PARTICLES --- */
.particle { position: fixed; top: -10px; border-radius: 50%; pointer-events: none; z-index: 999; animation: fall linear infinite; }
@keyframes fall { 0% { transform: translateY(-10px) rotate(0deg) scale(1); opacity: 0; } 10% { opacity: 0.8; } 90% { opacity: 0.8; } 100% { transform: translateY(100vh) rotate(360deg) scale(0.5); opacity: 0; } }


/* =========================================
   MOBILE RESPONSIVENESS (Media Queries)
   ========================================= */

@media (max-width: 992px) {
    .masonry-grid { column-count: 2; }
}

@media (max-width: 768px) {
    /* Navbar Mobile */
    .hamburger { display: block; }
    .nav-links {
        position: absolute; top: 100%; left: 0; width: 100vw;
        background: rgba(42, 0, 1, 0.98);
        flex-direction: column; text-align: center; gap: 0;
        max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
    }
    .nav-links.active { max-height: 400px; border-bottom: 2px solid var(--gold-primary); }
    .nav-links li { padding: 15px 0; border-bottom: 1px solid rgba(212,175,55,0.1); width: 100%; }

    /* Timeline Vertical Fix for Mobile */
    .timeline::after { left: 20px; }
    .timeline-item { width: 100%; padding-left: 60px; padding-right: 15px; }
    .timeline-item.right { left: 0%; text-align: left; }
    .timeline-item.left { text-align: left; }
    .timeline-item.left::after, .timeline-item.right::after { left: 7px; top: 20px; width: 16px; height: 16px;}
    
    /* Layout Fixes */
    .masonry-grid { column-count: 1; }
    .btn-group { flex-direction: column; }
    .btn-group button { width: 100%; }
}

@media (max-width: 480px) {
    /* Extreme Small Screens Fix */
    .family-cards-wrapper { flex-direction: column; gap: 40px; }
    .center-rings { display: none; } /* Hide rings on super small to save space */
    .flip-card { width: 100%; height: 350px; }
    .timer-rings { gap: 10px; }
    .ring-box { width: 70px; height: 70px; }
    .time-content span { font-size: 1rem; }
    .time-content p { font-size: 0.5rem; }
    .css-mandala { border: none; } /* Simplify mandala on small screens */
    .css-mandala::after { border: 1px dotted rgba(94, 11, 21, 0.2); }
}

/* Default Desktop View */
.flip-cards-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    perspective: 1000px;
}

/* Tablet View (Optional: 2 cards per row) */
@media (max-width: 992px) {
    .flip-cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile View (One by One) */
@media (max-width: 600px) {
    .flip-cards-container {
        grid-template-columns: 1fr; /* Isse cards ek ke niche ek aayenge */
        gap: 20px;
        padding: 0 10px;
    }

    .flip-card {
        height: 300px; /* Mobile par card ki height adjust karne ke liye */
        width: 100%;
        margin: 0 auto;
    }
    
    .section-padding {
        padding: 40px 0; /* Mobile par section ki padding kam karne ke liye */
    }
}


    .timer-rings {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 15px;
        flex-wrap: nowrap; /* Mobile par line break na ho iske liye */
        padding: 20px 5px;
    }

    .ring-box {
        position: relative;
        /* Mobile ke liye dynamic size */
        width: clamp(70px, 20vw, 130px); 
        height: clamp(70px, 20vw, 130px);
    }

    .ring-box svg {
        width: 100%;
        height: 100%;
        transform: rotate(-90deg);
        overflow: visible;
    }

    .ring-box circle {
        fill: transparent;
        stroke: rgba(255, 255, 255, 0.1);
        stroke-width: 4;
        /* Percent-based positioning for perfect centering */
        cx: 50%;
        cy: 50%;
        r: 40%; 
    }

    .ring-box circle:nth-child(2) {
        stroke: #d4af37;
        stroke-linecap: round;
        transition: stroke-dashoffset 1s linear;
        /* Iski value JS se control hogi */
    }

    .time-content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        text-align: center;
    }

    .time-content span {
        display: block;
        font-size: clamp(1.2rem, 4vw, 2.5rem);
        font-weight: bold;
        color: #fff;
        line-height: 1;
    }

    .time-content p {
        font-size: clamp(0.6rem, 2vw, 0.9rem);
        color: #d4af37;
        margin: 2px 0 0 0;
        text-transform: uppercase;
    }

    /* Mobile par gap thoda kam karne ke liye */
    @media (max-width: 480px) {
        .timer-rings {
            gap: 8px;
        }
    }
    /* Sabse pehle poori body ko horizontal scroll se rokna */
    html, body {
        width: 100%;
        margin: 0;
        padding: 0;
        overflow-x: hidden; /* Ye side wala gap khatam kar dega */
        position: relative;
    }

    /* Hero section fix for Mobile */
    @media (max-width: 600px) {
        .content-wrapper {
            width: 100%;
            padding: 0 10px; /* Side se halki safety padding */
            box-sizing: border-box;
        }

        .hero-names {
            /* Clamp ensures names shrink on mobile without cutting */
            font-size: clamp(2rem, 10vw, 4.5rem) !important;
            white-space: normal !important; /* Mobile par name break ho sake agar zyada bada ho */
            word-wrap: break-word;
            display: block;
            width: 100%;
        }
        
        /* Event cards mapping for mobile */
        .flip-cards-container {
            display: grid !important;
            grid-template-columns: 1fr !important; /* Ek ke niche ek */
            gap: 20px !important;
            width: 100% !important;
            padding: 0 10px;
            box-sizing: border-box;
        }

        /* Family grid adjustment */
        .family-grid-10 {
            display: grid !important;
            grid-template-columns: repeat(2, 1fr) !important; /* Mobile par 2 columns */
            gap: 10px !important;
        }

        .step-row.flex-row {
            flex-direction: column !important; /* Horizontally bahar jane se rokega */
            align-items: center;
        }
        
        .glass-pill {
            width: 90% !important;
            margin: 5px 0 !important;
        }

        .timer-rings {
            gap: 5px !important;
            justify-content: space-evenly !important;
        }
        
        .ring-box {
            width: 75px !important; /* Mobile circles size fix */
            height: 75px !important;
        }
        
        .ring-box svg {
            width: 75px;
            height: 75px;
        }
        
        /* Circumference adjustments in CSS for small circles */
        .ring-box circle {
            cx: 37.5;
            cy: 37.5;
            r: 32;
        }
    }
@keyframes heartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); color: #ff0000; filter: drop-shadow(0 0 10px #ff0000); }
    100% { transform: scale(1); }
}
.heart-active {
    animation: heartPop 0.4s ease-out;
}
/* Map Container ko chota karne ke liye */
.map-responsive {
    overflow: hidden;
    padding-bottom: 250px; /* Map ki fix height (Chota dikhne ke liye) */
    position: relative;
    height: 0;
    border-radius: 15px;
    border: 2px solid var(--gold-primary);
    margin: 20px auto;
    max-width: 500px; /* Width ko 900 se 500 kar diya (Chota Size) */
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
}

/* Mobile ke liye aur bhi chota adjustment */
@media (max-width: 600px) {
    .map-responsive {
        max-width: 90% !important; /* Mobile screen ke dono taraf gap rahega */
        padding-bottom: 200px; /* Mobile par height thodi aur kam */
    }
}
.btn-gold {
    background: #5E0B15; /* Royal Maroon Colour */
    border: 2px solid #D4AF37; /* Gold Border */
    color: #D4AF37 !important; /* Gold Text */
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s all ease;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Hover karne par colour swap ho jayega */
.btn-gold:hover {
    background: #D4AF37; /* Background Gold ho jayega */
    color: #5E0B15 !important; /* Text Maroon ho jayega */
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}