/* --- RESET & FONTS --- */
* { margin: 0; padding: 0; box-sizing: border-box; user-select: none; }
:root {
    --neon-green: #0f0;
    --neon-dim: #004d00;
    --bg-color: #050505;
    --terminal-bg: rgba(10, 15, 10, 0.95);
    --cyan: #0ff;
    --pink: #ff00ff;
    --font-main: 'JetBrains Mono', monospace;
}

body {
    background-color: var(--bg-color);
    color: var(--neon-green);
    font-family: var(--font-main);
    height: 100vh; overflow: hidden;
    display: flex; justify-content: center; align-items: center;
}

/* --- BOOT SCREEN --- */
#boot-screen {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #000; z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    cursor: pointer;
}
.boot-text { font-size: 1.1rem; line-height: 1.6; font-family: monospace; }
.blink { animation: blink 0.5s infinite; color: var(--cyan); margin-top: 20px; font-weight: bold;}

/* --- BACKGROUND EFFECTS --- */
canvas#matrix { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.8; }
.crt-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
    background-size: 100% 4px; pointer-events: none; z-index: 10;
}
.scanline {
    position: fixed; top: 0; left: 0; width: 100%; height: 5px;
    background: rgba(0, 255, 0, 0.3); opacity: 0.4;
    animation: scanline 8s linear infinite; pointer-events: none; z-index: 11;
}

/* --- MAIN CONTAINER --- */
.container {
    width: 95%; max-width: 1000px; height: 90vh;
    border: 1px solid var(--neon-green);
    background: var(--terminal-bg);
    box-shadow: 0 0 20px var(--neon-dim);
    display: flex; flex-direction: column;
    position: relative; z-index: 5;
    border-radius: 4px;
}

/* --- TOP BAR & MUSIC --- */
.system-bar {
    background: rgba(0, 20, 0, 0.9); border-bottom: 1px solid var(--neon-green);
    padding: 10px 15px; font-size: 0.85rem;
    display: flex; justify-content: space-between; align-items: center;
}
.blink-led { color: #f00; animation: blink 1s infinite; margin-right: 8px; }
#music-control { 
    cursor: pointer; color: var(--cyan); border: 1px solid var(--cyan); 
    padding: 3px 10px; font-size: 0.8rem; transition: 0.3s; 
}
#music-control:hover { background: var(--cyan); color: #000; box-shadow: 0 0 10px var(--cyan); }

/* --- TERMINAL WINDOW --- */
.terminal-window {
    flex: 1; padding: 20px; overflow-y: auto;
    font-size: 0.95rem; text-shadow: 0 0 2px var(--neon-green);
}
/* Custom Scrollbar */
.terminal-window::-webkit-scrollbar { width: 8px; }
.terminal-window::-webkit-scrollbar-thumb { background: var(--neon-green); border-radius: 0; }
.terminal-window::-webkit-scrollbar-track { background: #000; }

.prompt { color: var(--cyan); margin-right: 10px; font-weight: bold; }
.cursor { animation: blink 1s infinite; margin-left: 2px; color: var(--neon-green); }
.command-output { margin-bottom: 15px; line-height: 1.4; }

/* --- WRITEUP CARDS --- */
.writeup-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px; margin-top: 15px;
}
.card {
    border: 1px solid var(--neon-green); background: rgba(0, 20, 0, 0.6);
    padding: 15px; position: relative; transition: 0.3s; cursor: pointer;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 0 15px var(--neon-green); background: rgba(0, 40, 0, 0.8); }
.card h3 { color: var(--cyan); margin-bottom: 5px; font-size: 1rem; }
.card .date { font-size: 0.75rem; color: #888; display: block; margin-bottom: 5px; }
.card .tag { 
    background: var(--neon-green); color: #000; font-size: 0.7rem; 
    padding: 2px 6px; font-weight: bold; display: inline-block; margin-top: 8px;
}
.card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 0; height: 100%;
    border-left: 2px solid var(--pink); transition: 0.3s;
}
.card:hover::before { height: 100%; }

/* --- ABOUT (DOSSIER STYLE) --- */
.dossier-container {
    border: 1px dashed var(--neon-green); padding: 15px;
    background: rgba(0, 20, 0, 0.5); display: flex; gap: 20px;
    align-items: flex-start;
}
.avatar-frame {
    width: 70px; height: 70px; border: 2px solid var(--cyan);
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: var(--cyan); box-shadow: 0 0 10px var(--cyan);
    flex-shrink: 0;
}
.dossier-info { flex: 1; }
.label { color: #888; font-size: 0.8rem; display: inline-block; width: 90px;}
.value { color: var(--neon-green); font-weight: bold; }

/* --- SKILLS (PROGRESS BARS) --- */
.skill-category { margin-top: 15px; margin-bottom: 8px; color: var(--pink); font-weight: bold; text-decoration: underline; }
.skill-row { display: flex; justify-content: space-between; margin-bottom: 5px; font-family: monospace; font-size: 0.9rem;}
.progress-bar { color: var(--cyan); }

/* --- NAVIGATION --- */
.cyber-nav { display: flex; border-top: 1px solid var(--neon-green); background: rgba(0,0,0,0.8); flex-shrink: 0;}
.glitch-btn {
    flex: 1; background: transparent; border: none;
    border-right: 1px solid var(--neon-green);
    color: var(--neon-green); padding: 15px;
    font-family: var(--font-main); font-weight: bold; font-size: 0.95rem;
    cursor: pointer; transition: 0.2s; position: relative; overflow: hidden;
}
.glitch-btn i { margin-right: 8px; }
.glitch-btn:last-child { border-right: none; }
.glitch-btn:hover { background: var(--neon-green); color: #000; text-shadow: none; }
.glitch-btn:active { background: var(--cyan); }

/* --- UTILS & ANIMATION --- */
a { color: var(--pink); text-decoration: none; border-bottom: 1px dashed var(--pink); }
a:hover { background: var(--pink); color: #000; }
.ascii-art { font-size: 9px; line-height: 9px; white-space: pre; color: var(--cyan); margin-bottom: 20px; font-weight: bold; overflow: hidden; }

@keyframes blink { 50% { opacity: 0; } }
@keyframes scanline { 0% { top: -10%; } 100% { top: 110%; } }

/* --- MOBILE --- */
@media (max-width: 768px) {
    .container { width: 100%; height: 100dvh; border: none; }
    .desktop-only { display: none; }
    .cyber-nav { flex-wrap: wrap; }
    .glitch-btn { width: 50%; border-bottom: 1px solid var(--neon-green); padding: 12px; }
    .glitch-btn:nth-child(even) { border-right: none; }
    .dossier-container { flex-direction: column; align-items: center; text-align: center; }
    .label { display: block; width: auto; color: #666; font-size: 0.7rem;}
    .skill-row { font-size: 0.8rem; }
}
