/* ============================================================
   Asim Zahid — Portfolio | Custom styles (glass UI, glow, motion)
   Tailwind (CDN) handles layout/utilities. This file only adds
   what Tailwind can't do cleanly: glass surfaces, glows, reveal
   animation, and a couple of bespoke components.
   ============================================================ */

:root {
  --bg-base: #05070d;
  --bg-elevated: #0a0e17;
  --glass-bg: rgba(255, 255, 255, 0.035);
  --glass-bg-strong: rgba(255, 255, 255, 0.055);
  --glass-border: rgba(255, 255, 255, 0.09);
  --glass-border-strong: rgba(255, 255, 255, 0.16);
  --accent: #6366f1;       /* primary accent — indigo */
  --accent-soft: #818cf8;
  --accent-glow: rgba(99, 102, 241, 0.35);
  --accent-2: #22d3ee;      /* secondary glow — cyan */
  --accent-2-glow: rgba(34, 211, 238, 0.25);
  --text-primary: #f3f4f8;
  --text-secondary: #a8adba;
  --text-muted: #6b7280;
  --hero-gradient: linear-gradient(to right, rgba(5, 7, 13, 1) 0%, rgba(5, 7, 13, 1) 40%, rgba(5, 7, 13, 0) 50%);
}

/* ---------- Light theme ---------- */
html[data-theme="light"] {
  --bg-base: #f5f6fb;
  --bg-elevated: #ffffff;
  --glass-bg: rgba(15, 23, 42, 0.04);
  --glass-bg-strong: rgba(15, 23, 42, 0.06);
  --glass-border: rgba(15, 23, 42, 0.1);
  --glass-border-strong: rgba(15, 23, 42, 0.18);
  --accent-glow: rgba(99, 102, 241, 0.18);
  --accent-2-glow: rgba(34, 211, 238, 0.14);
  --text-primary: #12141c;
  --text-secondary: #4b5568;
  --text-muted: #6b7280;
  --hero-gradient: linear-gradient(to right, rgba(245, 246, 251, 1) 30%, rgba(245, 246, 251, 1) 30%, rgba(245, 246, 251, 0) 100%);
}

html[data-theme="light"] .hover\:text-white:hover { color: var(--text-primary); }
html[data-theme="light"] .text-white\/25 { color: rgba(18, 20, 28, 0.3); }
html[data-theme="light"] .text-white\/40 { color: rgba(18, 20, 28, 0.45); }
html[data-theme="light"] .text-white\/45 { color: rgba(18, 20, 28, 0.5); }
html[data-theme="light"] .text-white\/50 { color: rgba(18, 20, 28, 0.55); }
html[data-theme="light"] .text-white\/55 { color: rgba(18, 20, 28, 0.6); }
html[data-theme="light"] .text-white\/60 { color: rgba(18, 20, 28, 0.65); }
html[data-theme="light"] .text-white\/70 { color: rgba(18, 20, 28, 0.72); }
html[data-theme="light"] .text-white\/80 { color: rgba(18, 20, 28, 0.8); }
html[data-theme="light"] .text-white\/90 { color: rgba(18, 20, 28, 0.88); }
html[data-theme="light"] .hover\:text-white\/70:hover { color: rgba(18, 20, 28, 0.75); }
html[data-theme="light"] .border-white\/5 { border-color: rgba(18, 20, 28, 0.08); }
html[data-theme="light"] .border-white\/10 { border-color: rgba(18, 20, 28, 0.12); }

html[data-theme="light"] #navbar.scrolled {
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .hero-photo-placeholder,
html[data-theme="light"] .about-photo-placeholder {
  color: rgba(18, 20, 28, 0.12);
}

html[data-theme="light"] ::-webkit-scrollbar-thumb { background: rgba(18, 20, 28, 0.15); }
html[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: rgba(18, 20, 28, 0.25); }

/* Next.js badge: in light mode drop the solid backing entirely so it matches
   the other (background-less) icon-wraps instead of standing out as a box. */
html[data-theme="light"] .icon-wrap-dark {
  background: transparent;
}

html[data-theme="light"] .icon-wrap-dark i,
html[data-theme="light"] .icon-wrap-dark img {
  filter: none;
}

/* ---------- Theme toggle button ---------- */
.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  position: absolute;
  transition: opacity 0.2s ease, transform 0.3s ease;
}

.theme-toggle {
  position: relative;
}

html[data-theme="dark"] .theme-toggle .icon-sun,
html:not([data-theme]) .theme-toggle .icon-sun {
  opacity: 0;
  transform: rotate(45deg) scale(0.6);
}

html[data-theme="light"] .theme-toggle .icon-moon {
  opacity: 0;
  transform: rotate(-45deg) scale(0.6);
}

* {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ---------- Ambient background glow ---------- */
.bg-ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(45% 35% at 15% 10%, var(--accent-glow) 0%, transparent 70%),
    radial-gradient(40% 30% at 90% 20%, var(--accent-2-glow) 0%, transparent 70%),
    radial-gradient(50% 40% at 50% 100%, rgba(99, 102, 241, 0.12) 0%, transparent 70%),
    var(--bg-base);
}

/* ---------- Glass surfaces ---------- */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 1.25rem;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.glass-strong {
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border-strong);
  border-radius: 1.5rem;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: var(--glass-border-strong);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--accent-glow);
}

/* ---------- Floating navbar ---------- */
#navbar {
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
  background: rgba(10, 14, 23, 0.7);
  border-color: var(--glass-border-strong);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

/* ---------- Accent text / gradient ---------- */
.text-gradient {
  background: linear-gradient(90deg, var(--accent-soft), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #4f46e5);
  box-shadow: 0 4px 20px var(--accent-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--accent-glow);
}

.btn-secondary {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border-strong);
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--accent-soft);
  background: rgba(255, 255, 255, 0.06);
}

/* ---------- Muted body text (bypasses Tailwind's text-white/55 utility,
   which was rendering black on the primary service card) ---------- */
.text-body-muted {
  color: rgba(255, 255, 255, 0.55);
}

html[data-theme="light"] .text-body-muted {
  color: rgba(18, 20, 28, 0.6);
}

/* ---------- Tech pill ---------- */
.pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  border-radius: 9999px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.pill:hover {
  border-color: var(--accent-soft);
  color: var(--text-primary);
}

/* ---------- Hero background image + theme-aware gradient ---------- */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('../assets/images/background11.png');
  background-size: cover;
  background-position: center;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 86%, transparent 100%);
  pointer-events: none;
}

html[data-theme="light"] .hero-bg {
  -webkit-mask-image: none;
  mask-image: none;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--hero-gradient);
  pointer-events: none;
}

/* Below 768px the hero text stacks on top of the full image (no side-by-side
   column to keep it clear of the photo), so hide the photo and go solid
   background instead — keeps the content readable. */
@media (max-width: 767px) {
  .hero-bg {
    display: none;
  }
  .hero-bg-overlay {
    background: var(--bg-base);
  }
}

/* ---------- Hero photo frame + floating stat chips ---------- */
.hero-photo-frame {
  position: relative;
  border-radius: 1.75rem;
  overflow: hidden;
  border: 1px solid var(--glass-border-strong);
  background: linear-gradient(160deg, rgba(99, 102, 241, 0.18), rgba(34, 211, 238, 0.08));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

/* Placeholder avatar shown until a real photo is dropped in.
   Replace the <div class="hero-photo-placeholder"> block in index.html
   with: <img src="assets/images/profile.jpg" alt="Asim Zahid" class="..." /> */
.hero-photo-placeholder {
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.14);
  letter-spacing: 0.05em;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 2px, transparent 2px, transparent 12px);
}

/* ---------- Bottom fade (hero photo blends into page background) ---------- */
.fade-bottom {
  -webkit-mask-image: linear-gradient(to bottom, #000 10%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
}

/* ---------- About photo (fills its 30% grid column) ---------- */
.about-photo-frame {
  position: relative;
  width: 100%;
  border-radius: 1.5rem;
  overflow: hidden;
}

.about-photo-placeholder {
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.14);
  letter-spacing: 0.05em;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 2px, transparent 2px, transparent 12px);
}

/* ---------- Quick-fact badge (hero) ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  padding: 0.7rem 1rem;
}

.badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
}

/* ---------- Stat icon (stats section) ---------- */
.stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  color: var(--accent-soft);
}

/* ---------- Tech stack chips ---------- */
.tech-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 0.875rem;
  padding: 0.5rem 0.85rem 0.5rem 0.5rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.tech-chip:hover {
  transform: translateY(-3px);
  border-color: var(--glass-border-strong);
}

.icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.6rem;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.icon-wrap-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 4px 14px var(--accent-glow);
}

/* Next.js mark is a fixed-black glyph — filter flips it white regardless of
   how devicon renders it (font glyph or embedded image), since `color` alone
   doesn't reach it. */
.icon-wrap-dark {
  background: #000;
  color: #fff;
}

.icon-wrap-dark i,
.icon-wrap-dark img {
  filter: brightness(0) invert(1);
}

/* ---------- Service icons ---------- */
.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 24px var(--accent-glow);
  color: #fff;
}


/* ---------- Generic section header with bottom-aligned support sentence
   (About, Tech Stack, Projects — sections that kept their existing heading
   style but gained a one-line subline to match Services/Process/Why) ---------- */
.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.section-subline {
  font-size: 0.95rem;
  color: #a6a6bd;
  max-width: 430px;
}

html[data-theme="light"] .section-subline {
  color: #5b5f70;
}

/* ---------- Services (bento) ---------- */
#services {
  --svc-card-bg: #0e0e16;
  --svc-border: rgba(255, 255, 255, 0.08);
  --svc-accent: #7c7bff;
  --svc-accent-soft: rgba(124, 123, 255, 0.14);
  --svc-teal: #7fd7cf;
  --svc-teal-soft: rgba(127, 215, 207, 0.14);
  --svc-title: #f3f4f8;
  --svc-body: #a3a3bb;
}

html[data-theme="light"] #services {
  --svc-card-bg: #ffffff;
  --svc-border: rgba(15, 23, 42, 0.1);
  --svc-accent: #6d6bf0;
  --svc-accent-soft: rgba(109, 107, 240, 0.12);
  --svc-teal: #0f9d92;
  --svc-teal-soft: rgba(15, 157, 146, 0.12);
  --svc-title: #12141c;
  --svc-body: #45495a;
}

.svc-glow {
  position: absolute;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  z-index: 0;
}

.svc-glow-indigo {
  top: -10rem;
  left: -8rem;
  background: rgba(124, 123, 255, 0.2);
}

.svc-glow-teal {
  top: -10rem;
  right: -8rem;
  background: rgba(127, 215, 207, 0.16);
}

.svc-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 44px;
}

.svc-heading {
  font-size: clamp(30px, 5vw, 50px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--svc-accent);
}

.svc-subline {
  font-size: 0.95rem;
  color: var(--svc-body);
  max-width: 430px;
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(168px, auto);
  gap: 14px;
}

.svc-card {
  position: relative;
  overflow: hidden;
  background: var(--svc-card-bg);
  border: 1px solid var(--svc-border);
  border-radius: 20px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.svc-card:hover {
  border-color: var(--svc-accent);
  transform: translateY(-3px);
}

.svc-family-teal:hover {
  border-color: var(--svc-teal);
}

.svc-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--svc-title);
}

.svc-body {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--svc-body);
}

/* Primary featured card */
.svc-primary {
  grid-column: span 3;
  grid-row: span 2;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px;
  background: linear-gradient(160deg, var(--svc-accent-soft), var(--svc-card-bg) 60%);
  border-color: var(--svc-accent);
}

.svc-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 32px;
  width: 64px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--svc-accent), var(--svc-teal));
  box-shadow: 0 0 14px var(--svc-accent);
}

.svc-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.svc-icon-lg {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--svc-accent), var(--svc-teal));
  box-shadow: 0 8px 22px var(--svc-accent-soft);
  color: #fff;
}

.svc-icon-lg svg {
  width: 22px;
  height: 22px;
}

.svc-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 9999px;
  background: var(--svc-accent-soft);
  color: var(--svc-accent);
  border: 1px solid var(--svc-accent);
  white-space: nowrap;
}

.svc-primary-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.svc-primary-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--svc-title);
}

.svc-primary-body {
  font-size: 15px;
  line-height: 1.6;
  color: #b7b7cf;
  max-width: 520px;
}

html[data-theme="light"] .svc-primary-body {
  color: var(--svc-body);
}

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

.svc-tag {
  font-size: 12px;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid var(--svc-border);
  color: var(--svc-body);
}

/* Secondary cards */
.svc-card-secondary {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
}

.svc-span-3 {
  grid-column: span 3;
}

.svc-span-2 {
  grid-column: span 2;
}

.svc-icon-sm {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.svc-icon-sm svg {
  width: 18px;
  height: 18px;
}

.svc-tint-indigo {
  background: var(--svc-accent-soft);
  color: var(--svc-accent);
  border: 1px solid var(--svc-accent);
}

.svc-tint-teal {
  background: var(--svc-teal-soft);
  color: var(--svc-teal);
  border: 1px solid var(--svc-teal);
}

@media (max-width: 1079px) {
  .svc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .svc-primary {
    grid-column: 1 / -1;
    grid-row: span 1;
  }
  .svc-span-3,
  .svc-span-2 {
    grid-column: span 1;
  }
}

@media (max-width: 659px) {
  .svc-grid {
    grid-template-columns: 1fr;
  }
  .svc-primary,
  .svc-span-3,
  .svc-span-2 {
    grid-column: auto;
    grid-row: auto;
  }
  .svc-heading {
    font-size: 36px;
  }
}

/* ---------- Process (bento) ---------- */
#process {
  --proc-card-bg: #0e0e16;
  --proc-border: rgba(255, 255, 255, 0.08);
  --proc-accent: #7c7bff;
  --proc-accent-soft: rgba(124, 123, 255, 0.14);
  --proc-teal: #7fd7cf;
  --proc-teal-soft: rgba(127, 215, 207, 0.14);
  --proc-title: #f3f4f8;
  --proc-body: #a3a3bb;
}

html[data-theme="light"] #process {
  --proc-card-bg: #ffffff;
  --proc-border: rgba(15, 23, 42, 0.1);
  --proc-accent: #6d6bf0;
  --proc-accent-soft: rgba(109, 107, 240, 0.12);
  --proc-teal: #0f9d92;
  --proc-teal-soft: rgba(15, 157, 146, 0.12);
  --proc-title: #12141c;
  --proc-body: #45495a;
}

.proc-glow {
  position: absolute;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  z-index: 0;
}

.proc-glow-indigo {
  top: -12rem;
  left: -6rem;
  background: rgba(124, 123, 255, 0.2);
}

.proc-glow-teal {
  top: -12rem;
  right: -6rem;
  background: rgba(127, 215, 207, 0.16);
}

.proc-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 44px;
}

.proc-heading {
  font-size: clamp(30px, 5vw, 50px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--proc-accent);
}

.proc-subline {
  font-size: 0.95rem;
  color: var(--proc-body);
  max-width: 430px;
}

.proc-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(178px, auto);
  gap: 14px;
}

.proc-card {
  position: relative;
  overflow: hidden;
  background: var(--proc-card-bg);
  border: 1px solid var(--proc-border);
  border-radius: 18px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.proc-card:hover {
  border-color: var(--proc-accent);
  transform: translateY(-3px);
}

.proc-finish:hover {
  border-color: var(--proc-teal);
}

.proc-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--proc-title);
}

.proc-body {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--proc-body);
}

/* Feature card: Understand (the only card allowed to be bigger) */
.proc-feature {
  grid-column: span 2;
  grid-row: span 2;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
  background: linear-gradient(160deg, var(--proc-accent-soft), var(--proc-card-bg) 60%);
  border-color: var(--proc-accent);
}

.proc-feature .proc-title {
  font-size: 24px;
  margin-bottom: 0.5rem;
}

.proc-top {
  display: flex;
}

.proc-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 9999px;
}

.proc-pill-start {
  background: var(--proc-accent-soft);
  color: var(--proc-accent);
  border: 1px solid var(--proc-accent);
}

/* Secondary cards: Plan, Build, Verify, Deliver — all four identical in size,
   only Deliver's color identity (teal) differs via .proc-finish below. */
.proc-secondary {
  grid-column: span 2;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
}

/* Deliver reuses .proc-secondary's layout/size — only recolors border + bg */
.proc-finish {
  background: linear-gradient(160deg, var(--proc-teal-soft), var(--proc-card-bg) 60%);
  border-color: var(--proc-teal);
}

.proc-step-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--proc-accent);
}

.proc-step-label-teal {
  color: var(--proc-teal);
}

.proc-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--proc-accent);
  flex-shrink: 0;
}

.proc-dot-teal {
  background: var(--proc-teal);
}

/* Ghost numerals */
.proc-ghost {
  position: absolute;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.proc-ghost-feature {
  right: -0.5rem;
  bottom: -1.25rem;
  font-size: 170px;
  color: var(--proc-accent);
  opacity: 0.1;
}

.proc-ghost-sm {
  top: 0.75rem;
  right: 1rem;
  font-size: 46px;
  color: var(--proc-title);
  opacity: 0.08;
}

.proc-ghost-teal {
  color: var(--proc-teal);
  opacity: 0.16;
}

@media (max-width: 1079px) {
  .proc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .proc-feature {
    grid-column: 1 / -1;
    grid-row: span 1;
  }
  .proc-secondary,
  .proc-finish {
    grid-column: span 1;
  }
}

@media (max-width: 639px) {
  .proc-grid {
    grid-template-columns: 1fr;
  }
  .proc-feature,
  .proc-secondary,
  .proc-finish {
    grid-column: auto;
    grid-row: auto;
  }
}

/* ---------- Why work with me ---------- */
#why {
  --why-card-bg: #0e0e16;
  --why-border: rgba(255, 255, 255, 0.08);
  --why-border-hover: #7c7bff;
  --why-accent: #7c7bff;
  --why-accent-soft: rgba(124, 123, 255, 0.14);
  --why-title: #f3f4f8;
  --why-body: #a3a3bb;
}

html[data-theme="light"] #why {
  --why-card-bg: #ffffff;
  --why-border: rgba(15, 23, 42, 0.1);
  --why-border-hover: #6d6bf0;
  --why-accent: #6d6bf0;
  --why-accent-soft: rgba(109, 107, 240, 0.12);
  --why-title: #12141c;
  --why-body: #45495a; /* solid grey, not alpha-white, for 4.5:1+ contrast on light bg */
}

/* Ambient glows bleeding off the section's top edge */
.why-glow {
  position: absolute;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  z-index: 0;
}

.why-glow-indigo {
  top: -12rem;
  left: -6rem;
  background: rgba(124, 123, 255, 0.22);
}

.why-glow-teal {
  top: -12rem;
  right: -6rem;
  background: rgba(45, 212, 191, 0.16);
}

.why-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 44px;
}

.why-subline {
  font-size: 0.95rem;
  color: var(--why-body);
  max-width: 420px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(210px, auto);
  gap: 16px;
  align-items: stretch;
}

.why-card {
  background: var(--why-card-bg);
  border: 1px solid var(--why-border);
  border-radius: 18px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.why-card:hover {
  border-color: var(--why-border-hover);
  transform: translateY(-2px);
}

.why-icon-tile-sm {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--why-accent-soft);
  color: var(--why-accent);
  flex-shrink: 0;
}

.why-icon-tile-sm svg {
  width: 18px;
  height: 18px;
}

.why-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--why-title);
}

.why-body {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--why-body);
}

/* Highlighted feature card — spans 2 rows in column 1 */
.why-card-primary {
  grid-column: 1;
  grid-row: span 2;
  padding: 30px;
  background: linear-gradient(160deg, var(--why-accent-soft), var(--why-card-bg) 60%);
  border-color: var(--why-accent);
  justify-content: space-between;
}

.why-card-primary .why-title {
  font-size: 26px;
}

.why-card-primary .why-body {
  font-size: 15px;
  color: #b5b5cc;
}

html[data-theme="light"] .why-card-primary .why-body {
  color: var(--why-body);
}

.why-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.why-icon-tile {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--why-accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(124, 123, 255, 0.35);
  flex-shrink: 0;
}

.why-icon-tile svg {
  width: 22px;
  height: 22px;
}

.why-pill {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 9999px;
  background: var(--why-accent-soft);
  color: var(--why-accent);
  border: 1px solid var(--why-accent);
  white-space: nowrap;
}

.why-card-bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 899px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-card-primary {
    grid-column: 1 / -1;
    grid-row: span 1;
  }
}

@media (max-width: 619px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
  .why-card-primary {
    grid-column: auto;
    grid-row: auto;
  }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* stagger helper: apply along with .reveal, JS sets transition-delay */

/* ---------- Section heading eyebrow ---------- */
.eyebrow {
  letter-spacing: 0.18em;
  /* text-transform: uppercase; */
  font-size: 0.75rem;
  color: var(--accent-soft);
}

/* ---------- Scrollbar (subtle, dark) ---------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }

/* ---------- Mobile nav ---------- */
#mobile-menu {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

#mobile-menu.hidden-menu {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

/* ---------- Focus states (accessibility) ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 2px;
  border-radius: 0.5rem;
}
