/* ── Reset & Tokens ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #0a0a0a;
  --surface:  #111111;
  --surface2: #1a1a1a;
  --border:   #222222;
  --accent:   #00ff88;
  --cyan:     #00d4ff;
  --text:     #e0e0e0;
  --muted:    #666666;
  --font-mono: 'JetBrains Mono', monospace;
  --font-body: 'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { display: block; max-width: 100%; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-mono);
  font-weight: 700;
  line-height: 1.2;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-label::before { content: '// '; }

/* ── Layout ── */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

main {
  flex: 1;
  padding: 6rem 0 4rem;
}

section { margin-bottom: 4rem; }

/* ── Nav ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.nav-logo:hover { text-decoration: none; opacity: 0.8; }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent); text-decoration: none; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: all 0.2s;
}

/* Mobile nav overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 56px 0 0 0;
  background: var(--bg);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.nav-overlay.open { display: flex; }
.nav-overlay a {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--text);
}
.nav-overlay a.active { color: var(--accent); }

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.btn:hover {
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
}

.btn-secondary {
  border-color: var(--border);
  color: var(--muted);
}
.btn-secondary:hover {
  background: var(--surface2);
  color: var(--text);
}

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.5rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.card:hover {
  border-color: #333;
  box-shadow: 0 0 20px rgba(0,255,136,0.05);
}

/* ── Chips / Tags ── */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 4px;
}
.chip-accent {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Divider ── */
hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}
footer a { color: var(--muted); margin: 0 0.5rem; }
footer a:hover { color: var(--accent); text-decoration: none; }

/* ── Cursor blink ── */
.cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent);
  margin-left: 4px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ── Page title ── */
.page-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.5rem;
}
.page-subtitle {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 3rem;
}

/* ── Timeline ── */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: var(--border);
}
.timeline-item { position: relative; margin-bottom: 2rem; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.4rem;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateX(-3px);
}
.timeline-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.timeline-title {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.timeline-role {
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.timeline-item ul {
  list-style: none;
  padding: 0;
}
.timeline-item ul li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 0.4rem;
  line-height: 1.5;
}
.timeline-item ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ── Project grid ── */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.project-card .project-name {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.project-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}
.project-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ── Stats strip ── */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--border);
  margin: 3rem 0;
}
.stat-box {
  background: var(--surface);
  padding: 1.5rem 1rem;
  text-align: center;
}
.stat-value {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
}
.stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* ── Why hire cards ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.why-card .why-icon {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.why-card h3 {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.why-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Skills groups ── */
.skill-group { margin-bottom: 2rem; }
.skill-group-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Contact ── */
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
}
.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  transition: border-color 0.2s, color 0.2s;
}
.contact-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}
.contact-link-label { color: var(--muted); font-size: 0.72rem; display: block; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }

  main { padding: 5rem 0 3rem; }
  .page-title { font-size: 2rem; }
}
