:root {
    --color-bg: #050505;
    --color-bg-sec: #111111;
    --color-cyan: #06B6D4;
    --color-red: #ff0f3d; /* Blackwall Red */
    --glass-bg: rgba(10, 10, 10, 0.85);
    --border-color: #333;
}

body {
    margin: 0;
    padding: 0;
    overflow: hidden; 
    background-color: var(--color-bg);
    color: var(--color-cyan);
    font-family: 'Share Tech Mono', monospace;
}

/* Mobile Scroll fix */
@media (max-width: 768px) {
    body {
        overflow-y: auto;
        overflow-x: hidden;
        height: auto;
    }
}

h1, h2, h3, .tech-font {
    font-family: 'Orbitron', sans-serif;
}

/* --- SCANLINE OVERLAY --- */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0),
        rgba(255,255,255,0) 50%,
        rgba(0,0,0,0.3) 50%,
        rgba(0,0,0,0.3)
    );
    background-size: 100% 3px;
    pointer-events: none;
    z-index: 50;
    opacity: 0.4;
}

/* --- RED VIGNETTE FOR BLACKWALL FEEL --- */
.blackwall-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle, rgba(0,0,0,0) 50%, rgba(20,0,0,0.8) 100%);
    pointer-events: none;
    z-index: 51;
    box-shadow: inset 0 0 50px rgba(255, 15, 61, 0.1);
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--color-bg-sec); }
::-webkit-scrollbar-thumb { background: var(--color-red); }

/* --- UI ELEMENTS --- */
.hud-panel {
    background: var(--glass-bg);
    border: 1px solid var(--color-red);
    box-shadow: 0 0 20px rgba(255, 15, 61, 0.15);
    backdrop-filter: blur(8px);
    position: relative;
}
.hud-panel::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px;
    width: 10px; height: 10px;
    border-top: 2px solid var(--color-red);
    border-left: 2px solid var(--color-red);
}
.hud-panel::after {
    content: '';
    position: absolute;
    bottom: -1px; right: -1px;
    width: 10px; height: 10px;
    border-bottom: 2px solid var(--color-red);
    border-right: 2px solid var(--color-red);
}

.nav-btn {
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--border-color);
    color: #888;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}
.nav-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 15, 61, 0.2), transparent);
    transition: 0.5s;
}
.nav-btn:hover::before { left: 100%; }
.nav-btn:hover, .nav-btn.active {
    background: rgba(255, 15, 61, 0.1);
    border-color: var(--color-red);
    color: var(--color-red);
    box-shadow: 0 0 10px rgba(255, 15, 61, 0.3);
    font-weight: bold;
    text-shadow: 0 0 5px var(--color-red);
}

.holographic-text { text-shadow: 2px 0 var(--color-red), -2px 0 cyan; animation: flicker 3s infinite; }
@keyframes flicker {
    0%, 19.999%, 22%, 62.999%, 64%, 64.999%, 70%, 100% { opacity: 1; transform: translateX(0); }
    20%, 21.999%, 63%, 63.999%, 65%, 69.999% { opacity: 0.8; transform: translateX(1px); }
}

/* --- SKILL CELLS --- */
.skill-cell-container { display: flex; gap: 2px; height: 10px; width: 100%; align-items: center; }
.skill-cell { flex: 1; height: 100%; background-color: #111; border: 1px solid #333; transform: skewX(-20deg); }
.skill-cell.active { background-color: var(--color-red); box-shadow: 0 0 8px var(--color-red); border-color: #ff5555; }

/* --- LAYOUT --- */
#main-interface { display: grid; grid-template-columns: 300px 1fr; height: 100vh; max-width: 1800px; margin: 0 auto; padding: 20px; gap: 20px; position: relative; z-index: 10; }
@media (max-width: 1024px) {
    #main-interface { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; height: auto; min-height: 100vh; padding: 10px; gap: 15px; }
    nav { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px; }
    .hud-panel { backdrop-filter: blur(4px); }
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.8rem; }
}

/* Canvas Layer */
#bg-canvas { position: fixed; top: 0; left: 0; z-index: 0; }

.section-content { display: none; animation: glitch-enter 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both; }
.section-content.active { display: block; }
@keyframes glitch-enter {
    0% { opacity: 0; transform: translateX(-20px); clip-path: inset(0 100% 0 0); }
    20% { opacity: 1; transform: translateX(5px); clip-path: inset(0 0 0 0); }
    40% { transform: translateX(-5px); }
    60% { transform: translateX(2px); }
    100% { transform: translateX(0); }
}

.project-card { border-left: 1px solid #333; background: rgba(0,0,0,0.4); transition: all 0.3s; position: relative; overflow: hidden; }
.project-card:hover { border-left: 4px solid var(--color-red); background: rgba(20, 0, 0, 0.6); }
.project-card:hover::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.1'/%3E%3C/svg%3E"); pointer-events: none; opacity: 0.2; }

.text-red-glow { color: var(--color-red); text-shadow: 0 0 8px var(--color-red); }
