/* --- RETRO THEME VARIABLES --- */
:root {
    --neon-green: #39ff14;
    --neon-pink: #ff00ff;
    --neon-blue: #00ffff;
    --neon-yellow: #ffff00;
    --terminal-bg: rgba(10, 10, 10, 0.95);
}

body {
    background-color: #111; /* Fallback */
    color: #eee;
    font-family: 'Space Mono', monospace; /* Readable monospace */
    margin: 0;
    overflow-x: hidden;
}

/* CRT Overlay (Subtle) */
body::after {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    z-index: 999;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Press Start 2P', cursive;
    text-transform: uppercase;
    line-height: 1.6;
}

/* Dynamic sizing for the massive word INFRASTRUCTURE */
.responsive-headline {
    font-size: clamp(1.1rem, 5.5vw, 3rem);
    line-height: 1.4;
    word-break: normal;
}

.responsive-keyword {
    font-size: inherit;
    display: inline-block;
}

/* Terminal Window Styling */
.terminal-window {
    background: var(--terminal-bg);
    border: 2px solid var(--neon-blue);
    box-shadow: 8px 8px 0px rgba(0, 255, 255, 0.2);
    position: relative;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    /* Ensure terminals stay below overlay */
    z-index: 1;
}

.terminal-window:hover {
    transform: translateY(-2px);
    box-shadow: 10px 10px 0px rgba(0, 255, 255, 0.4);
    z-index: 10; /* Lift up slightly on hover */
}

.terminal-header {
    background: var(--neon-blue);
    color: #000;
    padding: 0.5rem 1rem;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0; /* Prevent header from shrinking */
}

@media (min-width: 768px) {
    .terminal-header { font-size: 0.7rem; }
}

.terminal-content {
    padding: 1.5rem 1.5rem 2.5rem 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
@media (min-width: 768px) {
    .terminal-content { padding: 2rem 2rem 3rem 2rem; }
}

/* List Items */
.terminal-list {
    margin-top: auto; /* Push to bottom but respect padding */
    padding-top: 1.5rem;
}

.terminal-list li {
    word-break: break-word; /* Prevent long words breaking layout */
}

/* Buttons */
.retro-btn {
    display: inline-block;
    background: transparent;
    border: 2px solid var(--neon-green);
    color: var(--neon-green);
    padding: 1rem 1.5rem;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    /* FIX: Lowered Z-index so menu overlay (z-40) sits on top */
    z-index: 10;
}

.retro-btn:hover {
    background: var(--neon-green);
    color: #000;
    box-shadow: 0 0 15px var(--neon-green);
}

/* Specific Section Colors */
.theme-pink { border-color: var(--neon-pink); }
.theme-pink .terminal-header { background: var(--neon-pink); }
.theme-pink:hover { box-shadow: 10px 10px 0px rgba(255, 0, 255, 0.4); }

.theme-yellow { border-color: var(--neon-yellow); }
.theme-yellow .terminal-header { background: var(--neon-yellow); }
.theme-yellow:hover { box-shadow: 10px 10px 0px rgba(255, 255, 0, 0.4); }

/* 3D Canvas */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
}

/* Mobile Menu Overlay */
#mobile-menu-overlay {
    transition: opacity 0.3s ease;
    /* Ensure this is higher than content but lower than navbar (z-50) */
    z-index: 40;
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #111; }
::-webkit-scrollbar-thumb { background: #333; border: 1px solid #555; }
::-webkit-scrollbar-thumb:hover { background: var(--neon-green); }
