/* ============================================
   PAVITRA KUSHWAHA — PORTFOLIO
   EXTREME ANIMATION UPGRADE v2
   25+ Interactive Animation Systems
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=DM+Sans:wght@400;500;600;700&family=DM+Mono:wght@400;500&display=swap');

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

:root {
  --bg: #f5f9ff;
  --bg-alt: #eef4fc;
  --bg-white: #ffffff;
  --bg-card-blue: #e0ecff;
  --bg-card-warm: #faf8f5;
  --text: #0B1015;
  --text-muted: #4a5568;
  --text-dim: #8b95a5;
  --blue: #0763ee;
  --blue-hover: #0550cc;
  --blue-light: #3b82f6;
  --blue-accent: #007bff;
  --border: #d0dce8;
  --border-light: #e2eaf2;
  --border-dashed: #b0ceed;
  --green: #22c55e;
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'DM Mono', 'Fira Code', monospace;
  --container: 1200px;
  --nav-height: 73px;
  --section-header-height: 48px;
  --text-dark: #0B1015;
}

/* ═══ DARK MODE ═══ */
[data-theme="dark"] {
  --bg: #0a0e14;
  --bg-alt: #111820;
  --bg-white: #141a22;
  --bg-card-blue: #111d2e;
  --bg-card-warm: #181c20;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-dark: #f8fafc;
  --blue: #3b82f6;
  --blue-hover: #60a5fa;
  --blue-light: #2563eb;
  --blue-accent: #3b82f6;
  --border: #1e293b;
  --border-light: #1e293b;
  --border-dashed: #334155;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  cursor: auto;
}

body::-webkit-scrollbar { width: 6px; }
body::-webkit-scrollbar-track { background: var(--bg); }
body::-webkit-scrollbar-thumb { background: var(--border-dashed); border-radius: 99px; }
body::-webkit-scrollbar-thumb:hover { background: var(--blue-light); }

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

/* ════════════════════════════════════════
   SCROLL PROGRESS BAR
   ════════════════════════════════════════ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), #8b5cf6, var(--blue-light));
  z-index: 9999;
  transition: width 0.05s linear;
}

/* ════════════════════════════════════════
   CUSTOM SCROLLBAR & BASE
   ════════════════════════════════════════ */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 130, 246, 0.6);
}

/* ════════════════════════════════════════
   PAGE TRANSITION OVERLAY
   ════════════════════════════════════════ */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--blue);
  z-index: 99999;
  transform: scaleY(0);
  transform-origin: bottom;
  pointer-events: none;
  transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1);
}
.page-transition.is-active {
  transform: scaleY(1);
  pointer-events: all;
}

/* ════════════════════════════════════════
   CUSTOM CURSOR
   ════════════════════════════════════════ */
.cursor-dot,
.cursor-outline {
  display: none !important; /* User wants normal cursor */
}

/* ════════════════════════════════════════
   PRELOADER
   ════════════════════════════════════════ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: clip-path 1.2s cubic-bezier(0.77, 0, 0.175, 1);
  clip-path: inset(0 0 0 0);
}

.preloader.exit { clip-path: inset(0 0 100% 0); }
.preloader.hidden { display: none; }

.preloader__text {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: white;
  overflow: hidden;
}

.preloader__text .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%) rotateX(60deg);
  animation: preloaderCharIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes preloaderCharIn {
  to { opacity: 1; transform: translateY(0) rotateX(0); }
}

.preloader__bar {
  width: 240px;
  height: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  margin-top: 32px;
  overflow: hidden;
}

.preloader__progress {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), #8b5cf6);
  border-radius: 2px;
  animation: progressFill 2.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes progressFill {
  0% { width: 0%; }
  40% { width: 45%; }
  70% { width: 75%; }
  90% { width: 92%; }
  100% { width: 100%; }
}

.preloader__counter {
  font-family: var(--font-mono);
  font-size: 14px;
  color: rgba(255,255,255,0.3);
  margin-top: 12px;
  letter-spacing: 0.15em;
}

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

/* ════════════════════════════════════════
   CANVAS PARTICLES (behind everything)
   ════════════════════════════════════════ */
#particleCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ════════════════════════════════════════
   CURSOR FOLLOWER + TRAIL
   ════════════════════════════════════════ */
.cursor-follower {
  position: fixed;
  width: 20px;
  height: 20px;
  background: var(--blue);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  mix-blend-mode: difference;
  transition: width 0.35s cubic-bezier(0.22,1,0.36,1), height 0.35s cubic-bezier(0.22,1,0.36,1);
  transform: translate(-50%, -50%);
  opacity: 0;
}

.cursor-follower.visible { opacity: 0.7; }
.cursor-follower.hover-expand { width: 60px; height: 60px; opacity: 0.25; }

.cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.cursor-dot.visible { opacity: 1; }

/* Mouse trail particles */
.trail-particle {
  position: fixed;
  width: 4px;
  height: 4px;
  background: var(--blue);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9996;
  opacity: 0;
  animation: trailFade 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes trailFade {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 0; transform: scale(0); }
}

/* ════════════════════════════════════════
   GRADIENT ORBS (floating background)
   ════════════════════════════════════════ */
.gradient-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}

.gradient-orb:nth-child(1) {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(7, 99, 238, 0.4), transparent 70%);
  top: 10%; left: 15%;
  animation: orbFloat1 20s ease-in-out infinite;
}

.gradient-orb:nth-child(2) {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.35), transparent 70%);
  top: 50%; right: 10%;
  animation: orbFloat2 25s ease-in-out infinite;
}

.gradient-orb:nth-child(3) {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.3), transparent 70%);
  bottom: 20%; left: 40%;
  animation: orbFloat3 18s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(60px, -40px) scale(1.1); }
  50% { transform: translate(-30px, 50px) scale(0.9); }
  75% { transform: translate(40px, 20px) scale(1.05); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-50px, 30px) scale(1.15); }
  66% { transform: translate(30px, -60px) scale(0.85); }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(70px, -30px) scale(1.2); }
}

/* ════════════════════════════════════════
   FLOWING LINES BACKGROUND
   ════════════════════════════════════════ */
.flowing-lines {
  position: fixed;
  inset: 0;
  opacity: 0.7;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.flowing-lines__inner {
  width: 100%;
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  overflow: hidden;
}

.flowing-line-track {
  width: 2px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  border-left: 1px dashed var(--border-dashed);
  border-right: 1px dashed var(--border-dashed);
}

.flowing-line {
  width: 2px;
  height: 200px;
  background: linear-gradient(0deg, #007bff 0%, #7db9fa 35%, #a7cbf2 67%, #d9e9fa 100%);
  animation: flowDown 6s linear infinite;
  opacity: 0;
}

@keyframes flowDown {
  0% { transform: translateY(-200px); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(100vh); opacity: 0; }
}

/* ════════════════════════════════════════
   NAVIGATION
   ════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  width: 100%;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.navbar.nav-hidden { transform: translateY(-100%); }

.navbar__container { width: 100%; max-width: var(--container); }

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border-bottom: 1px solid var(--border);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  background: rgba(245, 249, 255, 0.88);
  backdrop-filter: blur(16px);
  padding: 24px 24px 24px 32px;
}

.navbar__logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.navbar__logo-text {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
}

.navbar__logo-dot { color: var(--blue); }

.navbar__links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 24px;
  list-style: none;
}

.navbar__link {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s;
  position: relative;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0%;
  height: 2px;
  background: var(--blue);
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.navbar__link:hover::after, .navbar__link.active::after { width: 100%; }
.navbar__link:hover, .navbar__link.active { color: var(--blue); }

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

.navbar__social {
  display: flex;
  align-items: center;
  color: var(--text);
  transition: color 0.2s, transform 0.3s;
}

.navbar__social:hover { color: var(--blue); transform: translateY(-3px) scale(1.1); }

.navbar__cta {
  display: flex;
  align-items: center;
  padding: 8px 24px;
  border: 1px solid var(--border);
  background: #fafafa;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  position: relative;
  overflow: hidden;
  transition: color 0.4s, border-color 0.4s;
}

.navbar__cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--blue);
  transform: translateY(102%);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.navbar__cta span { position: relative; z-index: 1; }
.navbar__cta:hover::before { transform: translateY(0); }
.navbar__cta:hover { color: white; border-color: var(--blue); }

.navbar__toggle { display: none; align-items: center; justify-content: center; width: 32px; height: 32px; color: var(--text); }
.navbar__toggle svg { width: 20px; height: 20px; }

.navbar__mobile-menu {
  display: none;
  border-bottom: 1px solid var(--border);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  background: rgba(245, 249, 255, 0.95);
  backdrop-filter: blur(8px);
}

.navbar__mobile-menu.open { display: block; }
.navbar__mobile-menu a { display: block; padding: 12px 24px; font-family: var(--font-body); font-size: 15px; font-weight: 500; color: var(--text); transition: color 0.2s, padding-left 0.3s; }
.navbar__mobile-menu a:hover { color: var(--blue); padding-left: 32px; }

/* ════════════════════════════════════════
   MAIN & CONTAINER
   ════════════════════════════════════════ */
.main { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; width: 100%; }
.container { width: 100%; max-width: var(--container); }

/* ════════════════════════════════════════
   SECTION HEADER (Sticky)
   ════════════════════════════════════════ */
.section-header {
  position: sticky;
  top: var(--nav-height);
  z-index: 3;
  width: 100%;
  height: var(--section-header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border: 1px solid var(--border);
  background: rgba(245, 249, 255, 0.95);
  backdrop-filter: blur(8px);
}

.section-header__label {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.section-header__count {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-align: right;
}

.section-header__count span { color: var(--blue-light); }

.section-header__shimmer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.shimmer-sweep {
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.06), transparent);
  animation: shimmerSweep 4s ease-in-out infinite;
}

@keyframes shimmerSweep { 0% { left: -100%; } 100% { left: 200%; } }

.section-content {
  width: 100%;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  background: var(--bg);
}

/* ════════════════════════════════════════
   HERO SECTION
   ════════════════════════════════════════ */
.hero {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--bg);
  padding: 48px 0 0;
  overflow: hidden;
}

.hero__announcement {
  width: 100%;
  display: flex;
  align-items: center;
  border-top: 1px dashed var(--border-dashed);
  border-bottom: 1px dashed var(--border-dashed);
  padding: 0 32px;
  margin-bottom: 32px;
}

.announcement-pill {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  background: var(--bg-card-blue);
  transition: background 0.2s, transform 0.3s;
}

.announcement-pill:hover { background: #d0e3ff; transform: translateX(6px); }

.announcement-pill__badge { display: flex; align-items: center; gap: 8px; padding: 5px 10px; border-right: 1px solid var(--border-light); }

.announcement-pill__dot { position: relative; width: 12px; height: 12px; flex-shrink: 0; }
.announcement-pill__dot::before { content: ''; position: absolute; inset: 0; background: rgba(0, 123, 255, 0.5); animation: dotPulse 2s ease-in-out infinite; }
.announcement-pill__dot::after { content: ''; position: absolute; top: 2px; left: 2px; width: 7px; height: 7px; background: #0452db; }

@keyframes dotPulse { 0%, 100% { transform: scale(1); opacity: 0.5; } 50% { transform: scale(2); opacity: 0; } }

.announcement-pill__text { display: flex; align-items: center; gap: 10px; padding: 5px 10px; }
.announcement-pill__text span { font-family: var(--font-body); font-size: 15px; font-weight: 500; color: var(--text); white-space: nowrap; }
.announcement-pill__arrow { font-family: var(--font-body); font-size: 12px; font-weight: 500; color: var(--text); transition: transform 0.3s; }
.announcement-pill:hover .announcement-pill__arrow { transform: translateX(6px); }

.hero__content { width: 100%; display: flex; align-items: center; gap: 16px; padding: 0 32px 48px; }
.hero__text { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }

/* ── SPLIT TEXT + MORPHING TEXT ── */
.hero__title {
  font-family: var(--font-heading);
  font-size: 58px;
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 110%;
  color: var(--text);
  text-wrap: balance;
}

.hero__title .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(80px) rotateX(50deg);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero__title .char.revealed { opacity: 1; transform: translateY(0) rotateX(0); }
.hero__title .highlight { color: var(--blue); }

/* Morphing word cycling */
.morph-container {
  display: inline-block;
  position: relative;
  min-width: 200px;
}

.morph-word {
  display: inline-block;
  color: var(--blue);
  transition: opacity 0.4s, transform 0.4s, filter 0.4s;
}

.morph-word.exit {
  opacity: 0;
  transform: translateY(-20px) rotateX(90deg);
  filter: blur(4px);
}

.morph-word.enter {
  opacity: 0;
  transform: translateY(20px) rotateX(-90deg);
  filter: blur(4px);
}

.hero__subtitle {
  max-width: 480px;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 150%;
  color: var(--text-muted);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
}

.hero__subtitle.revealed { opacity: 1; transform: translateY(0); }

/* Typing cursor */
.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--blue);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

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

.hero__ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 0.6s, transform 0.8s ease 0.6s;
}

.hero__ctas.revealed { opacity: 1; transform: translateY(0); }
.hero__ctas-row { display: flex; align-items: center; gap: 12px; }

/* ════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════ */
.btn-primary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: white;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before { width: 300px; height: 300px; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(7, 99, 238, 0.3); }

.btn-secondary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--border);
  background: #fafafa;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s, transform 0.3s, border-color 0.3s;
}

.btn-secondary:hover { background: white; border-color: var(--blue-light); transform: translateY(-3px); }

.btn-link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-color: rgba(59, 130, 246, 0.3);
  text-underline-offset: 2px;
  transition: color 0.2s, text-decoration-color 0.3s;
}

.btn-link:hover { color: var(--blue); text-decoration-color: var(--blue); }

/* ════════════════════════════════════════
   BLUE BAND MARQUEE
   ════════════════════════════════════════ */
.blue-band {
  width: 100%;
  background: linear-gradient(135deg, var(--blue), #4f46e5, var(--blue-hover));
  background-size: 200% 200%;
  animation: gradientShift 6s ease infinite;
  position: relative;
  overflow: hidden;
  padding: 32px 0;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.blue-band__marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 18s linear infinite;
}

.blue-band__marquee-track:hover { animation-play-state: paused; }

.blue-band__item { display: flex; align-items: center; gap: 32px; padding: 0 32px; white-space: nowrap; }
.blue-band__item span { font-family: var(--font-heading); font-size: 40px; font-weight: 500; letter-spacing: -0.04em; color: white; }
.blue-band__item .sep { opacity: 0.3; font-size: 24px; }

@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ════════════════════════════════════════
   ABOUT SECTION
   ════════════════════════════════════════ */
.about-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 32px 32px;
  text-align: center;
}

.about-intro h2 {
  max-width: 800px;
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 130%;
  color: var(--text);
}

.about-intro h2 .highlight { color: var(--blue); }

.about-intro p {
  max-width: 500px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 170%;
  color: var(--text-muted);
  margin-top: 16px;
}

/* Word-by-word reveal for about intros */
.word-reveal .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  margin-right: 0.25em;
}

.word-reveal .word.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ════════════════════════════════════════
   GLITCH TEXT
   ════════════════════════════════════════ */
.glitch-text {
  position: relative;
}

.glitch-text:hover {
  animation: glitch 0.3s ease;
}

@keyframes glitch {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(2px, -2px); }
  60% { transform: translate(-1px, -1px); }
  80% { transform: translate(1px, 1px); }
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  pointer-events: none;
}

.glitch-text:hover::before {
  opacity: 0.8;
  color: var(--blue);
  animation: glitchBefore 0.3s ease;
  clip-path: inset(0 0 50% 0);
}

.glitch-text:hover::after {
  opacity: 0.8;
  color: #8b5cf6;
  animation: glitchAfter 0.3s ease;
  clip-path: inset(50% 0 0 0);
}

@keyframes glitchBefore { 0%, 100% { transform: translate(0); } 50% { transform: translate(-3px, 1px); } }
@keyframes glitchAfter { 0%, 100% { transform: translate(0); } 50% { transform: translate(3px, -1px); } }

/* ════════════════════════════════════════
   SPLIT CARDS
   ════════════════════════════════════════ */
.split-cards { display: flex; border-top: 1px solid var(--border); }

.split-card {
  flex: 1;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
  transition: background 0.4s;
}

.split-card:first-child { border-right: 1px solid var(--border); background: #f0f5ff; }
.split-card:last-child { background: var(--bg-card-warm); }

.tilt-card { transition: transform 0.3s ease; transform-style: preserve-3d; }

.split-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(7, 99, 238, 0.06), transparent 50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s;
}

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

.split-card__label { font-family: var(--font-mono); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--blue-light); }
.split-card:last-child .split-card__label { color: #b45309; }
.split-card__title { font-family: var(--font-heading); font-size: 28px; font-weight: 500; letter-spacing: -0.04em; line-height: 125%; color: var(--text); }
.split-card__desc { font-family: var(--font-body); font-size: 15px; font-weight: 500; line-height: 160%; color: var(--text-muted); }

.stats-row { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 4px; }
.stat { display: flex; flex-direction: column; }
.stat__value { font-family: var(--font-heading); font-size: 24px; font-weight: 500; letter-spacing: -0.03em; color: var(--text); font-variant-numeric: tabular-nums; }
.stat__label { font-family: var(--font-body); font-size: 12px; color: var(--text-dim); }

.skills-list { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.skill-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(208, 220, 232, 0.5); transition: padding-left 0.3s, background 0.3s; }
.skill-row:hover { padding-left: 12px; }
.skill-row__name { font-family: var(--font-heading); font-size: 15px; font-weight: 500; color: var(--text); }
.skill-row__meta { font-family: var(--font-body); font-size: 12px; color: var(--text-dim); }

/* Skill progress bar */
.skill-row__bar {
  flex: 0 0 80px;
  height: 3px;
  background: var(--border);
  margin-left: 16px;
  overflow: hidden;
  border-radius: 2px;
}

.skill-row__fill {
  height: 100%;
  background: var(--blue);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  border-radius: 2px;
}

.skill-row__fill.filled { transform: scaleX(1); }

.split-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--blue);
  color: white;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  margin-top: auto;
  width: fit-content;
  transition: background 0.2s, transform 0.3s, gap 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.split-cta:hover { background: var(--blue-hover); transform: translateY(-3px); gap: 14px; box-shadow: 0 8px 24px rgba(7, 99, 238, 0.25); }
.split-cta--warm { background: #b45309; }
.split-cta--warm:hover { background: #92400e; box-shadow: 0 8px 24px rgba(180, 83, 9, 0.25); }

/* ════════════════════════════════════════
   EXPERIENCE TIMELINE
   ════════════════════════════════════════ */
.timeline { display: flex; flex-direction: column; }

.timeline-item {
  display: flex;
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
  position: relative;
}

.timeline-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), #8b5cf6);
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline-item:hover::after { width: 100%; }
.timeline-item:hover { background: rgba(240, 245, 255, 0.6); }

.timeline-item__left { width: 280px; flex-shrink: 0; padding: 24px 24px 24px 32px; border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; }
.timeline-item__date { font-family: var(--font-mono); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; color: var(--blue-light); }
.timeline-item__duration { font-family: var(--font-body); font-size: 12px; color: var(--text-dim); }
.timeline-item__right { flex: 1; padding: 24px 32px; display: flex; flex-direction: column; gap: 6px; }
.timeline-item__role { font-family: var(--font-heading); font-size: 18px; font-weight: 500; letter-spacing: -0.02em; color: var(--text); transition: color 0.3s; }
.timeline-item:hover .timeline-item__role { color: var(--blue); }
.timeline-item__org { font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--text-muted); }
.timeline-item__desc { font-family: var(--font-body); font-size: 14px; line-height: 165%; color: var(--text-dim); margin-top: 4px; }

/* ════════════════════════════════════════
   PROJECTS GRID
   ════════════════════════════════════════ */
.projects-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--border); }

.project-card {
  padding: 32px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
}

.project-card:nth-child(odd) { border-right: 1px solid var(--border); }

.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(7, 99, 238, 0.04), transparent 50%);
  opacity: 0;
  transition: opacity 0.5s;
}

.project-card:hover::before { opacity: 1; }
.project-card:hover { background: rgba(240, 245, 255, 0.5); }

.project-card__label { font-family: var(--font-mono); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--blue-light); }
.project-card__title { font-family: var(--font-heading); font-size: 24px; font-weight: 500; letter-spacing: -0.03em; color: var(--text); transition: color 0.3s; }
.project-card:hover .project-card__title { color: var(--blue); }
.project-card__desc { font-family: var(--font-body); font-size: 14px; font-weight: 500; line-height: 170%; color: var(--text-muted); }
.project-card__tech { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }

.tech-tag {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: white;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  transition: border-color 0.3s, color 0.3s, background 0.3s, transform 0.3s;
}

.tech-tag:hover { border-color: var(--blue-light); color: var(--blue); background: #f0f5ff; transform: translateY(-2px); }

.project-card__link { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-body); font-size: 13px; font-weight: 500; color: var(--blue); margin-top: 4px; transition: gap 0.3s; }
.project-card__link:hover { gap: 14px; }

/* ════════════════════════════════════════
   ACHIEVEMENTS
   ════════════════════════════════════════ */
.achievements-grid { display: flex; border-top: 1px solid var(--border); }

.achievement-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  text-align: center;
  border-right: 1px solid var(--border);
  transition: background 0.3s, transform 0.3s;
}

.achievement-card:last-child { border-right: none; }
.achievement-card:hover { background: #f0f5ff; transform: translateY(-4px); }

.achievement-card__icon { font-family: var(--font-mono); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--blue-light); margin-bottom: 8px; }
.achievement-card__value { font-family: var(--font-heading); font-size: 36px; font-weight: 500; letter-spacing: -0.03em; color: var(--text); font-variant-numeric: tabular-nums; }
.achievement-card__label { font-family: var(--font-body); font-size: 12px; color: var(--text-dim); margin-top: 4px; }

.achievement-list { border-top: 1px solid var(--border); }

.achievement-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 32px;
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, padding-left 0.4s;
  position: relative;
}

.achievement-row::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 3px; height: 100%;
  background: linear-gradient(180deg, var(--blue), #8b5cf6);
  transform: scaleY(0);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: bottom;
}

.achievement-row:hover::before { transform: scaleY(1); }
.achievement-row:hover { background: rgba(240, 245, 255, 0.5); padding-left: 40px; }

.achievement-row__icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: rgba(7, 99, 238, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s;
}

.achievement-row:hover .achievement-row__icon { transform: rotate(12deg) scale(1.15); background: rgba(7, 99, 238, 0.2); }
.achievement-row__icon svg { width: 20px; height: 20px; color: var(--blue); }
.achievement-row__text { flex: 1; }
.achievement-row__title { font-family: var(--font-heading); font-size: 15px; font-weight: 500; color: var(--text); }
.achievement-row__sub { font-family: var(--font-body); font-size: 13px; color: var(--text-dim); margin-top: 2px; }

/* ════════════════════════════════════════
   CONTACT SECTION
   ════════════════════════════════════════ */
.contact-area { display: flex; border-top: 1px solid var(--border); }
.contact-area__left { flex: 1; padding: 48px 32px; border-right: 1px solid var(--border); }
.contact-area__right { flex: 1; padding: 48px 32px; }

.contact-area h2 { font-family: var(--font-heading); font-size: 36px; font-weight: 500; letter-spacing: -0.04em; line-height: 120%; color: var(--text); margin-bottom: 12px; }
.contact-area p { font-family: var(--font-body); font-size: 15px; font-weight: 500; line-height: 170%; color: var(--text-muted); margin-bottom: 24px; }

.contact-links { display: flex; flex-direction: column; gap: 12px; }

.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  background: white;
  transition: background 0.3s, border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.contact-link:hover { background: #f0f5ff; border-color: var(--blue-light); transform: translateX(8px); box-shadow: 0 4px 20px rgba(7, 99, 238, 0.12); }
.contact-link__icon { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: var(--blue); transition: transform 0.3s; }
.contact-link:hover .contact-link__icon { transform: scale(1.25) rotate(5deg); }
.contact-link__icon svg { width: 18px; height: 18px; }
.contact-link__text { font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--text); }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-family: var(--font-mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); transition: color 0.3s; }
.form-group:focus-within label { color: var(--blue); }
.form-group input, .form-group textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--border); background: white; font-family: var(--font-body); font-size: 14px; color: var(--text); transition: border-color 0.3s, box-shadow 0.3s; outline: none; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(7, 99, 238, 0.08); }
.form-group textarea { resize: vertical; min-height: 100px; }

.form-submit {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: white;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  width: fit-content;
  transition: background 0.2s, transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.form-submit::before { content: ''; position: absolute; top: 50%; left: 50%; width: 0; height: 0; background: rgba(255,255,255,0.2); border-radius: 50%; transform: translate(-50%, -50%); transition: width 0.6s, height 0.6s; }
.form-submit:hover::before { width: 300px; height: 300px; }
.form-submit:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(7, 99, 238, 0.3); }

/* ════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════ */
.footer { width: 100%; border-top: 1px solid var(--border); border-left: 1px solid var(--border); border-right: 1px solid var(--border); background: var(--bg); padding: 24px 32px; display: flex; align-items: center; justify-content: space-between; }
.footer__copy { font-family: var(--font-body); font-size: 13px; color: var(--text-dim); }
.footer__links { display: flex; gap: 16px; }
.footer__link { font-family: var(--font-body); font-size: 13px; font-weight: 500; color: var(--text-muted); transition: color 0.2s; position: relative; }
.footer__link::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0%; height: 1px; background: var(--blue); transition: width 0.3s; }
.footer__link:hover::after { width: 100%; }
.footer__link:hover { color: var(--blue); }

.stat-band { width: 100%; border-top: 1px solid var(--border); background: rgba(7, 99, 238, 0.05); padding: 20px 32px; text-align: center; }
.stat-band p { font-family: var(--font-body); font-size: 15px; line-height: 160%; color: var(--text-muted); }
.stat-band .blue { color: var(--blue); font-weight: 500; }

/* ════════════════════════════════════════
   SCROLL ANIMATIONS (all variants)
   ════════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.revealed { opacity: 1; transform: translateY(0); }

.reveal-left { opacity: 0; transform: translateX(-60px); transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal-left.revealed { opacity: 1; transform: translateX(0); }

.reveal-right { opacity: 0; transform: translateX(60px); transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal-right.revealed { opacity: 1; transform: translateX(0); }

.reveal-scale { opacity: 0; transform: scale(0.85); transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal-scale.revealed { opacity: 1; transform: scale(1); }

.reveal-clip { clip-path: inset(100% 0 0 0); transition: clip-path 1.2s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal-clip.revealed { clip-path: inset(0 0 0 0); }

/* Rotate in */
.reveal-rotate { opacity: 0; transform: rotate(-8deg) translateY(30px); transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal-rotate.revealed { opacity: 1; transform: rotate(0) translateY(0); }

/* Education */
.education-grid { display: flex; border-top: 1px solid var(--border); }
.education-card { flex: 1; padding: 24px 32px; border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; transition: background 0.3s, transform 0.3s; }
.education-card:last-child { border-right: none; }
.education-card:hover { background: #f0f5ff; transform: translateY(-3px); }
.education-card__school { font-family: var(--font-heading); font-size: 16px; font-weight: 500; color: var(--text); }
.education-card__degree { font-family: var(--font-body); font-size: 13px; color: var(--text-muted); }
.education-card__year { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); letter-spacing: 0.05em; }

.magnetic { transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }

/* ════════════════════════════════════════
   ASCII ART FIGURES
   ════════════════════════════════════════ */
.ascii-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.ascii-figure {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.3;
  color: var(--blue);
  opacity: 0.22;
  white-space: pre;
  letter-spacing: 0.05em;
  user-select: none;
  animation: asciiDrift 20s ease-in-out infinite;
}

.ascii-figure--alt {
  color: var(--text-dim);
  opacity: 0.14;
}

.ascii-figure--glitch {
  animation: asciiGlitch 4s steps(1) infinite, asciiDrift 25s ease-in-out infinite;
}

.ascii-figure--pulse {
  animation: asciiPulse 6s ease-in-out infinite, asciiDrift 30s ease-in-out infinite;
}

@keyframes asciiDrift {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(5px, -8px); }
  50% { transform: translate(-3px, 4px); }
  75% { transform: translate(7px, -3px); }
}

@keyframes asciiGlitch {
  0%, 92%, 100% { opacity: 0.22; transform: translate(0, 0); clip-path: inset(0); }
  93% { opacity: 0.45; transform: translate(-3px, 2px); clip-path: inset(20% 0 40% 0); }
  94% { opacity: 0.15; transform: translate(4px, -1px); clip-path: inset(60% 0 10% 0); }
  95% { opacity: 0.5; transform: translate(-2px, 3px); clip-path: inset(0); }
  96% { opacity: 0.22; transform: translate(0, 0); clip-path: inset(30% 0 50% 0); }
  97% { opacity: 0.35; transform: translate(2px, -4px); clip-path: inset(0); }
}

@keyframes asciiPulse {
  0%, 100% { opacity: 0.12; }
  50% { opacity: 0.35; }
}

/* Hero-specific ASCII layer */
.hero { position: relative; }
.hero .ascii-layer { z-index: 0; }
.hero__content { position: relative; z-index: 1; }
.hero__announcement { position: relative; z-index: 1; }

/* Section ASCII background */
.section-content { position: relative; }

/* Dark section ASCII */
.dark-section .ascii-figure { color: rgba(59, 130, 246, 0.4); opacity: 0.15; }
.dark-section .ascii-figure--alt { color: rgba(255, 255, 255, 0.2); opacity: 0.1; }

@media (max-width: 768px) {
  .ascii-figure { font-size: 10px; opacity: 0.06; }
}

/* ════════════════════════════════════════
   GRADIENT ANIMATED TEXT
   ════════════════════════════════════════ */
.gradient-text {
  background: linear-gradient(135deg, var(--blue), #8b5cf6, #ec4899, var(--blue));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientText 6s ease infinite;
}

@keyframes gradientText {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ════════════════════════════════════════
   DARK MODE SECTION (Quote/Philosophy)
   ════════════════════════════════════════ */
.dark-section {
  width: 100%;
  background: linear-gradient(180deg, #0a0e17 0%, #0f1724 50%, #0a0e17 100%);
  border: 1px solid rgba(59, 130, 246, 0.15);
  position: relative;
  overflow: hidden;
  padding: 80px 32px;
  text-align: center;
}

.dark-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(7, 99, 238, 0.08) 0%, transparent 60%);
  animation: darkGlow 12s ease-in-out infinite;
}

@keyframes darkGlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(5%, -5%) scale(1.1); }
}

.dark-section__quote {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 140%;
  color: rgba(255, 255, 255, 0.95);
}

.dark-section__quote span { color: var(--blue-light); }

.dark-section__author {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.1em;
}

.dark-section__stars {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.dark-star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.5); }
}

/* ════════════════════════════════════════
   BENTO GRID (Visual Showcase)
   ════════════════════════════════════════ */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
}

.bento-card {
  background: var(--bg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.4s, transform 0.3s;
  position: relative;
  overflow: hidden;
}

.bento-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  transition: border-color 0.5s;
  pointer-events: none;
}

.bento-card:hover::after { border-color: var(--blue-light); }
.bento-card:hover { background: #f0f5ff; }

.bento-card--wide { grid-column: span 2; }
.bento-card--tall { grid-row: span 2; display: flex; justify-content: center; }

.bento-card__label { font-family: var(--font-mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.15em; color: var(--blue); padding: 4px 10px; border: 1px solid rgba(7, 99, 238, 0.2); background: rgba(7, 99, 238, 0.05); display: inline-block; width: fit-content; }
.bento-card__title { font-family: var(--font-heading); font-size: 20px; font-weight: 500; letter-spacing: -0.02em; color: var(--text); }
.bento-card__desc { font-family: var(--font-body); font-size: 14px; line-height: 160%; color: var(--text-muted); }
.bento-card__value { font-family: var(--font-heading); font-size: 48px; font-weight: 500; letter-spacing: -0.04em; color: var(--blue); margin-top: auto; }

/* ════════════════════════════════════════
   TESTIMONIAL SECTION
   ════════════════════════════════════════ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
}

.testimonial-card {
  background: var(--bg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.3s, transform 0.3s;
}

.testimonial-card:hover { background: #f0f5ff; transform: translateY(-2px); }

.testimonial-card__header { display: flex; align-items: center; gap: 10px; }

.testimonial-card__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: white;
  flex-shrink: 0;
}

.testimonial-card__name { font-family: var(--font-heading); font-size: 14px; font-weight: 600; color: var(--text); }
.testimonial-card__role { font-family: var(--font-body); font-size: 12px; color: var(--text-dim); }
.testimonial-card__text { font-family: var(--font-body); font-size: 14px; line-height: 165%; color: var(--text-muted); font-style: italic; }
.testimonial-card__text::before { content: '"'; color: var(--blue-light); font-size: 20px; }

/* ════════════════════════════════════════
   HORIZONTAL SCROLL GALLERY
   ════════════════════════════════════════ */
.hscroll-gallery {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  display: flex;
  gap: 0;
  scrollbar-width: none;
  border-top: 1px solid var(--border);
  scroll-snap-type: x mandatory;
}

.hscroll-gallery::-webkit-scrollbar { display: none; }

.hscroll-card {
  min-width: 320px;
  flex-shrink: 0;
  padding: 32px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg);
  scroll-snap-align: start;
  transition: background 0.3s;
}

.hscroll-card:hover { background: #f0f5ff; }
.hscroll-card__num { font-family: var(--font-mono); font-size: 48px; font-weight: 500; color: var(--border); letter-spacing: -0.04em; }
.hscroll-card__title { font-family: var(--font-heading); font-size: 18px; font-weight: 500; color: var(--text); }
.hscroll-card__desc { font-family: var(--font-body); font-size: 13px; line-height: 160%; color: var(--text-muted); }

.hscroll-hint { padding: 12px 32px; border-top: 1px dashed var(--border-dashed); display: flex; align-items: center; gap: 8px; }
.hscroll-hint span { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); }
.hscroll-hint__arrow { animation: scrollHint 2s ease-in-out infinite; display: inline-block; }
@keyframes scrollHint { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(8px); } }

/* ════════════════════════════════════════
   SCROLL TO TOP
   ════════════════════════════════════════ */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(7, 99, 238, 0.35);
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  transition: opacity 0.4s, transform 0.4s, background 0.3s;
  pointer-events: none;
}

.scroll-top.visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.scroll-top:hover { background: var(--blue-hover); transform: translateY(-4px) scale(1.1) !important; }
.scroll-top svg { width: 20px; height: 20px; }

/* ════════════════════════════════════════
   AVAILABILITY STATUS
   ════════════════════════════════════════ */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.08);
  border-radius: 100px;
}

.status-badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.status-badge__text { font-family: var(--font-body); font-size: 12px; font-weight: 600; color: var(--green); }

/* ════════════════════════════════════════
   PROJECT DETAIL (Subpage)
   ════════════════════════════════════════ */
.project-detail {
  padding: 32px;
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.project-detail:hover { background: #f0f5ff; }

.project-detail__header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.project-detail__num {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 500;
  color: var(--border);
  letter-spacing: -0.04em;
  line-height: 1;
  flex-shrink: 0;
  min-width: 50px;
}

.project-detail__title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-top: 4px;
}

.project-detail__desc {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 170%;
  color: var(--text-muted);
  max-width: 700px;
}

.stats-row {
  display: flex;
  gap: 32px;
}

.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__value { font-family: var(--font-heading); font-size: 28px; font-weight: 500; letter-spacing: -0.03em; color: var(--blue); }
.stat__label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); }

/* Nav active link */
.navbar__link.active { color: var(--blue); }

/* Timeline badge */
.timeline-item__badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--green);
  border: 1px solid rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.08);
  padding: 2px 8px;
  margin-top: 4px;
}

/* ════════════════════════════════════════
   33. HERO INTERACTIVE MASK REVEAL
   ════════════════════════════════════════ */
.hero-team-interactive {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4/3;
  margin-top: 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: none; /* We have our own custom cursor */
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  border: 1px solid var(--border-light);
  background: var(--bg-alt);
}

/* Base image: Cool blue sketch/blueprint effect */
.hero-team-base {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) invert(1) sepia(1) saturate(3) hue-rotate(180deg) brightness(0.9) contrast(1.2);
  opacity: 0.8;
  transition: opacity 0.5s ease;
}

/* Color image: Masked reveal */
.hero-team-color {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  /* Soft flashlight mask powered by JS --mask-x and --mask-y */
  -webkit-mask-image: radial-gradient(circle var(--mask-radius, 0px) at var(--mask-x, 50%) var(--mask-y, 50%), black 40%, transparent 100%);
  mask-image: radial-gradient(circle var(--mask-radius, 0px) at var(--mask-x, 50%) var(--mask-y, 50%), black 40%, transparent 100%);
  transition: -webkit-mask-image 0.1s ease-out, mask-image 0.1s ease-out;
  will-change: mask-image, -webkit-mask-image;
}

.hero-team-interactive:hover .hero-team-base {
  opacity: 1;
}

/* ════════════════════════════════════════
   34. HOVER POLAROID REVEAL
   ════════════════════════════════════════ */
.hover-reveal-text {
  position: relative;
  display: inline-block;
  color: var(--blue);
  cursor: none;
  text-decoration: underline;
  text-decoration-style: dashed;
  text-decoration-color: rgba(7, 99, 238, 0.4);
  text-underline-offset: 4px;
  transition: color 0.3s ease, text-decoration-color 0.3s ease;
  font-weight: 500;
}
.hover-reveal-text:hover {
  text-decoration-color: var(--blue);
}

.hover-polaroid {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  padding: 12px 12px 40px 12px;
  background: white;
  box-shadow: 0 30px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05);
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8) rotate(0deg);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9999;
  will-change: transform, left, top;
}
.hover-polaroid.is-active {
  opacity: 1;
  /* Position and exact rotation driven by JS */
  transform: translate(-50%, -50%) scale(1) rotate(var(--rot, -3deg));
}

.hover-polaroid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 2px;
  filter: contrast(1.05) saturate(1.1);
}

/* ════════════════════════════════════════
   35. DARK MODE TOGGLE
   ════════════════════════════════════════ */
.dark-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  border: 1px solid var(--border);
  border-radius: 99px;
  background: var(--bg-alt);
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
  display: flex;
  align-items: center;
  padding: 2px;
}
.dark-toggle__knob {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue);
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dark-toggle__knob svg {
  width: 12px;
  height: 12px;
  fill: white;
}
[data-theme="dark"] .dark-toggle {
  background: #1e293b;
  border-color: #334155;
}
[data-theme="dark"] .dark-toggle__knob {
  transform: translateX(20px);
}

/* ════════════════════════════════════════
   36. LIFE PHOTO CARDS (Blueprint Effect)
   ════════════════════════════════════════ */
.life-photo-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  background: var(--bg-alt);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.life-photo-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 40px rgba(7, 99, 238, 0.12);
}
.life-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) sepia(1) saturate(3) hue-rotate(180deg) brightness(0.85) contrast(1.1);
  transition: filter 0.5s ease;
}
.life-photo-card:hover img {
  filter: none;
}
.life-photo-card__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.life-photo-card:hover .life-photo-card__caption {
  opacity: 1;
  transform: translateY(0);
}

/* Dark mode overrides for key elements */
[data-theme="dark"] .navbar__container { background: rgba(10, 14, 20, 0.92); }
[data-theme="dark"] .section-header { background: var(--bg-alt); }
[data-theme="dark"] .dark-section { background: #141a22; }
[data-theme="dark"] .blue-band { background: #1e3a5f; }
[data-theme="dark"] .announcement-pill { background: var(--bg-alt); border-color: var(--border); }
[data-theme="dark"] .split-card { background: var(--bg-white); }
[data-theme="dark"] .project-card { background: var(--bg-white); }
[data-theme="dark"] .achievement-card { background: var(--bg-white); }
[data-theme="dark"] .bento-card { background: var(--bg-white); }
[data-theme="dark"] .testimonial-card { background: var(--bg-white); }
[data-theme="dark"] .hscroll-card { background: var(--bg-white); border-color: var(--border); }
[data-theme="dark"] .education-card { background: var(--bg-white); }
[data-theme="dark"] .tech-tag { background: var(--bg-alt); color: var(--text); border-color: var(--border); }
[data-theme="dark"] .contact-link { border-color: var(--border); }
[data-theme="dark"] .contact-form input, [data-theme="dark"] .contact-form textarea { background: var(--bg-alt); border-color: var(--border); color: var(--text); }
[data-theme="dark"] .footer { background: var(--bg-alt); border-color: var(--border); }
[data-theme="dark"] .scroll-top { background: var(--bg-white); border-color: var(--border); }
[data-theme="dark"] body { background: var(--bg); }
[data-theme="dark"] body::-webkit-scrollbar-track { background: var(--bg); }
[data-theme="dark"] .achievement-row { border-color: var(--border); }
[data-theme="dark"] .hero-team-interactive { border-color: var(--border); }

/* ════════════════════════════════════════
   RESPONSIVE — FULL
   ════════════════════════════════════════ */
@media (max-width: 1024px) {
  body { cursor: auto; }
  a, button { cursor: auto; }
  .cursor-follower, .cursor-dot { display: none !important; }
  .hero__title { font-size: 48px; }
  .hero__content { flex-direction: column; text-align: center; padding: 0 16px 48px; }
  .hero__text { align-items: center; }
  .hero__ctas { align-items: center; }
  .split-cards { flex-direction: column; }
  .split-card:first-child { border-right: none; border-bottom: 1px solid var(--border); }
  .timeline-item { flex-direction: column; }
  .timeline-item__left { width: 100%; border-right: none; border-bottom: 1px solid var(--border-light); padding: 16px 24px; }
  .timeline-item__right { padding: 16px 24px; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card:nth-child(odd) { border-right: none; }
  .achievements-grid { flex-direction: column; }
  .achievement-card { border-right: none; border-bottom: 1px solid var(--border); }
  .achievement-card:last-child { border-bottom: none; }
  .contact-area { flex-direction: column; }
  .contact-area__left { border-right: none; border-bottom: 1px solid var(--border); }
  .about-intro h2 { font-size: 32px; }
  .blue-band__item span { font-size: 28px; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card--wide { grid-column: span 1; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .dark-section__quote { font-size: 28px; }
}

@media (max-width: 768px) {
  .navbar__links { display: none; }
  .navbar__right .navbar__social, .navbar__right .navbar__cta { display: none; }
  .navbar__toggle { display: flex; }
  .navbar__inner { padding: 16px; }
  :root { --nav-height: 57px; }
  .hero__title { font-size: 32px; }
  .hero__announcement { justify-content: center; padding: 0 16px; }
  .section-header { padding: 0 16px; }
  .about-intro { padding: 32px 16px 24px; }
  .about-intro h2 { font-size: 24px; }
  .split-card { padding: 24px; }
  .footer { flex-direction: column; gap: 12px; text-align: center; padding: 20px 16px; }
  .achievement-row { padding: 16px; }
  .education-grid { flex-direction: column; }
  .education-card { border-right: none; border-bottom: 1px solid var(--border); }
  .education-card:last-child { border-bottom: none; }
  .dark-section { padding: 48px 16px; }
  .dark-section__quote { font-size: 22px; }
  .scroll-top { bottom: 16px; right: 16px; width: 40px; height: 40px; }
  .hscroll-card { min-width: 260px; padding: 24px; }
}
/* style adjustments at 10:02:00 */
/* style adjustments at 10:16:00 */
/* style adjustments at 10:58:00 */
/* style adjustments at 11:09:00 */
/* style adjustments at 11:39:00 */
/* style adjustments at 12:25:00 */
/* style adjustments at 13:06:00 */
/* style adjustments at 13:46:00 */
/* style adjustments at 14:09:00 */
/* style adjustments at 14:20:00 */
/* style adjustments at 14:56:00 */
/* style adjustments at 15:27:00 */
/* style adjustments at 15:40:00 */
/* style adjustments at 15:55:00 */
/* style adjustments at 16:39:00 */
/* style adjustments at 17:08:00 */
/* style adjustments at 17:23:00 */
/* style adjustments at 18:02:00 */
/* style adjustments at 09:14:00 */
/* style adjustments at 09:40:00 */
/* style adjustments at 10:16:00 */
/* style adjustments at 10:44:00 */
/* style adjustments at 11:22:00 */
/* style adjustments at 11:46:00 */
/* style adjustments at 12:05:00 */
/* style adjustments at 12:34:00 */
/* style adjustments at 13:12:00 */
/* style adjustments at 13:30:00 */
/* style adjustments at 14:04:00 */
/* style adjustments at 14:50:00 */
/* style adjustments at 15:06:00 */
/* style adjustments at 15:48:00 */
/* style adjustments at 16:27:00 */
/* style adjustments at 16:49:00 */
/* style adjustments at 17:06:00 */
/* style adjustments at 17:34:00 */
/* style adjustments at 09:34:00 */
/* style adjustments at 10:16:00 */
/* style adjustments at 10:38:00 */
/* style adjustments at 11:15:00 */
/* style adjustments at 11:32:00 */
/* style adjustments at 11:50:00 */
/* style adjustments at 12:07:00 */
/* style adjustments at 12:18:00 */
/* style adjustments at 12:33:00 */
/* style adjustments at 13:13:00 */
/* style adjustments at 13:32:00 */
/* style adjustments at 14:04:00 */
/* style adjustments at 14:49:00 */
/* style adjustments at 15:35:00 */
/* style adjustments at 15:49:00 */
/* style adjustments at 16:25:00 */
/* style adjustments at 17:07:00 */
/* style adjustments at 17:27:00 */
/* style adjustments at 09:16:00 */
/* style adjustments at 10:02:00 */
/* style adjustments at 10:31:00 */
/* style adjustments at 10:56:00 */
/* style adjustments at 11:22:00 */
/* style adjustments at 11:38:00 */
/* style adjustments at 12:11:00 */
/* style adjustments at 12:48:00 */
/* style adjustments at 13:08:00 */
/* style adjustments at 13:35:00 */
/* style adjustments at 14:03:00 */
/* style adjustments at 14:50:00 */
/* style adjustments at 15:06:00 */
/* style adjustments at 15:25:00 */
/* style adjustments at 15:46:00 */
