:root {
    --bg: #08080a;
    --primary: #00ff9d; /* Matrix Green */
    --accent: #00d2ff; /* Cyber Blue */
    --glass: rgba(18, 22, 28, 0.85);
    --border: 1px solid rgba(255, 255, 255, 0.15);
    --font: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; outline: none; user-select: none; }
body { 
    margin: 0; background: var(--bg); color: #e0e0e0; font-family: var(--font); overflow: hidden;
    background-image: radial-gradient(circle at 50% 50%, #111 0%, #000 100%);
}

/* CRT EFFECTS */
.scanlines {
    position: fixed; inset: 0; pointer-events: none; z-index: 9999;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
    background-size: 100% 4px; opacity: 0.6;
}

/* BOOT SCREEN */
#boot-screen {
    position: fixed; inset: 0; background: #000; z-index: 20000;
    display: flex; align-items: center; justify-content: center;
}
.boot-terminal { width: 600px; font-size: 12px; color: var(--primary); }
#boot-log div { margin-bottom: 2px; }
.loader-wrap { width: 100%; height: 4px; background: #222; margin-top: 20px; }
.loader-bar { height: 100%; background: var(--primary); width: 0%; transition: width 0.1s; box-shadow: 0 0 10px var(--primary); }

/* DESKTOP */
#desktop { position: absolute; inset: 0 0 50px 0; padding: 40px; }
.icon-grid { 
    display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); 
    gap: 30px; justify-items: center; 
}
.app-icon {
    width: 100px; text-align: center; cursor: pointer; padding: 15px;
    border: 1px solid transparent; border-radius: 8px; transition: 0.2s;
}
.app-icon:hover { 
    background: rgba(255, 255, 255, 0.05); border-color: rgba(255,255,255,0.2); 
    backdrop-filter: blur(10px); transform: translateY(-5px);
}
.icon-char { font-size: 40px; margin-bottom: 10px; filter: drop-shadow(0 0 10px var(--primary)); }
.icon-label { font-size: 11px; font-weight: bold; letter-spacing: 1px; }

/* WINDOWS */
.window {
    position: absolute; width: 800px; height: 500px;
    background: var(--glass); backdrop-filter: blur(20px);
    border: var(--border); border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
    display: none; flex-direction: column; z-index: 100;
    opacity: 0; transform: scale(0.95);
}
.window.open { display: flex; animation: winOpen 0.3s forwards cubic-bezier(0.16, 1, 0.3, 1); }
.window.active { border-color: var(--primary); box-shadow: 0 0 20px rgba(0, 255, 157, 0.1); z-index: 500; }
@keyframes winOpen { to { opacity: 1; transform: scale(1); } }

.win-header {
    height: 40px; background: rgba(255,255,255,0.02); border-bottom: var(--border);
    display: flex; align-items: center; justify-content: space-between; padding: 0 15px; cursor: grab;
}
.win-title { font-size: 12px; font-weight: bold; color: var(--accent); letter-spacing: 1px; }
.win-close { cursor: pointer; color: #ff5555; font-weight: bold; }

.win-content { flex: 1; overflow: auto; padding: 0; font-size: 13px; line-height: 1.6; }
.content-pad { padding: 30px; }

/* RESUME STYLES */
.cv-section { margin-bottom: 30px; }
.cv-title { color: var(--primary); font-size: 16px; border-bottom: 1px solid #333; padding-bottom: 5px; margin-bottom: 15px; }
.job-card { margin-bottom: 20px; padding-left: 15px; border-left: 2px solid #333; }
.job-role { font-weight: bold; color: #fff; font-size: 14px; }
.job-company { color: var(--accent); font-size: 12px; }
.job-desc { color: #aaa; margin-top: 5px; font-size: 12px; }

/* TASKBAR */
#taskbar {
    position: absolute; bottom: 0; width: 100%; height: 50px;
    background: rgba(10, 10, 15, 0.9); border-top: var(--border);
    display: flex; align-items: center; justify-content: space-between; padding: 0 20px; z-index: 10000;
}
#start-btn { 
    background: var(--primary); color: #000; padding: 8px 16px; 
    font-weight: bold; cursor: pointer; border-radius: 4px; 
}
.taskbar-right { display: flex; gap: 20px; font-size: 11px; font-weight: bold; color: #888; }
.val { color: var(--primary); }

/* TERMINAL */
#term-box { padding: 20px; color: #ccc; height: 100%; }
.cmd-line { margin-bottom: 5px; }
.cmd-input { background: transparent; border: none; color: #fff; width: 80%; font-family: inherit; }

@media (max-width: 768px) {
    .window { width: 100% !important; height: calc(100% - 50px) !important; top: 0 !important; left: 0 !important; }
    .icon-grid { grid-template-columns: repeat(3, 1fr); }
}