


/* Font for Farm Theme */
@font-face {
    font-family: 'Rye';
    src: url('https://fonts.gstatic.com/s/rye/v15/r0K2jyUbPIkv_g2f.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Font for Wonderland Theme */
@font-face {
    font-family: 'AliceInWonderland';
    /* NOTE: You need to provide the actual font file at this path */
    src: url('/fonts/AliceInWonderland.ttf') format('truetype');
}


:root {
    /* Core Colors (you already have these) */
    --quantum-blue: #0B132B;
    --graphite: #3A506B;
    --starlight: #E2E8F0;
    --brand-off-white: #F0F2F5;
    --pure-white: #FFFFFF;
    --particle-color: var(--kinetic-teal);
    
    /* Accent & Theme Colors (you already have these) */
    --kinetic-teal: #00F5D4;
    --neon-periwinkle: #7B68EE;
    --fusion-coral: #FF5C5C;
    --re-ignition-orange: #ff993a;
    --neural-gold: #F9E076;
    --signal-green: #00E55B;
    --hyper-blue: #4D9FFF;
    --celestial-orchid: #C471ED;

    

    --synaptic-violet: #8A2BE2;
    --ignition-orange: #FF7A00;

    /* Base Font Families (you already have these) */
    --font-sans: 'Inter', sans-serif;
    --font-display: 'Orbitron', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
    --font-jet: 'JetBrains Mono', monospace;

    /* ADD THESE MISSING VARIABLES */
    --glass-light: rgba(255, 255, 255, 0.1);
    --glass-medium: rgba(255, 255, 255, 0.15);
    --glass-heavy: rgba(255, 255, 255, 0.2);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-text: rgba(255, 255, 255, 0.9);
    --blur-light: blur(8px);
    --blur-medium: blur(12px);
    --blur-heavy: blur(20px);
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.2);
    --shadow-heavy: rgba(0, 0, 0, 0.3);
    --transition-normal: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    --radius-3xl: 24px;
    --radius-full: 50%;
    --white: #ffffff;
    --accent-primary: #00f5d4;
    --accent-secondary: #8a2be2;
    --glow-sm: 0 0 8px;
    --glow-md: 0 0 16px;
    --glow-lg: 0 0 24px;
    --primary-bg: var(--quantum-blue);
    --color-primary: var(--kinetic-teal);
    --color-secondary: var(--synaptic-violet);
    --theme-color: var(--kinetic-teal);
    --theme-glow: rgba(0, 245, 212, 0.6);
    --theme-alpha: rgba(0, 245, 212, 0.15);


    /* Base Font Families */
    --font-sans: 'Inter', sans-serif;
    --font-display: 'Orbitron', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
    --font-jet: 'JetBrains Mono', monospace;
}

/* --- BASE & RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    background-color: var(--quantum-blue); /* This fixes the white page */
    color: var(--starlight);
    overflow-x: hidden;
    cursor: none;
    
}


/* --- THIS IS THE CHANGE --- */
html, body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    background-color: var(--quantum-blue);
    color: var(--starlight);
   /* overflow-x: hidden;*/
    cursor: none;
}

html {
    /* This value should be equal to the height of your sticky header.
       Adjust it if your header is taller or shorter than 80px. */
    scroll-padding-top: 80px; 
}

/* --- 2. ADD this new rule for our main wrapper --- */
#main-scroll-wrapper {
    width: 100%;
    overflow-x: clip; /* This is the modern, safe way to hide horizontal overflow */
}

/* --- Add this to control the main content width --- */
.section-content {
    max-width: 1100px; /* A standard, good-looking width */
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem; /* Adds some space on the sides for smaller screens */
}





/* ================================================= */
/* ==   ADD THIS NEW MODIFIER CLASS               == */
/* ================================================= */
/* This class provides a wider layout for specific sections, like card grids. */
.section-content--wide {
    max-width: 1300px; /* A wider, more expansive width */
        margin-left: auto;
    margin-right: auto;
    padding: 0 2rem; /* Adds some space on the sides for smaller screens */
}


/*body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
}*/

.cursor {
  z-index: 99999; /* Higher than any reasonable component z-index */
}
.cursor-dot {
  z-index: 100000; /* Ensures the dot is on top of the ring */
}


#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--quantum-blue);
  z-index: 10001;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease-out;
  pointer-events: none; /* <-- ADD THIS LINE */
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--kinetic-teal);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}



/* 1. SHARED STYLES FOR ALL PARTICLES */
.particle { 
    position: absolute; 
    width: 2px; 
    height: 2px; 
    background: rgba(51, 194, 219, 0.8); 
    border-radius: var(--radius-full); 
}
@keyframes floatParticle { 
    0% { transform: translateY(100vh) translateX(0) scale(1); opacity: 0; } 
    10% { opacity: 1; } 
    90% { opacity: 1; } 
    100% { transform: translateY(-100px) translateX(50px) scale(1.2); opacity: 0; } 
}

/* 2. SYSTEM FOR THE HERO SECTION */
#hero-particles {
    position: absolute; /* Contained by the hero section */
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 2; /* Above hero BG, below hero content */
}

/* ========================================================= */
/* ==   ADAPTIVE BLENDING PARTICLES (THE CORRECT EFFECT)  == */
/* ========================================================= */



/* 3. The particles themselves do NOT need to change color */
.particle { 
    position: absolute; 
    width: 2px; 
    height: 2px; 
    /* The color stays teal. The blend mode does all the work. */
    background: rgba(51, 194, 219, 0.8); 
    border-radius: var(--radius-full); 
    
    /* Optional: You can make the particles pure white to get a clean color inversion effect */
    /* background: white; */
}



/* Add this to your main stylesheet */

/* --- 1. Pinning Section Layering --- */
/* Your existing #contentSection3 is used here. We just confirm its z-index. */
#contentSection3 {
    position: relative; /* Must be relative for z-index to work */
    z-index: 10;      /* Sits below the builder */
}

/* 3. The content sections act as TRANSPARENT frames */
#problem-promise-section,
#how-it-works-section,
#proof-section,
#cta-section,
#process-section,
#typestopics-section-container,
#value-section {
    position: relative;
    /* CRITICAL: The section itself has no background */
    background-color: transparent; 
    z-index: 2; /* Lifts the entire section's stacking context above the particles */
    padding: 80px 0; /* Example padding */
}

/* 4. The content INSIDE the sections is what you see */
/* This is your existing rule, and it's perfect */
.section-content, .cta-container {
    position: relative;
    /* This z-index is local to the parent section, but it doesn't hurt.
       It ensures content is above any other potential layers within the section. */
    z-index: 3; 
}


/* Enhanced cursor for better visibility during transitions */
.cursor {
    position: fixed;
    width: 24px;
    height: 24px;
    border: 1px solid var(--kinetic-teal);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    mix-blend-mode: difference;
}

.cursor-dot {
    position: fixed;
    width: 4px;
    height: 4px;
    background-color: var(--kinetic-teal);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transition: background-color 0.3s ease;
}

@keyframes floatParticle {
    0% { transform: translateY(100vh) translateX(0) scale(1); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) translateX(50px) scale(1.2); opacity: 0; }
}

/* in style.css */
/* ====================================================================
   NATIVE SCROLLBAR STYLING WITH BRAND COLORS
   ==================================================================== 

/* WebKit browsers (Chrome, Safari, Edge) 
body::-webkit-scrollbar {
    width: 12px;
}

body::-webkit-scrollbar-track {
    background: var(--quantum-blue);
    border-radius: 6px;
}

body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--synaptic-violet), var(--kinetic-teal));
    border-radius: 6px;
    border: 2px solid var(--quantum-blue);
}

body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--kinetic-teal), var(--synaptic-violet));
    box-shadow: 0 0 8px var(--kinetic-teal);
}

body::-webkit-scrollbar-thumb:active {
    background: var(--kinetic-teal);
    box-shadow: 0 0 12px var(--kinetic-teal);
}

/* Firefox 
html {
    scrollbar-width: thin;
    scrollbar-color: var(--kinetic-teal) var(--quantum-blue);
}*/

/* Dark to light theme transition helpers */
.theme-transition-light {
    --text-primary: var(--graphite);
    --text-secondary: rgba(58, 80, 107, 0.8);
}

.theme-transition-light .cursor {
    border-color: var(--graphite);
    mix-blend-mode: multiply;
}

.theme-transition-light .cursor-dot {
    background-color: var(--graphite);
}

/* ============================================= */
/* ==   SITE HEADER CART ICON (FINAL RESET)   == */
/* ============================================= */

/* The link wrapper controls the color and transition */
.site-nav > .cart-link {
    position: relative;
    display: flex;
    align-items: center;
    color: var(--starlight); /* Default icon/text color for DARK mode */
    opacity: 0.8;
    transition: color 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.site-nav > .cart-link:hover {
    color: var(--kinetic-teal); /* Hover color for BOTH modes */
    opacity: 1;
    transform: scale(1.1);
}


/* The SVG itself just needs to handle sizing */
.site-nav > .cart-link > .cart-icon-svg {
    width: 22px;
    height: 22px;
    stroke: currentColor; /* This tells the SVG to use the color from its parent <a> tag */
}

/* --- Cart Count Bubble --- */
.cart-count {
    position: absolute;
    top: -6px;
    right: -7px;
    /* ... The rest of your cart-count styles are fine ... */
    background-color: var(--synaptic-violet);
    color: white;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0);
}
.cart-count.visible {
    transform: scale(1);
}

/* ADD THESE STYLES TO THE END OF Header.css */

/* --- Mobile Navigation --- */
.mobile-nav-toggle {
    display: none; /* Hidden by default */
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001; /* Above header content */
    padding: 15px;
    margin: -15px; /* Counteract padding to maintain alignment */
}

/* Visually-hidden class for screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.hamburger-box {
    width: 30px;
    height: 24px;
    display: inline-block;
    position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 30px;
    height: 2px;
    background-color: var(--starlight); /* Use a variable */
    position: absolute;
    border-radius: 3px;
    transition: transform 0.2s ease-in-out;
}

.hamburger-inner {
    top: 50%;
    transform: translateY(-50%);
}
.hamburger-inner::before,
.hamburger-inner::after {
    content: '';
    display: block;
}
.hamburger-inner::before { top: -10px; }
.hamburger-inner::after { bottom: -10px; }


/* --- Mobile Styles (Triggered at 768px) --- */
@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
    }

       .cursor, .cursor-dot { 
        display: none !important; 
    }
    
    body { 
        cursor: auto !important; 
    }
    
       .particle {
        width: 1.5px;
        height: 1.5px;
    }
    
    .particle.large {
        width: 2px;
        height: 2px;
    }

    .main-nav {
        position: fixed;
        inset: 0 0 0 30%; /* Start off-screen */
        background: rgba(11, 19, 43, 0.95);
        backdrop-filter: blur(10px);
        
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;

        transform: translateX(100%);
        transition: transform 0.3s ease-out;
        
        /* Ensure links are visible */
        visibility: hidden;
    }
    
    .main-nav a {
        font-size: 1.5rem;
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
    }

    /* --- OPEN STATE --- */
    .header.nav-open .main-nav {
        transform: translateX(0);
        visibility: visible;
    }
    
    .header.nav-open .main-nav a {
        opacity: 1;
        transition-delay: 0.2s;
    }
    
    /* Animate hamburger to an 'X' */
    .header.nav-open .hamburger-inner {
        transform: rotate(45deg);
    }
    .header.nav-open .hamburger-inner::before {
        top: 0;
        transform: rotate(-90deg);
    }
    .header.nav-open .hamburger-inner::after {
        bottom: 0;
        opacity: 0;
    }
    
    /* Adjust color for light theme */
    .theme-light .hamburger-inner,
    .theme-light .hamburger-inner::before,
    .theme-light .hamburger-inner::after {
        background-color: var(--graphite);
    }
 /* --- ▼▼▼ ADD THESE NEW RULES ▼▼▼ --- */
    
    /* Reduce side padding on all main content sections */
    .section-content,
    .section-content--wide {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 10vw, 3.5rem); /* Adjust clamp for mobile */
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2.5rem;
    }

    .header-container {
    padding: 0 1rem; /* Reduce side padding from 60px */
}

}

/* ========================================================= */
/* ==   DEBUGGING: Add this to the end of style.css       == */
/* ========================================================= */

/** {
    outline: 1px solid red !important;
}*/

/* =============================================== */
/* ==   PERFORMANCE TEST: DISABLE ALL BLUR      == */
/* =============================================== */

/*.glass-container,
.glass-heavy {
    backdrop-filter: none !important;
    background: rgba(21, 30, 61, 0.8) !important; /* A solid, cheap fallback 
}*/

/* ======================================================= */
/* ==   PERFORMANCE TEST: DISABLE CUSTOM CURSOR         == */
/* ======================================================= */

/* .cursor, .cursor-dot {
    display: none !important;
}

body {
    cursor: default !important; /* Show the normal system cursor
}*/

/* ADD THIS TO THE END OF style.css */

/*
  This is the key fix. The body's `overflow-x: hidden` is almost certainly
  what's breaking the sticky behavior. By giving the wrapper a defined
  height and a visible overflow, we create a valid "scrolling context"
  for the sticky element inside it.
*/

/* Ensure the builder section has a background so you can see it scroll over */
#builder-section {
    position: relative;
    background-color: transparent; /* Give it the dark background */
    z-index: 10; /* Make sure it scrolls ON TOP of the pinned section */
    min-height: 100vh; /* Give it some height to scroll */
}


/* Add this to your main stylesheet */
#pin-and-builder-wrapper {
    position: relative; /* Establishes a positioning context */
/*overflow: clip;  THE FIX: This is a modern, safer alternative to overflow:hidden */
}



/* For clean white sections */
body.theme-light {
 background-color: var(--pure-white); /* Use pure white for consistency */
}

/* 2. Define the blending mode for light theme */
/* When body has the .theme-light class, change the blend mode of the particle container */
.theme-light #global-particles {
    /* This will make the particles interact with the white background */
    mix-blend-mode: difference;
}

/* Light theme just needs to change the color on the link */
.theme-light .site-nav > .cart-link {
    color: var(--graphite); /* Default icon/text color for LIGHT mode */
    opacity: 0.9;
}


/* style.css */

/* =================================================================== */
/* ==   DEFINITIVE HEADER THEME CONTROLLER (FINAL SOLUTION)         == */
/* =================================================================== */

/* --- STATE 1: DEFAULT DARK THEME (WHEN .theme-light is ABSENT) --- */
body:not(.theme-light) .header-container .main-nav a,
body:not(.theme-light) .header-container .site-nav > .cart-link,
body:not(.theme-light) .header-container .logo-wrapper { /* <--- ADD THIS SELECTOR */
    color: var(--starlight) !important;
}

body:not(.theme-light) .header-container .hamburger-inner,
body:not(.theme-light) .header-container .hamburger-inner::before,
body:not(.theme-light) .header-container .hamburger-inner::after {
    background-color: var(--starlight) !important;
}


/* --- STATE 2: LIGHT THEME OVERRIDE (WHEN .theme-light is PRESENT) --- */
body.theme-light .header-container .main-nav a,
body.theme-light .header-container .site-nav > .cart-link,
body.theme-light .header-container .logo-wrapper { /* <--- ADD THIS SELECTOR */
    color: var(--graphite) !important;
}

body.theme-light .header-container .hamburger-inner,
body.theme-light .header-container .hamburger-inner::before,
body.theme-light .header-container .hamburger-inner::after {
    background-color: var(--graphite) !important;
}