/* ─────────────────────────────────────────────
   PRIYANSH KUMAR PORTFOLIO — style.css
   DSA Graph Theme · Dark/Light · Responsive
──────────────────────────────────────────────── */

/* ─── FONTS & RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ─── CSS VARIABLES — DARK ─── */
:root {
  --bg:        #080810;
  --bg2:       #0d0d1a;
  --bg3:       #111122;
  --surface:   #181828;
  --surface2:  #1e1e34;
  --border:    rgba(255,255,255,0.07);
  --border2:   rgba(255,255,255,0.14);
  --border3:   rgba(255,255,255,0.22);
  --text:      #e8e8f4;
  --text2:     #8888aa;
  --text3:     #444460;
  --text4:     #2a2a44;

  /* Accent palette */
  --accent:    #7c6af7;
  --accent2:   #a89cf5;
  --teal:      #6366f1;
  --teal2:     #818cf8;
  --amber:     #f59e0b;
  --amber2:    #fbbf24;
  --coral:     #f87171;
  --coral2:    #fca5a5;
  --green:     #4ade80;
  --pink:      #f472b6;

  /* Node colors */
  --nc-project: #a78bfa;
  --nc-core:    #54c5f8;
  --nc-tech:    #fb923c;
  --nc-concept: #34d399;

  /* BFS/DFS */
  --bfs-col:  #f59e0b;
  --dfs-col:  #f472b6;
  --vis-col:  #34d399;

  --radius:    8px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Space Grotesk', sans-serif;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── LIGHT MODE ─── */
body.light {
  --bg:       hsl(243, 28%, 90%);
  --bg2:      hsl(243, 25%, 86%);
  --bg3:      hsl(243, 22%, 82%);
  --surface:  hsl(243, 30%, 92%);
  --surface2: hsl(243, 26%, 88%);
  --border:   hsl(243, 20%, 80%, 0.15);
  --border2:  hsl(243, 20%, 80%, 0.25);
  --border3:  hsl(243, 20%, 80%, 0.35);
  --text:     hsl(243, 15%, 35%);
  --text2:    hsl(243, 12%, 45%);
  --text3:    hsl(243, 10%, 55%);
  --text4:    hsl(243, 8%, 65%);
  --accent:   hsl(243, 35%, 45%);
  --accent2:  hsl(243, 30%, 55%);
}

/* ─── BASE ─── */
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--border3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ─── SELECTION ─── */
::selection { background: var(--accent); color: #fff; }

/* ─── CONTAINER ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* ════════════════════════════════════════
   NAV
════════════════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: 60px;
  background: rgba(8, 8, 16, 0.88);
  backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition);
}
body.light nav { background: hsl(243, 28%, 90%, 0.92); }
.nav-inner { max-width: 1200px; margin: 0 auto; height: 100%; padding: 0 2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.nav-logo { display: flex; align-items: baseline; gap: 2px; font-family: var(--mono); font-size: 15px; font-weight: 700; color: var(--text); user-select: none; }
.logo-bracket { color: var(--accent); }
.logo-index { font-size: 10px; color: var(--text3); margin-left: 4px; font-weight: 400; }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link { font-family: var(--mono); font-size: 12px; color: var(--text2); padding: 6px 12px; border-radius: var(--radius); transition: color var(--transition), background var(--transition); font-weight: 400; }
.nav-link:hover { color: var(--accent2); background: rgba(124,106,247,0.1); }

.theme-toggle { width: 34px; height: 34px; border-radius: var(--radius); border: 1px solid var(--border2); color: var(--text2); font-size: 15px; display: flex; align-items: center; justify-content: center; transition: all var(--transition); background: var(--surface); }
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* ════════════════════════════════════════
   HERO
════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 80px 2rem 4rem;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 70% at 50% 40%, rgba(124,106,247,0.08) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
}
body.light .hero-overlay { background: radial-gradient(ellipse 90% 70% at 50% 40%, hsl(243, 35%, 45%, 0.06) 0%, transparent 65%); }

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 780px;
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text3);
  margin-bottom: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 100px;
  padding: 5px 14px;
}
.hero-meta-node { color: var(--accent2); font-weight: 500; }
.hero-meta-sep { color: var(--text3); }
.hero-meta-label { color: var(--text3); }

.hero-name {
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  color: var(--text);
}
.hero-first { display: block; }
.hero-last {
  display: block;
  color: transparent;
  -webkit-text-stroke: 2px var(--accent);
  font-size: clamp(3.5rem, 9vw, 6.5rem);
}

/* Typewriter */
.hero-typewriter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  margin-bottom: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 8px 16px;
}
.tw-prefix { color: var(--text3); }
.tw-value { color: var(--teal); font-weight: 500; min-width: 200px; text-align: left; }
.tw-cursor { color: var(--accent); animation: blink 1s step-end infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-sub { font-size: 0.875rem; color: var(--text3); font-family: var(--mono); margin-bottom: 1.75rem; }

/* Adjacency list */
.hero-adjacency {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 16px;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.adj-label { color: var(--text3); white-space: nowrap; }
.adj-list { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.adj-item { color: var(--accent2); cursor: pointer; padding: 2px 6px; border-radius: 4px; transition: background var(--transition), color var(--transition); }
.adj-item:hover { background: rgba(124,106,247,0.15); color: var(--accent); }
.adj-sep { color: var(--text3); }

/* CTAs */
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 4rem; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff;
  padding: 12px 26px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; font-family: var(--sans);
  transition: all var(--transition);
  border: 1px solid transparent;
}
.btn-primary:hover { background: var(--accent2); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(124,106,247,0.3); }
.btn-icon { transition: transform var(--transition); }
.btn-primary:hover .btn-icon { transform: translateX(3px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text2);
  padding: 12px 26px; border-radius: var(--radius);
  font-size: 14px; font-weight: 500; font-family: var(--sans);
  border: 1px solid var(--border2);
  transition: all var(--transition);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Hero stats */
.hero-stats {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 2rem;
  font-family: var(--mono);
  flex-wrap: wrap; justify-content: center;
}
.hs-item { text-align: center; }
.hs-val { font-size: 1.5rem; font-weight: 700; color: var(--text); letter-spacing: -0.03em; }
.hs-key { font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.08em; }
.hs-div { color: var(--text4); font-size: 1.2rem; }

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text3); font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase;
  animation: scrollBob 2s ease-in-out infinite;
  z-index: 2;
}
.si-line { width: 1px; height: 40px; background: linear-gradient(var(--text3), transparent); }
@keyframes scrollBob { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }

/* ════════════════════════════════════════
   SECTIONS
════════════════════════════════════════ */
.section { padding: 6rem 0; }
.section-header {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 3rem;
}
.sh-index { font-family: var(--mono); font-size: 12px; color: var(--text3); white-space: nowrap; }
.sh-title { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 700; color: var(--text); letter-spacing: -0.03em; white-space: nowrap; font-family: var(--mono); }
.sh-line { flex: 1; height: 1px; background: linear-gradient(to right, var(--border2), transparent); }

/* ════════════════════════════════════════
   ABOUT
════════════════════════════════════════ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }

/* Code block */
.code-block {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
  font-family: var(--mono);
}
.code-block.sm .cb-body { font-size: 12px; }
.cb-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.cb-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.cb-dot.r { background: #ff5f57; }
.cb-dot.y { background: #febc2e; }
.cb-dot.g { background: #28c840; }
.cb-filename { margin-left: 8px; font-size: 11px; color: var(--text3); }
.cb-body { padding: 1.25rem 1.5rem; font-size: 13px; line-height: 1.8; overflow-x: auto; }
.cb-body code { display: block; }
.ck { color: var(--accent2); }
.cs { color: var(--teal); }
.cn { color: var(--amber); }
.cf { color: #f472b6; }

.about-prose p { color: var(--text2); font-size: 0.9rem; line-height: 1.8; margin-bottom: 1rem; }

/* Stat grid */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 1.5rem; }
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.25rem;
  transition: border-color var(--transition), transform var(--transition);
}
.stat-card:hover { border-color: var(--border3); transform: translateY(-2px); }
.stat-val { font-size: 1.8rem; font-weight: 700; letter-spacing: -0.04em; font-family: var(--mono); }
.stat-val.accent { color: var(--accent); }
.stat-val.teal   { color: var(--teal); }
.stat-val.amber  { color: var(--amber); }
.stat-val.coral  { color: var(--coral); }
.stat-key { font-size: 13px; font-weight: 600; color: var(--text); margin-top: 2px; }
.stat-sub { font-size: 11px; color: var(--text3); font-family: var(--mono); }

/* Skill bars */
.about-skills-preview { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; }
.asp-label { font-family: var(--mono); font-size: 11px; color: var(--text3); margin-bottom: 1rem; }
.skill-bars { display: flex; flex-direction: column; gap: 12px; }
.sb-item { display: flex; align-items: center; gap: 10px; }
.sb-name { font-size: 12px; color: var(--text2); width: 120px; flex-shrink: 0; font-family: var(--mono); }
.sb-track { flex: 1; height: 4px; background: var(--bg3); border-radius: 2px; overflow: hidden; }
.sb-fill {
  height: 100%; border-radius: 2px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--accent);
}
.sb-fill[data-color="teal"]  { background: var(--teal); }
.sb-fill[data-color="amber"] { background: var(--amber); }
.sb-fill[data-color="coral"] { background: var(--coral); }
.sb-pct { font-size: 10px; color: var(--text3); font-family: var(--mono); width: 70px; text-align: right; flex-shrink: 0; }

/* ════════════════════════════════════════
   GRAPH SECTION
════════════════════════════════════════ */
.graph-section { background: var(--bg2); padding: 5rem 0; }
.graph-desc { color: var(--text2); font-size: 0.9rem; max-width: 600px; line-height: 1.7; margin-bottom: 1.5rem; }
.graph-desc strong { color: var(--text); font-weight: 600; }

/* Toolbar */
.graph-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  margin-bottom: 1rem;
}
.filter-group, .traversal-group { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.filter-btn {
  padding: 6px 14px; border-radius: 100px;
  border: 1px solid var(--border2);
  background: transparent; color: var(--text2);
  font-size: 11px; font-weight: 500; font-family: var(--mono);
  transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent2); }
.filter-btn.active { background: rgba(124,106,247,0.18); border-color: var(--accent); color: var(--accent2); }

.algo-btn {
  padding: 6px 14px; border-radius: var(--radius);
  border: 1px solid var(--border2);
  background: var(--surface); color: var(--text2);
  font-size: 11px; font-weight: 700; font-family: var(--mono);
  transition: all var(--transition);
  letter-spacing: 0.05em;
}
#bfsBtn:hover { border-color: var(--amber); color: var(--amber); background: rgba(245,158,11,0.1); }
#dfsBtn:hover { border-color: var(--pink); color: var(--pink); background: rgba(244,114,182,0.1); }
#resetBtn:hover { border-color: var(--teal); color: var(--teal); background: rgba(99,102,241,0.1); }

/* Graph canvas wrap */
.graph-wrap {
  position: relative;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 560px;
  cursor: grab;
}
.graph-wrap:active { cursor: grabbing; }

#graph-canvas { display: block; width: 100%; height: 100%; }

/* Traversal log */
.traversal-log {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(8,8,16,0.88);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text2);
  max-width: 220px;
  backdrop-filter: blur(8px);
  pointer-events: none;
  z-index: 10;
}
body.light .traversal-log { background: hsl(243, 28%, 90%, 0.9); }
.tl-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
#tl-algo { color: var(--accent2); font-weight: 600; font-size: 12px; }
.tl-status { font-size: 10px; color: var(--text3); }
.tl-status.running { color: var(--amber); }
.tl-status.done { color: var(--green); }
.tl-queue, .tl-visited { font-size: 10px; color: var(--text3); line-height: 1.6; }
.tl-queue span { color: var(--amber); }
.tl-visited span { color: var(--vis-col); }

/* Tooltip */
.node-tooltip {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  font-size: 12px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 20;
  max-width: 220px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
}
body.light .node-tooltip { box-shadow: 0 8px 32px hsl(243, 15%, 35%, 0.1); }
.node-tooltip.visible { opacity: 1; }
.nt-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.nt-type { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text3); }
.nt-degree { font-family: var(--mono); font-size: 10px; color: var(--text3); }
.nt-name { font-weight: 700; color: var(--text); font-size: 14px; margin-bottom: 4px; }
.nt-desc { color: var(--text2); font-size: 11px; line-height: 1.5; }

/* Side panel */
.side-panel {
  position: fixed;
  top: 0; right: -420px; bottom: 0;
  width: 380px;
  background: var(--surface);
  border-left: 1px solid var(--border2);
  z-index: 800;
  transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
  box-shadow: -20px 0 60px rgba(0,0,0,0.5);
}
body.light .side-panel { box-shadow: -20px 0 60px hsl(243, 15%, 35%, 0.1); }
.side-panel.open { right: 0; }
.sp-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 30px; height: 30px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text2);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; transition: all var(--transition);
}
.sp-close:hover { border-color: var(--coral); color: var(--coral); }
.sp-inner { padding: 2rem 1.75rem; padding-top: 3.5rem; }
.sp-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.sp-type { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text3); }
.sp-degree { font-family: var(--mono); font-size: 11px; color: var(--accent2); }
.sp-name { font-size: 1.5rem; font-weight: 700; color: var(--text); letter-spacing: -0.02em; margin-bottom: 0.75rem; }
.sp-desc { color: var(--text2); font-size: 0.875rem; line-height: 1.7; margin-bottom: 1.5rem; }
.sp-section { margin-bottom: 1.25rem; }
.sp-sec-title { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text3); margin-bottom: 10px; }
.sp-adj { display: flex; flex-direction: column; gap: 6px; }
.sp-adj-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text2); padding: 6px 10px; background: var(--surface2); border-radius: var(--radius); }
.sp-adj-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.sp-adj-dir { font-family: var(--mono); font-size: 11px; color: var(--text3); width: 14px; }
.sp-adj-rel { font-size: 11px; color: var(--text3); }
.sp-adj-name { font-weight: 500; color: var(--text); margin-left: 4px; }
.sp-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sp-tag { padding: 4px 10px; border-radius: 100px; font-size: 11px; font-weight: 500; }
.sp-weights { display: flex; flex-direction: column; gap: 4px; font-family: var(--mono); font-size: 11px; }
.sp-weight-row { display: flex; align-items: center; gap: 10px; color: var(--text3); }
.sp-weight-edge { color: var(--text2); flex: 1; }
.sp-weight-val { color: var(--amber); }

/* Legend */
.graph-legend { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1rem; }
.gl-item { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text2); font-family: var(--mono); }
.gl-dot { width: 10px; height: 10px; border-radius: 50%; }
.bfs-dot { background: var(--bfs-col); box-shadow: 0 0 6px var(--bfs-col); }
.dfs-dot { background: var(--dfs-col); box-shadow: 0 0 6px var(--dfs-col); }

/* ════════════════════════════════════════
   PROJECTS
════════════════════════════════════════ */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(124,106,247,0.05), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
  border-radius: var(--radius-xl);
}
.project-card:hover { border-color: rgba(124,106,247,0.3); transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
body.light .project-card:hover { box-shadow: 0 20px 60px hsl(243, 15%, 35%, 0.08); }
.project-card:hover::after { opacity: 1; }
.project-card.featured { border-color: rgba(124,106,247,0.25); }
.project-card.featured:hover { border-color: rgba(124,106,247,0.5); box-shadow: 0 20px 60px rgba(124,106,247,0.2); }

.pc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.pc-node-id { font-family: var(--mono); font-size: 11px; color: var(--text3); }
.pc-badge { font-size: 10px; font-weight: 600; padding: 3px 10px; border-radius: 100px; letter-spacing: 0.05em; }
.pc-badge.personal { background: rgba(99,102,241,0.12); color: var(--teal); border: 1px solid rgba(99,102,241,0.25); }
.pc-badge.internship { background: rgba(124,106,247,0.15); color: var(--accent2); border: 1px solid rgba(124,106,247,0.3); }

.pc-icon { font-size: 2rem; margin-bottom: 1rem; width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--c2, rgba(124,106,247,0.1)); border: 1px solid rgba(255,255,255,0.06); }
.pc-name { font-size: 1.3rem; font-weight: 700; color: var(--text); letter-spacing: -0.02em; margin-bottom: 4px; }
.pc-tagline { font-size: 12px; color: var(--text3); font-family: var(--mono); margin-bottom: 0.75rem; font-style: italic; }
.pc-desc { font-size: 0.875rem; color: var(--text2); line-height: 1.7; margin-bottom: 1.25rem; }

.pc-features { margin-bottom: 1.25rem; }
.pcf-label { font-family: var(--mono); font-size: 10px; color: var(--text3); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.08em; }
.pc-features ul { display: flex; flex-direction: column; gap: 4px; }
.pc-features li { font-size: 0.825rem; color: var(--text2); padding-left: 14px; position: relative; line-height: 1.5; }
.pc-features li::before { content: '▸'; position: absolute; left: 0; color: var(--accent); font-size: 10px; top: 2px; }

.pc-stack { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 0.75rem; }
.st { padding: 3px 9px; border-radius: 4px; font-size: 10px; font-family: var(--mono); font-weight: 600; }
.st[data-col="blue"]   { background: rgba(84,197,248,0.1); color: #54c5f8; border: 1px solid rgba(84,197,248,0.2); }
.st[data-col="amber"]  { background: rgba(255,202,40,0.1); color: var(--amber); border: 1px solid rgba(245,158,11,0.2); }
.st[data-col="teal"]   { background: rgba(99,102,241,0.1); color: var(--teal); border: 1px solid rgba(99,102,241,0.2); }
.st[data-col="green"]  { background: rgba(74,222,128,0.1); color: var(--green); border: 1px solid rgba(74,222,128,0.2); }
.st[data-col="purple"] { background: rgba(124,106,247,0.1); color: var(--accent2); border: 1px solid rgba(124,106,247,0.2); }
.st[data-col="coral"]  { background: rgba(248,113,113,0.1); color: var(--coral); border: 1px solid rgba(248,113,113,0.2); }
.st[data-col="gray"]   { background: rgba(255,255,255,0.05); color: var(--text3); border: 1px solid var(--border); }

.pc-edges { font-family: var(--mono); font-size: 10px; color: var(--text3); margin-bottom: 1rem; }
.pe-label { color: var(--accent); margin-right: 4px; }
.pe-val { color: var(--text3); }

/* GitHub Link Button */
.pc-github {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text2);
  transition: all 0.2s ease;
}
.pc-github:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--accent);
  color: var(--accent2);
  transform: translateY(-1px);
}
.pcgh-icon { font-size: 12px; }
.pcgh-text { letter-spacing: 0.02em; }

.pc-github.private {
  background: rgba(255,255,255,0.02);
  border-color: transparent;
  color: var(--text3);
  cursor: default;
}
.pc-github.private:hover {
  transform: none;
  background: rgba(255,255,255,0.02);
}

/* ════════════════════════════════════════
   EXPERIENCE / TIMELINE
════════════════════════════════════════ */
.exp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.exp-col-title { font-family: var(--mono); font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 2rem; }

.timeline { display: flex; flex-direction: column; gap: 0; }
.tl-item { display: flex; gap: 1.25rem; }
.tl-connector { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; padding-top: 4px; }
.tl-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--text3); border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px var(--text3);
  flex-shrink: 0; z-index: 1;
  transition: all var(--transition);
}
.tl-dot.active { background: var(--accent); box-shadow: 0 0 0 2px var(--accent), 0 0 12px rgba(124,106,247,0.4); }
.tl-dot.accent { background: var(--teal); box-shadow: 0 0 0 2px var(--teal); }
.tl-line { flex: 1; width: 1px; background: var(--border2); margin: 6px 0 0; min-height: 40px; }
.tl-body { padding-bottom: 2.5rem; flex: 1; }
.tl-period { font-family: var(--mono); font-size: 11px; color: var(--text3); margin-bottom: 4px; }
.tl-role { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.tl-org { font-size: 13px; color: var(--accent2); margin-bottom: 0.75rem; font-family: var(--mono); }
.tl-desc { font-size: 0.875rem; color: var(--text2); line-height: 1.7; margin-bottom: 0.75rem; }
.tl-achievements { display: flex; flex-direction: column; gap: 3px; margin-bottom: 0.75rem; }
.ta-item { font-size: 12px; color: var(--text2); font-family: var(--mono); padding: 3px 0; }
.tl-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 3px 10px; background: rgba(124,106,247,0.1); border: 1px solid rgba(124,106,247,0.2); color: var(--accent2); border-radius: 100px; font-size: 11px; font-weight: 500; }

/* ════════════════════════════════════════
   SKILLS
════════════════════════════════════════ */
.skills-section { background: var(--bg2); }
.skills-matrix { display: flex; flex-direction: column; gap: 2.5rem; }
.sm-group { }
.smg-label { font-family: var(--mono); font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.smg-items { display: flex; flex-wrap: wrap; gap: 12px; }

.skill-node {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  min-width: 110px;
  position: relative;
  transition: all var(--transition);
  cursor: default;
}
.skill-node:hover { border-color: var(--border3); transform: translateY(-3px); }
.sn-ring {
  position: absolute; inset: -1px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--col);
  opacity: 0;
  transition: opacity var(--transition);
}
.skill-node:hover .sn-ring { opacity: 0.5; }
.sn-icon { font-size: 1.5rem; margin-bottom: 6px; }
.sn-name { font-size: 13px; font-weight: 600; color: var(--text); }
.sn-sub { font-size: 10px; color: var(--text3); font-family: var(--mono); margin-top: 2px; }

/* ════════════════════════════════════════
   CONTACT
════════════════════════════════════════ */
.contact-section { }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-links { display: flex; flex-direction: column; gap: 12px; }
.contact-link {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1rem 1.25rem;
  transition: all var(--transition);
  color: var(--text);
}
.contact-link:hover { border-color: var(--accent); transform: translateX(4px); background: var(--surface2); }
.cl-icon { font-size: 18px; width: 36px; height: 36px; background: var(--bg3); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--accent2); flex-shrink: 0; }
.cl-body { flex: 1; }
.cl-label { font-family: var(--mono); font-size: 10px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 2px; }
.cl-val { font-size: 14px; color: var(--text); font-weight: 500; }
.cl-arrow { color: var(--text3); transition: transform var(--transition), color var(--transition); }
.contact-link:hover .cl-arrow { transform: translateX(4px); color: var(--accent); }

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  background: var(--bg);
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-logo { font-family: var(--mono); font-size: 16px; font-weight: 700; }
.footer-meta { font-family: var(--mono); font-size: 12px; color: var(--text3); display: flex; gap: 8px; flex-wrap: wrap; }
.footer-sep { color: var(--text4); }
.footer-mono { color: var(--text3); }
.footer-tag { font-family: var(--mono); font-size: 11px; color: var(--teal); }

/* ════════════════════════════════════════
   ANIMATIONS
════════════════════════════════════════ */
@keyframes fadeInUp { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn   { from { opacity:0; } to { opacity:1; } }
@keyframes pulse    { 0%,100%{opacity:1} 50%{opacity:0.6} }

.fade-in-up { animation: fadeInUp 0.6s cubic-bezier(0.4,0,0.2,1) both; }
.fade-in    { animation: fadeIn   0.4s ease both; }

/* Staggered reveals */
.project-card:nth-child(1) { animation-delay: 0.0s; }
.project-card:nth-child(2) { animation-delay: 0.1s; }
.project-card:nth-child(3) { animation-delay: 0.2s; }

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 900px) {
  .about-grid,
  .contact-inner,
  .exp-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

@media (max-width: 640px) {
  .hero-name { font-size: 3rem; }
  .hero-last { font-size: 2.6rem; }
  .hero-adjacency { font-size: 11px; }
  .side-panel { width: 100%; right: -100%; }
  .section { padding: 4rem 0; }
  .container { padding: 0 1.25rem; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .graph-wrap { height: 400px; }
  .traversal-log { display: none; }
}

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