/* ========================================
   WIE MASCHINEN DENKEN LERNEN - STYLESHEET
   Band 1: 31 Kapitel
   ======================================== */

/* ========== CSS VARIABLES ========== */
:root {
    --color-bg-deep: #1a1510;
    --color-bg-dark: #2a2318;
    --color-bg-card: #352d24;
    --color-matrix-bright: #00ff41;
    --color-matrix-mid: #00cc33;
    --color-gold: #D9AE5F;
    --color-gold-glow: #FFCC66;
    --color-teal: #4ECDC4;
    --color-coral: #E87B5F;
    --color-purple: #9B59B6;
    --color-text-light: #F5E6C8;
    --color-text-muted: #a89a85;
    --font-terminal: 'VT323', monospace;
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg-deep);
    color: var(--color-text-light);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--color-gold);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--color-matrix-bright);
}

img {
    max-width: 100%;
    height: auto;
}

/* ========== FALLENDE SYMBOLE ========== */
#animation-container {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.falling-symbol {
    position: absolute;
    font-family: var(--font-terminal);
    font-weight: bold;
    animation: symbolFallRotate linear infinite;
}

@keyframes symbolFallRotate {
    0% { transform: translateY(-40px) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    85% { opacity: 0.6; }
    100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

.falling-symbol.no-rotate {
    animation: symbolFallStraight linear infinite;
}

@keyframes symbolFallStraight {
    0% { transform: translateY(-40px); opacity: 0; }
    10% { opacity: 1; }
    85% { opacity: 0.6; }
    100% { transform: translateY(100vh); opacity: 0; }
}

/* ========== CONTAINER ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.container-small {
    max-width: 800px;
}

/* ========== HEADER ========== */
header {
    background: rgba(26, 21, 16, 0.95);
    border-bottom: 1px solid var(--color-gold);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--color-gold) !important;
    font-weight: 700;
    letter-spacing: 2px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav a {
    font-size: 0.95rem;
    padding: 8px 0;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-matrix-bright);
    transition: width 0.3s;
}

nav a:hover::after,
nav a[aria-current="page"]::after {
    width: 100%;
}

/* Mobile Navigation */
#nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--color-gold);
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 2px;
    background: var(--color-gold);
    left: 0;
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

/* ========== HERO SECTION ========== */
.hero-section {
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    background: 
        linear-gradient(180deg, rgba(26,21,16,0.7) 0%, rgba(26,21,16,0.9) 100%),
        url('assets/hero-bg.jpg') center/cover no-repeat;
}

.hero-section h1 {
    font-family: var(--font-display);
    font-size: 2.8rem;
    color: var(--color-gold);
    margin-bottom: 15px;
    text-shadow: 0 0 30px rgba(217, 174, 95, 0.5);
}

.hero-section .subtitle {
    font-family: var(--font-terminal);
    font-size: 1.8rem;
    color: var(--color-matrix-bright);
    margin-bottom: 20px;
    text-shadow: 0 0 15px var(--color-matrix-bright);
}

.hero-section .tagline {
    font-size: 1.1rem;
    color: var(--color-text-light);
    max-width: 700px;
    margin: 0 auto 30px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--color-matrix-bright);
    color: var(--color-bg-deep);
}

.btn-primary:hover {
    background: var(--color-gold);
    color: var(--color-bg-deep);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 65, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--color-gold);
    color: var(--color-gold);
}

.btn-secondary:hover {
    background: var(--color-gold);
    color: var(--color-bg-deep);
}

/* ========== SECTIONS ========== */
.section {
    padding: 60px 0;
    position: relative;
    z-index: 10;
}

.section h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 40px;
}

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

/* ========== FEATURE GRID ========== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.card {
    background: var(--color-bg-card);
    border: 1px solid rgba(217, 174, 95, 0.2);
    border-radius: 10px;
    padding: 25px;
    transition: transform 0.3s, border-color 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--color-gold);
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--color-gold);
}

.card p {
    color: var(--color-matrix-bright);
    font-weight: 500;
}

/* ========== MONITOR GRID ========== */
.monitor-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.monitor-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s;
}

.monitor-unit:hover {
    transform: translateY(-8px) scale(1.05);
    z-index: 20;
}

.monitor-case {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(160deg, #6B5B45 0%, #4a3f2e 40%, #3d3428 100%);
    border-radius: 10px 10px 6px 6px;
    padding: 6px;
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    position: relative;
}

.monitor-stand {
    width: 30%;
    height: 8px;
    background: linear-gradient(180deg, #4a3f2e, #2a2318);
    border-radius: 0 0 3px 3px;
    margin-top: -2px;
}

.keyboard {
    width: 90%;
    height: 18px;
    background: linear-gradient(180deg, #5D4E37 0%, #3d3428 100%);
    border-radius: 3px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 3px 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.keyboard-row {
    display: flex;
    gap: 1px;
}

.key {
    width: 4px;
    height: 3px;
    background: #2a2318;
    border-radius: 1px;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,0.3);
}

.monitor-unit:hover .key {
    background: rgba(0, 255, 65, 0.3);
    box-shadow: 0 0 3px var(--color-matrix-bright);
}

/* ========== SCREEN ========== */
.screen {
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, #0d1a0d 0%, #050a05 100%);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 30px rgba(0, 255, 65, 0.08);
}

.screen::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.4) 100%),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.1) 2px, rgba(0,0,0,0.1) 4px);
    pointer-events: none;
    z-index: 15;
    border-radius: 6px;
}

.screen::after {
    content: '';
    position: absolute;
    top: 5%;
    left: 8%;
    width: 25%;
    height: 12%;
    background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 16;
}

/* Screen Noise */
.screen-noise {
    position: absolute;
    inset: 0;
    font-family: monospace;
    font-size: 6px;
    line-height: 1.1;
    color: rgba(0, 255, 65, 0.1);
    overflow: hidden;
    z-index: 2;
    word-break: break-all;
    animation: noiseFlicker 0.1s steps(2) infinite;
}

@keyframes noiseFlicker {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* ========== PIXEL GRID ========== */
.pixel-grid {
    position: absolute;
    inset: 8px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 2px;
    z-index: 3;
}

.pixel-grid span {
    opacity: 0;
    animation: pixelBuild 3s ease-out infinite;
}

.pixel-gold span { background: var(--color-gold); }
.pixel-teal span { background: var(--color-teal); }
.pixel-coral span { background: var(--color-coral); }
.pixel-purple span { background: var(--color-purple); }
.pixel-matrix span:nth-child(odd) { background: var(--color-matrix-bright); }
.pixel-matrix span:nth-child(even) { background: var(--color-gold); }
.pixel-mixed span:nth-child(odd) { background: var(--color-gold); }
.pixel-mixed span:nth-child(even) { background: var(--color-teal); }

.intensity-low span { animation-duration: 5s; }
.intensity-mid span { animation-duration: 3s; }
.intensity-high span { animation-duration: 1.5s; }

.pixel-grid span:nth-child(1) { animation-delay: 0s; }
.pixel-grid span:nth-child(2) { animation-delay: 0.1s; }
.pixel-grid span:nth-child(3) { animation-delay: 0.2s; }
.pixel-grid span:nth-child(4) { animation-delay: 0.3s; }
.pixel-grid span:nth-child(5) { animation-delay: 0.4s; }
.pixel-grid span:nth-child(6) { animation-delay: 0.5s; }
.pixel-grid span:nth-child(7) { animation-delay: 0.6s; }
.pixel-grid span:nth-child(8) { animation-delay: 0.7s; }
.pixel-grid span:nth-child(9) { animation-delay: 0.8s; }
.pixel-grid span:nth-child(10) { animation-delay: 0.9s; }
.pixel-grid span:nth-child(11) { animation-delay: 1.0s; }
.pixel-grid span:nth-child(12) { animation-delay: 1.1s; }

@keyframes pixelBuild {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    20%, 80% { opacity: 0.6; transform: scale(1); }
}

/* ========== ANIMATION DELAYS ========== */
.delay-0 .screen { animation-delay: 0s !important; }
.delay-1 .screen { animation-delay: 0.3s !important; }
.delay-2 .screen { animation-delay: 0.6s !important; }
.delay-3 .screen { animation-delay: 0.9s !important; }
.delay-4 .screen { animation-delay: 1.2s !important; }
.delay-5 .screen { animation-delay: 1.5s !important; }
.delay-6 .screen { animation-delay: 1.8s !important; }

/* ========== MONITOR ANIMATIONS ========== */
.brain-pulse .screen {
    animation: brainGlow 2s ease-in-out infinite;
}

@keyframes brainGlow {
    0%, 100% { box-shadow: inset 0 0 30px rgba(0, 255, 65, 0.08); }
    50% { box-shadow: inset 0 0 50px rgba(0, 255, 65, 0.25), inset 0 0 80px rgba(0, 255, 65, 0.15), 0 0 20px rgba(0, 255, 65, 0.1); }
}

.brain-pulse-strong .screen {
    animation: brainGlowStrong 1.5s ease-in-out infinite;
}

@keyframes brainGlowStrong {
    0%, 100% { box-shadow: inset 0 0 30px rgba(0, 255, 65, 0.1); filter: brightness(1); }
    50% { box-shadow: inset 0 0 60px rgba(0, 255, 65, 0.4), 0 0 30px rgba(0, 255, 65, 0.2); filter: brightness(1.2); }
}

.monitor-flicker .screen {
    animation: screenFlicker 4s ease-in-out infinite;
}

@keyframes screenFlicker {
    0%, 92%, 94%, 97%, 100% { opacity: 1; }
    93% { opacity: 0.3; }
    96% { opacity: 0.5; }
}

.monitor-glitch .screen {
    animation: screenGlitch 3s ease-in-out infinite;
}

@keyframes screenGlitch {
    0%, 90%, 100% { opacity: 1; transform: translateX(0); }
    91% { opacity: 0.8; transform: translateX(-2px); }
    92% { opacity: 1; transform: translateX(1px); }
    93% { opacity: 0.6; transform: translateX(0); }
    94% { opacity: 1; transform: translateX(-1px); }
    95% { opacity: 0.9; transform: translateX(0); }
}

.monitor-flash .screen {
    animation: screenFlash 5s ease-in-out infinite;
}

@keyframes screenFlash {
    0%, 85%, 88%, 100% { filter: brightness(1); }
    86% { filter: brightness(2.5); box-shadow: inset 0 0 80px rgba(255,255,255,0.5); }
}

.monitor-poweroff .screen {
    animation: screenPowerOff 6s ease-in-out infinite;
}

@keyframes screenPowerOff {
    0%, 70%, 85%, 100% { opacity: 1; transform: scaleY(1); }
    72% { opacity: 0.8; transform: scaleY(0.8); }
    74%, 80% { opacity: 0; transform: scaleY(0.02); }
    82% { opacity: 0.5; transform: scaleY(0.5); }
}

.monitor-static .screen {
    animation: screenStatic 0.15s steps(3) infinite;
}

@keyframes screenStatic {
    0% { filter: brightness(1) contrast(1); }
    33% { filter: brightness(1.1) contrast(1.05); }
    66% { filter: brightness(0.95) contrast(1.1); }
    100% { filter: brightness(1.05) contrast(0.95); }
}

.monitor-breathe .screen {
    animation: screenBreathe 4s ease-in-out infinite;
}

@keyframes screenBreathe {
    0%, 100% { box-shadow: inset 0 0 20px rgba(0, 255, 65, 0.05); filter: brightness(0.9); }
    50% { box-shadow: inset 0 0 50px rgba(0, 255, 65, 0.2); filter: brightness(1.1); }
}

.monitor-rapid .screen {
    animation: screenRapid 0.3s steps(2) infinite;
}

@keyframes screenRapid {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

.monitor-colorglow .screen {
    animation: screenColorGlow 4s ease-in-out infinite;
}

@keyframes screenColorGlow {
    0%, 100% { box-shadow: inset 0 0 40px rgba(0, 255, 65, 0.2); }
    33% { box-shadow: inset 0 0 40px rgba(217, 174, 95, 0.25); }
    66% { box-shadow: inset 0 0 40px rgba(78, 205, 196, 0.2); }
}

/* ========== SCREEN NUMBER & TITLE ========== */
.screen .number {
    font-family: var(--font-terminal);
    font-size: 2.2rem;
    color: var(--color-matrix-bright);
    text-shadow: 0 0 10px var(--color-matrix-bright), 0 0 20px rgba(0, 255, 65, 0.5);
    z-index: 10;
    position: relative;
}

.number-alternate {
    animation: numberColorShift 3s ease-in-out infinite;
}

@keyframes numberColorShift {
    0%, 100% { color: var(--color-matrix-bright); text-shadow: 0 0 10px var(--color-matrix-bright); }
    50% { color: var(--color-gold); text-shadow: 0 0 10px var(--color-gold); }
}

.screen .title {
    font-family: var(--font-terminal);
    font-size: 0.8rem;
    color: #000;
    text-transform: uppercase;
    margin-top: 3px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 2px;
    background: var(--color-gold);
    padding: 2px 6px;
    border-radius: 2px;
    letter-spacing: 0.5px;
}

.screen .icon {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 0.9rem;
    z-index: 10;
}

.icon-float { animation: iconFloat 2s ease-in-out infinite; }

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

/* ========== CURSOR VARIANTS (Title) ========== */
.cursor {
    display: inline-block;
    margin-left: 2px;
}

.cursor-block { width: 7px; height: 12px; background: #1a1510; animation: blink 1s step-end infinite; }
.cursor-line { width: 2px; height: 12px; background: #1a1510; animation: blink 0.7s step-end infinite; }
.cursor-under { width: 10px; height: 2px; background: #1a1510; animation: blink 1.2s step-end infinite; align-self: flex-end; }
.cursor-dot { width: 5px; height: 5px; background: #1a1510; border-radius: 50%; animation: pulse 1s ease-in-out infinite; }
.cursor-block-fast { width: 7px; height: 12px; background: #1a1510; animation: blink 0.4s step-end infinite; }
.cursor-block-slow { width: 7px; height: 12px; background: var(--color-teal); animation: blink 1.8s step-end infinite; }
.cursor-line-gold { width: 2px; height: 12px; background: #1a1510; animation: blink 0.6s step-end infinite; }
.cursor-line-thick { width: 4px; height: 12px; background: #1a1510; animation: blink 0.8s step-end infinite; }
.cursor-under-long { width: 14px; height: 2px; background: #1a1510; animation: blink 1s step-end infinite; align-self: flex-end; }
.cursor-dot-pulse { width: 6px; height: 6px; background: #1a1510; border-radius: 50%; animation: pulseBright 0.8s ease-in-out infinite; }
.cursor-square { width: 6px; height: 6px; background: var(--color-coral); animation: blink 0.9s step-end infinite; }
.cursor-diamond { width: 6px; height: 6px; background: var(--color-purple); transform: rotate(45deg); animation: blink 1.1s step-end infinite; }

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.7); opacity: 0.5; } }
@keyframes pulseBright { 0%, 100% { transform: scale(1); box-shadow: 0 0 3px var(--color-matrix-bright); } 50% { transform: scale(1.3); box-shadow: 0 0 10px var(--color-matrix-bright); } }

/* ========== SCREEN CURSOR ========== */
.screen-cursor {
    position: absolute;
    bottom: 8px;
    left: 8px;
    z-index: 12;
}

.screen-cursor-block { width: 10px; height: 18px; background: var(--color-matrix-bright); animation: blinkScreen 1s step-end infinite; box-shadow: 0 0 8px var(--color-matrix-bright); }
.screen-cursor-block-fast { width: 10px; height: 18px; background: var(--color-matrix-bright); animation: blinkScreen 0.4s step-end infinite; box-shadow: 0 0 10px var(--color-matrix-bright); }
.screen-cursor-block-slow { width: 10px; height: 18px; background: var(--color-teal); animation: blinkScreen 1.8s step-end infinite; box-shadow: 0 0 8px var(--color-teal); }
.screen-cursor-line { width: 3px; height: 18px; background: var(--color-matrix-bright); animation: blinkScreen 0.7s step-end infinite; box-shadow: 0 0 6px var(--color-matrix-bright); }
.screen-cursor-line-gold { width: 3px; height: 18px; background: var(--color-gold); animation: blinkScreen 0.6s step-end infinite; box-shadow: 0 0 6px var(--color-gold); }
.screen-cursor-line-thick { width: 6px; height: 18px; background: var(--color-matrix-bright); animation: blinkScreen 0.8s step-end infinite; box-shadow: 0 0 8px var(--color-matrix-bright); }
.screen-cursor-under { width: 14px; height: 3px; background: var(--color-matrix-bright); animation: blinkScreen 1.2s step-end infinite; box-shadow: 0 0 6px var(--color-matrix-bright); }
.screen-cursor-under-long { width: 20px; height: 3px; background: var(--color-gold); animation: blinkScreen 1s step-end infinite; box-shadow: 0 0 6px var(--color-gold); }
.screen-cursor-dot { width: 8px; height: 8px; background: var(--color-matrix-bright); border-radius: 50%; animation: pulseScreen 1s ease-in-out infinite; box-shadow: 0 0 8px var(--color-matrix-bright); }
.screen-cursor-dot-pulse { width: 10px; height: 10px; background: var(--color-gold); border-radius: 50%; animation: pulseScreenBright 0.8s ease-in-out infinite; box-shadow: 0 0 12px var(--color-gold); }
.screen-cursor-square { width: 10px; height: 10px; background: var(--color-coral); animation: blinkScreen 0.9s step-end infinite; box-shadow: 0 0 8px var(--color-coral); }
.screen-cursor-diamond { width: 10px; height: 10px; background: var(--color-purple); transform: rotate(45deg); animation: blinkScreen 1.1s step-end infinite; box-shadow: 0 0 8px var(--color-purple); }

@keyframes blinkScreen { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes pulseScreen { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.6); opacity: 0.4; } }
@keyframes pulseScreenBright { 0%, 100% { transform: scale(1); box-shadow: 0 0 8px var(--color-gold); } 50% { transform: scale(1.4); box-shadow: 0 0 20px var(--color-gold); } }

/* ========== CLICK EFFECT ========== */
.monitor-unit.clicked .screen {
    animation: clickFlash 0.5s ease-out !important;
}

@keyframes clickFlash {
    0% { filter: brightness(3); box-shadow: inset 0 0 100px rgba(255, 255, 255, 0.8); }
    100% { filter: brightness(1); box-shadow: inset 0 0 30px rgba(0, 255, 65, 0.08); }
}

/* ========== CHAPTER OVERLAY ========== */
.chapter-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.chapter-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.chapter-preview {
    background: var(--color-bg-dark);
    border: 2px solid var(--color-gold);
    border-radius: 15px;
    padding: 40px;
    max-width: 500px;
    text-align: center;
    animation: slideUp 0.4s ease-out;
}

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

.chapter-preview h2 {
    font-family: var(--font-terminal);
    font-size: 3rem;
    color: var(--color-matrix-bright);
    margin-bottom: 10px;
}

.chapter-preview h3 {
    font-family: var(--font-display);
    color: var(--color-gold);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.chapter-preview p {
    color: var(--color-text-light);
    margin-bottom: 25px;
    line-height: 1.6;
}

/* ========== FAQ ========== */
.faq-item {
    background: var(--color-bg-card);
    border: 1px solid rgba(217, 174, 95, 0.2);
    border-radius: 10px;
    padding: 20px 25px;
    margin-bottom: 15px;
}

.faq-item h3 {
    color: var(--color-gold);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.faq-item p {
    color: var(--color-matrix-bright);
    font-weight: 500;
}

/* ========== CONTENT PAGES ========== */
.content-page {
    padding-top: 40px;
}

.content-page h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--color-gold);
    margin-bottom: 30px;
    text-align: center;
}

.content-page h2 {
    color: var(--color-gold);
    font-size: 1.4rem;
    margin: 30px 0 15px;
}

.content-page p {
    margin-bottom: 15px;
    color: var(--color-text-light);
}

.content-page ul {
    margin: 15px 0;
    padding-left: 25px;
}

.content-page li {
    margin-bottom: 8px;
    color: var(--color-text-light);
}

/* ========== CONTACT SECTION ========== */
.contact-section {
    max-width: 600px;
    margin: 0 auto;
}

.contact-intro {
    text-align: center;
    margin-bottom: 30px;
}

.contact-intro h1 {
    margin-bottom: 15px;
}

.direct-email {
    background: var(--color-bg-card);
    border: 1px solid var(--color-gold);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    margin-bottom: 30px;
}

.direct-email h3 {
    color: var(--color-gold);
    margin-bottom: 15px;
}

.direct-email a {
    font-size: 1.3rem;
    color: var(--color-matrix-bright);
    font-weight: 600;
}

.contact-divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
}

.contact-divider::before,
.contact-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(217, 174, 95, 0.3);
}

.contact-divider span {
    padding: 0 20px;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.contact-form-container {
    background: var(--color-bg-card);
    border: 1px solid rgba(217, 174, 95, 0.2);
    border-radius: 10px;
    padding: 30px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--color-gold);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    background: var(--color-bg-deep);
    border: 1px solid rgba(217, 174, 95, 0.3);
    border-radius: 6px;
    padding: 12px 15px;
    color: var(--color-text-light);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-matrix-bright);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-muted);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-hint {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.form-hint a {
    color: var(--color-matrix-bright);
}

/* ========== SOUND TOGGLE ========== */
.sound-toggle {
    position: fixed;
    top: 80px;
    right: 20px;
    background: var(--color-bg-dark);
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-family: var(--font-terminal);
    font-size: 1rem;
    z-index: 99;
    transition: all 0.3s;
}

.sound-toggle:hover {
    background: var(--color-gold);
    color: var(--color-bg-deep);
}

.sound-toggle.muted {
    opacity: 0.5;
}

/* Ambient Toggle */
.ambient-toggle {
    position: fixed;
    top: 125px;
    right: 20px;
    background: var(--color-bg-dark);
    border: 1px solid var(--color-teal);
    color: var(--color-teal);
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-family: var(--font-terminal);
    font-size: 0.9rem;
    z-index: 99;
    transition: all 0.3s;
}

.ambient-toggle:hover {
    background: var(--color-teal);
    color: var(--color-bg-deep);
}

.ambient-toggle.active {
    background: rgba(78, 205, 196, 0.2);
    box-shadow: 0 0 10px var(--color-teal);
}

/* ========== FOOTER ========== */
footer {
    background: var(--color-bg-dark);
    border-top: 1px solid rgba(217, 174, 95, 0.3);
    padding: 30px 0;
    margin-top: 60px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

footer p {
    color: var(--color-text-muted);
}

footer nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

footer nav a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

footer nav a:hover {
    color: var(--color-gold);
}

/* ========== DAY VIEWER (iFrame) ========== */
.day-viewer {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    flex-direction: column;
}

.day-viewer.active {
    display: flex;
}

.close-viewer-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: var(--color-coral);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    z-index: 2001;
}

.day-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1000px) {
    .monitor-grid { 
        grid-template-columns: repeat(5, 1fr); 
        gap: 15px; 
    }
}

@media (max-width: 768px) {
    #nav-toggle {
        display: block;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-bg-deep);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--color-gold);
    }
    
    nav ul.active {
        display: flex;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .subtitle {
        font-size: 1.4rem;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 700px) {
    .monitor-grid { 
        grid-template-columns: repeat(4, 1fr); 
        gap: 12px; 
    }
    
    .screen .number { 
        font-size: 1.5rem; 
    }
    
    .screen .title { 
        display: none; 
    }
    
    .keyboard { 
        height: 12px; 
    }
    
    .key { 
        width: 3px; 
        height: 2px; 
    }
}

@media (max-width: 480px) {
    .monitor-grid { 
        grid-template-columns: repeat(3, 1fr); 
        gap: 10px; 
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
}

/* ========== ACCESSIBILITY ========== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
