/* ============================================================
   DARK PRECISION — Portfolio Design System
   Vignesh Ramalingam · Staff QA Engineer
   ============================================================ */

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

:root {
  /* Palette */
  --indigo:      #6366f1;
  --indigo-dk:   #4f46e5;
  --indigo-lt:   #818cf8;
  --emerald:     #10b981;
  --emerald-dk:  #059669;
  --amber:       #f59e0b;
  --amber-dk:    #d97706;

  /* Dark theme defaults */
  --bg:          #0d1117;
  --bg-alt:      #161b22;
  --bg-card:     #1c2333;
  --bg-card-hov: #202a3a;
  --border:      rgba(255,255,255,0.08);
  --border-hov:  rgba(99,102,241,0.35);
  --text:        #e6edf3;
  --text-muted:  #8b949e;
  --text-faint:  #4d5566;

  /* Typography */
  --font-head: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing / radii */
  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-xl:  28px;

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0,0,0,0.35);
  --shadow-glow: 0 0 40px rgba(99,102,241,0.18);

  /* Nav */
  --nav-bg:      rgba(13,17,23,0.82);
  --nav-border:  rgba(255,255,255,0.09);
}

[data-theme="light"] {
  --bg:          #f6f8fa;
  --bg-alt:      #eef1f5;
  --bg-card:     #ffffff;
  --bg-card-hov: #f0f4ff;
  --border:      rgba(0,0,0,0.08);
  --border-hov:  rgba(99,102,241,0.3);
  --text:        #1a202c;
  --text-muted:  #5a6478;
  --text-faint:  #9aa3b0;
  --nav-bg:      rgba(246,248,250,0.88);
  --nav-border:  rgba(0,0,0,0.09);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.1);
  --shadow-glow: 0 0 40px rgba(99,102,241,0.12);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-head);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  transition: background .3s, color .3s;
}

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

/* ── Utility ─────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

.text-gradient {
  background: linear-gradient(135deg, var(--indigo-lt) 0%, var(--emerald) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── FLOATING PILL NAV ───────────────────────────────────── */
.pill-nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: min(calc(100% - 32px), 860px);
  background: var(--nav-bg);
  border: 1px solid var(--nav-border);
  border-radius: 999px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  overflow: hidden;
}

.pill-nav-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
}

.nav-logo {
  font-weight: 800;
  font-size: .9rem;
  letter-spacing: .08em;
  color: var(--indigo-lt);
  padding: 4px 10px;
  background: rgba(99,102,241,0.12);
  border-radius: 999px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-link {
  font-size: .78rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--text-muted);
  transition: color .2s, background .2s;
}
.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: rgba(99,102,241,0.15);
}
.nav-link.active { color: var(--indigo-lt); }

.theme-toggle {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--text-muted);
  background: rgba(255,255,255,0.06);
  flex-shrink: 0;
  transition: color .2s, background .2s;
}
.theme-toggle:hover { color: var(--text); background: rgba(99,102,241,0.15); }

[data-theme="dark"]  .icon-sun  { display: block; }
[data-theme="dark"]  .icon-moon { display: none; }
[data-theme="light"] .icon-sun  { display: none; }
[data-theme="light"] .icon-moon { display: block; }

.nav-progress {
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--indigo), var(--emerald));
  transition: width .1s linear;
  border-radius: 0 0 999px 999px;
}

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 110px 0 80px;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Ambient orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
.orb-1 {
  width: 500px; height: 500px;
  top: -120px; left: -100px;
  background: rgba(99,102,241,0.12);
  animation: orb-drift 14s ease-in-out infinite alternate;
}
.orb-2 {
  width: 400px; height: 400px;
  bottom: -80px; right: -60px;
  background: rgba(16,185,129,0.10);
  animation: orb-drift 18s ease-in-out infinite alternate-reverse;
}
.orb-3 {
  width: 300px; height: 300px;
  top: 40%; left: 55%;
  background: rgba(245,158,11,0.07);
  animation: orb-drift 22s ease-in-out infinite alternate;
}
@keyframes orb-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, 30px) scale(1.08); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* ── Orbit System ──────────────────────────── */
.hero-photo-col {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.orbit-system {
  position: relative;
  width: 240px;
  height: 240px;
}

.orbit {
  position: absolute;
  border-radius: 50%;
  top: 50%; left: 50%;
  pointer-events: none;
}
.orbit-1 {
  width: 310px; height: 310px;
  margin: -155px 0 0 -155px;
  border: 1.5px dashed rgba(99,102,241,0.35);
  animation: orbit-spin 13s linear infinite;
}
.orbit-2 {
  width: 380px; height: 380px;
  margin: -190px 0 0 -190px;
  border: 1.5px dashed rgba(16,185,129,0.25);
  animation: orbit-spin 19s linear infinite reverse;
}
.orbit-3 {
  width: 450px; height: 450px;
  margin: -225px 0 0 -225px;
  border: 1.5px dashed rgba(245,158,11,0.2);
  animation: orbit-spin 27s linear infinite;
}
@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.orbit-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  position: absolute;
  top: -4.5px;
  left: 50%;
  margin-left: -4.5px;
  box-shadow: 0 0 10px currentColor;
}
.odot-indigo { background: var(--indigo); color: var(--indigo); }
.odot-emerald { background: var(--emerald); color: var(--emerald); }
.odot-amber   { background: var(--amber); color: var(--amber); }

.photo-frame {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 200px; height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(99,102,241,0.5);
  box-shadow: 0 0 0 6px rgba(99,102,241,0.12), 0 20px 50px rgba(0,0,0,0.4);
  z-index: 2;
}

.hero-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
}

.photo-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(99,102,241,0.15), transparent 70%);
  pointer-events: none;
}

/* Floating badges */
.float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow-card);
  pointer-events: none;
  white-space: nowrap;
  z-index: 10;
}
.badge-tr {
  top: 10px; right: -30px;
  animation: float-badge 3.5s ease-in-out infinite;
}
.badge-bl {
  bottom: 10px; left: -30px;
  animation: float-badge 4s ease-in-out infinite reverse;
}
@keyframes float-badge {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
.fbadge-star { color: var(--amber); font-size: 1rem; }
.fbadge-dot, .cdot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.emerald-dot, .cdot.emerald-dot { background: var(--emerald); box-shadow: 0 0 6px var(--emerald); }
.indigo-dot,  .cdot.indigo-dot  { background: var(--indigo); box-shadow: 0 0 6px var(--indigo); }
.amber-dot,   .cdot.amber-dot   { background: var(--amber); box-shadow: 0 0 6px var(--amber); }

/* ── Hero Content ──────────────────────────── */
.hero-content-col { display: flex; flex-direction: column; gap: 22px; }

.hero-label {
  display: flex;
  align-items: center;
  gap: 10px;
}
.label-line {
  display: block;
  width: 30px; height: 2px;
  background: var(--indigo);
  border-radius: 2px;
}
.label-code {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--indigo-lt);
  letter-spacing: .04em;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--text);
}
.title-gradient {
  background: linear-gradient(120deg, var(--indigo-lt) 0%, var(--emerald) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-bio {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
}

.hero-typed {
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--text-muted);
  gap: 0;
  flex-wrap: wrap;
}
.typed-prefix { color: var(--text-faint); }
.typed-text   { color: var(--emerald); font-weight: 600; }
.typed-cursor {
  color: var(--indigo-lt);
  animation: blink .8s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}
.hstat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
}
.hstat:first-child { padding-left: 0; }
.hstat-val {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.hstat-label {
  font-size: .7rem;
  color: var(--text-muted);
  margin-top: 3px;
  white-space: nowrap;
}
.hstat-sep {
  width: 1px;
  height: 36px;
  background: var(--border);
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 5;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--indigo);
  color: #fff;
  font-weight: 700;
  font-size: .88rem;
  padding: 12px 24px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(99,102,241,0.35);
  position: relative; z-index: 5;
  touch-action: manipulation;
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--indigo-dk);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(99,102,241,0.45);
}
.btn-arrow { transition: transform .2s; }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }
.btn-full { width: 100%; justify-content: center; border-radius: var(--r-md); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: .88rem;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
  touch-action: manipulation;
  text-decoration: none;
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-hov);
  background: rgba(99,102,241,0.07);
}

.hero-socials {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  position: relative; z-index: 5;
}
.social-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  transition: color .2s, border-color .2s, background .2s;
}
.social-chip:hover {
  color: var(--text);
  border-color: var(--border-hov);
  background: rgba(99,102,241,0.1);
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: .68rem;
  color: var(--text-faint);
  letter-spacing: .1em;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 1;
}
.scroll-mouse {
  width: 22px; height: 34px;
  border: 1.5px solid var(--text-faint);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 5px;
}
.scroll-wheel {
  width: 3px; height: 7px;
  background: var(--text-faint);
  border-radius: 2px;
  animation: scroll-drop 2s ease-in-out infinite;
}
@keyframes scroll-drop {
  0%   { transform: translateY(0); opacity: 1; }
  80%  { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ── TICKER ──────────────────────────────────────────────── */
.ticker-wrap {
  overflow: hidden;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
  width: max-content;
  animation: ticker 32s linear infinite;
}
.ticker-track span {
  font-size: .78rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: .02em;
}
.ticker-sep { color: var(--indigo) !important; font-size: .55rem !important; }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── SECTIONS ────────────────────────────────────────────── */
.section        { padding: 96px 0; }
.section-alt    { background: var(--bg-alt); }

.section-header {
  margin-bottom: 60px;
}
.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  color: var(--indigo-lt);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--text);
}

/* ── Reveal animations ────────────────────── */
.reveal, .reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity .6s ease, transform .6s ease;
}
.reveal        { transform: translateY(28px); }
.reveal-left   { transform: translateX(-36px); }
.reveal-right  { transform: translateX(36px); }
.reveal.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ── ABOUT ───────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-lead {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.6;
}
.about-text p {
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.75;
}
.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.atag {
  font-size: .76rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(99,102,241,0.12);
  color: var(--indigo-lt);
  border: 1px solid rgba(99,102,241,0.2);
}

.about-cards { display: flex; flex-direction: column; gap: 16px; }
.acard {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.acard:hover {
  border-color: var(--border-hov);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}
.acard-icon {
  width: 42px; height: 42px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.ic-indigo { background: rgba(99,102,241,0.15); }
.ic-emerald { background: rgba(16,185,129,0.15); }
.ic-amber   { background: rgba(245,158,11,0.15); }
.acard h4 {
  font-size: .88rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}
.acard p { font-size: .82rem; color: var(--text-muted); }

/* ── SKILLS ──────────────────────────────────────────────── */
.skill-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.sfbtn {
  font-size: .76rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  transition: all .2s;
}
.sfbtn:hover { border-color: var(--indigo); color: var(--indigo-lt); }
.sfbtn.active {
  background: var(--indigo);
  border-color: var(--indigo);
  color: #fff;
}

.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.stag {
  font-size: .78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--r-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: default;
  transition: opacity .25s, background .25s, border-color .25s, color .25s, transform .2s;
}
.stag.highlighted {
  background: rgba(99,102,241,0.15);
  border-color: rgba(99,102,241,0.4);
  color: var(--indigo-lt);
  transform: scale(1.04);
}
.stag.faded { opacity: 0.22; transform: scale(.97); }

.skill-bars { display: flex; flex-direction: column; gap: 18px; }
.sbar-row {}
.sbar-meta {
  display: flex;
  justify-content: space-between;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 7px;
}
.sbar-track {
  height: 6px;
  background: var(--bg-card);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.sbar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--indigo) 0%, var(--emerald) 100%);
  border-radius: 999px;
  transition: width 1s cubic-bezier(.4,0,.2,1);
}

/* ── EXPERIENCE TIMELINE ─────────────────────────────────── */
.timeline { position: relative; display: flex; flex-direction: column; gap: 0; }

.tl-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 20px;
  padding-bottom: 36px;
}
.tl-item:last-child { padding-bottom: 0; }

.tl-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 6px;
}
.tl-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 2.5px solid var(--border);
  flex-shrink: 0;
  z-index: 1;
  transition: border-color .3s, background .3s;
}
.tl-dot.active {
  background: var(--indigo);
  border-color: var(--indigo);
  box-shadow: 0 0 12px rgba(99,102,241,0.5);
}
.tl-item:hover .tl-dot { border-color: var(--indigo); }
.tl-line {
  flex: 1;
  width: 2px;
  background: linear-gradient(to bottom, rgba(99,102,241,0.3), transparent);
  margin-top: 4px;
  border-radius: 2px;
  min-height: 30px;
}

.tl-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: border-color .2s, box-shadow .2s;
}
.tl-card:hover { border-color: var(--border-hov); box-shadow: var(--shadow-glow); }

.tl-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.tl-role {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 5px;
}
.tl-company {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--text-muted);
}
.tl-logo {
  width: 22px; height: 22px;
  border-radius: 4px;
  object-fit: contain;
  background: #fff;
  padding: 2px;
}
.tl-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
.tl-date {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--indigo-lt);
  white-space: nowrap;
}
.tl-badge-current {
  font-family: var(--font-mono);
  font-size: .67rem;
  font-weight: 600;
  color: var(--emerald);
  white-space: nowrap;
}

.tl-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.tl-list li {
  font-size: .85rem;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
  line-height: 1.65;
}
.tl-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--indigo-lt);
  font-weight: 700;
}

.tl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.tl-tags span {
  font-size: .7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(99,102,241,0.1);
  color: var(--indigo-lt);
  border: 1px solid rgba(99,102,241,0.18);
}

/* ── ACHIEVEMENTS ────────────────────────────────────────── */
.ach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.ach-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.ach-card:hover {
  border-color: var(--border-hov);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}
.ach-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ach-icon { font-size: 1.6rem; line-height: 1; }
.ach-status {
  font-family: var(--font-mono);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--emerald);
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.25);
  padding: 3px 9px;
  border-radius: 999px;
}
.ach-title {
  font-size: .97rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}
.ach-desc { font-size: .82rem; color: var(--text-muted); line-height: 1.65; flex: 1; }
.ach-metric {
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ach-metric-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--indigo-lt);
}
.ach-metric-label { font-size: .72rem; color: var(--text-muted); }

/* ── EDUCATION ───────────────────────────────────────────── */
.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: border-color .2s, box-shadow .2s;
}
.edu-card:hover { border-color: var(--border-hov); box-shadow: var(--shadow-glow); }
.edu-icon-wrap { font-size: 1.8rem; line-height: 1; flex-shrink: 0; }
.edu-body h3   { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 5px; }
.edu-field     { font-size: .85rem; color: var(--text-muted); margin-bottom: 3px; }
.edu-school    { font-size: .82rem; color: var(--text-faint); margin-bottom: 8px; }
.edu-year      { font-family: var(--font-mono); font-size: .72rem; color: var(--indigo-lt); }

.cert-list { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.cert-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .83rem;
  color: var(--text-muted);
}

/* ── RECOMMENDATIONS ─────────────────────────────────────── */
.rec-list { display: flex; flex-direction: column; gap: 28px; }
.rec-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px;
  position: relative;
  transition: border-color .2s, box-shadow .2s;
}
.rec-card:hover { border-color: var(--border-hov); box-shadow: var(--shadow-glow); }
.rec-qmark {
  position: absolute;
  top: 20px; right: 28px;
  font-size: 4rem;
  line-height: 1;
  color: var(--indigo);
  opacity: 0.15;
  font-family: Georgia, serif;
  pointer-events: none;
}
.rec-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.rec-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.av-indigo  { background: linear-gradient(135deg, var(--indigo), var(--indigo-dk)); }
.av-emerald { background: linear-gradient(135deg, var(--emerald), var(--emerald-dk)); }
.av-amber   { background: linear-gradient(135deg, var(--amber), var(--amber-dk)); }
.rec-person h4  { font-size: .92rem; font-weight: 700; color: var(--text); }
.rec-person p   { font-size: .78rem; color: var(--text-muted); }
.rec-rel-tag {
  margin-left: auto;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(99,102,241,0.12);
  color: var(--indigo-lt);
  border: 1px solid rgba(99,102,241,0.2);
}

.rec-body {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 22px;
  font-style: italic;
}

.rec-linkedin-proof { }
.rec-proof-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-faint);
  margin-bottom: 10px;
}
.rec-img-wrap {
  position: relative;
  cursor: zoom-in;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  display: flex;
  align-items: flex-start;
}
.rec-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: top left;
  transition: transform .3s;
  max-height: 160px;
}
.rec-img-wrap:hover .rec-img { transform: scale(1.02); }
.rec-img-hover {
  position: absolute;
  inset: 0;
  background: rgba(13,17,23,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .25s;
  font-size: .78rem;
  font-weight: 600;
  color: #fff;
}
.rec-img-wrap:hover .rec-img-hover { opacity: 1; }

/* ── LIGHTBOX ────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
  backdrop-filter: blur(6px);
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lb-img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: var(--r-lg);
  box-shadow: 0 24px 80px rgba(0,0,0,0.7);
  object-fit: contain;
}
.lb-close {
  position: absolute;
  top: 20px; right: 24px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  border: none;
  transition: background .2s;
}
.lb-close:hover { background: rgba(255,255,255,0.22); }

/* ── CONTACT ─────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: start;
}
.contact-lead {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 28px;
}
.clinks { display: flex; flex-direction: column; gap: 14px; }
.clink {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.clink:hover {
  border-color: var(--border-hov);
  box-shadow: var(--shadow-glow);
  transform: translateX(4px);
}
.clink-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ci-indigo  { background: rgba(99,102,241,0.15); color: var(--indigo-lt); }
.ci-emerald { background: rgba(16,185,129,0.15); color: var(--emerald); }
.ci-amber   { background: rgba(245,158,11,0.15); color: var(--amber); }
.clink-label { display: block; font-size: .72rem; color: var(--text-faint); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 2px; }
.clink-val   { display: block; font-size: .84rem; color: var(--text-muted); }
.clink:hover .clink-val { color: var(--text); }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fgroup { display: flex; flex-direction: column; gap: 6px; }
.fgroup label { font-size: .78rem; font-weight: 600; color: var(--text-muted); }
.fgroup input,
.fgroup textarea {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  font-family: var(--font-head);
  font-size: .88rem;
  padding: 11px 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  resize: vertical;
}
.fgroup input::placeholder,
.fgroup textarea::placeholder { color: var(--text-faint); }
.fgroup input:focus,
.fgroup textarea:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
.form-note { font-size: .8rem; text-align: center; min-height: 1.2em; }
.form-note.success { color: var(--emerald); }
.form-note.error   { color: var(--amber); }

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--indigo-lt);
  letter-spacing: .05em;
}
.footer-brand p  { font-size: .78rem; color: var(--text-faint); }
.footer-copy p   { font-size: .78rem; color: var(--text-faint); text-align: center; }
.footer-social-links { display: flex; gap: 10px; }
.fsoc {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem;
  font-weight: 700;
  transition: color .2s, border-color .2s, background .2s;
}
.fsoc:hover {
  color: var(--indigo-lt);
  border-color: var(--indigo);
  background: rgba(99,102,241,0.1);
}

/* ── BACK TO TOP ─────────────────────────────────────────── */
.btt {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--indigo);
  color: #fff;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(99,102,241,0.4);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .3s, transform .3s;
  border: none; cursor: pointer;
}
.btt.visible { opacity: 1; pointer-events: all; transform: translateY(0); }
.btt:hover { background: var(--indigo-dk); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-photo-col {
    order: -1;
    padding-top: 20px;
  }
  .hero-label,
  .hero-ctas,
  .hero-socials {
    justify-content: center;
  }
  .hero-bio { max-width: 100%; }
  .hero-typed { justify-content: center; }
  .hero-stats { justify-content: center; }

  .orbit-1 { width: 270px; height: 270px; margin: -135px 0 0 -135px; }
  .orbit-2 { width: 330px; height: 330px; margin: -165px 0 0 -165px; }
  .orbit-3 { width: 390px; height: 390px; margin: -195px 0 0 -195px; }

  .badge-tr { right: calc(50% - 210px); }
  .badge-bl { left: calc(50% - 210px); }

  .about-grid    { grid-template-columns: 1fr; }
  .ach-grid      { grid-template-columns: 1fr 1fr; }
  .contact-grid  { grid-template-columns: 1fr; }
  .edu-grid      { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .pill-nav { top: 12px; }
  .nav-links { display: none; }

  .section { padding: 64px 0; }
  .section-title { font-size: clamp(1.6rem, 6vw, 2.2rem); }

  .hero-title { font-size: clamp(2rem, 8vw, 3rem); }
  .hero-stats { gap: 0; }
  .hstat-val  { font-size: 1.35rem; }
  .hstat      { padding: 0 12px; }

  .ach-grid   { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .tl-item    { grid-template-columns: 24px 1fr; gap: 12px; }

  .orbit-1 { width: 230px; height: 230px; margin: -115px 0 0 -115px; }
  .orbit-2 { width: 285px; height: 285px; margin: -142.5px 0 0 -142.5px; }
  .orbit-3 { width: 340px; height: 340px; margin: -170px 0 0 -170px; }

  .badge-tr, .badge-bl { display: none; }

  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
}
