:root {
  --bg: #1a1b26;
  --bg-surface: #1f2133;
  --bg-raised: #262840;
  --text: #c0caf5;
  --text-dim: #7982a9;
  --text-bright: #e0e6ff;
  --accent: #7aa2f7;
  --accent-dim: #3d59a1;
  --green: #9ece6a;
  --orange: #e0af68;
  --red: #f7768e;
  --border: #2e3150;
  --prompt: #9ece6a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 15px; scroll-behavior: smooth; }

body {
  font-family: 'IBM Plex Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px);
  pointer-events: none;
  z-index: 999;
}

.container { max-width: 52rem; margin: 0 auto; padding: 2rem 1.5rem 4rem; }

.topbar {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
}
.topbar a { color: var(--accent); text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar .prompt { color: var(--prompt); }
.topbar .path { color: var(--orange); }
.topbar-links { display: flex; gap: 1.5rem; }

.header { padding: 3rem 0 1.5rem; border-bottom: 1px solid var(--border); margin-bottom: 2rem; }
.header h1 { font-family: 'JetBrains Mono', monospace; font-size: 2.2rem; font-weight: 700; color: var(--text-bright); letter-spacing: -0.02em; margin-bottom: 0.25rem; }
.header .subtitle { font-family: 'JetBrains Mono', monospace; font-size: 0.95rem; color: var(--accent); margin-bottom: 1rem; }
.contact-line { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--text-dim); display: flex; flex-wrap: wrap; gap: 0.35rem; }
.contact-line a { color: var(--accent); text-decoration: none; }
.contact-line a:hover { text-decoration: underline; }
.contact-line .sep { color: var(--accent-dim); }

.section { margin-bottom: 2rem; }
.section-title { font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--green); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.75rem; }
.section-title::before { content: '##'; color: var(--text-dim); }
.section-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.summary { color: var(--text); font-size: 0.95rem; line-height: 1.7; }

.skill-row { margin-bottom: 0.5rem; font-size: 0.9rem; }
.skill-label { font-family: 'JetBrains Mono', monospace; font-weight: 600; color: var(--orange); font-size: 0.8rem; }

.job { margin-bottom: 1.75rem; }
.job-header { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0.25rem; margin-bottom: 0.15rem; }
.job-title { font-weight: 600; font-size: 1rem; color: var(--text-bright); }
.job-dates { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--text-dim); }
.job-company { font-size: 0.85rem; color: var(--accent); font-style: italic; margin-bottom: 0.5rem; }

.bullets { list-style: none; padding: 0; }
.bullets li { position: relative; padding-left: 1.25rem; margin-bottom: 0.4rem; font-size: 0.9rem; color: var(--text); }
.bullets li::before { content: '›'; position: absolute; left: 0; color: var(--accent); font-family: 'JetBrains Mono', monospace; font-weight: 700; }
.bullets li strong { color: var(--text-bright); font-weight: 600; }

.impact-item { background: var(--bg-surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 4px; padding: 0.75rem 1rem; margin-bottom: 0.6rem; font-size: 0.9rem; }
.impact-item strong { color: var(--text-bright); }

.certs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cert-tag { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; padding: 0.3rem 0.6rem; background: var(--bg-raised); border: 1px solid var(--border); border-radius: 3px; color: var(--text-dim); }

.education-main { font-weight: 600; color: var(--text-bright); }
.education-detail { font-size: 0.85rem; color: var(--text-dim); }
.education-note { font-size: 0.8rem; font-style: italic; color: var(--text-dim); margin-top: 0.35rem; }

.footer { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--border); font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: var(--text-dim); text-align: center; }
.footer a { color: var(--accent); text-decoration: none; }

.theme-switcher { display: flex; gap: 0.5rem; align-items: center; }
.theme-btn { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; padding: 0.2rem 0.5rem; background: var(--bg-raised); border: 1px solid var(--border); color: var(--text-dim); cursor: pointer; border-radius: 3px; }
.theme-btn:hover, .theme-btn.active { border-color: var(--accent); color: var(--accent); }

@media print {
  body { background: #fff; color: #1a1a1a; }
  body::after { display: none; }
  .topbar { display: none; }
  .container { max-width: 100%; padding: 0; }
  .header h1 { color: #1a1a1a; }
  .header .subtitle, .section-title, .job-company, .bullets li::before { color: #2b5797; }
  .section-title::before { color: #999; }
  .impact-item { background: #f5f5f5; border-color: #ddd; border-left-color: #2b5797; }
  .cert-tag { background: #f0f0f0; border-color: #ddd; color: #555; }
  .footer { display: none; }
  a { color: #2b5797; }
}

@media (max-width: 640px) {
  html { font-size: 14px; }
  .header h1 { font-size: 1.7rem; }
  .job-header { flex-direction: column; }
  .topbar { flex-direction: column; gap: 0.5rem; }
}

/* Reset NES.css cursor override */
*, *::before, *::after { cursor: auto !important; }
a, button { cursor: pointer !important; }

.marquee-welcome { display: none; }
