:root {
    --cosmic-purple: #2d1b69;
    --deep-blue: #1a1a3e;
    --neon-cyan: #00fff5;
    --neon-purple: #b24bf3;
    --neon-pink: #ff6ec7;
    --glass-white: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-white: #ffffff;
    --text-light: rgba(255, 255, 255, 0.8);
    --text-dim: rgba(255, 255, 255, 0.6);
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 12px;
}

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

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0a1f 0%, #1a1a3e 50%, #2d1b69 100%);
    color: var(--text-white);
    line-height: 1.6;
    position: relative;
}

#content-container {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    transition: opacity 0.3s ease-in-out;
}

.section {
    display: none;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.section.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

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

/* HERO SECTION - CRITICAL FIX */
.hero-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 2rem 1rem 6rem;
}

.cosmic-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(178, 75, 243, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 255, 245, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 110, 199, 0.1) 0%, transparent 40%);
    animation: cosmicFloat 20s ease-in-out infinite;
    z-index: 0;
}

@keyframes cosmicFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, 30px) scale(1.1); }
}

/* HERO CONTENT - Z-INDEX FIX */
.hero-content-wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 1000px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    position: relative;
    z-index: 10;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 10;
}

.hero-text-direct {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
}

.hero-text-direct .hero-intro {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-white);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-text-direct .mega-emphasis {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--neon-cyan);
    text-shadow: 0 0 20px rgba(0, 255, 245, 0.6);
}

/* CTA BUTTON - Z-INDEX FIX */
.cta-button {
    position: relative;
    z-index: 100;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1.2rem 2.5rem;
    margin-top: 2rem;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    border: 2px solid var(--neon-cyan);
    border-radius: 12px;
    color: var(--text-white);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(178, 75, 243, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 40px rgba(178, 75, 243, 0.7);
    border-color: var(--neon-pink);
}

.cta-button:active {
    transform: translateY(-1px) scale(1.02);
}

.cta-icon {
    font-size: 1.8rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-text {
    line-height: 1;
    display: flex;
    align-items: center;
}

.cta-arrow {
    font-size: 1.4rem;
    line-height: 1;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
}

.cta-button:hover .cta-arrow {
    transform: translateX(5px);
}

/* GLASS EFFECTS */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.pulsing-glow {
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(178, 75, 243, 0.3), 0 0 40px rgba(0, 255, 245, 0.2); }
    50% { box-shadow: 0 0 30px rgba(255, 110, 199, 0.4), 0 0 60px rgba(178, 75, 243, 0.3); }
}

/* TEXT STYLING */
.mega-emphasis {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.emphasis-text {
    color: var(--neon-cyan);
    font-weight: 600;
    font-size: 1.1rem;
}

.giant-shock {
    font-size: 2rem;
    font-weight: 900;
    color: var(--neon-pink);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 1.5rem 0;
    text-shadow: 0 0 20px rgba(255, 110, 199, 0.5);
}

/* CONTENT SECTIONS */
.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem 8rem;
    width: 100%;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

.timeline-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(178, 75, 243, 0.3);
}

.chapter-title {
    font-size: 1.8rem;
    color: var(--neon-cyan);
    margin-bottom: 1rem;
    font-weight: 700;
}

.revelation-box {
    background: linear-gradient(135deg, rgba(178, 75, 243, 0.2), rgba(255, 110, 199, 0.2));
    border: 2px solid var(--neon-purple);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
}

.intro-consciousness {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.quote-highlight {
    font-style: italic;
    color: var(--neon-cyan);
    font-size: 1.2rem;
    padding: 1rem;
    border-left: 3px solid var(--neon-cyan);
    margin: 1rem 0;
    background: rgba(0, 255, 245, 0.05);
}

/* SPECIAL SECTIONS */
.presentiment-section {
    background: rgba(0, 255, 245, 0.05);
    border: 2px solid var(--neon-cyan);
}

.teachers-section {
    background: rgba(178, 75, 243, 0.05);
    border: 2px solid var(--neon-purple);
}

.event-card {
    border-left: 4px solid var(--neon-cyan);
}

.gcp-section {
    background: linear-gradient(135deg, rgba(0, 255, 245, 0.1), rgba(178, 75, 243, 0.1));
}

.quantum-brain-section {
    background: radial-gradient(circle, rgba(255, 110, 199, 0.15), rgba(178, 75, 243, 0.05));
    border: 2px solid var(--neon-pink);
}

.why-now-section {
    background: linear-gradient(135deg, rgba(178, 75, 243, 0.15), rgba(0, 255, 245, 0.1));
}

.event-now {
    border: 3px solid var(--neon-pink);
    box-shadow: 0 0 40px rgba(255, 110, 199, 0.4);
}

.atomic {
    background: rgba(255, 110, 199, 0.1);
    border: 2px solid var(--neon-pink);
}

.revelation-text {
    font-size: 1.1rem;
    color: var(--neon-purple);
    font-weight: 600;
}

/* TEACHER CARDS */
.teacher-card {
    margin-bottom: 2rem;
}

.teacher-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.teacher-quote {
    font-style: italic;
    color: var(--neon-cyan);
    font-size: 1.1rem;
    margin: 1rem 0;
}

.teacher-insight {
    color: var(--text-dim);
    margin-top: 0.5rem;
}

.teacher-quote-card {
    background: rgba(178, 75, 243, 0.1);
    padding: 1rem;
    border-left: 3px solid var(--neon-purple);
    margin: 1rem 0;
    border-radius: var(--radius-sm);
}

/* CONCLUSION STYLES */
.hero-final {
    font-size: 1.5rem;
    line-height: 2;
}

.final-revelation {
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(255, 110, 199, 0.15);
    border-radius: var(--radius-md);
}

.closing-truth {
    font-size: 1.2rem;
    margin: 1.5rem 0;
    color: var(--text-light);
}

.welcome-home {
    font-size: 2.5rem;
    margin: 2rem 0;
    text-shadow: 0 0 30px rgba(0, 255, 245, 0.6);
}

.final-question {
    font-size: 1.8rem;
    font-style: italic;
    margin-top: 2rem;
}

.critical-mass-indicator {
    background: rgba(0, 255, 245, 0.1);
    border: 2px solid var(--neon-cyan);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin: 2rem 0;
}

.why-list {
    list-style-position: inside;
    margin: 1rem 0;
}

.why-list li {
    margin: 0.8rem 0;
    padding-left: 1rem;
}

/* PRACTICE STEPS */
.practice-step {
    background: rgba(178, 75, 243, 0.1);
    border-left: 3px solid var(--neon-purple);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: var(--radius-md);
}

.practice-step h4 {
    color: var(--neon-cyan);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* BOTTOM NAVIGATION - FIXED CRITICAL */
.bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-around;
    padding: 0.8rem 0.5rem;
    z-index: 10000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.nav-item {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 100px;
}

.nav-item:hover {
    color: var(--neon-cyan);
    transform: translateY(-2px);
}

.nav-item.active {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 255, 245, 0.5);
}

.nav-item.active .nav-icon {
    transform: scale(1.2);
    filter: drop-shadow(0 0 8px rgba(0, 255, 245, 0.6));
    animation: iconGlow 2s ease-in-out infinite;
}

@keyframes iconGlow {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(0, 255, 245, 0.6)); }
    50% { filter: drop-shadow(0 0 15px rgba(0, 255, 245, 0.9)); }
}

.nav-icon {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.nav-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem !important;
        letter-spacing: 0.1em !important;
        white-space: normal !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
    }
    
    .hero-text-direct .hero-intro {
        font-size: 0.95rem;
    }
    
    .hero-text-direct .mega-emphasis {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .timeline-item {
        padding: 1.5rem;
    }
    
    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .cta-icon {
        font-size: 1.5rem;
    }
    
    .cta-arrow {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem !important;
        letter-spacing: 0.05em !important;
    }
    
    .hero-subtitle {
        font-size: 0.9rem !important;
    }
    
    .hero-text-direct .hero-intro {
        font-size: 0.9rem;
    }
    
    .hero-text-direct .mega-emphasis {
        font-size: 1rem;
    }
    
    .nav-icon {
        font-size: 1.2rem;
    }
    
    .mega-emphasis {
        font-size: 1.4rem;
    }
    
    .giant-shock {
        font-size: 1.5rem;
    }
}
