:root {
    /* --- BOLLYWOOD THEME PALETTE --- */
    --cinema-black: #050505;
    --red-carpet: #e50914; /* Netflix/Cinema Red */
    --gold-fallback: #ffd700;  /* Fallback color */
    --spotlight-white: #ffffff;
    --ticket-grey: #222222; 
    
    --font-head: 'Bebas Neue', sans-serif;
    --font-sub: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* FIX: Strict overflow control to prevent side scrolling on mobile */
html, body {
    width: 100%;
    overflow-x: hidden; 
}

body { 
    background-color: var(--cinema-black);
    color: var(--spotlight-white);
    font-family: var(--font-body); 
}

/* =======================================================
   --- BROWSER OVERRIDES (NATIVE APP FEEL) ---
   ======================================================= */

/* 1. Removes the blue flash/box on tap for ALL elements (Mobile) */
* {
    -webkit-tap-highlight-color: transparent;
}

/* 2. Removes the blue focus ring on click (Desktop) */
a:focus, button:focus, .lang-switch:focus, input:focus, .event-row:focus, .modal-close-area:focus {
    outline: none !important;
}

/* 3. Prevents accidental text highlighting when double-tapping UI buttons */
button, a, .lang-switch, .modal-close-area, .event-row, .envelope-container, .shagun-box {
    -webkit-user-select: none; /* Safari/Chrome */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
}

/* 4. Prevents "Ghost Image" dragging when interacting with elements */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: none; /* Stops right-click save prompt on decorative images */
}

/* Re-enable pointer events ONLY for images that need to be interacted with/scanned */
.qr-placeholder, .qr-img-real {
    pointer-events: auto; 
}
/* ======================================================= */

/* --- UTILS --- */
.gold-icon { 
    font-size: 2rem; 
    /* Apply Gold Texture to Icon */
    background: url('images/gold.webp');
    background-size: cover;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 15px; 
}

/* 🌟 GOLD TEXTURE CLASS (For Text) */
.gold-text-effect {
    background: url('images/gold.webp');
    background-size: cover;
    background-position: center;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent; 
    text-shadow: none; 
    filter: drop-shadow(0px 4px 0px rgba(183, 28, 28, 0.5));
}

.auspicious-symbol {
    color: var(--gold-fallback); /* Makes it Gold */
    font-size: 1.5rem;           /* Sets the size */
    margin-bottom: 30px;         /* <--- THIS ADDS THE SPACE */
    font-weight: bold;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* Lang Switch */
.lang-switch {
    position: fixed; top: 20px; right: 20px; z-index: 1001;
    border: 2px solid transparent;
    border-image: url('images/gold.webp') 30 stretch;
    padding: 8px 15px; cursor: pointer; 
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(4px);
    color: var(--gold-fallback);
    font-family: var(--font-sub); 
    font-size: 0.8rem;
    transition: 0.3s;
}
.lang-switch:hover { background: var(--gold-fallback); color: #000; }

/* --- LOADER WITH DOODLES --- */
.loader-overlay { 
    position: fixed; 
    /* FIX: Force full viewport dimensions to prevent misalignment */
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 3000; 
    display: flex; flex-direction: column; justify-content: center; align-items: center; 
    background: #000; 
    overflow: hidden;
    touch-action: none; /* Prevents scrolling while loading */
}

/* 🎥 DOODLE BACKGROUND */
.loader-overlay::before {
    content: '';
    position: absolute; inset: 0;
    /* Use the PNG doodle file */
    background-image: url('images/cinema_doodles.webp');
    background-size: 500px; 
    background-repeat: repeat;
    
    /* Just opacity, NO invert because image is white-on-black */
    filter: opacity(0.2); 
    
    animation: backgroundScroll 30s linear infinite;
    z-index: 0;
}

@keyframes backgroundScroll {
    from { background-position: 0 0; }
    to { background-position: 100% 100%; }
}

.film-countdown-circle {
    width: 200px; height: 200px;
    border: 4px solid #333;
    border-radius: 50%;
    position: relative;
    display: flex; justify-content: center; align-items: center;
    background: radial-gradient(circle, #222, #000);
    box-shadow: 0 0 30px rgba(255,255,255,0.1);
    z-index: 2;
}
.radar-sweep {
    position: absolute; inset: 0;
    border-radius: 50%;
    background: conic-gradient(transparent 0deg, rgba(255, 255, 255, 0.1) 60deg, transparent 360deg);
    animation: radarSpin 1s linear infinite;
}
@keyframes radarSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
#countdown-number { font-family: var(--font-head); font-size: 8rem; color: var(--spotlight-white); z-index: 2; }

.loading-text { 
    margin-top: 30px; font-family: var(--font-sub); 
    color: var(--gold-fallback); letter-spacing: 4px; 
    text-transform: uppercase; z-index: 2; position: relative;
}

/* --- HERO SECTION --- */
.hero-section { position: relative; height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; overflow: hidden; }

/* STATIC VIGNETTE */
.static-vignette {
    position: absolute; inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.4) 60%, #050505 100%);
    z-index: 1;
    pointer-events: none;
}

/* 🎥 IMAGE: SPOTLIGHT BG */
.hero-bg { 
    position: absolute; inset: 0; 
    background: url('images/spotlight.jpg');
    background-size: cover;
    background-position: center;
    opacity: 1; 
    z-index: 0;
}

.hero-content { position: relative; z-index: 2; text-align: center; width: 90%; max-width: 600px; opacity: 0; }

/* 🌟 GOLD MOVIE POSTER BORDER */
.movie-poster-border { 
    border: 5px solid transparent;
    border-image: url('images/gold.webp') 30 stretch;
    padding: 60px 20px; 
    position: relative; 
    background: rgba(0,0,0,0.4);
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.15);
}

.couple-names { 
    font-family: var(--font-head); 
    font-size: 6rem; line-height: 1; 
    color: var(--gold-fallback); 
    margin: 20px 0; 
}

.intro-tag { font-family: var(--font-sub); letter-spacing: 3px; color: #fff; font-size: 0.8rem; text-transform: uppercase; }
.date-loc { font-family: var(--font-sub); color: #ccc; margin-top: 10px; }
.venue-link { color: var(--red-carpet); text-decoration: none; font-weight: bold; transition: 0.3s; }
.venue-link:hover { color: var(--gold-fallback); }

.scroll-indicator {
    position: absolute; bottom: 30px; z-index: 10;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    color: var(--gold-fallback); font-family: var(--font-head); letter-spacing: 2px;
    animation: bounce 2s infinite;
}
.arrow-down { 
    width: 0; height: 0; 
    border-left: 10px solid transparent; border-right: 10px solid transparent; 
    border-top: 10px solid var(--gold-fallback); 
}
@keyframes bounce { 0%, 20%, 50%, 80%, 100% {transform: translateY(0);} 40% {transform: translateY(-10px);} 60% {transform: translateY(-5px);} }

/* --- TIMELINE --- */
.timeline-section { padding: 100px 20px; background: #080808; position: relative; }
.section-title { text-align: center; font-family: var(--font-head); font-size: 4rem; color: var(--spotlight-white); margin-bottom: 60px; text-transform: uppercase; letter-spacing: 2px; }

/* 🌟 GOLD TIMELINE LINE */
.timeline-line { 
    position: absolute; left: 50%; top: 0; bottom: 0; width: 4px; 
    background: url('images/gold.webp'); 
    transform: translateX(-50%); 
}

.event-row { 
    display: flex; justify-content: flex-end; 
    padding-bottom: 60px; position: relative; width: 50%; 
    /* FIX: Removed cursor pointer from here so card hover works freely */
}
.event-row.right { align-self: flex-end; margin-left: auto; justify-content: flex-start; }
.event-row.left { margin-right: auto; }

.event-dot { 
    position: absolute; top: 20px; 
    width: 40px; height: 40px; 
    background: var(--red-carpet); 
    border: 3px solid #d4af37; 
    border-radius: 50%; 
    z-index: 10; 
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1rem;
    box-shadow: 0 0 15px var(--red-carpet);
}

.left .event-dot { right: -20px; } 
.right .event-dot { left: -20px; }

.event-card.ticket-shape {
    width: 90%;
    background: var(--ticket-grey);
    color: white;
    padding: 0;
    display: flex; flex-direction: column;
    position: relative;
    background-image: radial-gradient(circle at 0 50%, transparent 10px, var(--ticket-grey) 11px),
                      radial-gradient(circle at 100% 50%, transparent 10px, var(--ticket-grey) 11px);
    background-size: 50% 100%;
    background-position: 0 0, 100% 0;
    background-repeat: no-repeat;
    /* Gold Side Borders */
    border-left: 4px solid var(--gold-fallback);
    border-right: 4px solid var(--gold-fallback);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

.left .event-card { margin-right: 30px; } 
.right .event-card { margin-left: 30px; }

.event-card:hover { 
    transform: scale(1.03) rotate(1deg); 
    box-shadow: 0 0 40px rgba(229, 9, 20, 0.7); 
    border-color: var(--red-carpet);
}

.ticket-stub {
    background: var(--red-carpet);
    padding: 15px;
    border-radius: 8px 8px 0 0;
    border-bottom: 2px dashed rgba(255,255,255,0.3);
}
.ticket-stub h3 { font-family: var(--font-head); font-size: 1.8rem; letter-spacing: 1px; color: white; margin-bottom: 5px; }
.ticket-stub .time { font-size: 0.9rem; font-family: var(--font-sub); opacity: 0.9; }

.ticket-body { padding: 20px; text-align: left; }

/* FIX: Tap Hint is now a clickable button */
.tap-hint { 
    display: inline-flex; align-items: center; gap: 8px; 
    color: var(--gold-fallback); 
    font-size: 0.8rem; margin-top: 15px; 
    text-transform: uppercase; font-weight: bold; 
    cursor: pointer;
    padding: 5px 10px;
    border: 1px solid transparent;
    transition: 0.3s;
    border-radius: 4px;
    z-index: 20;
}
.tap-hint:hover {
    border-color: var(--gold-fallback);
    background: rgba(212, 175, 55, 0.1);
}

/* --- FOOTER (REVISED: Red Velvet Box + Red Button) --- */
.footer-section { 
    text-align: center; 
    padding: 80px 20px 40px; 
    background: linear-gradient(to top, #000, #1a0000); /* Fade to deep red */
    border-top: 1px solid var(--gold-fallback); 
    position: relative; 
    z-index: 10;
}

/* NEW BOX: Deep Red Velvet instead of Gold Texture */
.shagun-box { 
    max-width: 600px; margin: 0 auto 60px; padding: 40px; 
    
    /* Deep Red Gradient */
    background: linear-gradient(135deg, #4a0000 0%, #2b0000 100%);
    
    /* Simple Gold Border */
    border: 1px solid var(--gold-fallback);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border-radius: 8px;
}

/* NEW BUTTON: Solid Red Carpet */
.shagun-trigger-btn { 
    padding: 15px 40px; 
    margin-top: 20px;
    border: 1px solid rgba(255,255,255,0.2);
    
    background: var(--red-carpet); 
    color: #fff; 
    
    font-weight: bold;
    font-family: var(--font-sub); cursor: pointer; transition: 0.3s; 
    font-size: 1rem; text-transform: uppercase; letter-spacing: 2px;
    border-radius: 4px;
}
.shagun-trigger-btn:hover { background: #fff; color: var(--red-carpet); box-shadow: 0 0 20px var(--red-carpet); }

.final-cta { display: flex; flex-direction: column; align-items: center; gap: 15px; }

/* NEW WHATSAPP: Black & Gold */
.whatsapp-btn { 
    display: inline-flex; align-items: center; gap: 10px; 
    background: #000;
    border: 1px solid var(--gold-fallback);
    color: var(--gold-fallback); 
    padding: 15px 40px; border-radius: 50px; 
    text-decoration: none; font-weight: 800; font-family: var(--font-sub); 
    transition: 0.3s; 
    text-transform: uppercase;
}
.whatsapp-btn:hover { 
    background: var(--gold-fallback);
    color: #000;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.hashtag { font-family: var(--font-head); color: var(--red-carpet); letter-spacing: 2px; font-size: 1.5rem; }
.credit-link { color: white; text-decoration: none; font-size: 0.7rem; }

/* --- MODALS --- */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.95);
    backdrop-filter: blur(5px); z-index: 2000;
    display: none; justify-content: center; align-items: center;
}

/* 📧 ENVELOPE MODAL (With Doodles Background) */
.shagun-modal-overlay {
    position: fixed; inset: 0; 
    background: #000; /* Dark Base */
    z-index: 2000;
    display: none; justify-content: center; align-items: center;
    overflow: hidden;
}

/* Apply Doodles here too */
.shagun-modal-overlay::before {
    content: '';
    position: absolute; inset: 0;
    background-image: url('images/cinema_doodles.webp');
    background-size: 400px; 
    background-repeat: repeat;
    filter: opacity(0.2); 
    z-index: 0;
}

.shagun-modal-overlay.active { display: flex; animation: fadeIn 0.3s ease-out; }

.modal-card { 
    background: #111; 
    border: 3px solid transparent;
    border-image: url('images/gold.webp') 30 stretch;
    padding: 30px; text-align: center; 
    width: 90%; max-width: 400px; color: white;
}
.modal-actions { display: flex; gap: 10px; justify-content: center; margin: 20px 0; }
.cal-btn { 
    padding: 10px 20px; border-radius: 5px; cursor: pointer; 
    font-weight: bold; display: flex; gap: 8px; align-items: center; 
    text-decoration: none; font-size: 0.9rem; color: #fff;
}
.cal-btn.google { background: #db4437; }
.cal-btn.apple { background: #333; }

/* CLAPPERBOARD CLOSE BUTTON */
.close-btn { 
    background: var(--red-carpet); 
    color: white; 
    border: 2px solid white; 
    padding: 10px 30px;
    font-family: var(--font-head); 
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer; 
    margin-top: 20px; 
    transform: rotate(-3deg); 
    box-shadow: 5px 5px 0px #000;
    transition: 0.2s;
}
.close-btn:hover {
    transform: rotate(0deg) scale(1.1);
    background: #fff;
    color: var(--red-carpet);
    border-color: var(--red-carpet);
}

/* ENVELOPE */
.modal-close-area { position: absolute; top: 20px; right: 30px; font-size: 3rem; color: #fff; cursor: pointer; z-index: 3005; }
.envelope-container { perspective: 1500px; width: 300px; height: 200px; position: relative; cursor: pointer; transition: transform 0.3s; z-index: 2; }
.envelope { 
    width: 100%; height: 100%; 
    background: #333; 
    position: relative; transform-style: preserve-3d; 
    border: 3px solid transparent;
    border-image: url('images/gold.webp') 30 stretch;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
}
.envelope-flap-wrapper { position: absolute; top: 0; left: 0; width: 100%; height: 50%; transform-origin: top; transition: 0.6s; z-index: 6; pointer-events: none; }
.envelope-flap-triangle { width: 100%; height: 100%; background: var(--red-carpet); clip-path: polygon(0 0, 50% 100%, 100% 0); border-top: 1px solid rgba(255,255,255,0.2); }
.wax-seal { position: absolute; bottom: -15px; left: 50%; transform: translateX(-50%); width: 40px; height: 40px; background: url('images/gold.webp'); background-size: cover; border-radius: 50%; z-index: 10; display: flex; justify-content: center; align-items: center; color: #000; }
.envelope-sides { position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; background: #000; clip-path: polygon(0 0, 0 100%, 60% 50%); z-index: 4; }
.envelope-sides.right { transform: scaleX(-1); }
.envelope-pocket { position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; background: #333; clip-path: polygon(0 100%, 50% 50%, 100% 100%); z-index: 5; }
.envelope-card { position: absolute; width: 90%; height: 95%; left: 5%; bottom: 0; background: #fff; color: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: 0.8s; z-index: 2; padding: 10px; border: 4px solid #000; }
.qr-img-real { width: 100px; height: 100px; object-fit: contain; margin: 10px 0; }
.envelope-container.open .envelope-flap-wrapper { transform: rotateX(180deg); z-index: 1; }
.envelope-container.open .envelope-card { transform: translateY(-120px); z-index: 7; }

/* MOBILE FIXES */
@media (max-width: 768px) {
    .timeline-line { left: 30px !important; transform: none !important; }
    .event-row { width: 100% !important; justify-content: flex-start !important; padding-left: 60px !important; }
    .left .event-card, .right .event-card { margin: 0 !important; }
    .event-dot { left: 10px !important; right: auto !important; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }