/**
 * BRAINROT UNIVERSE™ - Main Stylesheet
 * Ultra Modern Neon/Glitch Theme
 * Target: Kids 3-16 + Safe for Parents
 */

/* ========================================
   CSS VARIABLES & COLOR SCHEME
   ======================================== */
:root {
    /* Neon Colors */
    --neon-cyan: #00FFFF;
    --neon-magenta: #FF00FF;
    --neon-yellow: #FFD700;
    --neon-pink: #FF69B4;
    --neon-green: #39FF14;
    --neon-blue: #00BFFF;

    /* Background Colors */
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --bg-card: #1a1a2e;
    --bg-card-hover: #252540;

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #b8b8d1;
    --text-muted: #7a7a9e;

    /* Accent Colors */
    --accent-1: var(--neon-cyan);
    --accent-2: var(--neon-magenta);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
    --gradient-secondary: linear-gradient(135deg, var(--neon-pink), var(--neon-yellow));
    --gradient-dark: linear-gradient(180deg, var(--bg-darker), var(--bg-dark));

    /* Typography */
    --font-primary: 'Orbitron', sans-serif;
    --font-secondary: 'Raleway', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Borders & Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    /* Shadows */
    --shadow-neon: 0 0 20px rgba(0, 255, 255, 0.5);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-secondary);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

::selection {
    background: var(--neon-cyan);
    color: var(--bg-dark);
}

/* ========================================
   GLITCH OVERLAY EFFECT
   ======================================== */
.glitch-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 255, 255, 0.03) 0px,
        transparent 2px,
        transparent 4px
    );
    transition: opacity var(--transition-fast);
}

.glitch-overlay.active {
    opacity: 1;
    animation: glitchScan 0.3s steps(2) infinite;
}

@keyframes glitchScan {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

/* ========================================
   TYPOGRAPHY & GLITCH TEXT EFFECTS
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

.glitch-text {
    position: relative;
    display: inline-block;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-primary);
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    left: 2px;
    text-shadow: -2px 0 var(--neon-cyan);
    animation: glitch-1 2s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: 2px 0 var(--neon-magenta);
    animation: glitch-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-1 {
    0%, 100% { clip-path: inset(40% 0 61% 0); }
    20% { clip-path: inset(92% 0 1% 0); }
    40% { clip-path: inset(43% 0 1% 0); }
    60% { clip-path: inset(25% 0 58% 0); }
    80% { clip-path: inset(54% 0 7% 0); }
}

@keyframes glitch-2 {
    0%, 100% { clip-path: inset(90% 0 1% 0); }
    20% { clip-path: inset(3% 0 95% 0); }
    40% { clip-path: inset(56% 0 38% 0); }
    60% { clip-path: inset(71% 0 14% 0); }
    80% { clip-path: inset(2% 0 98% 0); }
}

.glitch-text-hero {
    font-size: clamp(3rem, 10vw, 8rem);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glitch-text-small::before,
.glitch-text-small::after {
    display: none;
}

/* ========================================
   LAYOUT & CONTAINERS
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.main-content {
    min-height: 100vh;
}

.section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-lg);
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    transition: all var(--transition-normal);
}

.main-header.scrolled {
    background: rgba(10, 10, 15, 0.98);
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.1);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
}

.logo {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 900;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-subtitle {
    font-size: 0.5em;
    letter-spacing: 4px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
    transition: width var(--transition-fast);
}

.nav-link:hover {
    color: var(--neon-cyan);
}

.nav-link:hover::after {
    width: 80%;
}

.nav-link-special {
    background: var(--gradient-primary);
    color: var(--bg-dark);
    border-radius: var(--radius-sm);
    padding: 0.5rem 1.2rem;
}

.nav-link-special::after {
    display: none;
}

.nav-link-special:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-neon);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--neon-cyan);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* Sound Toggle */
.sound-toggle {
    background: transparent;
    border: 2px solid var(--neon-cyan);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--neon-cyan);
}

.sound-toggle:hover {
    background: var(--neon-cyan);
    color: var(--bg-dark);
    box-shadow: var(--shadow-neon);
}

.sound-icon {
    width: 20px;
    height: 20px;
}

.sound-icon.sound-off {
    display: none;
}

body.sound-muted .sound-icon.sound-on {
    display: none;
}

body.sound-muted .sound-icon.sound-off {
    display: block;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, rgba(0, 255, 255, 0.1), transparent 70%);
}

.hero-bg-animation svg {
    width: 100%;
    height: 100%;
}

.floating-shape {
    animation: float 6s ease-in-out infinite;
    filter: blur(40px);
    opacity: 0.3;
}

.floating-shape:nth-child(2) {
    animation-delay: -2s;
}

.floating-shape:nth-child(3) {
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -20px) scale(1.1); }
}

.hero-container {
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-image-wrapper {
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 1s ease-out forwards;
}

.hero-universe-image {
    max-width: 600px;
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 255, 255, 0.3),
                0 0 40px rgba(255, 0, 255, 0.2);
    filter: drop-shadow(0 0 30px rgba(0, 255, 255, 0.5));
    transition: transform var(--transition-slow);
    animation: heroImageFloat 6s ease-in-out infinite;
}

.hero-universe-image:hover {
    transform: scale(1.05) rotate(1deg);
}

@keyframes heroImageFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 0 30px rgba(0, 255, 255, 0.5));
    }
    50% {
        transform: translateY(-15px) scale(1.02);
        filter: drop-shadow(0 0 40px rgba(255, 0, 255, 0.6));
    }
}

@media (max-width: 768px) {
    .hero-universe-image {
        max-width: 100%;
    }
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto var(--spacing-md);
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.animate-fade-in {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
}

.animate-fade-in.delay-1 {
    animation-delay: 0.3s;
}

.animate-fade-in.delay-2 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: bounce 2s infinite;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--neon-cyan);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding: 8px 0;
    margin: 0 auto 10px;
}

.wheel {
    width: 4px;
    height: 10px;
    background: var(--neon-cyan);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(15px); }
}

@keyframes bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, -10px); }
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-dark);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.4);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--neon-cyan);
}

.btn-secondary:hover {
    background: var(--neon-cyan);
    color: var(--bg-dark);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--neon-magenta);
}

.btn-outline:hover {
    background: var(--neon-magenta);
    color: var(--bg-dark);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-glitch::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transform: skewX(-20deg);
    transition: left 0.5s;
}

.btn-glitch:hover::before {
    left: 100%;
}

/* Continue in components.css... */