/* ============================================================
   MAIN.CSS — Core Styles
   ============================================================ */

/* ── Noise Overlay ─────────────────────────────────────────── */
.noise-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: var(--z-noise);
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
}

/* ── Preloader ──────────────────────────────────────────────── */
.preloader {
  position: fixed;
  inset: 0;
  z-index: var(--z-preloader);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.preloader__panel {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--black);
  will-change: transform;
}

.preloader__panel--top { top: 0; }
.preloader__panel--bottom { bottom: 0; }

.preloader__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}

.preloader__initials {
  font-family: var(--font-sans);
  font-size: clamp(6rem, 20vw, 18rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, var(--purple) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  will-change: transform, opacity;
}

.preloader__counter {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.1em;
  will-change: contents;
}

.preloader__bar {
  width: clamp(200px, 40vw, 400px);
  height: 2px;
  background: var(--surface-2);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.preloader__bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  border-radius: var(--radius-full);
  will-change: width;
}

/* ── Custom Cursor ──────────────────────────────────────────── */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--purple);
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  will-change: transform;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 50px;
  height: 50px;
  border: 1.5px solid rgba(255,255,255,0.8);
  background: white;
  mix-blend-mode: difference;
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  will-change: transform;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cursor-ring__label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--bg);
  opacity: 0;
  transition: opacity 0.2s;
  mix-blend-mode: normal;
  pointer-events: none;
  user-select: none;
}

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  opacity: 0;
  transition: background 0.4s, backdrop-filter 0.4s, box-shadow 0.4s;
}

.nav.scrolled {
  background: rgba(7, 7, 14, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}

.nav__logo {
  font-family: var(--font-mono);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
}

.nav__logo-mark {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-sm);
  font-weight: 900;
  color: white;
}

.nav__links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.nav__link {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
  position: relative;
  transition: color 0.3s;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--purple);
  transition: width 0.3s var(--ease-out-expo);
}

.nav__link:hover {
  color: var(--white);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__cta {
  margin-left: clamp(1rem, 2vw, 2rem);
  padding: 0.5rem 1.25rem;
  background: var(--purple);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: background 0.3s, transform 0.3s;
}

.nav__cta:hover {
  background: var(--purple-light);
  transform: translateY(-1px);
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--nav-height) + 2rem) clamp(1.5rem, 4vw, 3rem) var(--space-16);
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero__glob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  will-change: transform;
}

.hero__glob--1 {
  width: clamp(300px, 50vw, 600px);
  height: clamp(300px, 50vw, 600px);
  background: radial-gradient(circle, rgba(124, 58, 237, 0.25), transparent 70%);
  top: 10%;
  left: -10%;
}

.hero__glob--2 {
  width: clamp(200px, 40vw, 500px);
  height: clamp(200px, 40vw, 500px);
  background: radial-gradient(circle, rgba(6, 182, 212, 0.2), transparent 70%);
  bottom: 10%;
  right: -5%;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--purple-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-8);
  opacity: 0;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero__name {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero__name-row {
  display: flex;
  line-height: 0.85;
  margin-bottom: var(--space-3);
}

.hero__name-char {
  display: inline-block;
  font-size: clamp(5rem, 15vw, 14rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--white);
  will-change: transform, opacity;
  line-height: 0.85;
}

.hero__name-char--gradient {
  background: linear-gradient(135deg, var(--purple-light) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__role-wrap {
  overflow: hidden;
  margin-bottom: var(--space-8);
}

.hero__role {
  font-size: clamp(var(--fs-lg), 2.5vw, var(--fs-2xl));
  font-weight: 400;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  will-change: clip-path;
}

.hero__meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  opacity: 0;
}

.hero__bio {
  font-size: clamp(var(--fs-base), 1.5vw, var(--fs-lg));
  color: var(--muted);
  max-width: 520px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: linear-gradient(135deg, var(--purple) 0%, #6d28d9 100%);
  color: var(--white);
  box-shadow: 0 4px 30px rgba(124, 58, 237, 0.4);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(124, 58, 237, 0.6);
}

.btn--ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255,255,255,0.03);
}

.btn--ghost:hover {
  border-color: var(--purple);
  color: var(--white);
  transform: translateY(-2px);
}

.btn__icon {
  font-size: 1.1em;
  transition: transform 0.3s;
}

.btn:hover .btn__icon {
  transform: translateX(4px);
}

.hero__social {
  display: flex;
  gap: var(--space-4);
  align-items: center;
}

.hero__social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--muted);
  font-size: var(--fs-base);
  transition: all 0.3s;
}

.hero__social-link:hover {
  border-color: var(--purple);
  color: var(--purple-light);
  background: rgba(124,58,237,0.08);
  transform: translateY(-3px);
}

.hero__stats {
  display: flex;
  gap: clamp(2rem, 6vw, 5rem);
  margin-top: var(--space-16);
  padding-top: var(--space-10);
  border-top: 1px solid var(--border);
  opacity: 0;
}

.hero__stat-value {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  font-family: var(--font-mono);
  background: linear-gradient(135deg, var(--purple-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.hero__stat-label {
  font-size: var(--fs-xs);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: var(--space-1);
}

/* ── Section Commons ─────────────────────────────────────────── */
.section {
  padding: var(--section-py) clamp(1.5rem, 4vw, 3rem);
  position: relative;
}

.section__inner {
  max-width: 1400px;
  margin: 0 auto;
}

.section__header {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.reveal-text {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--purple-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
  clip-path: inset(0 100% 0 0);
  will-change: clip-path;
}

.reveal-title {
  overflow: hidden;
}

.reveal-title .line-mask {
  overflow: hidden;
  display: block;
}

.reveal-title .line-inner {
  display: block;
  will-change: transform;
}

.section__title {
  font-size: clamp(var(--fs-3xl), 5vw, var(--fs-5xl));
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.section__title--gradient {
  background: linear-gradient(135deg, var(--white) 30%, var(--muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.reveal-para {
  opacity: 0;
  will-change: transform, opacity;
}

.reveal-fade {
  opacity: 0;
  will-change: transform, opacity;
}

/* ── About Section ───────────────────────────────────────────── */
.about {
  background: var(--surface-1);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.about__content {}

.about__title-word {
  display: inline-block;
  will-change: transform, opacity;
}

.about__desc {
  font-size: var(--fs-md);
  color: var(--muted);
  line-height: 1.8;
  margin-top: var(--space-6);
}

.about__pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-8);
}

.about__pill {
  padding: var(--space-2) var(--space-4);
  background: rgba(124,58,237,0.08);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  color: var(--purple-light);
  font-family: var(--font-mono);
}

.about__card {
  position: relative;
  background: var(--surface-2);
  border: var(--card-border);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  will-change: transform;
  transform-style: preserve-3d;
}

.about__card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(124,58,237,0.3), transparent, rgba(6,182,212,0.3));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s;
}

.about__card:hover::before {
  opacity: 1;
}

.about__card-avatar {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 900;
  color: white;
  font-family: var(--font-sans);
  margin-bottom: var(--space-6);
}

.about__card-name {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-1);
}

.about__card-role {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--purple-light);
  margin-bottom: var(--space-6);
}

.about__card-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.about__card-info-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--fs-sm);
  color: var(--muted);
}

.about__card-info-item span:first-child {
  font-size: var(--fs-base);
}

.about__languages {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}

.about__languages-title {
  font-size: var(--fs-xs);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
  font-family: var(--font-mono);
}

.about__lang-chips {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.about__lang-chip {
  padding: var(--space-1) var(--space-3);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--fs-xs);
  color: var(--text);
  font-family: var(--font-mono);
}

/* ── Skills Section ──────────────────────────────────────────── */
.skills {
  background: var(--bg);
}

.skills__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-12);
}

.skill-card {
  background: var(--surface-1);
  border: var(--card-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  text-align: center;
  position: relative;
  overflow: hidden;
  will-change: transform, opacity;
  cursor: default;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.skill-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--skill-color, var(--purple));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out-expo);
}

.skill-card:hover::before {
  transform: scaleX(1);
}

.skill-card:hover {
  border-color: var(--skill-color, var(--purple));
  box-shadow: 0 0 40px rgba(var(--skill-color-raw, 124, 58, 237), 0.15);
}

.skill-card__ring-wrap {
  position: relative;
  width: 120px;
  height: 120px;
}

.skill-card__svg {
  transform: rotate(-90deg);
  width: 120px;
  height: 120px;
}

.skill-card__ring-bg {
  fill: none;
  stroke: rgba(255,255,255,0.05);
  stroke-width: 6;
}

.skill-card__ring-fill {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 314.16;
  stroke-dashoffset: 314.16;
  will-change: stroke-dashoffset;
  transition: stroke 0.3s;
}

.skill-card__ring-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--white);
}

.skill-card__ring-pct {
  font-size: var(--fs-xs);
  color: var(--muted);
}

.skill-card__name {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--white);
}

/* ── Projects Section ────────────────────────────────────────── */
.projects {
  background: var(--surface-1);
  overflow: hidden;
}

.projects__pin-wrap {
  overflow: hidden;
}

.projects__track-outer {
  /* JS will set width */
  display: flex;
  align-items: center;
  height: 100svh;
  padding: 0 clamp(2rem, 5vw, 4rem);
  gap: var(--space-6);
  will-change: transform;
}

.projects__progress-wrap {
  max-width: 1400px;
  margin: 0 auto var(--space-8);
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

.projects__progress-label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-2);
  display: flex;
  justify-content: space-between;
}

.projects__progress-bar {
  height: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.projects__progress-fill {
  height: 100%;
  width: 0%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  will-change: width;
}

.project-card {
  flex-shrink: 0;
  width: clamp(320px, 38vw, 480px);
  height: clamp(440px, 65vh, 600px);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  cursor: none;
  will-change: transform;
  transform-style: preserve-3d;
  transition: box-shadow 0.4s;
}

.project-card__bg {
  position: absolute;
  inset: 0;
  background: var(--surface-2);
  transition: opacity 0.4s;
}

.project-card__glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s;
}

.project-card:hover .project-card__glow {
  opacity: 1;
}

.project-card__body {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-8);
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
}

.project-card__num {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  font-family: var(--font-mono);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.project-card__tag {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-family: var(--font-mono);
  font-weight: 500;
  border: 1px solid;
}

.project-card__title {
  font-size: clamp(var(--fs-lg), 2.5vw, var(--fs-2xl));
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: var(--space-3);
}

.project-card__desc {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}

.project-card__icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-10);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
}

/* ── Experience Section ──────────────────────────────────────── */
.experience {
  background: var(--bg);
}

.experience__layout {
  display: grid;
  grid-template-columns: 1fr 3px 1fr;
  gap: 0 var(--space-8);
  align-items: start;
  position: relative;
}

.experience__timeline-line {
  position: relative;
  align-self: stretch;
  display: flex;
  justify-content: center;
}

.experience__svg-line {
  position: absolute;
  top: 0;
  width: 3px;
}

.experience__timeline-svg {
  width: 3px;
}

.experience__track {
  stroke: rgba(255,255,255,0.06);
}

.experience__fill {
  stroke: url(#lineGradient);
  stroke-dasharray: 0;
  stroke-dashoffset: 0;
  will-change: stroke-dashoffset;
}

.exp-item {
  padding-bottom: var(--space-16);
  opacity: 0;
  will-change: transform, opacity;
}

.exp-item--right {
  padding-top: var(--space-24);
}

.exp-item__dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) scale(0);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--purple);
  border: 3px solid var(--bg);
  box-shadow: 0 0 20px rgba(124,58,237,0.5);
  will-change: transform;
  z-index: 1;
}

.experience__dots-col {
  position: relative;
}

.experience__items-left {
  display: flex;
  flex-direction: column;
}

.experience__items-right {
  display: flex;
  flex-direction: column;
}

.exp-item__card {
  background: var(--surface-1);
  border: var(--card-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  position: relative;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.exp-item__card:hover {
  border-color: rgba(124,58,237,0.3);
  box-shadow: var(--glow-purple);
}

.exp-item__period {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--purple-light);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.exp-item__company {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-1);
}

.exp-item__role {
  font-size: var(--fs-sm);
  color: var(--muted);
  margin-bottom: var(--space-5);
  font-family: var(--font-mono);
}

.exp-item__desc {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

.exp-item__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.exp-item__chip {
  padding: var(--space-1) var(--space-3);
  background: rgba(124,58,237,0.08);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  color: var(--purple-light);
  font-family: var(--font-mono);
  opacity: 0;
  transform: translateY(10px);
  will-change: transform, opacity;
}

/* ── Education section (part of experience) ──────────────────── */
.education {
  background: var(--surface-1);
}

.education__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-12);
}

.edu-card {
  background: var(--bg);
  border: var(--card-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  position: relative;
  overflow: hidden;
  will-change: transform, opacity;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.edu-card:hover {
  border-color: rgba(124,58,237,0.25);
  box-shadow: 0 0 30px rgba(124,58,237,0.1);
}

.edu-card__icon {
  font-size: 2rem;
  margin-bottom: var(--space-4);
}

.edu-card__degree {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}

.edu-card__school {
  font-size: var(--fs-sm);
  color: var(--purple-light);
  font-family: var(--font-mono);
  margin-bottom: var(--space-4);
}

.edu-card__meta {
  font-size: var(--fs-xs);
  color: var(--muted);
  font-family: var(--font-mono);
}

.edu-card__note {
  font-size: var(--fs-xs);
  color: var(--muted);
  margin-top: var(--space-3);
  line-height: 1.5;
}

/* ── Awards Section ──────────────────────────────────────────── */
.awards {
  background: var(--bg);
  perspective: 1200px;
}

.awards__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-12);
  perspective: 800px;
}

.award-card {
  background: var(--surface-1);
  border: var(--card-border);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  position: relative;
  overflow: hidden;
  will-change: transform, opacity;
  transform-style: preserve-3d;
  transition: box-shadow 0.3s;
  cursor: default;
}

.award-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.award-card:hover {
  box-shadow: var(--glow-purple);
}

.award-card__icon {
  font-size: 3rem;
  margin-bottom: var(--space-5);
  display: block;
}

.award-card__title {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-2);
  line-height: 1.2;
}

.award-card__date {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--purple-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
}

.award-card__desc {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.7;
}

.award-card__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(124,58,237,0.12), transparent 60%);
  pointer-events: none;
}

/* ── Contact Section ─────────────────────────────────────────── */
.contact {
  background: var(--surface-1);
  overflow: hidden;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.contact__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-top: var(--space-10);
}

.contact__link {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
  will-change: transform, opacity;
  transform: translateX(80px);
  opacity: 0;
}

.contact__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--link-color, var(--purple));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out-expo);
}

.contact__link:hover::after {
  transform: scaleX(1);
}

.contact__link:hover {
  border-color: var(--link-color, var(--purple));
  box-shadow: 0 0 30px rgba(124,58,237,0.1);
}

.contact__link-icon {
  font-size: 1.75rem;
  min-width: 44px;
  text-align: center;
}

.contact__link-label {
  font-size: var(--fs-xs);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-mono);
  margin-bottom: var(--space-1);
}

.contact__link-value {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--white);
}

.contact__link-arrow {
  margin-left: auto;
  font-size: 1.2rem;
  color: var(--muted);
  transition: transform 0.3s, color 0.3s;
}

.contact__link:hover .contact__link-arrow {
  transform: translate(4px, -4px);
  color: var(--white);
}

.contact__cta-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.contact__cta-desc {
  font-size: var(--fs-md);
  color: var(--muted);
  line-height: 1.8;
}

.contact__cta-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 1.1rem 2.5rem;
  background: linear-gradient(135deg, var(--purple), #6d28d9);
  color: white;
  border-radius: var(--radius-full);
  font-size: var(--fs-base);
  font-weight: 600;
  box-shadow: 0 4px 30px rgba(124,58,237,0.4);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s;
  width: fit-content;
}

.contact__cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  opacity: 0;
  transition: opacity 0.4s;
}

.contact__cta-btn:hover::before {
  opacity: 1;
}

.contact__cta-btn:hover {
  box-shadow: 0 8px 50px rgba(124,58,237,0.6);
}

.contact__cta-btn span {
  position: relative;
  z-index: 1;
}

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  padding: var(--space-10) clamp(1.5rem, 4vw, 3rem);
  border-top: 1px solid var(--border);
  background: var(--black);
}

.footer__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.footer__copy {
  font-size: var(--fs-sm);
  color: var(--muted);
  font-family: var(--font-mono);
}

.footer__copy span {
  color: var(--purple-light);
}

.footer__links {
  display: flex;
  gap: var(--space-5);
}

.footer__link {
  font-size: var(--fs-sm);
  color: var(--muted);
  transition: color 0.3s;
  font-family: var(--font-mono);
}

.footer__link:hover {
  color: var(--white);
}

/* ── Magnetic Wrapper ────────────────────────────────────────── */
.magnetic {
  display: inline-block;
  will-change: transform;
}

/* ── Scroll indicator ────────────────────────────────────────── */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  opacity: 0;
}

.scroll-indicator__text {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  writing-mode: horizontal-tb;
}

.scroll-indicator__line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--purple), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  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; }
}

/* ── body.loading — prevent scroll during preloader ─────────── */
body.loading { overflow: hidden; }

/* ── Hero stat divider ───────────────────────────────────────── */
.hero__stat-div {
  width: 1px;
  align-self: stretch;
  background: var(--border);
}

/* ── Nav active link ─────────────────────────────────────────── */
.nav__link.active { color: var(--white); }
.nav__link.active::after { width: 100%; }

/* ── Footer location text ────────────────────────────────────── */
.footer__loc {
  font-size: var(--fs-sm);
  color: var(--muted);
  font-family: var(--font-mono);
}

/* ── Contact floating orb ────────────────────────────────────── */
.contact__orb {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.12), transparent 70%);
  pointer-events: none;
  top: 0; left: 0;
  filter: blur(40px);
  will-change: transform;
}

/* ── Experience SVG fill stroke color ───────────────────────── */
.experience__fill {
  stroke: url(#lineGradient);
  stroke-width: 3;
  fill: none;
}
.experience__track {
  stroke: rgba(255,255,255,0.06);
  stroke-width: 3;
  fill: none;
}

/* ── Experience timeline SVG sizing ─────────────────────────── */
.experience__timeline-svg {
  width: 3px;
  height: 100%;
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
}

/* ── Experience timeline line column ────────────────────────── */
.experience__timeline-line {
  position: relative;
}
.experience__dots-col .exp-item__dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) scale(0);
}

