/* ─── TOKENS ─────────────────────────────────────────────── */
[data-theme="dark"] {
  --bg:       #0a0a0a;
  --bg2:      #111111;
  --bg3:      #1a1a1a;
  --border:   #222222;
  --border2:  #2e2e2e;
  --ink:      #ededed;
  --ink2:     #888888;
  --ink3:     #444444;
  --accent:   #e8c97a;
  --accent-d: #b8922a;
  --tag:      #1c1c1c;
  --nav-blur: rgba(10,10,10,0.85);
  --card-bg:  #111111;
  --card-hover: #161616;
  --shadow:   0 1px 3px rgba(0,0,0,0.5), 0 8px 24px rgba(0,0,0,0.3);
}
[data-theme="light"] {
  --bg:       #fafaf8;
  --bg2:      #f4f4f1;
  --bg3:      #eeede9;
  --border:   #e2e1dc;
  --border2:  #d0cfc9;
  --ink:      #1a1a18;
  --ink2:     #6b6b68;
  --ink3:     #aaa9a4;
  --accent:   #a0620a;
  --accent-d: #7a4a06;
  --tag:      #eeecea;
  --nav-blur: rgba(250,250,248,0.88);
  --card-bg:  #f4f4f1;
  --card-hover: #eeecea;
  --shadow:   0 1px 3px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Geist', 'Geist Fallback', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Color transitions */
body, nav, .card, .skill-pill, .cert-item, .exp-item, a, button, footer {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.25s ease;
}

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }

/* ─── NAV ──────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: auto;
  padding: 0.6rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--nav-blur);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.nav-left { display: flex; align-items: flex-start; gap: 0.75rem; }
.nav-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  object-fit: cover; border: 1.5px solid var(--border2);
  background: var(--bg3);
  margin-top: 0.15rem;
}
.nav-info { display: flex; flex-direction: column; }
.nav-name {
  font-size: 0.8rem; font-weight: 600; color: var(--ink);
  letter-spacing: -0.01em;
}
.nav-status {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.65rem; color: var(--ink2); letter-spacing: 0.02em;
}
.status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 2px rgba(74,222,128,0.2);
  animation: pulse 2.5s ease infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(74,222,128,0.2); }
  50%       { box-shadow: 0 0 0 5px rgba(74,222,128,0.0); }
}
.nav-center { display: flex; gap: 0; }
.nav-center a {
  text-decoration: none; color: var(--ink2); font-size: 0.75rem;
  padding: 0.35rem 0.85rem; border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  letter-spacing: -0.01em;
}
.nav-center a:hover { color: var(--ink); background: var(--bg3); }
.nav-right { display: flex; align-items: center; gap: 0.6rem; }

/* Language switch */
.lang-switch { display: flex; border: 1px solid var(--border); border-radius: 7px; overflow: hidden; }
.lang-btn {
  padding: 0.28rem 0.65rem; font-family: 'Geist Mono', monospace;
  font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase;
  background: transparent; border: none; cursor: pointer;
  color: var(--ink2); transition: all 0.2s;
}
.lang-btn.active { background: var(--accent); color: #0a0a0a; font-weight: 600; }

/* Theme toggle */
.theme-btn {
  width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--bg2);
  cursor: pointer; color: var(--ink2);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.theme-btn:hover { border-color: var(--border2); color: var(--ink); background: var(--bg3); }
.theme-btn svg { width: 14px; height: 14px; }
.icon-sun { display: none; }

/* CTA in nav */
.nav-cta {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.38rem 0.9rem; background: var(--ink); color: var(--bg);
  text-decoration: none; font-size: 0.72rem; font-weight: 500;
  border-radius: 8px; letter-spacing: -0.01em; transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.8; }

/* Burger */
.burger {
  display: none; flex-direction: column; justify-content: center;
  align-items: center; width: 36px; height: 36px; background: none;
  border: 1px solid var(--border); border-radius: 8px; cursor: pointer; gap: 4px;
}
.burger-line {
  display: block; width: 16px; height: 1.5px; background: var(--ink2);
  transform-origin: center;
  transition: transform 0.3s ease, opacity 0.2s, width 0.3s;
}
.burger.open .burger-line:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger.open .burger-line:nth-child(2) { opacity: 0; width: 0; }
.burger.open .burger-line:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 99;
  background: var(--bg); flex-direction: column;
  padding: 80px 2rem 3rem;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
  overflow-y: auto;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
body.menu-open { overflow: hidden; }
.mobile-nav-links { display: flex; flex-direction: column; gap: 0; flex: 1; }
.mobile-nav-links a {
  text-decoration: none; color: var(--ink);
  font-size: clamp(1.8rem, 7vw, 3rem); font-weight: 600;
  letter-spacing: -0.03em; line-height: 1;
  padding: 0.8rem 0; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.35s, transform 0.35s, color 0.2s;
}
.mobile-menu.open .mobile-nav-links a { opacity: 1; transform: none; }
.mobile-nav-links a:nth-child(1) { transition-delay: 0.04s; }
.mobile-nav-links a:nth-child(2) { transition-delay: 0.08s; }
.mobile-nav-links a:nth-child(3) { transition-delay: 0.12s; }
.mobile-nav-links a:nth-child(4) { transition-delay: 0.16s; }
.mobile-nav-links a:nth-child(5) { transition-delay: 0.20s; }
.mobile-nav-links a:hover { color: var(--accent); }
.mobile-num { font-family: 'Geist Mono', monospace; font-size: 0.62rem; color: var(--ink3); font-weight: 400; }
.mobile-footer { padding-top: 2rem; display: flex; gap: 1.5rem; flex-wrap: wrap; opacity: 0; transition: opacity 0.35s 0.25s; }
.mobile-menu.open .mobile-footer { opacity: 1; }
.mobile-footer a { font-size: 0.7rem; color: var(--ink2); text-decoration: none; letter-spacing: 0.04em; }

/* ─── PAGE ──────────────────────────────────────────────────── */
.page { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }

/* ─── HERO ──────────────────────────────────────────────────── */
#hero {
  padding: 100px 0;
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}
.hero-available {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--ink2);
}
.hero-heading {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  color: var(--ink);
}
.hero-heading em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.hero-sub {
  font-size: 1rem;
  color: var(--ink2);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 2.5rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.hero-visual {
  display: block;
}
.hero-avatar {
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
  border: 2.5px solid var(--border2);
  background: var(--bg3);
  aspect-ratio: 1/1;
}
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 1.4rem; font-size: 0.8rem; font-weight: 500;
  text-decoration: none; border-radius: 10px;
  letter-spacing: -0.01em; transition: all 0.2s;
}
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { opacity: 0.85; }
.btn-outline { border: 1px solid var(--border2); color: var(--ink2); background: transparent; }
.btn-outline:hover { border-color: var(--ink2); color: var(--ink); background: var(--bg2); }

/* Hero stats */
.hero-stats {
  display: flex; gap: 0; margin-top: 3rem;
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
}
.stat {
  flex: 1; padding: 1.2rem 1.4rem; border-right: 1px solid var(--border);
  background: var(--bg2);
}
.stat:last-child { border-right: none; }
.stat-n {
  font-size: 1.7rem; font-weight: 700; color: var(--ink);
  letter-spacing: -0.04em; line-height: 1;
}
.stat-n span { color: var(--accent); }
.stat-l { font-size: 0.65rem; color: var(--ink2); margin-top: 0.3rem; letter-spacing: 0.02em; }

/* ─── SECTION ───────────────────────────────────────────────── */
.section { padding: 48px 0; border-bottom: 1px solid var(--border); }
.section:last-of-type { border-bottom: none; }
.section-label {
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink3); margin-bottom: 0.5rem;
  font-family: 'Geist Mono', monospace;
}
.section-title {
  font-size: 1.5rem; font-weight: 700; letter-spacing: -0.03em;
  color: var(--ink); margin-bottom: 2.5rem;
}
.section-header-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 2.5rem;
}
.section-header-row .section-title { margin-bottom: 0; }
.view-all {
  font-size: 0.72rem; color: var(--ink2); text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.3rem;
  transition: color 0.2s; letter-spacing: -0.01em;
}
.view-all:hover { color: var(--ink); }

.section-footer {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  margin-top: 1.5rem;
}
.section-footer .view-all {
  font-size: 0.8rem;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(232,201,122,0.05);
  display: inline-flex;
  transition: all 0.2s;
}
.section-footer .view-all:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(232,201,122,0.1);
}

/* ─── HOME MENU ─────────────────────────────────────────────── */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}
.menu-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.menu-card:hover {
  transform: translateY(-4px);
  border-color: var(--border2);
  background: var(--card-hover);
  box-shadow: var(--shadow);
}
.menu-card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg3);
  border-radius: 10px;
  color: var(--accent);
  margin-bottom: 1.5rem;
  transition: all 0.3s;
}
.menu-card:hover .menu-card-icon {
  background: var(--accent);
  color: var(--bg);
}
.menu-card-icon svg {
  width: 20px;
  height: 20px;
}
.menu-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.menu-card p {
  font-size: 0.85rem;
  color: var(--ink2);
  line-height: 1.5;
  margin-bottom: 1rem;
}
.menu-card-arrow {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  font-size: 1.2rem;
  color: var(--ink3);
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s;
}
.menu-card:hover .menu-card-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--accent);
}

/* ─── PAGE HEADER ───────────────────────────────────────────── */
.page-header {
  padding: 120px 0 60px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--ink3);
  margin-bottom: 1.5rem;
  font-family: 'Geist Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.breadcrumb a {
  color: var(--ink3);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover {
  color: var(--accent);
}
.breadcrumb span {
  color: var(--border2);
}
.page-title {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1.1;
}
.page-title span {
  color: var(--accent);
}
.page-subtitle {
  font-size: 1.1rem;
  color: var(--ink2);
  margin-top: 1rem;
  max-width: 600px;
  line-height: 1.6;
}

/* ─── WORK / EXPERIENCE ─────────────────────────────────────── */
.work-list { display: flex; flex-direction: column; gap: 0; }
.work-item {
  display: flex; gap: 1.5rem; padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.2s;
}
.work-item:first-child { border-top: 1px solid var(--border); }
.work-item:hover { padding-left: 0.5rem; }
.work-logo {
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg3);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 0.65rem; font-weight: 700;
  color: var(--ink2); font-family: 'Geist Mono', monospace;
  letter-spacing: 0.05em; overflow: hidden;
}
.work-logo img { width: 100%; height: 100%; object-fit: cover; }
.work-body { flex: 1; }
.work-top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.work-role { font-size: 0.88rem; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.work-period { font-family: 'Geist Mono', monospace; font-size: 0.65rem; color: var(--ink3); flex-shrink: 0; }
.work-company { font-size: 0.75rem; color: var(--ink2); margin-bottom: 0.5rem; }
.work-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.6rem; padding: 0.18rem 0.55rem; border-radius: 100px;
  background: rgba(74,222,128,0.1); color: #4ade80; border: 1px solid rgba(74,222,128,0.2);
  margin-left: 0.5rem; font-weight: 500;
}
.work-bullets { list-style: none; display: flex; flex-direction: column; gap: 0.25rem; margin: 0.5rem 0 0.75rem; }
.work-bullets li { font-size: 0.78rem; color: var(--ink2); padding-left: 1rem; position: relative; line-height: 1.6; }
.work-bullets li::before { content: '—'; position: absolute; left: 0; color: var(--ink3); font-size: 0.7rem; }
.chips { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.5rem; }
.chip {
  font-size: 0.62rem; padding: 0.22rem 0.6rem; border-radius: 100px;
  background: var(--tag); border: 1px solid var(--border);
  color: var(--ink2); letter-spacing: 0.02em;
}

/* ─── PROJECTS ──────────────────────────────────────────────── */
.projects-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.proj-card {
  background: var(--card-bg); display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  transition: background 0.2s;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.proj-card:hover { background: var(--card-hover); }

.proj-visual {
  width: 100%; aspect-ratio: 16/12;
  overflow: hidden; position: relative;
  border-bottom: 1px solid var(--border);
}

/* Nexus — code terminal */
.nexus-bg {
  width: 100%; height: 100%;
  background: #0d1117;
  display: flex; flex-direction: column;
  padding: 1rem 1.25rem; gap: 0;
  font-family: 'Geist Mono', monospace;
}
.term-bar {
  display: flex; gap: 5px; align-items: center;
  margin-bottom: 0.75rem;
}
.term-dot { width: 8px; height: 8px; border-radius: 50%; }
.term-dot.r { background: #ff5f56; }
.term-dot.y { background: #ffbd2e; }
.term-dot.g { background: #27c93f; }
.term-line { font-size: 0.62rem; line-height: 1.65; white-space: nowrap; overflow: hidden; }
.t-cm { color: #6e7681; }
.t-kw { color: #ff7b72; }
.t-fn { color: #d2a8ff; }
.t-st { color: #a5d6ff; }
.t-vr { color: #ffa657; }
.t-op { color: #79c0ff; }

/* SquareCraft — game board */
.square-bg {
  width: 100%; height: 100%;
  background: linear-gradient(160deg, #0a0014 0%, #14002e 100%);
  display: flex; align-items: center; justify-content: center; gap: 3rem;
}
.sg-board { display: grid; grid-template-columns: repeat(6,1fr); gap: 4px; }
.sg-cell {
  width: 20px; height: 20px; border-radius: 3px;
  border: 1px solid rgba(232,201,122,0.15);
}
.sg-cell.a { background: rgba(232,201,122,0.75); box-shadow: 0 0 8px rgba(232,201,122,0.35); }
.sg-cell.b { background: rgba(99,179,237,0.55); }
.sg-cell.h { background: rgba(232,201,122,0.18); }
.sg-score { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.sg-score-n { font-size: 2rem; font-weight: 700; line-height: 1; }
.sg-score-l { font-size: 0.55rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.3); font-family: 'Geist Mono', monospace; }
.sg-p1 { color: #e8c97a; }
.sg-p2 { color: #63b3ed; }

.haiya-bg {
  width: 100%;
  height: 100%;
  background: #0d1117;
  position: relative;
}
.haiya-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.38) 100%);
}
.haiya-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.proj-body { padding: 1.5rem; }
.proj-kind { font-family: 'Geist Mono', monospace; font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink3); margin-bottom: 0.5rem; }
.proj-title { font-size: 1.05rem; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; margin-bottom: 0.4rem; }
.proj-desc { font-size: 0.78rem; color: var(--ink2); line-height: 1.7; margin-bottom: 1rem; }
.proj-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; }
.proj-links { display: flex; gap: 0.5rem; }
.proj-btn {
  font-size: 0.68rem; font-weight: 500; text-decoration: none;
  padding: 0.4rem 0.9rem; border-radius: 7px; transition: all 0.2s;
  display: flex; align-items: center; gap: 0.35rem;
}
.proj-btn-primary { background: var(--accent); color: #0a0a0a; }
.proj-btn-primary:hover { opacity: 0.85; }
.proj-btn-ghost { border: 1px solid var(--border2); color: var(--ink2); background: transparent; }
.proj-btn-ghost:hover { border-color: var(--ink2); color: var(--ink); }

/* ─── STACK ──────────────────────────────────────────────────── */
.stack-scroll-wrap { overflow: hidden; position: relative; margin: 0 -2rem; }
.stack-scroll-wrap::before, .stack-scroll-wrap::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none;
}
.stack-scroll-wrap::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.stack-scroll-wrap::after { right: 0; background: linear-gradient(to left, var(--bg), transparent); }
.stack-scroll {
  display: flex; gap: 0.6rem; padding: 0.5rem 2rem;
  width: max-content;
  animation: scrollLeft 28s linear infinite;
}
.stack-scroll:hover { animation-play-state: paused; }
@keyframes scrollLeft {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.skill-pill {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.45rem 1rem; border-radius: 100px;
  border: 1px solid var(--border); background: var(--bg2);
  white-space: nowrap; font-size: 0.75rem; color: var(--ink2);
  letter-spacing: -0.01em; cursor: default;
  transition: border-color 0.2s, color 0.2s;
}
.skill-pill:hover { border-color: var(--border2); color: var(--ink); }
.pill-icon { width: 16px; height: 16px; flex-shrink: 0; border-radius: 3px; }

/* Skills grouped */
.skills-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem; }
.skill-group-card {
  border: 1px solid var(--border); border-radius: 12px;
  padding: 1.25rem 1.5rem; background: var(--bg2);
}
.sgc-title { font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink3); margin-bottom: 1rem; font-family: 'Geist Mono', monospace; }
.sgc-pills { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.sgc-pill {
  font-size: 0.7rem; padding: 0.25rem 0.65rem;
  border-radius: 100px; border: 1px solid var(--border);
  background: var(--tag); color: var(--ink2);
}

/* ─── EDUCATION ──────────────────────────────────────────────── */
.edu-cards { display: flex; flex-direction: column; gap: 0.75rem; }
.edu-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.25rem 1.5rem; border: 1px solid var(--border);
  border-radius: 12px; background: var(--bg2);
  transition: border-color 0.2s;
}
.edu-card:hover { border-color: var(--border2); }
.edu-icon {
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
  color: var(--accent);
}
.edu-icon svg { width: 20px; height: 20px; }
.edu-degree { font-size: 0.85rem; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; margin-bottom: 0.2rem; }
.edu-school { font-size: 0.72rem; color: var(--ink2); }
.edu-year { font-family: 'Geist Mono', monospace; font-size: 0.62rem; color: var(--ink3); margin-left: auto; flex-shrink: 0; }

/* ─── CERTS ──────────────────────────────────────────────────── */
.cert-group-title {
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--ink3); margin: 2rem 0 1rem;
  font-family: 'Geist Mono', monospace; display: flex; align-items: center; gap: 0.75rem;
}
.cert-group-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.cert-group-title:first-of-type { margin-top: 0; }
.cert-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.cert-item {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 1rem 1.1rem; border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg2); gap: 0.75rem; transition: border-color 0.2s;
}
.cert-item:hover { border-color: var(--border2); }
.cert-name { font-size: 0.76rem; color: var(--ink); line-height: 1.4; margin-bottom: 0.2rem; font-weight: 500; }
.cert-org { font-size: 0.62rem; color: var(--ink3); }
.cert-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 0.3rem; flex-shrink: 0; }
.cert-yr { font-family: 'Geist Mono', monospace; font-size: 0.6rem; color: var(--ink3); white-space: nowrap; }
.cert-link {
  font-size: 0.6rem; color: var(--accent); text-decoration: none;
  font-weight: 500; letter-spacing: 0.02em; white-space: nowrap;
  border-bottom: 1px solid var(--accent);
  transition: opacity 0.25s ease;
}
.cert-link:hover { opacity: 0.8; text-decoration: underline; }
[data-theme="dark"] .cert-link { color: #f0b943; }
[data-theme="dark"] .cert-link:hover { color: #ffc956; }

/* ─── CONTACT ────────────────────────────────────────────────── */
#contact { padding: 80px 0 100px; }
.contact-card {
  border: 1px solid var(--border); border-radius: 16px;
  background: var(--bg2); padding: 3rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
  align-items: start;
}
.contact-heading {
  font-size: 2rem; font-weight: 700; letter-spacing: -0.04em;
  color: var(--ink); line-height: 1.1; margin-bottom: 1rem;
}
.contact-heading em { color: var(--accent); font-style: italic; font-weight: 400; }
.contact-sub { font-size: 0.82rem; color: var(--ink2); line-height: 1.75; }
.contact-links { display: flex; flex-direction: column; gap: 0; }
.contact-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0; border-bottom: 1px solid var(--border);
  text-decoration: none; color: var(--ink);
  transition: padding-left 0.2s;
}
.contact-link:first-child { border-top: 1px solid var(--border); }
.contact-link:hover { padding-left: 0.5rem; color: var(--accent); }
.cl-label { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink3); margin-bottom: 0.15rem; font-family: 'Geist Mono', monospace; }
.cl-val { font-size: 0.8rem; }
.cl-arrow { color: var(--ink3); transition: transform 0.2s, color 0.2s; }
.contact-link:hover .cl-arrow { transform: translateX(4px); color: var(--accent); }

/* ─── FOOTER ────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.7rem; color: var(--ink3); flex-wrap: wrap; gap: 0.5rem;
}
footer a { color: var(--ink2); text-decoration: none; }
footer a:hover { color: var(--accent); }
.footer-links { display: flex; gap: 1.25rem; }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 860px) {
  .nav-center, .nav-cta { display: none; }
  .burger { display: flex; }
  .mobile-menu { display: flex; }
  .contact-card { grid-template-columns: 1fr; gap: 2.5rem; padding: 2rem; }
  .skills-groups { grid-template-columns: 1fr; }
  .page-header { padding: 100px 0 40px; margin-bottom: 20px; }
  .menu-grid { grid-template-columns: 1fr; }
}

@media (min-width: 860px) {
  .hero-grid {
    grid-template-columns: 2fr 1fr;
  }
}

@media (max-width: 640px) {
  .page { padding: 0 1.25rem; }
  nav { padding: 1rem 1.25rem; }
  #hero { padding: 90px 0 60px; }
  .hero-stats { flex-direction: column; border-radius: 0; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: none; }
  .cert-grid { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
  .projects-list { grid-template-columns: 1fr; }
}

/* ─── FADE IN ────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(16px); }
