:root {
  --bg: #12181C;
  --panel: #171D21;
  --border: #2A3338;
  --text: #E8EDF0;
  --text-muted: #7C8B94;
  --accent: #5FB88F;
  --accent-warn: #E8A33D;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Inter', -apple-system, sans-serif;
  --max-w: 880px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.accent { color: var(--accent); }

/* faint scanline texture, very subtle, reinforces the "monitor" feel */
.scanline {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.012) 0px,
    rgba(255,255,255,0.012) 1px,
    transparent 1px,
    transparent 3px
  );
}

/* TOPBAR */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(18, 24, 28, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}
.brand {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
}
.nav { display: flex; gap: 28px; }
.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 13px;
  transition: color 0.15s;
}
.nav a:hover, .nav a:focus-visible { color: var(--text); }

/* HERO */
.hero {
  padding: 80px 24px 64px;
}
.status-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 12px;
  margin-bottom: 32px;
}
.status-text { color: var(--accent); font-weight: 500; letter-spacing: 0.04em; }
.status-meta { color: var(--text-muted); border-left: 1px solid var(--border); padding-left: 10px; }

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}
.dot-op {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(95, 184, 143, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}
.dot-warn {
  background: var(--accent-warn);
  box-shadow: 0 0 0 3px rgba(232, 163, 61, 0.18);
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.hero-title {
  font-family: var(--mono);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.hero-role {
  font-size: 18px;
  color: var(--text);
  font-weight: 600;
  margin: 0 0 20px;
}
.hero-desc {
  max-width: 560px;
  color: var(--text-muted);
  font-size: 16px;
  margin: 0 0 36px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.12s, border-color 0.12s, background 0.12s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: #0B120E;
}
.btn-primary:hover { background: #6FC79D; }
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* SECTIONS */
.section { padding: 56px 24px; border-top: 1px solid var(--border); }
.section-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 28px; }
.section-head h2 { font-size: 22px; margin: 0; font-weight: 700; }
.tag {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
}
.about-panel p { margin: 0 0 16px; color: var(--text-muted); }
.about-panel p:last-child { margin-bottom: 0; }

/* SKILLS */
.checks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.check-group {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px;
}
.check-group-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 16px;
  font-weight: 600;
}
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 14px;
  padding: 7px 0;
}
.check-note {
  color: var(--text-muted);
  font-size: 11px;
  margin-left: auto;
  text-align: right;
}

/* PROJECTS */
.project-list { display: flex; flex-direction: column; gap: 18px; }
.project-card p { color: var(--text-muted); margin: 12px 0 16px; }
.project-head { display: flex; align-items: center; gap: 12px; }
.project-head h3 { margin: 0; font-size: 17px; }
.pill {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 20px;
  padding: 2px 10px;
}
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.project-tags span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 8px;
}

/* CV / CONTACT */
.cv-panel p, .contact-panel p { color: var(--text-muted); margin: 0 0 20px; }
.contact-links { display: flex; gap: 12px; flex-wrap: wrap; }

/* FOOTER */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 32px 24px 48px;
  color: var(--text-muted);
  font-size: 12px;
  font-family: var(--mono);
}
.footer-status { display: flex; align-items: center; gap: 8px; }

/* RESPONSIVE */
@media (max-width: 720px) {
  .checks-grid { grid-template-columns: 1fr; }
  .nav { gap: 16px; }
  .nav a { font-size: 12px; }
}
@media (max-width: 520px) {
  .nav { display: none; }
  .hero { padding: 56px 20px 48px; }
}

/* FOCUS STATES */
a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
