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

:root {
  --bg: #060608;
  --bg-1: #0c0c10;
  --bg-2: #111116;
  --bg-3: #18181f;
  --line: rgba(255,255,255,0.07);
  --line-bright: rgba(255,255,255,0.13);
  --text: #f0f0f5;
  --text-muted: #7a7a8c;
  --text-dim: #444455;
  --accent: #4f8eff;
  --accent-2: #a78bfa;
  --accent-3: #38d9a9;
  --accent-glow: rgba(79,142,255,0.18);
  --accent-2-glow: rgba(167,139,250,0.14);
  --gold: #f4c96a;
  --font-display: 'Syne', sans-serif;
  --font-mono: 'DM Mono', monospace;
  --font-serif: 'Instrument Serif', serif;
  --radius: 12px;
  --radius-lg: 20px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html { scroll-behavior: smooth; }


body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

/* ─── CUSTOM CURSOR ───────────────────────────────────────────── */
#cursor {
  position: fixed; top: 0; left: 0; z-index: 9999;
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, width 0.25s var(--ease), height 0.25s var(--ease), background 0.25s;
  mix-blend-mode: screen;
}
#cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 9998;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(79,142,255,0.5);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.12s var(--ease), width 0.3s var(--ease), height 0.3s var(--ease), opacity 0.3s;
}
body:hover #cursor { opacity: 1; }

/* ─── NOISE TEXTURE OVERLAY ───────────────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
  opacity: 0.4;
}

/* ─── NAVIGATION ──────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 48px;
  background: rgba(6,6,8,0.7);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--line);
  transition: padding 0.3s var(--ease);
}
.nav-logo {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-decoration: none;
}
.nav-logo-sub {
  color: var(--text-muted);
  font-weight: 400;
}
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.25s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  padding: 8px 20px;
  background: var(--accent);
  color: #fff !important;
  border-radius: 6px;
  font-size: 13px !important;
  font-weight: 600 !important;
  transition: opacity 0.2s, transform 0.2s var(--ease-spring) !important;
}
.nav-cta:hover { opacity: 0.9; transform: scale(1.03) !important; }
.nav-cta::after { display: none !important; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-hamburger span { display: block; width: 22px; height: 1.5px; background: var(--text); transition: 0.3s; }

/* ─── LAYOUT ──────────────────────────────────────────────────── */
section { position: relative; z-index: 1; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.section-label::before { content: ''; display: block; width: 24px; height: 1px; background: var(--accent); }

/* ─── HERO ────────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 140px 0 150px;
  position: relative; overflow: hidden;
}

/* Animated grid background */
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  animation: gridShift 20s linear infinite;
}
@keyframes gridShift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 60px 60px, 60px 60px; }
}

/* Glowing orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  animation: orbFloat 8s ease-in-out infinite;
}
.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(79,142,255,0.12) 0%, transparent 70%);
  top: -100px; left: -100px;
}
.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(167,139,250,0.1) 0%, transparent 70%);
  bottom: -50px; right: 100px;
  animation-delay: -3s;
}
.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(56,217,169,0.08) 0%, transparent 70%);
  top: 40%; right: 25%;
  animation-delay: -5s;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%  { transform: translate(20px, -30px) scale(1.05); }
  66%  { transform: translate(-15px, 20px) scale(0.97); }
}

.hero-inner { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: rgba(79,142,255,0.08);
  border: 1px solid rgba(79,142,255,0.2);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 0.2s forwards;
}
.hero-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-3);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.35s forwards;
}
.hero-name span {
  background: linear-gradient(135deg, var(--text) 0%, rgba(167,139,250,0.9) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title {
  font-family: var(--font-mono);
  font-size: clamp(13px, 1.6vw, 16px);
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.06em;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.5s forwards;
}
.hero-title .sep { color: var(--line-bright); margin: 0 10px; }

.hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(20px, 3vw, 28px);
  font-style: italic;
  color: rgba(240,240,245,0.7);
  max-width: 620px;
  line-height: 1.5;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.65s forwards;
}

.hero-ctas {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.8s forwards;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s var(--ease);
  position: relative; overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.08);
  opacity: 0;
  transition: opacity 0.2s;
}
.btn:hover::after { opacity: 1; }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 30px rgba(79,142,255,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 45px rgba(79,142,255,0.45); }
.btn-secondary {
  background: var(--bg-3);
  color: var(--text);
  border: 1px solid var(--line-bright);
}
.btn-secondary:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.25); }
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--line);
  padding: 13px 20px;
}
.btn-ghost:hover { color: var(--text); border-color: var(--line-bright); }

.hero-stats {
  display: flex; gap: 40px; margin-top: 32px; flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 1.0s forwards;
}
.hero-stat-item {}
.hero-stat-num {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-stat-label {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-dim);
  letter-spacing: 0.06em;
  margin-top: 2px;
}

/* Scroll indicator — minimalist mouse (portfolio-style) */
.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: scrollHintFade 1s 1.5s forwards;
  opacity: 0;
  color: rgba(180, 188, 210, 0.55);
}
.scroll-hint:hover {
  color: rgba(200, 208, 230, 0.75);
}

.scroll-hint-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.scroll-mouse {
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-mouse-svg {
  display: block;
  overflow: visible;
}

.scroll-mouse-wheel {
  animation: scrollMouseWheel 2s ease-in-out infinite;
  transform-origin: 14px 15px;
}

@keyframes scrollMouseWheel {
  0%, 100% { transform: translateY(0); opacity: 1; }
  45% { transform: translateY(9px); opacity: 0.65; }
  55% { transform: translateY(9px); opacity: 0.65; }
}

@keyframes scrollHintFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 768px) {
  .scroll-hint {
    bottom: 32px;
    width: 100%;
  }

  #hero {
    padding: 100px 0 150px;
  }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── ABOUT ───────────────────────────────────────────────────── */
#about {
  padding: 120px 0;
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-heading {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.about-heading em {
  font-style: italic;
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--accent-2);
}
.about-body {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.official-source {
  margin: 20px 0 24px;
  padding: 18px 20px;
  background: rgba(79, 142, 255, 0.06);
  border: 1px solid rgba(79, 142, 255, 0.22);
  border-radius: var(--radius);
}
.official-source-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.official-source-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}
.official-source-text strong {
  color: var(--text);
  font-weight: 600;
}
.about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-card {
  padding: 24px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.about-card:hover { border-color: var(--line-bright); transform: translateY(-3px); }
.about-card-icon { font-size: 20px; margin-bottom: 10px; }
.about-card-title { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.about-card-desc { font-size: 12px; color: var(--text-muted); font-family: var(--font-mono); }

/* ─── TECH STACK ──────────────────────────────────────────────── */
#stack {
  padding: 120px 0;
}
.stack-heading {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 64px;
}
.stack-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stack-group {
  padding: 28px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.stack-group:hover {
  border-color: var(--line-bright);
  box-shadow: 0 0 40px rgba(79,142,255,0.06);
}
.stack-group-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 8px;
}
.stack-group-title::before { content: ''; display: block; width: 16px; height: 1px; background: var(--accent); }
.stack-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s var(--ease);
  cursor: default;
}
.pill:hover { color: var(--text); border-color: var(--accent); background: rgba(79,142,255,0.08); transform: translateY(-1px); }
.pill .pill-dot {
  width: 5px; height: 5px; border-radius: 50%;
}
/* Category colors */
.c-blue { background: rgba(79,142,255,0.25); }
.c-purple { background: rgba(167,139,250,0.25); }
.c-teal { background: rgba(56,217,169,0.25); }
.c-orange { background: rgba(251,146,60,0.25); }
.c-gold { background: rgba(244,201,106,0.25); }
.c-pink { background: rgba(251,113,133,0.25); }

/* ─── PROJECTS ────────────────────────────────────────────────── */
#projects {
  padding: 120px 0;
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.projects-header { margin-bottom: 64px; }
.projects-heading {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.project-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative; overflow: hidden;
  transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
  display: flex; flex-direction: column; gap: 20px;
}
.project-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity 0.3s;
}
.project-card:hover {
  border-color: rgba(79,142,255,0.25);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.project-card:hover::before { opacity: 1; }

/* Featured card spans full width */
.project-card.featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

.project-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}
.project-role {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-2);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  line-height: 1.5;
}
.project-name--featured { font-size: 28px; margin: 12px 0 16px; }
.project-desc--spaced { margin-bottom: 20px; }
.project-card--full { grid-column: 1 / -1; }
.project-name--etl { font-size: 24px; margin: 12px 0 12px; }
.project-desc--compact { margin-bottom: 16px; }
.project-etl-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 40px;
}
.project-tech--spaced { margin-top: 16px; }
.project-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.project-name a { color: inherit; text-decoration: none; }
.project-name a:hover { color: var(--accent); }
.project-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}
.project-bullets { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.project-bullets li {
  font-size: 13px;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}
.project-bullets li::before {
  content: '→';
  position: absolute; left: 0;
  color: var(--accent);
  font-size: 11px;
}
.project-tech { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.tech-tag {
  padding: 4px 10px;
  background: rgba(79,142,255,0.08);
  border: 1px solid rgba(79,142,255,0.18);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
}
.project-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--accent);
  text-decoration: none;
  transition: gap 0.2s;
}
.project-link:hover { gap: 10px; }

/* ─── EXPERIENCE ──────────────────────────────────────────────── */
#experience {
  padding: 120px 0;
}
.exp-heading {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 64px;
}
.timeline { position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  left: 180px;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-2), transparent);
}
.timeline-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0 40px;
  margin-bottom: 48px;
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 180px;
  top: 8px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-4px);
  box-shadow: 0 0 12px rgba(79,142,255,0.6);
  transition: box-shadow 0.3s;
}
.timeline-item:hover::before { box-shadow: 0 0 20px rgba(79,142,255,0.9); }
.timeline-meta { text-align: right; padding-right: 16px; }
.timeline-year {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}
.timeline-company {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 2px;
}
.timeline-content { padding-left: 40px; }
.timeline-role {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.timeline-bullets { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.timeline-bullets li {
  font-size: 13px;
  color: var(--text-muted);
  padding-left: 14px;
  position: relative;
}
.timeline-bullets li::before {
  content: '·';
  position: absolute; left: 0;
  color: var(--accent-2);
  font-size: 16px;
  line-height: 1;
}

/* ─── FAQ (official profile / SEO) ───────────────────────────── */
.faq-section {
  padding: 120px 0;
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.faq-heading {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.faq-intro {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.6;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 800px;
}
.faq-item {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.faq-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}
.faq-q {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.35;
}
.faq-a {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
}
.faq-a a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(79, 142, 255, 0.35);
}
.faq-a a:hover {
  border-bottom-color: var(--accent);
}

/* ─── ACHIEVEMENTS ────────────────────────────────────────────── */
#achievements {
  padding: 120px 0;
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.achievements-heading {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 64px;
}
.achievements-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.achievement-card {
  padding: 32px 24px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all 0.3s var(--ease);
  position: relative; overflow: hidden;
}
.achievement-card::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(79,142,255,0.08) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.3s;
}
.achievement-card:hover { transform: translateY(-4px); border-color: var(--line-bright); }
.achievement-card:hover::after { opacity: 1; }
.achievement-icon { font-size: 32px; margin-bottom: 16px; }
.achievement-metric {
  font-size: clamp(14px, 5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}
.achievement-label {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ─── SYSTEM DESIGN (BONUS) ───────────────────────────────────── */
#system-design {
  padding: 120px 0;
}
.sysdesign-heading {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.sysdesign-sub {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 56px;
  max-width: 560px;
}
.eda-diagram {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 48px;
  position: relative; overflow: hidden;
}
.eda-diagram::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.eda-nodes {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
}
.eda-node {
  flex: 1; min-width: 120px;
  padding: 18px 14px;
  background: var(--bg-3);
  border: 1px solid var(--line-bright);
  border-radius: var(--radius);
  text-align: center;
  position: relative;
  transition: all 0.3s var(--ease);
}
.eda-node:hover { border-color: var(--accent); box-shadow: 0 0 24px var(--accent-glow); transform: translateY(-2px); }
.eda-node-icon { font-size: 24px; margin-bottom: 6px; }
.eda-node-label { font-size: 11px; font-family: var(--font-mono); color: var(--text-muted); letter-spacing: 0.06em; }
.eda-node-sub { font-size: 10px; color: var(--text-dim); margin-top: 2px; }
.eda-arrow {
  color: var(--accent);
  font-size: 20px;
  animation: arrowPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes arrowPulse {
  0%,100% { opacity: 0.3; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(4px); }
}
.eda-caption {
  text-align: center;
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

.ai-workflow {
  margin-top: 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.ai-step {
  padding: 20px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  transition: all 0.25s var(--ease);
}
.ai-step:hover { border-color: var(--accent-2); transform: translateY(-2px); }
.ai-step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-2);
  margin-bottom: 8px;
}
.ai-step-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.ai-step-desc { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

/* ─── CONTACT ─────────────────────────────────────────────────── */
#contact {
  padding: 120px 0;
  background: var(--bg-1);
  border-top: 1px solid var(--line);
}
.contact-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start;
}
.contact-heading {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.contact-heading em {
  font-style: italic;
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--accent);
}
.contact-sub {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
}
.contact-links { display: flex; flex-direction: column; gap: 16px; }
.contact-link {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: all 0.25s var(--ease);
}
.contact-link:hover { border-color: var(--line-bright); transform: translateX(4px); background: var(--bg-3); }
.contact-link-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-3);
  border: 1px solid var(--line-bright);
  border-radius: 8px;
  font-size: 16px;
  flex-shrink: 0;
}
.contact-link-meta { flex: 1; }
.contact-link-label { font-size: 11px; font-family: var(--font-mono); color: var(--text-dim); letter-spacing: 0.08em; }
.contact-link-value { font-size: 14px; font-weight: 500; margin-top: 1px; }
.contact-link-arrow { color: var(--text-dim); font-size: 14px; transition: color 0.2s, transform 0.2s var(--ease); }
.contact-link:hover .contact-link-arrow { color: var(--accent); transform: translateX(3px); }

/* Contact Form side */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 12px; font-family: var(--font-mono); color: var(--text-dim); letter-spacing: 0.08em; }
.form-input, .form-textarea {
  padding: 13px 16px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-dim); }
.form-input:focus, .form-textarea:focus { border-color: rgba(79,142,255,0.45); box-shadow: 0 0 0 3px rgba(79,142,255,0.08); }
.form-textarea { min-height: 120px; }

/* ─── FOOTER ──────────────────────────────────────────────────── */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-left { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); }
.footer-right { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); }
.footer-brand { color: var(--accent); font-weight: 600; }

/* ─── SCROLL ANIMATIONS ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── MOBILE NAV ──────────────────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0; z-index: 90;
  background: rgba(6,6,8,0.97);
  backdrop-filter: blur(24px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--accent); }
.mobile-close {
  position: absolute; top: 24px; right: 24px;
  font-size: 24px; cursor: pointer; color: var(--text-muted);
  background: none; border: none;
}

/* ─── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  nav { padding: 16px 24px; }
  .nav-logo { font-size: 12px; max-width: 55vw; line-height: 1.35; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .stack-groups { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card.featured { display: flex; flex-direction: column; }
  .timeline::before { left: 0; }
  .timeline-item { grid-template-columns: 1fr; }
  .timeline-meta { text-align: left; padding-right: 0; margin-bottom: 8px; padding-left: 24px; }
  .timeline-item::before { left: 0; }
  .timeline-content { padding-left: 24px; }
  .achievements-grid { grid-template-columns: 1fr 1fr; }
  .eda-nodes { gap: 8px; }
  .ai-workflow { grid-template-columns: 1fr 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  body { cursor: auto; }
  #cursor, #cursor-ring { display: none; }
}
@media (max-width: 600px) {
  .stack-groups { grid-template-columns: 1fr; }
  .achievements-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 24px; }
  .eda-nodes { flex-direction: column; }
  .eda-arrow { transform: rotate(90deg); }
  .ai-workflow { grid-template-columns: 1fr; }
  .about-cards { grid-template-columns: 1fr; }
  .project-etl-cols { grid-template-columns: 1fr; }
}

.error-message {
  color: #ff4d4d;
  font-size: 12px;
  margin-top: 5px;
  display: block;
}

.input-error {
  border: 1px solid #ff4d4d;
}

/* ─── FLOATING ACTIONS (music + chat) ─────────────────────────── */
.fab {
  position: fixed;
  z-index: 99999;
  background: #0084ff;
  color: white;
  padding: 14px 18px;
  border-radius: 50px;
  border: none;
  font-family: var(--font-display), sans-serif;
  font-size: 14px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
}
.fab--music {
  bottom: 25px;
  left: 20px;
}
.fab--music.is-playing {
  background: var(--accent-2);
}
.fab--chat {
  bottom: 20px;
  right: 20px;
  pointer-events: auto;
}

.footer-bar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.btn--block {
  width: 100%;
  justify-content: center;
}

.sysdesign-ai-wrap {
  margin-top: 56px;
}

/* ─── FORM STATUS (EmailJS fallback messaging) ──────────────── */
.form-status {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-top: 12px;
  min-height: 1.2em;
}
.form-status a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.form-status.is-error { color: #f0a8a8; }
.form-status.is-success { color: var(--accent-3); }

/* ─── ACCESSIBILITY: reduced motion ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body { cursor: auto; }
  #cursor, #cursor-ring {
    display: none !important;
  }
  .hero-grid, .orb {
    animation: none !important;
  }
  .hero-badge, .hero-name, .hero-title, .hero-tagline, .hero-ctas, .hero-stats {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
  }
  .scroll-hint {
    opacity: 1 !important;
    animation: none !important;
  }
  .scroll-mouse-wheel {
    animation: none !important;
    transform: translateY(4px);
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .reveal.visible {
    opacity: 1 !important;
    transform: none !important;
  }
}
