/* ==========================================================================
   ABDUL HADI RABBI — Premium Portfolio
   Design System: Dark theme · Electric Blue + Soft Purple · Lexend / Lato
   ========================================================================== */

/* ------------------------------ Design Tokens ----------------------------- */
:root {
  /* Core palette */
  --bg: #060911;
  --bg-elev: #0b1120;
  --bg-elev-2: #0f172a;
  --surface: rgba(255, 255, 255, 0.025);
  --surface-2:rgb(15 23 42 / 13%);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* Text */
  --text: #f1f5f9;
  --text-soft: #c7d0de;
  --text-muted: #8b96a8;
  --text-faint: #6b7689;

  /* Accents */
  --blue: #3b82f6;
  --blue-bright: #4f8cff;
  --blue-glow: rgba(79, 140, 255, 0.45);
  --purple: #8b5cf6;
  --purple-bright: #a78bfa;
  --purple-glow: rgba(139, 92, 246, 0.4);

  --gradient: linear-gradient(120deg, var(--blue-bright) 0%, var(--purple) 100%);
  --gradient-soft: linear-gradient(120deg, rgba(79,140,255,0.14), rgba(139,92,246,0.14));

  /* Typography */
  --font-title: "Lexend", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Spacing & rhythm */
  --container: 1200px;
  --container-wide: 1340px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --section-y: 50px;

  /* Effects */
  --shadow-sm: 0 4px 18px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);
  --shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.55);
  --ring: 0 0 0 1px var(--border);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Themeable surfaces */
  --header-bg: rgba(6, 9, 17, 0.82);
  --nav-bg: rgba(8, 12, 22, 0.97);
}

/* ----------------------------- Light theme -------------------------------- */
:root[data-theme="light"] {
  --bg: #f5f8fd;
  --bg-elev: #ffffff;
  --bg-elev-2: #eef2f9;
  --surface: rgba(15, 23, 42, 0.022);
  --surface-2: rgba(15, 23, 42, 0.045);
  --border: rgba(15, 23, 42, 0.10);
  --border-strong: rgba(15, 23, 42, 0.18);

  --text: #0b1220;
  --text-soft: #33415a;
  --text-muted: #5a6577;
  --text-faint: #8b95a7;

  --blue: #2563eb;
  --blue-bright: #2f6fe6;
  --blue-glow: rgba(47, 111, 230, 0.35);
  --purple: #7c3aed;
  --purple-bright: #7c3aed;
  --gradient-soft: linear-gradient(120deg, rgba(47, 111, 230, 0.12), rgba(124, 58, 237, 0.12));

  --shadow-sm: 0 6px 20px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.14);
  --shadow-hover: 0 20px 50px rgba(15, 23, 42, 0.15);

  --header-bg: rgba(255, 255, 255, 1);
  --nav-bg: rgba(255, 255, 255, 0.98);
}
:root[data-theme="light"] body { color: var(--text-soft); }
:root[data-theme="light"] .hero-grid-bg { opacity: 0.7; }

/* --------------------------------- Reset ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-soft);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 3px; border-radius: 4px; }

/* ------------------------------ Typography -------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-title);
  color: var(--text);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
}
h1 { font-size: 76px; }
h1.revealxc {
   font-size: 55px;
   padding-top: 25px;}
h1.revealzx { font-size: 115px;}
h2 { font-size: 48px; }
h2#be-h { max-width: 545px; }
h2#wp-h { max-width: 430px; }
h2#mg-h { max-width: 477px; }
h2#pf-h { max-width: 460px; }
h2#seo-h { max-width: 450px; }
h2#why-hzx { max-width: 600px; margin-left: auto; margin-right: auto; line-height: 60px; }
h3 { font-size: 25px; }
h4 { font-size: 18.88px; }
p { color: var(--text-soft); }
p.prosexq { color: var(--text-soft); max-width: 485px!important; margin-top: 15px; }
.uppercase { text-transform: uppercase; letter-spacing: 0.04em; }
p.reveaxcl { max-width: 600px; margin-left: auto; margin-right: auto; }
p.rexvveal { max-width: 430px; margin-left: auto!important; margin-right: auto!important; }
p.lead.reveal {font-size: 45px !important; line-height: 47px !important; font-weight: 600 !important; font-family: 'Lato' !important;}
p.revealmn { max-width: 500px; margin: auto; margin-top: 15px; }
p.zxnp { font-size: 20px!important;  max-width: 1000px!important; margin-top: 15px!important; }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ------------------------------- Layout ----------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 40px; }
.container-wide { max-width: var(--container-wide); }
.section { padding-block: var(--section-y); position: relative; }
.section-tight { padding-block: 40px; }

.grid { display: grid; gap: 40px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ------------------------------ Eyebrow / heads --------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8.8px;
  font-family: var(--font-title);
  font-size: 12.48px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--blue-bright);
  padding: 6.4px 14.4px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  margin-bottom: 15px ! important;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gradient); }

.section-head { max-width: 720px; margin-bottom: 64px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: 17.6px; }
.section-head p { margin-top: 17.6px; font-size: 19.92px; color: var(--text-muted); }
.revealasd { margin-top: 17.6px; font-size: 19.92px; color: var(--text-muted); max-width: 500px; }
.revealqwxc { margin-top: 17.6px; font-size: 19.92px; color: var(--text-muted); margin-right: auto; margin-left: auto; max-width: 620px; }

/* -------------------------------- Buttons --------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9.6px;
  font-family: var(--font-title); font-weight: 600; font-size: 15.68px;
  padding: 15.2px 27.2px; border-radius: var(--radius-pill);
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 10px 30px -8px var(--blue-glow); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -10px var(--blue-glow); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--blue-bright); background: var(--surface-2); }
.btn-block { width: 100%; }
.btn-lg { padding: 17.6px 33.6px; font-size: 16.8px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 7.2px;
  font-family: var(--font-title); font-weight: 600; color: var(--blue-bright);
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}
.link-arrow:hover { gap: 12px; color: var(--purple-bright); }
.link-arrow svg { width: 17px; height: 17px; }

/* --------------------------------- Cards ---------------------------------- */
.card {
  position: relative;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 33.6px;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  overflow: hidden;
}
.card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(79,140,255,0.10), transparent 60%);
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.card:hover::after { opacity: 1; }

.card-icon {
  width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 14px; background: var(--gradient-soft); border: 1px solid var(--border);
  color: var(--blue-bright); margin-bottom: 20px;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 11.2px; }
.card p { color: var(--text-muted); font-size: 15.5px; }
p.mutedx { font-size: 17px; }
/* --------------------------------- Header --------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
/* Solid header — theme-aware: WHITE in light mode, DARK in dark mode.
   Nav text already uses theme colors, so it stays readable in both. */
.site-header.scrolled {
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--border);
  box-shadow: 0 6px 24px -18px rgba(0, 0, 0, 0.5);
}
.nav { display: flex; align-items: center; gap: 8px; height: 76px; }
.brand { display: flex; align-items: center; gap: 11.2px; font-family: var(--font-title); font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--gradient); color: #fff; font-size: 16px; box-shadow: 0 6px 18px -6px var(--blue-glow);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text small { font-family: var(--font-body); font-size: 11.2px; color: var(--text-muted); font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 5.6px; margin-left: auto; }
.nav-links a {font-family: var(--font-title); font-weight: 500; font-size: 15.36px; color: var(--text-soft); padding: 10.8px 16px; border-radius: var(--radius-pill); transition: color 0.25s, background 0.25s;}
.nav-links a:hover { color: #001dff; }
.nav-links a.active { color: #5467ff; background: rgb(163 171 215 / 14%); }
.nav-cta { margin-left: 12px; }
/* "Hire Me" CTA — pill with a circular arrow badge (Screenshot_11 style),
   using the site's own gradient. Arrow slides forward on hover. */
.nav-cta-btn { padding: 6px 7px 6px 22px; gap: 12px; overflow: hidden; position: relative; }
.nav-cta-btn .cta-arrow {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: rgba(255, 255, 255, 0.22);
  transition: transform 0.32s var(--ease), background 0.32s var(--ease);
}
.nav-cta-btn .cta-arrow svg { width: 16px; height: 16px; }
.nav-cta-btn:hover .cta-arrow { transform: translateX(5px); background: rgba(255, 255, 255, 0.34); }
.nav-cta-btn:hover { box-shadow: 0 16px 36px -10px var(--blue-glow); }
@media (max-width: 920px) {
  .nav-cta-btn { justify-content: center; padding: 12px 16px; }
}
.btn-primary { color: #ffffff!important; background: linear-gradient(135deg, #4163e8 0, #7141eb 100%); }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s; }
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--nav-bg); backdrop-filter: blur(16px); padding: 20px 40px 32px;
    border-bottom: 1px solid var(--border); transform: translateY(-120%); transition: transform 0.4s var(--ease); max-height: calc(100vh - 76px); overflow-y: auto;
  }
  body.nav-open .nav-links { transform: translateY(0); }
  .nav-links a { padding: 13.6px 16px; font-size: 16.8px; }
  .nav-cta { margin: 8px 0 0; }
  .nav-cta .btn { width: 100%; }
}

/* --------------------------------- Hero ----------------------------------- */
.hero { position: relative; padding-top: 176px; padding-bottom: var(--section-y); overflow: hidden; }
.hero-glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 18% 8%, rgba(79,140,255,0.20), transparent 60%),
    radial-gradient(48% 45% at 88% 18%, rgba(139,92,246,0.18), transparent 60%);
}
.hero-grid-bg {
  position: absolute; inset: 0; z-index: -1; opacity: 0.4;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.hero-layout { display: grid; grid-template-columns: 1.25fr 0.9fr; gap: 64px; align-items: center; }
@media (max-width: 940px) { .hero-layout { grid-template-columns: 1fr; } }

.hero h1 { text-transform: uppercase; letter-spacing: -0.01em; }
.hero .lead { font-family: var(--font-title); font-weight: 500; font-size: 23.2px; color: var(--text); margin-top: 22.4px; }
.hero .lead span { color: var(--blue-bright); font-size: 29px !important; line-height: 43px !important; }
.hero .desc { font-size: 21px; color: var(--text-muted); margin-top: 19.2px; max-width: 42ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14.4px; margin-top: 35.2px; }
.hero-roles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 38.4px; }
.chip {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-title); font-size: 14px; font-weight: 600; color: var(--text);
  padding: 7px 17px 7px 7px; border-radius: var(--radius-pill);
  background: var(--bg-elev); border: 1px solid var(--border);
  box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.chip:hover { transform: translateY(-3px); border-color: var(--blue-bright); box-shadow: 0 14px 26px -12px var(--blue-glow); }
.chip .chip-ic {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: var(--gradient-soft); color: var(--blue-bright);
}
.chip .chip-ic svg { width: 16px; height: 16px; }

/* Hero visual card */
.hero-card {
  position: relative; border-radius: var(--radius-lg); padding: 25.6px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
}
.hero-card-glow { position: absolute; inset: -1px; border-radius: inherit; background: var(--gradient); opacity: 0.18; filter: blur(28px); z-index: -1; }
.avatar {
  width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-title);
  font-weight: 700; font-size: 32px; color: #fff; background: var(--gradient); margin-bottom: 17.6px; box-shadow: 0 12px 30px -10px var(--blue-glow);
}
.hero-card h3 { font-size: 21.6px; }
.hero-card .role { color: var(--blue-bright); font-family: var(--font-title); font-weight: 500; font-size: 15.2px; margin-top: 3.2px; }
.hero-card-meta { margin-top: 22.4px; display: grid; gap: 14.4px; }
.hero-card-meta li { display: flex; align-items: center; gap: 11.2px; font-size: 15.2px; color: var(--text-soft); }
.hero-card-meta svg { width: 18px; height: 18px; color: var(--blue-bright); flex-shrink: 0; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,0.18); }

/* --------------------------------- Stats ---------------------------------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--bg-elev); padding: 35.2px; }
.stat .num { font-family: var(--font-title); font-weight: 700; font-size: 44.8px; }
.stat .label { color: var(--text-muted); font-size: 15.2px; margin-top: 6.4px; }

/* ------------------------------ Marquee / logos --------------------------- */
.tech-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.tech-item { background: var(--bg-elev); padding: 22.4px 16px; display: flex; flex-direction: column; align-items: center; gap: 9.6px; transition: background 0.3s; }
.tech-item:hover { background: var(--bg-elev-2); }
.tech-item svg { width: 30px; height: 30px; color: var(--text-soft); }
.tech-item span { font-family: var(--font-title); font-size: 13.12px; color: var(--text-muted); }

/* ------------------------------ Feature list ------------------------------ */
.feature { display: flex; gap: 16px; }
.feature .tick { flex-shrink: 0; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--gradient-soft); border: 1px solid var(--border); color: var(--blue-bright); }
.feature .tick svg { width: 16px; height: 16px; }
.feature h4 { margin-bottom: 4.8px; }
.feature p { color: var(--text-muted); font-size: 15.68px; }

/* ------------------------------ Process steps ----------------------------- */
.steps { display: grid; gap: 20px; counter-reset: step; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.step-num { counter-increment: step; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-family: var(--font-title); font-weight: 700; color: #fff; background: var(--gradient); }
.step-num::before { content: counter(step, decimal-leading-zero); }
.step h4 { margin-bottom: 5.6px; }
.step p { color: var(--text-muted); font-size: 15.68px; }

/* ------------------------------ Projects ---------------------------------- */
.project-card { display: flex; flex-direction: column; padding: 0; }
.project-thumb { aspect-ratio: 16 / 10; position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.project-thumb-art { position: absolute; inset: 0; display: grid; place-items: center; }
.project-thumb-art svg { width: 64px; height: 64px; color: rgba(255,255,255,0.85); }
.project-body { padding: 30.4px; display: flex; flex-direction: column; gap: 12.8px; flex: 1; }
.project-tags { display: flex; flex-wrap: wrap; gap: 6.4px; }
.tag { font-family: var(--font-title); font-size: 11.84px; font-weight: 500; color: var(--text-soft); padding: 4.8px 11.2px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--border); }
.project-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 6.4px; }

/* Case study */
.case { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-elev); }
.case-head { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 0; }
@media (max-width: 860px) { .case-head { grid-template-columns: 1fr; } }
.case-art { min-height: 240px; position: relative; display: grid; place-items: center; padding: 32px; }
.case-art svg { width: 80px; height: 80px; color: rgba(255,255,255,0.9); }
.case-intro { padding: 38.4px; }
.case-intro .tag { margin-bottom: 16px; }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--border); }
@media (max-width: 760px) { .case-grid { grid-template-columns: 1fr; } }
.case-col { padding: 32px; border-right: 1px solid var(--border); }
.case-col:last-child { border-right: none; }
.case-col h4 { color: var(--blue-bright); font-size: 13.12px; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 14.4px; }
.case-col ul { display: grid; gap: 10.4px; }
.case-col li { position: relative; padding-left: 22.4px; color: var(--text-muted); font-size: 15.52px; }
.case-col li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 7px; height: 7px; border-radius: 50%; background: var(--gradient); }
.case-results { display: flex; flex-wrap: wrap; gap: 24px; }
.case-results .num { font-family: var(--font-title); font-weight: 700; font-size: 28.8px; }
.case-results .label { color: var(--text-muted); font-size: 13.6px; }

/* ------------------------------- Accordion -------------------------------- */
/* FAQ accordion — clean corporate bars (Kadence-style): soft drop shadow,
   title left, chevron right, one open at a time. */
.accordion { display: grid; gap: 12px; }
.acc-item {
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  background: var(--bg-elev);
  box-shadow: 0 3px 4px -3px rgb(0 0 0 / 25%);
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
:root[data-theme="dark"] .acc-item { box-shadow: 0 2px 8px -2px rgb(0 0 0 / 55%); }
.acc-item:hover { border-color: var(--border-strong); }
.acc-item.open { border-color: color-mix(in srgb, var(--blue-bright) 42%, var(--border)); }
.acc-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left;
  padding: 20px 22px; background: transparent; color: var(--text);
  font-family: var(--font-title); font-weight: 600; font-size: 16.5px; line-height: 1.4;
  transition: color 0.25s var(--ease);
}
.acc-trigger:hover { color: var(--blue-bright); }
.acc-item.open .acc-trigger { color: var(--blue-bright); }
/* chevron toggle on the right */
.acc-trigger .icon {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gradient-soft); color: var(--blue-bright);
  transition: transform 0.4s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}
.acc-trigger .icon::before {
  content: ""; width: 8px; height: 8px; margin-top: -3px;
  border-right: 2.2px solid currentColor; border-bottom: 2.2px solid currentColor; transform: rotate(45deg);
}
.acc-item.open .acc-trigger .icon { background: var(--gradient); color: #fff; transform: rotate(-180deg); }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease); }
.acc-panel-inner { padding: 0 22px 22px; color: var(--text-muted); font-size: 16px; line-height: 1.75; }
/* Soft shadow divider between the open question (aria-expanded) and its panel */
.acc-trigger[aria-expanded="true"] { position: relative; z-index: 1; box-shadow: 0 3px 6px -14px rgb(0 0 0 / 22%); }
.acc-item.open .acc-panel { box-shadow: inset 0 8px 9px -9px rgb(0 0 0 / 20%); }
:root[data-theme="dark"] .acc-trigger[aria-expanded="true"] { box-shadow: 0 6px 12px -7px rgb(0 0 0 / 60%); }
:root[data-theme="dark"] .acc-item.open .acc-panel { box-shadow: inset 0 8px 10px -9px rgb(0 0 0 / 55%); }

/* ------------------------------ Testimonials ------------------------------ */
.quote { display: flex; flex-direction: column; gap: 22.4px; }
.quote-mark { font-family: var(--font-title); font-size: 48px; line-height: 0.6; color: var(--blue-bright); opacity: 0.5; }
.quote p { color: var(--text-soft); font-size: 16.8px; }
.quote-author { display: flex; align-items: center; gap: 13.6px; margin-top: auto; }
.quote-avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-title); font-weight: 700; color: #fff; background: var(--gradient); object-fit: cover; overflow: hidden; flex-shrink: 0; }
.quote-author strong { color: var(--text); font-family: var(--font-title); display: block; font-size: 15.68px; }
.quote-author span { color: var(--text-muted); font-size: 13.6px; }

/* --------------------------------- CTA ------------------------------------ */
.cta-band { position: relative; border-radius: var(--radius-lg); padding: 72px; text-align: center; overflow: hidden; border: 1px solid var(--border); background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)); }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 120% at 50% 0%, rgba(79,140,255,0.22), transparent 60%), radial-gradient(50% 120% at 80% 100%, rgba(139,92,246,0.18), transparent 60%); }
.cta-band h2 { max-width: 30ch; margin-inline: auto; }
.cta-band p { max-width: 58ch; margin: 17.6px auto 0; color: var(--text-muted); font-size: 17.6px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14.4px; justify-content: center; margin-top: 32px; }

/* ------------------------------- Page hero -------------------------------- */
/* Inner-page hero — dark banner with dotted texture + curved bottom edge
   (Screenshot_5 style). The Home hero (.hero) is unaffected. */
.page-hero {
  position: relative; padding-top: 168px; padding-bottom: 96px; overflow: hidden;
  background: linear-gradient(180deg, #0c1424 0%, #070b15 100%);
  border-bottom-left-radius: 50% 48px;
  border-bottom-right-radius: 50% 48px;
}
.page-hero::before { /* subtle dot texture */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1.2px, transparent 1.2px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(125% 85% at 50% 0%, #000 40%, transparent 82%);
  mask-image: radial-gradient(125% 85% at 50% 0%, #000 40%, transparent 82%);
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; }
.page-hero .desc { font-size: 18.88px; color: rgba(255, 255, 255, 0.72); margin-top: 19.2px; max-width: 75ch; }
.page-hero .desc.revealvn { max-width: 683px; }
.page-hero .desc.revealcp { max-width: 600px; }
.page-hero .lead-p { color: rgba(255, 255, 255, 0.75); }
.page-hero .eyebrow { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.16); color: #bcd3ff; }
.page-hero .blog-meta { color: rgba(255, 255, 255, 0.6); }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13.6px; color: rgba(255, 255, 255, 0.55); margin-bottom: 25.6px; }
.page-hero .breadcrumb a { color: rgba(255, 255, 255, 0.85); }
.breadcrumb a:hover { color: var(--blue-bright); }
.breadcrumb span { color: rgba(255, 255, 255, 0.4); }

/* ------------------------------ Forms ------------------------------------- */
.form { display: grid; gap: 18.4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18.4px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--font-title); font-weight: 500; font-size: 14.4px; color: var(--text-soft); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 16px; color: var(--text);
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: 12px; padding: 13.6px 16px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-bright); box-shadow: 0 0 0 3px rgba(79,140,255,0.15); }
.form-note { font-size: 14.08px; color: var(--text-muted); }
.form-status { display: none; padding: 14.4px 17.6px; border-radius: 12px; font-size: 15.2px; }
.form-status.show { display: block; }
.form-status.success { background: rgba(52,211,153,0.12); border: 1px solid rgba(52,211,153,0.3); color: #6ee7b7; }
.form-status.error { background: rgba(248,113,113,0.12); border: 1px solid rgba(248,113,113,0.32); color: #fca5a5; }

/* contact info list */
.contact-list { display: grid; gap: 17.6px; }
.contact-list a, .contact-list div { display: flex; align-items: center; gap: 16px; padding: 17.6px 19.2px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: border-color 0.3s, transform 0.3s; }
.contact-list a:hover { border-color: var(--blue-bright); transform: translateX(4px); }
.contact-ico { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--gradient-soft); border: 1px solid var(--border); color: var(--blue-bright); }
.contact-ico svg { width: 20px; height: 20px; }
.contact-list small { display: block; color: var(--text-muted); font-size: 12.8px; text-transform: uppercase; letter-spacing: 0.08em; }
.contact-list strong { color: var(--text); font-family: var(--font-title); font-weight: 500; }

.socials { display: flex; flex-wrap: wrap; gap: 11.2px; }
.social-btn { display: inline-flex; align-items: center; gap: 9.6px; padding: 11.2px 17.6px; border-radius: var(--radius-pill); border: 1px solid var(--border); background: var(--surface); color: var(--text-soft); font-family: var(--font-title); font-weight: 500; font-size: 14.4px; transition: border-color 0.3s, color 0.3s, transform 0.3s; }
.social-btn:hover { border-color: var(--blue-bright); color: var(--text); transform: translateY(-2px); }
.social-btn svg { width: 18px; height: 18px; }

/* ------------------------------ Blog -------------------------------------- */
.blog-card { display: flex; flex-direction: column; padding: 0; }
.blog-thumb { aspect-ratio: 16 / 9; position: relative; display: grid; place-items: center; border-bottom: 1px solid var(--border); }
.blog-thumb .cat { position: absolute; top: 16px; left: 16px; }
.blog-thumb svg { width: 48px; height: 48px; color: rgba(255,255,255,0.85); }
.blog-body { padding: 28.8px; display: flex; flex-direction: column; gap: 11.2px; flex: 1; }
.blog-meta { display: flex; gap: 14.4px; font-size: 13.12px; color: var(--text-muted); }
.cat { font-family: var(--font-title); font-size: 11.84px; font-weight: 600; color: #fff; padding: 4.8px 11.2px; border-radius: var(--radius-pill); background: var(--gradient); text-transform: uppercase; letter-spacing: 0.05em; }
.cat.ghost { background: var(--surface); color: var(--text-soft); border: 1px solid var(--border); }
.blog-body h3 { font-size: 19.2px; }
.blog-body h3 a:hover { color: var(--blue-bright); }

.cat-pills { display: flex; flex-wrap: wrap; gap: 9.6px; }
.cat-pill { font-family: var(--font-title); font-weight: 500; font-size: 14.4px; color: var(--text-soft); padding: 9.6px 19.2px; border-radius: var(--radius-pill); border: 1px solid var(--border); background: var(--surface); transition: border-color 0.3s, color 0.3s, background 0.3s; }
.cat-pill:hover, .cat-pill.active { border-color: var(--blue-bright); color: var(--text); background: var(--surface-2); }

/* Article (blog post template) */
.article { max-width: 760px; margin-inline: auto; }
.article > * + * { margin-top: 22.4px; }
.article h2 { font-size: 33.6px; margin-top: 41.6px; }
.article h3 { margin-top: 32px; }
.article p, .article li { color: var(--text-soft); font-size: 17.6px; line-height: 1.8; }
.article ul, .article ol { display: grid; gap: 11.2px; padding-left: 22.4px; }
.article ul li { list-style: disc; }
.article ol li { list-style: decimal; }
.article blockquote { border-left: 3px solid var(--blue-bright); padding: 8px 0 8px 22.4px; color: var(--text); font-style: italic; font-size: 18.88px; }
.article a { color: var(--blue-bright); text-decoration: underline; text-underline-offset: 3px; }
.article code { font-family: ui-monospace, "SF Mono", Menlo, monospace; background: var(--bg-elev-2); padding: 0.15em 0.45em; border-radius: 6px; font-size: 0.9em; color: var(--purple-bright); }

/* --------------------------------- Footer --------------------------------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-elev); padding-block: 72px 32px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; }
@media (max-width: 880px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand p { color: var(--text-soft); margin-top: 16px; max-width: 42ch; font-size: 16.5px; line-height: 1.7; }
.footer-col h4 { font-family: var(--font-title); font-size: 13.12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 17.6px; }
.footer-col ul { display: grid; gap: 11.2px; }
/* Footer menu links (Quick Links · Services · Get in touch) — Kadence-style:
   a ➤ arrow prefix + an underline that wipes in from the left on hover.
   Scoped to .footer-col so it never affects the rest of the site. */
.footer-col a { display: inline-flex; align-items: center; position: relative; color: var(--text-soft); font-size: 15px; text-decoration: none !important; margin-bottom: 5px; transition: color 0.25s; }
.footer-col a::before { content: "\27A4"; font-family: Arial, sans-serif; font-size: 11px; margin-right: 8px; color: inherit; line-height: 1; }
.footer-col a::after { content: ""; position: absolute; bottom: 0; left: 19px; width: calc(100% - 19px); height: 1px; background-color: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease; }
.footer-col a:hover, .footer-col a:focus-visible { color: var(--blue-bright); }
.footer-col a:hover::after, .footer-col a:focus-visible::after { transform: scaleX(1); }
.footer-brand .footer-socials { margin-top: 11px; }
.footer-tagline { color: var(--text-muted); font-size: 14px; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; padding-top: 25.6px; border-top: 1px solid var(--border); }
.footer-bottom p { color: var(--text-muted); font-size: 14.4px; }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; }
.footer-legal a { color: var(--text-muted); font-size: 14.4px; line-height: 1; padding: 2px 14px; border-right: 1px solid var(--border); transition: color 0.2s ease; }
.footer-legal a:first-child { padding-left: 0; }
.footer-legal a:last-child { border-right: none; padding-right: 0; }
.footer-legal a:hover, .footer-legal a:focus-visible { color: var(--blue-bright); text-decoration: underline; text-underline-offset: 3px; }
.footer-legal a.active { color: var(--blue-bright); }
.footer-socials { display: flex; gap: 9.6px; }
.footer-socials a { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; border: 1px solid var(--border); background: var(--surface); color: var(--text-soft); transition: border-color 0.3s, color 0.3s, transform 0.3s; }
.footer-socials a:hover { border-color: var(--blue-bright); color: var(--text); transform: translateY(-3px); }
.footer-socials svg { width: 18px; height: 18px; }

/* ------------------------------ Reveal animation -------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

/* ------------------------------ Utilities --------------------------------- */
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; font-size: 17.5px !important; } .mt-2 { margin-top: 32px; } .mt-3 { margin-top: 48px; }
h2.mt-19 { max-width: 1050px; }
.mb-0 { margin-bottom: 0; }
.divider { height: 1px; background: var(--border); border: none; margin-block: var(--section-y); }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--blue); color: #fff; padding: 11.2px 19.2px; border-radius: 0 0 10px 0; font-family: var(--font-title); }
.skip-link:focus { left: 0; }
.muted { color: var(--text-muted); }
.lead-p { font-size: 19.2px; color: var(--text-soft); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  /* On mobile, always show the text/eyebrow column first and the steps widget after it */
  .split > .steps { order: 2; }
}
.prose > p { margin-top: 17.6px; font-size: 17.6px; }
.list-check { display: grid; gap: 14.4px; margin-top: 24px; }
.list-check li { display: flex; gap: 12.8px; align-items: flex-start; color: var(--text-soft); }
.list-check svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--blue-bright); margin-top: 2px; }

/* ============================ THEME TOGGLE ================================= */
.theme-toggle {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; position: relative;
  background: var(--surface); border: 1px solid var(--border); border-color: var(--blue-bright); color: var(--text);color: var(--text-soft);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease);
}
button#theme-toggle { border-color: #a0a1d5; }
.theme-toggle:hover { border-color: var(--blue-bright); color: var(--text); }
.theme-toggle svg { width: 20px; height: 20px; position: absolute; transition: opacity 0.3s var(--ease), transform 0.4s var(--ease); }
.theme-toggle .icon-sun { opacity: 0; transform: rotate(-90deg) scale(0.5); }
.theme-toggle .icon-moon { opacity: 1; transform: rotate(0) scale(1); }
:root[data-theme="light"] .theme-toggle .icon-sun { opacity: 1; transform: rotate(0) scale(1); }
:root[data-theme="light"] .theme-toggle .icon-moon { opacity: 0; transform: rotate(90deg) scale(0.5); }
/* On mobile, keep the same compact icon button as desktop (sun / moon),
   sitting on the bar next to the hamburger (pushed to the right). */
@media (max-width: 920px) {
  .theme-toggle { width: 44px; height: 44px; margin-left: auto; }
}

/* ======================= HERO VISUAL (photo + floats) ===================== */
.hero-visual { position: relative; min-height: 480px; }
/* Rotating dashed frame around the hero photo */
.hero-ring {
  position: absolute; inset: -20px; z-index: 0; pointer-events: none;
  border: 1.5px dashed var(--blue-bright); opacity: 0.4; border-radius: 44px;
  animation: spin 38s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .hero-ring { animation: none; } }
@media (max-width: 480px) { .hero-ring { inset: -12px; border-radius: 32px; } }
.hero-photo {
  position: relative; z-index: 1; border-radius: 28px; overflow: hidden; aspect-ratio: 5 / 6;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
}
.hero-photo::before {
  content: ""; position: absolute; inset: -2px; z-index: 0; border-radius: inherit;
  background: radial-gradient(70% 60% at 50% 10%, var(--blue-glow), transparent 60%),
              radial-gradient(60% 50% at 90% 90%, var(--purple-glow), transparent 60%);
}
.hero-photo img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.float-card {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 11.2px;
  padding: 11.2px 15.2px; border-radius: 16px; backdrop-filter: blur(10px);
  background: var(--bg-elev);
  background: color-mix(in srgb, var(--bg-elev) 86%, transparent);
  border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg);
  animation: float 5s ease-in-out infinite;
}
.float-card .fc-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: var(--gradient); flex-shrink: 0; }
.float-card .fc-icon svg { width: 19px; height: 19px; }
.float-card strong { display: block; font-family: var(--font-title); font-size: 14.72px; color: var(--text); line-height: 1.2; }
.float-card span { font-size: 12.16px; color: var(--text-muted); }
.fc-1 { top: 12%; right: -6%; animation-delay: 0s; }
.fc-2 { bottom: 20%; right: -8%; animation-delay: 1.1s; }
.fc-3 { bottom: 6%; left: -5%; animation-delay: 2.2s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (prefers-reduced-motion: reduce) { .float-card { animation: none; } }
@media (max-width: 1180px) { .fc-1 { right: 2%; } .fc-2 { right: 0; } .fc-3 { left: 0; } }
@media (max-width: 480px) {
  .hero-visual { min-height: 0; }
  .float-card { animation: none; }
  .fc-1 { top: 6%; right: 2%; } .fc-2 { bottom: 14%; right: 2%; } .fc-3 { bottom: 2%; left: 2%; }
  .float-card span { display: none; }
}
/* ============================ ABOUT PHOTO ================================= */
.about-photo-wrap { position: relative; width: min(430px, 100%); margin-inline: auto; aspect-ratio: 1; display: grid; place-items: center; }
/* Outer rotating dashed ring */
.about-photo-wrap .arc {
  position: absolute; inset: 0; z-index: 0; border-radius: 50%;
  border: 2px dashed var(--blue-bright); opacity: 0.45;
  animation: spin 32s linear infinite; pointer-events: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .about-photo-wrap .arc { animation: none; } }
.about-photo {
  position: relative; z-index: 1; width: 82%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  border: 5px solid var(--bg-elev); box-shadow: 0 0 0 1px var(--border), var(--shadow-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}
.about-photo::before { content: ""; position: absolute; inset: -3px; z-index: 0; border-radius: 50%; background: var(--gradient); opacity: 0.5; filter: blur(22px); }
.about-photo img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.about-badge {
  position: absolute; bottom: 6%; left: 50%; transform: translateX(-50%); z-index: 3; white-space: nowrap;
  display: flex; align-items: center; gap: 9.6px; padding: 9.6px 16px; border-radius: var(--radius-pill);
  background: var(--bg-elev);
  background: color-mix(in srgb, var(--bg-elev) 90%, transparent); backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); font-family: var(--font-title); font-weight: 600; font-size: 14.4px; color: var(--text);
}
.about-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,0.18); }

/* ============= SERVICE / SKILL CARDS — clean "widget" hover ============== */
.card .svc-link { margin-top: 19.2px; }
/* Smooth lift on hover (white = requested soft shadow, dark = deeper so the
   lift stays visible), PLUS a gradient accent line that slides across the top
   and an icon that fills + lifts. */
.svc-card {
  border-radius: 20px;
  transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1),
              box-shadow 0.3s cubic-bezier(0.25, 0.1, 0.25, 1),
              border-color 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}
/* Top accent line — hidden by default, slides in from the left on hover */
.svc-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 2;
  background: var(--gradient); transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.svc-card .card-icon {
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
              border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.svc-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 30px -10px rgb(0 0 0 / 25%);
}
.svc-card:hover::before { transform: scaleX(1); }
.svc-card:hover .card-icon {
  background: var(--gradient); color: #fff; border-color: transparent;
  transform: translateY(-3px) scale(1.06);
}
/* Dark theme — deeper shadow so the floating widget reads on dark backgrounds */
:root[data-theme="dark"] .svc-card:hover {
  box-shadow: 0 22px 36px -12px rgb(0 0 0 / 60%);
}
/* White theme — exactly the shadow requested */
:root[data-theme="light"] .svc-card:hover {
  box-shadow: 0 20px 30px -10px rgb(0 0 0 / 25%);
}

/* ===== PROJECT / CASE / BLOG CARDS — clean smooth lift (no line/icon) ===== */
.lift-card {
  border-radius: 20px;
  transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1),
              box-shadow 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.lift-card::after { display: none; } /* drop the pointer-follow glow — keep it clean & smooth */
.lift-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 30px -10px rgb(0 0 0 / 25%);
}
:root[data-theme="dark"] .lift-card:hover { box-shadow: 0 22px 36px -12px rgb(0 0 0 / 60%); }
:root[data-theme="light"] .lift-card:hover { box-shadow: 0 20px 30px -10px rgb(0 0 0 / 25%); }

/* ===== SERVICE PROCESS STEPS — same hover as the Contact widgets ========== */
.step { transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease); }
.step:hover { border-color: var(--blue-bright); transform: translateX(4px); background: var(--surface-2); }

/* ============================ BACK TO TOP ================================= */
.back-to-top {
  position: fixed; left: 100px; bottom: 40px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gradient); color: #fff; border: none; cursor: pointer;
  box-shadow: 0 10px 26px -8px var(--blue-glow);
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(0.92);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s, box-shadow 0.3s var(--ease);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -8px var(--blue-glow); }
.back-to-top svg { width: 22px; height: 22px; }
@media (max-width: 600px) { .back-to-top { left: 16px; bottom: 16px; width: 44px; height: 44px; } }

/* ========================= TESTIMONIALS SLIDER =========================== */
.testi-slider { position: relative; }
.testi-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 1fr); gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px;
  scrollbar-width: none;
}
.testi-track::-webkit-scrollbar { display: none; }
@media (min-width: 981px) { .testi-track { grid-auto-columns: minmax(0, calc((100% - 48px) / 3)); } }
.testi-card { scroll-snap-align: start; }
.stars { display: flex; gap: 3.2px; color: #fbbf24; }
.stars svg { width: 18px; height: 18px; }
.testi-nav { display: flex; justify-content: center; gap: 11.2px; margin-top: 28.8px; }
.testi-nav button {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--text-soft);
  transition: border-color 0.3s, color 0.3s, transform 0.3s, background 0.3s;
}
.testi-nav button:hover { border-color: var(--blue-bright); color: var(--text); transform: translateY(-2px); }
.testi-nav button svg { width: 20px; height: 20px; }

/* ================== Responsive fixed-px scaling (was clamp/vw) ============= */
@media (max-width: 768px) {
  :root { --section-y: 72px; }
  h1 { font-size: 40px; }
  h2 { font-size: 30px; }
  h3 { font-size: 21px; }
  h4 { font-size: 18px; }
  /* Oversized custom hero classes need !important to beat their higher
     specificity + inline sizes, otherwise they overflow the phone screen. */
  h1.revealxc { font-size: 30px !important; padding-top: 8px !important; }
  h1.revealzx { font-size: 46px !important; }
  p.lead.reveal { font-size: 22px !important; line-height: 1.3 !important; }
  h2#why-hzx { line-height: 1.25 !important; }
  .page-hero .article h1 { font-size: 32px !important; }
  /* Never let a long word or big heading push a horizontal scrollbar. */
  h1, h2, h3, h4, .article h1 { overflow-wrap: break-word; word-wrap: break-word; }
  .container { padding-inline: 18px; }
  .section-tight { padding-block: 48px; }
  .section-head { margin-bottom: 40px; }
  .section-head p { font-size: 16px; }
  .hero { padding-top: 128px; }
  .page-hero { padding-top: 128px; padding-bottom: 40px; }
  .hero-layout, .split, .footer-top { gap: 32px; }
  .hero .lead { font-size: 18px; }
  .hero .desc, .page-hero .desc { font-size: 17px; }
  .stat { padding: 24px; }
  .stat .num { font-size: 32px; }
  .card { padding: 24px; }
  .cta-band { padding: 40px 24px; }
  .article h2 { font-size: 26px; }
  .article p, .article li { font-size: 17px; }
  /* Comfortable tap targets on touch screens (min ~44px). */
  .nav-links a, .btn, .footer-col a, .contact-list a { min-height: 44px; }
}
@media (max-width: 480px) {
  h1 { font-size: 34px; }
  h2 { font-size: 27px; }
  h1.revealxc { font-size: 26px !important; }
  h1.revealzx { font-size: 40px !important; }
  p.lead.reveal { font-size: 20px !important; }
  .page-hero .article h1 { font-size: 28px !important; }
  main h1.gradient-text { font-size: 84px !important; }   /* 404 page number */
  .hero { padding-top: 112px; }
  .page-hero { padding-top: 104px; }
  .cta-band { padding: 32px 18px; }
}
/* ====================== BLOG: 2-column layout + sidebar ==================== */
.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; align-items: start; }
@media (max-width: 980px) { .blog-layout { grid-template-columns: 1fr; } }
.blog-main { min-width: 0; }
.blog-loading { grid-column: 1 / -1; padding: 50px 0; text-align: center; }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; }

.blog-sidebar { display: grid; gap: 20px; position: sticky; top: 96px; min-width: 0; max-width: 340px; }
@media (max-width: 980px) { .blog-sidebar { position: static; } }

/* CTA card (brand gradient) */
.side-cta { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 24px; color: #fff; background: var(--gradient); box-shadow: 0 18px 40px -16px var(--blue-glow); }
.side-cta-tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-title); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.28); padding: 5px 11px; border-radius: var(--radius-pill); }
.side-cta-tag .status-dot { background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.22); }
.side-cta h3 { color: #fff; font-size: 21px; margin-top: 14px; }
.side-cta p { color: rgba(255, 255, 255, 0.85); font-size: 14.5px; margin-top: 8px; }
.side-cta-btn { margin-top: 16px; background: #fff; color: #0b1220; }
.side-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.35); }

/* Sidebar cards */
.side-card { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm); min-width: 0; }
.side-title { font-size: 16px; position: relative; padding-bottom: 12px; margin-bottom: 14px; }
.side-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 42px; height: 3px; border-radius: 3px; background: var(--gradient); }

/* Services list — chevron links */
.side-links { display: grid; }
.side-links a { display: flex; align-items: center; gap: 9px; padding: 9px 0; font-size: 14.5px; color: var(--text-soft); border-bottom: 1px solid var(--border); transition: color 0.25s var(--ease), gap 0.25s var(--ease), padding-left 0.25s var(--ease); }
.side-links li:last-child a { border-bottom: none; }
.side-links a::before { content: "\203A"; color: var(--blue-bright); font-weight: 700; font-size: 16px; line-height: 1; }
.side-links a:hover { color: var(--blue-bright); gap: 13px; padding-left: 4px; }

/* Testimonial */
.side-quote .stars { display: flex; gap: 2px; color: #fbbf24; margin-bottom: 10px; }
.side-quote .stars svg { width: 16px; height: 16px; }
.side-quote > p { font-size: 14.5px; color: var(--text-soft); line-height: 1.65; }
.side-quote .quote-author { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.side-quote .quote-avatar { width: 40px; height: 40px; }
.side-quote .quote-author strong { font-family: var(--font-title); font-size: 13.5px; color: var(--text); display: block; }
.side-quote .quote-author span span { font-size: 12px; color: var(--text-muted); }

/* Mini quote form */
.side-sub { font-size: 13px; margin-bottom: 14px; }
.side-form { display: grid; gap: 10px; }
.side-form input, .side-form textarea { width: 100%; font-family: var(--font-body); font-size: 14px; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 11px 13px; transition: border-color 0.25s, box-shadow 0.25s; }
.side-form textarea { resize: vertical; min-height: 72px; }
.side-form input::placeholder, .side-form textarea::placeholder { color: var(--text-faint); }
.side-form input:focus, .side-form textarea:focus { outline: none; border-color: var(--blue-bright); box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.15); }
.side-form .form-status { font-size: 13px; }
/* ===================== Paged testimonial slider (.tslider) ================= */
.tslider { position: relative; min-width: 0; max-width: 100%; }
.tslider-viewport { overflow: hidden; padding: 8px 0; min-width: 0; }
.tslider-rail { display: flex; align-items: stretch; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); will-change: transform; }
.tslider-slide { flex: 0 0 100%; min-width: 0; box-sizing: border-box; padding: 0 2px; }
/* Home slider (data-view) shows several cards per page — space them out. */
.tslider[data-view] .tslider-slide { padding: 0 12px; }
.testi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: stretch; width: 100%; }
@media (max-width: 1100px) { .testi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .testi-grid { grid-template-columns: 1fr; } }
.testi-grid.single { grid-template-columns: 1fr; max-width: 720px; margin-inline: auto; }
.tslider .testi-card { height: 100%; }
/* Home testimonial cards: deeper lift + stronger shadow on hover */
.tslider[data-view] .testi-card { transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.tslider[data-view] .testi-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }
.tslider-controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 30px; }
.tslider-arrow { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border-strong); color: var(--text-soft); transition: border-color 0.3s, color 0.3s, transform 0.3s, background 0.3s; }
.tslider-arrow:hover { border-color: var(--blue-bright); color: var(--text); transform: translateY(-2px); }
.tslider-arrow svg { width: 20px; height: 20px; }
.tslider-dots { display: flex; align-items: center; gap: 8px; }
.tslider-dot { width: 9px; height: 9px; padding: 0; border-radius: 999px; background: var(--border-strong); cursor: pointer; transition: background 0.35s var(--ease), width 0.35s var(--ease); }
.tslider-dot.active { width: 26px; background: var(--gradient); }
/* Compact testimonial slider inside the blog sidebar */
.side-card .tslider-viewport { padding: 2px 0; }
.side-card .tslider-controls { margin-top: 16px; gap: 10px; }
.side-card .tslider-arrow { width: 34px; height: 34px; }
.side-card .tslider-arrow svg { width: 15px; height: 15px; }
.side-card .tslider-dot.active { width: 22px; }
.side-card .tslider-slide { padding: 0; }