/* css/styles.css */

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

body {
    background-color: var(--bg-body);
    color: var(--text-primary);
    font-family: var(--font-stack);
    font-size: var(--font-size);
    
    /* CHANGED: Allow scrolling */
    min-height: 100vh;
    width: 100vw;
    overflow-x: hidden; /* Hide horizontal scroll only */
    overflow-y: auto;   /* Enable vertical scroll */
    
    /* CHANGED: Removed flex centering from body so sections stack */
    display: block; 
    position: relative;
}

/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    z-index: 10;
    text-align: center;
    mix-blend-mode: normal;
    pointer-events: none;
    
    /* NEW: The Hero now handles its own centering */
    height: 100vh; 
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.anmabe-title {
    font-family: 'Syncopate', sans-serif;
    font-weight: 700;
    font-size: clamp(3rem, 10vw, 8rem); 
    letter-spacing: -0.05em;
    line-height: 1;
    margin-bottom: 1rem;
    text-transform: uppercase;
    background: linear-gradient(180deg, #FFFFFF 30%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent; 
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));
}

.subtitle {
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-lime);
    font-size: clamp(0.7rem, 2vw, 1rem); 
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* --- CURSOR BLOB --- */
#cursor-blob {
    position: fixed;
    top: 0;
    left: 0;
    width: 400px;  
    height: 400px;
    transform: translate(-50%, -50%);
    background: radial-gradient(
        circle, 
        rgba(125, 211, 255, 0.4) 0%, 
        rgba(125, 211, 255, 0.1) 40%, 
        transparent 70%
    );
    filter: blur(40px);
    mix-blend-mode: screen;
    z-index: 0;
    transition: none;
    will-change: left, top;
    pointer-events: none;
}

/* --- MATH GRID LAYERS --- */
/* Fixed position so they stay in background while scrolling */
.math-layer {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Viewport height only */
    display: grid;
    grid-auto-rows: 100px;
    place-items: center;
    overflow: hidden;
    background-color: transparent;
    pointer-events: none;
    will-change: mask-image;
}

.math-item {
    font-size: 1.1rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* --- LAYER 1: BACKGROUND --- */
.layer-bots { z-index: 1; }
.layer-bots .math-item {
    color: rgba(255, 255, 255, 1);
    opacity: 0.05; 
    transition: opacity 1s ease, text-shadow 1s ease; 
}
.layer-bots .math-item.shining {
    opacity: 0.5;
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.7);
}

/* --- LAYER 2: CURSOR --- */
.layer-cursor {
    z-index: 2;
    color: var(--accent-blue);
    filter: drop-shadow(0 0 5px var(--accent-blue));
    --cursor-grad: radial-gradient(circle 10rem at var(--cursor-x, 50%) var(--cursor-y, 50%), black 0%, transparent 60%);
    -webkit-mask-image: var(--cursor-grad);
    mask-image: var(--cursor-grad);
}

@media (hover: none) {
    .layer-cursor { display: none !important; }
    #cursor-blob { display: none !important; }
}