/* ==========================================================================
   Akram Fahim — Portfolio styles
   Tailwind (Play CDN) handles layout utilities.
   This file holds theme tokens + all advanced effects.
   ========================================================================== */

/* ---------- 1. Theme tokens ---------- */
:root {
  --grad: linear-gradient(120deg, #6d5dfc 0%, #b14dff 48%, #ff5d8f 100%);
  --a1: #6d5dfc;
  --a2: #b14dff;
  --a3: #ff5d8f;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.7, 0, .3, 1);
  --radius: 22px;
}
:root,
[data-theme="dark"] {
  --bg: #07070d;
  --bg-2: #0e0e19;
  --text: #f3f2f8;
  --muted: #9d9cb5;
  --faint: #5f5e78;
  --surface: rgba(255, 255, 255, .045);
  --surface-2: rgba(255, 255, 255, .08);
  --border: rgba(255, 255, 255, .09);
  --border-strong: rgba(255, 255, 255, .18);
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
  --glow: rgba(177, 77, 255, .22);
  --blob-opacity: .6;
  --grain-opacity: .07;
  --grid-line: rgba(255, 255, 255, .045);
}
[data-theme="light"] {
  --bg: #f5f4fa;
  --bg-2: #ffffff;
  --text: #12111c;
  --muted: #5c5b72;
  --faint: #9a99ad;
  --surface: rgba(255, 255, 255, .62);
  --surface-2: rgba(255, 255, 255, .9);
  --border: rgba(18, 17, 40, .09);
  --border-strong: rgba(18, 17, 40, .18);
  --shadow: 0 24px 50px -28px rgba(50, 30, 110, .28);
  --glow: rgba(177, 77, 255, .14);
  --blob-opacity: .38;
  --grain-opacity: .045;
  --grid-line: rgba(18, 17, 40, .055);
}

/* ---------- 2. Base ---------- */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Hind Siliguri", system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip;
}
.font-display { font-family: "Sora", "Hind Siliguri", sans-serif; letter-spacing: -.02em; }
::selection { background: var(--a2); color: #fff; }
section { scroll-margin-top: 84px; }
:focus-visible { outline: 2px solid var(--a2); outline-offset: 3px; border-radius: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link {
  position: fixed; left: 16px; top: -64px; z-index: 1000;
  padding: .6rem 1rem; border-radius: 10px;
  background: var(--text); color: var(--bg); font-weight: 600;
  transition: top .25s var(--ease-out);
}
.skip-link:focus { top: 16px; }
.grad-text {
  background: var(--grad);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: gradShift 6s linear infinite;
}
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 10px; border: 2px solid var(--bg); }

/* Smooth colour switch when View Transitions are not supported */
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after {
  transition: background-color .5s ease, color .5s ease, border-color .5s ease, fill .5s ease !important;
}
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ---------- 3. Grain overlay ---------- */
body::after {
  content: "";
  position: fixed; inset: -50%;
  z-index: 90; pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 8s steps(10) infinite;
}

/* ---------- 4. Preloader ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: var(--bg);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1s var(--ease-io), visibility 0s 1s;
  animation: plFailsafe 0s 7s forwards; /* never block the page */
}
.no-js #preloader, .is-loaded #preloader { clip-path: inset(0 0 100% 0); visibility: hidden; }
.no-js #preloader { display: none; }
.pl-inner { width: min(340px, 80vw); }
.pl-name { overflow: hidden; font-family: "Sora", sans-serif; font-weight: 700; font-size: clamp(1.4rem, 5vw, 2rem); letter-spacing: -.03em; }
.pl-name span { display: inline-block; animation: plUp 1s var(--ease-out) both; }
.pl-row { display: flex; justify-content: space-between; margin-top: 1rem; font-size: .8rem; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.pl-bar { height: 2px; margin-top: .6rem; overflow: hidden; border-radius: 2px; background: var(--border); }
.pl-bar i { display: block; height: 100%; background: var(--grad); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* ---------- 5. Scroll progress + custom cursor ---------- */
#scrollProgress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100;
  background: var(--grad);
  transform-origin: left; transform: scaleX(0);
}
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 300;
  pointer-events: none; border-radius: 50%;
  opacity: 0; transition: opacity .3s;
  mix-blend-mode: difference;
  will-change: transform;
}
.cursor-dot { width: 6px; height: 6px; background: #fff; }
.cursor-ring { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.8); }
.cursor-ring.is-hover { background: rgba(255,255,255,.95); border-color: transparent; }
.cursor-visible .cursor-dot, .cursor-visible .cursor-ring { opacity: 1; }
.cursor-visible, .cursor-visible * { cursor: none !important; }
.cursor-visible input, .cursor-visible textarea { cursor: text !important; }

/* ---------- 6. Navbar ---------- */
.nav-shell {
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color .4s, border-color .4s, box-shadow .4s, padding .4s var(--ease-out);
}
#navbar.scrolled .nav-shell {
  background: var(--surface);
  background: color-mix(in srgb, var(--bg-2) 72%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-color: var(--border);
  box-shadow: var(--shadow);
}
.logo { transition: translate .45s var(--ease-out); }
.logo-mark {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--grad); color: #fff;
  font-size: .85rem; font-weight: 800; letter-spacing: -.02em;
  box-shadow: 0 8px 24px -8px rgba(177, 77, 255, .7);
}
.nav-link {
  position: relative; z-index: 1; display: block;
  padding: .5rem 1.05rem; border-radius: 999px;
  font-size: .9rem; font-weight: 500; color: var(--muted);
  transition: color .3s;
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-indicator {
  position: absolute; top: 0; left: 0; z-index: 0;
  height: 100%; width: var(--w, 0);
  transform: translateX(var(--x, 0));
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  opacity: 0;
  transition: opacity .3s;
}
.nav-indicator.ready { opacity: 1; transition: transform .55s var(--ease-out), width .55s var(--ease-out), opacity .3s; }
.nav-indicator::after {
  content: ""; position: absolute; left: 50%; bottom: 4px;
  width: 14px; height: 2px; margin-left: -7px; border-radius: 2px;
  background: var(--grad);
}
.icon-btn {
  position: relative; display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text);
  transition: translate .45s var(--ease-out), background-color .3s, border-color .3s;
}
.icon-btn:hover { border-color: var(--border-strong); background: var(--surface-2); }
.theme-icon { position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; transition: transform .6s var(--ease-out), opacity .4s; }
[data-theme="dark"] .i-moon { opacity: 0; transform: rotate(-90deg) scale(.4); }
[data-theme="light"] .i-sun { opacity: 0; transform: rotate(90deg) scale(.4); }
.mobile-menu {
  margin: .5rem .75rem 0; padding: .5rem;
  border-radius: 22px; border: 1px solid var(--border);
  background: var(--bg-2); box-shadow: var(--shadow);
  transform-origin: top center;
  animation: menuIn .4s var(--ease-out);
}
.mobile-menu a { display: flex; justify-content: space-between; align-items: center; padding: .95rem 1.1rem; border-radius: 14px; font-weight: 600; font-family: "Sora", sans-serif; }
.mobile-menu a:hover, .mobile-menu a.active { background: var(--surface-2); }
.mobile-menu a.active::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }

/* ---------- 7. Buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: 1rem 1.65rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; line-height: 1;
  transition: translate .45s var(--ease-out), box-shadow .4s, color .4s, background-position .6s;
}
.btn .arrow { width: 18px; height: 18px; transition: transform .45s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px) rotate(-45deg); }
.btn-primary {
  color: #fff; background: var(--grad); background-size: 200% 100%;
  box-shadow: 0 12px 32px -12px rgba(177, 77, 255, .75);
}
.btn-primary:hover { background-position: 100% 0; box-shadow: 0 18px 44px -12px rgba(177, 77, 255, .9); }
.btn-primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .9s var(--ease-out);
}
.btn-primary:hover::before { transform: translateX(120%); }
.btn-ghost {
  color: var(--text);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.btn-ghost::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--text);
  transform: translateY(102%);
  transition: transform .55s var(--ease-out);
}
.btn-ghost:hover { color: var(--bg); }
.btn-ghost:hover::before { transform: none; }

/* ---------- 8. Hero ---------- */
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.parallax { position: absolute; will-change: transform; }
.blob {
  width: 100%; height: 100%; border-radius: 50%;
  opacity: var(--blob-opacity);
  animation: blobFloat 18s ease-in-out infinite alternate;
}
.p1 { top: -18%; left: -14%; width: 58vmax; height: 58vmax; }
.p2 { top: 4%; right: -20%; width: 48vmax; height: 48vmax; }
.p3 { bottom: -30%; left: 18%; width: 52vmax; height: 52vmax; }
.b1 { background: radial-gradient(circle at 50% 50%, rgba(109, 93, 252, .75), transparent 62%); }
.b2 { background: radial-gradient(circle at 50% 50%, rgba(255, 93, 143, .6), transparent 62%); animation-duration: 22s; animation-delay: -7s; }
.b3 { background: radial-gradient(circle at 50% 50%, rgba(177, 77, 255, .6), transparent 62%); animation-duration: 26s; animation-delay: -3s; }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 45% 40%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 45% 40%, #000 25%, transparent 75%);
}
/* floating shapes */
.s-ring { top: 18%; right: 12%; }
.s-ring i { display: block; width: 120px; height: 120px; border-radius: 50%; border: 1px solid var(--border-strong); animation: spin 28s linear infinite; position: relative; }
.s-ring i::after { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 18px var(--a2); }
.s-square { bottom: 22%; right: 30%; }
.s-square i { display: block; width: 56px; height: 56px; border-radius: 16px; background: var(--grad); opacity: .85; animation: floatRot 9s ease-in-out infinite; box-shadow: 0 20px 50px -10px rgba(177,77,255,.6); }
.s-dots { top: 62%; left: 4%; }
.s-dots i { display: block; width: 120px; height: 80px; background-image: radial-gradient(var(--border-strong) 1.5px, transparent 1.5px); background-size: 16px 16px; animation: floatY 7s ease-in-out infinite; }
.s-plus { top: 24%; left: 46%; font: 300 2.4rem/1 "Sora", sans-serif; color: var(--faint); }
.s-plus i { display: block; font-style: normal; animation: spin 16s linear infinite; }
/* orbit graphic (xl screens) */
.orbit-wrap { top: calc(50% - 270px); right: -4%; width: 540px; height: 540px; }
.orbit {
  position: absolute; border-radius: 50%;
  border: 1px dashed var(--border-strong);
  animation: spin 40s linear infinite;
}
.o1 { inset: 0; }
.o2 { inset: 80px; animation-duration: 30s; animation-direction: reverse; }
.o3 { inset: 160px; animation-duration: 22s; }
.orbit-pill {
  position: absolute; top: 0; left: 50%; translate: -50% -50%;
  padding: .45rem .9rem; border-radius: 999px; white-space: nowrap;
  font-size: .78rem; font-weight: 600;
  border: 1px solid var(--border); background: var(--bg-2);
  box-shadow: var(--shadow);
  animation: spin 40s linear infinite reverse;
}
.o2 .orbit-pill { animation-duration: 30s; animation-direction: normal; top: 100%; }
.o3 .orbit-pill { animation-duration: 22s; }
.orbit-core {
  position: absolute; inset: 225px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.7), transparent 38%), var(--grad);
  box-shadow: 0 0 80px 10px rgba(177, 77, 255, .45);
  animation: floatY 6s ease-in-out infinite;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .45rem 1rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: .8rem; font-weight: 500; color: var(--muted);
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: pulse 2s infinite; }
.hero-title {
  margin: 1.4rem 0 1.2rem;
  font-weight: 800; font-size: clamp(2.7rem, 8.6vw, 6.6rem);
  line-height: 1.02; letter-spacing: -.045em;
}
.hero-role { font-size: clamp(1.05rem, 2.4vw, 1.35rem); font-weight: 500; color: var(--muted); }
.hero-role strong { color: var(--text); font-weight: 600; }
.typed-wrap { display: block; min-height: 1.6em; white-space: nowrap; color: var(--text); font-weight: 600; }
@media (min-width: 640px) { .typed-wrap { display: inline; } }
.caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 3px; vertical-align: -.16em; background: var(--a2); animation: blink 1s steps(1) infinite; }
.hero-intro { max-width: 36rem; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.1rem); }
.scroll-cue { display: inline-flex; align-items: center; gap: .75rem; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.mouse { width: 22px; height: 34px; border: 1.5px solid var(--border-strong); border-radius: 12px; position: relative; }
.mouse::after { content: ""; position: absolute; top: 6px; left: 50%; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--text); animation: wheel 1.8s var(--ease-out) infinite; }

/* Split-text word reveal (hero + section titles) */
.word { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .1em; margin-bottom: -.1em; }
.word-inner { display: inline-block; transform: translateY(112%); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i, 0) * 65ms); }
.no-js .word-inner, .split.in .word-inner { transform: none; }
#heroTitle .word-inner { transition-delay: calc(var(--i, 0) * 70ms + 120ms); }

/* Hero intro fade-ups */
.js [data-hero] { opacity: 0; translate: 0 24px; transition: opacity 1s var(--ease-out) var(--d, 0ms), translate 1.1s var(--ease-out) var(--d, 0ms); }
.is-ready [data-hero] { opacity: 1; translate: none; }

/* ---------- 9. Marquee ---------- */
.marquee {
  position: relative; overflow: hidden;
  border-block: 1px solid var(--border);
  background: var(--surface);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 2.5rem; padding: 1.15rem 2.5rem 1.15rem 0; margin: 0; list-style: none; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 2.5rem; white-space: nowrap;
  font-family: "Sora", "Hind Siliguri", sans-serif; font-weight: 600;
  font-size: clamp(1rem, 2.2vw, 1.45rem); color: var(--muted);
  transition: color .3s;
}
.marquee-item:hover { color: var(--text); }
.marquee-item::after { content: "\2726"; font-size: .8em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- 10. Sections, glass cards, glow ---------- */
.section { position: relative; padding: clamp(5rem, 12vw, 9rem) 0; }
.section-glow {
  position: absolute; pointer-events: none; z-index: -1;
  width: 60vmax; height: 60vmax; border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 62%);
}
.section-eyebrow {
  display: flex; align-items: center; gap: .8rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.section-eyebrow::before { content: ""; width: 34px; height: 2px; border-radius: 2px; background: var(--grad); }
.section-title { font-family: "Sora", "Hind Siliguri", sans-serif; font-weight: 700; font-size: clamp(2.2rem, 5.6vw, 4.2rem); line-height: 1.05; letter-spacing: -.04em; }
.section-sub { color: var(--muted); max-width: 34rem; }

.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.glow-card { position: relative; overflow: hidden; }
.glow-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--glow), transparent 42%);
  opacity: 0; transition: opacity .45s;
}
.glow-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; padding: 1px;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(177, 77, 255, .9), rgba(255, 93, 143, .4) 40%, transparent 65%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .45s;
}
.glow-card:hover::before, .glow-card:hover::after, .glow-card:focus-visible::after { opacity: 1; }
.glow-card > * { position: relative; z-index: 1; }

/* ---------- 11. Scroll reveal (uses translate/scale so it never fights tilt transforms) ---------- */
[data-reveal], [data-tilt] {
  transition:
    opacity .9s var(--ease-out) var(--d, 0ms),
    translate 1s var(--ease-out) var(--d, 0ms),
    scale 1s var(--ease-out) var(--d, 0ms),
    transform .6s var(--ease-out),
    border-color .3s, background-color .3s, box-shadow .4s;
}
[data-tilt] { transform-style: preserve-3d; will-change: transform; }
.js [data-reveal] { opacity: 0; translate: 0 44px; }
.js [data-reveal="left"] { translate: -44px 0; }
.js [data-reveal="scale"] { translate: none; scale: .88; }
.js [data-reveal].in { opacity: 1; translate: none; scale: none; }

/* ---------- 12. Experience: stats ---------- */
.stat { padding: 1.6rem 1.5rem; }
.stat-num { font-family: "Sora", sans-serif; font-weight: 800; font-size: clamp(2.3rem, 5vw, 3.3rem); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat-label { margin-top: .7rem; font-size: .9rem; color: var(--muted); }

/* ---------- 13. Experience: timeline ---------- */
.timeline { --tl-col: 210px; position: relative; padding-left: 2.25rem; list-style: none; margin: 0; }
.tl-track { position: absolute; left: .6rem; top: .5rem; bottom: 2.5rem; width: 2px; border-radius: 2px; background: var(--border); overflow: hidden; }
.tl-fill { position: absolute; inset: 0; background: var(--grad); transform-origin: top; transform: scaleY(0); }
.tl-item { position: relative; padding-bottom: 2.5rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; top: .3rem; left: calc(.6rem + 1px - 2.25rem);
  width: 16px; height: 16px; margin-left: -8px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--border-strong);
  transition: background-color .5s, border-color .5s, box-shadow .5s, transform .5s var(--ease-out);
  transform: scale(.8);
}
.tl-item.in .tl-dot { background: var(--a2); border-color: var(--a2); box-shadow: 0 0 0 6px rgba(177, 77, 255, .18), 0 0 22px rgba(177, 77, 255, .7); transform: scale(1); }
.tl-period { margin-bottom: .8rem; font-size: .85rem; font-weight: 600; letter-spacing: .06em; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-card { padding: clamp(1.4rem, 3vw, 2rem); }
.tl-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; }
.tl-role { font-size: clamp(1.2rem, 2.4vw, 1.5rem); font-weight: 700; line-height: 1.25; }
.tl-type { padding: .3rem .75rem; border-radius: 999px; font-size: .75rem; font-weight: 600; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); }
.tl-org { display: flex; align-items: center; gap: .5rem; margin-top: .35rem; font-size: .92rem; font-weight: 500; color: var(--muted); }
.tl-org svg { width: 16px; height: 16px; }
.tl-summary { margin-top: 1rem; color: var(--muted); }
.tl-points { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; gap: .55rem; }
.tl-points li { position: relative; padding-left: 1.4rem; font-size: .95rem; }
.tl-points li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 3px; background: var(--grad); transform: rotate(45deg); }
.tl-tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.2rem; }
.tl-tags span { padding: .3rem .7rem; border-radius: 8px; font-size: .75rem; font-weight: 600; color: var(--muted); border: 1px solid var(--border); }
@media (min-width: 768px) {
  .timeline { padding-left: 0; }
  .tl-track { left: calc(var(--tl-col) + 1.5rem); }
  .tl-item { display: grid; grid-template-columns: var(--tl-col) 1fr; column-gap: 3rem; }
  .tl-dot { left: calc(var(--tl-col) + 1.5rem + 1px); top: 1.9rem; }
  .tl-period { margin: 1.75rem 0 0; text-align: right; }
}

/* ---------- 14. Experience: skills chips ---------- */
.skill-group { padding: 1.6rem; }
.skill-group h4 { font-weight: 700; font-size: 1.05rem; margin-bottom: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.chip {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem 1rem; border-radius: 999px;
  font-size: .86rem; font-weight: 500;
  border: 1px solid var(--border); background: var(--surface-2);
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); transition: transform .4s var(--ease-out); }
.chip:hover { transform: translateY(-3px); border-color: var(--a2); }
.chip:hover::before { transform: scale(1.6); }

/* ---------- 15. Contact ---------- */
.contact-title { font-family: "Sora", "Hind Siliguri", sans-serif; font-weight: 800; font-size: clamp(2.7rem, 9vw, 7.4rem); line-height: .98; letter-spacing: -.05em; }
.contact-card { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.35rem; height: 100%; color: var(--text); }
.cc-icon {
  flex: none; display: grid; place-items: center;
  width: 50px; height: 50px; border-radius: 15px;
  background: var(--surface-2); border: 1px solid var(--border);
  transition: background .4s, color .4s, transform .5s var(--ease-out), border-color .4s;
}
.cc-icon svg { width: 22px; height: 22px; }
.contact-card:hover .cc-icon, .contact-card:focus-visible .cc-icon { background: var(--grad); color: #fff; border-color: transparent; transform: rotate(-8deg) scale(1.06); }
.cc-label { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cc-value { font-weight: 600; word-break: break-word; }
.cc-arrow { flex: none; margin-left: auto; width: 20px; height: 20px; color: var(--muted); transition: transform .5s var(--ease-out), color .3s; }
.contact-card:hover .cc-arrow { transform: translate(3px, -3px); color: var(--text); }

.form-card { padding: clamp(1.4rem, 3vw, 2rem); }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; padding: 1.45rem 1rem .6rem;
  border-radius: 14px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text);
  font: inherit; font-size: 1rem; resize: vertical;
  transition: border-color .3s, box-shadow .3s, background-color .3s;
}
.field textarea { min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--a2); box-shadow: 0 0 0 4px rgba(177, 77, 255, .16); }
.field label {
  position: absolute; left: 1rem; top: 1.05rem; pointer-events: none;
  color: var(--muted); font-size: 1rem;
  transform-origin: left top;
  transition: transform .3s var(--ease-out), color .3s;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-.62rem) scale(.76); color: var(--a2); }
.form-status { min-height: 1.4em; font-size: .9rem; color: var(--muted); }
.form-status.error { color: #f43f5e; }

/* ---------- 16. Footer ---------- */
.footer { border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; }
.footer a:hover { color: var(--text); }

/* ---------- 17. Keyframes ---------- */
@keyframes gradShift { to { background-position: 200% center; } }
@keyframes blobFloat {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(6%, 8%, 0) scale(1.08); }
  100% { transform: translate3d(-5%, 4%, 0) scale(.95); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes floatY { 50% { transform: translateY(-16px); } }
@keyframes floatRot { 50% { transform: translateY(-20px) rotate(18deg); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes grain {
  0%, 100% { transform: translate(0, 0); } 10% { transform: translate(-5%, -10%); } 30% { transform: translate(3%, -15%); }
  50% { transform: translate(12%, 9%); } 70% { transform: translate(9%, 4%); } 90% { transform: translate(-1%, 7%); }
}
@keyframes plUp { from { transform: translateY(110%); } }
@keyframes plFailsafe { to { visibility: hidden; clip-path: inset(0 0 100% 0); } }
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px) scale(.97); } }

/* ---------- 18. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
  }
  .js [data-reveal], .js [data-hero] { opacity: 1 !important; translate: none !important; scale: none !important; }
  .word-inner { transform: none !important; }
  .marquee-track { animation: none !important; }
  body::after { animation: none !important; }
}
