/* =========================================================
   Aarav Sharma — Portfolio
   style.css · Design system + component styles
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Palette */
  --c-primary: #2563EB;
  --c-primary-600: #1D4ED8;
  --c-accent: #38BDF8;
  --c-success: #10B981;
  --c-warning: #F59E0B;
  --c-danger: #EF4444;

  /* Neutrals */
  --c-bg: #FFFFFF;
  --c-bg-alt: #F8FAFC;
  --c-surface: #FFFFFF;
  --c-surface-2: #F1F5F9;
  --c-border: #E5E7EB;
  --c-border-strong: #D1D5DB;
  --c-text: #111827;
  --c-text-2: #4B5563;
  --c-text-3: #6B7280;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .06);
  --shadow-md: 0 6px 20px -8px rgba(15, 23, 42, .12), 0 2px 6px rgba(15, 23, 42, .05);
  --shadow-lg: 0 30px 60px -20px rgba(15, 23, 42, .18), 0 10px 30px -12px rgba(15, 23, 42, .08);
  --shadow-glow: 0 20px 60px -20px rgba(37, 99, 235, .35);

  --grad-primary: linear-gradient(135deg, #2563EB 0%, #38BDF8 100%);
  --grad-text: linear-gradient(135deg, #2563EB 0%, #7C3AED 45%, #38BDF8 100%);
  --grad-hero: radial-gradient(1200px 600px at 15% -10%, rgba(56, 189, 248, .18), transparent 60%),
               radial-gradient(900px 500px at 90% 10%, rgba(37, 99, 235, .18), transparent 60%);

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-full: 999px;

  /* Spacing (8pt) */
  --s-1: 8px;  --s-2: 16px; --s-3: 24px;
  --s-4: 32px; --s-5: 48px; --s-6: 64px; --s-7: 96px;

  /* Type */
  --f-sans: 'Inter', 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --container: 1200px;
  --nav-h: 72px;

  --easing: cubic-bezier(.2, .7, .2, 1);
}

/* Dark theme */
[data-theme="dark"] {
  --c-bg: #0F172A;
  --c-bg-alt: #0B1220;
  --c-surface: #111C33;
  --c-surface-2: #1E293B;
  --c-border: rgba(255, 255, 255, .08);
  --c-border-strong: rgba(255, 255, 255, .14);
  --c-text: #F8FAFC;
  --c-text-2: #CBD5E1;
  --c-text-3: #94A3B8;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-md: 0 6px 20px -8px rgba(0, 0, 0, .5);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .6);
  --shadow-glow: 0 20px 60px -20px rgba(56, 189, 248, .35);
  --grad-hero: radial-gradient(1200px 600px at 15% -10%, rgba(56, 189, 248, .18), transparent 60%),
               radial-gradient(900px 500px at 90% 10%, rgba(37, 99, 235, .22), transparent 60%);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-sans);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .3s var(--easing), color .3s var(--easing);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

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

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--c-border-strong);
  border-radius: 999px;
  border: 2px solid var(--c-bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--c-text-3); }

/* Selection */
::selection { background: var(--c-primary); color: #fff; }

/* Utility */
.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }
.section { padding: var(--s-7) 0; position: relative; }
.section--muted { background: var(--c-bg-alt); }
.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-primary);
  padding: 6px 12px;
  background: color-mix(in oklab, var(--c-primary) 10%, transparent);
  border-radius: var(--r-full);
}
.eyebrow__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-success);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--c-success) 25%, transparent);
  animation: pulse 2s var(--easing) infinite;
}

.section__head {
  max-width: 760px; margin: 0 auto var(--s-6);
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--s-2);
}
.section__title {
  font-family: var(--f-sans);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0;
}
.section__lead {
  color: var(--c-text-2);
  font-size: 17px;
  margin: 0;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-py: 12px; --btn-px: 22px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: var(--btn-py) var(--btn-px);
  border-radius: var(--r-md);
  font-weight: 600; font-size: 15px; line-height: 1;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .2s var(--easing), box-shadow .3s var(--easing),
              background .3s var(--easing), color .3s var(--easing), border-color .3s var(--easing);
  overflow: hidden;
  isolation: isolate;
}
.btn .icon { width: 18px; height: 18px; }
.btn--sm { --btn-py: 9px; --btn-px: 16px; font-size: 14px; }
.btn--lg { --btn-py: 15px; --btn-px: 28px; font-size: 16px; }

.btn--primary {
  color: #fff;
  background: var(--grad-primary);
  box-shadow: var(--shadow-glow);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 25px 50px -15px rgba(37, 99, 235, .5); }
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  color: var(--c-text);
  background: transparent;
  border-color: var(--c-border-strong);
}
.btn--ghost:hover {
  background: var(--c-surface-2);
  border-color: var(--c-primary);
  color: var(--c-primary);
  transform: translateY(-2px);
}

/* Ripple */
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255, 255, 255, .5);
  animation: ripple .6s var(--easing);
  pointer-events: none;
}
.btn--ghost .ripple { background: rgba(37, 99, 235, .25); }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  background: var(--c-bg);
  transition: opacity .5s var(--easing), visibility .5s var(--easing);
}
.loader.is-hidden { opacity: 0; visibility: hidden; }
.loader__ring {
  width: 64px; height: 64px; border-radius: 50%;
  border: 3px solid var(--c-border);
  border-top-color: var(--c-primary);
  animation: spin 1s linear infinite;
}
.loader__mark {
  position: absolute;
  font-weight: 800; font-size: 18px;
  background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0;
  background: var(--grad-primary);
  z-index: 200;
  transition: width .1s linear;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h); z-index: 100;
  display: flex; align-items: center;
  transition: background .3s var(--easing), backdrop-filter .3s var(--easing), border-color .3s var(--easing);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: color-mix(in oklab, var(--c-bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--c-border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.nav__brand-mark {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--grad-primary); color: #fff; font-weight: 800;
  box-shadow: var(--shadow-md);
}
.nav__brand-mark span { color: #a5f3fc; }
.nav__brand-name { font-size: 15px; letter-spacing: -0.01em; }

.nav__menu { display: flex; }
.nav__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 4px; align-items: center;
  background: color-mix(in oklab, var(--c-surface-2) 60%, transparent);
  border: 1px solid var(--c-border);
  padding: 6px; border-radius: var(--r-full);
}
.nav__link {
  display: inline-block; padding: 8px 14px;
  font-size: 14px; font-weight: 500; color: var(--c-text-2);
  border-radius: var(--r-full);
  transition: color .2s var(--easing), background .2s var(--easing);
}
.nav__link:hover { color: var(--c-text); background: var(--c-surface); }
.nav__link.is-active {
  color: #fff; background: var(--grad-primary);
  box-shadow: 0 6px 20px -8px rgba(37, 99, 235, .55);
}

.nav__actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  color: var(--c-text);
  cursor: pointer;
  transition: transform .2s var(--easing), background .2s var(--easing);
}
.theme-toggle:hover { transform: rotate(-15deg); }
.theme-toggle .icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[data-theme="light"] .icon--moon,
[data-theme="dark"] .icon--sun { display: none; }

.nav__burger {
  display: none;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  padding: 10px; cursor: pointer;
  flex-direction: column; justify-content: space-between;
}
.nav__burger span {
  display: block; height: 2px; width: 100%;
  background: var(--c-text); border-radius: 2px;
  transition: transform .3s var(--easing), opacity .2s var(--easing);
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: 80px;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: var(--grad-hero); }
.hero__orb {
  position: absolute; border-radius: 50%;
  filter: blur(60px); opacity: .55;
  animation: float 12s ease-in-out infinite;
}
.hero__orb--a { width: 380px; height: 380px; top: -80px; right: -60px; background: var(--c-accent); }
.hero__orb--b { width: 320px; height: 320px; bottom: -60px; left: -40px; background: var(--c-primary); animation-delay: -6s; }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--c-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  opacity: .35;
}

.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center;
}
.hero__title {
  font-size: clamp(38px, 5.5vw, 64px);
  line-height: 1.05; letter-spacing: -0.03em;
  font-weight: 800; margin: 20px 0 20px;
}
.typing { color: var(--c-primary); }
.typing::after {
  content: '';
  display: inline-block; width: 3px; height: 0.9em;
  background: var(--c-primary); margin-left: 4px;
  animation: blink 1s steps(2) infinite; vertical-align: -2px;
}
.hero__desc {
  color: var(--c-text-2); font-size: 18px; max-width: 560px;
  margin: 0 0 32px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.hero__socials { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; }
.hero__socials a {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--c-surface); border: 1px solid var(--c-border);
  color: var(--c-text-2);
  transition: transform .2s var(--easing), color .2s var(--easing), border-color .2s var(--easing);
}
.hero__socials svg { width: 18px; height: 18px; fill: currentColor; }
.hero__socials a:hover { color: var(--c-primary); border-color: var(--c-primary); transform: translateY(-3px); }

/* Terminal visual */
.hero__visual { position: relative; }
.hero__card {
  position: relative;
  border-radius: var(--r-lg);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: floaty 8s ease-in-out infinite;
}
.hero__card-glow {
  position: absolute; inset: -2px;
  background: var(--grad-primary);
  filter: blur(20px); opacity: .25; z-index: -1;
}
.hero__terminal-top {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px;
  background: var(--c-surface-2);
  border-bottom: 1px solid var(--c-border);
}
.hero__terminal-top span {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--c-danger);
}
.hero__terminal-top span:nth-child(2) { background: var(--c-warning); }
.hero__terminal-top span:nth-child(3) { background: var(--c-success); }
.hero__terminal-top p {
  margin: 0 0 0 12px; font-family: var(--f-mono); font-size: 12px; color: var(--c-text-3);
}
.hero__terminal-body {
  font-family: var(--f-mono); font-size: 13.5px; line-height: 1.7;
  padding: 20px 22px; margin: 0;
  color: var(--c-text-2); background: var(--c-surface);
  white-space: pre-wrap;
}
.tk-c { color: var(--c-accent); }
.tk-s { color: #22c55e; }
.tk-k { color: var(--c-primary); }
.tk-n { color: var(--c-warning); }

.hero__badge {
  position: absolute;
  padding: 12px 16px; border-radius: 14px;
  background: var(--c-surface); border: 1px solid var(--c-border);
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; align-items: flex-start;
  animation: floaty 6s ease-in-out infinite;
}
.hero__badge strong {
  font-size: 20px; font-weight: 800;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__badge span { font-size: 12px; color: var(--c-text-3); }
.hero__badge--a { top: 20px; left: -20px; animation-delay: -2s; }
.hero__badge--b { bottom: 30px; right: -20px; animation-delay: -4s; }

.hero__scroll {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 40px; border-radius: 14px;
  border: 2px solid var(--c-text-3);
  display: grid; place-items: start center;
}
.hero__scroll span {
  display: block; width: 3px; height: 8px; border-radius: 2px;
  background: var(--c-text-3); margin-top: 6px;
  animation: scroll 1.6s var(--easing) infinite;
}

/* ---------- About ---------- */
.about {
  display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center;
}
.about__media { position: relative; }
.about__photo {
  position: relative; z-index: 1;
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__ring {
  position: absolute; inset: -14px;
  border-radius: calc(var(--r-lg) + 12px);
  border: 1px dashed var(--c-primary);
  opacity: .5;
}
.about__heading {
  font-size: clamp(22px, 2.5vw, 28px); font-weight: 700;
  letter-spacing: -0.02em; margin: 0 0 12px;
}
.about__body p { color: var(--c-text-2); margin: 0 0 24px; }
.about__grid {
  list-style: none; padding: 0; margin: 0 0 24px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.about__grid li {
  padding: 14px 16px; border-radius: var(--r-md);
  background: var(--c-surface); border: 1px solid var(--c-border);
  display: flex; flex-direction: column; gap: 2px;
}
.about__k { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--c-text-3); }
.about__v { font-weight: 600; }
.about__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.about__tags span {
  padding: 6px 12px; border-radius: var(--r-full);
  background: color-mix(in oklab, var(--c-primary) 8%, transparent);
  color: var(--c-primary); font-size: 13px; font-weight: 500;
  border: 1px solid color-mix(in oklab, var(--c-primary) 20%, transparent);
}
.about__cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Skills ---------- */
.skills {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.skill-card {
  padding: 28px;
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  transition: transform .3s var(--easing), box-shadow .3s var(--easing), border-color .3s var(--easing);
  position: relative; overflow: hidden;
}
.skill-card::before {
  content: ''; position: absolute; inset: 0;
  background: var(--grad-primary); opacity: 0;
  transition: opacity .3s var(--easing);
}
.skill-card::after {
  content: ''; position: absolute; inset: 1px;
  background: var(--c-surface); border-radius: calc(var(--r-lg) - 1px);
}
.skill-card > * { position: relative; z-index: 1; }
.skill-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.skill-card:hover::before { opacity: 1; }

.skill-card__head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
}
.skill-card__head h3 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.skill-card__icon {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: color-mix(in oklab, var(--c-primary) 10%, transparent);
  color: var(--c-primary);
}
.skill-card__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.skill-card__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.skill-card__badges span {
  font-size: 12px; padding: 4px 10px; border-radius: var(--r-full);
  background: var(--c-surface-2); color: var(--c-text-2);
  border: 1px solid var(--c-border);
}
.skill-card__bars { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.skill-card__bars li { display: flex; flex-direction: column; gap: 6px; }
.skill-card__bars span { font-size: 13px; font-weight: 500; color: var(--c-text-2); }
.skill-card__bars i {
  display: block; height: 6px; border-radius: 999px;
  background: var(--c-surface-2); position: relative; overflow: hidden;
}
.skill-card__bars i::after {
  content: ''; position: absolute; inset: 0;
  width: 0; background: var(--grad-primary);
  border-radius: inherit;
  transition: width 1.2s var(--easing);
}
.skill-card__bars i.is-animated::after { width: var(--w, 0%); }

/* ---------- Projects ---------- */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.project {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .3s var(--easing), box-shadow .3s var(--easing), border-color .3s var(--easing);
}
.project:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in oklab, var(--c-primary) 40%, var(--c-border));
}
.project__media { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--c-surface-2); }
.project__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--easing);
}
.project:hover .project__media img { transform: scale(1.06); }
.project__body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.project__meta { display: flex; gap: 8px; align-items: center; }
.tag {
  padding: 4px 10px; border-radius: var(--r-full);
  font-size: 12px; font-weight: 600;
  background: var(--c-surface-2); color: var(--c-text-2);
  border: 1px solid var(--c-border);
}
.tag--accent {
  background: color-mix(in oklab, var(--c-primary) 12%, transparent);
  color: var(--c-primary);
  border-color: color-mix(in oklab, var(--c-primary) 30%, transparent);
}
.project__title { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.project__desc { color: var(--c-text-2); margin: 0; }
.project__stack { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.project__stack li {
  font-family: var(--f-mono); font-size: 12px;
  padding: 3px 8px; border-radius: 6px;
  background: var(--c-surface-2); color: var(--c-text-2);
}
.project__actions { display: flex; gap: 8px; margin-top: auto; padding-top: 8px; }

/* ---------- Timeline ---------- */
.timeline {
  list-style: none; padding: 0; margin: 0;
  position: relative; max-width: 820px; margin-inline: auto;
}
.timeline::before {
  content: ''; position: absolute; left: 16px; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(180deg, var(--c-primary), transparent);
  opacity: .35;
}
.timeline__item {
  position: relative; padding-left: 56px; padding-bottom: 32px;
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot {
  position: absolute; left: 8px; top: 8px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--c-bg);
  border: 3px solid var(--c-primary);
  box-shadow: 0 0 0 6px color-mix(in oklab, var(--c-primary) 15%, transparent);
}
.timeline__card {
  padding: 24px; border-radius: var(--r-lg);
  background: var(--c-surface); border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
}
.timeline__meta {
  display: flex; align-items: center; gap: 10px;
  color: var(--c-text-3); font-size: 13px; margin-bottom: 8px;
}
.timeline__card h3 { margin: 0 0 4px; font-size: 20px; letter-spacing: -0.01em; }
.timeline__org { margin: 0 0 8px; color: var(--c-primary); font-weight: 600; font-size: 14px; }
.timeline__card p { margin: 0; color: var(--c-text-2); }

/* ---------- Certifications ---------- */
.certs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cert {
  padding: 24px; border-radius: var(--r-lg);
  background: var(--c-surface); border: 1px solid var(--c-border);
  display: flex; flex-direction: column; gap: 6px;
  transition: transform .25s var(--easing), box-shadow .25s var(--easing), border-color .25s var(--easing);
}
.cert:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in oklab, var(--c-primary) 30%, var(--c-border)); }
.cert__icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: color-mix(in oklab, var(--c-primary) 10%, transparent);
  color: var(--c-primary);
  display: grid; place-items: center; margin-bottom: 8px;
}
.cert__icon svg { width: 22px; height: 22px; fill: currentColor; }
.cert h3 { font-size: 16px; margin: 0; font-weight: 700; letter-spacing: -0.01em; }
.cert__org { margin: 0; font-size: 13px; color: var(--c-text-2); }
.cert__date { margin: 0; font-size: 12px; color: var(--c-text-3); }
.cert__verify {
  margin-top: 8px; font-size: 13px; font-weight: 600;
  color: var(--c-primary);
  align-self: flex-start;
}
.cert__verify:hover { text-decoration: underline; }

/* ---------- Experience ---------- */
.exp { display: flex; flex-direction: column; gap: 16px; max-width: 900px; margin-inline: auto; }
.exp__item {
  display: grid; grid-template-columns: 200px 1fr; gap: 24px;
  padding: 24px; border-radius: var(--r-lg);
  background: var(--c-surface); border: 1px solid var(--c-border);
  transition: transform .2s var(--easing), border-color .2s var(--easing);
}
.exp__item:hover { border-color: color-mix(in oklab, var(--c-primary) 30%, var(--c-border)); }
.exp__side { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.exp__side p { margin: 0; color: var(--c-text-3); font-size: 13px; }
.exp__body h3 { margin: 0 0 4px; font-size: 20px; letter-spacing: -0.01em; }
.exp__org { margin: 0 0 12px; color: var(--c-primary); font-weight: 600; font-size: 14px; }
.exp__body ul { margin: 0; padding-left: 18px; color: var(--c-text-2); display: flex; flex-direction: column; gap: 4px; }

/* ---------- Achievements ---------- */
.ach { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ach__item {
  padding: 28px; border-radius: var(--r-lg);
  background: var(--c-surface); border: 1px solid var(--c-border);
  position: relative; overflow: hidden;
  transition: transform .3s var(--easing), border-color .3s var(--easing);
}
.ach__item:hover { transform: translateY(-4px); border-color: color-mix(in oklab, var(--c-primary) 30%, var(--c-border)); }
.ach__num {
  font-family: var(--f-mono); font-size: 44px; font-weight: 700;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: .9; margin-bottom: 8px;
}
.ach__item h3 { margin: 0 0 6px; font-size: 18px; font-weight: 700; }
.ach__item p { margin: 0; color: var(--c-text-2); font-size: 14px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; align-items: start; }
.contact__card {
  padding: 32px; border-radius: var(--r-lg);
  background: var(--c-surface); border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
}
.contact__card h3 { margin: 0 0 20px; font-size: 20px; }
.contact__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.contact__list li { display: flex; gap: 12px; align-items: flex-start; }
.contact__ico {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center;
  background: color-mix(in oklab, var(--c-primary) 10%, transparent);
  color: var(--c-primary);
}
.contact__ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact__list li div { display: flex; flex-direction: column; gap: 2px; }
.contact__list li span { font-size: 12px; color: var(--c-text-3); text-transform: uppercase; letter-spacing: .08em; }
.contact__list li a, .contact__list li p { margin: 0; color: var(--c-text); font-weight: 500; }
.contact__list li a:hover { color: var(--c-primary); }

.contact__form {
  padding: 32px; border-radius: var(--r-lg);
  background: var(--c-surface); border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--c-text-2); }
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  color: var(--c-text);
  font-family: inherit; font-size: 15px;
  transition: border-color .2s var(--easing), box-shadow .2s var(--easing);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--c-primary) 15%, transparent);
}
.field textarea { resize: vertical; min-height: 120px; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--c-danger); }
.contact__status { margin: 0; font-size: 14px; min-height: 20px; }
.contact__status.is-success { color: var(--c-success); }
.contact__status.is-error { color: var(--c-danger); }

/* ---------- Footer ---------- */
.footer {
  padding: 48px 0 32px;
  background: var(--c-bg-alt);
  border-top: 1px solid var(--c-border);
}
.footer__inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px; align-items: center;
}
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__brand p { margin: 0; color: var(--c-text-2); font-size: 14px; }
.footer__links { display: flex; gap: 20px; justify-content: center; }
.footer__links a { font-size: 14px; color: var(--c-text-2); transition: color .2s; }
.footer__links a:hover { color: var(--c-primary); }
.footer__socials { list-style: none; padding: 0; margin: 0; display: flex; gap: 10px; justify-content: flex-end; }
.footer__socials a {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--c-surface); border: 1px solid var(--c-border);
  color: var(--c-text-2);
  transition: color .2s, border-color .2s, transform .2s;
}
.footer__socials svg { width: 16px; height: 16px; fill: currentColor; }
.footer__socials a:hover { color: var(--c-primary); border-color: var(--c-primary); transform: translateY(-2px); }
.footer__copy {
  grid-column: 1 / -1;
  text-align: center;
  padding-top: 24px; margin: 0;
  border-top: 1px solid var(--c-border);
  color: var(--c-text-3); font-size: 13px;
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; right: 24px; bottom: 24px;
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--grad-primary); color: #fff;
  border: none; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: var(--shadow-glow);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s var(--easing), transform .3s var(--easing), visibility .3s;
  z-index: 90;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.back-to-top:hover { transform: translateY(-3px); }

/* ---------- Reveal animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--easing), transform .8s var(--easing);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Keyframes ---------- */
@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(20px, -20px); } }
@keyframes scroll { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}
