/* ==========================================================================
   ISHANTH G — PREMIUM PORTFOLIO
   Midnight black · pure white · electric lime.
   Editorial typography, glass surfaces, ambient light and restrained motion.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces */
  --bg: #050505;
  --bg-alt: #0a0a0a;
  --surface: #0d0d0d;
  --surface-2: #121212;

  /* Type */
  --ink: #ffffff;
  --ink-soft: #ececec;
  --muted: #a1a1a1;
  --faint: #6f6f6f;

  /* Accent */
  --accent: #c6ff00;
  --accent-dim: rgba(198, 255, 0, 0.1);
  --accent-line: rgba(198, 255, 0, 0.38);
  --accent-glow: rgba(198, 255, 0, 0.45);
  --on-accent: #050505;

  /* Lines */
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* Type families */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Layout */
  --nav-height: 76px;
  --container: 1200px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --radius-full: 9999px;

  /* Elevation */
  --shadow-sm: 0 10px 30px -24px rgba(0, 0, 0, 0.9);
  --shadow-md: 0 30px 70px -40px rgba(0, 0, 0, 0.95);
  --shadow-glow: 0 14px 50px -14px rgba(198, 255, 0, 0.5);

  /* Motion */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.2s var(--ease-smooth);
  --transition-normal: 0.4s var(--ease-spring);
  --transition-slow: 0.7s var(--ease-spring);
}

/* Light editorial sections — same identity, inverted ink */
.section--light {
  --surface: #ffffff;
  --surface-2: #f5f5f5;
  --ink: #0a0a0a;
  --ink-soft: #2b2b2b;
  --muted: #5d5d5d;
  --faint: #8c8c8c;
  --line: rgba(5, 5, 5, 0.1);
  --line-strong: rgba(5, 5, 5, 0.22);
  --accent-dim: rgba(198, 255, 0, 0.2);
  background: #ffffff;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 16px);
  background: var(--bg);
  color-scheme: dark;
}

body {
  font-family: var(--font-primary);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}

/* Film grain — the subtle texture that makes flat black feel expensive */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 2500;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #050505;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-full);
  border: 3px solid #050505;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* --------------------------------------------------------------------------
   3. PRELOADER
   -------------------------------------------------------------------------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 6000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050505;
  animation: loaderAutoHide 0.7s var(--ease-smooth) 1.8s forwards;
}

.loader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.7s var(--ease-smooth) 0.1s, visibility 0s linear 0.8s;
}

.loader-inner {
  text-align: center;
}

.loader-mark {
  font-family: var(--font-display);
  font-size: clamp(4rem, 9vw, 6rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent);
  animation: loaderMark 1s var(--ease-spring) both;
}

.loader-mark span {
  color: #ffffff;
  font-style: italic;
}

.loader-line {
  position: relative;
  width: 78px;
  height: 1px;
  margin: 28px auto 0;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.loader-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: left;
  animation: loaderLine 1.4s var(--ease-smooth) 0.15s both;
}

@keyframes loaderMark {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.94);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

@keyframes loaderLine {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes loaderAutoHide {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* --------------------------------------------------------------------------
   4. CUSTOM CURSOR (desktop, pointer-fine only)
   -------------------------------------------------------------------------- */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 7000;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(198, 255, 0, 0.8);
}

.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(198, 255, 0, 0.5);
  transition: width 0.3s var(--ease-spring), height 0.3s var(--ease-spring),
              background 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
}

body.has-cursor .cursor-dot,
body.has-cursor .cursor-ring {
  opacity: 1;
}

body.has-cursor,
body.has-cursor a,
body.has-cursor button,
body.has-cursor [role='button'] {
  cursor: none;
}

body.cursor-hover .cursor-ring {
  width: 56px;
  height: 56px;
  border-color: var(--accent);
  background: rgba(198, 255, 0, 0.1);
}

body.cursor-hover .cursor-dot {
  opacity: 0;
}

/* --------------------------------------------------------------------------
   5. NAVIGATION
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(5, 5, 5, 0.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: background var(--transition-fast), border-color var(--transition-fast),
              height var(--transition-normal);
}

.navbar.scrolled {
  height: 68px;
  background: rgba(5, 5, 5, 0.84);
  border-bottom-color: var(--line);
}

.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1;
  transition: color var(--transition-fast);
}

.nav-logo span {
  color: var(--accent);
}

.nav-logo:hover {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0;
  border: 0;
  background: none;
}

.nav-links a {
  position: relative;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.62);
  padding: 9px 0;
  transition: color var(--transition-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(198, 255, 0, 0.55);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}

.nav-links a:hover {
  color: #ffffff;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-links a.active {
  color: #ffffff;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  cursor: pointer;
  padding: 11px;
  z-index: 1001;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.hamburger:hover {
  border-color: var(--accent-line);
}

.hamburger span {
  width: 20px;
  height: 1.5px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform var(--transition-normal), opacity var(--transition-fast),
              background var(--transition-fast);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(4.5px, 4.5px);
  background: var(--accent);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-8px);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4.5px, -4.5px);
  background: var(--accent);
}

/* --------------------------------------------------------------------------
   6. HERO
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-height) + 64px) 0 110px;
  background: #050505;
  isolation: isolate;
}

/* Two soft lime light fields */
.hero::before {
  content: '';
  position: absolute;
  top: -18%;
  right: -12%;
  width: 62vw;
  height: 62vw;
  background: radial-gradient(circle at center, rgba(198, 255, 0, 0.16), transparent 62%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: glowDrift 14s ease-in-out infinite alternate;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -22%;
  left: -16%;
  width: 52vw;
  height: 52vw;
  background: radial-gradient(circle at center, rgba(198, 255, 0, 0.08), transparent 60%);
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  animation: glowDriftAlt 18s ease-in-out infinite alternate;
}

@keyframes glowDrift {
  from { transform: translate3d(0, 0, 0) scale(1); opacity: 0.9; }
  to { transform: translate3d(-4%, 4%, 0) scale(1.08); opacity: 0.65; }
}

@keyframes glowDriftAlt {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(5%, -4%, 0) scale(1.12); }
}

#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.7;
}

.hero-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  align-items: center;
  gap: 64px;
  position: relative;
  z-index: 2;
}

.hero-content {
  text-align: left;
  max-width: 660px;
  position: relative;
  z-index: 2;
}

@keyframes heroEntrance {
  from {
    opacity: 0;
    transform: translateY(26px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.hero-content > * {
  animation: heroEntrance 0.9s var(--ease-spring) both;
}

.hero-greeting { animation-delay: 0.85s; }
.hero-name { animation-delay: 0.95s; }
.hero-tagline { animation-delay: 1.05s; }
.hero-description { animation-delay: 1.15s; }
.hero-buttons { animation-delay: 1.25s; }
.hero-socials { animation-delay: 1.35s; }

.hero-greeting {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

.hero-greeting::before {
  content: '';
  width: 34px;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(198, 255, 0, 0.7);
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(4.6rem, 9.4vw, 8.2rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.92;
  color: #ffffff;
  margin-bottom: 24px;
}

.hero-name em {
  font-style: italic;
  color: var(--accent);
  text-shadow: 0 0 60px rgba(198, 255, 0, 0.35);
}

.hero-name .accent-dot {
  color: var(--accent);
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.1vw, 1.35rem);
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 22px;
  min-height: 2.2rem;
  letter-spacing: -0.01em;
}

.tagline-prefix {
  color: var(--muted);
}

.typed-text {
  color: var(--accent);
  font-weight: 600;
}

.cursor {
  color: var(--accent);
  font-weight: 300;
  animation: blink 1.1s step-end infinite;
  margin-left: 2px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-description {
  font-size: 1.03rem;
  color: var(--muted);
  max-width: 545px;
  margin: 0 0 36px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* --------------------------------------------------------------------------
   7. BUTTONS & SOCIALS
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--radius-full);
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1.2;
  cursor: pointer;
  border: 1px solid transparent;
  overflow: hidden;
  transition: background var(--transition-fast), color var(--transition-fast),
              border-color var(--transition-fast), transform var(--transition-normal),
              box-shadow var(--transition-normal);
}

.btn i {
  font-size: 0.82rem;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 0 0 rgba(198, 255, 0, 0);
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.55) 50%, transparent 62%);
  transform: translateX(-130%);
  transition: transform 0.7s var(--ease-smooth);
  pointer-events: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover::after {
  transform: translateX(130%);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.02);
  color: #ffffff;
  border-color: var(--line-strong);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  color: #ffffff;
  border-color: var(--accent-line);
  background: var(--accent-dim);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

/* Social buttons */
.hero-socials {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  align-items: center;
}

.hero-socials a {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 1rem;
  transition: color var(--transition-fast), background var(--transition-fast),
              border-color var(--transition-fast), transform var(--transition-normal),
              box-shadow var(--transition-normal);
}

.hero-socials a:hover {
  color: var(--on-accent);
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px -10px rgba(198, 255, 0, 0.6);
}

/* Hero profile card */
@keyframes cardEntrance {
  from {
    opacity: 0;
    transform: translateY(34px) rotate(1.5deg) scale(0.97);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0) scale(1);
    filter: blur(0);
  }
}

.hero-card {
  position: relative;
  width: 100%;
  max-width: 430px;
  justify-self: end;
  padding: 26px 28px 24px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015) 46%),
    rgba(10, 10, 10, 0.72);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow:
    0 50px 90px -50px rgba(0, 0, 0, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
  animation: cardEntrance 1s var(--ease-spring) 1.15s both;
}

/* Halo behind the card */
.hero-card::before {
  content: '';
  position: absolute;
  inset: -46px;
  z-index: -1;
  border-radius: 44px;
  background: radial-gradient(circle at 72% 18%, rgba(198, 255, 0, 0.2), transparent 58%);
  filter: blur(34px);
  pointer-events: none;
}

/* Thin orbital ring — a futuristic halo around the profile */
.hero-card::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 122%;
  height: 122%;
  z-index: -1;
  border-radius: 50%;
  border: 1px dashed rgba(198, 255, 0, 0.14);
  transform: translate(-50%, -50%);
  animation: orbitSpin 46s linear infinite;
  pointer-events: none;
}

@keyframes orbitSpin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.hero-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.hero-card-kicker {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}

.hero-card-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(198, 255, 0, 0.08);
  border: 1px solid rgba(198, 255, 0, 0.28);
  border-radius: var(--radius-full);
  padding: 5px 12px;
  white-space: nowrap;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(198, 255, 0, 0.55);
  animation: pulseDot 2.4s infinite var(--ease-smooth);
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(198, 255, 0, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(198, 255, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(198, 255, 0, 0); }
}

.hero-card-monogram {
  font-family: var(--font-display);
  font-size: clamp(5rem, 7.4vw, 6.4rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: #ffffff;
  padding: 26px 0 22px;
}

.hero-card-monogram span {
  font-style: italic;
  color: var(--accent);
}

.hero-card-facts {
  display: flex;
  flex-direction: column;
}

.hero-card-facts > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.hero-card-facts dt {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}

.hero-card-facts dd {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-align: right;
}

.hero-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 14px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.61rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--faint);
}

.hero-card-chip {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 9px 15px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.9);
}

.chip-1 {
  top: 118px;
  right: -30px;
  background: #ffffff;
  color: var(--on-accent);
  transform: rotate(3deg);
}

.chip-2 {
  bottom: -16px;
  left: 26px;
  background: var(--accent);
  color: var(--on-accent);
  transform: rotate(-3deg);
  box-shadow: 0 18px 40px -16px rgba(198, 255, 0, 0.45);
}

/* Scroll cue */
.scroll-indicator {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  z-index: 2;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.scroll-indicator:hover {
  opacity: 1;
}

.mouse {
  width: 22px;
  height: 34px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-full);
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.wheel {
  width: 2px;
  height: 6px;
  background: var(--accent);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(198, 255, 0, 0.8);
  animation: scrollWheel 2s infinite ease-in-out;
}

@keyframes scrollWheel {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(12px); }
}

.scroll-indicator p {
  font-size: 0.6rem;
  font-family: var(--font-mono);
  color: var(--faint);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   8. SECTION ARCHITECTURE
   -------------------------------------------------------------------------- */
.section {
  padding: 122px 0;
  position: relative;
  z-index: 1;
  background: var(--bg);
}

/* keep legacy class harmless */
.section-alt {
  background: var(--bg);
}

.section--light {
  background: #ffffff;
}

.section-title {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.7rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--ink);
  margin-bottom: 58px;
  max-width: 800px;
}

.title-number {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--accent) 62%, var(--ink));
  margin-bottom: 18px;
}

.section--light .title-number {
  color: #7c7c7c;
}

.section--light .title-number::after {
  background: rgba(150, 190, 0, 0.55);
}

.title-number::after {
  content: '';
  width: 42px;
  height: 1px;
  background: var(--line-strong);
}

/* --------------------------------------------------------------------------
   9. ABOUT — EDITORIAL SPLIT
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.32fr 0.9fr;
  gap: 72px;
  align-items: start;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 20px;
  font-size: 1.06rem;
  line-height: 1.85;
}

.about-text p:first-child {
  font-size: 1.14rem;
}

.about-text strong {
  color: var(--ink);
  font-weight: 600;
  background-image: linear-gradient(transparent 58%, var(--accent) 58%, var(--accent) 92%, transparent 92%);
  padding: 0 2px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.about-info {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 0.93rem;
  transition: color var(--transition-fast), transform var(--transition-normal);
}

.info-item:hover {
  color: var(--ink);
  transform: translateX(3px);
}

.info-item i {
  color: #6b7a2b;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid rgba(150, 190, 0, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  flex-shrink: 0;
}

.section--light .info-item i {
  color: #5e7200;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.stat-card {
  position: relative;
  overflow: hidden;
  background: #050505;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: 0 30px 60px -50px rgba(0, 0, 0, 0.9);
  transition: transform var(--transition-normal), border-color var(--transition-fast),
              box-shadow var(--transition-normal);
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(240px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
              rgba(198, 255, 0, 0.16), transparent 62%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
  box-shadow: 0 30px 60px -40px rgba(198, 255, 0, 0.25);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 3.6vw, 3.2rem);
  font-weight: 400;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1;
  position: relative;
  transition: color var(--transition-normal);
}

.stat-card:hover .stat-number {
  color: var(--accent);
}

.stat-label {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 12px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   10. EDUCATION TIMELINE
   -------------------------------------------------------------------------- */
.timeline {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding-left: 46px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(180deg,
              rgba(198, 255, 0, 0.55) 0%,
              rgba(198, 255, 0, 0.14) 45%,
              rgba(255, 255, 255, 0.07) 100%);
}

.timeline-item {
  position: relative;
  margin-bottom: 20px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -46px;
  top: 32px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #050505;
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(198, 255, 0, 0.07), 0 0 18px rgba(198, 255, 0, 0.5);
  transition: transform var(--transition-fast), background var(--transition-fast),
              box-shadow var(--transition-fast);
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.2);
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(198, 255, 0, 0.1), 0 0 26px rgba(198, 255, 0, 0.7);
}

.timeline-content {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 32px;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal),
              border-color var(--transition-fast);
}

.timeline-content::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: var(--accent);
  opacity: 0;
  transform: scaleY(0.4);
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.timeline-content:hover {
  border-color: var(--accent-line);
  transform: translateY(-3px);
  box-shadow: 0 30px 60px -45px rgba(198, 255, 0, 0.35);
}

.timeline-content:hover::before {
  opacity: 1;
  transform: scaleY(1);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 6px;
}

.timeline-header h3 {
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.015em;
}

.timeline-date {
  font-size: 0.7rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 500;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: rgba(198, 255, 0, 0.07);
  border: 1px solid rgba(198, 255, 0, 0.24);
  white-space: nowrap;
}

.timeline-degree {
  color: var(--muted);
  font-size: 0.96rem;
  margin-bottom: 18px;
}

.timeline-details {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  border: 1px solid var(--line);
}

.badge i {
  font-size: 0.68rem;
}

.badge-accent {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: rgba(198, 255, 0, 0.24);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   11. SKILLS — BENTO GRID
   -------------------------------------------------------------------------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.skill-category:nth-child(1),
.skill-category:nth-child(2) {
  grid-column: span 3;
}

.skill-category:nth-child(3),
.skill-category:nth-child(4),
.skill-category:nth-child(5) {
  grid-column: span 2;
}

.skill-category {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(5, 5, 5, 0.1);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform var(--transition-normal), border-color var(--transition-fast),
              box-shadow var(--transition-normal), background var(--transition-normal);
}

.skill-category::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(340px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
              rgba(198, 255, 0, 0.22), transparent 65%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.skill-category::after {
  content: '';
  position: absolute;
  top: 20px;
  right: 20px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(198, 255, 0, 0.9);
  opacity: 0;
  transform: scale(0);
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.skill-category:hover {
  border-color: rgba(5, 5, 5, 0.24);
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -40px rgba(140, 180, 0, 0.55);
}

.skill-category:hover::before {
  opacity: 1;
}

.skill-category:hover::after {
  opacity: 1;
  transform: scale(1);
}

.skill-category-header {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 22px;
  position: relative;
}

.skill-category-header i {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(198, 255, 0, 0.22);
  border: 1px solid rgba(160, 200, 0, 0.35);
  color: #5e7200;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  transition: background var(--transition-fast), color var(--transition-fast),
              transform var(--transition-normal);
}

.skill-category:hover .skill-category-header i {
  background: var(--accent);
  color: #050505;
  transform: rotate(-6deg) scale(1.05);
}

.skill-category-header h3 {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
}

.skill-tag {
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 500;
  font-family: var(--font-mono);
  background: #f5f5f5;
  color: var(--ink-soft);
  border: 1px solid rgba(5, 5, 5, 0.09);
  transition: all var(--transition-fast);
}

.skill-tag:hover {
  background: var(--accent);
  color: #050505;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -10px rgba(140, 180, 0, 0.7);
}

/* --------------------------------------------------------------------------
   12. PROJECTS — EDITORIAL SHOWCASE
   -------------------------------------------------------------------------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  counter-reset: project;
}

/* Flagship project spans the full editorial width */
.project-card:first-child {
  grid-column: 1 / -1;
}

.project-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  counter-increment: project;
  background:
    radial-gradient(560px circle at 94% -12%, rgba(198, 255, 0, 0.1), transparent 58%),
    linear-gradient(170deg, rgba(255, 255, 255, 0.045), transparent 44%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 36px;
  transition: transform var(--transition-normal), border-color var(--transition-fast),
              box-shadow var(--transition-normal);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0);
  transition: transform var(--transition-slow);
}

/* Subtle spotlight following the pointer */
.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
              rgba(198, 255, 0, 0.09), transparent 62%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-line);
  box-shadow: 0 40px 80px -48px rgba(198, 255, 0, 0.4);
}

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

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

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

/* Oversized ghost index */
.project-card-header::after {
  content: '0' counter(project);
  position: absolute;
  top: -26px;
  right: 52px;
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.055);
  pointer-events: none;
  transition: color var(--transition-normal);
}

.project-card:hover .project-card-header::after {
  color: rgba(198, 255, 0, 0.09);
}

.project-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: rgba(198, 255, 0, 0.09);
  border: 1px solid rgba(198, 255, 0, 0.26);
  color: var(--accent);
  font-size: 1.15rem;
  transition: background var(--transition-normal), color var(--transition-normal),
              transform var(--transition-normal), box-shadow var(--transition-normal);
}

.project-card:hover .project-icon {
  background: var(--accent);
  color: #050505;
  transform: rotate(-6deg) scale(1.06);
  box-shadow: 0 14px 34px -12px rgba(198, 255, 0, 0.55);
}

.project-links {
  display: flex;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.project-links a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 1.05rem;
  transition: color var(--transition-fast), border-color var(--transition-fast),
              background var(--transition-fast), transform var(--transition-normal);
}

.project-links a:hover {
  color: var(--on-accent);
  border-color: var(--accent);
  background: var(--accent);
  transform: translateY(-2px);
}

.project-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.8vw, 2.3rem);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: -0.025em;
  line-height: 1.05;
  position: relative;
  z-index: 1;
}

.project-subtitle {
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 500;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.project-card:first-child .project-title {
  font-size: clamp(2.2rem, 3.4vw, 2.8rem);
}

.project-card:first-child .project-description {
  max-width: 840px;
}

.project-description {
  margin-bottom: 26px;
  flex: 1;
  position: relative;
  z-index: 1;
}

.project-description li {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
  line-height: 1.65;
}

.project-description li:last-child {
  margin-bottom: 0;
}

.project-description li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 9px;
  height: 1.5px;
  background: var(--accent);
  opacity: 0.8;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 1;
}

.project-tech span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 5px 11px;
  border-radius: var(--radius-full);
  transition: color var(--transition-fast), border-color var(--transition-fast),
              background var(--transition-fast);
}

.project-card:hover .project-tech span {
  border-color: rgba(255, 255, 255, 0.16);
}

.project-tech span:hover {
  color: var(--accent);
  border-color: var(--accent-line);
  background: rgba(198, 255, 0, 0.06);
}

/* --------------------------------------------------------------------------
   13. ACHIEVEMENTS
   -------------------------------------------------------------------------- */
.cp-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #050505;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 18px;
  box-shadow: 0 40px 90px -60px rgba(0, 0, 0, 0.9);
}

.cp-stat {
  position: relative;
  padding: 30px 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transition: background var(--transition-fast);
}

.cp-stat:last-child {
  border-right: 0;
}

.cp-stat:hover {
  background: rgba(198, 255, 0, 0.05);
}

.cp-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(198, 255, 0, 0.1);
  border: 1px solid rgba(198, 255, 0, 0.25);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 18px;
}

.cp-number {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 3.4vw, 2.9rem);
  font-weight: 400;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1;
  transition: color var(--transition-normal);
}

.cp-stat:hover .cp-number {
  color: var(--accent);
}

.cp-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.achievement-card {
  grid-column: span 2;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 17px;
  background: #ffffff;
  border: 1px solid rgba(5, 5, 5, 0.1);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal),
              border-color var(--transition-fast);
}

.achievement-card:nth-child(4),
.achievement-card:nth-child(5) {
  grid-column: span 3;
}

.achievement-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 26px;
  right: 26px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow);
}

.achievement-card:hover {
  border-color: rgba(5, 5, 5, 0.26);
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -40px rgba(140, 180, 0, 0.5);
}

.achievement-card:hover::after {
  transform: scaleX(1);
}

.achievement-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(198, 255, 0, 0.25);
  border: 1px solid rgba(160, 200, 0, 0.35);
  color: #5e7200;
  font-size: 1rem;
  transition: background var(--transition-fast), color var(--transition-fast),
              transform var(--transition-normal);
}

.achievement-card:hover .achievement-icon {
  background: var(--accent);
  color: #050505;
  transform: rotate(-6deg) scale(1.05);
}

.achievement-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 5px;
  letter-spacing: -0.01em;
}

.achievement-content p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

.achievement-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #5e7200;
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 10px;
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.achievement-link i {
  font-size: 0.66rem;
}

.achievement-link:hover {
  gap: 9px;
  color: #050505;
}

.section--light .achievement-link:hover {
  color: #050505;
}

/* --------------------------------------------------------------------------
   14. RESUME
   -------------------------------------------------------------------------- */
.resume-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.resume-card {
  max-width: 760px;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: 0 40px 90px -56px rgba(0, 0, 0, 0.95);
  transition: border-color var(--transition-fast), box-shadow var(--transition-normal);
}

.resume-card::before {
  content: '';
  display: block;
  height: 40px;
  background: rgba(255, 255, 255, 0.035);
  border-bottom: 1px solid var(--line);
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.28) 3.5px, transparent 4px),
                    radial-gradient(circle, rgba(198, 255, 0, 0.55) 3.5px, transparent 4px),
                    radial-gradient(circle, rgba(255, 255, 255, 0.16) 3.5px, transparent 4px);
  background-size: 18px 18px;
  background-position: 18px center, 38px center, 58px center;
  background-repeat: no-repeat;
}

.resume-card:hover {
  border-color: var(--accent-line);
  box-shadow: 0 40px 90px -50px rgba(198, 255, 0, 0.25);
}

.resume-embed {
  width: 100%;
  height: 820px;
  border: none;
  display: block;
  background: #ffffff;
}

.resume-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   15. CONTACT
   -------------------------------------------------------------------------- */
.contact {
  position: relative;
  overflow: hidden;
}

#contact::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 50%;
  width: 70vw;
  height: 70vw;
  max-width: 950px;
  max-height: 950px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(198, 255, 0, 0.07), transparent 62%);
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 64px;
  max-width: 1060px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.contact-intro {
  font-size: 1.04rem;
  color: var(--muted);
  margin-bottom: 34px;
  line-height: 1.8;
  max-width: 400px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 34px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-item-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(198, 255, 0, 0.08);
  border: 1px solid rgba(198, 255, 0, 0.24);
  color: var(--accent);
  font-size: 0.95rem;
  transition: background var(--transition-fast), color var(--transition-fast),
              transform var(--transition-normal);
}

.contact-item:hover .contact-item-icon {
  background: var(--accent);
  color: #050505;
  transform: translateY(-2px);
}

.contact-item h4 {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--faint);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 3px;
}

.contact-item a,
.contact-item p {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 500;
}

.contact-item a:hover {
  color: var(--accent);
}

.contact-socials {
  display: flex;
  gap: 10px;
}

.contact-socials a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.95rem;
  transition: color var(--transition-fast), background var(--transition-fast),
              border-color var(--transition-fast), transform var(--transition-normal);
}

.contact-socials a:hover {
  color: var(--on-accent);
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
}

.contact-form {
  position: relative;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.045), transparent 48%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: 0 50px 100px -70px rgba(0, 0, 0, 0.95);
  transition: border-color var(--transition-fast), box-shadow var(--transition-normal);
}

.contact-form:focus-within {
  border-color: rgba(198, 255, 0, 0.28);
  box-shadow: 0 50px 100px -60px rgba(198, 255, 0, 0.25);
}

.form-head {
  padding-bottom: 22px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.form-head h3 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 5px;
}

.form-head p {
  font-size: 0.86rem;
  color: var(--muted);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: #ffffff;
  font-family: var(--font-primary);
  font-size: 0.94rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast),
              background var(--transition-fast);
}

.form-group input:hover,
.form-group textarea:hover {
  border-color: var(--line-strong);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: rgba(198, 255, 0, 0.035);
  box-shadow: 0 0 0 3px rgba(198, 255, 0, 0.14);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.36);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

/* --------------------------------------------------------------------------
   16. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  position: relative;
  z-index: 1;
  background: #050505;
  color: #ffffff;
  border-top: 1px solid var(--line);
  padding: 76px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 52px;
}

.footer-logo {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1;
  color: #ffffff;
  margin-bottom: 14px;
}

.footer-logo span {
  color: var(--accent);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.92rem;
  max-width: 300px;
  line-height: 1.7;
}

.footer-links h4,
.footer-social h4 {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.42);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
  margin-bottom: 11px;
  width: fit-content;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent);
  transform: translateX(3px);
}

.footer-social-icons {
  display: flex;
  gap: 10px;
}

.footer-social-icons a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: color var(--transition-fast), background var(--transition-fast),
              border-color var(--transition-fast), transform var(--transition-normal);
}

.footer-social-icons a:hover {
  color: var(--on-accent);
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.38);
}

.footer-bottom p i {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   17. SCROLL TO TOP
   -------------------------------------------------------------------------- */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.9);
  color: #ffffff;
  border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  cursor: pointer;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all var(--transition-normal);
  z-index: 999;
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.9);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  color: var(--on-accent);
  border-color: var(--accent);
  background: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -14px rgba(198, 255, 0, 0.55);
}

/* --------------------------------------------------------------------------
   18. REVEAL ANIMATIONS
   -------------------------------------------------------------------------- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition: opacity 0.85s var(--ease-spring), transform 0.85s var(--ease-spring),
              filter 0.85s var(--ease-spring);
  will-change: opacity, transform, filter;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.animate-on-scroll:nth-child(2) { transition-delay: 0.06s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.12s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.18s; }

/* Stagger card grids */
.projects-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.08s; }
.projects-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.16s; }

.skills-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.06s; }
.skills-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.12s; }
.skills-grid .animate-on-scroll:nth-child(4) { transition-delay: 0.18s; }
.skills-grid .animate-on-scroll:nth-child(5) { transition-delay: 0.24s; }

.achievements-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.06s; }
.achievements-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.12s; }
.achievements-grid .animate-on-scroll:nth-child(4) { transition-delay: 0.18s; }
.achievements-grid .animate-on-scroll:nth-child(5) { transition-delay: 0.24s; }

.timeline .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.timeline .animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }

/* --------------------------------------------------------------------------
   19. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .hero-inner {
    gap: 48px;
  }

  .about-grid {
    gap: 48px;
  }

  .nav-links {
    gap: 22px;
  }
}

@media (max-width: 960px) {
  :root {
    --nav-height: 68px;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    counter-reset: nav;
    position: fixed;
    top: 0;
    right: -100%;
    width: min(360px, 88vw);
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    padding: 100px 34px 48px;
    background: #080808;
    border-left: 1px solid var(--line);
    transition: right var(--transition-normal);
    z-index: 1000;
    box-shadow: -40px 0 80px -50px rgba(0, 0, 0, 0.9);
  }

  /* Dim the page behind the mobile drawer */
  .nav-links::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 5, 0.58);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
    z-index: -1;
  }

  .nav-links.active::before {
    opacity: 1;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    counter-increment: nav;
    border-bottom: 1px solid var(--line);
  }

  .nav-links a {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: -0.01em;
    padding: 18px 0;
    color: rgba(255, 255, 255, 0.72);
  }

  .nav-links a::before {
    content: '0' counter(nav);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    color: var(--accent);
    opacity: 0.7;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a.active {
    color: var(--accent);
  }

  .hero {
    min-height: auto;
    padding: calc(var(--nav-height) + 56px) 0 90px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .hero-content {
    max-width: 640px;
  }

  .hero-card {
    justify-self: start;
    max-width: 470px;
  }

  .hero-card-monogram {
    font-size: 6rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .about-stats {
    max-width: 540px;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .skill-category:nth-child(1),
  .skill-category:nth-child(2),
  .skill-category:nth-child(3),
  .skill-category:nth-child(4),
  .skill-category:nth-child(5) {
    grid-column: span 1;
  }

  .cp-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .cp-stat:nth-child(2n) {
    border-right: 0;
  }

  .cp-stat:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .achievements-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .achievement-card,
  .achievement-card:nth-child(4),
  .achievement-card:nth-child(5) {
    grid-column: span 1;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-intro {
    max-width: 560px;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 780px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card:first-child {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .container,
  .nav-container,
  .hero-inner {
    padding-left: 22px;
    padding-right: 22px;
  }

  html {
    scroll-padding-top: calc(var(--nav-height) + 8px);
  }

  .section {
    padding: 84px 0;
  }

  .section-title {
    margin-bottom: 42px;
  }

  .hero {
    padding-top: calc(var(--nav-height) + 42px);
    padding-bottom: 68px;
  }

  .hero-inner {
    gap: 52px;
  }

  .hero-name {
    font-size: clamp(3.6rem, 17vw, 4.6rem);
    margin-bottom: 20px;
  }

  .hero-tagline {
    font-size: 1rem;
    min-height: 3.4rem;
  }

  .hero-description {
    font-size: 0.96rem;
    margin-bottom: 30px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
    margin-bottom: 32px;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .hero-socials {
    gap: 10px;
  }

  .hero-socials a {
    width: 42px;
    height: 42px;
  }

  .hero-card {
    max-width: 100%;
    padding: 24px 22px 22px;
  }

  .hero-card-monogram {
    font-size: 5.4rem;
    padding: 22px 0 18px;
  }

  .hero-card::after {
    display: none;
  }

  .hero-card-chip {
    display: none;
  }

  .scroll-indicator {
    display: none;
  }

  .about-text p {
    font-size: 1rem;
  }

  .about-text p:first-child {
    font-size: 1.06rem;
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .stat-card {
    padding: 24px 20px;
  }

  .stat-number {
    font-size: 2.4rem;
  }

  .timeline {
    padding-left: 32px;
  }

  .timeline::before {
    left: 4px;
  }

  .timeline-dot {
    left: -32px;
    top: 28px;
    width: 13px;
    height: 13px;
  }

  .timeline-content {
    padding: 24px 22px;
  }

  .timeline-header {
    flex-direction: column;
    gap: 8px;
  }

  .skills-grid,
  .achievements-grid {
    grid-template-columns: 1fr;
  }

  .skill-category {
    padding: 24px 22px;
  }

  .cp-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .cp-stat {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 20px;
  }

  .cp-stat:nth-child(2n) {
    border-right: 0;
  }

  .cp-stat:nth-child(-n + 2) {
    border-top: 0;
  }

  .project-card {
    padding: 26px 22px;
  }

  .project-title {
    font-size: 1.75rem;
  }

  .resume-embed {
    height: 520px;
  }

  .contact-form {
    padding: 26px 22px;
  }

  .form-head h3 {
    font-size: 1.6rem;
  }

  .footer {
    padding: 60px 0 26px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 34px;
    margin-bottom: 40px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .scroll-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 420px) {
  .hero-name {
    font-size: 3.3rem;
  }

  .cp-stats {
    grid-template-columns: 1fr;
  }

  .cp-stat {
    border-right: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .cp-stat:first-child {
    border-top: 0;
  }
}

/* --------------------------------------------------------------------------
   20. ACCESSIBILITY — REDUCED MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }

  .loader {
    display: none;
  }
}

/* Touch devices: no custom cursor */
@media (pointer: coarse) {
  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}
