@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@200;400;600;800;900&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

:root {
    --bg-dark: #050505;
    --card-bg: rgba(255, 255, 255, 0.02);
    --border-color: rgba(255, 255, 255, 0.05);
    
    --accent-glow: #F26419;
    --gold-light: #F6AE2D;
    --gold-gradient: linear-gradient(135deg, var(--gold-light) 0%, var(--accent-glow) 100%);
    
    --f-main: 'Outfit', sans-serif;
    --f-head: 'Playfair Display', serif;
    
    --text-main: #F4F4F5;
    --text-mut: #8b8c93;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }
body { background-color: var(--bg-dark); color: var(--text-main); font-family: var(--f-main); overflow-x: hidden; }
body.locked { overflow: hidden !important; }
::-webkit-scrollbar { width: 0; }

/* Cinematic Film Grain */
.film-grain {
    position: fixed; inset: 0; pointer-events: none; z-index: 9999; opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* PC Custom Cursor */
.custom-cursor, .cursor-glow { display: none; }
@media (pointer: fine) {
    *, a, button { cursor: none !important; }
    .custom-cursor { display: block; position: fixed; top: 0; left: 0; width: 8px; height: 8px; border-radius: 50%; background: #fff; pointer-events: none; z-index: 10000; transition: width 0.2s, height 0.2s; mix-blend-mode: exclusion; }
    .cursor-glow { display: block; position: fixed; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.4); pointer-events: none; z-index: 9999; transition: width 0.3s, height 0.3s, border-color 0.3s; }
    body.hovering .custom-cursor { width: 0; height: 0; }
    body.hovering .cursor-glow { width: 80px; height: 80px; background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.8); backdrop-filter: blur(2px); }
}

/* Ambient Background Glows */
.ambient-glow { position: fixed; border-radius: 50%; filter: blur(100px); pointer-events: none; z-index: -1; opacity: 0.2; }
.glow-1 { width: 60vw; height: 60vw; background: var(--accent-glow); top: -20%; left: -20%; }
.glow-2 { width: 50vw; height: 50vw; background: var(--gold-light); bottom: -10%; right: -20%; }
.glow-3 { width: 40vw; height: 40vw; background: #FF007F; top: 30%; left: 30%; opacity: 0.1; }

/* Typography Utils */
.gradient-text { background: var(--gold-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.text-center { text-align: center; }
.section-head { font-family: var(--f-main); font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 800; text-transform: uppercase; letter-spacing: -2px; line-height: 1; margin-bottom: 20px;}

/* --- Entry Screen: Cinematic Curtain --- */
.entry-wrapper { position: fixed; inset: 0; z-index: 9000; display: flex; }
.entry-curtain { flex: 1; height: 100%; background: #000; border-right: 1px solid rgba(255,255,255,0.02); }
.entry-content { position: fixed; inset: 0; z-index: 9001; display: flex; flex-direction: column; justify-content: center; align-items: center; background: rgba(0,0,0,0.4); backdrop-filter: blur(10px); }
.entry-wrapper.revealed .entry-curtain { flex: 0; transition: flex 1.5s cubic-bezier(0.77, 0, 0.175, 1); }
.entry-wrapper.revealed .entry-content { opacity: 0; pointer-events: none; transition: 0.5s; }

.entry-mantra { font-family: var(--f-head); font-size: clamp(1.8rem, 5vw, 2.5rem); background: var(--gold-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 20px; letter-spacing: 2px; }

/* Liquid Hover Button */
.liquid-btn {
    position: relative; padding: 20px 50px; border-radius: 50px; background: transparent; border: 1px solid rgba(255,255,255,0.2);
    color: #fff; font-family: var(--f-main); font-weight: 600; font-size: 1rem; letter-spacing: 4px; text-transform: uppercase;
    overflow: hidden; backdrop-filter: blur(5px); transition: 0.3s;
}
.liquid-btn::before { content: ''; position: absolute; top: 100%; left: -50%; width: 200%; height: 200%; background: var(--gold-gradient); border-radius: 40%; transition: top 0.6s cubic-bezier(0.4, 0, 0.2, 1); z-index: -1; animation: liquid 4s linear infinite; }
.liquid-btn:hover { color: #000; border-color: transparent; box-shadow: 0 10px 40px rgba(246, 174, 45, 0.4); }
.liquid-btn:hover::before { top: -20%; }
@keyframes liquid { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* --- Premium 16:9 Teaser Hero --- */
.cinematic-hero { 
    min-height: 100vh; min-height: 100dvh; position: relative; overflow: hidden; 
    display: flex; flex-direction: column; justify-content: space-around; align-items: center; 
    padding: 15vh 5vw 10vh 5vw;
}

/* Beautiful Top Border to Fill Space */
.cinematic-hero::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 250px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 250' preserveAspectRatio='none'%3E%3Cpath d='M0,0 Q250,250 500,100 T1000,0 Z' fill='none' stroke='rgba(212, 175, 55, 0.2)' stroke-width='2'/%3E%3Cpath d='M0,0 Q250,200 500,50 T1000,0 Z' fill='none' stroke='rgba(212, 175, 55, 0.1)' stroke-width='1.5'/%3E%3C/svg%3E");
    pointer-events: none; z-index: 1;
}

.hero-titles { text-align: center; margin-bottom: 2vh; margin-top: -2vh; z-index: 10; display: flex; flex-direction: column; align-items: center; flex: 1; justify-content: center;}
.ganesh-3d { 
    width: 20vw; max-width: 150px; height: auto; margin-bottom: 25px; 
    mix-blend-mode: screen; /* Converts the black bg to transparent perfectly */
    filter: contrast(1.3) brightness(1.2); 
    animation: float 6s ease-in-out infinite; 
}
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0px); } }

.sub-title { font-family: var(--f-main); font-size: clamp(0.7rem, 2vw, 0.9rem); letter-spacing: 6px; text-transform: uppercase; color: var(--gold-light); margin-bottom: 10px; }
.grand-name { font-family: var(--f-head); font-style: italic; font-weight: 400; font-size: clamp(4rem, 12vw, 8rem); color: #fff; line-height: 1; }
.grand-name span { color: var(--accent-glow); font-family: var(--f-main); font-style: normal; font-weight: 200; font-size: 0.7em; margin: 0 10px;}

.teaser-container {
    width: 100%; max-width: 1000px; aspect-ratio: 16 / 9; position: relative; z-index: 10;
    border-radius: 12px; overflow: hidden; box-shadow: 0 40px 60px rgba(0,0,0,0.9);
    border: 1px solid rgba(255,255,255,0.1); margin-bottom: 8vh;
}
.teaser-frame { position: absolute; inset: 0; box-shadow: inset 0 0 50px rgba(0,0,0,0.5); pointer-events: none; border-radius: 10px; border: 1px solid rgba(246, 174, 45, 0.2); }
.teaser-vid { width: 100%; height: 100%; object-fit: cover; filter: sepia(10%) contrast(1.1); }

.scroll-helper { position: absolute; bottom: 5vh; display: flex; flex-direction: column; align-items: center; gap: 15px; z-index: 10;}
.scroll-helper span { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 5px; color: var(--text-mut); }
.scroll-helper .line { width: 1px; height: 40px; background: var(--text-mut); animation: drawLine 2s infinite; transform-origin: top; }
@keyframes drawLine { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 50.1% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* --- Quote Space Filler --- */
.quote-section { padding: 8vh 5vw; display: flex; justify-content: center; align-items: center; }
.quote-text { font-family: var(--f-head); font-style: italic; font-size: clamp(1.8rem, 4vw, 3rem); color: #fff; max-width: 900px; text-align: center; font-weight: 400; line-height: 1.4; color: var(--text-mut);}

.section-divider {
    width: 1px; height: 100px; background: linear-gradient(to bottom, transparent, var(--gold-light), transparent); margin: 0 auto;
}

/* --- Glass Bento Content --- */
.couple-section { padding: 10vh 5vw; }
.glass-bento { display: grid; grid-template-columns: 1fr; gap: 20px; max-width: 1200px; margin: 0 auto; }
@media (min-width: 1000px) { .glass-bento { grid-template-columns: 1fr 200px 1fr; } }
.bento-glass-card {
    background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 30px; overflow: hidden;
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); display: flex; flex-direction: column;
}
.bento-img { width: 100%; height: 350px; object-fit: cover; object-position: top center; filter: grayscale(100%); transition: 0.5s; }
.bento-glass-card:hover .bento-img { filter: grayscale(0%); transform: scale(1.05); }
.bento-content { padding: 30px; }
.bento-content h3 { font-family: var(--f-head); font-size: 2.5rem; color: #fff; margin-bottom: 15px; }
.bento-content p { color: var(--text-mut); line-height: 1.6; font-size: 1.1rem; }
.rotating-ring { font-size: 2rem; color: var(--gold-light); animation: spin 10s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }
@media (max-width: 1000px) { .center-ring { display: none !important; } }

/* --- Events Grid Space Filler --- */
.events-section { padding: 10vh 5vw; }
.events-grid { display: grid; grid-template-columns: 1fr; gap: 20px; max-width: 1200px; margin: 0 auto; }
@media (min-width: 900px) { .events-grid { grid-template-columns: 1fr 1fr; } .main-event { grid-column: span 2; } }

.event-apple-card {
    background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); border-radius: 30px; padding: 40px;
    backdrop-filter: blur(30px); transition: 0.4s;
}
.event-apple-card:hover { background: rgba(255,255,255,0.05); transform: translateY(-5px); border-color: rgba(212,175,55,0.3); }
.e-type { font-size: 0.8rem; letter-spacing: 3px; color: var(--accent-glow); text-transform: uppercase; margin-bottom: 10px; }
.event-apple-card h3 { font-family: var(--f-head); font-size: 2.5rem; color: #fff; margin-bottom: 20px; }
.e-vital { font-size: 1.5rem; font-weight: 200; font-family: var(--f-main); color: #fff; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid var(--border-color); }
.event-apple-card p { color: var(--text-mut); margin-bottom: 20px; font-size: 1.1rem; }
.e-loc { font-size: 0.9rem; letter-spacing: 1px; color: var(--gold-light); text-transform: uppercase; }

.cyber-link { display: inline-block; margin-top: 25px; padding: 12px 30px; border-radius: 50px; background: #fff; color: #000; text-decoration: none; font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; }
.cyber-link:hover { background: var(--gold-gradient); }

/* Countdown Sleek */
.sleek-countdown { margin: 50px auto 0 auto; max-width: 800px; display: flex; justify-content: space-around; flex-wrap: wrap; background: rgba(255,255,255,0.02); border: 1px solid var(--border-color); border-radius: 30px; padding: 40px; backdrop-filter: blur(20px); gap: 20px;}
.c-item { display: flex; flex-direction: column; align-items: center; }
.c-item span { font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 800; color: #fff; line-height: 1; }
.c-item small { font-size: 0.8rem; color: var(--gold-light); letter-spacing: 2px; text-transform: uppercase; margin-top: 10px; }

/* --- Mandap Particles --- */
.mandap-immersive { position: relative; height: 100vh; background: #000; display: flex; justify-content: center; align-items: center; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.canvas-wrap { position: absolute; inset: 0; z-index: 1; }
.mandap-content { position: relative; z-index: 10; text-align: center; pointer-events: none; }
.mandap-text { font-family: var(--f-head); font-style: italic; font-size: clamp(3rem, 10vw, 6rem); color: #fff; text-shadow: 0 10px 30px rgba(0,0,0,0.8); }

/* --- Kinetic Marquee Skew Gallery --- */
.gallery-section { padding: 10vh 0; overflow: hidden; background: transparent; }
.marquee-wrapper { display: flex; width: max-content; margin-bottom: 30px; }
.marquee-track { display: flex; gap: 30px; padding: 0 15px; }

.marquee-item { width: 60vw; max-width: 400px; aspect-ratio: 4/5; border-radius: 20px; overflow: hidden; position: relative; flex-shrink: 0; transform-origin: center; }
.marquee-item img { width: 100%; height: 100%; object-fit: cover; object-position: top center; filter: grayscale(50%) brightness(0.8); transition: filter 0.5s; }
.marquee-item:hover img { filter: grayscale(0%) brightness(1); }
.marquee-wrapper.reverse .marquee-track { animation-direction: reverse; }

/* --- Modern Footer --- */
.modern-footer { padding: 15vh 5vw; text-align: center; }
.modern-footer h3 { font-family: var(--f-head); font-size: clamp(2rem, 5vw, 4rem); font-style: italic; margin-bottom: 20px; }
.modern-footer p { font-size: 1.2rem; color: var(--text-mut); line-height: 1.6; }

/* --- Direct Floating Communication Buttons --- */
.direct-floating-actions {
    position: fixed; bottom: 30px; right: 30px; z-index: 9999;
    display: flex; flex-direction: column; gap: 15px;
}
.direct-btn {
    width: 60px; height: 60px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    background: #25D366; color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: 0.3s;
}
.direct-btn svg { width: 32px; height: 32px; }
.direct-btn:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.6); }

.call-btn { background: #007AFF; }

/* --- Modal Styles --- */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(10px);
    z-index: 10000; display: flex; justify-content: center; align-items: center;
    opacity: 0; pointer-events: none; transition: 0.4s;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-box {
    background: rgba(25px,25px,25px,0.9); border: 1px solid var(--border-color);
    padding: 40px; border-radius: 30px; text-align: center; width: 90%; max-width: 400px;
    transform: translateY(50px); transition: 0.4s; box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}
.modal-overlay.active .modal-box { transform: translateY(0); }

@media (max-width: 768px) {
    .direct-floating-actions { bottom: 20px; right: 20px; gap: 10px; }
    .direct-btn { width: 50px; height: 50px; }
    .direct-btn svg { width: 26px; height: 26px; }
}
