/* ═══════════════════════════════════════════════════════════
   ANUBHAV GOEL PORTFOLIO — STYLE.CSS (v2)
   ═══════════════════════════════════════════════════════════ */

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

:root {
  --bg:          #080808;
  --bg2:         #0f0f0f;
  --bg3:         #141414;
  --card:        #181818;
  --border:      #222222;
  --border2:     #2a2a2a;
  --accent:      #00ff87;
  --accent-dim:  rgba(0, 255, 135, 0.08);
  --accent-med:  rgba(0, 255, 135, 0.18);
  --accent-glow: rgba(0, 255, 135, 0.35);
  --text:        #f0f0f0;
  --text2:       #999999;
  --text3:       #555555;
  --white:       #ffffff;
  --red:         #ff4d4d;
  --font-head:   'Space Grotesk', sans-serif;
  --font-body:   'Inter', sans-serif;
  --font-mono:   'JetBrains Mono', monospace;
  --nav-h:       72px;
  --ease:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

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

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: none; border: none; background: none; font-family: inherit; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
::selection { background: var(--accent); color: #000; }

/* ── Custom Cursor ─────────────────────────────────────────── */
.cursor-dot {
  position: fixed; top: 0; left: 0; z-index: 9999;
  width: 8px; height: 8px; background: var(--accent);
  border-radius: 50%; pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s;
  mix-blend-mode: difference;
}
.cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 9998;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(0,255,135,0.5);
  border-radius: 50%; pointer-events: none;
  transform: translate(-50%,-50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s;
}
body.cursor-hover .cursor-dot { width: 12px; height: 12px; }
body.cursor-hover .cursor-ring { width: 56px; height: 56px; border-color: var(--accent); }

/* ── Utility ───────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 48px; }
.highlight { color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 6px;
  font-family: var(--font-head); font-size: 14px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  transition: all 0.25s var(--ease); cursor: none;
}
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,255,135,0.3); }
.btn-outline { border: 1.5px solid var(--border2); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-ghost { color: var(--text2); padding: 14px 16px; }
.btn-ghost:hover { color: var(--accent); }
.btn-resume {
  border: 1.5px solid rgba(0,255,135,0.4);
  color: var(--accent); gap: 8px;
  background: rgba(0,255,135,0.04);
}
.btn-resume svg { flex-shrink: 0; stroke: currentColor; }
.btn-resume:hover { background: rgba(0,255,135,0.12); border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,255,135,0.15); }

/* ── Reveal Animation ──────────────────────────────────────────
   Opacity & transform are controlled by JS (IntersectionObserver).
   .in-view kept as a CSS fallback / class marker.
─────────────────────────────────────────────────────────────── */
.reveal {
  will-change: opacity, transform;
}
/* Fallback — JS overrides with inline styles */
.reveal.in-view { opacity: 1 !important; transform: translateY(0) !important; }

/* ── Section Common ────────────────────────────────────────── */
.section { padding: 120px 0; position: relative; z-index: 1; }

.section-head { margin-bottom: 72px; }

.section-num {
  display: block; font-family: var(--font-mono);
  font-size: 12px; color: var(--accent);
  letter-spacing: 0.2em; margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700; letter-spacing: -0.02em;
  color: var(--white); line-height: 1;
}
.section-underline {
  width: 48px; height: 3px;
  background: var(--accent);
  margin-top: 20px; border-radius: 2px;
}

/* ════════════════════════════════════════════════════════
   NAVBAR
   ════════════════════════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000; height: var(--nav-h);
  transition: background 0.4s, border-bottom 0.4s, backdrop-filter 0.4s;
}
.navbar.scrolled {
  background: rgba(8,8,8,0.9);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 48px;
  height: 100%; display: flex; align-items: center; gap: 48px;
}
.nav-logo {
  font-family: var(--font-head); font-size: 22px; font-weight: 700;
  letter-spacing: -0.02em; color: var(--white); cursor: none;
}
.logo-dot { color: var(--accent); }
.nav-links { display: flex; gap: 32px; list-style: none; margin-left: auto; }
.nav-link {
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  color: var(--text2); letter-spacing: 0.05em; text-transform: uppercase;
  transition: color 0.2s; position: relative; cursor: none;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1.5px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-github {
  font-family: var(--font-mono); font-size: 12px; color: var(--text2);
  letter-spacing: 0.05em; transition: color 0.2s; cursor: none; white-space: nowrap;
}
.nav-github:hover { color: var(--accent); }
.nav-github .arrow { transition: transform 0.2s; display: inline-block; }
.nav-github:hover .arrow { transform: translate(2px,-2px); }

.nav-resume-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent); cursor: none; white-space: nowrap;
  padding: 7px 16px; border-radius: 6px;
  border: 1.5px solid rgba(0,255,135,0.35);
  background: rgba(0,255,135,0.05);
  transition: all 0.25s var(--ease);
}
.nav-resume-btn:hover {
  background: rgba(0,255,135,0.14);
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(0,255,135,0.2);
}
.nav-resume-btn svg { stroke: currentColor; flex-shrink: 0; }
.hamburger { display: none; flex-direction: column; gap: 5px; width: 28px; padding: 4px 0; }
.hamburger span { display: block; height: 2px; background: var(--text2); border-radius: 1px; transition: all 0.3s; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); background: var(--accent); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); background: var(--accent); }

/* ════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════ */
.hero {
  height: 100vh;
  min-height: 600px;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 10px) 48px 20px;
  max-width: 1200px; margin: 0 auto;
  position: relative; gap: 40px;
  box-sizing: border-box;
  overflow: hidden;
}
.hero-bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.03) 1px, transparent 0);
  background-size: 48px 48px; pointer-events: none;
}
.hero-glow {
  position: fixed; top: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse, rgba(0,255,135,0.04) 0%, transparent 70%);
  pointer-events: none; z-index: -1;
}

.hero-content { flex: 1; max-width: 640px; display: flex; flex-direction: column; justify-content: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px; color: var(--accent);
  letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 16px;
  padding: 6px 14px; border: 1px solid rgba(0,255,135,0.2);
  border-radius: 100px; background: var(--accent-dim);
  align-self: flex-start;
}
.badge-dot {
  width: 6px; height: 6px; background: var(--accent); border-radius: 50%;
  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-head);
  font-size: clamp(48px, 7.5vw, 96px);
  font-weight: 800; line-height: 0.9; letter-spacing: -0.04em;
  color: var(--white); margin-bottom: 16px;
}
.name-word {
  display: block;
  background: linear-gradient(135deg, #ffffff 0%, rgba(255,255,255,0.65) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: nameReveal 0.9s var(--ease) both;
}
.name-word:nth-child(1){animation-delay:0.1s}
.name-word:nth-child(2){animation-delay:0.25s}
@keyframes nameReveal {
  from{opacity:0;transform:translateY(40px);clip-path:inset(0 0 100% 0)}
  to{opacity:1;transform:translateY(0);clip-path:inset(0 0 0% 0)}
}

.hero-desc {
  font-size: 16px; color: var(--text2); line-height: 1.6;
  margin-bottom: 24px; max-width: 520px;
  animation: fadeUp 0.8s var(--ease) 0.4s both;
}
@keyframes fadeUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }

.hero-cta {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 36px; animation: fadeUp 0.8s var(--ease) 0.55s both;
}

.hero-stats { display: flex; align-items: center; animation: fadeUp 0.8s var(--ease) 0.7s both; }
.stat-item { display: flex; flex-direction: column; align-items: center; padding: 0 24px; }
.stat-item:first-child { padding-left: 0; }
.stat-value {
  font-family: var(--font-head); font-size: 24px; font-weight: 700;
  color: var(--white); letter-spacing: -0.03em;
}
.stat-plus { font-size: 16px; color: var(--accent); }
.stat-label {
  font-size: 10px; color: var(--text3); text-transform: uppercase;
  letter-spacing: 0.1em; margin-top: 2px; font-family: var(--font-mono);
}
.stat-divider { width: 1px; height: 32px; background: var(--border); }

/* ── 3D Avatar ─────────────────────────────────────────────── */
.hero-avatar-wrap {
  position: relative; width: 320px; height: 320px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  animation: fadeUp 1s var(--ease) 0.3s both;
}
.avatar-orbit {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(0,255,135,0.1);
  animation: spin 20s linear infinite;
}
.orbit-1 { width: 300px; height: 300px; animation-duration: 20s; }
.orbit-2 { width: 380px; height: 380px; animation-duration: 32s; animation-direction: reverse;
  border-style: dashed; border-color: rgba(0,255,135,0.06); }
@keyframes spin { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }

.avatar-face {
  position: relative; width: 220px; height: 220px; border-radius: 50%;
  background: linear-gradient(145deg, #1a1a2e 0%, #0f0f1e 60%, #0a0a14 100%);
  border: 2px solid rgba(0,255,135,0.3);
  display: flex; align-items: center; justify-content: center;
  cursor: none; transition: transform 0.1s ease; transform-style: preserve-3d;
}
.face-glow {
  position: absolute; inset: -20px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,255,135,0.12) 0%, transparent 70%);
  animation: glowPulse 3s ease-in-out infinite;
}
@keyframes glowPulse { 0%,100%{opacity:0.6;transform:scale(1)} 50%{opacity:1;transform:scale(1.05)} }

.face-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; position: relative; z-index: 1; }
.eyes-row { display: flex; gap: 28px; }
.eye {
  width: 46px; height: 46px; border-radius: 50%;
  background: #0d0d18; border: 2px solid rgba(0,255,135,0.25);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.eye-inner { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.pupil {
  width: 20px; height: 20px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #00ff87 0%, #00bb63 60%, #005c30 100%);
  transition: transform 0.08s ease; position: relative;
  box-shadow: 0 0 12px rgba(0,255,135,0.7);
}
.pupil-shine { position: absolute; top: 3px; left: 4px; width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,0.8); }
.face-nose { width: 8px; height: 8px; border-radius: 50%; background: rgba(0,255,135,0.3); margin: -2px 0; }
.face-mouth { width: 50px; height: 22px; position: relative; overflow: hidden; }
.mouth-arc {
  width: 50px; height: 44px; border-radius: 50%;
  border: 2px solid rgba(0,255,135,0.5);
  border-top: none; border-left-color: transparent; border-right-color: transparent;
  transform: scaleX(0.85);
}
.face-code-tag {
  position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 10px; color: var(--accent);
  background: rgba(0,255,135,0.08); border: 1px solid rgba(0,255,135,0.2);
  padding: 3px 10px; border-radius: 4px; white-space: nowrap;
}
.float-badge {
  position: absolute; font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  padding: 5px 10px; border-radius: 6px; border: 1px solid;
  animation: floatBadge 4s ease-in-out infinite;
}
.badge-react { top: 20px; right: -20px; color:#61dafb; border-color:rgba(97,218,251,0.3); background:rgba(97,218,251,0.06); animation-delay:0s; }
.badge-node  { bottom:40px; left:-24px; color:#68a063; border-color:rgba(104,160,99,0.3); background:rgba(104,160,99,0.06); animation-delay:1.5s; }
.badge-ai   { top:60px; left:-16px; color:var(--accent); border-color:rgba(0,255,135,0.3); background:var(--accent-dim); animation-delay:3s; }
@keyframes floatBadge { 0%,100%{transform:translateY(0px)} 50%{transform:translateY(-8px)} }

.scroll-indicator {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  opacity: 0; animation: fadeIn 1s 1.2s forwards;
}
@keyframes fadeIn { to{opacity:1} }
.scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollAnim 2s ease-in-out infinite;
}
@keyframes scrollAnim {
  0%{transform:scaleY(0);transform-origin:top} 50%{transform:scaleY(1);transform-origin:top}
  51%{transform:scaleY(1);transform-origin:bottom} 100%{transform:scaleY(0);transform-origin:bottom}
}
.scroll-indicator span {
  font-family: var(--font-mono); font-size: 9px; color: var(--text3);
  letter-spacing: 0.2em; text-transform: uppercase; transform: rotate(90deg);
}

/* ════════════════════════════════════════════════════════
   ABOUT
   ════════════════════════════════════════════════════════ */
.about-section { background: var(--bg2); }

.about-content { max-width: 720px; }

.about-label {
  font-family: var(--font-mono); font-size: 11px; color: var(--text3);
  letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 24px; display: block;
}
.about-text p {
  font-size: 17px; color: var(--text2); line-height: 1.85; margin-bottom: 20px;
}
.about-text p:last-child { margin-bottom: 0; }

/* ════════════════════════════════════════════════════════
   MY TECH STACK
   ════════════════════════════════════════════════════════ */
.techstack-section { background: var(--bg); }

.ts-head { margin-bottom: 56px; }

.ts-main-title {
  font-family: var(--font-head);
  font-size: clamp(44px, 7vw, 86px);
  font-weight: 800; letter-spacing: -0.03em;
  color: var(--white); line-height: 1;
  margin-bottom: 0;
}

.ts-subtitle {
  font-size: 15px; color: var(--text2); line-height: 1.7;
  margin-top: 20px; max-width: 560px;
}

.ts-rows { display: flex; flex-direction: column; }

.ts-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0 60px;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.ts-row:first-child { border-top: 1px solid var(--border); }

.ts-category-name {
  font-family: var(--font-head);
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1.2;
}

.ts-icons {
  display: flex; flex-wrap: wrap;
  gap: 28px 48px; align-items: center;
}

.ts-item {
  display: flex; align-items: center; gap: 14px;
  cursor: default; transition: transform 0.2s var(--ease);
}
.ts-item:hover { transform: translateY(-3px); }

.ts-icon-box {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
  transition: box-shadow 0.2s, transform 0.2s;
}
.ts-item:hover .ts-icon-box {
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  transform: scale(1.08);
}

.ts-item span {
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  color: var(--text2); white-space: nowrap; transition: color 0.2s;
}
.ts-item:hover span { color: var(--text); }

.ts-custom-text {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; line-height: 1;
}

/* ════════════════════════════════════════════════════════
   EDUCATION — 3-COLUMN CENTERED TIMELINE
   ════════════════════════════════════════════════════════ */
.education-section { background: var(--bg2); }

/* outer wrapper — gives us the 3-column grid context */
.edu-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
}

/* The vertical line container is absolute, centred on the page */
.edu-vline-wrap {
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  transform: translateX(-50%);
  width: 2px;
  pointer-events: none;
  z-index: 1;
}

.edu-vline-track {
  position: relative;
  width: 100%; height: 100%;
  background: var(--border);
  border-radius: 2px;
}

.edu-vline-fill {
  position: absolute; top: 0; left: 0; width: 100%; height: 0%;
  background: linear-gradient(to bottom, var(--accent), rgba(0,255,135,0.25));
  border-radius: 2px; transition: height 0.04s linear;
  box-shadow: 0 0 10px rgba(0,255,135,0.4);
}

/* Each row: 3 cols — left info | center (year+dot) | right content
   Opacity & transform are fully managed by JS inline styles.
───────────────────────────────────────────────────────────────── */
.edu-entry {
  display: grid;
  grid-template-columns: 1fr 180px 1fr;
  gap: 0 40px;
  padding: 56px 0;
  position: relative;
  will-change: opacity, transform;
}
.edu-entry:last-child { padding-bottom: 0; }
/* edu-visible: only controls dot/year visual styling, NOT opacity/transform */
.edu-entry.edu-visible { /* visual cues below */ }

/* Left column */
.edu-left {
  text-align: right;
  padding-right: 24px;
  display: flex; flex-direction: column; justify-content: center;
  align-self: center;
}
.edu-inst {
  font-family: var(--font-head); font-size: 17px; font-weight: 700;
  color: var(--text); margin-bottom: 6px;
}
.edu-sub {
  font-family: var(--font-mono); font-size: 11px; color: var(--text3);
  letter-spacing: 0.08em; text-transform: uppercase;
}

/* Center column — dot + year */
.edu-center-col {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative; z-index: 2;
  gap: 14px;
}

.edu-dot {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--border2);
  transition: background 0.4s, box-shadow 0.4s, border-color 0.4s;
  position: relative;
  flex-shrink: 0;
}
.edu-dot::after {
  content: '';
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  transition: border-color 0.4s;
}
.edu-entry.edu-visible .edu-dot {
  background: var(--accent);
  border-color: rgba(0,255,135,0.5);
  box-shadow: 0 0 16px rgba(0,255,135,0.8), 0 0 32px rgba(0,255,135,0.3);
}
.edu-entry.edu-visible .edu-dot::after {
  border-color: rgba(0,255,135,0.25);
  animation: dotRing 2.5s ease-in-out infinite;
}
@keyframes dotRing { 0%,100%{transform:scale(1);opacity:0.6} 50%{transform:scale(1.6);opacity:0} }

.edu-year {
  font-family: var(--font-head);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800; letter-spacing: -0.03em;
  color: var(--white); text-align: center; line-height: 1.1;
  transition: color 0.4s;
}
.edu-entry.edu-visible .edu-year { color: var(--accent); }

.edu-year-range { font-size: clamp(18px, 2.8vw, 28px); }
.edu-year-range span { display: block; font-size: 18px; color: var(--text3); }

/* Right column */
.edu-right {
  padding-left: 24px;
  display: flex; flex-direction: column; justify-content: center;
  align-self: center;
}
.edu-degree {
  font-family: var(--font-head); font-size: 20px; font-weight: 700;
  color: var(--white); margin-bottom: 8px; letter-spacing: -0.01em;
}
.edu-grade {
  font-size: 14px; color: var(--text2); margin-bottom: 14px;
}
.edu-grade strong { color: var(--accent); }

.edu-pills {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.edu-pills span {
  font-family: var(--font-mono); font-size: 10px; color: var(--text3);
  padding: 3px 10px; border: 1px solid var(--border); border-radius: 100px;
  transition: border-color 0.2s, color 0.2s;
}
.edu-entry.edu-visible .edu-pills span {
  border-color: rgba(0,255,135,0.15); color: var(--text2);
}

/* Horizontal separator between entries */
.edu-entry + .edu-entry::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px; background: var(--border);
}

/* ════════════════════════════════════════════════════════
   PROJECTS
   ════════════════════════════════════════════════════════ */
.projects-section { background: var(--bg); }

.projects-list { display: flex; flex-direction: column; }

.project-row {
  position: relative;
  display: grid; grid-template-columns: 72px 1fr;
  gap: 0 32px; padding: 36px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.3s; overflow: hidden;
}
.project-row:first-child { border-top: 1px solid var(--border); }
.project-row::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, var(--accent-dim));
  opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.project-row:hover::before { opacity: 1; }

.pr-num {
  font-family: var(--font-mono); font-size: 12px; color: var(--text3);
  padding-top: 6px; letter-spacing: 0.08em; transition: color 0.3s;
}
.project-row:hover .pr-num { color: var(--accent); }

.pr-body { min-width: 0; }

.pr-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 20px; margin-bottom: 14px;
}

.pr-name {
  font-family: var(--font-head);
  font-size: clamp(20px, 3.5vw, 32px); font-weight: 800;
  letter-spacing: -0.02em; color: var(--white);
  transition: color 0.25s; line-height: 1.1;
}
.project-row:hover .pr-name { color: var(--accent); }

.pr-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; position: relative; z-index: 30; }

/* Project name — clickable link to live demo */
.pr-name-link {
  cursor: none; display: block;
  text-decoration: none;
}
.pr-live-arrow {
  font-size: 0.6em; color: var(--text3);
  transition: color 0.2s, transform 0.2s;
  display: inline-block; vertical-align: middle;
}
.project-row:hover .pr-live-arrow { color: var(--accent); transform: translate(3px,-3px); }

/* LIVE DEMO button */
.pr-demo-btn {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text3); transition: color 0.2s;
  white-space: nowrap; cursor: none;
  display: flex; align-items: center; gap: 5px;
  padding: 6px 12px; border: 1px solid var(--border);
  border-radius: 5px; transition: all 0.2s;
}
.pr-demo-btn:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-dim); }
.view-arrow { transition: transform 0.2s; display: inline-block; }
.pr-demo-btn:hover .view-arrow { transform: translate(2px,-2px); }

/* GitHub icon button */
.pr-github-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 5px;
  border: 1px solid var(--border); background: transparent;
  color: var(--text3); cursor: none;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.05em; transition: all 0.2s;
  white-space: nowrap;
}
.pr-github-btn:hover { color: var(--white); border-color: var(--border2); background: rgba(255,255,255,0.06); }
.gh-icon { width: 16px; height: 16px; flex-shrink: 0; fill: currentColor; }

.pr-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.pr-tags span {
  font-family: var(--font-mono); font-size: 10px; color: var(--text3);
  padding: 3px 10px; border: 1px solid var(--border); border-radius: 4px;
  transition: border-color 0.2s, color 0.2s;
}
.project-row:hover .pr-tags span { border-color: rgba(0,255,135,0.15); color: var(--text2); }

.pr-desc { font-size: 14px; color: var(--text2); line-height: 1.7; max-width: 600px; margin-bottom: 14px; }
.pr-year { font-family: var(--font-mono); font-size: 11px; color: var(--text3); }

/* Hover Preview */
.pr-preview {
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%) translateX(20px) scale(0.95);
  width: 320px; opacity: 0;
  transition: all 0.4s var(--ease);
  pointer-events: none; z-index: 10;
}
.project-row:hover .pr-preview { opacity: 1; transform: translateY(-50%) translateX(0) scale(1); pointer-events: auto; }

.preview-mock {
  background: var(--card); border: 1px solid var(--border2);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,255,135,0.1);
}
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--bg3); border-bottom: 1px solid var(--border); }
.mock-bar span { width: 8px; height: 8px; border-radius: 50%; }
.mock-bar span:nth-child(1){background:#ff5f57} .mock-bar span:nth-child(2){background:#febc2e} .mock-bar span:nth-child(3){background:#28c840}

.mock-content { display: flex; min-height: 180px; font-size: 10px; }
.mock-sidebar { width: 60px; background: rgba(255,255,255,0.02); border-right: 1px solid var(--border); padding: 12px 8px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.ms-item { width: 36px; height: 8px; background: var(--border2); border-radius: 4px; }
.ms-item.active { background: rgba(0,255,135,0.4); }
.ms-avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #00ff87, #00bb63); margin-bottom: 4px; }
.mock-main { flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.mm-header { display: flex; gap: 6px; flex-wrap: wrap; }
.mm-chip { font-family: var(--font-mono); font-size: 9px; padding: 2px 7px; border-radius: 3px; font-weight: 600; }
.mm-chip.ai{background:rgba(0,255,135,0.15);color:var(--accent)} .mm-chip.rbac{background:rgba(99,102,241,0.15);color:#818cf8} .mm-chip.rag{background:rgba(249,115,22,0.15);color:#fb923c} .mm-chip.lock{background:rgba(0,255,135,0.1);color:var(--accent)}
.mm-lines { display: flex; flex-direction: column; gap: 6px; }
.ml { height: 6px; border-radius: 3px; background: var(--border2); width: 100%; }
.ml.short{width:60%} .ml.mid{width:75%} .ml.blur-bar{background:var(--border);filter:blur(2px)}
.mm-stat-row { display: flex; gap: 12px; margin-top: auto; }
.ms-stat { display: flex; flex-direction: column; }
.ms-num { font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--text2); }
.ms-lbl { font-size: 9px; color: var(--text3); }

.mm-msg-list { display: flex; flex-direction: column; gap: 8px; }
.mm-msg { display: flex; align-items: center; gap: 8px; }
.mm-msg.locked { opacity: 0.4; }
.msg-avatar { width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg,#00ff87,#0099ff); flex-shrink: 0; }
.msg-avatar.blur { filter: blur(3px); }
.msg-body { flex: 1; display: flex; flex-direction: column; gap: 4px; }

.shop-preview { flex-direction: column; padding: 0; }
.shop-nav { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-bottom: 1px solid var(--border); }
.shop-logo { width: 50px; height: 8px; background: var(--accent); border-radius: 2px; opacity: 0.7; }
.shop-cart-icon { font-size: 14px; position: relative; }
.cart-badge { position: absolute; top: -4px; right: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); color: #000; font-size: 8px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.shop-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; padding: 10px; }
.shop-card { background: var(--bg3); border-radius: 4px; padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.sc-img { height: 40px; border-radius: 3px; background: linear-gradient(135deg,var(--border2),var(--border)); }
.sc-img.accent-img { background: linear-gradient(135deg,rgba(0,255,135,0.2),rgba(0,255,135,0.05)); }
.sc-name,.sc-price { height: 5px; border-radius: 2px; }
.sc-name { background: var(--border2); }
.sc-price { width: 50%; background: rgba(0,255,135,0.3); }

.memory-preview { flex-direction: column; padding: 12px; gap: 10px; }
.mem-score { font-family: var(--font-mono); font-size: 10px; color: var(--text2); text-align: center; }
.mem-score span { color: var(--accent); font-weight: 700; }
.mem-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }
.mem-card { height: 36px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 16px; border: 1px solid; }
.mem-card.face-up { background: var(--bg3); border-color: var(--border2); }
.mem-card.face-down { background: linear-gradient(135deg,rgba(0,255,135,0.1),rgba(0,255,135,0.05)); border-color: rgba(0,255,135,0.2); }

/* ════════════════════════════════════════════════════════
   CONTACT
   ════════════════════════════════════════════════════════ */
.contact-section { background: var(--bg2); }

.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: start; }

.contact-heading {
  font-family: var(--font-head); font-size: clamp(36px,5vw,56px);
  font-weight: 800; letter-spacing: -0.03em; color: var(--white);
  line-height: 1.1; margin-bottom: 20px;
}
.contact-sub { font-size: 16px; color: var(--text2); line-height: 1.7; margin-bottom: 40px; }
.contact-info-list { display: flex; flex-direction: column; gap: 16px; }

.ci-item {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; background: var(--card);
  border: 1px solid var(--border); border-radius: 10px;
  transition: all 0.25s; cursor: none;
}
.ci-item:hover { border-color: var(--accent); transform: translateX(6px); background: rgba(0,255,135,0.04); }
.ci-icon { width: 38px; height: 38px; border-radius: 8px; background: var(--bg3); border: 1px solid var(--border2); display: flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0; font-family: var(--font-head); font-weight: 700; font-size: 13px; }
.ci-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ci-label { font-family: var(--font-mono); font-size: 10px; color: var(--text3); letter-spacing: 0.1em; text-transform: uppercase; }
.ci-val { font-size: 13px; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color 0.2s; }
.ci-item:hover .ci-val { color: var(--text); }

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; position: relative; }
.form-group label { font-family: var(--font-mono); font-size: 11px; color: var(--text3); letter-spacing: 0.1em; text-transform: uppercase; }
.form-group input, .form-group textarea {
  background: var(--card); border: 1px solid var(--border); border-radius: 8px;
  padding: 14px 18px; font-family: var(--font-body); font-size: 14px;
  color: var(--text); outline: none; transition: border-color 0.25s, box-shadow 0.25s;
  resize: none; cursor: none;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text3); }
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,255,135,0.08); }
.form-group input.error, .form-group textarea.error { border-color: var(--red); }
.form-error { font-size: 11px; color: var(--red); font-family: var(--font-mono); opacity: 0; transition: opacity 0.2s; margin-top: -4px; }
.form-error.show { opacity: 1; }
.submit-btn { align-self: flex-start; font-size: 14px; gap: 10px; }
.btn-arrow { transition: transform 0.2s; }
.submit-btn:hover .btn-arrow { transform: translateX(4px); }
.form-success {
  font-family: var(--font-mono); font-size: 13px; color: var(--accent);
  padding: 14px 20px; background: var(--accent-dim);
  border: 1px solid rgba(0,255,135,0.25); border-radius: 8px;
  opacity: 0; transform: translateY(8px); transition: all 0.4s var(--ease); pointer-events: none;
}
.form-success.show { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* ════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════ */
.footer { border-top: 1px solid var(--border); padding: 36px 0; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-logo { font-family: var(--font-head); font-size: 20px; font-weight: 700; color: var(--white); }
.footer-copy { font-size: 13px; color: var(--text3); }
.footer-socials { display: flex; gap: 24px; }
.footer-socials a { font-family: var(--font-mono); font-size: 12px; color: var(--text3); letter-spacing: 0.05em; transition: color 0.2s; cursor: none; }
.footer-socials a:hover { color: var(--accent); }

/* ════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .hero { flex-direction: column; align-items: flex-start; padding-top: calc(var(--nav-h) + 60px); }
  .hero-avatar-wrap { align-self: center; }
  .pr-preview { display: none; }
}

@media (max-width: 1000px) {
  .edu-entry { grid-template-columns: 1fr 120px 1fr; gap: 0 24px; }
  .edu-year { font-size: clamp(18px, 3vw, 28px); }
  .ts-row { grid-template-columns: 160px 1fr; gap: 0 40px; }
}

@media (max-width: 900px) {
  .container { padding: 0 28px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .form-row { grid-template-columns: 1fr; }
  .nav-links, .nav-github { display: none; }
  .hamburger { display: flex; margin-left: auto; }
  .nav-inner { gap: 16px; }
  .nav-links.mobile-open {
    display: flex; flex-direction: column;
    position: fixed; inset: var(--nav-h) 0 0 0;
    background: rgba(8,8,8,0.97); backdrop-filter: blur(20px);
    align-items: center; justify-content: center; gap: 32px; z-index: 999;
  }
  .nav-links.mobile-open .nav-link { font-size: 28px; letter-spacing: 0.05em; color: var(--text); }

  /* Education stacks vertically on mobile */
  .edu-vline-wrap { display: none; }
  .edu-entry {
    grid-template-columns: 1fr;
    padding: 40px 0; text-align: left;
  }
  .edu-left { text-align: left; padding-right: 0; padding-bottom: 8px; }
  .edu-center-col { flex-direction: row; justify-content: flex-start; gap: 16px; padding: 12px 0; }
  .edu-year { font-size: 28px; }
  .edu-right { padding-left: 0; }
  .edu-entry + .edu-entry::before { height: 1px; }
  
  .ts-row { grid-template-columns: 1fr; gap: 20px; }
  .ts-category-name { font-size: 28px; }
}

@media (max-width: 640px) {
  .hero { padding: calc(var(--nav-h) + 40px) 24px 80px; }
  .container { padding: 0 24px; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 48px; }
  .hero-avatar-wrap { width: 260px; height: 260px; }
  .avatar-face { width: 170px; height: 170px; }
  .orbit-1 { width: 220px; height: 220px; }
  .orbit-2 { width: 280px; height: 280px; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .stat-item { padding: 0 16px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .ts-icons { gap: 20px 28px; }
}
