/* ═══════════════════════════════════════════
   NITHISH KUMAR — TOP 1% PORTFOLIO
   Dark · Refined · AI Engineer Aesthetic
═══════════════════════════════════════════ */

:root {
  --bg:          #07090d;
  --bg2:         #0c0f16;
  --bg3:         #111520;
  --bg4:         #161b28;
  --accent:      #4fffb0;
  --accent-dim:  rgba(79,255,176,0.1);
  --accent-glow: rgba(79,255,176,0.2);
  --accent-mid:  rgba(79,255,176,0.4);
  --white:       #eef2f7;
  --white-60:    rgba(238,242,247,0.6);
  --white-30:    rgba(238,242,247,0.3);
  --white-10:    rgba(238,242,247,0.1);
  --white-05:    rgba(238,242,247,0.05);
  --border:      rgba(238,242,247,0.07);
  --border-mid:  rgba(238,242,247,0.12);
  --gold:        #f5c842;
  --gold-dim:    rgba(245,200,66,0.15);
  --font-head:   'Syne', sans-serif;
  --font-body:   'Plus Jakarta Sans', sans-serif;
  --font-mono:   'DM Mono', monospace;
  --r:           10px;
  --r-lg:        18px;
  --r-xl:        24px;
  --ease:        cubic-bezier(0.4,0,0.2,1);
  --trans:       0.3s var(--ease);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
em { font-style: normal; color: var(--accent); }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

/* ── MONO HELPER ── */
.mono { font-family: var(--font-mono); }
.dim { color: var(--white-30); }
.accent { color: var(--accent); }

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

/* ══════════════ CURSOR ══════════════ */
#cursor {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width 0.15s, height 0.15s;
  mix-blend-mode: screen;
}
#cursor-follower {
  width: 36px; height: 36px;
  border: 1px solid rgba(79,255,176,0.35);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%);
  display: flex; align-items: center; justify-content: center;
  transition: width 0.35s, height 0.35s, border-color 0.35s, opacity 0.3s;
}
.follower-dot {
  width: 2px; height: 2px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.5;
}
body:has(a:hover, button:hover) #cursor { width: 10px; height: 10px; }
body:has(a:hover, button:hover) #cursor-follower { width: 52px; height: 52px; border-color: var(--accent-mid); }

/* ══════════════ LOADER ══════════════ */
#loader {
  position: fixed; inset: 0; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  z-index: 10000; transition: opacity 0.7s var(--ease), visibility 0.7s;
}
#loader.hidden { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.loader-logo { width: 80px; height: 80px; }
.loader-ring {
  animation: ringFill 1.2s var(--ease) forwards;
  transform-origin: center;
  transform: rotate(-90deg);
}
@keyframes ringFill { to { stroke-dashoffset: 0; } }
.loader-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--white-30);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.loader-dots { color: var(--accent); animation: dots 1s step-end infinite; }
@keyframes dots {
  0%   { content: '.'; }
  33%  { opacity: 0.5; }
  66%  { opacity: 1; }
  100% { opacity: 0.3; }
}

/* ══════════════ NAVBAR ══════════════ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; gap: 2rem;
  padding: 1.2rem 3rem;
  transition: all 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
#navbar.scrolled {
  background: rgba(7,9,13,0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: var(--border);
}
.nav-logo { display: flex; align-items: center; margin-right: auto; }
.logo-svg { width: 34px; height: 34px; transition: transform var(--trans); }
.nav-logo:hover .logo-svg { transform: rotate(12deg); }
.nav-links { display: flex; gap: 2.5rem; }
.nav-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--white-30);
  letter-spacing: 0.08em;
  position: relative;
  transition: color var(--trans);
}
.nav-link::after {
  content: '';
  position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width var(--trans);
}
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-cta {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent);
  border: 1px solid var(--accent-mid);
  padding: 0.5rem 1.1rem;
  border-radius: 100px;
  transition: all var(--trans);
  letter-spacing: 0.05em;
}
.nav-cta svg { width: 14px; height: 14px; }
.nav-cta:hover {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 24px var(--accent-glow);
}
.hamburger {
  display: none; flex-direction: column; gap: 6px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--white); border-radius: 2px;
  transition: all 0.3s;
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed; inset: 0; background: var(--bg);
  z-index: 999; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.77,0,0.175,1);
}
.mobile-menu.open { transform: translateX(0); }
.mob-close {
  position: absolute; top: 1.5rem; right: 2rem;
  background: none; border: none; cursor: pointer;
  color: var(--white-30); padding: 0.5rem;
}
.mob-close svg { width: 24px; height: 24px; }
.mobile-menu ul { text-align: center; margin-bottom: 3rem; }
.mobile-menu li { margin: 1.2rem 0; }
.mob-link {
  font-family: var(--font-head);
  font-size: 2.5rem; font-weight: 800;
  color: var(--white-30);
  display: flex; align-items: baseline; gap: 1rem;
  transition: color 0.25s;
}
.mob-link span { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent); }
.mob-link:hover { color: var(--white); }
.mob-cta {
  font-family: var(--font-mono); font-size: 0.9rem;
  color: var(--accent); border: 1px solid var(--accent-mid);
  padding: 0.85rem 2.5rem; border-radius: 100px;
  transition: all var(--trans);
}
.mob-cta:hover { background: var(--accent); color: var(--bg); }

/* ══════════════ REVEAL ══════════════ */
.reveal-up {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: var(--delay, 0s);
}
.reveal-up.in-view { opacity: 1; transform: translateY(0); }

/* ══════════════ SECTION SHARED ══════════════ */
section { padding: 7rem 0; }
.section-eyebrow {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--white-30);
  letter-spacing: 0.1em;
}
.section-eyebrow .accent { font-weight: 500; }
.eyebrow-line {
  flex: 1; height: 1px;
  background: var(--border);
  max-width: 60px;
}
.section-heading {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}
.section-sub {
  color: var(--white-60);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 540px;
  margin-bottom: 3rem;
}

/* ══════════════ HERO ══════════════ */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 7rem 3rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero-noise {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' 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)'/%3E%3C/svg%3E");
  background-size: 200px;
}
#hero-canvas {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none; opacity: 0.6;
}
.hero-left {
  position: relative; z-index: 2;
  display: flex; gap: 2rem; align-items: flex-start;
}
.hero-index {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  padding-top: 0.5rem;
  flex-shrink: 0;
}
.hero-index .mono { font-size: 0.65rem; letter-spacing: 0.12em; }
.hero-line { flex: 1; width: 1px; background: var(--border); min-height: 60px; }
.hero-content { flex: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  border: 1px solid var(--border-mid);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.72rem; font-weight: 500;
  margin-bottom: 2rem;
  color: var(--white-60);
  letter-spacing: 0.06em;
  background: var(--white-05);
}
.badge-pulse {
  width: 7px; height: 7px; background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(34,197,94,0.5);
  animation: badgePulse 2s infinite;
}
@keyframes badgePulse {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  70%  { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
.hero-name {
  font-family: var(--font-head);
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}
.name-line { display: block; }
.accent-line { color: var(--white); }
.accent-dot { color: var(--accent); }
.hero-role {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--white-60);
  margin-bottom: 1.5rem;
  height: 1.6rem;
}
.typed-text { color: var(--accent); font-weight: 500; }
.cursor-blink {
  color: var(--accent); font-weight: 300;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.hero-tagline {
  font-size: 1.05rem;
  color: var(--white-60);
  line-height: 1.75;
  max-width: 500px;
  margin-bottom: 2.5rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.btn-primary-pill {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.82rem; font-weight: 500;
  padding: 0.8rem 1.8rem;
  border-radius: 100px;
  letter-spacing: 0.04em;
  transition: all var(--trans);
}
.btn-primary-pill svg { width: 14px; height: 14px; }
.btn-primary-pill:hover {
  box-shadow: 0 0 32px var(--accent-glow), 0 4px 20px rgba(79,255,176,0.3);
  transform: translateY(-2px);
}
.btn-ghost-pill {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--white-60);
  border: 1px solid var(--border-mid);
  padding: 0.8rem 1.8rem;
  border-radius: 100px;
  letter-spacing: 0.04em;
  transition: all var(--trans);
}
.btn-ghost-pill:hover { border-color: var(--accent); color: var(--accent); }
.hero-socials { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.social-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--white-30);
  border: 1px solid var(--border);
  padding: 0.45rem 1rem;
  border-radius: 100px;
  transition: all var(--trans);
}
.social-pill svg { width: 13px; height: 13px; }
.social-pill:hover { border-color: var(--border-mid); color: var(--white-60); transform: translateY(-1px); }

/* HERO RIGHT */
.hero-right { position: relative; z-index: 2; }

/* TERMINAL */
.terminal-window {
  background: var(--bg3);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 60px rgba(79,255,176,0.04);
  position: relative;
}
.term-bar {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1.2rem;
  background: rgba(255,255,255,0.025);
  border-bottom: 1px solid var(--border);
}
.term-dots { display: flex; gap: 6px; }
.td { width: 12px; height: 12px; border-radius: 50%; }
.td.red { background: #ff5f57; }
.td.yellow { background: #febc2e; }
.td.green { background: #28c840; }
.term-title { flex: 1; text-align: center; font-size: 0.72rem; color: var(--white-30); }
.term-controls { color: var(--white-30); opacity: 0.5; }
.term-body { display: flex; padding: 1.25rem 1.5rem; overflow: hidden; }
.line-nums {
  display: flex; flex-direction: column;
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--white-30); opacity: 0.4;
  padding-right: 1.2rem;
  border-right: 1px solid var(--border);
  margin-right: 1.2rem;
  user-select: none;
  line-height: 1.65;
}
.term-code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--white);
  white-space: pre;
  overflow: hidden;
}
.t-kw  { color: #ff79c6; }
.t-cls { color: #8be9fd; }
.t-fn  { color: #50fa7b; }
.t-str { color: #f1fa8c; }
.t-op  { color: #ff79c6; }
.t-punc{ color: var(--white-60); }
.t-green { color: #28c840; }
.term-footer {
  padding: 0.6rem 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.7rem;
  color: var(--white-30);
  display: flex; align-items: center; gap: 0.4rem;
}

/* FLOATING BADGES */
.hero-float-badge {
  position: absolute;
  background: var(--bg4);
  border: 1px solid var(--border-mid);
  border-radius: var(--r);
  padding: 0.6rem 1rem;
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--white-60);
  display: flex; align-items: center; gap: 0.5rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.t-gold { color: var(--gold); }
.fb-1 { bottom: -1rem; left: -1.5rem; }
.fb-2 { top: -1rem; right: -1.5rem; }
.fb-2 span:first-child { color: var(--accent); font-weight: 600; }

/* SCROLL CUE */
.hero-scroll-cue {
  position: absolute; bottom: 2.5rem; left: 3rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  z-index: 2;
}
.scroll-mouse {
  width: 22px; height: 36px;
  border: 1px solid var(--border-mid);
  border-radius: 100px;
  display: flex; justify-content: center; padding-top: 5px;
}
.scroll-wheel {
  width: 3px; height: 6px;
  background: var(--accent);
  border-radius: 100px;
  animation: scrollWheel 2s var(--ease) infinite;
}
@keyframes scrollWheel {
  0%   { transform: translateY(0); opacity: 1; }
  80%  { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}
.hero-scroll-cue .mono { font-size: 0.62rem; color: var(--white-30); letter-spacing: 0.15em; text-transform: uppercase; }

/* ══════════════ ABOUT ══════════════ */
#about { background: var(--bg2); }
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem; align-items: center;
}
.about-text p {
  color: var(--white-60); line-height: 1.85;
  margin-bottom: 1.3rem; font-size: 1rem;
}
.currently-block {
  margin: 2rem 0;
  padding: 1.2rem 1.5rem;
  background: var(--white-05);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--r) var(--r) 0;
  display: flex; flex-direction: column; gap: 0.75rem;
}
.cb-label { font-size: 0.75rem; color: var(--accent); letter-spacing: 0.08em; }
.cb-items { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.cb-items span {
  font-family: var(--font-mono); font-size: 0.72rem;
  padding: 0.3rem 0.75rem;
  background: var(--accent-dim);
  border: 1px solid rgba(79,255,176,0.2);
  border-radius: 100px;
  color: var(--accent);
}
.about-stats { display: flex; gap: 0; margin-top: 2.5rem; border-top: 1px solid var(--border); }
.stat-block {
  flex: 1; padding: 1.5rem 1.5rem 1rem 0;
  border-right: 1px solid var(--border);
}
.stat-block:first-child { padding-left: 0; }
.stat-block:last-child { border-right: none; padding-left: 1.5rem; }
.stat-value {
  font-family: var(--font-head);
  font-size: 2.2rem; font-weight: 800;
  line-height: 1; margin-bottom: 0.4rem;
}
.stat-desc { font-family: var(--font-mono); font-size: 0.72rem; color: var(--white-30); letter-spacing: 0.06em; }

/* ARCH CARD */
.about-diagram { display: flex; justify-content: center; }
.arch-card {
  background: var(--bg3); border: 1px solid var(--border-mid);
  border-radius: var(--r-xl); overflow: hidden;
  width: 100%; max-width: 380px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.arch-header {
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.72rem; color: var(--white-30);
  background: var(--white-05);
}
.arch-body {
  padding: 2rem 1.5rem;
  display: flex; flex-direction: column; align-items: center; gap: 0;
}
.arch-node {
  border: 1px solid var(--border-mid);
  border-radius: var(--r);
  padding: 0.55rem 1.2rem;
  font-family: var(--font-mono); font-size: 0.75rem;
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--bg4);
  color: var(--white-60);
  transition: all var(--trans);
}
.center-node.accent-node {
  border-color: var(--accent-mid);
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 500;
  box-shadow: 0 0 20px var(--accent-dim);
}
.arch-arrow-down {
  width: 1px; height: 24px;
  background: linear-gradient(to bottom, var(--border-mid), var(--accent-mid));
  margin: 6px 0;
}
.arch-branches {
  display: flex; gap: 0.75rem; margin-top: 12px; width: 100%;
}
.arch-branch { flex: 1; display: flex; flex-direction: column; gap: 0.4rem; position: relative; }
.arch-branch::before {
  content: '';
  position: absolute; top: -12px; left: 50%; right: auto;
  width: 1px; height: 12px;
  background: var(--border-mid);
}
.arch-micro-node {
  font-family: var(--font-mono); font-size: 0.65rem;
  padding: 0.4rem 0.6rem;
  background: var(--white-05);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--white-30);
  text-align: center;
  transition: all var(--trans);
}
.arch-micro-node:hover { border-color: var(--accent-mid); color: var(--accent); }
.arch-footer-label { font-size: 0.65rem; margin-top: 1.2rem; letter-spacing: 0.08em; }

/* ══════════════ SKILLS ══════════════ */
#skills { background: var(--bg); }
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.skill-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
  position: relative; overflow: hidden;
  transition: border-color var(--trans), transform var(--trans);
}
.skill-card:hover { border-color: var(--border-mid); transform: translateY(-3px); }
.sk-glow {
  position: absolute; top: -40px; right: -40px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, var(--accent-dim) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0; transition: opacity var(--trans);
}
.sk-ai .sk-glow, .sk-backend .sk-glow { opacity: 1; }
.sk-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.sk-icon {
  width: 40px; height: 40px;
  background: var(--white-05);
  border: 1px solid var(--border);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.sk-icon svg { width: 20px; height: 20px; }
.sk-priority {
  font-family: var(--font-mono); font-size: 0.62rem;
  color: var(--accent); border: 1px solid rgba(79,255,176,0.25);
  padding: 0.2rem 0.6rem; border-radius: 100px;
  letter-spacing: 0.08em;
  background: var(--accent-dim);
}
.skill-card h3 {
  font-family: var(--font-head);
  font-size: 1.1rem; font-weight: 700; margin-bottom: 1.2rem;
}
.skill-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill {
  font-family: var(--font-mono); font-size: 0.7rem;
  padding: 0.3rem 0.75rem;
  background: var(--white-05);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--white-30);
  transition: all 0.2s;
}
.skill-card:hover .pill { border-color: var(--border-mid); color: var(--white-60); }
.accent-pill {
  background: var(--accent-dim);
  border-color: rgba(79,255,176,0.2);
  color: var(--accent);
}

/* ══════════════ ACHIEVEMENTS ══════════════ */
#achievements { background: var(--bg2); }
.ach-hero {
  background: var(--bg3);
  border: 1px solid rgba(79,255,176,0.15);
  border-radius: var(--r-xl);
  padding: 3rem;
  margin-bottom: 1.5rem;
  position: relative; overflow: hidden;
}
.ach-hero-glow {
  position: absolute; top: -100px; right: -100px;
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(79,255,176,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.ach-ribbon {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: linear-gradient(135deg, rgba(245,200,66,0.15), rgba(245,200,66,0.07));
  border: 1px solid rgba(245,200,66,0.25);
  color: var(--gold);
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500;
  padding: 0.4rem 1.1rem; border-radius: 100px;
  letter-spacing: 0.06em;
  margin-bottom: 2rem;
}
.ach-hero-body { display: flex; gap: 3rem; align-items: flex-start; }
.ach-left { flex: 1; }
.ach-event {
  font-size: 0.72rem; color: var(--accent);
  letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.ach-left h3 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800; line-height: 1.05;
  margin-bottom: 1.2rem;
}
.ach-desc { color: var(--white-60); line-height: 1.8; margin-bottom: 1.5rem; font-size: 0.95rem; max-width: 560px; }
.ach-pills { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.ach-pills span {
  font-family: var(--font-mono); font-size: 0.7rem;
  padding: 0.3rem 0.85rem;
  background: var(--accent-dim);
  border: 1px solid rgba(79,255,176,0.2);
  border-radius: 100px; color: var(--accent);
}
.ach-right { flex-shrink: 0; }
.trophy-display { text-align: center; }
.trophy-ring {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: conic-gradient(var(--gold) 0deg, var(--gold-dim) 360deg);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  animation: trophySpin 8s linear infinite;
  padding: 2px;
}
@keyframes trophySpin {
  from { background: conic-gradient(var(--gold) 0deg, var(--gold-dim) 360deg); }
  to   { background: conic-gradient(var(--gold) 360deg, var(--gold-dim) 360deg); }
}
.trophy-inner {
  width: 114px; height: 114px;
  border-radius: 50%;
  background: var(--bg3);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.2rem;
}
.trophy-emoji { font-size: 2rem; line-height: 1; }
.trophy-rank {
  font-family: var(--font-head);
  font-size: 1.4rem; font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.trophy-name { font-family: var(--font-mono); font-size: 0.78rem; color: var(--white-60); margin-bottom: 0.2rem; }
.trophy-event { font-size: 0.68rem; }

.ach-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.ach-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.8rem;
  display: flex; flex-direction: column; gap: 1rem;
  position: relative; overflow: hidden;
  transition: border-color var(--trans), transform var(--trans);
}
.ach-card:hover { border-color: var(--border-mid); transform: translateY(-3px); }
.ach-card-icon { font-size: 2rem; }
.ach-card-body h4 { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.ach-card-body p { font-size: 0.88rem; color: var(--white-60); line-height: 1.7; }
.ach-card-tag {
  position: absolute; top: 1.5rem; right: 1.5rem;
  font-size: 0.65rem; color: var(--white-30);
  border: 1px solid var(--border);
  padding: 0.2rem 0.6rem; border-radius: 100px;
  letter-spacing: 0.08em;
}

/* ══════════════ PROJECTS ══════════════ */
#projects { background: var(--bg); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.proj-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  transition: all var(--trans);
}
.proj-card:hover { border-color: var(--border-mid); transform: translateY(-4px); }
.proj-glow {
  position: absolute; top: -50px; right: -50px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(79,255,176,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.proj-card.featured {
  grid-column: span 3;
  border-color: rgba(79,255,176,0.12);
}
.proj-card.featured:hover { border-color: rgba(79,255,176,0.22); }
.proj-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.2rem; }
.proj-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.pbadge {
  font-family: var(--font-mono); font-size: 0.65rem;
  padding: 0.25rem 0.7rem;
  background: var(--white-05);
  border: 1px solid var(--border);
  border-radius: 100px; color: var(--white-30);
}
.pbadge.gold {
  background: var(--gold-dim);
  border-color: rgba(245,200,66,0.25);
  color: var(--gold);
}
.proj-gh-btn {
  width: 32px; height: 32px;
  background: var(--white-05);
  border: 1px solid var(--border);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  color: var(--white-30); transition: all var(--trans); flex-shrink: 0;
}
.proj-gh-btn:hover { border-color: var(--accent-mid); color: var(--accent); }
.proj-card h3 {
  font-family: var(--font-head);
  font-size: 1.3rem; font-weight: 800;
  margin-bottom: 0.75rem; line-height: 1.2;
}
.proj-card.featured h3 { font-size: 1.6rem; }
.proj-card p {
  font-size: 0.88rem; color: var(--white-60);
  line-height: 1.75; flex: 1; margin-bottom: 1.5rem;
}
.proj-stack { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: auto; }
.proj-stack span {
  font-family: var(--font-mono); font-size: 0.68rem;
  padding: 0.25rem 0.7rem;
  background: var(--accent-dim);
  border: 1px solid rgba(79,255,176,0.15);
  border-radius: 100px; color: var(--accent);
}

/* MINI ARCH in featured card */
.proj-arch {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.75rem; margin: 1.5rem 0;
  padding: 1.5rem;
  background: var(--white-05);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.pa-node { font-family: var(--font-mono); font-size: 0.75rem; }
.pa-center {
  background: var(--accent-dim);
  border: 1px solid var(--accent-mid);
  border-radius: var(--r);
  padding: 0.4rem 1.2rem;
  color: var(--accent); font-weight: 500;
}
.pa-agents { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }
.pa-agents span {
  font-family: var(--font-mono); font-size: 0.65rem;
  padding: 0.25rem 0.65rem;
  background: var(--white-05);
  border: 1px solid var(--border);
  border-radius: 100px; color: var(--white-30);
  transition: all var(--trans);
}
.pa-agents span:hover { border-color: var(--accent-mid); color: var(--accent); }

/* ══════════════ ACHIEVEMENTS PRO ══════════════ */
.ach-hero-particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ach-particle {
  position: absolute;
  width: 2px; height: 2px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 4s ease-in-out infinite;
}
.ach-particle:nth-child(1) { left: 15%; top: 20%; animation-delay: 0s; }
.ach-particle:nth-child(2) { left: 60%; top: 40%; animation-delay: 1.5s; }
.ach-particle:nth-child(3) { left: 85%; top: 70%; animation-delay: 3s; }
@keyframes particleFloat {
  0%, 100% { opacity: 0; transform: translateY(0); }
  50% { opacity: 0.6; transform: translateY(-20px); }
}
.ribbon-icon { font-size: 0.9rem; }
.ribbon-live {
  margin-left: 0.5rem;
  background: rgba(79,255,176,0.15);
  border: 1px solid rgba(79,255,176,0.3);
  color: var(--accent);
  font-size: 0.6rem;
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
  letter-spacing: 0.15em;
  animation: livePulse 2s ease-in-out infinite;
}
@keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.ach-meta-row {
  display: flex; align-items: center; gap: 1.5rem;
  margin: 1.5rem 0;
}
.ach-meta-item { text-align: center; }
.ach-meta-val {
  display: block;
  font-size: 1.6rem; font-weight: 500;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.ach-meta-label { font-size: 0.68rem; color: var(--white-30); letter-spacing: 0.1em; text-transform: uppercase; }
.ach-meta-divider { width: 1px; height: 32px; background: var(--border); }

.ach-gh-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.78rem;
  color: var(--white-60);
  border: 1px solid var(--border);
  padding: 0.5rem 1.1rem;
  border-radius: 100px;
  transition: all var(--trans);
}
.ach-gh-link:hover { border-color: var(--accent-mid); color: var(--accent); }
.ach-gh-arrow { margin-left: 0.2rem; }

/* Trophy orbit */
.trophy-orbit { position: relative; width: 140px; height: 140px; margin: 0 auto 1rem; }
.trophy-ring {
  width: 140px; height: 140px;
  border-radius: 50%;
  background: conic-gradient(var(--gold) 0deg, rgba(245,200,66,0.08) 180deg, var(--gold) 360deg);
  display: flex; align-items: center; justify-content: center;
  animation: trophySpin 6s linear infinite;
  padding: 2px;
}
.trophy-inner {
  width: 134px; height: 134px;
  border-radius: 50%;
  background: var(--bg3);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.2rem;
}
.orbit-dot {
  position: absolute;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: orbitSpin 4s linear infinite;
}
.od1 { animation-delay: 0s; }
.od2 { animation-delay: -1.33s; }
.od3 { animation-delay: -2.66s; }
@keyframes orbitSpin {
  0%   { transform: rotate(0deg)   translateX(72px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(72px) rotate(-360deg); }
}

/* Achievement cards pro */
.ach-card-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 1rem;
}
.ach-card-icon-wrap {
  width: 48px; height: 48px;
  background: var(--bg4);
  border: 1px solid var(--border);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  transition: border-color var(--trans), transform var(--trans);
}
.ach-card:hover .ach-card-icon-wrap { border-color: var(--accent-mid); transform: scale(1.05); }
.ach-card-footer {
  margin-top: auto;
  padding-top: 1rem;
  display: flex; align-items: center; gap: 1rem;
}
.ach-card-year { font-size: 0.68rem; white-space: nowrap; }
.ach-card-bar {
  flex: 1; height: 2px; background: var(--border); border-radius: 2px; overflow: hidden;
}
.ach-card-fill {
  height: 100%; background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 2px;
}

/* ══════════════ PROJECTS PRO ══════════════ */
.proj-featured-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at top right, rgba(79,255,176,0.04) 0%, transparent 55%),
              radial-gradient(ellipse at bottom left, rgba(245,200,66,0.03) 0%, transparent 55%);
  pointer-events: none;
}
.proj-featured-content {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem;
  align-items: start;
}
.proj-stats-row {
  display: flex; gap: 1.5rem; margin: 1.2rem 0;
}
.proj-stat { text-align: center; }
.proj-stat-val {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.5rem; font-weight: 500;
  color: var(--accent); line-height: 1;
  margin-bottom: 0.2rem;
}
.proj-stat-lbl { font-size: 0.65rem; color: var(--white-30); text-transform: uppercase; letter-spacing: 0.1em; }

.proj-gh-btn-pro {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--white-30);
  border: 1px solid var(--border);
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  transition: all var(--trans); flex-shrink: 0;
  white-space: nowrap;
}
.proj-gh-btn-pro:hover { border-color: var(--accent-mid); color: var(--accent); background: var(--accent-dim); }

.proj-number {
  font-size: 3.5rem; font-weight: 500;
  line-height: 1;
  margin-bottom: 0.5rem;
  opacity: 0.07;
  letter-spacing: -0.04em;
}

.proj-card:hover .proj-number { opacity: 0.12; }

.pa-connector-line {
  width: 1px; height: 20px;
  background: linear-gradient(to bottom, var(--accent-mid), transparent);
  margin: 0.5rem auto;
}

/* badge variants */
.pbadge.ai-badge { background: rgba(79,255,176,0.08); border-color: rgba(79,255,176,0.2); color: var(--accent); }
.pbadge.dev-badge { background: rgba(100,160,255,0.08); border-color: rgba(100,160,255,0.2); color: #64a0ff; }
.pbadge.web-badge { background: rgba(200,100,255,0.08); border-color: rgba(200,100,255,0.2); color: #c864ff; }

/* ══════════════ CONTACT ══════════════ */
#contact { background: var(--bg2); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: start;
}
.contact-left .section-heading { margin-bottom: 1rem; }
.contact-links { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.cl-item {
  display: flex; align-items: center; gap: 1.2rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.2rem 1.5rem;
  transition: all var(--trans);
}
.cl-item:hover { border-color: var(--border-mid); transform: translateX(6px); }
.cl-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--accent-dim);
  border: 1px solid rgba(79,255,176,0.2);
  border-radius: var(--r); display: flex;
  align-items: center; justify-content: center;
  color: var(--accent);
}
.cl-icon svg { width: 18px; height: 18px; }
.cl-label { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.2rem; color: var(--accent); }
.cl-val { font-size: 0.85rem; color: var(--white-60); word-break: break-all; }
.cl-arrow { margin-left: auto; font-size: 1rem; color: var(--white-30); transition: all var(--trans); }
.cl-item:hover .cl-arrow { color: var(--accent); transform: translate(3px,-3px); }

/* FORM */
.contact-form-wrap {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2.5rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-field { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }
.form-field label { font-size: 0.7rem; color: var(--white-30); letter-spacing: 0.1em; text-transform: uppercase; }
.form-field input,
.form-field textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 0.85rem 1rem;
  color: var(--white);
  font-family: var(--font-body); font-size: 0.9rem;
  outline: none; resize: none;
  transition: border-color var(--trans), box-shadow var(--trans);
}
.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(79,255,176,0.35);
  box-shadow: 0 0 0 3px rgba(79,255,176,0.06);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--white-30); }
.form-submit-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 0.75rem;
  background: var(--accent); color: var(--bg);
  font-family: var(--font-mono); font-size: 0.85rem; font-weight: 500;
  border: none; border-radius: var(--r-lg);
  padding: 1rem; cursor: pointer;
  transition: all var(--trans); letter-spacing: 0.04em;
}
.form-submit-btn svg { width: 16px; height: 16px; }
.form-submit-btn:hover {
  box-shadow: 0 0 32px var(--accent-glow), 0 4px 20px rgba(79,255,176,0.25);
  transform: translateY(-2px);
}

/* ══════════════ FOOTER ══════════════ */
footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-left { display: flex; align-items: center; gap: 1.5rem; }
.footer-logo { font-family: var(--font-head); font-size: 1.2rem; font-weight: 800; }
.footer-tagline { font-size: 0.72rem; letter-spacing: 0.06em; }
footer .mono.dim { font-size: 0.75rem; }

/* ══════════════ RESPONSIVE ══════════════ */
@media (max-width: 1100px) {
  #hero { grid-template-columns: 1fr; gap: 3rem; }
  .hero-right { display: none; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .proj-card.featured { grid-column: span 2; }
}

@media (max-width: 768px) {
  #navbar { padding: 1rem 1.5rem; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  section { padding: 5rem 0; }
  .container { padding: 0 1.5rem; }
  #hero { padding: 7rem 1.5rem 4rem; }
  .hero-left { gap: 1rem; }
  .hero-scroll-cue { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-diagram { display: none; }
  .skills-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .proj-card.featured { grid-column: span 1; }
  .proj-featured-content { grid-template-columns: 1fr; gap: 1.5rem; }
  .ach-hero-body { flex-direction: column; gap: 2rem; }
  .ach-row { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }
  #cursor, #cursor-follower { display: none; }
  body { cursor: default; }
  a, button { cursor: pointer; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn-primary-pill, .btn-ghost-pill { justify-content: center; }
  .about-stats { flex-wrap: wrap; }
  .stat-block { min-width: 130px; }
}

/* ══════════════ FOOTER ══════════════ */
footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 2rem;
  flex-wrap: wrap;
}
.footer-logo {
  font-family: var(--font-head);
  font-size: 1.2rem; font-weight: 800;
}
.footer-links {
  display: flex; gap: 2rem;
}
.footer-links a {
  font-size: 0.75rem; color: var(--white-30);
  letter-spacing: 0.08em;
  transition: color var(--trans);
}
.footer-links a:hover { color: var(--accent); }
