:root {
    --blue: #06474e;
    --yellow: #ebb10a;
    --dark: #0f172a;
    --white: #ffffff;
    --makhana-base: #FFFDF5;
    --makhana-spot: #4A3728;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--dark);
    color: var(--white);
    margin: 0;
    overflow: hidden;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

.splash-font {
    font-family: 'Titan One', cursive;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* Full Page Snapping */
.page-wrapper {
    height: 100vh;
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    scrollbar-width: none;
}

.page-wrapper::-webkit-scrollbar {
    display: none;
}

section {
    height: 100vh;
    width: 100%;
    max-width: 100vw;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 8px solid var(--dark);
    box-sizing: border-box;
}

/* --- UNIQUE TEXTURES --- */

/* Hero Pattern (Geometric) */
.bg-pattern-hero {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Flavor Pattern (Radial Dots) */
.bg-pattern-dots {
    position: absolute;
    inset: 0;
    opacity: 0.15;
    background-image: radial-gradient(#0f172a 1.5px, transparent 1.5px);
    background-size: 30px 30px;
}

/* Anatomy Pattern (Technical Grid) */
.bg-pattern-grid {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: linear-gradient(#1D70B8 1px, transparent 1px), linear-gradient(90deg, #1D70B8 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Find Us Pattern (Warp Lines) */
.bg-pattern-lines {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background: repeating-linear-gradient(45deg, #ffffff, #ffffff 2px, transparent 2px, transparent 20px);
}

/* About Pattern (Paper Grain) */
.bg-pattern-grain {
    position: absolute;
    inset: 0;
    opacity: 0.4;
    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.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.1'/%3E%3C/svg%3E");
}

/* --- GRADIENTS --- */
.mesh-gradient-blue {
    background-color: var(--blue);
    background: -webkit-radial-gradient(at 0% 0%, var(--blue) 0, transparent 50%),
        -webkit-radial-gradient(at 100% 100%, #0c4a6e 0, transparent 50%),
        var(--blue);
    background: radial-gradient(at 0% 0%, var(--blue) 0, transparent 50%),
        radial-gradient(at 100% 100%, #0c4a6e 0, transparent 50%),
        var(--blue);
}

.mesh-gradient-yellow {
    background-color: var(--yellow);
    background: -webkit-radial-gradient(at 0% 100%, var(--yellow) 0, transparent 50%),
        -webkit-radial-gradient(at 100% 0%, #fef08a 0, transparent 50%),
        var(--yellow);
    background: radial-gradient(at 0% 100%, var(--yellow) 0, transparent 50%),
        radial-gradient(at 100% 0%, #fef08a 0, transparent 50%),
        var(--yellow);
    color: var(--dark);
}

/* Hero Ticker */
.hero-ticker-container {
    position: absolute;
    top: 2rem;
    left: 0;
    width: 100%;
    overflow: hidden;
    z-index: 20;
    background: rgba(253, 242, 137, 0.1);
    backdrop-filter: blur(5px);
    padding: 0.75rem 0;
    border-top: 2px solid rgba(253, 242, 137, 0.3);
    border-bottom: 2px solid rgba(253, 242, 137, 0.3);
    /* Ribbon straightened per feedback */
}

.ticker-content {
    display: flex;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
}

.ticker-item {
    font-family: 'Titan One', cursive;
    font-size: 1.25rem;
    text-transform: uppercase;
    padding: 0 2rem;
    display: flex;
    align-items: center;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Hero Layout */
.hero-content {
    z-index: 10;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    width: 100%;
    max-width: 1400px;
    padding: 0 5%;
    align-items: center;
}

/* Mascot Animation Hub (Free Floating) */
.fox-hub-free {
    position: relative;
    width: 625px;
    height: 625px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

#fox-mascot {
    font-size: 220px;
    /* Shadow removed per feedback */
}

/* Flavor Cards */
.flavor-card {
    background: var(--white);
    border-radius: 24px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 4px solid var(--dark);
    box-shadow: 12px 12px 0px var(--dark);
}

.flavor-card:hover {
    transform: translateY(-15px) scale(1.02);
    /* box-shadow will be overridden by specific flavor classes on hover */
}

/* Flavor-specific shadows/accents */
/* Subtle shadow hint by default */
.flavor-truffle {
    box-shadow: 12px 12px 0px rgba(30, 30, 30, 0.3);
    border-color: var(--dark);
}

.flavor-salt {
    box-shadow: 12px 12px 0px rgba(148, 163, 184, 0.3);
    border-color: var(--dark);
}

.flavor-peri {
    box-shadow: 12px 12px 0px rgba(220, 38, 38, 0.3);
    border-color: var(--dark);
}

.flavor-onion {
    box-shadow: 12px 12px 0px rgba(34, 197, 94, 0.3);
    border-color: var(--dark);
}

.flavor-cheese {
    box-shadow: 12px 12px 0px rgba(180, 130, 0, 0.6);
    border-color: var(--dark);
}

.flavor-chili {
    box-shadow: 12px 12px 0px rgba(249, 115, 22, 0.3);
    border-color: var(--dark);
}

/* On hover, full color shadow and border */
.flavor-truffle:hover {
    box-shadow: 20px 20px 0px #1e1e1e;
    border-color: #1e1e1e;
}

.flavor-salt:hover {
    box-shadow: 20px 20px 0px #94a3b8;
    border-color: #94a3b8;
}

.flavor-peri:hover {
    box-shadow: 20px 20px 0px #dc2626;
    border-color: #dc2626;
}

.flavor-onion:hover {
    box-shadow: 20px 20px 0px #22c55e;
    border-color: #22c55e;
}

.flavor-cheese:hover {
    box-shadow: 20px 20px 0px #eab308;
    border-color: #eab308;
}

.flavor-chili:hover {
    box-shadow: 20px 20px 0px #f97316;
    border-color: #f97316;
}

/* Wall of Crunch Cards (Carousel Style) */
.carousel-container {
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    padding: 2rem 0;
    /* Initial position will be handled by GSAP */
}

.crunch-card {
    background: var(--white);
    border-radius: 30px;
    padding: 2.5rem;
    width: 400px;
    /* Wider for better text fit */
    flex-shrink: 0;
    border: 3px solid var(--dark);
    box-shadow: 8px 8px 0px var(--dark);
    /* Initial state - JS controls opacity and background-color */
    opacity: 0.5;
    transition: opacity 0.5s, background-color 0.5s;
}

/* The center card will have this class via JS if needed, but GSAP handles scale usually. 
   We can keep a class for safety. */
.crunch-card.active {
    opacity: 1;
    transform: scale(1);
    box-shadow: 15px 15px 0px var(--dark);
    border-color: var(--blue);
}

/* Particles */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

/* Custom Foxnut Illustration CSS */
.makhana-illustrator {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rotating-foxnut {
    width: 320px;
    height: 320px;
    object-fit: contain;
    animation: spin 10s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0.5rem;
    }

    .fox-hub-free {
        margin: 0 auto;
        width: 180px;
        height: 180px;
    }

    #fox-mascot {
        font-size: 120px;
    }

    section {
        height: auto;
        min-height: 100vh;
        padding: 3rem 0;
    }

    .crunch-card {
        width: 280px;
        padding: 1.5rem;
    }

    /* Smaller rotating foxnut on mobile */
    .rotating-foxnut {
        width: 180px;
        height: 180px;
    }

    /* Flavor cards mobile optimization */
    .flavor-card {
        padding: 1rem 0.75rem;
        border-radius: 16px;
        box-shadow: 8px 8px 0px var(--dark);
    }

    .flavor-card:hover {
        transform: translateY(-8px) scale(1.01);
    }

    /* Section breathing space */
    .max-w-7xl {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

@media (max-width: 640px) {
    .hero-ticker-container {
        top: 1rem;
        padding: 0.5rem 0;
    }

    .ticker-item {
        font-size: 0.875rem;
        padding: 0 1rem;
    }

    /* Faster ticker on mobile */
    .ticker-content {
        animation-duration: 12s !important;
    }

    .fox-hub-free {
        width: 160px;
        height: 160px;
        margin-bottom: -8px;
    }

    /* Flavor section title smaller */
    .splash-font {
        font-size: 2.5rem;
    }

    /* Flavor cards with visible shadow colors and more breathing space */
    .flavor-card {
        box-shadow: 6px 6px 0px var(--dark) !important;
        margin-bottom: 8px;
    }

    .flavor-card span {
        font-size: 2rem !important;
        margin-bottom: 0.5rem !important;
    }

    .flavor-card h3 {
        font-size: 0.875rem !important;
        margin-bottom: 0.25rem !important;
    }

    .flavor-card p {
        font-size: 0.5rem !important;
    }

    /* Flavor-specific colored shadows on mobile - more visible */
    .flavor-truffle {
        box-shadow: 6px 6px 0px rgba(30, 30, 30, 0.5) !important;
    }

    .flavor-salt {
        box-shadow: 6px 6px 0px rgba(148, 163, 184, 0.5) !important;
    }

    .flavor-peri {
        box-shadow: 6px 6px 0px rgba(220, 38, 38, 0.5) !important;
    }

    .flavor-onion {
        box-shadow: 6px 6px 0px rgba(34, 197, 94, 0.5) !important;
    }

    .flavor-cheese {
        box-shadow: 6px 6px 0px rgba(180, 130, 0, 0.7) !important;
    }

    .flavor-chili {
        box-shadow: 6px 6px 0px rgba(249, 115, 22, 0.5) !important;
    }

    /* Rotating foxnut smaller */
    .rotating-foxnut {
        width: 185px;
        height: 185px;
    }

    /* Find Us buttons smaller */
    section .group {
        padding: 1rem 2rem;
        font-size: 1.25rem;
    }

    /* More section padding */
    section {
        padding: 2rem 0;
    }

    /* Carousel on mobile - let JS handle centering */
    .carousel-container {
        justify-content: flex-start;
        padding-left: 0;
    }

    .carousel-track {
        gap: 1rem;
        padding-left: 0;
    }

    .crunch-card {
        width: 260px;
        padding: 1.25rem;
        border-radius: 20px;
    }
}