:root {
  --bg: #0d1117;
  --bg-raised: #12181f;
  --border: #21262d;
  --text: #c9d1d9;
  --text-muted: #8b949e;
  --accent: #58a6ff;
  --accent-green: #3fb950;
  --accent-orange: #f0883e;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --sans: 'Inter', system-ui, sans-serif;
  --radius: 4px;
  --maxw: 780px;
}

* { box-sizing: border-box; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

html { scroll-behavior: smooth; }

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* subtle scanline texture, static not animated — keeps the terminal feel without being gimmicky */
.scanline-overlay {
  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
  );
  opacity: 0.5;
}

/* NAV */
.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,17,23,0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.topnav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--text);
  font-size: 15px;
}
.brand-blink {
  color: var(--accent-green);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.nav-links { display: flex; gap: 20px; }
.nav-links a {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-muted);
}
.nav-links a:hover { color: var(--accent); text-decoration: none; }

/* HERO */
.hero {
  padding: 64px 24px 40px;
}
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}

.terminal {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.6);
}
.terminal-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #161b22;
  border-bottom: 1px solid var(--border);
}
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-r { background: #ff5f56; }
.dot-y { background: #ffbd2e; }
.dot-g { background: #27c93f; }
.terminal-path {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
}
.terminal-body {
  font-family: var(--mono);
  font-size: 14px;
  padding: 22px 20px 26px;
  min-height: 220px;
  white-space: pre-wrap;
  word-break: break-word;
}
.term-prompt { color: var(--accent-green); }
.term-cmd { color: var(--text); }
.term-out { color: var(--text-muted); display: block; margin: 2px 0 14px; }
.term-out strong { color: var(--text); font-weight: 500; }
.cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--accent-green);
  vertical-align: text-bottom;
  animation: blink 1s steps(1) infinite;
}

.hero-tagline {
  font-family: var(--mono);
  color: var(--text-muted);
  font-size: 13px;
  margin: 16px 4px 0;
}

/* SECTIONS */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 24px;
  border-top: 1px solid var(--border);
}
.section-heading {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 8px;
  color: var(--text);
}
.comment { color: var(--text-muted); font-weight: 400; }
.section-sub {
  color: var(--text-muted);
  font-size: 14.5px;
  margin: 0 0 32px;
}

/* PROJECTS */
.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.project-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: border-color 0.15s ease;
}
.project-card:hover { border-color: #30363d; }
.project-card-placeholder { border-style: dashed; }
.project-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.project-head h3 {
  margin: 0;
  font-family: var(--mono);
  font-size: 16px;
  color: var(--text);
}
.status {
  font-family: var(--mono);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 3px;
  white-space: nowrap;
  border: 1px solid transparent;
}
.status-live { color: var(--accent-green); border-color: rgba(63,185,80,0.35); background: rgba(63,185,80,0.08); }
.status-hack { color: var(--accent); border-color: rgba(88,166,255,0.35); background: rgba(88,166,255,0.08); }
.status-award { color: var(--accent-orange); border-color: rgba(240,136,62,0.35); background: rgba(240,136,62,0.08); }
.status-progress { color: var(--text-muted); border-color: var(--border); background: rgba(255,255,255,0.03); }

.project-desc { color: var(--text-muted); font-size: 14px; margin: 8px 0 14px; }
.tech-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0 0 14px;
}
.tech-list li {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 3px;
}
.project-links a { font-family: var(--mono); font-size: 13px; }

/* placeholder styling — visually distinct so it never reads as a live link */
.link-placeholder[data-placeholder="true"] {
  color: var(--text-muted);
  cursor: default;
  pointer-events: none;
  border-bottom: 1px dashed var(--text-muted);
}
.link-placeholder[data-placeholder="true"]:hover { text-decoration: none; }
.placeholder-inline[data-placeholder="true"] {
  color: var(--text-muted);
  font-style: italic;
}

/* SKILLS */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.skill-group h4 {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent-green);
  text-transform: lowercase;
  letter-spacing: 0.03em;
  margin: 0 0 6px;
}
.skill-group p { margin: 0; color: var(--text); font-size: 14.5px; }

/* EXPERIENCE TIMELINE */
.timeline {
  border-left: 1px solid var(--border);
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.timeline-item { position: relative; }
.timeline-marker {
  position: absolute;
  left: -29px;
  top: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 0 3px var(--bg);
}
.timeline-content h3 {
  margin: 0;
  font-family: var(--mono);
  font-size: 15px;
  color: var(--text);
}
.timeline-org { margin: 2px 0 6px; color: var(--accent); font-size: 13px; font-family: var(--mono); }
.timeline-desc { margin: 0; color: var(--text-muted); font-size: 14px; }

/* CERTIFICATIONS */
.cert-list { display: flex; flex-direction: column; gap: 16px; }
.cert-item { display: flex; gap: 14px; align-items: flex-start; }
.cert-status {
  font-family: var(--mono);
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 2px;
}
.cert-earned { background: rgba(63,185,80,0.12); color: var(--accent-green); border: 1px solid rgba(63,185,80,0.35); }
.cert-progress { background: rgba(255,255,255,0.04); color: var(--text-muted); border: 1px solid var(--border); }
.cert-item h4 { margin: 0 0 4px; font-size: 14.5px; font-weight: 600; color: var(--text); }
.cert-note { margin: 0; color: var(--text-muted); font-size: 13px; font-family: var(--mono); }

/* WRITING */
.writing-placeholder {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--text-muted);
  font-size: 14px;
}
.writing-placeholder p { margin: 0; }

/* CONTACT / FOOTER */
.contact { border-bottom: none; padding-bottom: 64px; }
.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin-bottom: 24px;
}
.contact-grid a { font-family: var(--mono); font-size: 14px; }
.footer-note {
  color: var(--text-muted);
  font-size: 12px;
  font-family: var(--mono);
  margin: 0;
}

/* RESPONSIVE */
@media (min-width: 640px) {
  .skills-grid { grid-template-columns: 1fr 1fr; }
}
