/* =========================================================
   styles.css – Portfolio Stylesheet
   ========================================================= */

/* ---- CSS Custom Properties (Design Tokens) ------------ */
:root {
  /* Light mode – editorial monochrome */
  --bg:              #efefef;
  --bg-secondary:    #f6f6f6;
  --bg-tertiary:     #ffffff;
  --text:            #121212;
  --text-muted:      #565656;
  --text-subtle:     #8d8d8d;
  --accent:          #ff5b2e;
  --accent-hover:    #ff4818;
  --accent-dim:      #ffe6de;
  --border:          #dcdcdc;
  --card-bg:         #fdfdfd;
  --nav-bg:          rgba(9, 9, 11, 0.9);
  --shadow-sm:       0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow:          0 12px 28px rgba(0, 0, 0, 0.08);
  --shadow-lg:       0 20px 44px rgba(0, 0, 0, 0.12);
  --radius-sm:       6px;
  --radius:          14px;
  --radius-lg:       24px;
  --transition:      0.25s ease;
  --transition-slow: 0.45s ease;
}

[data-theme="dark"] {
  --bg:              #101010;
  --bg-secondary:    #151515;
  --bg-tertiary:     #1c1c1c;
  --text:            #f2f2f2;
  --text-muted:      #b2b2b2;
  --text-subtle:     #8a8a8a;
  --accent:          #ff6c43;
  --accent-hover:    #ff7d59;
  --accent-dim:      #3a1f17;
  --border:          #2a2a2a;
  --card-bg:         #171717;
  --nav-bg:          rgba(10, 10, 10, 0.92);
  --shadow-sm:       0 2px 6px rgba(0, 0, 0, 0.45);
  --shadow:          0 14px 34px rgba(0, 0, 0, 0.4);
  --shadow-lg:       0 24px 52px rgba(0, 0, 0, 0.55);
}

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

html {
  scroll-behavior: smooth;
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background-color var(--transition), color var(--transition);
  overflow-x: hidden;
  position: relative;
  isolation: isolate;
  letter-spacing: -0.01em;
}

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

/* Focus styles – WCAG 2.1 AA */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---- Layout ----------------------------------------- */
.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 640px)  { .container { padding-inline: 2rem; } }
@media (min-width: 1200px) { .container { padding-inline: 2.5rem; } }

.section {
  padding-block: 6rem;
}

@media (max-width: 640px) { .section { padding-block: 4rem; } }

/* ---- Scroll Progress Bar ----------------------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #818cf8);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ---- Ambient 3D Scene ------------------------------- */
.ambient-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  perspective: 1000px;
}

.ambient-gradient {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(42rem 34rem at 10% 22%, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(34rem 30rem at 86% 78%, rgba(255, 91, 46, 0.1), transparent 60%),
    radial-gradient(30rem 24rem at 70% 20%, rgba(20, 20, 20, 0.08), transparent 58%);
  filter: blur(2px) saturate(1.05);
  animation: ambientDrift 14s ease-in-out infinite alternate;
}

[data-theme="dark"] .ambient-gradient {
  background:
    radial-gradient(42rem 34rem at 10% 22%, rgba(255, 255, 255, 0.08), transparent 60%),
    radial-gradient(34rem 30rem at 86% 78%, rgba(255, 108, 67, 0.16), transparent 60%),
    radial-gradient(30rem 24rem at 70% 20%, rgba(255, 255, 255, 0.06), transparent 58%);
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 45%, rgba(0, 0, 0, 0.6), transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 45%, rgba(0, 0, 0, 0.6), transparent 75%);
  opacity: 0.45;
}

.floating-objects {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.floating-object {
  position: absolute;
  transform-style: preserve-3d;
  will-change: transform;
  filter: drop-shadow(0 26px 34px rgba(2, 8, 23, 0.18));
}

.floating-object--sphere {
  top: 17%;
  left: 8%;
  width: 170px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 25%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.06) 38%),
    linear-gradient(145deg, rgba(20, 20, 20, 0.45), rgba(90, 90, 90, 0.35));
  box-shadow:
    inset -14px -18px 30px rgba(15, 23, 42, 0.23),
    inset 10px 14px 28px rgba(255, 255, 255, 0.2);
  animation: floatSphere 9s ease-in-out infinite;
}

.floating-object--cube {
  top: 55%;
  right: 10%;
  width: 138px;
  aspect-ratio: 1;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: linear-gradient(165deg, rgba(255, 91, 46, 0.2), rgba(30, 30, 30, 0.28));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transform: rotateX(58deg) rotateY(-28deg);
  animation: floatCube 10s ease-in-out infinite;
}

.floating-object--cube::before,
.floating-object--cube::after {
  content: '';
  position: absolute;
  inset: 12%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transform: translateZ(24px);
}

.floating-object--cube::after {
  inset: 24%;
  opacity: 0.8;
  transform: translateZ(44px);
}

.floating-object--ring {
  top: 23%;
  right: 18%;
  width: 188px;
  height: 188px;
  border-radius: 50%;
  border: 18px solid rgba(30, 30, 30, 0.16);
  border-top-color: rgba(255, 91, 46, 0.58);
  border-bottom-color: rgba(20, 20, 20, 0.4);
  transform: rotateX(68deg) rotateZ(14deg);
  animation: floatRing 11s linear infinite;
}

.chatbot-bg {
  position: absolute;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  opacity: 0.28;
  filter: blur(0.2px);
}

.chatbot-head {
  width: clamp(260px, 30vw, 420px);
  aspect-ratio: 1.25 / 1;
  border-radius: 34% 34% 30% 30%;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.44), transparent 48%),
    linear-gradient(145deg, rgba(26, 26, 26, 0.3), rgba(255, 91, 46, 0.22));
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow:
    inset 0 -16px 32px rgba(2, 8, 23, 0.24),
    0 24px 48px rgba(14, 116, 144, 0.2);
  position: relative;
  transform-style: preserve-3d;
  animation: botBreath 5s ease-in-out infinite;
}

.chatbot-antenna {
  position: absolute;
  top: -36px;
  left: 50%;
  width: 6px;
  height: 30px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.7), rgba(56, 189, 248, 0.5));
  border-radius: 10px;
}

.chatbot-antenna::after {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  width: 14px;
  height: 14px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(255, 91, 46, 0.84);
  box-shadow: 0 0 20px rgba(255, 91, 46, 0.75);
  animation: antennaPulse 1.8s ease-in-out infinite;
}

.chatbot-face {
  position: absolute;
  inset: 28% 16% auto;
  height: 42%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(34px, 5vw, 62px);
  border-radius: 18px;
  background: rgba(8, 15, 30, 0.25);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.chatbot-eye {
  width: clamp(46px, 6.5vw, 72px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(230, 247, 255, 0.9);
  display: grid;
  place-items: center;
  box-shadow: inset 0 -6px 16px rgba(15, 23, 42, 0.3);
}

.chatbot-pupil {
  width: clamp(16px, 2.2vw, 24px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(145deg, #111111, #ff5b2e);
  box-shadow: 0 0 16px rgba(255, 91, 46, 0.5);
  transform: translate3d(0, 0, 0);
  transition: transform 0.08s linear;
}

.chatbot-mouth {
  position: absolute;
  left: 50%;
  bottom: 18%;
  width: 42%;
  height: 12px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(20, 20, 20, 0.2), rgba(255, 91, 46, 0.56), rgba(20, 20, 20, 0.2));
}

[data-theme="dark"] .chatbot-bg {
  opacity: 0.42;
}

[data-theme="dark"] .chatbot-face {
  background: rgba(8, 15, 30, 0.42);
}

main,
.footer {
  position: relative;
  z-index: 1;
}

@keyframes ambientDrift {
  from { transform: translate3d(-2%, -1.5%, 0) scale(1); }
  to   { transform: translate3d(2%, 1.5%, 0) scale(1.04); }
}

@keyframes floatSphere {
  0%, 100% { transform: translate3d(0, 0, 0) rotateY(0deg); }
  50%      { transform: translate3d(26px, -20px, 60px) rotateY(180deg); }
}

@keyframes floatCube {
  0%, 100% { transform: rotateX(58deg) rotateY(-28deg) translate3d(0, 0, 0); }
  50%      { transform: rotateX(50deg) rotateY(20deg) translate3d(-18px, -24px, 52px); }
}

@keyframes floatRing {
  from { transform: rotateX(68deg) rotateZ(0deg) translateZ(0); }
  to   { transform: rotateX(68deg) rotateZ(360deg) translateZ(0); }
}

@keyframes botBreath {
  0%, 100% { transform: translateZ(0) rotateX(0deg); }
  50%      { transform: translateZ(20px) rotateX(3deg); }
}

@keyframes antennaPulse {
  0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(0.92); }
  50%      { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

/* ---- Navigation ------------------------------------- */
.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.nav-header.scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1160px;
  margin-inline: auto;
  padding: 0.6rem 1rem;
  gap: 1rem;
}

@media (min-width: 640px) { .nav-container { padding-inline: 2rem; } }

.nav-logo {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: #fff;
  background: linear-gradient(145deg, var(--accent), #ff7a55);
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-sm);
  transition: opacity var(--transition);
  flex-shrink: 0;
}
.nav-logo:hover { opacity: 0.85; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.76);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  position: relative;
}
.nav-link:hover,
.nav-link.active { color: #fff; background: rgba(255, 255, 255, 0.12); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Theme toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--transition), background var(--transition);
}
.theme-toggle:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }

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

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 8px;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.75);
  transition: background var(--transition);
}
.hamburger:hover { background: rgba(255, 255, 255, 0.1); }
.hamburger span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    inset: 0 0 0 0;
    top: 65px;
    flex-direction: column;
    align-items: stretch;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.5rem 1.25rem 2rem;
    gap: 0.25rem;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    border-top: 1px solid var(--border);
    overflow-y: auto;
  }

  .nav-links.open { transform: translateX(0); }

  .nav-link {
    font-size: 1.1rem;
    padding: 0.9rem 1rem;
  }
}

/* ---- Hero ------------------------------------------- */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: 'Portfolio';
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(3.8rem, 17vw, 14rem);
  font-weight: 700;
  line-height: 0.9;
  color: rgba(20, 20, 20, 0.11);
  letter-spacing: -0.06em;
  z-index: 0;
  pointer-events: none;
}

[data-theme="dark"] .hero::before {
  color: rgba(255, 255, 255, 0.1);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 70% 40%, rgba(20, 20, 20, 0.09) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 30% 70%, rgba(255, 91, 46, 0.08) 0%, transparent 60%);
  pointer-events: none;
  animation: heroGlow 8s ease-in-out infinite alternate;
}

[data-theme="dark"] .hero-bg {
  background:
    radial-gradient(ellipse 60% 60% at 70% 40%, rgba(255, 255, 255, 0.11) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 30% 70%, rgba(255, 108, 67, 0.12) 0%, transparent 60%);
}

@keyframes heroGlow {
  from { opacity: 0.7; transform: scale(1); }
  to   { opacity: 1;   transform: scale(1.05); }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-block: 4rem 6rem;
  position: relative;
  z-index: 1;
  align-items: center;
  text-align: center;
}

.hero-eyebrow {
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-name {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--text);
}

.hero-title {
  font-size: clamp(1.25rem, 3.5vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-muted);
}

.hero-title-accent {
  color: var(--accent);
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 500;
}

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

.hero-br { display: none; }
@media (min-width: 640px) { .hero-br { display: inline; } }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

.hero-scroll {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  color: var(--text-subtle);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-scroll-line {
  display: inline-block;
  width: 36px;
  height: 1px;
  background: var(--text-subtle);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleX(1); opacity: 0.5; }
  50%       { transform: scaleX(1.4); opacity: 1; }
}

/* ---- Buttons ---------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(255, 91, 46, 0.32);
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 12px 24px rgba(255, 91, 46, 0.4);
}

.btn-outline {
  background: rgba(20, 20, 20, 0.02);
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
  box-shadow: none;
}

/* ---- Section Headings ------------------------------- */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 0.85rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
}

.section-subtitle {
  margin-top: 1rem;
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-inline: auto;
  line-height: 1.65;
}

/* ---- Reveal Animations ------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero starts visible immediately */
.hero .reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 0.6s ease forwards;
}
.hero .reveal-delay-1 { animation-delay: 0.15s; }
.hero .reveal-delay-2 { animation-delay: 0.3s; }
.hero .reveal-delay-3 { animation-delay: 0.45s; }
.hero .reveal-delay-4 { animation-delay: 0.6s; }
.hero .reveal-delay-5 { animation-delay: 0.75s; }

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

/* Scroll-reveal stagger for non-hero */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---- About ------------------------------------------ */
.about { background: var(--bg-secondary); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
  align-items: center;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 260px 1fr;
    gap: 4rem;
  }
}

.about-image-wrap {
  display: flex;
  justify-content: center;
}

.about-image-frame {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--accent);
  box-shadow: 0 0 0 8px var(--accent-dim);
  flex-shrink: 0;
  position: relative;
}

@media (min-width: 768px) {
  .about-image-frame { width: 260px; height: 260px; }
}

.about-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-lead {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.65;
}

.about-text p + p { margin-top: 0.85rem; }
.about-text p { color: var(--text-muted); }
.about-text strong { color: var(--text); font-weight: 600; }
.about-text em { font-style: italic; }

.about-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  margin-bottom: 1.75rem;
}

.about-facts li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: var(--bg-tertiary);
  padding: 0.45rem 0.9rem;
  border-radius: 100px;
  border: 1px solid var(--border);
}
.about-facts li svg { color: var(--accent); flex-shrink: 0; }

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .stats-row { grid-template-columns: repeat(4, 1fr); }
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.stat-number {
  display: block;
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
}
.stat-suffix {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}
.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ---- Skills ----------------------------------------- */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px)  { .skills-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .skills-grid { grid-template-columns: repeat(4, 1fr); } }

.skill-category {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: none;
  transition: transform var(--transition), box-shadow var(--transition);
}
.skill-category:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.skill-category-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  color: var(--accent);
}
.skill-category-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  transition: color var(--transition), background var(--transition), border-color var(--transition), transform var(--transition);
}
.skill-tag:hover {
  color: var(--accent);
  background: var(--accent-dim);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.skill-tag--primary {
  color: var(--accent);
  background: var(--accent-dim);
  border-color: var(--accent);
  font-weight: 600;
}

/* ---- Projects --------------------------------------- */
.projects { background: var(--bg-secondary); }

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

.project-card {
  background: var(--card-bg);
  border: 1px solid #d7d7d7;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.project-image {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.project-image-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.5s ease;
}
.project-card:hover .project-image-bg { transform: scale(1.05); }

.project-image-bg--1 {
  background: linear-gradient(135deg, #1d1d1d 0%, #4e4e4e 100%);
}
.project-image-bg--2 {
  background: linear-gradient(135deg, #2d2d2d 0%, #ff5b2e 100%);
}
.project-image-bg--3 {
  background: linear-gradient(135deg, #111111 0%, #5f5f5f 100%);
}
.project-image-bg--4 {
  background: linear-gradient(135deg, #333333 0%, #8b8b8b 100%);
}

.project-number {
  position: absolute;
  bottom: 1rem;
  right: 1.25rem;
  font-size: 4rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.18);
  line-height: 1;
  letter-spacing: -0.04em;
  user-select: none;
}

.project-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}
.project-tags span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}

.project-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.project-highlights {
  list-style: none;
  margin-bottom: 1.25rem;
  flex: 1;
}
.project-highlights li {
  font-size: 0.83rem;
  color: var(--text-muted);
  padding: 0.25rem 0;
  padding-left: 1.1rem;
  position: relative;
}
.project-highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateY(-50%);
}

.project-links {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), transform var(--transition);
}
.project-link:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.project-link--ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
}
.project-link--ghost:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
}

/* ---- Experience / Timeline -------------------------- */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-marker {
  position: absolute;
  left: -2rem;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
  transition: transform var(--transition);
}
.timeline-item:hover .timeline-marker { transform: scale(1.2); }

.timeline-marker--edu {
  background: #818cf8;
  box-shadow: 0 0 0 2px #818cf8;
}

.timeline-content {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.timeline-item:hover .timeline-content {
  box-shadow: var(--shadow);
  transform: translateX(4px);
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
}

.timeline-date {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-subtle);
  letter-spacing: 0.04em;
}

.timeline-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}
.timeline-badge--current {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}
.timeline-badge--edu {
  background: rgba(129, 140, 248, 0.15);
  color: #818cf8;
}

.timeline-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.timeline-company {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.timeline-company svg { color: var(--accent); flex-shrink: 0; }

.timeline-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.timeline-achievements {
  padding-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  border-top: 1px solid var(--border);
}
.timeline-achievements li {
  font-size: 0.83rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
}
.timeline-achievements li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
}

/* ---- Contact ---------------------------------------- */
.contact { background: var(--bg-secondary); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 2fr; }
}

/* Contact info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-dim);
  color: var(--accent);
  flex-shrink: 0;
}

.contact-info-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 0.2rem;
}
.contact-info-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  transition: color var(--transition);
}
a.contact-info-value:hover { color: var(--accent); }

/* Social links */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  transition: color var(--transition), border-color var(--transition), background var(--transition), transform var(--transition);
}
.social-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-3px);
}

/* Contact form */
.contact-form {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 480px) {
  .form-row { grid-template-columns: repeat(2, 1fr); }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.form-label span { color: var(--accent); }

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  resize: vertical;
}
.form-input::placeholder { color: var(--text-subtle); }
.form-input:hover { border-color: var(--text-subtle); }
.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
  background: var(--card-bg);
}
.form-input.error { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12); }
.form-input.success { border-color: #10b981; }

.form-textarea { min-height: 120px; }

.form-error {
  font-size: 0.78rem;
  color: #ef4444;
  min-height: 1em;
  font-weight: 500;
}

.form-submit {
  width: 100%;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem;
  font-size: 1rem;
}
.form-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.form-success {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
}
.form-success[hidden] { display: none; }

/* ---- Footer ----------------------------------------- */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding-block: 2rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-copy,
.footer-built {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---- Back to Top ------------------------------------ */
.back-to-top {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity var(--transition), transform var(--transition);
  z-index: 50;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

/* =========================================================
   Cinematic Redesign Override (Original Implementation)
   ========================================================= */

:root {
  --bg: #0b080c;
  --bg-secondary: #110d14;
  --bg-tertiary: #16101a;
  --text: #f2edf4;
  --text-muted: #b8b0c0;
  --text-subtle: #867c91;
  --accent: #c2a4ff;
  --accent-hover: #d0b9ff;
  --accent-dim: rgba(194, 164, 255, 0.15);
  --border: rgba(194, 164, 255, 0.2);
  --card-bg: rgba(18, 13, 22, 0.8);
  --nav-bg: rgba(6, 4, 8, 0.66);
}

body {
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
  background:
    radial-gradient(circle at 12% 15%, rgba(194, 164, 255, 0.12), transparent 44%),
    radial-gradient(circle at 80% 22%, rgba(194, 164, 255, 0.08), transparent 48%),
    linear-gradient(180deg, #08060a, #0d0911 32%, #09060c);
  color: var(--text);
  overflow-x: hidden;
  cursor: default;
}

body.is-loading {
  overflow: hidden;
}

.loader-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background: #09070b;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-inner {
  width: min(560px, 90vw);
  text-align: center;
  border: 1px solid rgba(194, 164, 255, 0.2);
  border-radius: 28px;
  padding: 2rem 1.5rem;
  background: rgba(12, 9, 15, 0.88);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.5);
}

.loader-kicker {
  color: var(--text-subtle);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.loader-title {
  margin-top: 0.35rem;
  font-size: clamp(2.5rem, 11vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.loader-subtitle {
  color: var(--text-muted);
  margin-top: 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.loader-bar {
  margin-top: 1.3rem;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.loader-bar span {
  width: 0;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #8f65e8, #c2a4ff);
}

.loader-progress {
  margin-top: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  transform: translate3d(-50%, -50%, 0);
  background: radial-gradient(circle, rgba(194, 164, 255, 0.2) 0%, rgba(194, 164, 255, 0.08) 30%, transparent 72%);
  filter: blur(20px);
  opacity: 0;
  transition: opacity 0.35s ease;
}

body.cursor-ready .cursor-glow {
  opacity: 1;
}

.ambient-grid {
  opacity: 0.25;
}

.chatbot-bg {
  opacity: 0.23;
  bottom: 6%;
}

.nav-header {
  top: auto;
  bottom: 1.25rem;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: min(700px, calc(100vw - 1.25rem));
  border: 1px solid rgba(194, 164, 255, 0.2);
  border-radius: 999px;
  background: rgba(8, 6, 10, 0.82);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

.nav-container {
  max-width: none;
  padding: 0.42rem 0.55rem;
}

.nav-logo {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #8f65e8, #c2a4ff);
  color: #0f0a13;
  font-size: 0.9rem;
}

.nav-link {
  color: rgba(242, 237, 244, 0.75);
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(194, 164, 255, 0.18);
}

.theme-toggle,
.hamburger {
  color: rgba(242, 237, 244, 0.8);
}

.theme-toggle:hover,
.hamburger:hover {
  background: rgba(194, 164, 255, 0.14);
  color: #fff;
}

.hero {
  min-height: 100vh;
  min-height: 100svh;
  padding-top: 0;
}

.hero::before {
  content: 'PORTFOLIO';
  position: absolute;
  top: 6%;
  left: 50%;
  transform: translate3d(-50%, calc(var(--hero-shift, 0px) * 0.3), 0);
  font-size: clamp(3.2rem, 15vw, 13rem);
  letter-spacing: -0.06em;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
  font-weight: 700;
  z-index: 0;
}

.hero-content {
  padding-top: clamp(6rem, 12vw, 8.5rem);
  padding-bottom: 5.5rem;
  align-items: center;
  text-align: center;
  transform: translate3d(0, calc(var(--hero-shift, 0px) * -0.06), 0);
  transition: transform 0.18s linear;
}

.hero-side {
  position: absolute;
  top: 56%;
  transform: translateY(-50%);
  max-width: 210px;
  z-index: 1;
  border: 1px solid rgba(194, 164, 255, 0.2);
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
  background: rgba(13, 9, 16, 0.45);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.hero-side--left {
  left: max(1rem, calc((100vw - 1160px) / 2 + 1.2rem));
}

.hero-side--right {
  right: max(1rem, calc((100vw - 1160px) / 2 + 1.2rem));
}

.hero-side-title {
  color: var(--text);
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  font-weight: 600;
  text-transform: uppercase;
}

.hero-side-copy {
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.hero-eyebrow {
  color: var(--accent);
  font-weight: 500;
}

.hero-name {
  font-size: clamp(3.2rem, 10vw, 8.5rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.split-reveal {
  overflow: hidden;
}

.split-reveal .char {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease;
  transition-delay: calc(var(--char-index, 0) * 0.025s);
  will-change: transform;
}

.split-reveal.is-visible .char {
  transform: translateY(0);
  opacity: 1;
}

.hero-title {
  font-size: clamp(1rem, 2.7vw, 2rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.hero-title-accent {
  font-family: 'Geist', sans-serif;
  font-style: normal;
  color: var(--text);
  font-weight: 700;
}

.hero-bio {
  max-width: 720px;
}

.hero-cta {
  justify-content: center;
}

.btn {
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: linear-gradient(140deg, #8f65e8, #c2a4ff);
  color: #120b17;
  box-shadow: 0 12px 26px rgba(143, 101, 232, 0.32);
}

.btn-primary:hover {
  background: linear-gradient(140deg, #9a73eb, #d0bcff);
}

.btn-outline {
  border-color: rgba(194, 164, 255, 0.35);
  color: var(--text);
  background: rgba(194, 164, 255, 0.05);
}

.btn-outline:hover {
  background: rgba(194, 164, 255, 0.18);
  border-color: rgba(194, 164, 255, 0.55);
}

.role-marquee {
  border-block: 1px solid rgba(194, 164, 255, 0.2);
  background: rgba(6, 4, 8, 0.7);
  overflow: hidden;
}

.role-marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeMove 36s linear infinite;
}

.role-marquee-track span {
  font-size: clamp(1.1rem, 2vw, 1.65rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text);
  padding: 0.95rem 2.25rem;
  position: relative;
}

.role-marquee-track span::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
}

@keyframes marqueeMove {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.section {
  padding-block: 6.5rem;
}

.about,
.projects,
.contact {
  background: transparent;
}

.section-tag {
  background: rgba(194, 164, 255, 0.12);
  border: 1px solid rgba(194, 164, 255, 0.25);
}

.skill-category,
.project-card,
.timeline-content,
.contact-form,
.stat-card {
  background: rgba(17, 12, 22, 0.64);
  border: 1px solid rgba(194, 164, 255, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.project-image-bg--1 { background: linear-gradient(135deg, #3a1f70 0%, #9f7ff0 100%); }
.project-image-bg--2 { background: linear-gradient(135deg, #33195f 0%, #c2a4ff 100%); }
.project-image-bg--3 { background: linear-gradient(135deg, #251542 0%, #855fdb 100%); }
.project-image-bg--4 { background: linear-gradient(135deg, #170e28 0%, #7d57d0 100%); }

.project-link {
  background: rgba(194, 164, 255, 0.9);
  color: #140d1b;
  transition: transform 0.2s ease, background 0.2s ease;
}

.project-link:hover {
  background: #d0bcff;
}

.project-link--ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: rgba(194, 164, 255, 0.28);
}

.project-link--ghost:hover {
  color: var(--text);
  background: rgba(194, 164, 255, 0.12);
  border-color: rgba(194, 164, 255, 0.5);
}

.timeline::before {
  background: rgba(194, 164, 255, 0.25);
}

.timeline-badge--current,
.timeline-badge--edu {
  background: rgba(194, 164, 255, 0.18);
  color: var(--accent);
}

.form-input {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(194, 164, 255, 0.22);
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(194, 164, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.footer {
  border-top: 1px solid rgba(194, 164, 255, 0.2);
  background: rgba(8, 6, 10, 0.6);
  margin-bottom: 5.8rem;
}

.btn,
.project-link,
.social-link,
.nav-logo {
  will-change: transform;
}

.scroll-progress {
  background: linear-gradient(90deg, #8f65e8, #c2a4ff);
}

.back-to-top {
  background: linear-gradient(140deg, #8f65e8, #c2a4ff);
  color: #120b17;
}

@media (max-width: 920px) {
  .hero-side {
    display: none;
  }

  .nav-header {
    width: calc(100vw - 0.8rem);
    bottom: 0.45rem;
  }

  .nav-links {
    top: auto;
    bottom: 58px;
    border: 1px solid rgba(194, 164, 255, 0.2);
    border-radius: 16px;
    background: rgba(10, 7, 12, 0.94);
  }

  .footer {
    margin-bottom: 7.2rem;
  }
}

/* ---- Print styles ----------------------------------- */
@media print {
  .nav-header,
  .back-to-top,
  .scroll-progress,
  .hero-scroll,
  .hero-cta,
  .contact-form,
  .project-links { display: none; }

  .section { padding-block: 2rem; }
  .hero { min-height: auto; padding: 2rem 0; }
  * { box-shadow: none !important; }
}

/* ---- Reduced-motion preference ---------------------- */
@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;
  }
  .reveal { opacity: 1; transform: none; }

  .split-reveal .char {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }

  .chatbot-pupil {
    transition: none;
    transform: translate3d(0, 0, 0) !important;
  }
}
