@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');

:root {
    --bg-color: #F4F1EA;
    --text-color: #1a1a1a;
    --accent-color: #FF4500;
    --ease-long: cubic-bezier(0.8, 0, 0.2, 1); 
    --ease-custom: cubic-bezier(0.16, 1, 0.3, 1); 
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    /* Add transition for background color */
    transition: background-color 0.8s ease; 
}

/* The dark mode class we will add via JS */
body.dark-mode {
    background-color: #1a1a1a;
    color: #ffffff;
}

/* Invert nav colors when in dark mode */
body.dark-mode .nav-container, 
body.dark-mode .logo-badge {
    background-color: #333;
    color: #fff;
}
body.dark-mode .line { background: #fff; }
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    width: 100vw;
}

body.loading-active { overflow: hidden; height: 100vh; }
/* --- SCROLL MARQUEE SECTION --- */
.scroll-marquee {
    position: relative;
    width: 100%;
    padding: 100px 0; /* Space between pages */
    background: var(--bg-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 5; /* Sit above hero but below slider logic */
}

.track-wrapper {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-text {
    font-size: 8vw;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-color);
    /* Start slightly offset so it flows in */
    transform: translateX(-10%); 
    will-change: transform;
}

/* Make the second line hollow/outline style for contrast */
.outline-text {
    color: transparent;
    -webkit-text-stroke: 2px var(--accent-color);
}
#cursor-dot {
    width: 20px; height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    position: fixed; top: 0; left: 0;
    pointer-events: none; z-index: 9999;
    mix-blend-mode: difference; /* Cool color inversion effect */
    transition: transform 0.1s ease;
    transform: translate(-50%, -50%);
}   .hero-bg::after {
    content: "";
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    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)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 2;
    opacity: 0.4;
}



.parallax-shape {
    position: absolute;
    border-radius: 50%;
    z-index: 8; /* Above hero, below text */
    pointer-events: none;
    opacity: 0.8;
}

/* Big Orange Circle (or replace with chili.png) */
.shape-1 {
    width: 80px; height: 80px;
    background: #ff6b6b;
    top: 20%; left: 10%;
    filter: blur(2px);
}

/* Small Yellow Circle (or replace with egg.png) */
.shape-2 {
    width: 40px; height: 40px;
    background: #feca57;
    top: 60%; right: 15%;
}

/* Medium Dark Circle (or replace with leaf.png) */
.shape-3 {
    width: 60px; height: 60px;
    background: #1a1a1a;
    top: 40%; left: 80%;
}

/* --- LOADER STYLES --- */
#loader {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100vh;
    z-index: 9999;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    overflow: hidden; pointer-events: none;
}

.loader-content {
    position: relative; width: 180px; height: 180px; 
    display: flex; justify-content: center; align-items: center;
    border-radius: 50%;

    /* 👇 CHANGE THIS LINE */
    /* We use RGBA for 50% opacity. 0 0 0 means no blur on the shadow itself, keeping it clean until zoom. */
    box-shadow: 0 0 0 250vmax rgba(125, 124, 120, 0.7 ); 
    
    background-color: transparent;
    will-change: transform; transform: scale(1);
    transition: transform 4.5s var(--ease-long);
}

.loader-content.zoom-out { transform: scale(100); }

.loader-elements {
    position: absolute; width: 100%; height: 100%;
    display: flex; justify-content: center; align-items: center;
    transition: opacity 0.5s ease;
}
.loader-elements.fade-out { opacity: 0; }

/* Planet Orbits */
.orbit { position: absolute; border-radius: 50%; border: 1px solid rgba(0,0,0,0.08); display: flex; justify-content: center; align-items: center; }
.orbit::before { content: ''; position: absolute; border-radius: 50%; box-shadow: 0 0 10px rgba(0,0,0,0.2); }
.orbit-1 { width: 100%; height: 100%; animation: rotate 2s linear infinite; } .orbit-1::before { width: 10px; height: 10px; top: 10px; left: 50%; background: #333; }
.orbit-2 { width: 70%; height: 70%; animation: rotate 3s linear infinite reverse; } .orbit-2::before { width: 8px; height: 8px; bottom: 8px; right: 20%; background: var(--accent-color); }
.orbit-3 { width: 130%; height: 130%; border-color: transparent; animation: rotate 5s linear infinite; } .orbit-3::before { width: 6px; height: 6px; top: 50%; left: 0; background: #888; }
@keyframes rotate { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.loader-logo-svg { width: 40px; height: 40px; fill: #1a1a1a; z-index: 2; }
.loader-text { position: absolute; bottom: 15%; font-size: 14px; font-weight: 700; color: #555; font-variant-numeric: tabular-nums; transition: opacity 0.3s; z-index: 10001; }

/* --- SITE WRAPPER --- */
#site-wrapper {
    position: relative; width: 100%; background: #fff;
    transform-origin: center top;
    transition: transform 0.1s linear, border-radius 0.1s linear;
    z-index: 10;
}

/* --- HERO STYLES --- */
.hero { 
    position: relative; height: 100vh; width: 100%; 
    display: flex; justify-content: center; align-items: center; 
    overflow: hidden; 
}

.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: url('https://images.unsplash.com/photo-1552611052-33e04de081de?q=80&w=2000') center/cover;
    filter: brightness(0.7); z-index: 1;
}

.hero-text {
    position: relative; z-index: 2; text-align: center; color: #ffffff;
    margin-top: -210px; 
    opacity: 0; transform: translateY(120px); 
    transition: transform 2.5s var(--ease-long), opacity 2s ease;
}
.hero-text.reveal-text { opacity: 1; transform: translateY(0); }

.hero-text h1 {
    font-size: 12vw; line-height: 0.85; font-weight: 700; 
    letter-spacing: -0.04em; margin: 0;
    background: linear-gradient(to bottom, #e85a5a 40%, #d3d765);
    -webkit-background-clip: text; color: transparent;
    text-transform: uppercase; text-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.hero-bowl-container {
    position: absolute; bottom: -5vh; z-index: 3; 
    width: 55vw; max-width: 650px; pointer-events: none;
    transform: scale(0.8) translateY(50px); opacity: 0;
    transition: transform 2.8s var(--ease-long), opacity 1s ease;
}
.hero-bowl-container.reveal-bowl { transform: scale(1) translateY(0); opacity: 1; }
.hero-bowl-container img { width: 100%; filter: drop-shadow(0 40px 80px rgba(0,0,0,0.6)); }

/* Video Cards */
.hero-video-card, .hero-video-left {
    position: absolute; bottom: 60px;
    width: 280px; height: 180px;
    border-radius: 20px; overflow: hidden; z-index: 4;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.3);
    opacity: 0; transform: translateY(100px); 
    transition: transform 1.5s var(--ease-custom), opacity 1s ease;
}
.hero-video-card { right: 60px; }
.hero-video-left { left: 60px; }
.reveal-video { opacity: 1; transform: translateY(0); }
video { width: 100%; height: 100%; object-fit: cover; }


/* --- NAV & UI --- */
.logo-badge { position: fixed; top: 40px; left: 40px; z-index: 100; background: #F9F9F7; border-radius: 30px; height: 60px; padding: 0 30px; display: flex; align-items: center; justify-content: center; font-weight: 800; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

nav { position: fixed; top: 40px; right: 40px; z-index: 100; }
.nav-container { background: #F9F9F7; border-radius: 30px; height: 60px; width: 140px; display: flex; align-items: center; justify-content: flex-end; padding: 5px; cursor: pointer; overflow: hidden; transition: width 3.2s var(--ease-custom); position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.nav-container:hover { width: 400px; }
.hamburger { position: absolute; left: 24px; display: flex; flex-direction: column; gap: 5px; }
.line { width: 20px; height: 2px; background: #333; }
.nav-links { display: flex; gap: 30px; opacity: 0; position: absolute; left: 70px; pointer-events: none; transition: 0.5s; white-space: nowrap; list-style: none; font-size: 14px; font-weight: 600;}
.nav-container:hover .nav-links { opacity: 1; pointer-events: auto; delay: 0.2s; }
.menu-pill { height: 50px; width: 90px; background: #EAE8E0; border-radius: 25px; display: flex; justify-content: center; align-items: center; font-weight: 700; z-index: 10; text-transform: uppercase; font-size: 12px; }

/* --- SLIDER SECTION --- */
.slider-section { 
    position: relative; width: 100%; height: 100vh; 
    background: #111; overflow: hidden; cursor: col-resize; 
}

/* The Layers */
.layer {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden; 
}

/* Inner Container for Static Images/Text during Wipe */
.content-wrap {
    width: 100vw; 
    height: 100vh;
    position: absolute; top: 0; left: 0;
    background-size: cover; background-position: center;
    display: flex; align-items: center;
}

/* Bottom Layer (Mild) */
.layer-bottom .content-wrap {
    background-image: url('https://images.unsplash.com/photo-1591814468924-caf88d1232e1?q=80&w=2000');
    filter: grayscale(0.5) brightness(0.6);
}

/* Top Layer (Spicy) */
.layer-top {
    width: 50%; /* Initial Split */
    z-index: 2;
    border-right: 2px solid #fff; 
}

.layer-top .content-wrap {
    background-image: url('https://images.unsplash.com/photo-1591814468924-caf88d1232e1?q=80&w=2000');
    filter: saturate(2) contrast(1.1) brightness(0.8);
}

/* Slider Typography */
.slider-header {
    font-size: 6vw;
    font-weight: 800;
    color: #fff;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    pointer-events: none;
}

.text-left { left: 15%; text-align: right; }
.text-right { left: 65%; text-align: left; }

/* Info Card */
.info-card {
    position: absolute;
    bottom: 40px; right: 40px;
    width: 300px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 12px;
    color: #fff;
    z-index: 10;
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid rgba(255,255,255,0.1);
}

.drag-badge { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(255,255,255,0.2); backdrop-filter: blur(10px); padding: 8px 16px; border-radius: 30px; color: #fff; font-weight: 700; font-size: 10px; letter-spacing: 1px; pointer-events: none; z-index: 15; border: 1px solid rgba(255,255,255,0.2); }

/* Add to style.css */
#steam-canvas {
    position: absolute;
    top: -20%; /* Move it up slightly so steam rises above the bowl */
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Let clicks pass through to the slider/video */
    z-index: 15z; /* Sit above the bowl image */
    opacity: 1; /* Subtle transparency */
    filter: blur(12px); /* This makes the circles look like soft smoke */
}
/* =========================================
   RESPONSIVE STYLES (Add to bottom of CSS)
   ========================================= */

/* --- TABLETS & SMALL LAPTOPS (Max Width: 1024px) --- */
@media screen and (max-width: 1024px) {
    .hero-text h1 { font-size: 15vw; } /* Slightly larger text relative to screen */
    
    .hero-bowl-container { width: 65vw; } /* Resize bowl */

    /* Move video cards to avoid overlapping the bowl */
    .hero-video-card { right: 20px; width: 220px; height: 140px; }
    .hero-video-left { left: 20px; width: 220px; height: 140px; }
    
    /* Adjust text slider for tablet */
    .slider-header { font-size: 8vw; }
}

/* --- PHONES (Max Width: 768px) --- */
@media screen and (max-width: 768px) {
    
    /* 1. Adjust Navigation */
    .logo-badge { 
        left: 20px; top: 20px; height: 50px; 
        font-size: 14px; padding: 0 20px; 
    }
    nav { right: 20px; top: 20px; }
    .nav-container { height: 50px; width: 60px; } /* Smaller button */
    .nav-container:hover { width: 100vw; max-width: 300px; } /* Don't expand too wide */
    .menu-pill { font-size: 10px; width: 70px; }
    .hamburger { left: 18px; }

    /* 2. Hero Section Layout */
    .hero-text { margin-top: -100px; }
    .hero-text h1 { font-size: 18vw; } /* Big bold text on mobile */

    .hero-bowl-container {
        width: 85vw; /* Make bowl fill width */
        bottom: 20vh; /* Move it up slightly */
    }

    /* 3. Hide Video Cards on Mobile 
       (They take up too much space and data on phones) */
    .hero-video-card, .hero-video-left {
        display: none;
    }

    /* 4. Slider Section */
    .slider-header { font-size: 14vw; } /* Bigger text for readability */
    
    .info-card {
        width: 90%; 
        left: 5%; right: 5%; /* Center the card */
        bottom: 80px; /* Move up so it's not cut off */
        padding: 15px;
    }
    .info-card h3 { font-size: 18px; margin-bottom: 5px; }
    .info-card p { font-size: 13px; }
    
    .drag-badge { top: 40%; } /* Move badge up */
}

/* --- TV / LARGE SCREENS (Min Width: 1920px) --- */
@media screen and (min-width: 1921px) {
    /* Keep things from getting too spread out on huge TVs */
    body { font-size: 1.2rem; }
    .hero-text h1 { font-size: 10vw; }
    .hero-bowl-container { max-width: 800px; }
}