:root {
  --bg: #0a0e1a;
  --bg-alt: #0d1320;
  --surface: #10151f;
  --surface-2: #141b28;
  --border: #1c2433;
  --border-soft: #171e2c;
  --text: #e6edf5;
  --text-muted: #8b98ab;
  --text-faint: #4a5568;
  --accent: #2dd4bf;
  --accent-dim: #1a8f80;
  --danger: #ff6b57;
  --ok: #4ade80;
  --warn: #f5c451;
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 3px;
  --maxw: 1180px;
  --header-h: 68px;
}

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

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image:
    linear-gradient(rgba(45, 212, 191, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 212, 191, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.eyebrow::before { content: '$'; color: var(--danger); }

.section-title {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 38px);
  color: var(--text);
  letter-spacing: -0.01em;
}

.section-sub {
  color: var(--text-muted);
  max-width: 640px;
  margin-top: 12px;
  font-size: 15.5px;
}

.section-head { margin-bottom: 52px; }

section { padding: 108px 0; border-bottom: 1px solid var(--border-soft); position: relative; }

.tag {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  background: var(--surface);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 13px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #06110f;
  border-color: var(--accent);
  font-weight: 700;
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(45, 212, 191, 0.25); }

.btn-ghost { color: var(--text); }

.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ---------- Header / Nav ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 500;
  background: rgba(10, 14, 26, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(2px, 0.4vw, 6px);
  font-family: var(--font-mono);
  font-size: clamp(12px, 1vw, 13.5px);
}

.nav-links li { flex-shrink: 0; }

.nav-links a {
  display: block;
  padding: 8px clamp(8px, 1vw, 13px);
  color: var(--text-muted);
  border-radius: var(--radius);
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover { color: var(--text); background: var(--surface); }

.nav-links a.active { color: var(--accent); background: var(--surface); }

.nav-links a.active::before { content: '> '; color: var(--danger); }

.nav-terminal-link { color: var(--accent) !important; border: 1px solid var(--border); flex-shrink: 0; }
.nav-terminal-link:hover { border-color: var(--accent-dim); background: var(--surface); }

/* Certs dropdown */
.nav-dropdown { position: relative; }

.nav-dropdown-toggle { display: flex !important; align-items: center; gap: 5px; }

.nav-caret { font-size: 9px; transition: transform 0.2s ease; }

.nav-dropdown:hover .nav-caret,
.nav-dropdown:focus-within .nav-caret { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 170px;
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  z-index: 10;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a { padding: 9px 12px; font-size: 13px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 10px;
  color: var(--text);
}

.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); margin: 4px 0; }

/* ---------- Hero ---------- */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  border-bottom: 1px solid var(--border-soft);
  overflow: hidden;
  position: relative;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.hero-role {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}

.hero-role .cursor { display: inline-block; width: 8px; height: 16px; background: var(--danger); margin-left: 4px; animation: blink 1s step-end infinite; vertical-align: -2px; }

@keyframes blink { 50% { opacity: 0; } }

.hero-name {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 8px;
}

.hero-headline {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.hero-headline span { color: var(--accent); font-weight: 700; }

.hero-rotator {
  font-family: var(--font-mono);
  font-size: clamp(16px, 1.9vw, 19px);
  color: var(--text-muted);
  margin-bottom: 14px;
  min-height: 1.4em;
}

.hero-rotator .rotator-text { color: var(--accent); font-weight: 700; }

.rotator-cursor { width: 7px; height: 15px; margin-left: 2px; }

.hero p.lead {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 540px;
  margin-bottom: 34px;
}

.hero-ctas { display: flex; gap: 14px; margin-bottom: 46px; flex-wrap: wrap; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 34px;
}

.hero-stats .num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 26px;
  color: var(--text);
}

.hero-stats .label {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

.terminal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.terminal-bar .dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-bar .dot.r { background: #ff5f56; }
.terminal-bar .dot.y { background: #ffbd2e; }
.terminal-bar .dot.g { background: #27c93f; }
.terminal-bar .title { margin-left: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }

.terminal-body {
  padding: 20px 20px 26px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  min-height: 300px;
  color: var(--text-muted);
}

.terminal-body .ln { margin-bottom: 7px; white-space: pre-wrap; }
.terminal-body .prompt { color: var(--accent); }
.terminal-body .key { color: var(--text-faint); }
.terminal-body .val { color: var(--text); }
.terminal-body .ok { color: var(--ok); }
.terminal-body .type-cursor { display: inline-block; width: 7px; height: 14px; background: var(--accent); vertical-align: -2px; animation: blink 0.9s step-end infinite; }

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 64px;
  align-items: start;
}

.about-photo {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.about-photo-cap {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-faint);
  padding: 10px 14px;
  border-top: 1px solid var(--border-soft);
}

.about-text p { color: var(--text-muted); margin-bottom: 18px; max-width: 640px; }

.about-facts {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 34px;
  max-width: 640px;
}

.about-facts div { border-bottom: 1px dashed var(--border); padding-bottom: 10px; }
.about-facts .k { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; }
.about-facts .v { margin-top: 4px; font-size: 14.5px; }

/* ---------- Skills ---------- */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px 24px 22px;
}

.skill-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-faint);
}

.skill-card h3 { font-size: 16px; font-weight: 600; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 6px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.skill-card:hover .chip { border-color: var(--border); }

.chip:hover { color: var(--accent); border-color: var(--accent-dim); }

/* ---------- What I Do ---------- */

.whatido-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
}

.whatido-grid-strengths { margin-top: 20px; }

.whatido-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px 20px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.whatido-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-dim);
  box-shadow: 0 18px 40px rgba(0,0,0,0.4);
}

.whatido-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--accent);
  font-size: 17px;
  margin-bottom: 14px;
}

.whatido-card h3 { font-size: 15.5px; margin-bottom: 8px; }
.whatido-card p { color: var(--text-muted); font-size: 13.5px; }

.cta-banner {
  margin-top: 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 26px 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cta-banner h3 { font-size: 17px; margin-bottom: 6px; }
.cta-banner p { color: var(--text-muted); font-size: 14px; }

/* ---------- Problem Solving ---------- */

.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.platform-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.platform-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-dim);
  box-shadow: 0 18px 40px rgba(0,0,0,0.4);
  color: var(--accent);
}

.platform-logo {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--accent);
  font-size: 21px;
}

.platform-card h3 { font-size: 14.5px; font-weight: 600; }

/* ---------- Experience ---------- */

.timeline { position: relative; padding-left: 34px; }

.timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(var(--border), var(--border) 90%, transparent);
}

.timeline-item { position: relative; padding-bottom: 46px; }
.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -34px;
  top: 5px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}

.timeline-item.current .timeline-dot { background: var(--accent); box-shadow: 0 0 0 4px rgba(45,212,191,0.15); }

.timeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px 26px;
}

.timeline-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.timeline-role { font-size: 17px; font-weight: 700; }
.timeline-org { color: var(--accent); font-family: var(--font-mono); font-size: 13.5px; margin-top: 2px; }
.timeline-meta { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-faint); text-align: right; white-space: nowrap; }

.timeline-list { margin-top: 14px; }
.timeline-list li { color: var(--text-muted); font-size: 14.5px; padding-left: 18px; position: relative; margin-bottom: 8px; }
.timeline-list li::before { content: '›'; position: absolute; left: 0; color: var(--danger); font-weight: 700; }

/* ---------- Certificates ---------- */

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

.cert-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  text-align: left;
  color: inherit;
}

.cert-card:hover, .cert-card:focus-visible {
  transform: translateY(-6px);
  border-color: var(--accent-dim);
  box-shadow: 0 18px 40px rgba(0,0,0,0.4);
}

.cert-thumb {
  aspect-ratio: 800 / 560;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  display: block;
  width: 100%;
  padding: 0;
  border-left: none;
  border-right: none;
  border-top: none;
  border-radius: 0;
  cursor: pointer;
}
.cert-thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.cert-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.cert-card:hover .cert-thumb img { transform: scale(1.06); }

.cert-info { padding: 16px 18px 18px; }
.cert-info .code { font-family: var(--font-mono); font-size: 11.5px; color: var(--danger); letter-spacing: 0.05em; }
.cert-info h3 { font-size: 15px; margin: 6px 0 4px; }
.cert-info .issuer { font-size: 12.5px; color: var(--text-muted); }
.cert-info .body { font-size: 13px; color: var(--text-muted); line-height: 1.55; margin-top: 10px; }
.cert-links { display: flex; gap: 8px; margin-top: 14px; }

.cert-modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.cert-modal.open { display: flex; }

.cert-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 13, 0.86);
  backdrop-filter: blur(3px);
}

.cert-modal-panel {
  position: relative;
  width: 68vw;
  max-width: 920px;
  height: 68vh;
  max-height: 720px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  animation: modalIn 0.22s ease;
}

@keyframes modalIn { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }

.cert-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.cert-modal-head span { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-muted); }

.cert-modal-close {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 30px; height: 30px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
}

.cert-modal-close:hover { color: var(--danger); border-color: var(--danger); }

.cert-modal-body { flex: 1; overflow: auto; display: flex; align-items: center; justify-content: center; background: var(--bg-alt); }
.cert-modal-body img { width: 100%; height: 100%; object-fit: contain; }

@media (max-width: 680px) {
  .cert-modal-panel { width: 92vw; height: 60vh; }
}

/* ---------- Projects ---------- */

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-severity {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 20px;
  width: fit-content;
  margin-bottom: 16px;
}

.sev-critical { background: rgba(255,107,87,0.12); color: var(--danger); border: 1px solid rgba(255,107,87,0.35); }
.sev-high { background: rgba(245,196,81,0.12); color: var(--warn); border: 1px solid rgba(245,196,81,0.35); }
.sev-medium { background: rgba(45,212,191,0.12); color: var(--accent); border: 1px solid rgba(45,212,191,0.35); }

.project-card h3 { font-size: 18px; margin-bottom: 10px; }
.project-card p { color: var(--text-muted); font-size: 14.5px; margin-bottom: 18px; flex: 1; }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Achievements ---------- */

.ach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

.ach-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 26px;
  position: relative;
  border-left: 3px solid var(--accent);
}

.ach-rank { font-family: var(--font-mono); font-size: 30px; color: var(--accent); font-weight: 700; line-height: 1; margin-bottom: 14px; }
.ach-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.ach-card p { color: var(--text-muted); font-size: 14px; }

/* ---------- Workshops ---------- */

.workshop-subhead {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 36px 0 16px;
}

.workshop-grid + .workshop-subhead { margin-top: 44px; }

.workshop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.workshop-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.workshop-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-dim);
  box-shadow: 0 18px 40px rgba(0,0,0,0.4);
}

.workshop-thumb {
  aspect-ratio: 240 / 240;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  cursor: pointer;
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border-left: none;
  border-right: none;
  border-top: none;
  border-radius: 0;
}
.workshop-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.workshop-card:hover .workshop-thumb img,
.workshop-thumb:hover img,
.workshop-thumb:focus-visible img { transform: scale(1.08); }
.workshop-thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.workshop-info { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }

.workshop-type {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 20px;
  width: fit-content;
  margin-bottom: 12px;
}

.type-organised { background: rgba(45,212,191,0.12); color: var(--accent); border: 1px solid rgba(45,212,191,0.35); }
.type-attended { background: rgba(245,196,81,0.12); color: var(--warn); border: 1px solid rgba(245,196,81,0.35); }
.type-guest { background: rgba(74,222,128,0.12); color: var(--ok); border: 1px solid rgba(74,222,128,0.35); }

.workshop-info h3 { font-size: 15.5px; margin-bottom: 6px; }

.workshop-loc {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.workshop-loc::before { content: '📍'; font-size: 11px; }

.workshop-info p { color: var(--text-muted); font-size: 13.5px; margin-bottom: 16px; flex: 1; }

.workshop-links { display: flex; gap: 8px; }

.icon-btn-sm {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  background: var(--bg-alt);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.icon-btn-sm:hover, .icon-btn-sm:focus-visible {
  color: var(--accent);
  border-color: var(--accent-dim);
  transform: translateY(-2px);
}

/* ---------- Contact ---------- */

.contact-simple {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  gap: 20px;
}

.contact-pill {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 26px;
  flex: 1;
  min-width: 260px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-pill:hover, .contact-pill:focus-visible {
  transform: translateY(-4px);
  border-color: var(--accent-dim);
  box-shadow: 0 18px 40px rgba(0,0,0,0.4);
}

.contact-pill-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--accent);
  background: var(--bg-alt);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
}

.contact-pill-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.contact-pill-text .k { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; }
.contact-pill-text .v { font-size: 15.5px; color: var(--text); overflow-wrap: anywhere; }
.contact-pill:hover .contact-pill-text .v { color: var(--accent); }

@media (max-width: 620px) {
  .contact-simple { flex-direction: column; }
}

/* ---------- Footer ---------- */

footer {
  padding: 40px 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-faint);
}

footer a:hover { color: var(--accent); }

.footer-status { margin-bottom: 10px; color: var(--text-muted); }
.footer-status .ok { color: var(--ok); }

/* ---------- Scroll reveal ---------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .terminal { max-width: 560px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 300px; }
}

@media (max-width: 760px) {
  section { padding: 76px 0; }
  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border-soft);
    flex-direction: column;
    padding: 12px;
    gap: 2px;
    transform: translateY(-130%);
    transition: transform 0.25s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 12px 14px; white-space: normal; }
  .nav-toggle { display: block; }
  .nav-links li { flex-shrink: 1; width: 100%; }
  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 0 14px;
    display: none;
  }
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu,
  .nav-dropdown.open .nav-dropdown-menu { display: flex; }
  .hero-stats { grid-template-columns: repeat(3, auto); gap: 20px; }
  .hero-stats .num { font-size: 21px; }
}

/* ---------- Extra-small screens ---------- */

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .nav { padding: 0 14px; }
  .brand { font-size: 13.5px; }
  .brand span.brand-dot { flex-shrink: 0; }

  section { padding: 60px 0; }
  .section-head { margin-bottom: 36px; }

  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .hero-stats .num { font-size: 18px; }
  .hero-stats .label { font-size: 10.5px; }

  .terminal-body { font-size: 12.5px; min-height: 220px; padding: 16px 14px 20px; }

  .about-facts { grid-template-columns: 1fr; }
  .about-photo { max-width: 220px; margin: 0 auto; }

  .skills-grid, .whatido-grid, .platform-grid,
  .project-grid, .ach-grid, .workshop-grid, .cert-grid {
    grid-template-columns: 1fr;
  }

  .timeline { padding-left: 26px; }
  .timeline-dot { left: -26px; }
  .timeline-top { flex-direction: column; align-items: flex-start; }
  .timeline-meta { text-align: left; }

  .cta-banner { flex-direction: column; align-items: flex-start; text-align: left; }
  .cta-banner .btn { align-self: stretch; justify-content: center; }

  .contact-pill { min-width: 100%; }

  .social-icon { width: 46px; height: 46px; font-size: 16.5px; }

  .cert-modal-panel { width: 94vw; height: 68vh; }
}

.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 auto;
}

.social-icon {
  width: 52px;
  height: 52px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--border);
  border-radius: 8px;

  background: var(--card);
  color: var(--text);

  text-decoration: none;
  font-size: 19px;

  transition: all 0.25s ease;
}

.social-icon:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 0 18px rgba(0, 255, 180, 0.15);
}