/* ============================================================
   Ashok Parmar — bio page
   Tokens: ink #0A0D14 · surface #121724 · dev #53C8FF · growth #FFB454
   Type: Bricolage Grotesque (display) · Instrument Sans (body) · IBM Plex Mono (utility)
   ============================================================ */

:root {
  --ink: #0a0d14;
  --surface: #121724;
  --surface-2: #171d2e;
  --line: rgba(255, 255, 255, 0.08);
  --text: #e8edf5;
  --muted: #8b94a7;
  --dev: #53c8ff;
  --growth: #ffb454;
  --dev-dim: rgba(83, 200, 255, 0.14);
  --growth-dim: rgba(255, 180, 84, 0.14);
  --font-display: "Bricolage Grotesque", sans-serif;
  --font-body: "Instrument Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --max: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

.mono { font-family: var(--font-mono); }

a { color: inherit; }

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

::selection { background: var(--dev-dim); }

/* ---------- ambient glows ---------- */

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.glow-dev {
  width: 560px; height: 560px;
  top: -180px; left: -140px;
  background: radial-gradient(circle, rgba(83, 200, 255, 0.16), transparent 65%);
}

.glow-growth {
  width: 620px; height: 620px;
  top: 10vh; right: -220px;
  background: radial-gradient(circle, rgba(255, 180, 84, 0.12), transparent 65%);
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 13, 20, 0.7);
  border-bottom: 1px solid transparent;
}

body.scrolled .nav { border-bottom-color: var(--line); }

.nav-brand {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-dot { color: var(--growth); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.nav-links a.active:not(.nav-cta) { color: var(--growth); }

.nav-links a.nav-cta {
  color: var(--ink);
  background: var(--dev);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}

.nav-links a.nav-cta:hover {
  background: var(--growth);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  transition: transform 0.25s, opacity 0.25s;
}

/* ---------- layout ---------- */

main { position: relative; z-index: 1; }

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px 24px 0;
}

.eyebrow {
  color: var(--growth);
  font-size: 13.5px;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  max-width: 640px;
}

/* ---------- hero ---------- */

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 88px 24px 0;
}

.hero-top {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 48px;
  align-items: center;
}

.hero-portrait {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.portrait-ring {
  width: min(320px, 68vw);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(135deg, var(--dev), rgba(83, 200, 255, 0.05) 42%, rgba(255, 180, 84, 0.05) 58%, var(--growth));
  box-shadow: -24px 8px 90px rgba(83, 200, 255, 0.16), 24px -8px 90px rgba(255, 180, 84, 0.14);
}

.portrait-ring img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--ink);
}

.portrait-caption {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.hero-prompt {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 22px;
}

.typed { color: var(--dev); }

.cursor {
  color: var(--dev);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7.2vw, 5.2rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: 26px;
}

.hero-title em { font-style: normal; }

.glow-text-dev {
  color: var(--dev);
  text-shadow: 0 0 34px rgba(83, 200, 255, 0.45);
}

.glow-text-growth {
  color: var(--growth);
  text-shadow: 0 0 34px rgba(255, 180, 84, 0.45);
}

.hero-sub {
  color: var(--muted);
  font-size: 18px;
  max-width: 560px;
  margin-bottom: 34px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.pulse {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--growth);
  box-shadow: 0 0 0 0 rgba(255, 180, 84, 0.5);
  animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 180, 84, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(255, 180, 84, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 180, 84, 0); }
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15.5px;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-primary {
  color: var(--ink);
  background: linear-gradient(100deg, var(--dev), #7fd8ff);
  box-shadow: 0 0 28px rgba(83, 200, 255, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(83, 200, 255, 0.45);
}

.btn-ghost {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
}

.btn-ghost:hover { border-color: var(--muted); transform: translateY(-2px); }

.btn-full { width: 100%; }

/* ---------- hero card ---------- */

.hero-card {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  margin-top: 64px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.card-half { padding: 26px 28px; }

.card-divider {
  background: linear-gradient(to bottom, var(--dev-dim), var(--growth-dim));
}

.card-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}

.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.dot-dev { background: var(--dev); box-shadow: 0 0 10px var(--dev); }
.dot-growth { background: var(--growth); box-shadow: 0 0 10px var(--growth); }

.card-code pre {
  font-size: 13.5px;
  line-height: 1.75;
  overflow-x: auto;
}

.c-kw { color: var(--dev); }
.c-str { color: var(--growth); }
.c-cm { color: var(--muted); }

.metric-row {
  display: flex;
  align-items: flex-end;
  gap: 28px;
  flex-wrap: wrap;
}

.metric { display: flex; align-items: baseline; gap: 4px; }

.metric-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  color: var(--growth);
}

.metric-x { color: var(--growth); font-size: 1.1rem; font-weight: 600; }

.metric-cap {
  color: var(--muted);
  font-size: 11.5px;
  margin-left: 6px;
  letter-spacing: 0.1em;
}

.spark { flex: 1; min-width: 90px; height: 40px; }

.spark svg { width: 100%; height: 100%; }

.spark path {
  stroke: var(--growth);
  stroke-width: 2;
  filter: drop-shadow(0 0 6px rgba(255, 180, 84, 0.6));
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: draw 1.6s ease-out 0.5s forwards;
}

@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- stats ---------- */

.stats {
  max-width: var(--max);
  margin: 72px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.02);
}

.stat-num {
  display: block;
  font-size: 1.9rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.03em;
}

.stat-label { color: var(--muted); font-size: 14px; }

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.about-body p + p { margin-top: 18px; }

.about-body { color: var(--muted); }

.about-body em { color: var(--text); font-style: normal; font-weight: 600; }

.about-signoff { color: var(--dev); font-size: 14px; }

/* ---------- recognition ---------- */

.award-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.award-card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.award-year {
  color: var(--growth);
  font-size: 13.5px;
  letter-spacing: 0.14em;
  margin-bottom: 10px;
}

.award-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.award-desc {
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 18px;
}

.award-note {
  color: var(--muted);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ---------- skills ---------- */

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.skill-col {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.skill-dev:hover {
  border-color: rgba(83, 200, 255, 0.4);
  box-shadow: 0 0 34px rgba(83, 200, 255, 0.1);
}

.skill-growth:hover {
  border-color: rgba(255, 180, 84, 0.4);
  box-shadow: 0 0 34px rgba(255, 180, 84, 0.1);
}

.skill-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.skill-note { color: var(--muted); font-size: 15px; margin-bottom: 20px; }

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.chips li {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.skill-dev .chips li:hover { border-color: var(--dev); color: var(--dev); }
.skill-growth .chips li:hover { border-color: var(--growth); color: var(--growth); }

/* ---------- work ---------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.work-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.25s, border-color 0.25s;
}

.work-card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.2); }

.work-tags { display: flex; gap: 8px; }

.tag {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 999px;
}

.tag-dev { color: var(--dev); background: var(--dev-dim); }
.tag-growth { color: var(--growth); background: var(--growth-dim); }
.tag-soon { color: var(--muted); border: 1px dashed var(--line); }

.work-card h3 a {
  color: inherit;
  text-decoration: none;
}

.work-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.work-card:has(h3 a)::before {
  content: "↗";
  position: absolute;
  top: 22px;
  right: 24px;
  color: var(--muted);
  font-size: 15px;
  transition: color 0.2s, transform 0.2s;
}

.work-card:has(h3 a:hover)::before {
  color: var(--dev);
  transform: translate(2px, -2px);
}

.work-card h3 a:hover { color: var(--dev); }

.work-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.3;
}

.work-card > p { color: var(--muted); font-size: 15px; flex: 1; }

.work-result { color: var(--text); font-size: 13px; }

/* ---------- experience ---------- */

.timeline {
  list-style: none;
  border-left: 1px solid var(--line);
  margin-left: 6px;
}

.timeline-item {
  position: relative;
  padding: 0 0 44px 34px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 8px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--dev);
  box-shadow: 0 0 12px rgba(83, 200, 255, 0.7);
}

.timeline-item:first-child::before {
  background: var(--growth);
  box-shadow: 0 0 12px rgba(255, 180, 84, 0.7);
}

.timeline-year {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.timeline-item h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.timeline-item p { color: var(--muted); font-size: 15.5px; max-width: 620px; }

/* ---------- contact ---------- */

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

.contact-intro > p { color: var(--muted); margin-bottom: 24px; }

.contact-lines {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 28px;
}

.contact-line {
  color: var(--dev);
  font-size: 16px;
  text-decoration: none;
  border-bottom: 1px solid rgba(83, 200, 255, 0.35);
  padding-bottom: 2px;
}

.contact-line:hover { border-bottom-color: var(--dev); }

/* ---------- QR contact card ---------- */

.qr-card {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 30px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
}

.qr-box {
  flex-shrink: 0;
  padding: 10px;
  background: #ffffff;
  border-radius: 12px;
  cursor: zoom-in;
  line-height: 0;
  transition: transform 0.2s, box-shadow 0.2s;
}

.qr-box:hover {
  transform: scale(1.03);
  box-shadow: 0 0 30px rgba(83, 200, 255, 0.25);
}

.qr-box img, .qr-box canvas { border-radius: 4px; }

.qr-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.qr-sub {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 14px;
}

.btn-small { padding: 9px 18px; font-size: 14px; }

.qr-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 13, 20, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.qr-overlay[hidden] { display: none; }

.qr-overlay-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 32px;
  background: #ffffff;
  border-radius: 20px;
  line-height: 0;
}

.qr-overlay-box p {
  color: #0a0d14;
  font-size: 14px;
  line-height: 1.4;
}

.qr-overlay-actions {
  display: flex;
  gap: 12px;
  line-height: 1.4;
}

.qr-overlay-box .btn-ghost {
  color: #0a0d14;
  border-color: rgba(10, 13, 20, 0.25);
}

.qr-overlay-box #qrBig img,
.qr-overlay-box #qrBig canvas {
  max-width: min(70vw, 70vh);
  height: auto;
}

.socials { display: flex; gap: 18px; }

.socials a {
  color: var(--muted);
  font-size: 14.5px;
  text-decoration: none;
  transition: color 0.2s;
  padding: 12px 6px;
  margin: -12px -6px;
}

.socials a:hover { color: var(--growth); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.02);
}

.form-success {
  color: var(--dev);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 14px;
  border: 1px solid rgba(83, 200, 255, 0.35);
  border-radius: 10px;
  background: var(--dev-dim);
}

.form-success[hidden] { display: none; }

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 15.5px;
  color: var(--text);
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.2s;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--dev);
}

.contact-form ::placeholder { color: rgba(139, 148, 167, 0.55); }

/* ---------- footer ---------- */

.footer {
  max-width: var(--max);
  margin: 96px auto 0;
  padding: 26px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer p, .footer a { color: var(--muted); font-size: 13px; }

.footer a { text-decoration: none; }

.footer a:hover { color: var(--text); }

/* ---------- reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .about-grid, .skills-grid, .contact-grid { grid-template-columns: 1fr; }
  .qr-card { flex-direction: column; align-items: flex-start; }
  .hero-top { grid-template-columns: 1fr; gap: 40px; }
  .hero-portrait { order: -1; }
  .portrait-ring { width: min(230px, 68vw); }
  .award-card { grid-template-columns: 1fr; gap: 24px; }
  .award-card img { max-width: 240px; justify-self: center; }
  .work-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero-card { grid-template-columns: 1fr; }
  .card-divider { height: 1px; background: linear-gradient(to right, var(--dev-dim), var(--growth-dim)); }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    inset: 61px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 24px 20px;
    background: rgba(10, 13, 20, 0.97);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; font-size: 16px; }
  .nav-links a.nav-cta { margin-top: 8px; }
  .nav-toggle { display: flex; }
  body.menu-open .nav-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
  body.menu-open .nav-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .section { padding-top: 72px; }
  .hero { padding-top: 56px; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .spark path { animation: none; stroke-dashoffset: 0; }
  .cursor { animation: none; }
  .pulse { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
