:root {
    /* --- THEME PALETTE: FLORAL BAGH --- */
    --petal-pink: #fce4ec;
    --mint-leaf: #e8f5e9;
    --anushree-peach: #fff1e0;
    --sage-green: #556b2f;
    --deep-rose: #d81b60;
    --antique-gold: #d4af37;
    
    --bg-light: #fffaf5; /* Solid Cream Color */
    
    --card-paper: #ffffff;
    --card-border: #f8bbd0;
    
    /* Fonts */
    --font-head: 'Great Vibes', cursive;
    --font-sub: 'Cinzel', serif;
    --font-body: 'Playfair Display', serif;
}

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

body { 
    background-color: var(--bg-light);
    color: var(--sage-green);
    font-family: var(--font-body); 
    overflow-x: hidden; 
}

/* =======================================================
   --- 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; color: var(--antique-gold); margin-bottom: 15px; }

/* FIX 2: Added justify-content: center */
.tap-hint { 
    font-size: 0.7rem; 
    color: var(--antique-gold); 
    margin-top: 15px; 
    opacity: 0.8; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    display: flex; 
    align-items: center; 
    justify-content: center; /* CENTERS THE TEXT */
    gap: 8px; 
    font-weight: bold; 
}

/* --- ANIMATED ELEMENTS --- */
.gold-particle {
    position: fixed; top: 0; left: 0; width: 4px; height: 4px;
    background: radial-gradient(circle, #ffccbc, #d4af37); 
    border-radius: 50%; pointer-events: none; z-index: 9999;
    box-shadow: 0 0 5px #d4af37;
}

/* FIX 3: Increased Z-Index so flowers are visible */
.falling-petal {
    position: absolute; 
    width: 15px; height: 15px;
    background: var(--petal-pink);
    border-radius: 15px 0px 15px 0px; 
    opacity: 0.9; 
    pointer-events: none; 
    z-index: 9999; /* NOW ON TOP OF EVERYTHING */
    top: 0; 
}

/* --- LANG SWITCHER --- */
.lang-switch {
    position: fixed; top: 20px; right: 20px; z-index: 999;
    border: 1px solid var(--antique-gold); border-radius: 30px;
    padding: 8px 15px; cursor: pointer; background: rgba(255,255,255,0.9);
    backdrop-filter: blur(5px); font-family: var(--font-sub); font-size: 0.8rem;
    color: var(--sage-green);
    transition: 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.lang-switch:hover { background: var(--deep-rose); color: #fff; border-color: var(--deep-rose); }

/* --- LOADER --- */
.loader-overlay { 
    position: fixed; inset: 0; 
    z-index: 1000; 
    display: flex; flex-direction: column; justify-content: center; align-items: center; 
    background: #fffaf5; 
}

.lotus-icon { 
    width: 300px; 
    opacity: 1; 
    filter: drop-shadow(0 10px 20px rgba(216, 27, 96, 0.2)); 
}

.mandala-spinner { width: 250px; opacity: 1; }
.loading-text { 
    margin-top: 30px; 
    font-family: var(--font-sub); 
    color: var(--deep-rose); 
    letter-spacing: 4px; 
    opacity: 0; 
    font-weight: bold; 
    text-transform: uppercase;
}

/* --- HERO SECTION --- */
/* FIX 1: Flex Column to stack Box and Scroll Text */
.hero-section { 
    position: relative; 
    height: 100vh; 
    display: flex; 
    flex-direction: column; /* STACKS VERTICALLY */
    justify-content: center; 
    align-items: center; 
    overflow: hidden; 
}

.hero-bg { 
    position: absolute; inset: 0; 
    background-image: url('images/bg1.webp'); 
    background-size: cover; background-position: center; 
    opacity: 1 !important; 
    z-index: 0;
}

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

.royal-border { 
    border: none; 
    padding: 80px 40px; 
    position: relative; 
    background-image: url('images/hero-box-bg.jpg');
    background-size: 100% 100%; 
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent; 
    backdrop-filter: none; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.15); 
}
.royal-border::before, .royal-border::after { display: none; }

.auspicious-symbol { font-size: 1.5rem; color: var(--deep-rose); margin-bottom: 20px; }

.intro-tag {
    font-family: var(--font-sub);
    color: var(--sage-green);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.couple-names { 
    font-family: var(--font-head); 
    font-size: 14vw; 
    line-height: 1.4; 
    padding: 10px 0; 
    background: linear-gradient(45deg, var(--deep-rose), var(--sage-green)); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    margin: 10px 0; 
    filter: drop-shadow(0 2px 4px rgba(255,255,255,0.5)); 
}
@media(min-width: 768px) { .couple-names { font-size: 7rem; } }

.amp { font-size: 0.5em; color: var(--antique-gold); -webkit-text-fill-color: initial; }
.date-loc { font-size: 1.2rem; line-height: 1.6; color: var(--sage-green); font-family: var(--font-sub); }
.venue { color: var(--deep-rose); display: block; margin-top: 5px; font-weight: bold; }

/* FIX 1: Scroll Indicator - Now Relative so it pushes down */
.scroll-indicator { 
    position: relative; /* WAS ABSOLUTE */
    bottom: auto; left: auto; transform: none;
    margin-top: 40px; /* PUSHES IT BELOW THE BOX */
    z-index: 10;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; color: var(--deep-rose);
    animation: glowText 2s infinite alternate;
}
.scroll-indicator .line { width: 1px; height: 40px; background: var(--deep-rose); }
@keyframes glowText { from { opacity: 0.5; } to { opacity: 1; } }

.vine-decoration {
    position: absolute;
    width: 220px; 
    opacity: 0.9;
    mix-blend-mode: multiply; 
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}
.top-vine { top: -50px; left: -50px; transform: rotate(-10deg); }
.bottom-vine { bottom: -50px; right: -50px; transform: rotate(170deg); }

/* --- TIMELINE SECTION --- */
.timeline-section { 
    padding: 150px 20px 100px; 
    position: relative; 
    z-index: 5; 
    overflow: hidden; 
    background: var(--bg-light); 
}
.section-title { text-align: center; font-family: var(--font-head); font-size: 4rem; color: var(--deep-rose); margin-bottom: 60px; position: relative; z-index: 2; }
.timeline-container { max-width: 800px; margin: 0 auto; position: relative; z-index: 2; }
.timeline-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, var(--petal-pink), var(--deep-rose), transparent); transform: translateX(-50%); }

.event-row { display: flex; justify-content: flex-end; padding-bottom: 60px; position: relative; width: 50%; cursor: pointer; }
.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: 16px; height: 16px; 
    background: #fff; 
    border: 3px solid var(--deep-rose);
    border-radius: 50%; 
    z-index: 10; 
}
.left .event-dot { right: -8px; } 
.right .event-dot { left: -8px; }

.event-card { 
    width: 90%; 
    background: #fff; 
    border: 1px solid var(--card-border); 
    padding: 30px; 
    border-radius: 15px; 
    text-align: center; 
    transition: all 0.4s ease; 
    box-shadow: 0 10px 30px rgba(85, 107, 47, 0.1); 
}
.left .event-card { margin-right: 30px; } .right .event-card { margin-left: 30px; }

.event-card:hover { 
    transform: translateY(-8px); 
    border-color: var(--deep-rose); 
    box-shadow: 0 15px 50px rgba(216, 27, 96, 0.15); 
}

.event-card h3 { font-family: var(--font-sub); color: var(--deep-rose); font-size: 1.6rem; margin-bottom: 10px; }
.event-card .time { color: var(--sage-green); font-weight: bold; font-size: 0.9rem; letter-spacing: 1px; margin-bottom: 10px; }
.event-card .desc { color: #666; font-size: 1rem; line-height: 1.5; }

/* --- FOOTER --- */
.footer-section { 
    text-align: center; 
    padding: 80px 20px 40px; 
    background-image: url('images/bg3.webp'); 
    background-size: cover;
    border-top: 1px solid var(--card-border); 
    position: relative; 
    z-index: 10;
}

.shagun-box { 
    max-width: 650px; 
    margin: 0 auto 60px; 
    padding: 90px 50px; 
    background-image: url('images/hero-box-bg.jpg');
    background-size: 100% 100%; 
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent; 
    border: none; 
    border-radius: 0; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.1); 
}
.shagun-trigger-btn { padding: 15px 40px; border: 1px solid var(--deep-rose); background: transparent; color: var(--deep-rose); font-family: var(--font-sub); cursor: pointer; transition: 0.3s; font-size: 1rem; letter-spacing: 1px; border-radius: 30px; }
.shagun-trigger-btn:hover { background: var(--deep-rose); color: #fff; box-shadow: 0 5px 15px rgba(216, 27, 96, 0.3); }

.whatsapp-btn { 
    display: inline-flex; align-items: center; gap: 10px; 
    background: var(--deep-rose); 
    border: 2px solid #fff; 
    color: white; 
    padding: 15px 40px; 
    border-radius: 50px; 
    text-decoration: none; 
    font-weight: bold; font-family: var(--font-sub); font-size: 1.1rem; 
    box-shadow: 0 5px 15px rgba(216, 27, 96, 0.3); 
    transition: 0.3s; 
}
.whatsapp-btn:hover { background: #ad1457; transform: scale(1.05); }

.hashtag { margin-top: 40px; font-family: var(--font-sub); letter-spacing: 3px; color: white; opacity: 0.8; }
.credit-link { text-decoration: none; color: white; font-size: 0.7rem; margin-top: 10px; display: inline-block; transition: 0.3s; cursor: pointer; opacity: 0.6; }
.credit-link:hover { color: white; opacity: 1; }

/* ========================================= */
/* PREMIUM ENVELOPE                         */
/* ========================================= */
.shagun-modal-overlay {
    position: fixed; inset: 0; 
    
    /* NEW TEXTURED BACKGROUND */
    background-image: url('images/bg2.webp');
    background-size: cover;
    background-position: center;
    
    z-index: 3000;
    display: none; justify-content: center; align-items: center;
    opacity: 0; transition: opacity 0.5s ease;
}
.shagun-modal-overlay.active { display: flex; opacity: 1; }

.modal-close-area { position: absolute; top: 20px; right: 30px; font-size: 3rem; color: var(--sage-green); cursor: pointer; z-index: 3005; opacity: 0.7; transition: 0.3s; }
.modal-close-area:hover { opacity: 1; transform: scale(1.1); color: var(--deep-rose); }

.envelope-container { perspective: 1500px; width: 340px; height: 240px; position: relative; cursor: pointer; transition: transform 0.3s; }
.envelope-container:hover { transform: scale(1.02); }

.envelope { width: 100%; height: 100%; background: var(--deep-rose); position: relative; box-shadow: 0 30px 60px rgba(0,0,0,0.2); transform-style: preserve-3d; }

.envelope-flap-wrapper {
    position: absolute; top: 0; left: 0; width: 100%; height: 50%;
    transform-origin: top; 
    transition: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 6;
    pointer-events: none;
}
.envelope-flap-triangle {
    width: 100%; height: 100%;
    background: #ad1457;
    clip-path: polygon(0 0, 50% 100%, 100% 0);
    border-top: 1px solid rgba(255,255,255,0.2);
}
.wax-seal { 
    position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); 
    width: 45px; height: 45px; 
    background: radial-gradient(circle, #ffd700, #d4af37); 
    border-radius: 50%; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.3); 
    z-index: 10; 
    display: flex; justify-content: center; align-items: center; 
    color: #5a3e0b; font-size: 1.2rem; border: 2px solid rgba(255,255,255,0.2);
}

.envelope-pocket { 
    position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; 
    background: var(--deep-rose); 
    clip-path: polygon(0 100%, 50% 50%, 100% 100%); 
    z-index: 5; 
}

.envelope-sides { 
    position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; 
    background: #880e4f; 
    clip-path: polygon(0 0, 0 100%, 60% 50%); 
    z-index: 4; 
}
.envelope-sides.right { transform: scaleX(-1); }

.envelope-card { 
    position: absolute; width: 90%; height: 95%; 
    left: 5%; bottom: 0; 
    display: flex; flex-direction: column; align-items: center; justify-content: center; 
    text-align: center; 
    transition: 0.8s cubic-bezier(0.4, 0, 0.2, 1); 
    z-index: 2; 
    padding: 0; 
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1); 
    background-color: #fff;
    background-size: cover;
    border: none;
}

.envelope-card h3 { 
    color: var(--deep-rose); 
    font-family: var(--font-sub); 
    font-size: 1.2rem; 
    margin-bottom: 5px; 
    text-shadow: 2px 2px 0px #fff, -1px -1px 0px #fff; 
}

.envelope-card p { 
    color: #444; 
    font-size: 0.8rem; 
    font-weight: 800; 
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 0px #fff; 
}

.tap-hint-card { 
    font-size: 0.6rem; 
    color: #888; 
    margin-top: 10px; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}

.qr-img-real { 
    width: 120px; height: 120px; object-fit: contain; margin: 10px 0; 
    border: 2px solid #fff; border-radius: 4px; background: #fff; padding: 5px; 
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.envelope-container.open .envelope-flap-wrapper { transform: rotateX(180deg); z-index: 1; }
.envelope-container.open .wax-seal { opacity: 0; transition: opacity 0.2s; }
.envelope-container.open .envelope-card { transform: translateY(-140px); z-index: 7; }

/* MODALS */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(5px); z-index: 2000; display: none; justify-content: center; align-items: center; }
.modal-card { background: #fff; border: 1px solid var(--antique-gold); padding: 40px; border-radius: 12px; text-align: center; width: 90%; max-width: 400px; color: var(--sage-green); }
.modal-actions { display: flex; gap: 10px; justify-content: center; margin: 20px 0; }
.cal-btn { padding: 10px 20px; border: none; border-radius: 5px; cursor: pointer; font-weight: bold; display: flex; gap: 8px; align-items: center; text-decoration: none; font-size: 0.9rem;}
.cal-btn.google { background: #4285F4; color: white; }
.cal-btn.apple { background: #333; color: white; }
.close-btn { background: transparent; color: #888; border: none; cursor: pointer; text-decoration: underline; margin-top: 10px; }

.venue-link {
    color: var(--deep-rose);
    text-decoration: none;
    border-bottom: 1px dashed var(--deep-rose);
    transition: 0.3s;
    display: inline-block;
    margin-top: 5px;
}
.venue-link:hover {
    color: var(--sage-green);
    border-bottom-color: var(--sage-green);
}

@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; margin-left: 0 !important; margin-right: 0 !important; }
    .left .event-card, .right .event-card { margin: 0 !important; }
    .event-dot { left: 24px !important; right: auto !important; top: 25px !important; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* --- DESKTOP SPECIFIC OVERRIDES --- */
@media (min-width: 1024px) {
    .hashtag { 
        color: #000000; /* Black text for desktop */
        opacity: 1; 
    }
    
    .credit-link { 
        color: #000000; /* Black text for desktop */
        opacity: 0.7; 
    }
    
    .credit-link:hover { 
        color: var(--deep-rose); /* Nice hover effect matching theme */
        opacity: 1; 
    }
}