/* ===== ROOT & RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0d1117;
  --bg2: #161b22;
  --bg3: #1c2128;
  --border: #30363d;
  --border-hover: #484f58;
  --text: #c9d1d9;
  --text-dim: #8b949e;
  --blue: #389cff;
  --blue-dim: #1f4d80;
  --green: #39d353;
  --purple: #bc8cff;
  --orange: #ffa657;
  --vue: #42b883;
  --nest: #e0234e;
  --ts: #2b7489;
  --mongo: #47a248;
  --docker: #00add8;
  --radius: 6px;
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue); }

/* ===== BACKGROUND GRID ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(56,156,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,156,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ===== LAYOUT ===== */
.page-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 48px;
  position: relative;
  z-index: 1;
}

.main-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 32px;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.sidebar::-webkit-scrollbar { display: none; }

.avatar-wrap {
  position: relative;
  width: 200px;
  margin: 0 auto;
}

.avatar-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(var(--blue), var(--purple), var(--green), var(--blue));
  animation: spin 6s linear infinite;
  z-index: 0;
}

.avatar-ring-mask {
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: var(--bg);
  z-index: 1;
}

.avatar {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  z-index: 2;
}

@keyframes spin { to { transform: rotate(360deg); } }

.name {
  font-size: 1.9rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
}

.handle {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-top: 2px;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 6px 0 10px;
  padding: 4px 10px 4px 8px;
  background: linear-gradient(135deg, rgba(56,156,255,0.12), rgba(188,140,255,0.10));
  border: 1px solid rgba(56,156,255,0.35);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.02em;
}

.bio {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 8px 0;
}

/* ===== SIDEBAR META LINKS ===== */
.meta-list { display: flex; flex-direction: column; gap: 8px; }

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-dim);
  min-height: 36px;
  padding: 4px 0;
  transition: color var(--transition);
}
.meta-item:hover { color: var(--blue); }
.meta-item a { color: inherit; text-decoration: none; }
.meta-item a:hover { text-decoration: underline; }
.meta-icon { font-size: 16px !important; flex-shrink: 0; }

/* ===== STAT COUNTERS ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.stat-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}
.stat-box:hover { border-color: var(--blue); transform: translateY(-2px); }
.stat-num {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--blue);
  display: block;
}
.stat-label { font-size: 0.78rem; color: var(--text-dim); margin-top: 2px; }

/* ===== SKILLS ===== */
.skills-block { display: flex; flex-direction: column; gap: 10px; }
.skill-row { display: flex; flex-direction: column; gap: 4px; }
.skill-head { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--text); }
.skill-track { background: var(--bg3); border-radius: 100px; height: 6px; overflow: hidden; }
.skill-bar {
  height: 100%;
  border-radius: 100px;
  width: 0;
  transition: width 1.2s cubic-bezier(.4,0,.2,1);
}

/* ===== MAIN CONTENT ===== */
.content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 32px; }

/* ===== HERO HEADER ===== */
.hero {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  background: var(--bg2);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(56,156,255,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-title {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  min-height: 2.4rem;
}

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

.hero-sub {
  color: var(--text-dim);
  margin-top: 8px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: var(--blue);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover {
  background: #5aadff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(56,156,255,0.35);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: transparent;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition), transform var(--transition);
}
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-1px); }

.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hero-tag {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 0.78rem;
  color: var(--text-dim);
  transition: all var(--transition);
}
.hero-tag:hover { border-color: var(--blue); color: var(--blue); }

/* ===== SECTION TITLES ===== */
.section-title {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ===== PROJECT CARDS ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(56,156,255,0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card:hover { border-color: var(--blue); box-shadow: 0 8px 32px rgba(56,156,255,0.12); }
.card.featured {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue), 0 8px 40px rgba(56,156,255,0.18);
}
.card.featured::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--purple), var(--green));
  border-radius: var(--radius) var(--radius) 0 0;
  pointer-events: none;
}

.card-header { display: flex; align-items: center; gap: 8px; }
.card-icon { font-size: 18px !important; color: var(--blue); }
.card-name { font-weight: 600; color: var(--blue); font-size: 0.95rem; flex: 1; }
.card-badge {
  border: 1px solid var(--blue);
  border-radius: 100px;
  padding: 2px 8px;
  font-size: 0.7rem;
  color: var(--blue);
  background: rgba(56,156,255,0.1);
}
.card-badge.gray { border-color: var(--border); color: var(--text-dim); background: transparent; }

.card-desc { font-size: 0.875rem; color: var(--text-dim); line-height: 1.55; flex: 1; }

.card-metrics { display: flex; flex-wrap: wrap; gap: 6px; }
.metric {
  background: var(--bg3);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 0.72rem;
}
.metric.blue { color: var(--blue); }
.metric.green { color: var(--green); }
.metric.purple { color: var(--purple); }
.metric.orange { color: var(--orange); }

.card-footer { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lang-dot {
  display: flex; align-items: center; gap: 4px;
  font-size: 0.75rem; color: var(--text-dim);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.card-link {
  margin-left: auto;
  display: flex; align-items: center; gap: 4px;
  font-size: 0.75rem; color: var(--text-dim);
  text-decoration: none;
  transition: color var(--transition);
}
.card-link:hover { color: var(--blue); }

/* ===== TIMELINE ===== */
.timeline { position: relative; padding-left: 24px; display: flex; flex-direction: column; gap: 0; }
.timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--blue), var(--purple), transparent);
}

.tl-item {
  position: relative;
  padding: 0 0 28px 20px;
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.tl-item.visible { opacity: 1; transform: translateX(0); }
.tl-item:last-child { padding-bottom: 0; }

.tl-dot {
  position: absolute;
  left: -19px;
  top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid var(--bg);
  z-index: 1;
  transition: transform 0.2s, box-shadow 0.2s;
}
.tl-item:hover .tl-dot { transform: scale(1.4); box-shadow: 0 0 0 4px rgba(56,156,255,0.2); }
.tl-dot.dim { background: var(--border); }

.tl-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  transition: border-color var(--transition);
}
.tl-item:hover .tl-card { border-color: var(--border-hover); }

.tl-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.tl-role { font-weight: 600; color: #fff; font-size: 0.95rem; }
.tl-date { font-size: 0.82rem; color: var(--text-dim); white-space: nowrap; }
.tl-company { color: var(--blue); font-size: 0.85rem; margin-bottom: 6px; }
.tl-desc { font-size: 0.875rem; color: var(--text-dim); line-height: 1.55; margin-bottom: 8px; }
.tl-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tl-tag {
  background: var(--bg3);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* ===== CONTRIBUTION HEATMAP ===== */
.heatmap-wrap { overflow-x: auto; }
.contribution-grid {
  display: grid;
  grid-template-rows: repeat(7, 1fr);
  grid-auto-flow: column;
  gap: 3px;
  width: max-content;
}
.gh-cell {
  width: 11px; height: 11px;
  border-radius: 2px;
  background: #161b22;
  transition: transform 0.15s, background 0.15s;
  cursor: default;
}
.gh-cell:hover { transform: scale(1.5); }
.gh-0 { background: #161b22; }
.gh-1 { background: #0e4429; }
.gh-2 { background: #006d32; }
.gh-3 { background: #26a641; }
.gh-4 { background: #39d353; }

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-dim);
  position: relative;
  z-index: 1;
}
footer a { color: var(--text-dim); text-decoration: none; transition: color var(--transition); }
footer a:hover { color: var(--blue); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ===== SCROLL ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ===== SIDEBAR CARD ===== */
.side-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.side-card-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 12px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .main-layout { flex-direction: column; }
  .sidebar { width: 100%; position: static; }
  .cards-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 1.5rem; }
}
@media (max-width: 600px) {
  .page-wrapper { padding: 16px; }
  .hero { padding: 20px; }
  .tl-top { flex-direction: column; }
}

/* ===== OPEN TO WORK ===== */
.open-to-work {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0 10px;
  padding: 4px 10px;
  background: rgba(57, 211, 83, 0.08);
  border: 1px solid rgba(57, 211, 83, 0.3);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--green);
}
.otw-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(57, 211, 83, 0.4);
  animation: pulse-green 2s infinite;
}
@keyframes pulse-green {
  0%   { box-shadow: 0 0 0 0 rgba(57,211,83,0.4); }
  70%  { box-shadow: 0 0 0 5px rgba(57,211,83,0); }
  100% { box-shadow: 0 0 0 0 rgba(57,211,83,0); }
}

/* ===== CARD ICON MODIFIERS (replaces inline styles) ===== */
.card-icon--dim   { color: var(--text-dim) !important; }
.card-icon--purple { color: var(--purple) !important; }
.card-icon--orange { color: var(--orange) !important; }

/* ===== CARD AS LINK (reset anchor styles) ===== */
a.card {
  text-decoration: none;
  color: inherit;
  display: flex;
}
a.card:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* ===== ICON SIZE UTILITIES ===== */
.icon-sm { font-size: 13px !important; line-height: 1; }
.icon-md { font-size: 16px !important; }
.section-icon { font-size: 16px !important; }

/* ===== TEXT UTILITY ===== */
.text-white { color: #fff; }

/* ===== LANG DOTS (replaces inline styles) ===== */
.dot-vue    { background: var(--vue); }
.dot-ts     { background: var(--ts); }
.dot-nest   { background: var(--nest); }
.dot-mongo  { background: var(--mongo); }
.dot-docker { background: var(--docker); }
.dot-ai     { background: linear-gradient(135deg, #bc8cff, #ff6b9d); }

/* ===== SKILL BAR COLORS (replaces inline styles) ===== */
.skill-bar--vue    { background: var(--vue); }
.skill-bar--ts     { background: var(--ts); }
.skill-bar--nest   { background: var(--nest); }
.skill-bar--mongo  { background: var(--mongo); }
.skill-bar--docker { background: var(--docker); }

/* ===== HEATMAP LEGEND ===== */
.heatmap-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.75rem;
  color: var(--text-dim);
}
.heatmap-legend .gh-cell {
  width: 11px;
  height: 11px;
  border-radius: 2px;
  display: inline-block;
}

/* ===== FOOTER BRAND ===== */
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== CARD LINK LABEL (replaces nested <a>) ===== */
.card-link-label {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ===== PREFERS-REDUCED-MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .avatar-ring { animation: none; }
  .otw-dot { animation: none; box-shadow: none; }
  .cursor { animation: none; opacity: 1; }
  .fade-up { opacity: 1; transform: none; }
  .tl-item { opacity: 1; transform: none; }
  .skill-bar { transition: none; }
}

/* ===== GLOBAL FOCUS VISIBLE (WCAG 2.4.7) ===== */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 3px;
}
/* Override for buttons — tighter radius */
.btn-primary:focus-visible,
.btn-secondary:focus-visible {
  outline-offset: 2px;
  border-radius: var(--radius);
}
/* Skip to content (hidden until focused) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--blue);
  color: #fff;
  padding: 8px 16px;
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ============================================================
   WOW EFFECTS
   ============================================================ */

/* ===== 1. PARTICLE CANVAS ===== */
#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
}

/* ===== 2. CURSOR SPOTLIGHT ===== */
#spotlight {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    circle 280px at var(--mx, -999px) var(--my, -999px),
    rgba(56, 156, 255, 0.07) 0%,
    transparent 70%
  );
  transition: --mx 0.05s, --my 0.05s;
}

/* ===== 3. GLITCH ON NAME ===== */
.glitch {
  position: relative;
  cursor: default;
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}
.glitch:hover::before {
  opacity: 0.8;
  color: #0ff;
  clip-path: polygon(0 20%, 100% 20%, 100% 40%, 0 40%);
  transform: translate(-3px, 2px);
  animation: glitch-1 0.4s steps(2) forwards;
}
.glitch:hover::after {
  opacity: 0.8;
  color: #f0f;
  clip-path: polygon(0 55%, 100% 55%, 100% 75%, 0 75%);
  transform: translate(3px, -2px);
  animation: glitch-2 0.4s steps(2) forwards;
}
@keyframes glitch-1 {
  0%   { transform: translate(-3px, 2px) skewX(-2deg); }
  25%  { transform: translate(3px, -2px) skewX(2deg); }
  50%  { transform: translate(-2px, 1px) skewX(-1deg); }
  75%  { transform: translate(2px, -1px) skewX(1deg); }
  100% { transform: translate(0, 0); opacity: 0; }
}
@keyframes glitch-2 {
  0%   { transform: translate(3px, -2px) skewX(2deg); }
  25%  { transform: translate(-3px, 2px) skewX(-2deg); }
  50%  { transform: translate(2px, -1px) skewX(1deg); }
  75%  { transform: translate(-2px, 1px) skewX(-1deg); }
  100% { transform: translate(0, 0); opacity: 0; }
}

/* ===== 4. TERMINAL HERO ===== */
.terminal-hero {
  background: #0d1117;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(56,156,255,0.08);
}

.term-bar {
  background: #21262d;
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  user-select: none;
}

.term-dots { display: flex; gap: 6px; }
.term-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.term-dot--red    { background: #ff5f57; }
.term-dot--yellow { background: #febc2e; }
.term-dot--green  { background: #28c840; }

.term-title {
  font-size: 0.78rem;
  color: var(--text-dim);
  flex: 1;
  text-align: center;
  font-family: 'Space Grotesk', monospace;
}

.term-body {
  padding: 20px 24px 24px;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.88rem;
  line-height: 1.8;
  min-height: 160px;
}

.term-line { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; }
.term-prompt { color: var(--green); flex-shrink: 0; font-weight: 600; }
.term-cmd    { color: var(--blue); }
.term-out    { color: var(--text); padding-left: 16px; width: 100%; }
.term-out.dim { color: var(--text-dim); }
.term-out.highlight { color: #fff; font-weight: 600; }
.term-cursor-inline {
  display: inline-block;
  width: 8px; height: 1em;
  background: var(--blue);
  vertical-align: middle;
  animation: blink 1s step-end infinite;
  margin-left: 2px;
}

.hero-cta { padding: 0 24px 0; }
.terminal-hero .hero-tags { padding: 12px 24px 20px; }

/* Terminal CTA sits inside terminal — remove extra top padding */
.terminal-hero .hero-cta { margin-top: 20px; }
.terminal-hero .hero-tags { margin-top: 0; }

/* prefers-reduced-motion: disable glitch */
@media (prefers-reduced-motion: reduce) {
  .glitch::before, .glitch::after { display: none; }
  #particle-canvas { display: none; }
  #spotlight { display: none; }
}

/* ============================================================
   WOW ROUND 2
   ============================================================ */

/* ===== SCROLL PROGRESS BAR ===== */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(56,156,255,0.6);
}

/* ===== STAGGER CARDS ===== */
.stagger-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.stagger-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== AVATAR HOVER ===== */
.avatar-wrap:hover .avatar {
  transform: scale(1.04);
  box-shadow: 0 0 0 4px rgba(56,156,255,0.25), 0 0 32px rgba(56,156,255,0.2);
}
.avatar {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* ===== TIMELINE STAGGER (driven by CSS var) ===== */
.tl-item {
  transition-delay: var(--tl-delay, 0ms);
}

/* prefers-reduced-motion: kill stagger too */
@media (prefers-reduced-motion: reduce) {
  .stagger-item { opacity: 1; transform: none; transition: none; }
  .avatar { transition: none; }
  #scroll-progress { display: none; }
}
