/*
Theme Name: Ashtam Singhal Portfolio
Version: 1.0
*/
/* ===============================
   THEME VARIABLES (TOGGLE BASE)
================================ */

:root {
  --bg: #ffffff;
  --text: #000000;
  --accent: #22d3ee;
}

html[data-theme="dark"] {
  --bg: #000000;
  --text: #ffffff;
}

/* =====================================================
   THEME VARIABLES (FINAL LOGIC)
   Light  → Dark Blue
   Dark   → Cyan Blue
===================================================== */
:root {
  --bg: #ffffff;
  --text: #000000;

  --accent: #1e40af;        /* dark blue (LIGHT theme) */
  --highlight: #d9f99d;     /* lime-yellow (typing text) */
}

[data-theme="dark"] {
  --bg: #000000;
  --text: #ffffff;

  --accent: #22d3ee;        /* cyan blue (DARK theme) */
  --highlight: #d9f99d;
}

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

/* =====================================================
   GLOBAL PAGE BACKGROUND
===================================================== */
html,
body,
#page,
.site,
.site-content,
.wp-site-blocks,
main {
  background-color: var(--bg);
  color: var(--text);
}

/* =====================================================
   BODY
===================================================== */
body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  transition: background 0.3s ease, color 0.3s ease;
}

/* =====================================================
   HEADER
===================================================== */
#ashtamsinghalwebsite-header {
  position: relative;
  background: var(--bg);
  padding: 14px 40px;
  border-bottom: 1px solid rgba(128,128,128,0.25);
  transition: all 0.35s ease;
  z-index: 999;
}

.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* BRAND */
.brand {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
}

.brand-tag {
  font-size: 13px;
  color: var(--accent);
}

/* NAV */
.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color 0.2s ease;
}

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

/* HEADER ACTIONS */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle {
  cursor: pointer;
  font-size: 20px;
  color: var(--accent);
}

.hamburger {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text);
}

/* =====================================================
   STICKY + GLASS HEADER
===================================================== */
#ashtamsinghalwebsite-header.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;

  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border-bottom: 1px solid rgba(255,255,255,0.15);
}

/* Light theme glass */
html:not([data-theme="dark"])
#ashtamsinghalwebsite-header.is-sticky {
  background: rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid rgba(0,0,0,0.15);
}

/* =====================================================
   HEADER — TRANSPARENT STATE (hero pages at top)
===================================================== */
#ashtamsinghalwebsite-header.header--transparent {
  background: transparent !important;
  border-bottom-color: rgba(255,255,255,0.08) !important;
  box-shadow: none !important;
}
html:not([data-theme="dark"]) #ashtamsinghalwebsite-header.header--transparent {
  border-bottom-color: rgba(0,0,0,0.06) !important;
}

/* =====================================================
   MOBILE NAV
===================================================== */
@media (max-width: 768px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: column;
    padding: 12px 20px 20px;
    display: none;
    border-left: none;
    border-top: 1px solid rgba(128,128,128,0.15);
    border-radius: 0 0 16px 16px;
    z-index: 9999;
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
  }

  html:not([data-theme="dark"]) .nav {
    background: rgba(255,255,255,0.98);
    border-color: rgba(0,0,0,0.08);
  }

  [data-theme="dark"] .nav {
    background: rgba(5,5,9,0.98);
    border-color: rgba(255,255,255,0.08);
  }

  .nav.active {
    display: flex;
  }

  .nav a {
    font-size: 15px;
    padding: 11px 4px;
    width: 100%;
    border-bottom: 1px solid rgba(128,128,128,0.1);
    min-height: unset;
    min-width: unset;
    display: block;
  }

  .nav a:last-child {
    border-bottom: none;
  }

  .hamburger {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
  }
}

/* =======================================================
   HOMEPAGE — COMPLETE CSS
   File: homepage.css  →  paste into style.css at end
   Uses: --bg, --text, --accent, --highlight from root
======================================================= */

/* =====================================================
   SHARED TOKENS
===================================================== */
.hm-page { overflow-x: hidden; }

.hm-inner {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) { .hm-inner { padding: 0 20px; } }

.hm-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  opacity: 0.9;
}

.hm-section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 72px;
}

.hm-section-head h2 {
  font-size: 44px;
  font-weight: 900;
  line-height: 1.15;
  margin: 6px 0 14px;
  color: var(--text);
}

.hm-section-head h2 span { color: var(--accent); }

.hm-section-head p {
  font-size: 17px;
  opacity: 0.72;
  color: var(--text);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .hm-section-head h2 { font-size: 30px; }
  .hm-section-head { margin-bottom: 44px; }
}

/* Scroll reveal utility */
.reveal-up {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.6s ease var(--delay, 0s),
    transform 0.7s cubic-bezier(.22,.61,.36,1) var(--delay, 0s);
}
.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* =====================================================
   BUTTONS
===================================================== */

.hm-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.hm-btn--primary {
  background: var(--accent);
  color: #fff;
}
[data-theme="dark"] .hm-btn--primary { color: #000; }

.hm-btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(34,211,238,0.45);
}
html:not([data-theme="dark"]) .hm-btn--primary:hover {
  box-shadow: 0 14px 34px rgba(30,64,175,0.38);
}

.hm-btn--ghost {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}
.hm-btn--ghost:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-3px);
}
[data-theme="dark"] .hm-btn--ghost:hover { color: #000; }

.hm-btn--whatsapp {
  background: #25d366;
  color: #fff;
}
.hm-btn--whatsapp:hover {
  background: #1db954;
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(37,211,102,0.4);
}

.hm-btn--large {
  padding: 18px 42px;
  font-size: 17px;
  border-radius: 10px;
}


/* =====================================================
   HERO — CYBERPUNK FULL SCREEN
===================================================== */

.hm-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #000;        /* dark mode: always black cyberpunk */
}

/* Light mode hero — clean white with subtle blue tones */
html:not([data-theme="dark"]) .hm-hero {
  background: #ffffff;
}

/* Light mode — hide cyan/pink cyberpunk orbs, use soft blue glows */
html:not([data-theme="dark"]) .hm-hero__orb--cyan {
  background: radial-gradient(circle, rgba(30,64,175,0.18), transparent 70%);
}
html:not([data-theme="dark"]) .hm-hero__orb--pink {
  background: radial-gradient(circle, rgba(14,165,233,0.14), transparent 70%);
}
html:not([data-theme="dark"]) .hm-hero__orb--blue {
  background: radial-gradient(circle, rgba(99,179,237,0.12), transparent 70%);
}

/* Light mode — canvas grid tone down */
html:not([data-theme="dark"]) .hm-hero__canvas { opacity: 0.2; }

/* Light mode — hero text colors */
html:not([data-theme="dark"]) .hm-hero__greeting {
  color: rgba(15,23,42,0.6);
}
html:not([data-theme="dark"]) .hm-hero__name {
  color: #0f172a;
}
html:not([data-theme="dark"]) .hm-hero__name::before { color: #1e40af; }
html:not([data-theme="dark"]) .hm-hero__name::after  { color: #0ea5e9; }

/* Light mode — typing gradient: blue tones */
html:not([data-theme="dark"]) .hm-typing {
  background: linear-gradient(90deg, #1e40af, #0ea5e9, #1e40af);
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
html:not([data-theme="dark"]) .hm-cursor {
  color: #1e40af;
  -webkit-text-fill-color: #1e40af;
}

/* Light mode — badge */
html:not([data-theme="dark"]) .hm-hero__badge {
  border-color: rgba(30,64,175,0.3);
  background: rgba(30,64,175,0.07);
  color: #1e40af;
}
html:not([data-theme="dark"]) .hm-badge__dot {
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

/* Light mode — subtitle */
html:not([data-theme="dark"]) .hm-hero__sub {
  color: rgba(15,23,42,0.72);
}
html:not([data-theme="dark"]) .hm-hero__sub strong {
  color: #1e40af;
}

/* Light mode — primary button */
html:not([data-theme="dark"]) .hm-hero .hm-btn--primary {
  border-color: #1e40af;
  color: #1e40af;
}
html:not([data-theme="dark"]) .hm-hero .hm-btn--primary::before {
  background: #1e40af;
}
html:not([data-theme="dark"]) .hm-hero .hm-btn--primary:hover {
  color: #fff;
  box-shadow: 0 0 20px rgba(30,64,175,0.4);
}

/* Light mode — ghost button */
html:not([data-theme="dark"]) .hm-hero .hm-btn--ghost {
  border-color: rgba(14,165,233,0.7);
  color: #0ea5e9;
}
html:not([data-theme="dark"]) .hm-hero .hm-btn--ghost:hover {
  background: #0ea5e9;
  color: #fff;
  box-shadow: 0 0 20px rgba(14,165,233,0.4);
}

/* Light mode — social links */
html:not([data-theme="dark"]) .hm-hero__socials a {
  border-color: rgba(15,23,42,0.15);
  color: rgba(15,23,42,0.5);
}
html:not([data-theme="dark"]) .hm-hero__socials a:hover {
  border-color: #1e40af;
  color: #1e40af;
  box-shadow: 0 0 12px rgba(30,64,175,0.25);
}

/* Light mode — floating stat cards */
html:not([data-theme="dark"]) .hm-float {
  background: rgba(255,255,255,0.9);
  border-color: rgba(30,64,175,0.2);
  box-shadow: 0 8px 24px rgba(30,64,175,0.12);
}
html:not([data-theme="dark"]) .hm-float__val {
  color: #1e40af;
  text-shadow: none;
}
html:not([data-theme="dark"]) .hm-float__label {
  color: rgba(15,23,42,0.6);
}

/* Light mode — photo hex border */
html:not([data-theme="dark"]) .hm-hero__photo-hex {
  border-color: rgba(30,64,175,0.35);
  box-shadow:
    0 0 30px rgba(30,64,175,0.25),
    0 0 60px rgba(14,165,233,0.15);
}
html:not([data-theme="dark"]) .hm-hero__photo-ring--1 {
  border-color: rgba(30,64,175,0.2);
}
html:not([data-theme="dark"]) .hm-hero__photo-ring--2 {
  border-color: rgba(14,165,233,0.15);
}

/* Light mode — scroll indicator */
html:not([data-theme="dark"]) .hm-hero__scroll-line {
  background: linear-gradient(to bottom, rgba(30,64,175,0.6), transparent);
}
html:not([data-theme="dark"]) .hm-hero__scroll-text {
  color: rgba(30,64,175,0.5);
}

/* Canvas grid — JS draws animated dots/lines */
.hm-hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

/* Glow orbs */
.hm-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  z-index: 0;
  pointer-events: none;
  animation: hmOrbPulse 8s ease-in-out infinite alternate;
}

.hm-hero__orb--cyan {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,255,255,0.45), transparent 70%);
  top: -150px; left: -120px;
  animation-delay: 0s;
}
.hm-hero__orb--pink {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,0,170,0.38), transparent 70%);
  bottom: -120px; right: -80px;
  animation-delay: 3s;
}
.hm-hero__orb--blue {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(30,64,175,0.4), transparent 70%);
  top: 40%; left: 40%;
  animation-delay: 1.5s;
}

@keyframes hmOrbPulse {
  0%   { opacity: 0.6; transform: scale(1); }
  100% { opacity: 1;   transform: scale(1.12); }
}

/* CRT scan lines */
.hm-hero__scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.04) 2px,
    rgba(0,0,0,0.04) 4px
  );
  z-index: 1;
  pointer-events: none;
}

/* Inner layout */
.hm-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 120px 40px 80px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 60px;
  align-items: center;
}

/* ---- BADGE ---- */
.hm-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(0,255,255,0.35);
  background: rgba(0,255,255,0.07);
  font-size: 13px;
  font-weight: 600;
  color: #00ffff;
  margin-bottom: 24px;
  letter-spacing: 0.4px;
}

.hm-badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00ff88;
  box-shadow: 0 0 8px #00ff88, 0 0 16px #00ff88;
  animation: hmDotPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes hmDotPulse {
  0%,100% { box-shadow: 0 0 6px #00ff88, 0 0 12px #00ff88; }
  50%      { box-shadow: 0 0 12px #00ff88, 0 0 24px #00ff88; }
}

/* ---- TITLE ---- */
.hm-hero__title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 24px;
}

.hm-hero__greeting {
  font-size: 22px;
  font-weight: 400;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.5px;
}

/* Glitch name effect */
.hm-hero__name {
  font-size: 66px;
  font-weight: 900;
  line-height: 1.05;
  color: #fff;
  position: relative;
  letter-spacing: -1px;
}

.hm-hero__name::before,
.hm-hero__name::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  opacity: 0;
}

.hm-hero__name::before {
  color: #00ffff;
  animation: hmGlitch1 6s infinite;
  clip-path: polygon(0 20%, 100% 20%, 100% 40%, 0 40%);
}

.hm-hero__name::after {
  color: #ff00aa;
  animation: hmGlitch2 6s infinite;
  clip-path: polygon(0 60%, 100% 60%, 100% 80%, 0 80%);
}

@keyframes hmGlitch1 {
  0%,90%,100%     { opacity: 0; transform: translate(0); }
  91%             { opacity: 0.8; transform: translate(-4px, 2px); }
  92%             { opacity: 0.8; transform: translate(4px, -2px); }
  93%             { opacity: 0; }
}

@keyframes hmGlitch2 {
  0%,93%,100%     { opacity: 0; transform: translate(0); }
  94%             { opacity: 0.8; transform: translate(4px, 2px); }
  95%             { opacity: 0.8; transform: translate(-4px, -2px); }
  96%             { opacity: 0; }
}

/* Typing role line */
.hm-hero__role {
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 50px;
}

.hm-typing {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(90deg, #00ffff, #ff00aa, #00ffff);
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: hmTypingGrad 4s linear infinite;
  display: inline-block;
}

@keyframes hmTypingGrad {
  0%   { background-position: 0% center; }
  100% { background-position: 300% center; }
}

.hm-cursor {
  font-size: 30px;
  font-weight: 300;
  color: #00ffff;
  animation: hmBlink 0.9s step-end infinite;
  margin-left: 2px;
  -webkit-text-fill-color: #00ffff;
}

@keyframes hmBlink {
  0%,100% { opacity: 1; }
  50%     { opacity: 0; }
}

/* ---- SUBTITLE ---- */
.hm-hero__sub {
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255,255,255,0.72);
  max-width: 540px;
  margin-bottom: 36px;
}

.hm-hero__sub strong { color: #00ffff; font-weight: 700; }

/* ---- HERO ACTIONS ---- */
.hm-hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* Cyberpunk primary button override */
.hm-hero .hm-btn--primary {
  background: transparent;
  border: 2px solid #00ffff;
  color: #00ffff;
  position: relative;
  overflow: hidden;
}

.hm-hero .hm-btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #00ffff;
  transform: translateX(-101%);
  transition: transform 0.3s ease;
  z-index: -1;
}

.hm-hero .hm-btn--primary:hover {
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(0,255,255,0.6), 0 0 40px rgba(0,255,255,0.3);
}

.hm-hero .hm-btn--primary:hover::before {
  transform: translateX(0);
}

.hm-hero .hm-btn--ghost {
  border-color: rgba(255,0,170,0.7);
  color: #ff00aa;
}

.hm-hero .hm-btn--ghost:hover {
  background: #ff00aa;
  color: #fff;
  box-shadow: 0 0 20px rgba(255,0,170,0.5);
  transform: translateY(-3px);
}

/* ---- SOCIAL LINKS ---- */
.hm-hero__socials {
  display: flex;
  gap: 12px;
  align-items: center;
}

.hm-hero__socials a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.55);
  transition: all 0.25s ease;
  text-decoration: none;
}

.hm-hero__socials a:hover {
  border-color: #00ffff;
  color: #00ffff;
  box-shadow: 0 0 12px rgba(0,255,255,0.4);
  transform: translateY(-3px);
}

/* ---- VISUAL SIDE ---- */
.hm-hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Photo wrap with rotating rings */
.hm-hero__photo-wrap {
  position: relative;
  width: 340px;
  height: 340px;
  flex-shrink: 0;
}

.hm-hero__photo-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  animation: hmRingSpin 12s linear infinite;
}

.hm-hero__photo-ring--1 {
  inset: -24px;
  border-color: rgba(0,255,255,0.3);
  animation-duration: 14s;
}

.hm-hero__photo-ring--2 {
  inset: -48px;
  border-color: rgba(255,0,170,0.2);
  animation-duration: 20s;
  animation-direction: reverse;
  border-style: dashed;
}

@keyframes hmRingSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.hm-hero__photo-hex {
  position: absolute;
  inset: 0;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  overflow: hidden;
  border: 2px solid rgba(0,255,255,0.4);
  box-shadow:
    0 0 30px rgba(0,255,255,0.4),
    0 0 60px rgba(255,0,170,0.3),
    inset 0 0 30px rgba(0,255,255,0.05);
  animation: hmMorphShape 10s ease-in-out infinite;
}

@keyframes hmMorphShape {
  0%,100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  25%     { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
  50%     { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
  75%     { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
}

.hm-hero__photo-hex img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Floating stat cards */
.hm-float {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(0,0,0,0.75);
  border: 1px solid rgba(0,255,255,0.3);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 20px rgba(0,255,255,0.15);
  min-width: 100px;
  text-align: center;
  animation: hmFloatBob 4s ease-in-out infinite;
}

.hm-float--tl { top: -10px;  left: -30px; animation-delay: 0s; }
.hm-float--tr { top: 30px;   right: -30px; animation-delay: 1.4s; }
.hm-float--br { bottom: 0px; right: -20px; animation-delay: 0.7s; }

@keyframes hmFloatBob {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-8px); }
}

.hm-float__val {
  font-size: 24px;
  font-weight: 900;
  color: #00ffff;
  line-height: 1;
  text-shadow: 0 0 10px rgba(0,255,255,0.6);
}

.hm-float__val em { font-style: normal; font-size: 14px; }

.hm-float__label {
  font-size: 11px;
  color: rgba(255,255,255,0.65);
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

/* ---- SCROLL INDICATOR ---- */
.hm-hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 3;
}

.hm-hero__scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(0,255,255,0.8), transparent);
  animation: hmScrollLine 2s ease-in-out infinite;
}

@keyframes hmScrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.hm-hero__scroll-text {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(0,255,255,0.6);
}

/* ---- HERO RESPONSIVE ---- */
@media (max-width: 1024px) {
  .hm-hero__inner { grid-template-columns: 1fr; text-align: center; padding: 100px 24px 80px; }
  .hm-hero__name { font-size: 48px; }
  .hm-hero__visual { margin: 0 auto; }
  .hm-hero__actions { justify-content: center; }
  .hm-hero__socials { justify-content: center; }
  .hm-hero__sub { margin: 0 auto 36px; }
  .hm-float--tl { left: -10px; }
  .hm-float--tr { right: -10px; }
  .hm-float--br { right: -10px; }
}

@media (max-width: 600px) {
  .hm-hero__name { font-size: 36px; }
  .hm-hero__greeting { font-size: 18px; }
  .hm-typing { font-size: 20px; }
  .hm-hero__photo-wrap { width: 260px; height: 260px; }
  .hm-float { padding: 10px 14px; }
  .hm-float__val { font-size: 18px; }
}


/* =====================================================
   TOOLS MARQUEE
===================================================== */

.hm-tools {
  position: relative;
  padding: 50px 0;
  background: var(--bg);
  border-top: 1px solid rgba(128,128,128,0.12);
  border-bottom: 1px solid rgba(128,128,128,0.12);
  overflow: hidden;
}

.hm-tools__fade {
  position: absolute;
  top: 0; bottom: 0;
  width: 140px;
  z-index: 2;
  pointer-events: none;
}

.hm-tools__fade--l {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}
.hm-tools__fade--r {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

.hm-tools__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
}

.hm-tools__label {
  display: block;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.7;
  margin-bottom: 28px;
}

.hm-tools__track-wrap {
  overflow: hidden;
  width: 100%;
}

.hm-tools__track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  animation: hmToolsScroll 30s linear infinite;
}

.hm-tools__track:hover { animation-play-state: paused; }

@keyframes hmToolsScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.hm-tool {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.hm-tool:hover { opacity: 1; transform: translateY(-3px); }

.hm-tool img {
  height: 36px;
  width: 36px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
  border-radius: 8px;
}

.hm-tool:hover img { filter: grayscale(0%); }

.hm-tool span {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .hm-tools { padding: 40px 0; }
  .hm-tools__inner { padding: 0; }
}


/* =====================================================
   RESULTS SECTION
===================================================== */

.hm-results {
  position: relative;
  padding: 120px 0;
  background: var(--bg);
  overflow: hidden;
}

.hm-results__glow {
  position: absolute;
  width: 900px;
  height: 600px;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  filter: blur(160px);
  z-index: 0;
  pointer-events: none;
}

[data-theme="dark"] .hm-results__glow {
  background: radial-gradient(ellipse, rgba(34,211,238,0.16), transparent 70%);
}
html:not([data-theme="dark"]) .hm-results__glow {
  background: radial-gradient(ellipse, rgba(30,64,175,0.11), transparent 70%);
}

.hm-results__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.hm-result {
  position: relative;
  padding: 36px 28px;
  border-radius: 22px;
  text-align: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  overflow: hidden;
}

html:not([data-theme="dark"]) .hm-result {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

[data-theme="dark"] .hm-result {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
}

.hm-result::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
  border-radius: inherit;
}

.hm-result:hover { transform: translateY(-10px); }

html:not([data-theme="dark"]) .hm-result:hover { box-shadow: 0 24px 50px rgba(30,64,175,0.15); }
[data-theme="dark"] .hm-result:hover { box-shadow: 0 24px 50px rgba(34,211,238,0.15); }

.hm-result__icon {
  font-size: 32px;
  margin-bottom: 14px;
  display: block;
}

.hm-result__value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  margin-bottom: 10px;
}

.hm-result__value .result-number {
  font-size: 52px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.hm-result__unit {
  font-size: 24px;
  font-weight: 900;
  color: var(--accent);
}

.hm-result__label {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.hm-result__sub {
  font-size: 12px;
  opacity: 0.5;
  color: var(--text);
  font-weight: 500;
}

@media (max-width: 900px) { .hm-results__grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 540px) { .hm-results__grid { grid-template-columns: 1fr; } .hm-results { padding: 80px 0; } }


/* =====================================================
   SERVICES SECTION
===================================================== */

.hm-services {
  position: relative;
  padding: 120px 0;
  background: var(--bg);
  overflow: hidden;
}

.hm-services__glow {
  position: absolute;
  width: 1000px;
  height: 800px;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  filter: blur(180px);
  z-index: 0;
  pointer-events: none;
}

[data-theme="dark"] .hm-services__glow {
  background: radial-gradient(circle, rgba(34,211,238,0.18), transparent 70%);
}
html:not([data-theme="dark"]) .hm-services__glow {
  background: radial-gradient(circle, rgba(30,64,175,0.12), transparent 70%);
}

.hm-services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 0;
}

.hm-svc {
  position: relative;
  padding: 36px 28px;
  border-radius: 22px;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  display: flex;
  flex-direction: column;
  gap: 0;
}

html:not([data-theme="dark"]) .hm-svc {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.07);
}

[data-theme="dark"] .hm-svc {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
}

/* Watermark number */
.hm-svc__num {
  position: absolute;
  top: -8px; right: 16px;
  font-size: 86px;
  font-weight: 900;
  color: var(--accent);
  opacity: 0.06;
  line-height: 1;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.hm-svc:hover .hm-svc__num { opacity: 0.15; }

.hm-svc__icon {
  font-size: 34px;
  margin-bottom: 16px;
  display: block;
  transition: transform 0.3s ease;
}

.hm-svc:hover .hm-svc__icon { transform: scale(1.15) rotate(-5deg); }

.hm-svc h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.hm-svc p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  opacity: 0.75;
  flex: 1;
  margin-bottom: 18px;
}

.hm-svc__arrow {
  font-size: 18px;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.3s ease;
}

.hm-svc:hover .hm-svc__arrow { opacity: 1; transform: translateX(0); }

.hm-svc:hover {
  transform: translateY(-10px);
}

html:not([data-theme="dark"]) .hm-svc:hover {
  box-shadow: 0 24px 50px rgba(30,64,175,0.14);
  border-color: rgba(30,64,175,0.25);
}

[data-theme="dark"] .hm-svc:hover {
  box-shadow: 0 24px 50px rgba(34,211,238,0.14);
  border-color: rgba(34,211,238,0.3);
}

.hm-services__footer {
  text-align: center;
  margin-top: 54px;
}

@media (max-width: 900px) { .hm-services__grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 540px) { .hm-services__grid { grid-template-columns: 1fr; } .hm-services { padding: 80px 0; } }


/* =====================================================
   FEATURED WORK
===================================================== */

.hm-work {
  padding: 120px 0;
  background: var(--bg);
}

.hm-work__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.hm-work-card {
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
}

html:not([data-theme="dark"]) .hm-work-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

[data-theme="dark"] .hm-work-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
}

.hm-work-card:hover {
  transform: translateY(-10px);
}

html:not([data-theme="dark"]) .hm-work-card:hover { box-shadow: 0 24px 50px rgba(30,64,175,0.14); border-color: rgba(30,64,175,0.2); }
[data-theme="dark"] .hm-work-card:hover { box-shadow: 0 24px 50px rgba(34,211,238,0.14); border-color: rgba(34,211,238,0.25); }

.hm-work-card__img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.hm-work-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}

.hm-work-card:hover .hm-work-card__img img {
  transform: scale(1.07);
}

.hm-work-card__badge {
  position: absolute;
  top: 14px; right: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: var(--accent);
  color: #fff;
  letter-spacing: 0.3px;
}

[data-theme="dark"] .hm-work-card__badge { color: #000; }

.hm-work-card__body {
  padding: 24px 26px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hm-work-card__body h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.35;
}

.hm-work-card__body p {
  font-size: 13px;
  line-height: 1.7;
  opacity: 0.7;
  color: var(--text);
  flex: 1;
  margin-bottom: 18px;
}

.hm-work-card__stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(128,128,128,0.12);
  padding-top: 16px;
}

.hm-work-card__stats span {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
}

.hm-work-card__stats span em {
  font-style: normal;
  font-size: 11px;
  font-weight: 500;
  color: var(--text);
  opacity: 0.6;
  margin-left: 3px;
}

@media (max-width: 900px) { .hm-work__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .hm-work__grid { grid-template-columns: 1fr; } .hm-work { padding: 80px 0; } }


/* =====================================================
   ABOUT STRIP
===================================================== */

.hm-about {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}

[data-theme="dark"] .hm-about { background: linear-gradient(180deg, #000 0%, #020f1a 100%); }
html:not([data-theme="dark"]) .hm-about { background: linear-gradient(180deg, #fff 0%, #f0f6ff 100%); }

.hm-about__glow {
  position: absolute;
  width: 800px; height: 600px;
  top: 50%; right: -200px;
  transform: translateY(-50%);
  filter: blur(150px);
  z-index: 0;
  pointer-events: none;
}

[data-theme="dark"] .hm-about__glow {
  background: radial-gradient(circle, rgba(34,211,238,0.14), transparent 70%);
}
html:not([data-theme="dark"]) .hm-about__glow {
  background: radial-gradient(circle, rgba(30,64,175,0.1), transparent 70%);
}

.hm-about__grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 80px;
  align-items: center;
}

/* Image */
.hm-about__img { position: relative; }

.hm-about__img-frame {
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}

.hm-about__img-frame::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(0,255,255,0.5), rgba(255,0,170,0.5));
  z-index: -1;
}

.hm-about__img-frame img {
  width: 100%;
  display: block;
  border-radius: 22px;
}

html:not([data-theme="dark"]) .hm-about__img-frame {
  box-shadow: 0 20px 50px rgba(30,64,175,0.15);
}

[data-theme="dark"] .hm-about__img-frame {
  box-shadow: 0 20px 50px rgba(0,255,255,0.15), 0 0 60px rgba(255,0,170,0.1);
}

.hm-about__badge-float {
  position: absolute;
  bottom: -16px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

[data-theme="dark"] .hm-about__badge-float {
  background: rgba(0,0,0,0.85);
  border: 1px solid rgba(34,211,238,0.3);
  backdrop-filter: blur(10px);
}
html:not([data-theme="dark"]) .hm-about__badge-float {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.hm-about__badge-float span:first-child { font-size: 20px; }

/* Content */
.hm-about__content h2 {
  font-size: 40px;
  font-weight: 900;
  line-height: 1.2;
  margin: 8px 0 20px;
  color: var(--text);
}

.hm-about__content h2 span { color: var(--accent); }

.hm-about__content p {
  font-size: 16px;
  line-height: 1.8;
  opacity: 0.8;
  color: var(--text);
  margin-bottom: 16px;
}

.hm-about__content p a { color: var(--accent); text-decoration: none; font-weight: 700; }
.hm-about__content p a:hover { text-decoration: underline; }

.hm-about__pillars {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 28px 0 32px;
}

.hm-pillar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  transition: all 0.25s ease;
}

html:not([data-theme="dark"]) .hm-pillar {
  background: #f0f6ff;
  border: 1px solid rgba(30,64,175,0.12);
}
[data-theme="dark"] .hm-pillar {
  background: rgba(34,211,238,0.06);
  border: 1px solid rgba(34,211,238,0.18);
}

.hm-pillar:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.hm-pillar__icon { font-size: 16px; }

@media (max-width: 960px) { .hm-about__grid { grid-template-columns: 1fr; gap: 50px; } .hm-about__img-frame img { max-width: 400px; } .hm-about__content h2 { font-size: 32px; } }
@media (max-width: 540px) { .hm-about { padding: 80px 0; } .hm-about__content h2 { font-size: 26px; } }


/* =====================================================
   REVIEWS MARQUEE
===================================================== */

.hm-reviews {
  padding: 120px 0 0;
  background: var(--bg);
  overflow: hidden;
}

.hm-reviews__viewport {
  position: relative;
  overflow: hidden;
  margin-top: 24px;
  padding-bottom: 120px;
}

.hm-reviews__fade {
  position: absolute;
  top: 0; bottom: 0;
  width: 160px;
  z-index: 2;
  pointer-events: none;
}

.hm-reviews__fade--l { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.hm-reviews__fade--r { right: 0; background: linear-gradient(to left, var(--bg), transparent); }

.hm-reviews__track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: hmReviewScroll 38s linear infinite;
}

.hm-reviews__track:hover { animation-play-state: paused; }

@keyframes hmReviewScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.hm-review {
  min-width: 320px;
  max-width: 320px;
  padding: 30px;
  border-radius: 20px;
  flex-shrink: 0;
}

html:not([data-theme="dark"]) .hm-review {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

[data-theme="dark"] .hm-review {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
}

.hm-review__stars { font-size: 13px; color: #f59e0b; letter-spacing: 2px; margin-bottom: 14px; }

.hm-review > p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
  opacity: 0.85;
  margin-bottom: 18px;
  position: relative;
  padding-top: 18px;
}

.hm-review > p::before {
  content: "\201C";
  position: absolute;
  top: -6px; left: 0;
  font-size: 44px;
  line-height: 1;
  color: var(--accent);
  font-family: Georgia, serif;
  opacity: 0.35;
}

.hm-review__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hm-review__author img {
  width: 42px; height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.hm-review__author div strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.hm-review__author div span {
  font-size: 12px;
  opacity: 0.58;
  color: var(--text);
}

@media (max-width: 600px) { .hm-reviews { padding: 80px 0 0; } }


/* =====================================================
   FINAL CTA — CYBERPUNK BOX
===================================================== */

.hm-cta {
  position: relative;
  padding: 0 40px 120px;
  background: var(--bg);
  text-align: center;
  overflow: hidden;
}

.hm-cta__glow {
  position: absolute;
  width: 900px; height: 700px;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  filter: blur(160px);
  z-index: 0;
  pointer-events: none;
}

[data-theme="dark"] .hm-cta__glow { background: radial-gradient(circle, rgba(34,211,238,0.2), transparent 70%); }
html:not([data-theme="dark"]) .hm-cta__glow { background: radial-gradient(circle, rgba(30,64,175,0.13), transparent 70%); }

/* Corner cyberpunk accents */
.hm-cta__corner {
  position: absolute;
  width: 40px; height: 40px;
  z-index: 3;
}

.hm-cta__corner--tl { top: 0; left: 0; border-top: 2px solid var(--accent); border-left: 2px solid var(--accent); }
.hm-cta__corner--tr { top: 0; right: 0; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); }
.hm-cta__corner--bl { bottom: 120px; left: 0; border-bottom: 2px solid var(--accent); border-left: 2px solid var(--accent); }
.hm-cta__corner--br { bottom: 120px; right: 0; border-bottom: 2px solid var(--accent); border-right: 2px solid var(--accent); }

.hm-cta__inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
  padding: 100px 40px;
  border-radius: 28px;
}

[data-theme="dark"] .hm-cta__inner {
  background: rgba(0,255,255,0.02);
  border: 1px solid rgba(34,211,238,0.2);
}
html:not([data-theme="dark"]) .hm-cta__inner {
  background: #f8faff;
  border: 1px solid rgba(30,64,175,0.12);
}

.hm-cta__inner h2 {
  font-size: 52px;
  font-weight: 900;
  line-height: 1.15;
  margin: 8px 0 18px;
  color: var(--text);
}

.hm-cta__inner h2 span { color: var(--accent); }

.hm-cta__inner > p {
  font-size: 18px;
  opacity: 0.78;
  color: var(--text);
  margin-bottom: 52px;
  line-height: 1.6;
}

.hm-cta__options {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hm-cta__option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-radius: 16px;
  text-align: left;
  flex: 1;
  min-width: 200px;
  max-width: 220px;
  transition: all 0.25s ease;
}

html:not([data-theme="dark"]) .hm-cta__option {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.07);
}
[data-theme="dark"] .hm-cta__option {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
}

.hm-cta__option:hover { border-color: var(--accent); transform: translateY(-4px); }

.hm-cta__option > span { font-size: 26px; flex-shrink: 0; }
.hm-cta__option strong { display: block; font-size: 14px; color: var(--text); margin-bottom: 2px; }
.hm-cta__option p { font-size: 12px; opacity: 0.6; color: var(--text); margin: 0; }

.hm-cta__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hm-cta__email {
  font-size: 14px;
  opacity: 0.55;
  color: var(--text);
}

.hm-cta__email a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.hm-cta__email a:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .hm-cta { padding: 0 20px 80px; }
  .hm-cta__inner { padding: 60px 24px; }
  .hm-cta__inner h2 { font-size: 34px; }
  .hm-cta__options { flex-direction: column; align-items: center; }
  .hm-cta__option { max-width: 100%; width: 100%; }
  .hm-cta__btn { width: 100%; justify-content: center; }
}

/* ===============================
   THEME AWARE FOOTER
================================ */

/* =====================================================
   FOOTER — Premium Glassmorphism / Cyberpunk
   Classes: ft__*
===================================================== */

.ft {
  position: relative;
  overflow: hidden;
  padding: 0 0 0;
  margin-top: 0;

  /* Dark mode: deep black with subtle grid */
  background: #050509;
  color: #fff;
}

/* Light mode footer */
html:not([data-theme="dark"]) .ft {
  background: #ffffff;
  color: #1a1a2e;
}

/* ── Animated background grid ── */
.ft__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,255,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
  pointer-events: none;
  animation: ftGridDrift 40s linear infinite;
}
html:not([data-theme="dark"]) .ft__grid {
  background-image:
    linear-gradient(rgba(99,179,237,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,179,237,.06) 1px, transparent 1px);
}
@keyframes ftGridDrift {
  from { background-position: 0 0; }
  to   { background-position: 60px 60px; }
}

/* ── Glow orbs ── */
.ft__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.ft__orb--left {
  width: 500px; height: 500px;
  top: -100px; left: -150px;
  background: radial-gradient(circle, rgba(0,255,255,0.12), transparent 70%);
}
.ft__orb--right {
  width: 400px; height: 400px;
  bottom: 0; right: -100px;
  background: radial-gradient(circle, rgba(255,0,170,0.1), transparent 70%);
}
html:not([data-theme="dark"]) .ft__orb--left {
  background: radial-gradient(circle, rgba(30,64,175,0.15), transparent 70%);
}
html:not([data-theme="dark"]) .ft__orb--right {
  background: radial-gradient(circle, rgba(14,165,233,0.12), transparent 70%);
}

/* ── Inner wrapper ── */
.ft__inner {
  position: relative;
  z-index: 2;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 40px 0;
}

/* ── TOP CTA STRIP ── */
.ft__cta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding: 64px 0 60px;
}

.ft__cta-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.ft__cta-heading {
  font-size: 38px;
  font-weight: 900;
  line-height: 1.15;
  color: #fff;
  margin: 0;
}
.ft__cta-heading span {
  background: linear-gradient(90deg, #00ffff, #ff00aa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
html:not([data-theme="dark"]) .ft__cta-heading {
  color: #e8eaf6;
}
html:not([data-theme="dark"]) .ft__cta-heading span {
  background: linear-gradient(90deg, #3b82f6, #0ea5e9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ft__cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.ft__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.28s ease;
  white-space: nowrap;
}

.ft__btn--primary {
  background: var(--accent);
  color: #000;
  border: 2px solid var(--accent);
}
.ft__btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0,255,255,0.35);
}
html:not([data-theme="dark"]) .ft__btn--primary:hover {
  box-shadow: 0 14px 36px rgba(30,64,175,0.3);
}

.ft__btn--ghost {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 2px solid rgba(255,255,255,0.2);
}
.ft__btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
}

/* ── Divider ── */
.ft__divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0,255,255,0.3) 30%,
    rgba(255,0,170,0.3) 70%,
    transparent
  );
  margin-bottom: 60px;
}
html:not([data-theme="dark"]) .ft__divider {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(30,64,175,0.3) 30%,
    rgba(14,165,233,0.3) 70%,
    transparent
  );
}

/* ── MAIN GRID ── */
.ft__grid-main {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 48px;
  padding-bottom: 64px;
}

/* ── BRAND COL ── */
.ft__brand {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}

.ft__brand-name {
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
}
.ft__brand-name span {
  color: var(--accent);
}

.ft__brand-tag {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  margin-top: 3px;
  letter-spacing: 0.3px;
}

.ft__brand-desc {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255,255,255,0.55);
  margin-bottom: 24px;
}

/* Quick stats */
.ft__stats {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  backdrop-filter: blur(10px);
}
.ft__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.ft__stat-val {
  font-size: 22px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}
.ft__stat-lbl {
  font-size: 10px;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.ft__stat-sep {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,0.1);
}

/* Social icons */
.ft__socials {
  display: flex;
  gap: 10px;
}
.ft__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: all 0.25s ease;
}
.ft__social:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 8px 20px rgba(0,255,255,0.2);
}
.ft__social--li:hover { border-color: #0A66C2; color: #0A66C2; box-shadow: 0 8px 20px rgba(10,102,194,0.25); }
.ft__social--ig:hover { border-color: #E1306C; color: #E1306C; box-shadow: 0 8px 20px rgba(225,48,108,0.25); }
.ft__social--x:hover  { border-color: #fff;    color: #fff;    box-shadow: 0 8px 20px rgba(255,255,255,0.15); }
.ft__social--mail:hover { border-color: #00ff88; color: #00ff88; box-shadow: 0 8px 20px rgba(0,255,136,0.25); }

/* ── Column headings ── */
.ft__col-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.ft__col-head-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  flex-shrink: 0;
}

/* ── Nav links ── */
.ft__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ft__links a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.22s ease;
  border-bottom: 1px solid transparent;
}
.ft__links a svg {
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.22s ease;
  flex-shrink: 0;
  color: var(--accent);
}
.ft__links a:hover {
  color: #fff;
  padding-left: 4px;
}
.ft__links a:hover svg {
  opacity: 1;
  transform: translateX(0);
}

/* ── Contact items ── */
.ft__contact-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.ft__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
  transition: all 0.25s ease;
}
a.ft__contact-item:hover {
  border-color: var(--accent);
  background: rgba(0,255,255,0.05);
  transform: translateX(4px);
}
.ft__contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  color: var(--accent);
  flex-shrink: 0;
}
.ft__contact-lbl {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.35);
  margin-bottom: 2px;
}
.ft__contact-val {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.82);
}

/* ── Newsletter ── */
.ft__newsletter-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 10px;
}
.ft__newsletter-form {
  display: flex;
  gap: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
}
.ft__newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
}
.ft__newsletter-form input::placeholder {
  color: rgba(255,255,255,0.3);
}
.ft__newsletter-form button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  flex-shrink: 0;
  background: var(--accent);
  border: none;
  cursor: pointer;
  color: #000;
  transition: all 0.25s ease;
}
.ft__newsletter-form button:hover {
  opacity: 0.85;
}

/* ── Bottom bar ── */
.ft__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 22px 0 28px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.ft__copy {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}
.ft__made {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}
.ft__heart {
  color: #ff4d6d;
  animation: ftHeartbeat 1.6s ease-in-out infinite;
}
@keyframes ftHeartbeat {
  0%,100% { transform: scale(1); }
  14%      { transform: scale(1.25); }
  28%      { transform: scale(1); }
  42%      { transform: scale(1.15); }
  56%      { transform: scale(1); }
}
.ft__bottom-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ft__bottom-right a {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.2s ease;
}
.ft__bottom-right a:hover { color: var(--accent); }
.ft__bottom-sep {
  color: rgba(255,255,255,0.2);
  font-size: 13px;
}

/* ── Scroll-to-top button ── */
.ft__top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(6,6,14,0.8);
  backdrop-filter: blur(12px);
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 900;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.ft__top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.ft__top:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,255,255,0.3);
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .ft__grid-main {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .ft__cta-strip {
    flex-direction: column;
    align-items: flex-start;
    padding: 48px 0 44px;
  }
  .ft__cta-heading { font-size: 28px; }
  .ft__grid-main {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-bottom: 48px;
  }
  .ft__inner { padding: 0 20px; }
  .ft__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .ft__top { bottom: 20px; right: 20px; }
}

@media (max-width: 480px) {
  .ft__cta-heading { font-size: 24px; }
  .ft__stats { gap: 14px; padding: 14px 16px; }
  .ft__stat-val { font-size: 18px; }
}

/* ── LIGHT MODE — text & element overrides ── */
html:not([data-theme="dark"]) .ft__brand-name        { color: #0f172a; }
html:not([data-theme="dark"]) .ft__brand-tag         { color: rgba(15,23,42,0.5); }
html:not([data-theme="dark"]) .ft__brand-desc        { color: rgba(15,23,42,0.65); }
html:not([data-theme="dark"]) .ft__stat-lbl          { color: rgba(15,23,42,0.5); }
html:not([data-theme="dark"]) .ft__social            { border-color: rgba(15,23,42,0.12); background: rgba(15,23,42,0.04); color: rgba(15,23,42,0.55); }
html:not([data-theme="dark"]) .ft__links a           { color: rgba(15,23,42,0.6); }
html:not([data-theme="dark"]) .ft__links a:hover     { color: #0f172a; }
html:not([data-theme="dark"]) .ft__contact-item      { border-color: rgba(15,23,42,0.08); background: rgba(15,23,42,0.03); }
html:not([data-theme="dark"]) .ft__contact-icon      { background: rgba(15,23,42,0.06); }
html:not([data-theme="dark"]) .ft__contact-lbl       { color: rgba(15,23,42,0.4); }
html:not([data-theme="dark"]) .ft__contact-val       { color: rgba(15,23,42,0.85); }
html:not([data-theme="dark"]) .ft__newsletter-label  { color: rgba(15,23,42,0.45); }
html:not([data-theme="dark"]) .ft__newsletter-form   { border-color: rgba(15,23,42,0.15); background: rgba(15,23,42,0.03); }
html:not([data-theme="dark"]) .ft__newsletter-form input { color: #0f172a; }
html:not([data-theme="dark"]) .ft__newsletter-form input::placeholder { color: rgba(15,23,42,0.35); }
html:not([data-theme="dark"]) .ft__bottom            { border-top-color: rgba(15,23,42,0.1); }
html:not([data-theme="dark"]) .ft__copy              { color: rgba(15,23,42,0.45); }
html:not([data-theme="dark"]) .ft__made              { color: rgba(15,23,42,0.4); }
html:not([data-theme="dark"]) .ft__bottom-right a    { color: rgba(15,23,42,0.45); }
html:not([data-theme="dark"]) .ft__bottom-sep        { color: rgba(15,23,42,0.2); }
html:not([data-theme="dark"]) .ft__btn--ghost        { color: rgba(15,23,42,0.75); border-color: rgba(15,23,42,0.2); }
html:not([data-theme="dark"]) .ft__top               { background: rgba(255,255,255,0.85); border-color: rgba(15,23,42,0.12); }
html:not([data-theme="dark"]) .ft__stats             { background: rgba(15,23,42,0.04); border-color: rgba(15,23,42,0.08); }
html:not([data-theme="dark"]) .ft__stat-sep          { background: rgba(15,23,42,0.12); }
html:not([data-theme="dark"]) a.ft__contact-item:hover { background: rgba(var(--accent-rgb, 30,64,175),0.06); }







/* =======================================================
   ABOUT PAGE — COMPLETE CSS
   Replaces ALL existing about-* CSS in style.css.

   Hero is now fully theme-aware via CSS variables.
   All sections use ab- prefix — consistent with sp- pattern.
======================================================= */


/* =====================================================
   PAGE RESET
===================================================== */

.about-page {
  margin: 0;
  padding: 0;
}


/* =======================================================
   ABOUT PAGE — COMPLETE CSS
   Replaces ALL existing about-* CSS in style.css.

   Hero is now fully theme-aware via CSS variables.
   All sections use ab- prefix — consistent with sp- pattern.
======================================================= */


/* =====================================================
   PAGE RESET
===================================================== */

.about-page {
  margin: 0;
  padding: 0;
}


/* =====================================================
   HERO — FULLY THEME-AWARE
===================================================== */

.about-hero {
  position: relative;
  padding: 80px 40px 120px;
  overflow: hidden;
  background: var(--bg);           /* ← uses CSS variable */
  transition: background 0.3s ease;
}

/* Animated grid — adapts to theme */
.about-hero__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  animation: ahGridMove 25s linear infinite;
  background-size: 60px 60px;
}

/* Dark mode grid: cyan + pink */
[data-theme="dark"] .about-hero__grid {
  background-image:
    linear-gradient(rgba(0,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,0,170,.07) 1px, transparent 1px);
}

/* Light mode grid: blue tones */
html:not([data-theme="dark"]) .about-hero__grid {
  background-image:
    linear-gradient(rgba(30,64,175,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,165,233,.05) 1px, transparent 1px);
}

@keyframes ahGridMove {
  from { background-position: 0 0; }
  to   { background-position: 0 60px; }
}

/* Cyan glow — dark: bright cyan, light: soft blue */
.about-hero__glow--cyan {
  position: absolute;
  top: -180px;
  left: -180px;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  filter: blur(150px);
  z-index: 0;
  pointer-events: none;
}

[data-theme="dark"] .about-hero__glow--cyan {
  background: radial-gradient(circle, rgba(0,255,255,0.32), transparent 70%);
}

html:not([data-theme="dark"]) .about-hero__glow--cyan {
  background: radial-gradient(circle, rgba(30,64,175,0.22), transparent 70%);
}

/* Pink glow — dark: magenta, light: sky blue */
.about-hero__glow--pink {
  position: absolute;
  bottom: -180px;
  right: -180px;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  filter: blur(150px);
  z-index: 0;
  pointer-events: none;
}

[data-theme="dark"] .about-hero__glow--pink {
  background: radial-gradient(circle, rgba(255,0,170,0.3), transparent 70%);
}

html:not([data-theme="dark"]) .about-hero__glow--pink {
  background: radial-gradient(circle, rgba(14,165,233,0.2), transparent 70%);
}

/* Layout */
.about-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 70px;
  align-items: center;
}

/* Image */
.about-hero__image img {
  width: 100%;
  max-width: 460px;
  border-radius: 22px;
  transition: box-shadow 0.3s ease;
}

[data-theme="dark"] .about-hero__image img {
  box-shadow:
    0 0 40px rgba(0,255,255,0.55),
    0 0 80px rgba(255,0,170,0.35);
}

html:not([data-theme="dark"]) .about-hero__image img {
  box-shadow:
    0 0 40px rgba(30,64,175,0.25),
    0 0 80px rgba(14,165,233,0.15);
}

/* Badge */
.about-badge {
  display: inline-block;
  margin-bottom: 20px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

[data-theme="dark"] .about-badge {
  background: rgba(255,255,255,0.05);
  color: #00ffff;
  border: 1px solid rgba(0,255,255,0.3);
}

html:not([data-theme="dark"]) .about-badge {
  background: rgba(29,78,216,0.08);
  color: #1d4ed8;
  border: 1px solid rgba(29,78,216,0.25);
}

/* Heading */
.about-title {
  font-size: 52px;
  line-height: 1.2;
  margin-bottom: 20px;
  font-weight: 700;
  color: var(--text);              /* ← theme-aware */
  transition: color 0.3s ease;
}

/* Gradient span — neon in dark, blue in light */
/* display:inline-block is REQUIRED for background-clip:text to work on spans */
.about-gradient-text {
  display: inline-block;
  color: transparent;
  /* background set per-theme below */
}

[data-theme="dark"] .about-gradient-text {
  /* background-size MUST be inside background shorthand to avoid reset */
  background-image: linear-gradient(90deg, #00ffff, #ff00aa, #00ffff);
  background-size: 300% auto;
  background-repeat: no-repeat;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: ahNeonMove 5s linear infinite;
}

html:not([data-theme="dark"]) .about-gradient-text {
  background-image: linear-gradient(90deg, #1d4ed8, #0ea5e9);
  background-size: 100% auto;
  background-repeat: no-repeat;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: none;
}

@keyframes ahNeonMove {
  0%   { background-position: 0% center; }
  100% { background-position: 300% center; }
}

/* Description */
.about-description {
  font-size: 18px;
  line-height: 1.75;
  margin-bottom: 36px;
  color: var(--text);              /* ← theme-aware */
  opacity: 0.88;
  transition: color 0.3s ease;
}

.about-description strong {
  color: var(--accent);
  font-weight: 700;
  opacity: 1;
}

/* Stats grid */
.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.about-stats div {
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);              /* ← theme-aware */
  transition: all 0.35s ease;
  backdrop-filter: blur(10px);
}

[data-theme="dark"] .about-stats div {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(0,255,255,0.2);
}

html:not([data-theme="dark"]) .about-stats div {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

/* Stats hover */
[data-theme="dark"] .about-stats div:hover {
  background: linear-gradient(90deg, #00ffff, #ff00aa);
  color: #000;
  border-color: transparent;
  transform: translateY(-5px);
  box-shadow: 0 0 20px #00ffff, 0 0 40px #ff00aa;
}

html:not([data-theme="dark"]) .about-stats div:hover {
  background: linear-gradient(90deg, #1d4ed8, #0ea5e9);
  color: #fff;
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(29,78,216,0.25);
}

/* Hero CTA buttons */
.about-hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Responsive hero */
@media (max-width: 900px) {
  .about-hero { padding: 60px 20px 80px; }

  .about-hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .about-hero__image { order: -1; }

  .about-hero__image img {
    max-width: 280px;
    margin: 0 auto;
    display: block;
  }

  .about-title { font-size: 36px; }

  .about-stats { grid-template-columns: 1fr 1fr; }

  .about-hero__cta { justify-content: center; }
}

@media (max-width: 480px) {
  .about-title { font-size: 28px; }
  .about-description { font-size: 15px; }
  .about-stats { grid-template-columns: 1fr; }
}


/* =====================================================
   SHARED TOKENS — ab- sections
===================================================== */

.ab-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) { .ab-inner { padding: 0 20px; } }

.ab-head {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 80px;
}

.ab-head h2 {
  font-size: 44px;
  font-weight: 800;
  margin: 8px 0 14px;
  color: var(--text);
  line-height: 1.2;
}

.ab-head h2 span { color: var(--accent); }

.ab-head p {
  font-size: 17px;
  opacity: 0.8;
  color: var(--text);
}

@media (max-width: 768px) {
  .ab-head h2 { font-size: 30px; }
  .ab-head p  { font-size: 15px; }
  .ab-head    { margin-bottom: 50px; }
}

/* Label chip */
.ab-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.9;
}

/* Shared buttons */
.ab-btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
}

.ab-btn--primary {
  background: var(--accent);
  color: #ffffff;
}

.ab-btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(34,211,238,0.4);
}

html:not([data-theme="dark"]) .ab-btn--primary:hover {
  box-shadow: 0 12px 28px rgba(30,64,175,0.35);
}

.ab-btn--ghost {
  border: 2px solid var(--accent);
  color: var(--accent);
  background: transparent;
}

.ab-btn--ghost:hover {
  background: var(--accent);
  color: #ffffff;
}

.ab-btn--large {
  padding: 17px 40px;
  font-size: 16px;
  border-radius: 10px;
}

/* Reusable glow blobs */
.ab-glow {
  position: absolute;
  width: 700px;
  height: 500px;
  filter: blur(150px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}

[data-theme="dark"] .ab-glow {
  background: radial-gradient(circle, rgba(34,211,238,0.2), transparent 70%);
}

html:not([data-theme="dark"]) .ab-glow {
  background: radial-gradient(circle, rgba(30,64,175,0.13), transparent 70%);
}

.ab-glow--left   { top: 50%; left: -220px;  transform: translateY(-50%); }
.ab-glow--right  { top: 50%; right: -220px; transform: translateY(-50%); }
.ab-glow--center { top: 50%; left: 50%;     transform: translate(-50%,-50%); }


/* =====================================================
   MY STORY
===================================================== */

.ab-story {
  position: relative;
  padding: 160px 0;
  background: var(--bg);
  overflow: hidden;
}

.ab-story__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.ab-story__text p {
  font-size: 16px;
  line-height: 1.9;
  opacity: 0.85;
  margin-bottom: 20px;
  color: var(--text);
}

.ab-story__text p strong {
  color: var(--accent);
  font-weight: 700;
  opacity: 1;
}

.ab-story__text p em {
  color: var(--accent);
  font-style: normal;
}

.ab-story__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.ab-story__tags span {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  transition: all 0.25s ease;
}

[data-theme="dark"] .ab-story__tags span {
  border: 1px solid rgba(34,211,238,0.28);
  background: rgba(34,211,238,0.06);
}

html:not([data-theme="dark"]) .ab-story__tags span {
  border: 1px solid rgba(30,64,175,0.2);
  background: rgba(30,64,175,0.06);
}

.ab-story__tags span:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* Timeline */
.ab-story__timeline {
  position: relative;
  padding-left: 36px;
}

.ab-story__timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  opacity: 0.35;
}

.ab-milestone {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 22px 0;
}

.ab-milestone::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 28px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent);
}

.ab-milestone__year {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
  padding-top: 3px;
}

.ab-milestone__body h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.ab-milestone__body p {
  font-size: 14px;
  line-height: 1.65;
  opacity: 0.72;
  color: var(--text);
}

@media (max-width: 900px) {
  .ab-story { padding: 100px 0; }
  .ab-story__grid { grid-template-columns: 1fr; gap: 50px; }
}


/* =====================================================
   NUMBERS
===================================================== */

.ab-numbers {
  position: relative;
  padding: 120px 0;
  background: var(--bg);
  overflow: hidden;
}

.ab-numbers__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.ab-stat {
  padding: 48px 24px;
  border-radius: 22px;
  text-align: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

html:not([data-theme="dark"]) .ab-stat {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

[data-theme="dark"] .ab-stat {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
}

.ab-stat:hover { transform: translateY(-10px); }

html:not([data-theme="dark"]) .ab-stat:hover {
  box-shadow: 0 20px 50px rgba(30,64,175,0.12);
  border-color: rgba(30,64,175,0.25);
}

[data-theme="dark"] .ab-stat:hover {
  box-shadow: 0 20px 50px rgba(34,211,238,0.15);
  border-color: rgba(34,211,238,0.35);
}

.ab-stat__value {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  margin-bottom: 12px;
}

.ab-stat__value .result-number {
  font-size: 54px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.ab-stat__unit {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
}

.ab-stat p {
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.8;
  max-width: 180px;
  margin: 0 auto;
  color: var(--text);
}

@media (max-width: 900px) { .ab-numbers__grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .ab-numbers { padding: 80px 0; } .ab-numbers__grid { grid-template-columns: 1fr; } }


/* =====================================================
   EXPERTISE
===================================================== */

.ab-expertise {
  position: relative;
  padding: 160px 0;
  background: var(--bg);
  overflow: hidden;
}

.ab-expertise__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.ab-skill {
  position: relative;
  padding: 36px 30px;
  border-radius: 22px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  overflow: hidden;
}

.ab-skill::before {
  content: attr(data-num);
  position: absolute;
  top: -10px;
  right: 18px;
  font-size: 88px;
  font-weight: 900;
  color: var(--accent);
  opacity: 0.05;
  line-height: 1;
  pointer-events: none;
  transition: opacity 0.35s;
}

.ab-skill:hover::before { opacity: 0.13; }

html:not([data-theme="dark"]) .ab-skill {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

[data-theme="dark"] .ab-skill {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
}

.ab-skill:hover { transform: translateY(-8px); }

html:not([data-theme="dark"]) .ab-skill:hover {
  box-shadow: 0 20px 50px rgba(30,64,175,0.12);
  border-color: rgba(30,64,175,0.25);
}

[data-theme="dark"] .ab-skill:hover {
  box-shadow: 0 20px 50px rgba(34,211,238,0.12);
  border-color: rgba(34,211,238,0.3);
}

.ab-skill__icon { font-size: 32px; margin-bottom: 16px; }

.ab-skill h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--accent);
}

.ab-skill > p {
  font-size: 13px;
  line-height: 1.7;
  opacity: 0.82;
  margin-bottom: 22px;
  color: var(--text);
}

.ab-skill__bar {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(128,128,128,0.15);
  margin-bottom: 10px;
  overflow: hidden;
}

.ab-skill__fill {
  height: 100%;
  width: var(--fill, 80%);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), rgba(34,211,238,0.55));
  animation: abFill 1.4s ease forwards;
}

@keyframes abFill {
  from { width: 0; }
  to   { width: var(--fill, 80%); }
}

.ab-skill__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ab-skill__level,
.ab-skill__pct {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.75;
}

@media (max-width: 1000px) { .ab-expertise__grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px)  { .ab-expertise { padding: 80px 0; } .ab-expertise__grid { grid-template-columns: 1fr; } }


/* =====================================================
   GROWTH FRAMEWORK
===================================================== */

.ab-framework {
  position: relative;
  padding: 160px 0;
  background: var(--bg);
  overflow: hidden;
}

.ab-framework__glow {
  position: absolute;
  width: 800px;
  height: 600px;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  filter: blur(140px);
  z-index: 0;
  pointer-events: none;
}

[data-theme="dark"] .ab-framework__glow {
  background: radial-gradient(ellipse, rgba(34,211,238,0.16), transparent 70%);
}

html:not([data-theme="dark"]) .ab-framework__glow {
  background: radial-gradient(ellipse, rgba(30,64,175,0.12), transparent 70%);
}

.ab-framework__steps {
  display: flex;
  flex-direction: column;
  max-width: 900px;
  margin: 0 auto;
}

.ab-fstep {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding: 36px 40px;
  border-radius: 20px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

html:not([data-theme="dark"]) .ab-fstep {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
}

[data-theme="dark"] .ab-fstep {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
}

.ab-fstep:hover {
  transform: translateX(10px);
  border-color: var(--accent);
}

.ab-fstep__num {
  font-size: 46px;
  font-weight: 900;
  color: var(--accent);
  opacity: 0.22;
  line-height: 1;
  min-width: 68px;
  transition: opacity 0.3s ease;
}

.ab-fstep:hover .ab-fstep__num { opacity: 1; }

.ab-fstep__body h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.ab-fstep__body p {
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.82;
  color: var(--text);
}

.ab-fstep__connector {
  width: 3px;
  height: 28px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  margin-left: 71px;
  opacity: 0.35;
}

@media (max-width: 768px) {
  .ab-framework { padding: 80px 0; }
  .ab-fstep { padding: 24px 20px; gap: 18px; }
  .ab-fstep__num { font-size: 34px; min-width: 50px; }
  .ab-fstep__connector { margin-left: 53px; }
}


/* =====================================================
   WHY CHOOSE ME
===================================================== */

.ab-why {
  position: relative;
  padding: 160px 0;
  background: var(--bg);
  overflow: hidden;
}

.ab-why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.ab-why__card {
  padding: 38px 28px;
  border-radius: 20px;
  transition: all 0.35s ease;
  cursor: default;
}

html:not([data-theme="dark"]) .ab-why__card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  color: #0f172a;
}

[data-theme="dark"] .ab-why__card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: #e0f2fe;
}

html:not([data-theme="dark"]) .ab-why__card:hover {
  background: #1e40af;
  color: #ffffff;
  border-color: #1e40af;
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(30,64,175,0.3);
}

[data-theme="dark"] .ab-why__card:hover {
  background: #22d3ee;
  color: #000000;
  border-color: #22d3ee;
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(34,211,238,0.35);
}

.ab-why__card:hover h3,
.ab-why__card:hover p { color: inherit; }

.ab-why__icon { font-size: 30px; margin-bottom: 16px; }

.ab-why__card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }

.ab-why__card p { font-size: 14px; line-height: 1.65; opacity: 0.88; }

@media (max-width: 900px) { .ab-why__grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .ab-why { padding: 80px 0; } .ab-why__grid { grid-template-columns: 1fr; } }


/* =====================================================
   WORK WITH ME
===================================================== */

.ab-process {
  position: relative;
  padding: 160px 0;
  overflow: hidden;
}

html:not([data-theme="dark"]) .ab-process {
  background: linear-gradient(180deg, #ffffff 0%, #f2f6ff 100%);
}

[data-theme="dark"] .ab-process {
  background: linear-gradient(180deg, #000000 0%, #02141a 100%);
}

.ab-process::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(128,128,128,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(128,128,128,.05) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: abGridMove 35s linear infinite;
  z-index: 0;
  pointer-events: none;
}

@keyframes abGridMove {
  from { background-position: 0 0; }
  to   { background-position: 0 60px; }
}

.ab-process::after {
  content: "";
  position: absolute;
  width: 800px;
  height: 800px;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  background: radial-gradient(circle, var(--accent), transparent 70%);
  filter: blur(160px);
  opacity: 0.12;
  animation: abGlowPulse 6s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

@keyframes abGlowPulse {
  0%,100% { opacity: 0.12; }
  50%      { opacity: 0.22; }
}

.ab-process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.ab-process__card {
  position: relative;
  padding: 50px 28px;
  border-radius: 24px;
  transition: all 0.45s ease;
  overflow: hidden;
  z-index: 1;
}

html:not([data-theme="dark"]) .ab-process__card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.07);
}

[data-theme="dark"] .ab-process__card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.11);
}

.ab-process__card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: 0.45s;
  z-index: -1;
}

.ab-process__card:hover::before { opacity: 1; }

.ab-process__card:hover {
  background: linear-gradient(135deg, var(--accent), #00ffff);
  transform: translateY(-14px);
  box-shadow: 0 0 40px var(--accent), 0 0 80px rgba(34,211,238,0.35);
}

.ab-process__num {
  font-size: 58px;
  font-weight: 900;
  color: var(--accent);
  opacity: 0.14;
  line-height: 1;
  margin-bottom: 18px;
  transition: 0.4s;
  position: relative;
  z-index: 2;
}

.ab-process__card:hover .ab-process__num {
  opacity: 1;
  color: #ffffff;
  text-shadow: 0 0 20px var(--accent);
}

.ab-process__card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--accent);
  position: relative;
  z-index: 2;
  transition: 0.4s;
}

.ab-process__card p {
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.88;
  position: relative;
  z-index: 2;
  transition: 0.4s;
  color: var(--text);
}

.ab-process__card:hover h3,
.ab-process__card:hover p { color: #ffffff; opacity: 1; }

@media (max-width: 1000px) { .ab-process__grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px)  { .ab-process { padding: 80px 0; } .ab-process__grid { grid-template-columns: 1fr; } }


/* =====================================================
   TESTIMONIALS
===================================================== */

.ab-testimonials {
  position: relative;
  padding: 140px 0;
  background: var(--bg);
  overflow: hidden;
}

.ab-testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.ab-tcard {
  padding: 38px 30px;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

html:not([data-theme="dark"]) .ab-tcard {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

[data-theme="dark"] .ab-tcard {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
}

.ab-tcard:hover { transform: translateY(-8px); }

html:not([data-theme="dark"]) .ab-tcard:hover {
  box-shadow: 0 20px 50px rgba(30,64,175,0.12);
  border-color: rgba(30,64,175,0.2);
}

[data-theme="dark"] .ab-tcard:hover {
  box-shadow: 0 20px 50px rgba(34,211,238,0.12);
  border-color: rgba(34,211,238,0.3);
}

.ab-tcard__stars { font-size: 15px; color: #f59e0b; letter-spacing: 2px; }

.ab-tcard__quote {
  font-size: 15px;
  line-height: 1.78;
  opacity: 0.88;
  color: var(--text);
  position: relative;
  padding-top: 24px;
}

.ab-tcard__quote::before {
  content: "\201C";
  position: absolute;
  top: -6px;
  left: 0;
  font-size: 48px;
  line-height: 1;
  color: var(--accent);
  font-family: Georgia, serif;
  opacity: 0.45;
}

.ab-tcard__author { display: flex; align-items: center; gap: 14px; }

.ab-tcard__author img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.ab-tcard__author strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.ab-tcard__author span { font-size: 13px; opacity: 0.62; color: var(--text); }

@media (max-width: 900px) {
  .ab-testimonials { padding: 80px 0; }
  .ab-testimonials__grid { grid-template-columns: 1fr; max-width: 600px; margin: 0 auto; }
}


/* =====================================================
   FINAL CTA
===================================================== */

.ab-cta {
  position: relative;
  padding: 180px 0;
  text-align: center;
  background: var(--bg);
  overflow: hidden;
}

.ab-cta__glow {
  position: absolute;
  width: 700px;
  height: 500px;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  filter: blur(130px);
  z-index: 0;
  pointer-events: none;
}

[data-theme="dark"] .ab-cta__glow {
  background: radial-gradient(circle, rgba(34,211,238,0.22), transparent 70%);
}

html:not([data-theme="dark"]) .ab-cta__glow {
  background: radial-gradient(circle, rgba(30,64,175,0.16), transparent 70%);
}

.ab-cta__inner {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 20px;
}

.ab-cta__inner h2 {
  font-size: 52px;
  font-weight: 900;
  line-height: 1.2;
  margin: 10px 0 18px;
  color: var(--text);
}

.ab-cta__inner h2 span { color: var(--accent); }

.ab-cta__inner p {
  font-size: 18px;
  opacity: 0.85;
  margin-bottom: 42px;
  color: var(--text);
}

.ab-cta__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.ab-cta__email { font-size: 14px; opacity: 0.7; color: var(--text); }

.ab-cta__email a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  margin-left: 6px;
}

.ab-cta__email a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .ab-cta { padding: 100px 0; }
  .ab-cta__inner h2 { font-size: 34px; }
  .ab-cta__inner p  { font-size: 16px; }
}





/* =======================================================
   SERVICES PAGE — page-services.php
   Add this block to style.css
   
   Theme: Ashtam Singhal Portfolio
   Variables inherited: --bg, --text, --accent, --highlight
======================================================= */


/* =====================================================
   SHARED UTILITIES
===================================================== */

.sp-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  opacity: 0.9;
}

.sp-gradient-text {
  background: linear-gradient(90deg, #1e40af, #0ea5e9 50%, #1e40af);
  background-size: 300% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: spGradMove 5s linear infinite;
}

[data-theme="dark"] .sp-gradient-text {
  background: linear-gradient(90deg, #22d3ee, #ff00aa 50%, #22d3ee);
  background-size: 300% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

@keyframes spGradMove {
  0%   { background-position: 0% center; }
  100% { background-position: 300% center; }
}

.sp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
}

.sp-btn--primary {
  background: var(--accent);
  color: #ffffff;
}

.sp-btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(34,211,238,0.4);
}

html:not([data-theme="dark"]) .sp-btn--primary:hover {
  box-shadow: 0 12px 30px rgba(30,64,175,0.35);
}

.sp-btn--ghost {
  border: 2px solid var(--accent);
  color: var(--accent);
  background: transparent;
}

.sp-btn--ghost:hover {
  background: var(--accent);
  color: #ffffff;
}

.sp-btn--large {
  padding: 18px 44px;
  font-size: 17px;
  border-radius: 10px;
}


/* =====================================================
   HERO
===================================================== */

.sp-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
}

/* Animated grid */
.sp-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(34,211,238,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,211,238,.06) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: spGridMove 30s linear infinite;
  z-index: 0;
}

html:not([data-theme="dark"]) .sp-hero__grid {
  background-image:
    linear-gradient(rgba(30,64,175,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,64,175,.05) 1px, transparent 1px);
}

@keyframes spGridMove {
  from { background-position: 0 0; }
  to   { background-position: 0 60px; }
}

/* Glows */
.sp-hero__glow {
  position: absolute;
  width: 600px;
  height: 600px;
  filter: blur(150px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

.sp-hero__glow--left {
  background: radial-gradient(circle, rgba(34,211,238,0.45), transparent 70%);
  top: -100px;
  left: -150px;
}

.sp-hero__glow--right {
  background: radial-gradient(circle, rgba(255,0,170,0.35), transparent 70%);
  bottom: -100px;
  right: -150px;
}

html:not([data-theme="dark"]) .sp-hero__glow--left {
  background: radial-gradient(circle, rgba(30,64,175,0.3), transparent 70%);
}

html:not([data-theme="dark"]) .sp-hero__glow--right {
  background: radial-gradient(circle, rgba(14,165,233,0.25), transparent 70%);
}

/* Inner */
.sp-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
  padding: 120px 40px 80px;
  text-align: center;
}

.sp-badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 24px;
  border: 1px solid rgba(34,211,238,0.35);
  background: rgba(34,211,238,0.08);
  color: var(--accent);
}

html:not([data-theme="dark"]) .sp-badge {
  border-color: rgba(30,64,175,0.25);
  background: rgba(30,64,175,0.07);
}

.sp-hero__title {
  font-size: 62px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 22px;
  color: var(--text);
}

.sp-hero__subtitle {
  font-size: 18px;
  line-height: 1.7;
  opacity: 0.85;
  max-width: 620px;
  margin: 0 auto 36px;
}

.sp-hero__cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

/* Stat pills */
.sp-hero__pills {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.sp-pill {
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(34,211,238,0.3);
  background: rgba(34,211,238,0.07);
  color: var(--text);
  transition: all 0.25s ease;
}

.sp-pill:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-3px);
}

html:not([data-theme="dark"]) .sp-pill {
  border-color: rgba(30,64,175,0.2);
  background: rgba(30,64,175,0.06);
}

@media (max-width: 768px) {
  .sp-hero__title { font-size: 38px; }
  .sp-hero__inner { padding: 100px 20px 60px; }
}


/* =====================================================
   SERVICES GRID SECTION
===================================================== */

.sp-services {
  padding: 140px 40px;
  background: var(--bg);
  position: relative;
}

.sp-services__head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 80px;
}

.sp-services__head h2 {
  font-size: 44px;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text);
}

.sp-services__head h2 span {
  color: var(--accent);
}

.sp-services__head p {
  font-size: 17px;
  opacity: 0.8;
}

/* Grid */
.sp-services__grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Card */
.sp-card {
  position: relative;
  padding: 40px 32px;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  overflow: hidden;
}

html:not([data-theme="dark"]) .sp-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

[data-theme="dark"] .sp-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
}

/* Number watermark */
.sp-card::before {
  content: attr(data-num);
  position: absolute;
  top: -10px;
  right: 20px;
  font-size: 90px;
  font-weight: 900;
  color: var(--accent);
  opacity: 0.06;
  line-height: 1;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.sp-card:hover::before {
  opacity: 0.14;
}

.sp-card:hover {
  transform: translateY(-10px);
}

html:not([data-theme="dark"]) .sp-card:hover {
  box-shadow: 0 20px 50px rgba(30,64,175,0.15);
  border-color: rgba(30,64,175,0.3);
}

[data-theme="dark"] .sp-card:hover {
  box-shadow: 0 20px 50px rgba(34,211,238,0.15);
  border-color: rgba(34,211,238,0.4);
}

/* Icon */
.sp-card__icon {
  font-size: 34px;
  margin-bottom: 18px;
}

/* Heading */
.sp-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--accent);
}

/* Body */
.sp-card > p {
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.85;
  margin-bottom: 22px;
}

/* List */
.sp-card__list {
  list-style: none;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sp-card__list li {
  font-size: 13px;
  padding-left: 18px;
  position: relative;
  opacity: 0.9;
  line-height: 1.5;
}

.sp-card__list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 12px;
}

/* Result tag */
.sp-card__result {
  margin-top: auto;
  margin-bottom: 20px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: rgba(34,211,238,0.1);
  color: var(--accent);
  border: 1px solid rgba(34,211,238,0.25);
}

html:not([data-theme="dark"]) .sp-card__result {
  background: rgba(30,64,175,0.08);
  border-color: rgba(30,64,175,0.2);
}

/* CTA link */
.sp-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  transition: gap 0.2s ease;
}

.sp-card__cta:hover {
  gap: 12px;
}

@media (max-width: 900px) {
  .sp-services__grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 600px) {
  .sp-services { padding: 80px 20px; }
  .sp-services__grid { grid-template-columns: 1fr; }
  .sp-services__head h2 { font-size: 32px; }
}


/* =====================================================
   PROCESS SECTION
===================================================== */

.sp-process {
  position: relative;
  padding: 160px 40px;
  overflow: hidden;
  background: var(--bg);
}

.sp-process__glow {
  position: absolute;
  width: 800px;
  height: 600px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(34,211,238,0.18), transparent 70%);
  filter: blur(140px);
  z-index: 0;
  pointer-events: none;
}

html:not([data-theme="dark"]) .sp-process__glow {
  background: radial-gradient(ellipse, rgba(30,64,175,0.14), transparent 70%);
}

.sp-process__inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.sp-process__head {
  text-align: center;
  margin-bottom: 90px;
}

.sp-process__head h2 {
  font-size: 44px;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text);
}

.sp-process__head h2 span {
  color: var(--accent);
}

.sp-process__head p {
  font-size: 17px;
  opacity: 0.8;
}

/* Steps */
.sp-process__steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sp-step {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding: 36px 40px;
  border-radius: 20px;
  transition: all 0.35s ease;
}

html:not([data-theme="dark"]) .sp-step {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
}

[data-theme="dark"] .sp-step {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
}

.sp-step:hover {
  transform: translateX(10px);
  border-color: var(--accent);
}

.sp-step__num {
  font-size: 48px;
  font-weight: 900;
  color: var(--accent);
  opacity: 0.25;
  line-height: 1;
  min-width: 70px;
  transition: opacity 0.3s ease;
}

.sp-step:hover .sp-step__num {
  opacity: 1;
}

.sp-step__body h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.sp-step__body p {
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.85;
}

/* Connector line */
.sp-step__connector {
  width: 3px;
  height: 32px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  margin-left: 73px;
  opacity: 0.4;
}

@media (max-width: 768px) {
  .sp-process { padding: 80px 20px; }
  .sp-process__head h2 { font-size: 32px; }
  .sp-step { padding: 24px 20px; gap: 18px; }
  .sp-step__num { font-size: 34px; min-width: 50px; }
  .sp-step__connector { margin-left: 53px; }
}


/* =====================================================
   TOOLS STRIP
===================================================== */

.sp-tools {
  padding: 50px 40px;
  border-top: 1px solid rgba(128,128,128,0.15);
  border-bottom: 1px solid rgba(128,128,128,0.15);
  background: var(--bg);
}

.sp-tools__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.sp-tools__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
  opacity: 0.8;
}

.sp-tools__row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.75;
}

.sp-dot {
  font-size: 6px;
  color: var(--accent);
  opacity: 0.5;
}

@media (max-width: 600px) {
  .sp-tools { padding: 40px 20px; }
  .sp-tools__inner { flex-direction: column; align-items: flex-start; }
}


/* =====================================================
   PRICING / ENGAGEMENT MODELS
===================================================== */

.sp-pricing {
  position: relative;
  padding: 160px 40px;
  overflow: hidden;
  background: var(--bg);
}

.sp-pricing__glow {
  position: absolute;
  width: 900px;
  height: 700px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(34,211,238,0.12), transparent 70%);
  filter: blur(160px);
  z-index: 0;
  pointer-events: none;
}

html:not([data-theme="dark"]) .sp-pricing__glow {
  background: radial-gradient(circle, rgba(30,64,175,0.1), transparent 70%);
}

.sp-pricing__inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
}

.sp-pricing__head {
  text-align: center;
  margin-bottom: 80px;
}

.sp-pricing__head h2 {
  font-size: 44px;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text);
}

.sp-pricing__head h2 span {
  color: var(--accent);
}

.sp-pricing__head p {
  font-size: 17px;
  opacity: 0.8;
}

/* Grid */
.sp-pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

/* Plan card */
.sp-plan {
  position: relative;
  padding: 44px 36px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: transform 0.35s ease;
}

html:not([data-theme="dark"]) .sp-plan {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
}

[data-theme="dark"] .sp-plan {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
}

.sp-plan:hover {
  transform: translateY(-8px);
}

/* Featured plan */
.sp-plan--featured {
  border: 2px solid var(--accent) !important;
  position: relative;
}

[data-theme="dark"] .sp-plan--featured {
  background: rgba(34,211,238,0.06) !important;
  box-shadow: 0 0 50px rgba(34,211,238,0.15);
}

html:not([data-theme="dark"]) .sp-plan--featured {
  background: rgba(30,64,175,0.04) !important;
  box-shadow: 0 10px 40px rgba(30,64,175,0.12);
}

/* Tag */
.sp-plan__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.sp-plan--featured .sp-plan__tag {
  background: var(--accent);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 999px;
}

.sp-plan h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text);
}

.sp-plan > p {
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.8;
  margin-bottom: 28px;
}

.sp-plan ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 36px;
  flex: 1;
}

.sp-plan ul li {
  font-size: 14px;
  opacity: 0.9;
  padding-left: 4px;
}

/* Plan CTA button */
.sp-plan__btn {
  display: block;
  text-align: center;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.sp-plan__btn:hover {
  background: var(--accent);
  color: #ffffff;
  transform: translateY(-2px);
}

.sp-plan--featured .sp-plan__btn {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.sp-plan--featured .sp-plan__btn:hover {
  box-shadow: 0 10px 30px rgba(34,211,238,0.4);
}

html:not([data-theme="dark"]) .sp-plan--featured .sp-plan__btn:hover {
  box-shadow: 0 10px 30px rgba(30,64,175,0.35);
}

@media (max-width: 900px) {
  .sp-pricing__grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .sp-pricing { padding: 80px 20px; }
  .sp-pricing__head h2 { font-size: 32px; }
}


/* =====================================================
   FAQ SECTION
===================================================== */

.sp-faq {
  padding: 120px 40px;
  background: var(--bg);
}

.sp-faq__inner {
  max-width: 800px;
  margin: 0 auto;
}

.sp-faq__head {
  text-align: center;
  margin-bottom: 60px;
}

.sp-faq__head h2 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 0;
  color: var(--text);
}

.sp-faq__head h2 span {
  color: var(--accent);
}

/* Items */
.sp-faq__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sp-faq__item {
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s ease;
}

html:not([data-theme="dark"]) .sp-faq__item {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.07);
}

[data-theme="dark"] .sp-faq__item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
}

.sp-faq__item summary {
  padding: 22px 28px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
}

.sp-faq__item summary::-webkit-details-marker { display: none; }

.sp-faq__item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--accent);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.sp-faq__item[open] summary::after {
  transform: rotate(45deg);
}

.sp-faq__item[open] {
  border-color: var(--accent);
}

.sp-faq__item[open] summary {
  color: var(--accent);
}

.sp-faq__item > p {
  padding: 0 28px 24px;
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.85;
}

@media (max-width: 600px) {
  .sp-faq { padding: 80px 20px; }
  .sp-faq__head h2 { font-size: 30px; }
  .sp-faq__item summary { padding: 18px 20px; font-size: 15px; }
  .sp-faq__item > p { padding: 0 20px 18px; }
}


/* =====================================================
   FINAL CTA SECTION
===================================================== */

.sp-cta {
  position: relative;
  padding: 180px 40px;
  text-align: center;
  overflow: hidden;
  background: var(--bg);
}

.sp-cta__glow {
  position: absolute;
  width: 700px;
  height: 500px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(34,211,238,0.2), transparent 70%);
  filter: blur(130px);
  z-index: 0;
  pointer-events: none;
}

html:not([data-theme="dark"]) .sp-cta__glow {
  background: radial-gradient(circle, rgba(30,64,175,0.15), transparent 70%);
}

.sp-cta__inner {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.sp-cta h2 {
  font-size: 56px;
  font-weight: 900;
  margin-bottom: 18px;
  color: var(--text);
}

.sp-cta p {
  font-size: 18px;
  opacity: 0.85;
  margin-bottom: 42px;
}

.sp-cta__email {
  margin-top: 28px;
  font-size: 14px;
  opacity: 0.7;
}

.sp-cta__email a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  margin-left: 6px;
}

.sp-cta__email a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .sp-cta { padding: 100px 20px; }
  .sp-cta h2 { font-size: 36px; }
  .sp-cta p { font-size: 16px; }
}







/* =======================================================
   CONTACT PAGE — COMPLETE CSS
   Template: page-contact.php
   Add to style.css — uses existing --bg, --text, --accent vars
======================================================= */


/* =====================================================
   SHARED TOKENS
===================================================== */

.ct-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) { .ct-inner { padding: 0 20px; } }

.ct-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.9;
  margin-bottom: 12px;
}

.ct-glow {
  position: absolute;
  width: 700px;
  height: 500px;
  filter: blur(150px);
  z-index: 0;
  pointer-events: none;
}

[data-theme="dark"] .ct-glow {
  background: radial-gradient(circle, rgba(34,211,238,0.18), transparent 70%);
}

html:not([data-theme="dark"]) .ct-glow {
  background: radial-gradient(circle, rgba(30,64,175,0.12), transparent 70%);
}

.ct-glow--center {
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}


/* =====================================================
   HERO
===================================================== */

.ct-hero {
  position: relative;
  padding: 120px 40px 100px;
  background: var(--bg);
  overflow: hidden;
  text-align: center;
}

/* Animated grid */
.ct-hero__grid {
  position: absolute;
  inset: 0;
  background-size: 60px 60px;
  animation: ctGridMove 30s linear infinite;
  z-index: 0;
  pointer-events: none;
}

[data-theme="dark"] .ct-hero__grid {
  background-image:
    linear-gradient(rgba(34,211,238,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,211,238,.06) 1px, transparent 1px);
}

html:not([data-theme="dark"]) .ct-hero__grid {
  background-image:
    linear-gradient(rgba(30,64,175,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,64,175,.05) 1px, transparent 1px);
}

@keyframes ctGridMove {
  from { background-position: 0 0; }
  to   { background-position: 0 60px; }
}

/* Glows */
.ct-hero__glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(150px);
  z-index: 0;
  pointer-events: none;
}

[data-theme="dark"] .ct-hero__glow--left  { background: radial-gradient(circle, rgba(34,211,238,0.35), transparent 70%); top: -100px; left: -150px; }
[data-theme="dark"] .ct-hero__glow--right { background: radial-gradient(circle, rgba(255,0,170,0.28), transparent 70%); bottom: -100px; right: -150px; }
html:not([data-theme="dark"]) .ct-hero__glow--left  { background: radial-gradient(circle, rgba(30,64,175,0.25), transparent 70%); top: -100px; left: -150px; }
html:not([data-theme="dark"]) .ct-hero__glow--right { background: radial-gradient(circle, rgba(14,165,233,0.2), transparent 70%); bottom: -100px; right: -150px; }

.ct-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
}

.ct-hero__title {
  font-size: 58px;
  font-weight: 900;
  line-height: 1.15;
  margin: 10px 0 20px;
  color: var(--text);
}

.ct-hero__title span { color: var(--accent); }

.ct-hero__sub {
  font-size: 18px;
  opacity: 0.82;
  color: var(--text);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .ct-hero { padding: 100px 20px 70px; }
  .ct-hero__title { font-size: 36px; }
  .ct-hero__sub { font-size: 16px; }
}


/* =====================================================
   CONTACT CARDS ROW
===================================================== */

.ct-cards {
  padding: 0 0 80px;
  background: var(--bg);
}

.ct-cards__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Base card */
.ct-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 24px;
  border-radius: 20px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  color: var(--text);
}

html:not([data-theme="dark"]) .ct-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

[data-theme="dark"] .ct-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
}

.ct-card:hover {
  transform: translateY(-8px);
}

/* Icon circle */
.ct-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.ct-card:hover .ct-card__icon { transform: scale(1.1); }

/* Per-brand colors */
.ct-card--whatsapp .ct-card__icon { background: rgba(37,211,102,0.15); color: #25d366; }
.ct-card--email    .ct-card__icon { background: rgba(var(--accent-rgb, 34,211,238),0.15); color: var(--accent); }
.ct-card--instagram .ct-card__icon { background: rgba(225,48,108,0.15); color: #e1306c; }
.ct-card--linkedin  .ct-card__icon { background: rgba(10,102,194,0.15); color: #0a66c2; }

.ct-card--whatsapp:hover  { border-color: #25d366; box-shadow: 0 16px 40px rgba(37,211,102,0.2); }
.ct-card--email:hover     { border-color: var(--accent); box-shadow: 0 16px 40px rgba(34,211,238,0.18); }
.ct-card--instagram:hover { border-color: #e1306c; box-shadow: 0 16px 40px rgba(225,48,108,0.2); }
.ct-card--linkedin:hover  { border-color: #0a66c2; box-shadow: 0 16px 40px rgba(10,102,194,0.2); }

.ct-card__body h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 3px;
  color: var(--text);
}

.ct-card__body p {
  font-size: 13px;
  opacity: 0.7;
  margin-bottom: 6px;
  color: var(--text);
}

.ct-card__action {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.5px;
}

@media (max-width: 900px) { .ct-cards__grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 500px) { .ct-cards__grid { grid-template-columns: 1fr; } }


/* =====================================================
   MAIN — FORM + SIDEBAR
===================================================== */

.ct-main {
  position: relative;
  padding: 80px 0 120px;
  background: var(--bg);
  overflow: hidden;
}

.ct-main__grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: start;
}

/* ---- FORM WRAP ---- */
.ct-form-wrap { }

.ct-form-head {
  margin-bottom: 40px;
}

.ct-form-head h2 {
  font-size: 36px;
  font-weight: 800;
  margin: 8px 0 12px;
  color: var(--text);
  line-height: 1.2;
}

.ct-form-head h2 span { color: var(--accent); }

.ct-form-head p {
  font-size: 16px;
  opacity: 0.78;
  color: var(--text);
}

/* Banner messages */
.ct-success-banner,
.ct-error-banner {
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 24px;
}

.ct-success-banner {
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.35);
  color: #16a34a;
}

[data-theme="dark"] .ct-success-banner { color: #4ade80; }

.ct-error-banner {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #dc2626;
}

[data-theme="dark"] .ct-error-banner { color: #f87171; }

/* Form rows */
.ct-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

/* Field */
.ct-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ct-field--full { margin-bottom: 20px; }

.ct-field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.3px;
}

.ct-field label span {
  color: var(--accent);
  margin-left: 2px;
}

/* Inputs, selects, textarea */
.ct-field input,
.ct-field select,
.ct-field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  appearance: none;
  -webkit-appearance: none;
}

html:not([data-theme="dark"]) .ct-field input,
html:not([data-theme="dark"]) .ct-field select,
html:not([data-theme="dark"]) .ct-field textarea {
  background: #f8fafc;
  border: 1.5px solid rgba(0,0,0,0.12);
}

[data-theme="dark"] .ct-field input,
[data-theme="dark"] .ct-field select,
[data-theme="dark"] .ct-field textarea {
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.15);
}

.ct-field input:focus,
.ct-field select:focus,
.ct-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34,211,238,0.12);
}

html:not([data-theme="dark"]) .ct-field input:focus,
html:not([data-theme="dark"]) .ct-field select:focus,
html:not([data-theme="dark"]) .ct-field textarea:focus {
  box-shadow: 0 0 0 3px rgba(30,64,175,0.1);
}

/* Select arrow */
.ct-field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

/* =====================================================
   SELECT DROPDOWN OPTIONS — DARK MODE FIX
   Browser-native <option> elements need explicit
   background/color or they inherit OS white background
===================================================== */

/* Dark mode: dark background, white text for all options */
[data-theme="dark"] .ct-field select option {
  background-color: #111827;
  color: #f1f5f9;
}

/* Disabled placeholder option in dark mode */
[data-theme="dark"] .ct-field select option:disabled {
  color: #4b5563;
}

/* Checked/selected option highlight in dark mode */
[data-theme="dark"] .ct-field select option:checked {
  background-color: #164e63;
  color: #22d3ee;
}

/* Light mode: clean white background */
html:not([data-theme="dark"]) .ct-field select option {
  background-color: #ffffff;
  color: #0f172a;
}

html:not([data-theme="dark"]) .ct-field select option:disabled {
  color: #94a3b8;
}

html:not([data-theme="dark"]) .ct-field select option:checked {
  background-color: #eff6ff;
  color: #1e40af;
}

/* Date input */
.ct-field input[type="date"] {
  cursor: pointer;
}

.ct-field input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.5;
  cursor: pointer;
  filter: invert(0.4);
}

[data-theme="dark"] .ct-field input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.8);
}

/* Textarea */
.ct-field textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

/* Placeholder colors */
.ct-field input::placeholder,
.ct-field textarea::placeholder { opacity: 0.4; }

/* Submit button */
.ct-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  border-radius: 10px;
  border: none;
  background: var(--accent);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

.ct-submit:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(34,211,238,0.4);
}

html:not([data-theme="dark"]) .ct-submit:hover:not(:disabled) {
  box-shadow: 0 14px 34px rgba(30,64,175,0.35);
}

.ct-submit:disabled { opacity: 0.65; cursor: not-allowed; }

.ct-submit__arrow {
  font-size: 18px;
  transition: transform 0.2s ease;
}

.ct-submit:hover .ct-submit__arrow { transform: translateX(4px); }

/* Note below button */
.ct-form__note {
  text-align: center;
  font-size: 13px;
  opacity: 0.55;
  margin-top: 14px;
  color: var(--text);
}

/* Responsive form */
@media (max-width: 600px) {
  .ct-form__row { grid-template-columns: 1fr; gap: 16px; }
}


/* ---- SIDEBAR ---- */
.ct-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 100px;
}

/* Info card */
.ct-info-card,
.ct-social-card {
  padding: 30px 28px;
  border-radius: 20px;
}

html:not([data-theme="dark"]) .ct-info-card,
html:not([data-theme="dark"]) .ct-social-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

[data-theme="dark"] .ct-info-card,
[data-theme="dark"] .ct-social-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
}

.ct-info-card h3,
.ct-social-card h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--accent);
}

/* Info list */
.ct-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ct-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.ct-info-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.ct-info-list strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent);
  margin-bottom: 2px;
  opacity: 0.85;
}

.ct-info-list a,
.ct-info-list span {
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  opacity: 0.85;
  line-height: 1.4;
  word-break: break-all;
}

.ct-info-list a:hover { color: var(--accent); }

/* Social links */
.ct-social-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ct-social-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s ease;
  color: var(--text);
}

html:not([data-theme="dark"]) .ct-social-link {
  background: #f8fafc;
  border: 1px solid rgba(0,0,0,0.06);
}

[data-theme="dark"] .ct-social-link {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.ct-social-link--wa:hover  { background: rgba(37,211,102,0.12); border-color: #25d366; color: #25d366; }
.ct-social-link--ig:hover  { background: rgba(225,48,108,0.1);  border-color: #e1306c; color: #e1306c; }
.ct-social-link--li:hover  { background: rgba(10,102,194,0.1);  border-color: #0a66c2; color: #0a66c2; }
.ct-social-link--web:hover { background: rgba(34,211,238,0.1);  border-color: var(--accent); color: var(--accent); }

/* Availability badge */
.ct-avail-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  border-radius: 16px;
}

html:not([data-theme="dark"]) .ct-avail-card {
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.25);
}

[data-theme="dark"] .ct-avail-card {
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.2);
}

.ct-avail-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(34,197,94,0.25);
  animation: ctPulse 2s ease-in-out infinite;
}

@keyframes ctPulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(34,197,94,0.25); }
  50%      { box-shadow: 0 0 0 8px rgba(34,197,94,0.1);  }
}

.ct-avail-card strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #16a34a;
  margin-bottom: 2px;
}

[data-theme="dark"] .ct-avail-card strong { color: #4ade80; }

.ct-avail-card p {
  font-size: 13px;
  opacity: 0.7;
  color: var(--text);
  margin: 0;
}

/* Responsive main grid */
@media (max-width: 1000px) {
  .ct-main__grid { grid-template-columns: 1fr; }
  .ct-sidebar { position: static; }
}

@media (max-width: 768px) {
  .ct-main { padding: 60px 0 80px; }
  .ct-form-head h2 { font-size: 28px; }
}


/* =====================================================
   MAP SECTION
===================================================== */

.ct-map {
  padding: 80px 0 120px;
  background: var(--bg);
}

.ct-map-head {
  text-align: center;
  margin-bottom: 40px;
}

.ct-map-head h2 {
  font-size: 36px;
  font-weight: 800;
  margin: 8px 0 10px;
  color: var(--text);
}

.ct-map-head h2 span { color: var(--accent); }

.ct-map-head p {
  font-size: 16px;
  opacity: 0.75;
  color: var(--text);
}

.ct-map-frame {
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid rgba(128,128,128,0.15);
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  transition: border-color 0.3s ease;
}

.ct-map-frame:hover { border-color: var(--accent); }

.ct-map-frame iframe { display: block; }

@media (max-width: 768px) {
  .ct-map { padding: 60px 0 80px; }
  .ct-map-head h2 { font-size: 26px; }
  .ct-map-frame iframe { height: 280px; }
}


/* =====================================================
   SUCCESS POPUP
===================================================== */

.ct-popup__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.ct-popup__overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.ct-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  z-index: 9999;
  width: 90%;
  max-width: 480px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(.22,.61,.36,1);
}

.ct-popup.is-open {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%);
}

.ct-popup__box {
  padding: 50px 40px;
  border-radius: 24px;
  text-align: center;
}

html:not([data-theme="dark"]) .ct-popup__box {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 30px 80px rgba(0,0,0,0.2);
}

[data-theme="dark"] .ct-popup__box {
  background: #0a0a0a;
  border: 1px solid rgba(34,211,238,0.35);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 60px rgba(34,211,238,0.12);
}

.ct-popup__icon {
  font-size: 52px;
  margin-bottom: 16px;
  animation: ctBounce 0.6s ease 0.3s both;
}

@keyframes ctBounce {
  0%   { transform: scale(0.5); opacity: 0; }
  70%  { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.ct-popup__box h3 {
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 14px;
  color: var(--text);
}

.ct-popup__box p {
  font-size: 15px;
  line-height: 1.75;
  opacity: 0.85;
  color: var(--text);
  margin-bottom: 12px;
}

.ct-popup__sub {
  font-size: 13px !important;
  opacity: 0.65 !important;
}

.ct-popup__sub a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.ct-popup__sub a:hover { text-decoration: underline; }

.ct-popup__close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 14px 36px;
  border-radius: 10px;
  border: none;
  background: var(--accent);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ct-popup__close:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(34,211,238,0.4);
}

html:not([data-theme="dark"]) .ct-popup__close:hover {
  box-shadow: 0 10px 28px rgba(30,64,175,0.35);
}

@media (max-width: 480px) {
  .ct-popup__box { padding: 36px 24px; }
  .ct-popup__box h3 { font-size: 22px; }
}





/* =======================================================
   PORTFOLIO PAGE — COMPLETE CSS
   Template: page-portfolio.php
   Add to style.css — uses --bg, --text, --accent vars
======================================================= */


/* =====================================================
   SHARED TOKENS
===================================================== */

.pf-inner {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) { .pf-inner { padding: 0 20px; } }

.pf-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.9;
  margin-bottom: 12px;
}

.pf-section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 70px;
}

.pf-section-head h2 {
  font-size: 42px;
  font-weight: 800;
  margin: 8px 0 14px;
  color: var(--text);
  line-height: 1.2;
}

.pf-section-head h2 span { color: var(--accent); }

.pf-section-head p {
  font-size: 16px;
  opacity: 0.75;
  color: var(--text);
}

@media (max-width: 768px) {
  .pf-section-head h2 { font-size: 28px; }
  .pf-section-head { margin-bottom: 40px; }
}


/* =====================================================
   HERO
===================================================== */

.pf-hero {
  position: relative;
  padding: 130px 40px 100px;
  background: var(--bg);
  overflow: hidden;
  text-align: center;
}

.pf-hero__grid {
  position: absolute;
  inset: 0;
  background-size: 60px 60px;
  animation: pfGridMove 30s linear infinite;
  z-index: 0;
  pointer-events: none;
}

[data-theme="dark"] .pf-hero__grid {
  background-image:
    linear-gradient(rgba(34,211,238,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,211,238,.055) 1px, transparent 1px);
}

html:not([data-theme="dark"]) .pf-hero__grid {
  background-image:
    linear-gradient(rgba(30,64,175,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,64,175,.045) 1px, transparent 1px);
}

@keyframes pfGridMove {
  from { background-position: 0 0; }
  to   { background-position: 0 60px; }
}

.pf-hero__glow {
  position: absolute;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  filter: blur(160px);
  z-index: 0;
  pointer-events: none;
}

[data-theme="dark"] .pf-hero__glow--l { background: radial-gradient(circle, rgba(34,211,238,0.35), transparent 70%); top: -120px; left: -160px; }
[data-theme="dark"] .pf-hero__glow--r { background: radial-gradient(circle, rgba(255,0,170,0.28), transparent 70%); bottom: -100px; right: -160px; }
html:not([data-theme="dark"]) .pf-hero__glow--l { background: radial-gradient(circle, rgba(30,64,175,0.25), transparent 70%); top: -120px; left: -160px; }
html:not([data-theme="dark"]) .pf-hero__glow--r { background: radial-gradient(circle, rgba(14,165,233,0.2), transparent 70%); bottom: -100px; right: -160px; }

.pf-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
}

.pf-hero__title {
  font-size: 62px;
  font-weight: 900;
  line-height: 1.12;
  margin: 10px 0 20px;
  color: var(--text);
}

.pf-hero__title span { color: var(--accent); }

.pf-hero__sub {
  font-size: 18px;
  opacity: 0.78;
  color: var(--text);
  max-width: 560px;
  margin: 0 auto 60px;
  line-height: 1.7;
}

/* Hero stats bar */
.pf-hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  padding: 28px 40px;
  border-radius: 20px;
  gap: 0;
}

html:not([data-theme="dark"]) .pf-hero__stats {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 8px 40px rgba(0,0,0,0.06);
}

[data-theme="dark"] .pf-hero__stats {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
}

.pf-hstat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 40px;
  flex: 1;
  min-width: 100px;
}

.pf-hstat__num {
  font-size: 38px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.pf-hstat__num em {
  font-style: normal;
  font-size: 22px;
}

.pf-hstat__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.6;
  color: var(--text);
}

.pf-hstat__divider {
  width: 1px;
  height: 40px;
  background: rgba(128,128,128,0.25);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .pf-hero { padding: 100px 20px 70px; }
  .pf-hero__title { font-size: 36px; }
  .pf-hero__stats { padding: 20px; gap: 10px; }
  .pf-hstat { padding: 0 16px; }
  .pf-hstat__num { font-size: 28px; }
  .pf-hstat__divider { height: 30px; }
}


/* =====================================================
   FILTER BAR
===================================================== */

.pf-filters {
  padding: 0 0 50px;
  background: var(--bg);
  position: sticky;
  top: 68px;
  z-index: 50;
  border-bottom: 1px solid rgba(128,128,128,0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

html:not([data-theme="dark"]) .pf-filters {
  background: rgba(255,255,255,0.9);
}

[data-theme="dark"] .pf-filters {
  background: rgba(0,0,0,0.85);
}

.pf-filters__row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 20px;
}

.pf-filter {
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all 0.25s ease;
  color: var(--text);
  background: transparent;
}

html:not([data-theme="dark"]) .pf-filter {
  border: 1.5px solid rgba(0,0,0,0.12);
}

[data-theme="dark"] .pf-filter {
  border: 1.5px solid rgba(255,255,255,0.14);
}

.pf-filter:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pf-filter.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

[data-theme="dark"] .pf-filter.is-active { color: #000; }

@media (max-width: 600px) {
  .pf-filters { top: 60px; }
  .pf-filter { padding: 8px 14px; font-size: 12px; }
}


/* =====================================================
   PORTFOLIO GRID
===================================================== */

.pf-grid-section {
  padding: 70px 0 120px;
  background: var(--bg);
}

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

/* ---- CARD ---- */
.pf-card {
  border-radius: 22px;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, opacity 0.35s ease;
  position: relative;
  /* JS filter animation */
  opacity: 1;
  transform: translateY(0);
}

.pf-card.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  position: absolute;
  visibility: hidden;
}

/* Featured card spans 2 columns */
.pf-card--featured {
  grid-column: span 2;
}

html:not([data-theme="dark"]) .pf-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

[data-theme="dark"] .pf-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
}

.pf-card:hover {
  transform: translateY(-10px);
}

html:not([data-theme="dark"]) .pf-card:hover {
  box-shadow: 0 24px 60px rgba(30,64,175,0.14);
  border-color: rgba(30,64,175,0.2);
}

[data-theme="dark"] .pf-card:hover {
  box-shadow: 0 24px 60px rgba(34,211,238,0.14);
  border-color: rgba(34,211,238,0.28);
}

/* IMAGE WRAP */
.pf-card__img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: rgba(128,128,128,0.1);
}

.pf-card--featured .pf-card__img-wrap {
  aspect-ratio: 21/9;
}

.pf-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
  display: block;
}

.pf-card:hover .pf-card__img-wrap img {
  transform: scale(1.06);
}

/* Overlay on hover */
.pf-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pf-card:hover .pf-card__overlay { opacity: 1; }

.pf-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.pf-card__tags span {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255,255,255,0.18);
  color: #fff;
  backdrop-filter: blur(4px);
}

.pf-card__view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  width: fit-content;
  transition: transform 0.2s ease;
}

[data-theme="dark"] .pf-card__view-btn { color: #000; }

.pf-card__view-btn:hover { transform: translateX(4px); }

/* Featured badge */
.pf-card__featured-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(255,170,0,0.92);
  color: #000;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
}

/* CARD BODY */
.pf-card__body { padding: 26px 28px 28px; }

.pf-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.pf-card__industry {
  font-size: 12px;
  opacity: 0.62;
  color: var(--text);
}

/* Badge pills */
.pf-card__badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.pf-badge--seo     { background: rgba(34,211,238,0.14); color: #22d3ee; }
.pf-badge--ppc     { background: rgba(255,170,0,0.14);  color: #f59e0b; }
.pf-badge--social  { background: rgba(225,48,108,0.14); color: #e1306c; }
.pf-badge--funnel  { background: rgba(139,92,246,0.14); color: #a78bfa; }
.pf-badge--local   { background: rgba(34,197,94,0.14);  color: #22c55e; }

html:not([data-theme="dark"]) .pf-badge--seo    { background: rgba(30,64,175,0.1); color: #1e40af; }
html:not([data-theme="dark"]) .pf-badge--funnel { background: rgba(109,40,217,0.1); color: #6d28d9; }

.pf-card__title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text);
  line-height: 1.3;
}

.pf-card__desc {
  font-size: 13px;
  line-height: 1.7;
  opacity: 0.72;
  color: var(--text);
  margin-bottom: 20px;
}

/* Results strip */
.pf-card__results {
  display: flex;
  gap: 0;
  border-top: 1px solid rgba(128,128,128,0.12);
  padding-top: 18px;
}

.pf-result {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
  text-align: center;
  padding: 0 8px;
}

.pf-result + .pf-result {
  border-left: 1px solid rgba(128,128,128,0.12);
}

.pf-result__val {
  font-size: 20px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.pf-result__val em {
  font-style: normal;
  font-size: 13px;
}

.pf-result__key {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.55;
  color: var(--text);
}

/* No results */
.pf-no-results {
  text-align: center;
  padding: 80px 20px;
  font-size: 16px;
  opacity: 0.6;
  color: var(--text);
}

.pf-no-results a { color: var(--accent); font-weight: 700; text-decoration: none; }

@media (max-width: 1000px) {
  .pf-grid { grid-template-columns: repeat(2,1fr); }
  .pf-card--featured { grid-column: span 2; }
}

@media (max-width: 640px) {
  .pf-grid { grid-template-columns: 1fr; }
  .pf-card--featured { grid-column: span 1; }
  .pf-card--featured .pf-card__img-wrap { aspect-ratio: 16/9; }
  .pf-grid-section { padding: 50px 0 80px; }
}


/* =====================================================
   PROCESS
===================================================== */

.pf-process {
  position: relative;
  padding: 120px 0;
  background: var(--bg);
  overflow: hidden;
}

.pf-process__glow {
  position: absolute;
  width: 800px;
  height: 600px;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  filter: blur(150px);
  z-index: 0;
  pointer-events: none;
}

[data-theme="dark"] .pf-process__glow {
  background: radial-gradient(ellipse, rgba(34,211,238,0.15), transparent 70%);
}

html:not([data-theme="dark"]) .pf-process__glow {
  background: radial-gradient(ellipse, rgba(30,64,175,0.1), transparent 70%);
}

.pf-process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  z-index: 2;
}

/* Connector line between steps */
.pf-process__steps::before {
  content: "";
  position: absolute;
  top: 30px;
  left: calc(12.5% + 14px);
  right: calc(12.5% + 14px);
  height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(34,211,238,0.2));
  opacity: 0.35;
  z-index: 0;
}

.pf-process__step {
  position: relative;
  text-align: center;
  padding: 0 20px 0;
  z-index: 1;
}

.pf-process__num {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  color: var(--accent);
  margin: 0 auto 20px;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

html:not([data-theme="dark"]) .pf-process__num {
  background: #ffffff;
  border: 2px solid rgba(30,64,175,0.3);
  box-shadow: 0 4px 16px rgba(30,64,175,0.1);
}

[data-theme="dark"] .pf-process__num {
  background: rgba(34,211,238,0.08);
  border: 2px solid rgba(34,211,238,0.35);
  box-shadow: 0 0 20px rgba(34,211,238,0.15);
}

.pf-process__step:hover .pf-process__num {
  transform: scale(1.15);
  box-shadow: 0 0 30px rgba(34,211,238,0.4);
}

html:not([data-theme="dark"]) .pf-process__step:hover .pf-process__num {
  box-shadow: 0 8px 24px rgba(30,64,175,0.25);
}

.pf-process__line {
  width: 2px;
  height: 20px;
  background: var(--accent);
  opacity: 0.3;
  margin: 0 auto 16px;
}

.pf-process__step h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.pf-process__step p {
  font-size: 13px;
  line-height: 1.7;
  opacity: 0.7;
  color: var(--text);
}

@media (max-width: 768px) {
  .pf-process { padding: 80px 0; }
  .pf-process__steps { grid-template-columns: repeat(2,1fr); gap: 40px; }
  .pf-process__steps::before { display: none; }
}

@media (max-width: 480px) {
  .pf-process__steps { grid-template-columns: 1fr; }
}


/* =====================================================
   INDUSTRIES
===================================================== */

.pf-industries {
  padding: 100px 0;
  background: var(--bg);
}

.pf-ind__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.pf-ind {
  padding: 18px 20px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  transition: all 0.25s ease;
  cursor: default;
}

html:not([data-theme="dark"]) .pf-ind {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.07);
}

[data-theme="dark"] .pf-ind {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
}

.pf-ind:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-4px);
}

html:not([data-theme="dark"]) .pf-ind:hover {
  box-shadow: 0 10px 30px rgba(30,64,175,0.1);
}

[data-theme="dark"] .pf-ind:hover {
  box-shadow: 0 10px 30px rgba(34,211,238,0.1);
}

@media (max-width: 900px) { .pf-ind__grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 640px) { .pf-ind__grid { grid-template-columns: repeat(2,1fr); } .pf-industries { padding: 70px 0; } }
@media (max-width: 400px) { .pf-ind__grid { grid-template-columns: 1fr; } }


/* =====================================================
   REVIEWS MARQUEE
===================================================== */

.pf-reviews {
  padding: 100px 0;
  background: var(--bg);
  overflow: hidden;
}

.pf-reviews__track-wrap {
  width: 100%;
  overflow: hidden;
  margin-top: 10px;
  /* edge fade */
  mask-image: linear-gradient(to right, transparent, black 120px, black calc(100% - 120px), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 120px, black calc(100% - 120px), transparent);
}

.pf-reviews__track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: pfReviewScroll 36s linear infinite;
}

.pf-reviews__track:hover {
  animation-play-state: paused;
}

@keyframes pfReviewScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.pf-review {
  min-width: 320px;
  max-width: 320px;
  padding: 28px;
  border-radius: 18px;
  flex-shrink: 0;
}

html:not([data-theme="dark"]) .pf-review {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

[data-theme="dark"] .pf-review {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
}

.pf-review__stars { font-size: 14px; color: #f59e0b; letter-spacing: 2px; margin-bottom: 12px; }

.pf-review p {
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.85;
  color: var(--text);
  margin-bottom: 16px;
  position: relative;
  padding-top: 20px;
}

.pf-review p::before {
  content: "\201C";
  position: absolute;
  top: -4px;
  left: 0;
  font-size: 40px;
  line-height: 1;
  color: var(--accent);
  font-family: Georgia, serif;
  opacity: 0.4;
}

.pf-review__author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pf-review__author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.pf-review__author strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.pf-review__author span {
  font-size: 12px;
  opacity: 0.6;
  color: var(--text);
}

@media (max-width: 600px) { .pf-reviews { padding: 70px 0; } }


/* =====================================================
   FINAL CTA
===================================================== */

.pf-cta {
  position: relative;
  padding: 160px 0;
  text-align: center;
  background: var(--bg);
  overflow: hidden;
}

.pf-cta__glow {
  position: absolute;
  width: 800px;
  height: 600px;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  filter: blur(140px);
  z-index: 0;
  pointer-events: none;
}

[data-theme="dark"] .pf-cta__glow {
  background: radial-gradient(circle, rgba(34,211,238,0.2), transparent 70%);
}

html:not([data-theme="dark"]) .pf-cta__glow {
  background: radial-gradient(circle, rgba(30,64,175,0.14), transparent 70%);
}

.pf-cta__inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px;
}

.pf-cta__inner h2 {
  font-size: 52px;
  font-weight: 900;
  line-height: 1.15;
  margin: 10px 0 18px;
  color: var(--text);
}

.pf-cta__inner h2 span { color: var(--accent); }

.pf-cta__inner p {
  font-size: 18px;
  opacity: 0.8;
  margin-bottom: 42px;
  color: var(--text);
  line-height: 1.6;
}

.pf-cta__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.pf-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}

.pf-cta__btn--primary {
  background: var(--accent);
  color: #ffffff;
}

[data-theme="dark"] .pf-cta__btn--primary { color: #000; }

.pf-cta__btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(34,211,238,0.4);
}

html:not([data-theme="dark"]) .pf-cta__btn--primary:hover {
  box-shadow: 0 14px 34px rgba(30,64,175,0.35);
}

.pf-cta__btn--whatsapp {
  background: #25d366;
  color: #fff;
}

.pf-cta__btn--whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(37,211,102,0.4);
  background: #22c55e;
}

@media (max-width: 600px) {
  .pf-cta { padding: 100px 0; }
  .pf-cta__inner h2 { font-size: 34px; }
  .pf-cta__inner p { font-size: 16px; }
  .pf-cta__btn { width: 100%; justify-content: center; }
}







/* ============================================================
   ADDITIONAL CSS — Paste at the END of style.css
   Covers:
   1. Transparent header + mirror sticky effect
   2. Footer light theme text fixes
   3. Homepage hero glitch fix (only on name, not other text)
   4. About page — remove text reveal animation effect
   5. Animated gradient headings on all pages (dark=pink, light=blue)
   6. Privacy Policy, Terms, Sitemap page styles
   7. Scroll padding for sticky header
============================================================ */


/* ============================================================
   1. HEADER — TRANSPARENT (hero pe) + MIRROR GLASS (scroll pe)
============================================================ */

/* Base header — always fixed, starts transparent on hero pages */
#ashtamsinghalwebsite-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  padding: 14px 40px;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Transparent state — on hero pages before scroll */
#ashtamsinghalwebsite-header.header--transparent {
  background: transparent !important;
  border-bottom: 1px solid transparent;
  box-shadow: none;
}

/* Transparent: dark mode — nav links white */
[data-theme="dark"] #ashtamsinghalwebsite-header.header--transparent .nav a {
  color: rgba(255, 255, 255, 0.85);
}

/* Transparent: light mode — nav links dark with good contrast */
html:not([data-theme="dark"]) #ashtamsinghalwebsite-header.header--transparent .nav a {
  color: rgba(15, 23, 42, 0.85);
}

/* Transparent: hamburger color */
#ashtamsinghalwebsite-header.header--transparent .hamburger {
  color: var(--text);
}

/* STICKY (mirror glass) — Dark mode */
[data-theme="dark"] #ashtamsinghalwebsite-header.is-sticky {
  background: rgba(5, 5, 14, 0.72) !important;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(0, 255, 255, 0.12);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0,255,255,0.05) inset;
}

/* STICKY (mirror glass) — Light mode */
html:not([data-theme="dark"]) #ashtamsinghalwebsite-header.is-sticky {
  background: rgba(255, 255, 255, 0.78) !important;
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid rgba(30, 64, 175, 0.12);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(30,64,175,0.04) inset;
}

/* Push page content down so hero isn't hidden under fixed header */
.hm-hero,
.about-hero,
.sp-hero,
.ct-hero,
.pf-hero,
.pg-hero {
  padding-top: 80px;
}

/* For non-hero pages — add body padding so content isn't under fixed header */
body {
  padding-top: 0; /* hero pages handle their own padding */
}

/* Pages without hero — add padding to main/body directly */
.page-no-hero {
  padding-top: 80px;
}


/* ============================================================
   2. FOOTER LIGHT THEME — TEXT VISIBILITY FIX
============================================================ */

/* Footer base background in light mode should be dark/navy for contrast */
html:not([data-theme="dark"]) .ft {
  background: #0f172a !important; /* Deep navy — keeps the dark design intact */
  color: #e2e8f0;
}

/* CTA heading text */
html:not([data-theme="dark"]) .ft__cta-heading {
  color: #f1f5f9 !important;
}

/* Brand name */
html:not([data-theme="dark"]) .ft__brand-name {
  color: #f1f5f9 !important;
}

/* Brand tag */
html:not([data-theme="dark"]) .ft__brand-tag {
  color: rgba(226,232,240,0.6) !important;
}

/* Brand desc */
html:not([data-theme="dark"]) .ft__brand-desc {
  color: rgba(226,232,240,0.7) !important;
}

/* Stats label */
html:not([data-theme="dark"]) .ft__stat-lbl {
  color: rgba(226,232,240,0.55) !important;
}

/* Stats box */
html:not([data-theme="dark"]) .ft__stats {
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(255,255,255,0.1) !important;
}

html:not([data-theme="dark"]) .ft__stat-sep {
  background: rgba(255,255,255,0.12) !important;
}

/* Social icons */
html:not([data-theme="dark"]) .ft__social {
  border-color: rgba(255,255,255,0.12) !important;
  background: rgba(255,255,255,0.06) !important;
  color: rgba(226,232,240,0.65) !important;
}

/* Nav links */
html:not([data-theme="dark"]) .ft__links a {
  color: rgba(226,232,240,0.65) !important;
}

html:not([data-theme="dark"]) .ft__links a:hover {
  color: #fff !important;
}

/* Column headings */
html:not([data-theme="dark"]) .ft__col-head {
  color: var(--accent);
}

/* Contact items */
html:not([data-theme="dark"]) .ft__contact-item {
  border-color: rgba(255,255,255,0.08) !important;
  background: rgba(255,255,255,0.04) !important;
}

html:not([data-theme="dark"]) .ft__contact-lbl {
  color: rgba(226,232,240,0.45) !important;
}

html:not([data-theme="dark"]) .ft__contact-val {
  color: rgba(226,232,240,0.9) !important;
}

/* Newsletter */
html:not([data-theme="dark"]) .ft__newsletter-label {
  color: rgba(226,232,240,0.5) !important;
}

html:not([data-theme="dark"]) .ft__newsletter-form {
  border-color: rgba(255,255,255,0.14) !important;
  background: rgba(255,255,255,0.05) !important;
}

html:not([data-theme="dark"]) .ft__newsletter-form input {
  color: #f1f5f9 !important;
}

html:not([data-theme="dark"]) .ft__newsletter-form input::placeholder {
  color: rgba(226,232,240,0.35) !important;
}

/* Bottom bar */
html:not([data-theme="dark"]) .ft__bottom {
  border-top-color: rgba(255,255,255,0.08) !important;
}

html:not([data-theme="dark"]) .ft__copy {
  color: rgba(226,232,240,0.45) !important;
}

html:not([data-theme="dark"]) .ft__made {
  color: rgba(226,232,240,0.4) !important;
}

html:not([data-theme="dark"]) .ft__bottom-right a {
  color: rgba(226,232,240,0.45) !important;
}

html:not([data-theme="dark"]) .ft__bottom-sep {
  color: rgba(226,232,240,0.25) !important;
}

html:not([data-theme="dark"]) .ft__btn--ghost {
  color: rgba(226,232,240,0.85) !important;
  border-color: rgba(255,255,255,0.22) !important;
}

html:not([data-theme="dark"]) .ft__top {
  background: rgba(15,23,42,0.85) !important;
  border-color: rgba(255,255,255,0.12) !important;
}

html:not([data-theme="dark"]) .ft__grid {
  background-image:
    linear-gradient(rgba(99,179,237,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,179,237,.06) 1px, transparent 1px) !important;
}


/* ============================================================
   3. HOMEPAGE HERO — GLITCH ONLY ON NAME, NOT OTHER TEXT
============================================================ */

/* Ensure glitch pseudo-elements only on .hm-hero__name */
/* The issue was glitch CSS leaking to other spans — these overrides lock it */
.hm-hero__greeting::before,
.hm-hero__greeting::after,
.hm-hero__role::before,
.hm-hero__role::after,
.hm-hero__sub::before,
.hm-hero__sub::after {
  content: none !important;
  display: none !important;
}

/* Make glitch on name subtle — only triggers at 91-96% of 6s cycle */
/* Reduce jarring: lower translate amount */
@keyframes hmGlitch1 {
  0%,88%,100%     { opacity: 0; transform: translate(0); }
  91%             { opacity: 0.6; transform: translate(-3px, 1px); }
  92%             { opacity: 0.6; transform: translate(3px, -1px); }
  93%             { opacity: 0; }
}

@keyframes hmGlitch2 {
  0%,91%,100%     { opacity: 0; transform: translate(0); }
  94%             { opacity: 0.6; transform: translate(3px, 1px); }
  95%             { opacity: 0.6; transform: translate(-3px, -1px); }
  96%             { opacity: 0; }
}

/* Light mode — disable glitch (it looks bad on white) */
html:not([data-theme="dark"]) .hm-hero__name::before,
html:not([data-theme="dark"]) .hm-hero__name::after {
  display: none !important;
}


/* ============================================================
   4. ABOUT PAGE — REMOVE TEXT ANIMATION/REVEAL EFFECT
============================================================ */

/* Remove any auto-running reveal/fade-in on about page text */
.about-page .reveal-up {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.about-page .reveal-up.is-visible {
  opacity: 1 !important;
  transform: none !important;
}

/* Remove any text flicker/glitch on about page content */
.about-page h1,
.about-page h2,
.about-page h3,
.about-page p,
.about-page span:not(.about-gradient-text):not(.ab-label) {
  animation: none !important;
}

/* Specifically stop the grid from causing text distortion */
.about-hero__grid {
  opacity: 0.6;
}
html:not([data-theme="dark"]) .about-hero__grid {
  opacity: 0.35;
}


/* ============================================================
   5. ANIMATED GRADIENT HEADINGS — ALL PAGES
   Dark theme: cyan → pink (moving)
   Light theme: blue shades (moving)
============================================================ */

/* Universal animated gradient heading class */
.grad-heading {
  display: inline-block;
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

[data-theme="dark"] .grad-heading {
  background-image: linear-gradient(90deg, #00ffff, #ff00aa, #a855f7, #00ffff);
  animation: gradHeadingMove 5s linear infinite;
}

html:not([data-theme="dark"]) .grad-heading {
  background-image: linear-gradient(90deg, #1d4ed8, #0ea5e9, #3b82f6, #1d4ed8);
  animation: gradHeadingMove 5s linear infinite;
}

@keyframes gradHeadingMove {
  0%   { background-position: 0% center; }
  100% { background-position: 300% center; }
}

/* Apply to all section heading spans across all pages */
.hm-section-head h2 span,
.ab-head h2 span,
.sp-head h2 span,
.ct-head h2 span,
.pf-section-head h2 span,
.ft__cta-heading span,
.pg-hero__title span {
  display: inline-block;
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

[data-theme="dark"] .hm-section-head h2 span,
[data-theme="dark"] .ab-head h2 span,
[data-theme="dark"] .sp-head h2 span,
[data-theme="dark"] .ct-head h2 span,
[data-theme="dark"] .pf-section-head h2 span,
[data-theme="dark"] .ft__cta-heading span,
[data-theme="dark"] .pg-hero__title span {
  background-image: linear-gradient(90deg, #00ffff, #ff00aa, #a855f7, #00ffff);
  animation: gradHeadingMove 5s linear infinite;
}

html:not([data-theme="dark"]) .hm-section-head h2 span,
html:not([data-theme="dark"]) .ab-head h2 span,
html:not([data-theme="dark"]) .sp-head h2 span,
html:not([data-theme="dark"]) .ct-head h2 span,
html:not([data-theme="dark"]) .pf-section-head h2 span,
html:not([data-theme="dark"]) .ft__cta-heading span,
html:not([data-theme="dark"]) .pg-hero__title span {
  background-image: linear-gradient(90deg, #1d4ed8, #0ea5e9, #3b82f6, #1d4ed8);
  animation: gradHeadingMove 5s linear infinite;
}

/* CTA sections with colored span headings */
.hm-cta h2 span,
.ab-cta h2 span,
.sp-cta h2 span,
.pf-cta__inner h2 span {
  display: inline-block;
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

[data-theme="dark"] .hm-cta h2 span,
[data-theme="dark"] .ab-cta h2 span,
[data-theme="dark"] .sp-cta h2 span,
[data-theme="dark"] .pf-cta__inner h2 span {
  background-image: linear-gradient(90deg, #00ffff, #ff00aa, #a855f7, #00ffff);
  animation: gradHeadingMove 5s linear infinite;
}

html:not([data-theme="dark"]) .hm-cta h2 span,
html:not([data-theme="dark"]) .ab-cta h2 span,
html:not([data-theme="dark"]) .sp-cta h2 span,
html:not([data-theme="dark"]) .pf-cta__inner h2 span {
  background-image: linear-gradient(90deg, #1d4ed8, #0ea5e9, #3b82f6, #1d4ed8);
  animation: gradHeadingMove 5s linear infinite;
}


/* ============================================================
   6. PRIVACY POLICY / TERMS / SITEMAP — PAGE STYLES
============================================================ */

/* Hero section for static pages */
.pg-hero {
  position: relative;
  padding: 140px 40px 80px;
  overflow: hidden;
  background: var(--bg);
  text-align: center;
}

/* Animated background grid */
.pg-hero__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: 60px 60px;
  animation: pgGridMove 30s linear infinite;
  pointer-events: none;
}

[data-theme="dark"] .pg-hero__grid {
  background-image:
    linear-gradient(rgba(0,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,0,170,.05) 1px, transparent 1px);
}

html:not([data-theme="dark"]) .pg-hero__grid {
  background-image:
    linear-gradient(rgba(30,64,175,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,165,233,.04) 1px, transparent 1px);
}

@keyframes pgGridMove {
  from { background-position: 0 0; }
  to   { background-position: 60px 60px; }
}

/* Glow orbs */
.pg-hero__glow {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  filter: blur(130px);
  top: -100px; left: 50%;
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
}

[data-theme="dark"] .pg-hero__glow {
  background: radial-gradient(circle, rgba(0,255,255,0.25), rgba(255,0,170,0.15), transparent 70%);
}

html:not([data-theme="dark"]) .pg-hero__glow {
  background: radial-gradient(circle, rgba(30,64,175,0.18), rgba(14,165,233,0.12), transparent 70%);
}

/* Hero inner */
.pg-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

/* Breadcrumb */
.pg-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0.85;
}

.pg-breadcrumb a {
  color: var(--accent);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.pg-breadcrumb a:hover { opacity: 1; }

.pg-breadcrumb span { opacity: 0.4; }

/* Hero title */
.pg-hero__title {
  font-size: 52px;
  font-weight: 900;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 16px;
}

@media (max-width: 768px) { .pg-hero__title { font-size: 34px; } }
@media (max-width: 480px) { .pg-hero__title { font-size: 26px; } }

/* Hero subtitle */
.pg-hero__sub {
  font-size: 16px;
  opacity: 0.6;
  color: var(--text);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Content section */
.pg-content {
  padding: 80px 40px 120px;
  background: var(--bg);
}

@media (max-width: 768px) {
  .pg-content { padding: 60px 20px 80px; }
  .pg-hero { padding: 120px 20px 60px; }
}

.pg-content__inner {
  max-width: 860px;
  margin: 0 auto;
}

/* Content blocks */
.pg-block {
  margin-bottom: 48px;
}

.pg-block h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid;
  display: flex;
  align-items: center;
  gap: 10px;
}

[data-theme="dark"] .pg-block h2 {
  border-color: rgba(0,255,255,0.2);
}

html:not([data-theme="dark"]) .pg-block h2 {
  border-color: rgba(30,64,175,0.15);
}

.pg-block h2 .pg-block__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
  flex-shrink: 0;
  background: var(--accent);
  color: #fff;
}

[data-theme="dark"] .pg-block h2 .pg-block__num { color: #000; }

.pg-block p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text);
  opacity: 0.78;
  margin-bottom: 12px;
}

.pg-block ul {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.pg-block ul li {
  position: relative;
  padding: 8px 0 8px 22px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  opacity: 0.78;
  border-bottom: 1px solid rgba(128,128,128,0.08);
}

.pg-block ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.pg-block a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}

.pg-block a:hover { opacity: 0.75; text-decoration: underline; }

/* Last updated badge */
.pg-updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 48px;
}

[data-theme="dark"] .pg-updated {
  background: rgba(0,255,255,0.08);
  border: 1px solid rgba(0,255,255,0.2);
  color: rgba(0,255,255,0.8);
}

html:not([data-theme="dark"]) .pg-updated {
  background: rgba(30,64,175,0.07);
  border: 1px solid rgba(30,64,175,0.2);
  color: rgba(30,64,175,0.85);
}

/* SITEMAP specific */
.pg-sitemap__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

@media (max-width: 900px) { .pg-sitemap__grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 540px) { .pg-sitemap__grid { grid-template-columns: 1fr; } }

.pg-sitemap__col {
  padding: 28px;
  border-radius: 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] .pg-sitemap__col {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

html:not([data-theme="dark"]) .pg-sitemap__col {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.pg-sitemap__col:hover {
  transform: translateY(-4px);
}

[data-theme="dark"] .pg-sitemap__col:hover {
  box-shadow: 0 20px 40px rgba(0,255,255,0.08);
  border-color: rgba(0,255,255,0.2);
}

html:not([data-theme="dark"]) .pg-sitemap__col:hover {
  box-shadow: 0 20px 40px rgba(30,64,175,0.1);
  border-color: rgba(30,64,175,0.15);
}

.pg-sitemap__col-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(128,128,128,0.1);
}

.pg-sitemap__col-icon {
  font-size: 18px;
}

.pg-sitemap__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pg-sitemap__links li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  opacity: 0.7;
  border-bottom: 1px solid rgba(128,128,128,0.06);
  transition: all 0.22s ease;
}

.pg-sitemap__links li a svg {
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.22s ease;
  color: var(--accent);
  flex-shrink: 0;
}

.pg-sitemap__links li a:hover {
  opacity: 1;
  padding-left: 6px;
  color: var(--accent);
}

.pg-sitemap__links li a:hover svg {
  opacity: 1;
  transform: translateX(0);
}





/* ============================================================
   BUG FIXES — Paste at the VERY END of style.css
   
   Fix 1: About hero text disappearing (dark mode)
   Fix 2: Footer light theme text visibility
   Fix 3: About page counter section styling
============================================================ */


/* ============================================================
   FIX 1: ABOUT HERO — Text disappearing in dark mode
   Root cause: .about-hero__grid animation layer covering text
============================================================ */

/* Lock grid strictly behind everything */
.about-hero__grid {
  position: absolute;
  inset: 0;
  z-index: 0 !important;
  pointer-events: none;
}

/* Glows also strictly behind */
.about-hero__glow--cyan,
.about-hero__glow--pink {
  z-index: 0 !important;
  pointer-events: none;
}

/* Inner content MUST be above all decorative elements */
.about-hero__inner {
  position: relative;
  z-index: 10 !important;
}

/* Explicitly force all text in hero to be visible */
.about-hero .about-badge,
.about-hero .about-title,
.about-hero .about-description,
.about-hero .about-stats,
.about-hero .about-hero__cta,
.about-hero .about-hero__image {
  position: relative;
  z-index: 10 !important;
  opacity: 1 !important;
  animation: none !important;
  transform: none !important;
  visibility: visible !important;
}

/* Fix dark mode grid opacity — reduce it so it doesn't overpower */
[data-theme="dark"] .about-hero__grid {
  opacity: 0.4 !important;
}

/* Fix: about-hero overflow should not clip z-stacked content */
.about-hero {
  overflow: hidden;
  isolation: isolate; /* creates new stacking context */
}


/* ============================================================
   FIX 2: FOOTER — Light & Dark theme complete text fix
============================================================ */

/* Footer always uses dark background for consistent readability */
.ft {
  background: #050509 !important; /* Force dark for DARK mode */
}

html:not([data-theme="dark"]) .ft {
  background: #0d1117 !important; /* Deep dark navy for LIGHT mode too */
}

/* CTA heading — must be white in both themes since footer is always dark */
.ft__cta-heading {
  color: #f8fafc !important;
}

.ft__cta-heading span {
  /* Gradient stays, override color */
  color: transparent !important;
}

/* In light mode, the CTA heading color was barely visible */
html:not([data-theme="dark"]) .ft__cta-heading {
  color: #f8fafc !important;
}

/* Brand name always white since footer is always dark */
html:not([data-theme="dark"]) .ft__brand-name {
  color: #f8fafc !important;
}

/* Brand tag */
html:not([data-theme="dark"]) .ft__brand-tag {
  color: rgba(248,250,252,0.55) !important;
}

/* Brand desc */
html:not([data-theme="dark"]) .ft__brand-desc {
  color: rgba(248,250,252,0.65) !important;
}

/* Stat labels */
html:not([data-theme="dark"]) .ft__stat-lbl {
  color: rgba(248,250,252,0.5) !important;
}

/* Stats box */
html:not([data-theme="dark"]) .ft__stats {
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(255,255,255,0.1) !important;
}
html:not([data-theme="dark"]) .ft__stat-sep {
  background: rgba(255,255,255,0.1) !important;
}

/* Social icons */
html:not([data-theme="dark"]) .ft__social {
  border-color: rgba(255,255,255,0.1) !important;
  background: rgba(255,255,255,0.05) !important;
  color: rgba(248,250,252,0.6) !important;
}

/* Nav links */
html:not([data-theme="dark"]) .ft__links a {
  color: rgba(248,250,252,0.6) !important;
}
html:not([data-theme="dark"]) .ft__links a:hover {
  color: #ffffff !important;
}

/* Contact items */
html:not([data-theme="dark"]) .ft__contact-item {
  border-color: rgba(255,255,255,0.07) !important;
  background: rgba(255,255,255,0.04) !important;
}
html:not([data-theme="dark"]) .ft__contact-lbl {
  color: rgba(248,250,252,0.4) !important;
}
html:not([data-theme="dark"]) .ft__contact-val {
  color: rgba(248,250,252,0.88) !important;
}

/* Newsletter */
html:not([data-theme="dark"]) .ft__newsletter-label {
  color: rgba(248,250,252,0.45) !important;
}
html:not([data-theme="dark"]) .ft__newsletter-form {
  border-color: rgba(255,255,255,0.12) !important;
  background: rgba(255,255,255,0.05) !important;
}
html:not([data-theme="dark"]) .ft__newsletter-form input {
  color: #f8fafc !important;
}
html:not([data-theme="dark"]) .ft__newsletter-form input::placeholder {
  color: rgba(248,250,252,0.32) !important;
}

/* Bottom bar */
html:not([data-theme="dark"]) .ft__bottom {
  border-top-color: rgba(255,255,255,0.07) !important;
}
html:not([data-theme="dark"]) .ft__copy {
  color: rgba(248,250,252,0.4) !important;
}
html:not([data-theme="dark"]) .ft__made {
  color: rgba(248,250,252,0.38) !important;
}
html:not([data-theme="dark"]) .ft__bottom-right a {
  color: rgba(248,250,252,0.42) !important;
}
html:not([data-theme="dark"]) .ft__bottom-sep {
  color: rgba(248,250,252,0.2) !important;
}
html:not([data-theme="dark"]) .ft__btn--ghost {
  color: rgba(248,250,252,0.8) !important;
  border-color: rgba(255,255,255,0.2) !important;
}
html:not([data-theme="dark"]) .ft__top {
  background: rgba(13,17,23,0.9) !important;
  border-color: rgba(255,255,255,0.1) !important;
}
html:not([data-theme="dark"]) .ft__bottom-right a:hover {
  color: var(--accent) !important;
}

/* Divider stays consistent */
html:not([data-theme="dark"]) .ft__divider {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(30,64,175,0.4) 30%,
    rgba(14,165,233,0.4) 70%,
    transparent
  ) !important;
}

/* Grid pattern */
html:not([data-theme="dark"]) .ft__grid {
  background-image:
    linear-gradient(rgba(99,179,237,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,179,237,.05) 1px, transparent 1px) !important;
}


/* ============================================================
   FIX 3: ABOUT PAGE COUNTERS — Prevent them showing 0
   The counters always start at 0 — this is fine visually
   but the issue is homepage.js is NOT loaded on about page.
   CSS fix: ensure the .result-number elements are visible.
   JS fix is in about-counters.js (separate file provided).
============================================================ */

/* Make sure counter numbers are visible even at 0 */
.ab-stat .result-number {
  display: inline-block;
  min-width: 1ch;
  color: var(--accent);
}

/* Ensure stat cards are always visible (not hidden behind anything) */
.ab-numbers {
  position: relative;
  z-index: 2;
}

.ab-numbers__grid {
  position: relative;
  z-index: 2;
}

.ab-stat {
  position: relative;
  z-index: 2;
}
/* ============================================================
   MASTER RESPONSIVE FIXES — All Device Friendly
   Ashtam Singhal Portfolio
   
   Breakpoints:
   - xs: 0–479px    (Small phones)
   - sm: 480–767px  (Phones)
   - md: 768–1023px (Tablets)
   - lg: 1024–1279px (Small desktops)
   - xl: 1280px+    (Large desktops)
============================================================ */

/* =====================================================
   VIEWPORT FIX — Prevent horizontal scroll
===================================================== */
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  min-width: 320px;
}

img, video, iframe, svg {
  max-width: 100%;
  height: auto;
}

/* =====================================================
   TOUCH IMPROVEMENTS
===================================================== */
a, button, [role="button"], 
input[type="submit"], input[type="button"],
.hm-btn, .theme-toggle, .hamburger {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Minimum touch target size */
/* Touch targets — hamburger excluded (display:none on desktop via .hamburger rule) */
.theme-toggle,
.nav a,
.hm-hero__socials a {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* =====================================================
   HEADER — Full responsive fix
===================================================== */
@media (max-width: 768px) {
  #ashtamsinghalwebsite-header {
    padding: 12px 20px;
  }

  .header-wrapper {
    position: relative;
  }

  .nav {
    top: 60px;
    width: 100%;
    border-left: none;
    border-top: 1px solid rgba(128,128,128,0.2);
    border-radius: 0 0 16px 16px;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 16px 24px 20px;
  }

  .nav a {
    font-size: 16px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(128,128,128,0.1);
  }

  .nav a:last-child {
    border-bottom: none;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-tag {
    font-size: 11px;
  }
}

@media (max-width: 380px) {
  #ashtamsinghalwebsite-header {
    padding: 10px 16px;
  }

  .brand-name {
    font-size: 16px;
  }
}

/* =====================================================
   HERO — Extra small phone fixes
===================================================== */
@media (max-width: 480px) {
  .hm-hero__inner {
    padding: 90px 16px 70px;
    gap: 40px;
  }

  .hm-hero__name {
    font-size: 30px;
    letter-spacing: -0.5px;
  }

  .hm-hero__greeting {
    font-size: 16px;
  }

  .hm-typing {
    font-size: 18px;
  }

  .hm-hero__role {
    min-height: 40px;
  }

  .hm-hero__sub {
    font-size: 15px;
    line-height: 1.65;
  }

  .hm-hero__photo-wrap {
    width: 220px;
    height: 220px;
  }

  .hm-hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .hm-hero__actions .hm-btn {
    justify-content: center;
    width: 100%;
  }

  .hm-float {
    padding: 8px 12px;
    min-width: 80px;
    border-radius: 10px;
  }

  .hm-float__val {
    font-size: 16px;
  }

  .hm-float__label {
    font-size: 9px;
  }

  .hm-float--tl { left: -8px; top: -5px; }
  .hm-float--tr { right: -8px; top: 20px; }
  .hm-float--br { right: -8px; bottom: 0; }
}

@media (max-width: 360px) {
  .hm-hero__name { font-size: 26px; }
  .hm-hero__photo-wrap { width: 190px; height: 190px; }
  .hm-float { display: none; }
}

/* =====================================================
   SECTION INNER PADDING — Responsive
===================================================== */
@media (max-width: 480px) {
  .hm-inner,
  .ab-inner,
  .pf-inner,
  .ct-inner {
    padding: 0 16px;
  }
}

/* =====================================================
   SECTION HEADINGS — Scale down on mobile
===================================================== */
@media (max-width: 480px) {
  .hm-section-head h2 {
    font-size: 26px;
  }

  .hm-section-head {
    margin-bottom: 36px;
  }

  .hm-section-head p {
    font-size: 15px;
  }
}

/* =====================================================
   RESULTS / STATS — Mobile single column
===================================================== */
@media (max-width: 400px) {
  .hm-results__grid {
    grid-template-columns: 1fr;
  }

  .hm-result__value .result-number {
    font-size: 40px;
  }

  .hm-result {
    padding: 28px 20px;
  }
}

/* =====================================================
   SERVICES — Mobile layout
===================================================== */
@media (max-width: 400px) {
  .hm-svc {
    padding: 28px 20px;
  }

  .hm-svc h3 {
    font-size: 17px;
  }
}

/* =====================================================
   WORK CARDS — Mobile
===================================================== */
@media (max-width: 400px) {
  .hm-work-card__body {
    padding: 18px 18px 22px;
  }
}

/* =====================================================
   ABOUT SECTION — Mobile layout
===================================================== */
@media (max-width: 960px) {
  .hm-about__grid {
    text-align: center;
  }

  .hm-about__pillars {
    justify-content: center;
  }

  .hm-about__img {
    display: flex;
    justify-content: center;
  }

  .hm-about__img-frame {
    max-width: 360px;
    width: 100%;
  }

  .hm-about__badge-float {
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .hm-about__content h2 {
    font-size: 24px;
  }

  .hm-about__content p {
    font-size: 15px;
  }

  .hm-about__grid {
    gap: 60px;
  }
}

/* =====================================================
   CTA SECTION — Mobile
===================================================== */
@media (max-width: 768px) {
  .hm-cta {
    padding: 0 20px 80px;
  }

  .hm-cta__inner {
    padding: 60px 24px;
    border-radius: 20px;
  }

  .hm-cta__inner h2 {
    font-size: 36px;
  }

  .hm-cta__inner > p {
    font-size: 15px;
    margin-bottom: 36px;
  }

  .hm-cta__options {
    gap: 12px;
  }

  .hm-cta__option {
    min-width: 160px;
  }
}

@media (max-width: 480px) {
  .hm-cta__inner h2 {
    font-size: 28px;
  }

  .hm-cta__options {
    flex-direction: column;
    align-items: stretch;
  }

  .hm-cta__option {
    max-width: 100%;
  }

  .hm-cta__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .hm-cta__actions .hm-btn {
    justify-content: center;
    width: 100%;
  }

  .hm-cta__corner { display: none; }
}

/* =====================================================
   ABOUT PAGE HERO — Responsive
===================================================== */
@media (max-width: 1100px) {
  .about-hero__grid-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .about-title {
    font-size: 36px !important;
  }

  .about-description {
    font-size: 15px !important;
  }

  .about-stats {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .about-title {
    font-size: 28px !important;
  }

  .about-hero__cta {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .about-hero__cta .hm-btn {
    justify-content: center;
    width: 100%;
  }
}

/* =====================================================
   ABOUT PAGE — SECTIONS
===================================================== */
@media (max-width: 480px) {
  .ab-numbers__grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .ab-stat {
    padding: 24px 16px;
  }

  .ab-timeline__item {
    flex-direction: column;
    gap: 12px;
  }
}

/* =====================================================
   PORTFOLIO PAGE — Mobile
===================================================== */
@media (max-width: 768px) {
  .pf-hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .pf-filter {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .pf-filter-btn {
    font-size: 13px;
    padding: 8px 16px;
  }

  .pf-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .pf-card__body {
    padding: 18px 18px 22px;
  }

  .pf-hero__title {
    font-size: 30px !important;
  }
}

/* =====================================================
   CONTACT PAGE — Mobile
===================================================== */
@media (max-width: 768px) {
  .ct-hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .ct-form-wrap {
    padding: 28px 20px 32px;
  }

  .ct-form__row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .ct-cards__grid {
    grid-template-columns: 1fr;
  }

  .ct-map {
    height: 280px;
  }
}

@media (max-width: 480px) {
  .ct-hero__title {
    font-size: 28px !important;
  }

  .ct-form input,
  .ct-form textarea,
  .ct-form select {
    font-size: 16px; /* prevents zoom on iOS */
  }
}

/* =====================================================
   FOOTER — Mobile
===================================================== */
@media (max-width: 768px) {
  .ft__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .ft__top {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .ft__cta-heading {
    font-size: 28px !important;
  }

  .ft__stats {
    flex-direction: column;
    gap: 16px;
  }

  .ft__stat-sep {
    width: 100%;
    height: 1px;
  }

  .ft__bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .ft__bottom-right {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .ft__cta-heading {
    font-size: 24px !important;
  }

  .ft__cta-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .ft__cta-actions .ft__btn {
    justify-content: center;
    text-align: center;
  }

  .ft__newsletter-form {
    flex-direction: column;
    border-radius: 12px;
    gap: 0;
  }

  .ft__newsletter-form input {
    border-radius: 10px 10px 0 0;
    padding: 14px 16px;
  }

  .ft__newsletter-form button {
    border-radius: 0 0 10px 10px;
    padding: 14px;
  }

  .ft__socials {
    justify-content: center;
  }

  .ft__links {
    text-align: center;
  }
}

/* =====================================================
   BLOG / PAGES — Mobile
===================================================== */
@media (max-width: 768px) {
  .pg-hero__title {
    font-size: 32px;
  }

  .pg-hero__inner {
    text-align: center;
  }

  .pg-sitemap__grid {
    grid-template-columns: 1fr;
  }

  .pg-content {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .pg-hero {
    padding: 100px 0 50px;
  }

  .pg-hero__title {
    font-size: 26px;
  }
}

/* =====================================================
   BUTTONS — Mobile sizing
===================================================== */
@media (max-width: 480px) {
  .hm-btn {
    padding: 13px 24px;
    font-size: 14px;
  }

  .hm-btn--large {
    padding: 15px 28px;
    font-size: 15px;
  }
}

/* =====================================================
   REVIEWS MARQUEE — Mobile
===================================================== */
@media (max-width: 480px) {
  .hm-review {
    min-width: 280px;
    max-width: 280px;
    padding: 24px 20px;
  }

  .hm-reviews__fade {
    width: 60px;
  }
}

/* =====================================================
   TOOLS MARQUEE — Mobile
===================================================== */
@media (max-width: 480px) {
  .hm-tools__fade {
    width: 60px;
  }

  .hm-tool {
    gap: 8px;
  }

  .hm-tool img {
    height: 28px;
    width: 28px;
  }

  .hm-tool span {
    font-size: 12px;
  }
}

/* =====================================================
   SCROLL ANIMATIONS — Reduce motion on mobile
===================================================== */
@media (prefers-reduced-motion: reduce) {
  .reveal-up {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hm-hero__name::before,
  .hm-hero__name::after {
    animation: none;
  }

  .hm-tools__track,
  .hm-reviews__track {
    animation: none;
  }

  .hm-float {
    animation: none;
  }

  .hm-hero__photo-ring {
    animation: none;
  }

  .hm-hero__photo-hex {
    animation: none;
  }

  .hm-hero__scroll-line {
    animation: none;
  }
}

/* =====================================================
   TABLET LANDSCAPE — 768px to 1024px
===================================================== */
@media (min-width: 768px) and (max-width: 1024px) {
  .hm-hero__inner {
    padding: 100px 32px 80px;
    gap: 40px;
  }

  .hm-hero__name {
    font-size: 52px;
  }

  .hm-services__grid,
  .hm-results__grid,
  .hm-work__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hm-section-head h2 {
    font-size: 36px;
  }
}

/* =====================================================
   LARGE SCREENS — 1400px+
===================================================== */
@media (min-width: 1400px) {
  .hm-inner,
  .ab-inner,
  .pf-inner,
  .ct-inner,
  .hm-hero__inner {
    max-width: 1360px;
  }

  .hm-hero__name {
    font-size: 76px;
  }

  .hm-section-head h2 {
    font-size: 52px;
  }
}

/* =====================================================
   HIGH DPI / RETINA — crisp images
===================================================== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hm-hero__photo-hex {
    border-width: 1px;
  }

  .hm-hero__photo-ring {
    border-width: 0.5px;
  }
}

/* =====================================================
   DARK/LIGHT NAV TOGGLE — Mobile nav background fix
===================================================== */
html:not([data-theme="dark"]) .nav {
  background: #ffffff;
  border-color: rgba(0,0,0,0.1);
}

[data-theme="dark"] .nav {
  background: #050509;
  border-color: rgba(255,255,255,0.1);
}

/* Sticky header text color fix for light mode */
html:not([data-theme="dark"]) #ashtamsinghalwebsite-header.is-sticky .nav a {
  color: rgba(15,23,42,0.85);
}

html:not([data-theme="dark"]) #ashtamsinghalwebsite-header.is-sticky .nav a:hover {
  color: #1e40af;
}

/* =====================================================
   FOCUS STYLES — Accessibility
===================================================== */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* =====================================================
   PRINT STYLES
===================================================== */
@media print {
  .hamburger,
  .theme-toggle,
  .hm-hero__canvas,
  .hm-hero__orb,
  .hm-hero__scan,
  .hm-float,
  .hm-tools,
  .hm-reviews,
  .ft,
  .hm-cta {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}

/* =====================================================
   OVERFLOW HIDDEN HELPERS — prevent bleed
===================================================== */
.hm-hero,
.hm-results,
.hm-services,
.hm-work,
.hm-about,
.hm-reviews,
.hm-cta,
.hm-tools {
  overflow-x: hidden;
}

/* =====================================================
   SECTION PADDING CONSISTENCY
===================================================== */
@media (max-width: 768px) {
  .hm-results,
  .hm-services,
  .hm-work,
  .hm-about,
  .hm-reviews {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .hm-cta {
    padding-bottom: 80px;
  }
}

@media (max-width: 480px) {
  .hm-results,
  .hm-services,
  .hm-work,
  .hm-about {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .hm-cta {
    padding-bottom: 60px;
  }
}

/* =====================================================
   MOBILE HERO SCROLL FIX
===================================================== */
@media (max-width: 768px) {
  .hm-hero__scroll {
    display: none;
  }
}

/* =====================================================
   GRID OVERFLOW PROTECTION
===================================================== */
.hm-services__grid,
.hm-results__grid,
.hm-work__grid,
.ab-numbers__grid,
.ab-expertise__grid,
.ab-why__grid,
.ab-process__grid,
.ct-cards__grid,
.pg-sitemap__grid {
  width: 100%;
}

/* =====================================================
   CARD OVERFLOW FIX — Mobile edge bleeding
===================================================== */
@media (max-width: 480px) {
  .hm-svc,
  .hm-result,
  .hm-work-card,
  .hm-review {
    border-radius: 16px;
  }
}

/* =====================================================
   FORM INPUTS — iOS zoom prevention
===================================================== */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="password"],
textarea,
select {
  font-size: 16px; /* Prevents auto-zoom on iOS */
}

@media (min-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="url"],
  input[type="number"],
  input[type="password"],
  textarea,
  select {
    font-size: inherit;
  }
}

/* =====================================================
   SAFE AREA — iPhone notch/home bar support
===================================================== */
#ashtamsinghalwebsite-header {
  padding-left: max(40px, env(safe-area-inset-left));
  padding-right: max(40px, env(safe-area-inset-right));
}

@media (max-width: 768px) {
  #ashtamsinghalwebsite-header {
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }
}

.ft {
  padding-bottom: max(0px, env(safe-area-inset-bottom));
}

/* =====================================================
   HERO BADGE WRAP — Small screens
===================================================== */
@media (max-width: 400px) {
  .hm-hero__badge {
    font-size: 11px;
    padding: 6px 14px;
    gap: 7px;
  }
}

/* =====================================================
   ANIMATION PERFORMANCE — GPU acceleration hints
===================================================== */
.hm-hero__orb,
.hm-float,
.hm-hero__photo-ring,
.hm-hero__photo-hex,
.hm-tools__track,
.hm-reviews__track,
.reveal-up {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* =====================================================
   MOBILE NAV OVERLAY
===================================================== */
@media (max-width: 768px) {
  .nav.active {
    display: flex;
    flex-direction: column;
    width: 100%;
    right: 0;
    top: 60px;
    position: absolute;
    padding: 16px 24px 24px;
    gap: 4px;
  }

  .nav.active a {
    padding: 12px 4px;
    font-size: 15px;
    width: 100%;
    border-bottom: 1px solid rgba(128,128,128,0.1);
  }

  .nav.active a:last-child {
    border-bottom: none;
    padding-bottom: 4px;
  }
}

/* =====================================================
   HERO PHOTO — Center on all breakpoints
===================================================== */
@media (max-width: 1024px) {
  .hm-hero__visual {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
  }
}

/* =====================================================
   TYPING ANIMATION — Prevent overflow
===================================================== */
.hm-hero__role {
  overflow: hidden;
  max-width: 100%;
}

.hm-typing {
  max-width: calc(100% - 20px);
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =====================================================
   ABOUT PAGE GRID — 2 column on tablet
===================================================== */
@media (min-width: 640px) and (max-width: 900px) {
  .ab-numbers__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ab-expertise__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =====================================================
   CONTACT FORM — Mobile improvements
===================================================== */
@media (max-width: 480px) {
  .ct-form-wrap {
    border-radius: 16px;
  }

  .ct-form .hm-btn {
    width: 100%;
    justify-content: center;
  }
}

/* =====================================================
   STICKY HEADER HEIGHT COMPENSATION
===================================================== */
@media (max-width: 768px) {
  .hm-hero {
    padding-top: 0;
  }
}

/* =====================================================
   HORIZONTAL SCROLL PREVENTION
   NOTE: * max-width:100vw removed — broke flex/grid layouts.
===================================================== */

img, svg, video, canvas, embed, iframe, object {
  max-width: 100%;
}

/* =====================================================
   Z-INDEX MANAGEMENT
===================================================== */
#ashtamsinghalwebsite-header {
  z-index: 1000;
}

#ashtamsinghalwebsite-header.is-sticky {
  z-index: 1000;
}

.nav {
  z-index: 999;
}

/* =====================================================
   TEXT SELECTION COLOR
===================================================== */
::selection {
  background: var(--accent);
  color: #fff;
}

[data-theme="dark"] ::selection {
  background: rgba(34,211,238,0.35);
  color: #fff;
}

html:not([data-theme="dark"]) ::selection {
  background: rgba(30,64,175,0.25);
  color: #000;
}

/* =====================================================
   SCROLLBAR STYLING
===================================================== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
  opacity: 0.7;
}

::-webkit-scrollbar-thumb:hover {
  opacity: 1;
}

/* =====================================================
   END MASTER RESPONSIVE FIXES
===================================================== */