/* ========================================= */
/* 1. CONFIGURATION & RESET                  */
/* ========================================= */
:root {
    --bg-color: #FFFBF7;      
    --card-bg: #FFFBF7;       
    --primary: #C55A37;       
    --primary-dark: #8F3E22;
    --gold-accent: #CD853F;
    --gold-darker: #9E6B3F; 
    --text-dark: #4A4A4A;     
    --text-light: #666666;    
    --border-color: #E6DCCA;
    --radius: 16px;           
}

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

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

html.lenis, html.lenis body { height: auto; width: 100%; overflow-x: hidden; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
    background-color: var(--bg-color);
    background-image: linear-gradient(rgba(255, 251, 247, 0.93), rgba(255, 251, 247, 0.93)), url('../images/img1.png');
    background-repeat: repeat;
    background-size: 400px auto; 
    color: var(--text-dark);
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    display: flex; flex-direction: column; min-height: 100vh; 
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; color: #2c2c2c; font-weight: 700; }
.text-center { text-align: center; }

/* --- THE FILM GRAIN TEXTURE --- */
.film-grain {
    position: fixed; top: -50%; left: -50%; right: -50%; bottom: -50%;
    width: 200%; height: 200%;
    background: transparent 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');
    opacity: 0.04; pointer-events: none; z-index: 9999;
    animation: grain 8s steps(10) infinite;
}
@keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -10%); }
    20% { transform: translate(-15%, 5%); }
    30% { transform: translate(7%, -25%); }
    40% { transform: translate(-5%, 25%); }
    50% { transform: translate(-15%, 10%); }
    60% { transform: translate(15%, 0%); }
    70% { transform: translate(0%, 15%); }
    80% { transform: translate(3%, 35%); }
    90% { transform: translate(-10%, 10%); }
}

/* ========================================= */
/* 2. NAVIGATION                             */
/* ========================================= */
nav { position: sticky; top: 0; z-index: 1000; text-align: center; background: #FFFBF7; padding: 1rem; box-shadow: 0 2px 10px rgba(0,0,0,0.03); transition: transform 0.3s ease-in-out; }
nav a { margin: 0 15px; text-decoration: none; color: var(--text-dark); font-weight: 600; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1.5px; }
nav.nav-hidden { transform: translateY(-100%); }
.transparent-nav { position: fixed; top: 0; left: 0; width: 100%; background-color: transparent; display: flex; justify-content: space-between; align-items: center; padding: 15px 30px; z-index: 1000; transition: transform 0.3s ease, background-color 0.3s ease; border: none; box-shadow: none; }
.nav-white { background-color: #FFFBF7; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }

.btn { display: inline-block; padding: 12px 28px; text-decoration: none; border-radius: 50px; font-family: 'Lato', sans-serif; font-weight: 600; cursor: pointer; transition: all 0.3s ease; text-align: center; font-size: 0.9rem; letter-spacing: 0.5px; border: 2px solid transparent; }
.btn.primary { background: var(--primary); color: white; border-color: var(--primary); box-shadow: 0 4px 15px rgba(197, 90, 55, 0.3); }

/* ========================================= */
/* 3. HERO SECTION                           */
/* ========================================= */
.hero {
    height: 100vh; width: 100%; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; 
    padding-top: 30vh; text-align: center; color: white; position: relative; overflow: hidden;
}
.hero-bg { position: absolute; top: -5%; left: -5%; width: 110%; height: 110%; background-size: cover; background-position: bottom 10%; z-index: 0; }
.hero-bg-home { background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), url('../images/hero.webp'); }
.hero-content { position: relative; z-index: 1; }

.hero h1 { font-size: 5rem; margin: 0 0 10px; color: var(--gold-darker); text-shadow: 0 2px 20px rgba(0,0,0,0.4); line-height: 1.1; display: flex; gap: 15px; justify-content: center; align-items: center; flex-wrap: wrap; }
.hero h1 span { display: inline-block; }
.hero-sub { font-size: 1.5rem; margin-top: 5px; color: var(--gold-darker); font-weight: 600; letter-spacing: 2px; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }

/* ========================================= */
/* 4. ITINERARY CARDS (DESIGN UPGRADE)       */
/* ========================================= */
.section { padding: 80px 20px; max-width: 900px; margin: 0 auto; }
.section-title { text-align: center; font-size: 3rem; color: var(--primary-dark); margin-bottom: 5px; }

/* Blooming Dividers */
.custom-divider { display: flex; align-items: center; justify-content: center; margin: 20px auto 50px; width: 100%; max-width: 300px; }
.divider-icon-center { color: var(--primary); font-size: 1.2rem; margin: 0 15px; opacity: 0.8; }
.custom-divider::before, .custom-divider::after { content: ''; height: 1px; background-color: var(--primary); opacity: 0.4; flex-grow: 1; transform: scaleX(0); transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1); }
.custom-divider::before { transform-origin: right; }
.custom-divider::after { transform-origin: left; }
.custom-divider.bloom::before, .custom-divider.bloom::after { transform: scaleX(1); }

.timeline-list { display: flex; flex-direction: column; gap: 30px; }
.timeline-card { background: #FFFFFF; border: 1px solid var(--border-color); border-radius: 20px; padding: 35px 40px; display: flex; gap: 40px; align-items: center; box-shadow: 0 10px 30px rgba(197, 90, 55, 0.06); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease; }

/* Continuous Floating Icons */
@keyframes float-icon { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.timeline-icon { width: 100px; height: 100px; object-fit: contain; filter: drop-shadow(0 8px 12px rgba(0,0,0,0.1)); flex-shrink: 0; animation: float-icon 4s ease-in-out infinite; }

.timeline-info { flex-grow: 1; text-align: left; }
.timeline-info h3 { font-size: 2rem; color: var(--primary-dark); margin-bottom: 15px; line-height: 1.2; }
.timeline-info p { display: flex; align-items: center; gap: 12px; color: #555; font-size: 1.05rem; margin-bottom: 8px; }
.timeline-info p i { color: var(--gold-accent); width: 20px; text-align: center; font-size: 1.1rem;}

.map-btn { display: inline-block; margin-top: 15px; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; color: var(--primary); text-decoration: none; border-bottom: 2px dashed var(--primary); padding-bottom: 2px; transition: color 0.3s; }

/* ========================================= */
/* 5. 3D CAROUSEL SECTION (STAY & ASSISTANCE)*/
/* ========================================= */
.date-header-row { display: flex; align-items: center; justify-content: center; margin: 70px 0 40px; position: relative; }
.date-pill { background-color: var(--primary); color: white; padding: 10px 40px; border-radius: 50px; font-family: 'Playfair Display', serif; font-size: 1.4rem; z-index: 2; box-shadow: 0 4px 15px rgba(197, 90, 55, 0.3); }
.date-line { position: absolute; width: 100%; height: 1px; background-color: var(--border-color); top: 50%; z-index: 1; }

.carousel-section { position: relative; width: 100%; overflow: hidden; padding: 20px 0; }
.carousel-container { position: relative; height: 320px; display: flex; justify-content: center; align-items: center; width: 100%; }

.carousel-card { 
    position: absolute; width: 300px; height: 280px; background: #FFFFFF; padding: 30px 25px; 
    border-radius: 16px; border: 1px solid var(--border-color); box-shadow: 0 8px 20px rgba(0,0,0,0.05); 
    display: flex; flex-direction: column; align-items: center; text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease, box-shadow 0.6s ease, border-color 0.6s ease; cursor: pointer;
}

.carousel-card i { font-size: 2.2rem; color: var(--gold-accent); margin-bottom: 15px; }
.carousel-card h4 { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--primary-dark); margin-bottom: 10px; }
.carousel-card p { color: #666; font-size: 0.95rem; margin-bottom: 15px; line-height: 1.4;}

.card-highlight { font-weight: 700; color: var(--primary); font-size: 1rem; margin-top: auto; background: #FFF0E8; padding: 6px 15px; border-radius: 20px; }
.card-link { display: inline-block; margin-top: auto; font-size: 0.85rem; text-transform: uppercase; font-weight: 700; color: var(--gold-accent); text-decoration: none; border-bottom: 1px solid var(--gold-accent); padding-bottom: 2px; }

.pos-center { transform: translate(-50%, -50%) scale(1); left: 50%; top: 50%; opacity: 1; z-index: 3; box-shadow: 0 15px 40px rgba(197, 90, 55, 0.15); border-color: var(--gold-accent); cursor: default; }
.pos-left { transform: translate(calc(-50% - 160px), -50%) scale(0.85); left: 50%; top: 50%; opacity: 0.4; z-index: 1; }
.pos-right { transform: translate(calc(-50% + 160px), -50%) scale(0.85); left: 50%; top: 50%; opacity: 0.4; z-index: 1; }
.pos-hidden { transform: translate(-50%, -50%) scale(0.5); left: 50%; top: 50%; opacity: 0; z-index: 0; pointer-events: none; }

/* ========================================= */
/* 6. CALL TO ACTION SECTION                 */
/* ========================================= */
.dark-mango-section {
    padding: 80px 20px; background-color: #4A3B32; 
    background-image: linear-gradient(rgba(74, 59, 50, 0.9), rgba(74, 59, 50, 0.9)), url('../images/img1.png');
    background-repeat: repeat; background-size: 400px auto;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    border-top: 4px solid var(--primary); color: #FFF8E7; text-align: center;
}
.rsvp-cta-text { font-family: 'Playfair Display', serif; font-size: 2.5rem; margin-bottom: 30px; }

/* ========================================= */
/* 7. ANIMATIONS & FOOTER                    */
/* ========================================= */
footer { background-color: #221B17; color: #888; padding: 40px 20px; text-align: center; border-top: 1px solid #333; width: 100%; position: relative; z-index: 5; }

/* ========================================= */
/* 8. MOBILE RESPONSIVENESS                  */
/* ========================================= */
@media (max-width: 600px) {
    .section { padding: 50px 20px; }
    .hero { padding-top: 8vh; height: 100vh; justify-content: flex-start; } 
    .hero h1 { font-size: 2.5rem; gap: 8px; }
    .hero-sub { font-size: 1.2rem; }
    .transparent-nav .btn { padding: 8px 12px; font-size: 0.75rem; }
    .timeline-card { flex-direction: column; text-align: center; gap: 20px; padding: 35px 25px; }
    .timeline-info { text-align: center; display: flex; flex-direction: column; align-items: center; }
    .timeline-info h3 { font-size: 1.6rem; }
    .stay-box { padding: 40px 20px; }
    .rsvp-cta-text { font-size: 1.8rem; }
    .carousel-container { height: 280px; }
    .carousel-card { width: 260px; height: 250px; padding: 25px 20px; }
    .carousel-card h4 { font-size: 1.3rem; }
    .carousel-card p { font-size: 0.85rem; }
    .pos-left { transform: translate(calc(-50% - 120px), -50%) scale(0.8); opacity: 0.3; }
    .pos-right { transform: translate(calc(-50% + 120px), -50%) scale(0.8); opacity: 0.3; }
}

/* ========================================= */
/* 9. MICRO-INTERACTIONS & POLISH            */
/* ========================================= */

/* Mobile & Global Tactile Feedback */
.btn:active, .timeline-card:active, .date-pill:active { transform: scale(0.96) !important; transition: transform 0.1s ease !important; }

/* Desktop-Only Hover Enhancements */
@media (hover: hover) and (pointer: fine) {
    .btn.primary:hover { box-shadow: 0 6px 20px rgba(197, 90, 55, 0.4); transform: translateY(-2px); }
    
    /* Golden Glow for Cards */
    .timeline-card:hover { transform: translateY(-8px); box-shadow: 0 15px 40px rgba(205, 133, 63, 0.15); border-color: var(--gold-accent); }
    .carousel-card.pos-left:hover, .carousel-card.pos-right:hover { opacity: 0.7; }
    
    /* Cinematic Draw-Underlines for Links */
    .map-btn, .card-link { position: relative; border-bottom: none !important; padding-bottom: 4px; text-decoration: none; color: var(--primary); transition: color 0.3s; }
    .map-btn::after, .card-link::after {
        content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
        background-color: currentColor; transform: scaleX(0); transform-origin: right center;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .map-btn:hover::after, .card-link:hover::after { transform: scaleX(1); transform-origin: left center; }
    .map-btn:hover { color: var(--primary-dark); }
}

.shimmer-btn { position: relative; overflow: hidden; }
.shimmer-btn::after { content: ''; position: absolute; top: 0; left: -150%; width: 50%; height: 100%; background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%); transform: skewX(-25deg); animation: shimmer-effect 4s infinite; }
@keyframes shimmer-effect { 0% { left: -150%; } 15% { left: 200%; } 100% { left: 200%; } }