/* ============================================================
   APURBA GOSWAMI — PORTFOLIO v2
   Aesthetic: Editorial Dark × Brutalist Typography
   Palette: Ink Black + Teal Glow + Amber Accent
   ============================================================ */

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

:root {
  --ink:      #080c0c;
  --ink2:     #0d1414;
  --surface:  #111a1a;
  --surface2: #162020;
  --edge:     rgba(255,255,255,0.07);
  --teal:     #0ecece;
  --teal-dim: rgba(14,206,206,0.18);
  --amber:    #f5a623;
  --amber-dim:rgba(245,166,35,0.15);
  --coral:    #ff6b6b;
  --text:     #dde8e8;
  --text-mid: #8fa8a8;
  --text-low: #4d6666;
  --white:    #ffffff;
  --ff-head:  'Fraunces', serif;
  --ff-body:  'Space Grotesk', sans-serif;
  --ff-mono:  'IBM Plex Mono', monospace;
  --r:        14px;
  --r-sm:     8px;
  --ease:     cubic-bezier(0.22, 1, 0.36, 1);
  --trans:    all 0.45s var(--ease);
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--ff-body);
  background: var(--ink);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
}

/* ---- Custom Cursor ---- */
.cursor {
  width: 8px; height: 8px;
  background: var(--teal);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width .2s, height .2s;
  mix-blend-mode: screen;
}
.cursor-ring {
  width: 32px; height: 32px;
  border: 1px solid rgba(14,206,206,0.4);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%);
  transition: transform .1s ease, width .3s, height .3s, border-color .3s;
}
body.cursor-hover .cursor { width: 18px; height: 18px; background: var(--amber); }
body.cursor-hover .cursor-ring { width: 50px; height: 50px; border-color: rgba(245,166,35,0.35); }

/* ---- Preloader ---- */
.preloader {
  position: fixed; inset: 0;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  z-index: 9000;
  transition: opacity .8s var(--ease), visibility .8s;
}
.preloader.gone { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-inner { text-align: center; }
.pre-logo {
  font-family: var(--ff-head);
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 900;
  color: var(--teal);
  letter-spacing: -.04em;
  line-height: 1;
  animation: preLogoPulse 1.2s ease infinite alternate;
}
@keyframes preLogoPulse {
  from { opacity: .6; text-shadow: 0 0 0 transparent; }
  to   { opacity: 1; text-shadow: 0 0 60px rgba(14,206,206,.5); }
}
.pre-progress {
  width: 180px; height: 2px;
  background: var(--surface2); margin: 1.5rem auto 0;
  border-radius: 2px; overflow: hidden;
}
.pre-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--amber)); border-radius: 2px; }
.pre-count {
  font-family: var(--ff-mono);
  font-size: .8rem; color: var(--text-mid);
  margin-top: .6rem; letter-spacing: .1em;
}

/* ---- Header ---- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 500; padding: 1.4rem 0;
  transition: var(--trans);
}
.site-header.sticky {
  background: rgba(8,12,12,.88);
  backdrop-filter: blur(24px) saturate(1.6);
  border-bottom: 1px solid var(--edge);
  padding: 1rem 0;
}
.header-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.h-logo {
  font-family: var(--ff-head);
  font-size: 1.6rem; font-weight: 900;
  color: var(--white); text-decoration: none;
  letter-spacing: -.04em;
}
.h-logo span { color: var(--teal); }

.h-nav { display: flex; gap: 0.2rem; align-items: center; }
.hn-link {
  font-family: var(--ff-mono);
  font-size: .72rem; letter-spacing: .06em;
  color: var(--text-mid); text-decoration: none;
  padding: .4rem .8rem;
  border-radius: 100px;
  transition: background .25s, color .25s;
  position: relative;
}
.hn-link::before {
  content: attr(data-index);
  font-size: .55rem; color: var(--teal);
  position: absolute; top: .1rem; right: .4rem;
  opacity: 0; transition: opacity .25s;
}
.hn-link:hover { background: var(--teal-dim); color: var(--teal); }
.hn-link:hover::before { opacity: 1; }
.hn-link.active { color: var(--teal); background: var(--teal-dim); }

.h-right { display: flex; align-items: center; gap: 1rem; }
.h-resume-btn {
  font-family: var(--ff-mono); font-size: .72rem;
  color: var(--amber); text-decoration: none;
  border: 1px solid rgba(245,166,35,.3);
  padding: .45rem 1rem; border-radius: 100px;
  transition: background .25s, border-color .25s;
  display: flex; align-items: center; gap: .4rem;
}
.h-resume-btn:hover { background: var(--amber-dim); border-color: var(--amber); }

.h-burger {
  display: none; flex-direction: column; gap: 6px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.h-burger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--text);
  transition: var(--trans);
}
.h-burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.h-burger.open span:nth-child(2) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile Nav */
.mob-nav {
  position: fixed; inset: 0;
  background: rgba(8,12,12,.97);
  backdrop-filter: blur(20px);
  z-index: 450;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: var(--trans);
}
.mob-nav.open { opacity: 1; visibility: visible; }
.mob-nav-inner { display: flex; flex-direction: column; gap: 1.5rem; text-align: center; }
.mn-item {
  font-family: var(--ff-head);
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 700; color: var(--text-mid);
  text-decoration: none;
  transition: color .3s, letter-spacing .3s;
}
.mn-item:hover { color: var(--teal); letter-spacing: .05em; }

/* ---- Utility ---- */
.section { padding: 8rem 0; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

.sec-label {
  font-family: var(--ff-mono);
  font-size: .72rem; letter-spacing: .15em;
  color: var(--text-mid); text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: .6rem;
}
.sec-num { color: var(--teal); }

.sec-heading {
  font-family: var(--ff-head);
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 900; line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--white);
  margin-bottom: 3.5rem;
}
.sec-heading em { color: var(--teal); font-style: italic; }

.btn-fill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.8rem;
  background: var(--teal);
  color: var(--ink); font-weight: 600; font-size: .9rem;
  font-family: var(--ff-body);
  border-radius: var(--r-sm); text-decoration: none;
  border: none; cursor: pointer;
  transition: transform .25s, box-shadow .25s, background .25s;
}
.btn-fill:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(14,206,206,.35); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.8rem;
  background: transparent;
  color: var(--text); font-weight: 500; font-size: .9rem;
  font-family: var(--ff-body);
  border-radius: var(--r-sm); text-decoration: none;
  border: 1px solid var(--edge); cursor: pointer;
  transition: border-color .25s, color .25s, transform .25s;
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-3px); }

.mt-6 { margin-top: 2rem; }

/* ---- Reveal animations ---- */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal-up { transform: translateY(50px); }
.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.revealed { opacity: 1 !important; transform: none !important; }
.d1 { transition-delay: .1s !important; }
.d2 { transition-delay: .2s !important; }
.d3 { transition-delay: .3s !important; }
.d4 { transition-delay: .4s !important; }
.d5 { transition-delay: .5s !important; }

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
  min-height: 100vh;
  position: relative;
  display: flex; align-items: center;
  overflow: hidden;
  padding: 0 2rem;
}

.hero-bg-text {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  font-family: var(--ff-head);
  font-size: clamp(6rem, 20vw, 22rem);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(14,206,206,.06);
  white-space: nowrap;
  user-select: none; pointer-events: none;
  letter-spacing: -.04em; line-height: 1;
}

.hero-grid {
  max-width: 1280px; margin: 0 auto;
  width: 100%;
  display: grid; grid-template-columns: 1fr 420px;
  gap: 4rem; align-items: center;
  padding-top: 6rem;
  position: relative; z-index: 2;
}

.hero-eyebrow {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--ff-mono); font-size: .72rem;
  letter-spacing: .12em; color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal);
  animation: eyebrowPulse 2s ease-in-out infinite;
}
@keyframes eyebrowPulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(0.7)} }

.hero-heading {
  font-family: var(--ff-head);
  font-size: clamp(3.8rem, 9vw, 8rem);
  font-weight: 900; line-height: .95;
  letter-spacing: -.04em;
  margin-bottom: 1.5rem;
}
.h-word { display: block; color: var(--white); }
.h-word.italic {
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--text-mid);
}

.hero-role {
  font-family: var(--ff-mono); font-size: 1rem;
  color: var(--teal); letter-spacing: .05em;
  margin-bottom: 1.2rem; min-height: 1.5em;
}
.type-cursor { animation: blink 1s step-end infinite; color: var(--amber); }
@keyframes blink { 0%,100%{opacity:1}50%{opacity:0} }

.hero-desc {
  font-size: 1.05rem; line-height: 1.7;
  color: var(--text-mid); max-width: 520px;
  margin-bottom: 2.5rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }

.hero-socials { display: flex; gap: .8rem; }
.hero-socials a {
  width: 38px; height: 38px;
  border: 1px solid var(--edge);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-mid); font-size: .9rem;
  text-decoration: none; transition: var(--trans);
}
.hero-socials a:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-dim); transform: translateY(-3px); }

/* Hero Card */
.hero-card {
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: 20px; overflow: hidden;
  position: relative;
}
.hero-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--amber), var(--teal));
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}
@keyframes shimmer { from{background-position:0 0} to{background-position:200% 0} }

.hc-photo {
  width: 100%; aspect-ratio: 3/3.5;
  background: var(--surface2);
  position: relative; overflow: hidden;
}
.hc-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  position: absolute; inset: 0;
}
.hc-initials {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-head); font-size: 4rem;
  font-weight: 900; color: var(--surface2);
}

.hc-stats {
  display: flex; padding: 1.4rem;
  gap: 0; border-top: 1px solid var(--edge);
}
.hcs-item { flex: 1; text-align: center; padding: .3rem 0; }
.hcs-item span:first-child, .hcs-num {
  font-family: var(--ff-head);
  font-size: 1.8rem; font-weight: 900;
  color: var(--teal); line-height: 1;
}
.hcs-item p { font-size: .7rem; color: var(--text-mid); margin-top: .3rem; text-transform: uppercase; letter-spacing: .05em; }
.hcs-divider { width: 1px; background: var(--edge); align-self: stretch; }

.hc-tag {
  padding: .8rem 1.4rem;
  font-family: var(--ff-mono); font-size: .72rem;
  color: var(--text-mid); border-top: 1px solid var(--edge);
  display: flex; align-items: center; gap: .5rem;
}
.hc-tag i { color: var(--amber); }

/* Scroll hint */
.hero-scroll-hint {
  position: absolute; bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  font-family: var(--ff-mono); font-size: .62rem;
  letter-spacing: .2em; color: var(--text-low);
  z-index: 2;
}
.scroll-mouse {
  width: 20px; height: 32px;
  border: 1.5px solid var(--text-low);
  border-radius: 10px; position: relative;
}
.scroll-dot {
  width: 3px; height: 6px;
  background: var(--teal); border-radius: 2px;
  position: absolute; top: 5px; left: 50%; transform: translateX(-50%);
  animation: scrollBounce 1.8s ease-in-out infinite;
}
@keyframes scrollBounce { 0%,100%{top:5px;opacity:1} 70%{top:14px;opacity:.2} }

/* ============================================================
   ABOUT
   ============================================================ */
.about-section { background: var(--ink2); }
.about-layout {
  display: grid; grid-template-columns: 1fr 380px;
  gap: 6rem; align-items: center;
}
.about-lead {
  font-size: 1.2rem; line-height: 1.7;
  color: var(--text); margin-bottom: 1.5rem; font-weight: 300;
}
.about-body {
  font-size: .95rem; line-height: 1.9;
  color: var(--text-mid); margin-bottom: 2rem;
}
.about-body strong { color: var(--teal); font-weight: 600; }

.about-pills { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: .5rem; }
.about-pills span {
  font-family: var(--ff-mono); font-size: .72rem;
  padding: .35rem .9rem;
  border: 1px solid var(--edge);
  border-radius: 100px; color: var(--text-mid);
  transition: border-color .25s, color .25s;
}
.about-pills span:hover { border-color: var(--teal); color: var(--teal); }

/* About visual */
.av-photo-wrap {
  position: relative; width: 100%;
  aspect-ratio: 3/4;
  border-radius: 20px; overflow: visible;
}
.av-photo-wrap img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  border-radius: 20px;
  position: absolute; inset: 0;
  border: 1px solid var(--edge);
}
.av-fallback {
  position: absolute; inset: 0;
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-head); font-size: 5rem;
  font-weight: 900; color: var(--surface2);
}
.av-badge {
  position: absolute; bottom: -1rem; left: -1rem;
  background: var(--amber); color: var(--ink);
  padding: .7rem 1.2rem; border-radius: var(--r-sm);
  font-family: var(--ff-body); font-size: .82rem; font-weight: 700;
  display: flex; align-items: center; gap: .5rem;
  box-shadow: 0 8px 24px rgba(245,166,35,.35);
  z-index: 2;
}
.av-deco-line {
  position: absolute; top: 1.5rem; right: -1.5rem;
  width: 1px; height: 80px;
  background: linear-gradient(to bottom, var(--teal), transparent);
}
.av-deco-dot {
  position: absolute; top: 1rem; right: calc(-1.5rem - 4px);
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 14px var(--teal);
}

/* ============================================================
   SKILLS
   ============================================================ */
.skills-section { background: var(--ink); }

.marquee-wrap {
  overflow: hidden; position: relative;
  padding: 1.4rem 0; margin: 2rem 0 3rem;
  border-top: 1px solid var(--edge);
  border-bottom: 1px solid var(--edge);
}
.marquee-wrap::before, .marquee-wrap::after {
  content: ''; position: absolute; top: 0; bottom: 0;
  width: 120px; z-index: 2;
}
.marquee-wrap::before { left: 0; background: linear-gradient(90deg, var(--ink), transparent); }
.marquee-wrap::after  { right: 0; background: linear-gradient(-90deg, var(--ink), transparent); }

.marquee-inner { overflow: hidden; }
.m-track {
  display: flex; gap: 1rem; width: max-content;
  animation: marquee 28s linear infinite;
}
.m-track:hover { animation-play-state: paused; }
@keyframes marquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }

.m-chip {
  display: flex; align-items: center; gap: .55rem;
  padding: .55rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: 100px;
  font-size: .82rem; color: var(--text-mid);
  white-space: nowrap; cursor: default;
  transition: border-color .25s, color .25s, background .25s;
}
.m-chip img { width: 16px; height: 16px; object-fit: contain; }
.m-chip:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-dim); }

/* Skill bars */
.skill-bars-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.5rem 4rem;
}
.sb-item {}
.sb-top {
  display: flex; justify-content: space-between;
  font-family: var(--ff-mono); font-size: .75rem;
  color: var(--text-mid); margin-bottom: .55rem;
}
.sb-pct { color: var(--teal); }
.sb-track {
  height: 3px; background: var(--surface2);
  border-radius: 3px; overflow: hidden;
}
.sb-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--teal), var(--amber));
  border-radius: 3px;
  transition: width 1.4s cubic-bezier(.22,1,.36,1);
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-section { background: var(--ink2); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.sv-card {
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: var(--r);
  padding: 2rem;
  position: relative; overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
  cursor: none;
}
.sv-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--amber));
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.sv-card:hover { transform: translateY(-6px); border-color: rgba(14,206,206,.2); box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.sv-card:hover::after { transform: scaleX(1); }

.sv-num {
  font-family: var(--ff-mono); font-size: .65rem;
  color: var(--text-low); margin-bottom: 1.5rem;
  letter-spacing: .1em;
}
.sv-icon {
  width: 44px; height: 44px;
  background: var(--teal-dim);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal); font-size: 1.1rem;
  margin-bottom: 1.2rem;
  transition: background .3s, color .3s;
}
.sv-card:hover .sv-icon { background: var(--teal); color: var(--ink); }
.sv-card h3 {
  font-family: var(--ff-head); font-size: 1.1rem;
  font-weight: 700; color: var(--white);
  margin-bottom: .6rem;
}
.sv-card p { font-size: .88rem; color: var(--text-mid); line-height: 1.7; margin-bottom: 1.5rem; }
.sv-bottom {}
.sv-link {
  font-family: var(--ff-mono); font-size: .75rem;
  color: var(--teal); text-decoration: none;
  display: inline-flex; align-items: center; gap: .4rem;
  transition: gap .25s, color .25s;
}
.sv-link:hover { gap: .8rem; color: var(--amber); }

.sv-card--cta {
  display: flex; align-items: center; justify-content: center;
  background: var(--teal-dim);
  border-color: rgba(14,206,206,.2);
}
.sv-card--cta::after { display: none; }
.sv-cta-inner { text-align: center; }
.sv-cta-inner p { font-size: 1.1rem; color: var(--text); margin-bottom: 1.2rem; font-weight: 500; }

/* ============================================================
   PROJECTS
   ============================================================ */
.projects-section { background: var(--ink); }
.proj-list {
  border: 1px solid var(--edge);
  border-radius: var(--r);
  overflow: hidden;
}
.proj-row {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 1.6rem 2rem;
  text-decoration: none; color: inherit;
  border-bottom: 1px solid var(--edge);
  transition: background .25s;
  position: relative; overflow: hidden;
}
.proj-row:last-child { border-bottom: none; }
.proj-row::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--teal);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .35s var(--ease);
}
.proj-row:hover { background: var(--surface); }
.proj-row:hover::before { transform: scaleY(1); }

.pr-num {
  font-family: var(--ff-mono); font-size: .68rem;
  color: var(--text-low); min-width: 28px;
}
.pr-info { flex: 1; }
.pr-info h3 {
  font-family: var(--ff-head); font-size: 1.05rem;
  font-weight: 700; color: var(--white);
  margin-bottom: .25rem;
  transition: color .25s;
}
.proj-row:hover .pr-info h3 { color: var(--teal); }
.pr-info p { font-size: .8rem; color: var(--text-mid); }
.pr-tags { display: flex; gap: .5rem; flex-wrap: wrap; }
.pr-tags span {
  font-family: var(--ff-mono); font-size: .65rem;
  padding: .2rem .6rem;
  background: var(--teal-dim);
  border: 1px solid rgba(14,206,206,.2);
  border-radius: 100px; color: var(--teal);
}
.pr-arrow {
  color: var(--text-low); font-size: .85rem;
  transition: color .25s, transform .25s;
}
.proj-row:hover .pr-arrow { color: var(--amber); transform: rotate(-45deg) scale(1.2); }
.proj-more { margin-top: 2.5rem; }

/* ============================================================
   CERTIFICATES
   ============================================================ */
.certs-section { background: var(--ink2); }
.certs-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 1rem; margin-bottom: 5rem;
}
.cert-tile {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.3rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: var(--r-sm);
  transition: border-color .3s, transform .3s;
}
.cert-tile:hover { border-color: rgba(14,206,206,.3); transform: translateX(5px); }
.ct-icon {
  width: 42px; height: 42px; min-width: 42px;
  background: var(--teal-dim);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal); font-size: 1rem;
}
.ct-body { flex: 1; }
.ct-body h3 { font-size: .86rem; font-weight: 500; color: var(--text); line-height: 1.4; margin-bottom: .3rem; }
.ct-badge {
  font-family: var(--ff-mono); font-size: .63rem;
  padding: .12rem .5rem;
  background: rgba(14,206,206,.1);
  border: 1px solid rgba(14,206,206,.25);
  border-radius: 100px; color: var(--teal);
}
.ct-arrow { color: var(--text-low); text-decoration: none; transition: color .25s; }
.ct-arrow:hover { color: var(--teal); }

/* Academic Timeline */
.timeline-wrap {}
.tl-header {
  font-family: var(--ff-mono); font-size: .72rem;
  letter-spacing: .15em; color: var(--text-mid);
  text-transform: uppercase;
  display: flex; align-items: center; gap: .6rem;
  margin-bottom: 2.5rem;
}
.timeline {
  position: relative; padding-left: 100px;
}
.timeline::before {
  content: ''; position: absolute;
  left: 86px; top: 16px; bottom: 16px;
  width: 1px; background: var(--edge);
}
.tl-item {
  position: relative; padding-bottom: 3rem;
  display: flex; align-items: flex-start; gap: 1.5rem;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-year {
  font-family: var(--ff-mono); font-size: .72rem;
  color: var(--text-mid); position: absolute;
  left: -100px; top: 2px;
}
.tl-dot {
  width: 12px; height: 12px; min-width: 12px;
  border-radius: 50%;
  background: var(--surface2);
  border: 2px solid var(--edge);
  margin-top: 4px; transition: var(--trans);
}
.tl-dot.active { background: var(--teal); border-color: var(--teal); box-shadow: 0 0 14px rgba(14,206,206,.6); }
.tl-content h3 { font-family: var(--ff-head); font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: .3rem; }
.tl-score { font-family: var(--ff-mono); font-size: .85rem; color: var(--amber); margin-bottom: .5rem; }
.tl-link {
  font-family: var(--ff-mono); font-size: .75rem;
  color: var(--teal); text-decoration: none;
  display: inline-flex; align-items: center; gap: .4rem;
  transition: gap .25s;
}
.tl-link:hover { gap: .7rem; color: var(--amber); }
.tl-soon {
  font-family: var(--ff-mono); font-size: .72rem;
  color: var(--teal); margin-top: .4rem;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section { background: var(--ink); }
.contact-layout {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
}
.contact-intro {
  font-size: 1.1rem; color: var(--text-mid); line-height: 1.75;
  margin-bottom: 2.5rem; font-weight: 300;
}
.contact-links { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2.5rem; }
.cl-item {
  display: flex; align-items: center; gap: 1rem;
  text-decoration: none;
  padding: 1rem 1.2rem;
  border: 1px solid var(--edge);
  border-radius: var(--r-sm);
  transition: border-color .3s, background .3s;
}
.cl-item:hover { border-color: rgba(14,206,206,.3); background: var(--surface); }
.cli-icon {
  width: 40px; height: 40px; min-width: 40px;
  background: var(--teal-dim);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal); font-size: .9rem;
}
.cli-text { flex: 1; }
.cli-text span { font-family: var(--ff-mono); font-size: .68rem; color: var(--text-low); display: block; margin-bottom: .15rem; letter-spacing: .05em; }
.cli-text p { font-size: .88rem; color: var(--text); margin: 0; }
.cli-arrow { color: var(--text-low); font-size: .8rem; transition: transform .25s, color .25s; }
.cl-item:hover .cli-arrow { transform: translateX(4px); color: var(--teal); }

.contact-socials { display: flex; gap: .8rem; }
.contact-socials a {
  width: 38px; height: 38px;
  background: var(--surface); border: 1px solid var(--edge);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-mid); font-size: .9rem;
  text-decoration: none; transition: var(--trans);
}
.contact-socials a:hover { background: var(--teal); border-color: var(--teal); color: var(--ink); transform: translateY(-3px); }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.cf-group { position: relative; }
.cf-group input, .cf-group textarea {
  width: 100%; padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: var(--r-sm);
  color: var(--text);
  font-family: var(--ff-body); font-size: .93rem;
  outline: none; transition: border-color .3s;
  resize: vertical;
}
.cf-group input:focus, .cf-group textarea:focus { border-color: var(--teal); }
.cf-group label {
  position: absolute; top: 1rem; left: 1rem;
  color: var(--text-mid); font-size: .9rem;
  transition: var(--trans); pointer-events: none;
  background: var(--surface); padding: 0 .3rem;
}
.cf-group input:focus ~ label,
.cf-group input:not(:placeholder-shown) ~ label,
.cf-group textarea:focus ~ label,
.cf-group textarea:not(:placeholder-shown) ~ label {
  top: -.5rem; font-size: .7rem; color: var(--teal);
}
.full { width: 100%; justify-content: center; font-size: .95rem; }
.cf-status { font-family: var(--ff-mono); font-size: .78rem; text-align: center; color: var(--teal); min-height: 1.2em; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink2);
  border-top: 1px solid var(--edge);
  padding: 2.5rem 2rem;
}
.sf-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.sf-logo {
  font-family: var(--ff-head);
  font-size: 1.5rem; font-weight: 900;
  color: var(--white); letter-spacing: -.04em;
}
.sf-logo span { color: var(--teal); }
.sf-copy { text-align: center; }
.sf-copy p {
  font-family: var(--ff-mono); font-size: .72rem;
  color: var(--text-low); letter-spacing: .08em;
  min-height: 1.2em;
}
.sf-socials { display: flex; gap: .7rem; }
.sf-socials a {
  width: 34px; height: 34px;
  border: 1px solid var(--edge);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-low); font-size: .85rem;
  text-decoration: none; transition: var(--trans);
}
.sf-socials a:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-dim); }

/* Back to top */
.back-top {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 42px; height: 42px;
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: var(--r-sm);
  color: var(--text-mid); font-size: .85rem;
  cursor: pointer; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: var(--trans);
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { background: var(--teal); border-color: var(--teal); color: var(--ink); transform: translateY(-3px); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 8rem; }
  .hero-right { max-width: 380px; }
  .about-layout { grid-template-columns: 1fr; gap: 3rem; }
  .av-photo-wrap { max-width: 300px; }
  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
  .services-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .h-nav { display: none; }
  .h-resume-btn { display: none; }
  .h-burger { display: flex; }
  .skill-bars-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .timeline { padding-left: 70px; }
  .timeline::before { left: 56px; }
  .tl-year { left: -70px; }
  .proj-row { flex-wrap: wrap; }
  .pr-tags { display: none; }
}
@media (max-width: 520px) {
  .hero-heading { font-size: clamp(3rem,14vw,4.5rem); }
  .hero-actions { flex-direction: column; }
  .hero-right { display: none; }
  .certs-grid { grid-template-columns: 1fr; }
  .sf-inner { flex-direction: column; align-items: center; text-align: center; }
  .timeline { padding-left: 55px; }
  .timeline::before { left: 41px; }
  .tl-year { left: -55px; font-size: .62rem; }
}