:root {
    --bg-alabaster: #FAFAFA;
    --text-charcoal: #2D2D2D;
    --text-muted: #888888;
    
    --pastel-lavender: #E6E6FA;
    --pastel-peach: #FFE5B4;
    --pastel-mint: #E8F4EC;
    --accent-color: #B1B2FF; 
    
    --glass-bg: rgba(255, 255, 255, 0.5);
    --glass-border: rgba(255, 255, 255, 0.7);
    
    --font-head: 'Montserrat', sans-serif;
    --font-body: 'Lato', sans-serif;
}

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

body { 
    background-color: var(--bg-alabaster);
    color: var(--text-charcoal);
    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; 
}
/* ======================================================= */

/* --- AMBIENT FLOATING ORBS (NEW) --- */
.ambient-background {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 0; pointer-events: none; overflow: hidden;
    background: var(--bg-alabaster);
}
.ambient-orb {
    position: absolute; border-radius: 50%;
    filter: blur(80px); opacity: 0.6;
    animation: floatOrb 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}
.orb-peach { width: 50vw; height: 50vw; background: var(--pastel-peach); top: -10%; left: -10%; }
.orb-lavender { width: 45vw; height: 45vw; background: var(--pastel-lavender); bottom: -10%; right: -10%; animation-delay: -5s; }
.orb-mint { width: 40vw; height: 40vw; background: var(--pastel-mint); top: 40%; left: 30%; animation-delay: -10s; }

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 150px) scale(1.2); }
}

/* --- CURSOR ORB --- */
.cursor-orb {
    position: fixed; top: 0; left: 0; width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, transparent 70%);
    border-radius: 50%; pointer-events: none; z-index: 1; /* Below content, above ambient */
    transform: translate(-50%, -50%); filter: blur(30px); opacity: 0; transition: opacity 0.5s;
}

/* --- UTILS --- */
.muted-text { color: var(--text-muted); font-size: 0.9rem; margin: 10px 0; line-height: 1.6;}
.minimal-divider { width: 40px; height: 2px; background: var(--accent-color); margin: 20px auto; opacity: 0.5; }

/* --- LANG SWITCHER --- */
.lang-switch {
    position: fixed; top: 20px; right: 20px; z-index: 999;
    border: 1px solid #E0E0E0; border-radius: 30px;
    padding: 8px 15px; cursor: pointer; background: var(--glass-bg);
    backdrop-filter: blur(10px); font-family: var(--font-head); font-size: 0.75rem; font-weight: 600;
    color: var(--text-charcoal); transition: box-shadow 0.3s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

/* --- LOADER --- */
.loader-overlay { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; justify-content: center; align-items: center; background: var(--bg-alabaster); }
.minimal-spinner { width: 50px; height: 50px; border: 2px solid var(--pastel-lavender); border-top: 2px solid var(--accent-color); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.loading-text { margin-top: 20px; font-family: var(--font-head); font-size: 0.8rem; color: var(--text-muted); letter-spacing: 2px; text-transform: uppercase; }

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

/* Parallax Background for Glass to refract */
.hero-bg-gradient { 
    position: absolute; inset: 0; z-index: -1;
    background: url('images/pastel-fluid-bg.webp') center/cover no-repeat;
    opacity: 0.5; mix-blend-mode: multiply;
}

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

/* Glassmorphism Card (Enhanced) */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 20px; padding: 50px 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

/* FIXED: Premium Line Art Medallion Background */
.hero-image-wrapper {
    width: 140px; /* Slightly smaller for a tighter, sleeker look */
    height: 140px; 
    margin: 0 auto 25px;
    border-radius: 50%; 
    background: #FFFFFF; 
    border: 3px solid rgba(255, 255, 255, 0.9); 
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08); 
    padding: 8px; 
    box-sizing: border-box; 
    
    /* Centers the CSS rings perfectly */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- NEW: PURE CSS INTERLOCKING RINGS --- */
.minimal-rings {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* This creates the two rings */
.minimal-rings::before,
.minimal-rings::after {
    content: '';
    position: absolute;
    width: 55px; /* Size of each ring */
    height: 55px;
    border: 2px solid var(--text-charcoal); /* Creates the delicate 'line art' look */
    border-radius: 50%; /* Makes them perfect circles */
    background: transparent;
}

/* Shifts the left ring */
.minimal-rings::before {
    transform: translateX(-18px);
}

/* Shifts the right ring */
.minimal-rings::after {
    transform: translateX(18px);
    border-color: var(--accent-color); /* Gives the second ring a soft lavender touch */
}

.intro-tag { font-family: var(--font-head); color: var(--text-muted); letter-spacing: 3px; font-size: 0.75rem; text-transform: uppercase; font-weight: 600; }
.couple-names { font-family: var(--font-head); font-weight: 300; font-size: 3.5rem; color: var(--text-charcoal); margin: 5px 0; letter-spacing: -1px; }
.amp { font-weight: 300; color: var(--accent-color); font-size: 0.8em; }
.date-loc { font-size: 0.9rem; line-height: 1.8; color: var(--text-charcoal); font-family: var(--font-head); font-weight: 600;}
.venue-link { color: var(--accent-color); text-decoration: none; transition: 0.3s; display: inline-block; margin-top: 5px; border-bottom: 1px solid transparent;}
.venue-link:hover { border-bottom-color: var(--accent-color); }

.scroll-indicator { position: absolute; bottom: 40px; z-index: 10; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 0.7rem; font-family: var(--font-head); letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); }
.scroll-indicator .line { width: 1px; height: 30px; background: var(--text-muted); animation: stretch 2s infinite cubic-bezier(0.4, 0, 0.2, 1); transform-origin: top; }
@keyframes stretch { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom;} }

/* --- TIMELINE --- */
.timeline-section { padding: 120px 20px; position: relative; z-index: 5; background: transparent; }
.section-title { text-align: center; font-family: var(--font-head); font-weight: 300; font-size: 2.5rem; color: var(--text-charcoal); margin-bottom: 80px; }

.timeline-container { max-width: 800px; margin: 0 auto; position: relative; }
/* GSAP will draw this line */
.timeline-line { position: absolute; left: 50%; top: 0; width: 1px; background: #D0D0D0; transform: translateX(-50%); height: 0; } 

.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; }

/* NEW: Timeline Icons */
.event-icon { 
    position: absolute; top: 20px; width: 36px; height: 36px; 
    background: #FFF; border: 1px solid var(--accent-color); border-radius: 50%; 
    z-index: 10; display: flex; justify-content: center; align-items: center;
    color: var(--accent-color); font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.left .event-icon { right: -18px; } .right .event-icon { left: -18px; }
.event-row:hover .event-icon { background: var(--accent-color); color: #FFF; transform: scale(1.1); }

/* Flat Clean Cards (Now slightly transparent to refract orbs) */
.clean-card { 
    width: 85%; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(10px);
    border: 1px solid #F0F0F0; padding: 30px; border-radius: 16px; text-align: left; 
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.left .clean-card { margin-right: 40px; } .right .clean-card { margin-left: 40px; }
.clean-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.05); border-color: var(--accent-color); }

.clean-card h3 { font-family: var(--font-head); font-weight: 600; color: var(--text-charcoal); font-size: 1.3rem; margin-bottom: 5px; }
.clean-card .time { font-family: var(--font-head); color: var(--accent-color); font-weight: 600; font-size: 0.8rem; letter-spacing: 1px; margin-bottom: 10px; text-transform: uppercase; }
.clean-card .desc { color: var(--text-muted); font-size: 0.95rem; line-height: 1.5; }

.tap-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 20px; font-family: var(--font-head); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; transition: 0.3s;}
.event-row:hover .tap-hint { color: var(--accent-color); }

/* --- FOOTER --- */
/* FIXED: Distinct Footer Separation */
.footer-section { 
    text-align: center; 
    padding: 80px 20px 40px; 
    /* Changed from transparent glass to solid lavender */
    background: var(--pastel-lavender); 
    position: relative; 
    z-index: 10; 
    border-top: none;
}
/* Ensure text looks good against the lavender background */
.footer-section .hashtag { color: var(--text-charcoal); font-weight: 600; opacity: 0.6; }
.footer-section .credit-link { color: var(--text-muted); }
.footer-section .credit-link:hover { color: var(--text-charcoal); }.shagun-box { max-width: 500px; margin: 0 auto 60px; text-align: center; }

.shagun-trigger-btn { padding: 12px 30px; border: 1px solid var(--text-charcoal); background: transparent; color: var(--text-charcoal); font-family: var(--font-head); font-weight: 600; cursor: pointer; transition: 0.3s; font-size: 0.85rem; letter-spacing: 1px; border-radius: 30px; margin-top: 15px;}
.shagun-trigger-btn:hover { background: var(--text-charcoal); color: #FFF; }

.modern-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--text-charcoal); color: #FFF; padding: 16px 40px; border-radius: 50px; text-decoration: none; font-weight: 600; font-family: var(--font-head); font-size: 0.9rem; letter-spacing: 1px; transition: background 0.3s, box-shadow 0.3s; }
.modern-btn:hover { background: var(--accent-color); box-shadow: 0 10px 20px rgba(177, 178, 255, 0.3); }

.hashtag { margin-top: 40px; font-family: var(--font-head); font-weight: 300; letter-spacing: 2px; color: var(--text-muted); }
.credit-link { text-decoration: none; color: #CCC; font-size: 0.7rem; margin-top: 10px; display: inline-block; transition: 0.3s; }
.credit-link:hover { color: var(--text-charcoal); }

/* --- MINIMAL ENVELOPE MODAL --- */
.shagun-modal-overlay { position: fixed; inset: 0; background: rgba(250,250,250,0.8); backdrop-filter: blur(15px); z-index: 3000; display: none; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.4s ease; }
.shagun-modal-overlay.active { display: flex; opacity: 1; }

.envelope-container { perspective: 1500px; width: 340px; height: 220px; position: relative; cursor: pointer; }
/* Textured Matte Pastel Envelope */
.pastel-envelope { 
    width: 100%; height: 100%; 
    background-color: var(--pastel-lavender); 
    /* Applying the texture image here */
    background-image: url('images/lavender-texture.webp');
    background-size: cover;
    position: relative; transform-style: preserve-3d; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.1); border-radius: 4px; 
}
.envelope-flap-wrapper { position: absolute; top: 0; left: 0; width: 100%; height: 50%; transform-origin: top; transition: 0.7s cubic-bezier(0.16, 1, 0.3, 1); z-index: 6; pointer-events: none; }
.envelope-flap-triangle { 
    width: 100%; height: 100%; 
    background-color: #DCDDF0; 
    /* Applying the texture image here too */
    background-image: url('images/lavender-texture.webp');
    background-size: cover;
    clip-path: polygon(0 0, 50% 100%, 100% 0); border-radius: 4px 4px 0 0;
}
/* NEW: Sticker Peel Animation */
.minimal-sticker { position: absolute; bottom: -15px; left: 50%; transform: translateX(-50%); width: 35px; height: 35px; background: #FFF; border-radius: 50%; z-index: 10; display: flex; justify-content: center; align-items: center; color: var(--accent-color); font-size: 0.9rem; box-shadow: 0 2px 10px rgba(0,0,0,0.08); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s; transform-origin: center; }

.envelope-pocket { 
    position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; 
    background-color: var(--pastel-lavender); 
    /* Applying the texture image here too */
    background-image: url('images/lavender-texture.webp');
    background-size: cover;
    clip-path: polygon(0 100%, 50% 50%, 100% 100%); z-index: 5; border-radius: 0 0 4px 4px;
}
.envelope-sides { position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; background: #E2E3F6; clip-path: polygon(0 0, 0 100%, 60% 50%); z-index: 4; border-radius: 4px 0 0 4px;}
.envelope-sides.right { transform: scaleX(-1); border-radius: 0 4px 4px 0;}

.clean-inner-card { position: absolute; width: 85%; height: 90%; left: 7.5%; bottom: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1); z-index: 2; padding: 20px; background: #FFF; border-radius: 8px; box-shadow: 0 -2px 10px rgba(0,0,0,0.02); border: 1px solid #F5F5F5; }
.clean-inner-card h3 { color: var(--text-charcoal); font-family: var(--font-head); font-weight: 600; font-size: 1rem; margin-bottom: 10px; }
.qr-placeholder { width: 100px; height: 100px; background: #FAFAFA; border: 1px dashed #CCC; display: flex; justify-content: center; align-items: center; font-size: 0.8rem; color: #AAA; margin-bottom: 10px; border-radius: 8px;}
.clean-inner-card p { color: var(--text-muted); font-size: 0.8rem; font-family: var(--font-head); }
.tap-hint-card { font-size: 0.6rem; color: #CCC; margin-top: 15px; text-transform: uppercase; letter-spacing: 1px; }

/* Envelope Open State */
.envelope-container.open .minimal-sticker { transform: translateX(-50%) rotateY(180deg) scale(1.2); opacity: 0; }
.envelope-container.open .envelope-flap-wrapper { transform: rotateX(180deg); z-index: 1; transition-delay: 0.2s; }
.envelope-container.open .clean-inner-card { transform: translateY(-130px); z-index: 7; box-shadow: 0 10px 30px rgba(0,0,0,0.08); transition-delay: 0.4s; }

/* --- CALENDAR MODAL --- */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.2); backdrop-filter: blur(8px); z-index: 2000; display: none; justify-content: center; align-items: center; }
.clean-modal { background: #FFF; padding: 40px; border-radius: 20px; text-align: center; width: 90%; max-width: 350px; box-shadow: 0 20px 50px rgba(0,0,0,0.1); border: none;}
.clean-modal h3 { font-family: var(--font-head); font-weight: 600; color: var(--text-charcoal); margin-bottom: 5px;}
.modal-actions { display: flex; flex-direction: column; gap: 10px; margin: 25px 0; }
.minimal-btn { padding: 12px; border-radius: 8px; font-family: var(--font-head); font-weight: 600; font-size: 0.85rem; display: flex; justify-content: center; gap: 10px; text-decoration: none; border: 1px solid #E0E0E0; color: var(--text-charcoal); transition: 0.3s;}
.minimal-btn:hover { background: #FAFAFA; transform: scale(1.02); }
.minimal-close { background: transparent; color: var(--text-muted); border: none; font-family: var(--font-head); font-size: 0.8rem; text-decoration: underline; cursor: pointer; transition: 0.3s;}
.minimal-close:hover { color: var(--text-charcoal); }
/* --- ENVELOPE CLOSE BUTTON --- */
.modal-close-area { 
    position: absolute; 
    top: 30px; 
    right: 30px; 
    width: 45px; 
    height: 45px; 
    background: rgba(255, 255, 255, 0.5); 
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50%; 
    display: flex; 
    justify-content: center; 
    align-items: center;
    font-size: 1.2rem; 
    color: var(--text-charcoal); 
    cursor: pointer; 
    z-index: 3005; 
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.modal-close-area:hover { 
    background: #FFF; 
    color: var(--accent-color);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

@media (max-width: 768px) {
    .couple-names { font-size: 2.8rem; }
    .hero-image-wrapper { width: 120px; height: 120px; }
    .timeline-line { left: 30px !important; transform: none !important; }
    .event-row { width: 100% !important; justify-content: flex-start !important; padding-left: 60px !important; margin: 0 !important; }
    .left .clean-card, .right .clean-card { margin: 0 !important; width: 100%; }
    .event-icon { left: 12px !important; right: auto !important; top: 25px !important; }
}