/* ============================================================
   VARIABLES & RESET
   ============================================================ */
:root {
  --bg:        #0d1117;
  --bg-alt:    #161b22;
  --bg-card:   #1c2128;
  --border:    #30363d;
  --accent:    #58a6ff;
  --accent2:   #3fb950;
  --text:      #e6edf3;
  --text-muted:#8b949e;
  --font-sans: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius:    12px;
  --nav-h:     64px;
}

/* Light theme */
[data-theme="light"] {
  --bg:        #ffffff;
  --bg-alt:    #f6f8fa;
  --bg-card:   #ffffff;
  --border:    #d0d7de;
  --accent:    #0969da;
  --accent2:   #1a7f37;
  --text:      #1f2328;
  --text-muted:#656d76;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

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

/* ============================================================
   NAVIGATION
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: background 0.3s;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 24px;
  margin-left: 8px;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); text-decoration: none; }

.nav-cta {
  margin-left: auto;
  padding: 7px 18px;
  background: var(--accent);
  color: #000;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.85; text-decoration: none; }

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  transition: color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.theme-toggle:hover { color: var(--text); border-color: var(--accent); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun  { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  padding: calc(var(--nav-h) + 60px) 24px 80px;
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.hero-bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(88,166,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88,166,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: -1;
}

.hero-content { flex: 1; min-width: 0; }

.hero-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.hero-name {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text) 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 28px;
  line-height: 1.8;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-muted);
  background: var(--bg-card);
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 11px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: #000;
}
.btn-primary:hover { opacity: 0.85; text-decoration: none; }
.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* Terminal */
.hero-terminal {
  flex-shrink: 0;
  width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #1f2937;
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green  { background: #28c840; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 8px;
}

.terminal-body {
  padding: 20px;
  overflow-x: auto;
}

.terminal-body pre {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.8;
  white-space: pre;
}

/* Syntax colors */
.t-comment { color: #6e7681; }
.t-keyword  { color: #ff7b72; }
.t-class    { color: #79c0ff; }
.t-fn       { color: #d2a8ff; }
.t-str      { color: #a5d6ff; }
.t-module   { color: #ffa657; }
.t-num      { color: #79c0ff; }
.t-green    { color: var(--accent2); }

.t-cursor {
  display: inline-block;
  width: 2px;
  height: 0.9em;
  background: var(--accent2);
  vertical-align: text-bottom;
  margin-left: 1px;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Section entrance animations */
.section-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.section-animate.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section       { padding: 100px 24px; }
.section-alt   { background: var(--bg-alt); }

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
}

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats-strip {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 24px;
}
.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-number {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 640px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   SKILLS
   ============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.skill-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.skill-icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.skill-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text);
}

.skill-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skill-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.skill-name {
  font-size: 0.85rem;
  color: var(--text-primary);
}

.skill-level {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 20px;
  flex-shrink: 0;
}
.skill-level--expert   { background: rgba(88, 166, 255, 0.12); color: var(--accent); border: 1px solid rgba(88, 166, 255, 0.3); }
.skill-level--advanced { background: rgba(63, 185, 80, 0.12);  color: var(--accent2); border: 1px solid rgba(63, 185, 80, 0.3); }
.skill-level--familiar { background: rgba(139, 148, 158, 0.1); color: var(--text-muted); border: 1px solid rgba(139, 148, 158, 0.2); }

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.tag-cloud span {
  font-size: 0.75rem;
  padding: 4px 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-muted);
}

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 52px;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -39px;
  top: 6px;
  width: 14px; height: 14px;
  background: var(--accent);
  border: 2px solid var(--bg-alt);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(88,166,255,0.4);
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s;
}
.timeline-content:hover { border-color: var(--accent); }

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.timeline-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  background: rgba(63,185,80,0.15);
  color: var(--accent2);
  border: 1px solid rgba(63,185,80,0.3);
  border-radius: 20px;
}
.timeline-badge--gold {
  background: rgba(218,165,32,0.15);
  color: #d4a017;
  border-color: rgba(218,165,32,0.35);
}

.timeline-role {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.timeline-company {
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 16px;
}

.timeline-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.timeline-bullets li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
}
.timeline-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
}
.timeline-bullets strong { color: var(--text); }

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.timeline-tags span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 3px 10px;
  background: rgba(88,166,255,0.08);
  border: 1px solid rgba(88,166,255,0.2);
  color: var(--accent);
  border-radius: 4px;
}

/* ============================================================
   TECH TIMELINE
   ============================================================ */
.tech-timeline {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.tech-era {
  flex: 1;
  min-width: 160px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s;
}
.tech-era:hover { border-color: var(--accent); }
.tech-era-year {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
}
.tech-era-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.tech-era-arrow {
  font-size: 1.5rem;
  color: var(--border);
  align-self: center;
  flex-shrink: 0;
  padding-bottom: 40px;
}

@media (max-width: 768px) {
  .tech-timeline { flex-direction: column; }
  .tech-era-arrow { transform: rotate(90deg); align-self: flex-start; padding-bottom: 0; padding-left: 20px; }
}

/* ============================================================
   OPEN SOURCE
   ============================================================ */
.oss-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.oss-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s, transform 0.2s;
  color: var(--text);
}
.oss-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  text-decoration: none;
}

.oss-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.oss-icon { font-size: 1.4rem; }

.oss-lang {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-muted);
}

.oss-card h3 { font-size: 1rem; font-weight: 600; }
.oss-card p  { font-size: 0.875rem; color: var(--text-muted); flex: 1; }
.oss-link    { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text);
  transition: border-color 0.2s, transform 0.2s;
}
.contact-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  text-decoration: none;
}
.contact-card--email { cursor: default; }
.contact-card--email:hover { transform: none; border-color: var(--border); }
.contact-card-link {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
  color: var(--text);
}
.contact-card-link:hover { text-decoration: none; }
.contact-card--email:has(.contact-card-link:hover) { border-color: var(--accent); transform: translateY(-2px); }

.copy-btn {
  background: none;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 0.2s, border-color 0.2s;
}
.copy-btn:hover { color: var(--accent); border-color: var(--border); }
.copy-btn svg { width: 15px; height: 15px; }
.copy-btn .check-icon { display: none; color: var(--accent2); }
.copy-btn.copied .copy-icon { display: none; }
.copy-btn.copied .check-icon { display: block; }

.contact-icon { width: 1.75rem; height: 1.75rem; flex-shrink: 0; color: var(--accent); }
.contact-icon svg { width: 100%; height: 100%; }
.contact-info { display: flex; flex-direction: column; min-width: 0; }
.contact-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.contact-value { font-size: 0.875rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ============================================================
   HOMELAB
   ============================================================ */
.homelab-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.homelab-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s;
}
.homelab-card:hover { border-color: var(--accent); }
.homelab-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.homelab-icon { font-size: 1.5rem; }
.homelab-card-header h3 { font-size: 1rem; font-weight: 600; }

@media (max-width: 640px) {
  .homelab-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   EDUCATION
   ============================================================ */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: border-color 0.2s;
}
.edu-card:hover { border-color: var(--accent); }

.edu-icon { font-size: 1.75rem; flex-shrink: 0; line-height: 1; }

.edu-info { display: flex; flex-direction: column; gap: 4px; }
.edu-info h3 { font-size: 0.95rem; font-weight: 600; color: var(--text); }
.edu-place { font-size: 0.85rem; color: var(--accent); }
.edu-date { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

/* ============================================================
   CLI WIDGET
   ============================================================ */
.cli-trigger {
  position: fixed;
  bottom: 32px;
  left: 32px;
  width: 42px;
  height: 42px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
  z-index: 99;
}
.cli-trigger svg { width: 18px; height: 18px; }
.cli-trigger:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.cli-widget {
  position: fixed;
  bottom: 84px;
  left: 32px;
  width: 520px;
  max-width: calc(100vw - 48px);
  background: #0d1117;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  z-index: 200;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.2s, transform 0.2s;
}
.cli-widget.open { opacity: 1; pointer-events: auto; transform: translateY(0); }

.cli-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.cli-bar .cli-dots { display: flex; gap: 6px; }
.cli-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  flex: 1;
  text-align: center;
}
.cli-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  transition: color 0.2s;
}
.cli-close:hover { color: var(--text); }

.cli-output {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.6;
  padding: 14px 16px;
  max-height: 280px;
  overflow-y: auto;
  flex: 1;
  color: #e6edf3;
}
.cli-output .cli-line-cmd { color: #58a6ff; }
.cli-output .cli-line-out { color: #e6edf3; white-space: pre-wrap; }
.cli-output .cli-line-err { color: #f85149; }
.cli-output .cli-line-dim { color: #8b949e; }

.cli-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.cli-prompt {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #3fb950;
  flex-shrink: 0;
}
.cli-input {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: none;
  border: none;
  outline: none;
  color: #e6edf3;
  flex: 1;
  caret-color: #3fb950;
}

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 42px;
  height: 42px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, border-color 0.2s, color 0.2s, transform 0.2s;
  z-index: 99;
}
.scroll-top svg { width: 18px; height: 18px; }
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.footer a { color: var(--text-muted); }
.footer a:hover { color: var(--accent); }
.footer-sub { font-size: 0.75rem; margin-top: 6px; opacity: 0.6; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    gap: 40px;
    padding-top: calc(var(--nav-h) + 40px);
  }
  .hero-terminal { width: 100%; max-width: 480px; }
  .hero-subtitle { max-width: 100%; }
}

@media (max-width: 640px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    gap: 16px;
    z-index: 99;
  }

  .section { padding: 64px 16px; }
  .skills-grid, .oss-grid, .contact-grid { grid-template-columns: 1fr; }
  .timeline { padding-left: 24px; }
  .timeline-dot { left: -31px; }
}
