:root {
  color-scheme: light;
  --header-height: 72px;
  --bg: #f5f7ff;
  --bg-anim-1: #eef0f8;
  --bg-anim-2: #e4e7f2;
  --bg-anim-3: #dde1ef;
  --bg-alt: #eef0f8;
  --card: #ffffff;
  --text: #0b0f1f;
  --muted: #4a5175;
  --accent: #7c5cff;
  --accent-2: #0ea5c7;
  --border: #c3c8dd;
  --shadow: 0 24px 80px rgba(15, 23, 42, 0.08);
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --nav-bg: linear-gradient(90deg, rgba(245, 247, 255, 0.92) 0%, rgba(230, 232, 243, 0.92) 100%);
  --btn-primary-text: #ffffff;
  --btn-secondary-bg: var(--card);
  --btn-secondary-color: var(--text);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(195, 200, 220, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: transparent;
  color: var(--text);
  line-height: 1.6;
  transition: background 0.5s cubic-bezier(0.77, 0, 0.18, 1), color 0.5s cubic-bezier(0.77, 0, 0.18, 1);
}

#particles-bg {
  background: linear-gradient(120deg, var(--bg-anim-1) 0%, var(--bg-anim-2) 50%, var(--bg-anim-3) 100%);
  background-size: 400% 400%;
  animation: bg-darkwave 18s linear infinite;
  z-index: 0;
}

@keyframes bg-darkwave {
  0% {
    background-position: 0% 0%;
  }

  25% {
    background-position: 100% 0%;
  }

  50% {
    background-position: 100% 100%;
  }

  75% {
    background-position: 0% 100%;
  }

  100% {
    background-position: 0% 0%;
  }
}

.logo-text {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(124, 92, 255, 0.6);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: -999px;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 999px;
  font-weight: 600;
  z-index: 100;
}

.skip-link:focus {
  left: 20px;
}

img {
  max-width: 100%;
  display: block;
}


.nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Futuristic nav bar enhancements */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  border-bottom: 2px solid transparent;
  box-shadow: 0 0 24px 4px rgba(124, 92, 255, 0.15), 0 2px 24px 0 rgba(34, 211, 238, 0.08);
  animation: nav-glow 4s linear infinite alternate;
  transition: background 0.45s ease, box-shadow 0.45s ease, border-color 0.45s ease;
}

@keyframes nav-glow {
  0% {
    box-shadow: 0 0 24px 4px rgba(124, 92, 255, 0.15), 0 2px 24px 0 rgba(34, 211, 238, 0.08);
    border-bottom-color: var(--accent);
  }

  100% {
    box-shadow: 0 0 48px 12px rgba(34, 211, 238, 0.18), 0 2px 48px 0 rgba(124, 92, 255, 0.12);
    border-bottom-color: var(--accent-2);
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: none;
  display: block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.logo-text {
  font-weight: 700;
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.dark-toggle {
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 12px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
  position: relative;
  z-index: 2;
}

.dark-toggle:focus-visible {
  outline: 2px solid var(--accent);
}

.dark-toggle__icon {
  width: 24px;
  height: 24px;
  display: block;
  background: none;
  position: relative;
}

.dark-toggle__icon::before,
.dark-toggle__icon::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  transition: all 0.4s cubic-bezier(0.77, 0, 0.18, 1);
}

.dark-toggle__icon::before {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #ffe066 60%, #7c5cff 100%);
  box-shadow: 0 0 12px 2px #ffe06688;
  left: 0;
  top: 0;
}

.dark-toggle__icon::after {
  width: 16px;
  height: 16px;
  background: var(--bg);
  left: 4px;
  top: 4px;
  opacity: 0;
}

.dark-mode .dark-toggle__icon::before {
  background: linear-gradient(135deg, #7c5cff 60%, #22d3ee 100%);
  box-shadow: 0 0 16px 4px #22d3ee88;
}

.dark-mode .dark-toggle__icon::after {
  opacity: 1;
}


.nav-links a {
  color: var(--text);
  font-weight: 500;
  transition: color 0.35s ease, background-color 0.35s ease;
}

.nav-links a:not(.btn) {
  position: relative;
}

.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  transition: width 0.2s ease;
}

/* Animated underline with glow */
.nav-links a:not(.btn):hover::after,
.nav-links a:not(.btn):focus-visible::after {
  width: 100%;
  box-shadow: 0 0 8px 2px var(--accent-2), 0 0 16px 4px var(--accent);
}

.nav-links a:not(.btn):hover,
.nav-links a:not(.btn):focus-visible {
  color: var(--accent);
  text-shadow: 0 0 8px var(--accent-2), 0 0 16px var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
}

/* Animated hamburger to X */
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  display: block;
  transition: all 0.35s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ══════════════════════════════════════════════════
   MOBILE NAV
══════════════════════════════════════════════════ */
@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    right: 24px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    flex-direction: column;
    padding: 24px;
    display: none;
    box-shadow: var(--shadow);
    transform-origin: top right;
    animation: fade-in-down 0.2s ease forwards;
  }

  @keyframes fade-in-down {
    from {
      opacity: 0;
      transform: translateY(-10px) scale(0.95);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  .nav-links.is-open {
    display: flex;
  }
}

main {
  max-width: 1180px;
  margin: 0 auto;
  /* keep main top padding equal to header height only */
  padding: var(--header-height) 24px 80px;
}

@media (min-width: 860px) {

  /* Allow slightly taller header on large screens */
  :root {
    --header-height: 76px;
  }
}

@media (max-width: 600px) {
  :root {
    --header-height: 68px;
  }
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
  padding: 24px 0;
}

@media (max-width: 600px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 32px;
  }

  .hero-glow {
    display: none;
  }

  .hero-card {
    margin-top: 8px;
  }
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--accent-2);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.4rem, 3vw + 1rem, 3.6rem);
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--text);
  text-shadow: 0 0 40px rgba(34, 211, 238, 0.15), 0 0 80px rgba(124, 92, 255, 0.08);
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 560px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 28px 0 32px;
}

.btn {
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, transform 0.2s ease;
}

/* SVG morphing icon: crossfade between two paths for a morph-like effect */
.svg-morph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 10px;
  vertical-align: middle;
}

.icon-morph {
  display: block;
  width: 18px;
  height: 18px;
}

.icon-morph .from,
.icon-morph .to {
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: 50% 50%;
}

.icon-morph .to {
  opacity: 0;
  transform: translateY(6px) scale(0.88);
}

.btn:hover .icon-morph .from,
.btn:focus-visible .icon-morph .from {
  opacity: 0;
  transform: translateY(-6px) scale(0.9);
}

.btn:hover .icon-morph .to,
.btn:focus-visible .icon-morph .to {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* smaller morphs inside nav */
.nav-links .svg-morph {
  margin-left: 8px;
}

.nav-links .btn:hover .icon-morph .from {
  opacity: 0;
}

/* Ensure icons adapt to theme via currentColor */
.icon-morph path {
  color: inherit;
  fill: currentColor;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--btn-primary-text);
}

.btn--secondary {
  background: var(--btn-secondary-bg);
  border-color: var(--border);
  color: var(--btn-secondary-color);
}

.btn--ghost {
  border-color: var(--border);
  color: var(--text);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  filter: brightness(1.15) drop-shadow(0 0 8px var(--accent-2));
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: var(--bg);
}

.btn:active {
  filter: brightness(0.95);
}

.trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  color: var(--muted);
}

.trust strong {
  color: var(--text);
  font-size: 1.1rem;
}

.dark-mode {
  color-scheme: dark;
  --bg: #0b0f1f;
  --bg-anim-1: #0b0f1f;
  --bg-anim-2: #11162a;
  --bg-anim-3: #232a45;
  --bg-alt: #11162a;
  --card: #151b32;
  --text: #f5f7ff;
  --muted: #c3c8dd;
  --accent: #7c5cff;
  --accent-2: #22d3ee;
  --border: #2a3152;
  --shadow: 0 24px 80px rgba(34, 211, 238, 0.18);
  --nav-bg: linear-gradient(90deg, rgba(11, 15, 31, 0.95) 60%, rgba(34, 211, 238, 0.08) 100%);
  --glass-bg: rgba(21, 27, 50, 0.45);
  --glass-border: rgba(124, 92, 255, 0.18);
}

.hero-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

/* Make the hero-card more prominent and center its content over the 3D hero */
.hero {
  align-items: center;
}

.hero-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.hero-3d canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.hero-card h3 {
  margin: 16px 0 12px;
}

.hero-card ul {
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.hero-card__top {
  display: flex;
  gap: 10px;
}

/* 3D hero canvas container (decorative) */
.hero-3d {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* make canvas glow blend nicely with background for a futuristic look */
.hero-3d {
  mix-blend-mode: normal;
  filter: none;
}

/* Hero orb logo — subtle watermark behind the card text */
.hero-orb-img {
  opacity: 0.18;
}

/* Ensure hero card text stays crisp above the background logo */
.hero-card h3,
.hero-card ul,
.hero-card__top,
.hero-card__bottom {
  text-shadow: 0 1px 8px rgba(11, 15, 31, 0.25);
}

.dark-mode .hero-3d {
  mix-blend-mode: screen;
  filter: saturate(1.05) contrast(1.03);
}

/* Consent banner (analytics opt-in) */
.consent-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 24px;
  z-index: 9999;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(2, 6, 23, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ensure the banner respects the native hidden attribute (author CSS may override it). */
#cookie-consent[hidden],
.consent-banner[hidden] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.consent-inner {
  display: flex;
  gap: 16px;
  align-items: center;
  max-width: 1100px;
  width: 100%;
}

.consent-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
}

.consent-actions {
  display: flex;
  gap: 10px;
}

@media (min-width: 1024px) {
  .consent-banner {
    left: 40px;
    right: 40px;
    bottom: 28px;
  }
}

/* Sticky contact panel */
.sticky-contact {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: auto;
  z-index: 9998;
  display: flex;
  gap: 10px;
  align-items: center;
  pointer-events: auto;
}

.sticky-contact .sc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.12), rgba(34, 211, 238, 0.06));
  color: var(--text);
  box-shadow: 0 6px 24px rgba(2, 6, 23, 0.45);
  cursor: pointer;
}

.sticky-contact .sc-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--bg);
  box-shadow: 0 4px 18px rgba(124, 92, 255, 0.12);
}

.sticky-contact .sc-small {
  padding: 8px 10px;
  font-size: 0.95rem;
}

@media (max-width: 700px) {
  .sticky-contact {
    left: auto;
    right: 12px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    gap: 8px;
    flex-direction: column;
    align-items: flex-end;
  }

  .sticky-contact .sc-btn {
    padding: 8px 10px;
  }
}

/* Minimized state: show only toggle circle */
.sticky-contact.minimized {
  gap: 6px;
}

.sticky-contact.minimized .sc-btn:not(.sc-toggle) {
  display: none;
}

.sticky-contact .sc-toggle {
  width: 44px;
  height: 44px;
  padding: 0;
}

.sticky-contact.minimized .sc-toggle {
  transform: scale(1.02);
}

.hero-card>*:not(.hero-3d) {
  position: relative;
  z-index: 1;
}

/* Scroll progress bar (thin) */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 60;
  pointer-events: none;
}

.scroll-progress-bar {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform-origin: 0 50%;
  transform: scaleX(0);
  transition: transform 0.22s linear;
}

/* Scroll timeline (right side) */
#scroll-timeline {
  position: fixed;
  right: 18px;
  top: 40vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 60;
  pointer-events: auto;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--border);
  box-shadow: 0 4px 18px rgba(12, 14, 32, 0.06);
  cursor: pointer;
}

.timeline-dot.is-active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  transform: scale(1.18);
  box-shadow: 0 8px 30px rgba(124, 92, 255, 0.18);
}

/* Parallax layer baseline */
.parallax-layer {
  will-change: transform;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.15);
  color: var(--accent);
  font-size: 0.85rem;
}

.pill--ghost {
  background: rgba(34, 211, 238, 0.12);
  color: var(--accent-2);
}

.hero-card__bottom {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}

.section {
  padding: 80px 0;
  opacity: 0;
  transform: translateY(48px) scale(0.98);
  transition: opacity 0.8s cubic-bezier(0.77, 0, 0.18, 1), transform 0.8s cubic-bezier(0.77, 0, 0.18, 1);
}

/* Add extra top spacing for the About section to sit comfortably below the header */
#about {
  padding-top: calc(var(--header-height) + 28px);
  scroll-margin-top: calc(var(--header-height) + 12px);
}

.section.is-visible,
.hero.is-visible {
  opacity: 1 !important;
  transform: none !important;
}

.hero {
  opacity: 0;
  transform: translateY(48px) scale(0.98);
  transition: opacity 0.8s cubic-bezier(0.77, 0, 0.18, 1), transform 0.8s cubic-bezier(0.77, 0, 0.18, 1);
}

.section--alt {
  background: var(--bg-alt);
  border-radius: 24px;
  padding: 80px 32px;
}

.section-title {
  margin-bottom: 40px;
  max-width: 720px;
}

.section-title h2 {
  font-size: clamp(2rem, 2vw + 1rem, 2.8rem);
}

.grid {
  display: grid;
  gap: 24px;
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card,
.price-card,
.work-card,
.step {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: 20px;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease, background-color 0.35s ease, color 0.35s ease;
  color: var(--text);
}

/* Work section: cards stack as full-width rows — see grid declaration below */

.work-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 24px;
}

.card:hover,
.price-card:hover,
.work-card:hover,
.step:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.35), 0 0 30px rgba(124, 92, 255, 0.12);
  border-color: rgba(124, 92, 255, 0.35);
}

.card h3,
.price-card h3,
.work-card h3,
.step h4 {
  margin-bottom: 10px;
  color: var(--text);
}

.price-card {
  display: grid;
  gap: 16px;
}

.price-card--featured {
  border: 1px solid rgba(124, 92, 255, 0.4);
  box-shadow: 0 20px 80px rgba(124, 92, 255, 0.15);
}

.price {
  font-size: 2rem;
  font-weight: 700;
}

.price-card ul {
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.work-cards-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

.work-card__header {
  display: none;
}

.work-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.work-card__logo-wrap {
  width: clamp(160px, 35%, 380px);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  padding: 16px;
  overflow: hidden;
}

.work-card__meta {
  flex-shrink: 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.work-card__logo {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  display: block;
}

@media (max-width: 600px) {
  .work-card {
    flex-direction: column;
  }

  .work-card__logo-wrap {
    width: 100%;
    height: 140px;
    order: -1;
  }
}

.work-card__highlights {
  list-style: none;
  display: grid;
  gap: 6px;
  color: var(--muted);
  margin: 10px 0 18px;
}

.work-card__highlights li::before {
  content: "✓";
  color: var(--accent-2);
  margin-right: 8px;
  font-weight: 700;
}

/* Coming-soon work card */
.work-card--muted {
  opacity: 0.75;
  border-style: dashed;
}

.work-card--muted:hover {
  opacity: 1;
}

.work-card__logo-wrap--placeholder {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.08), rgba(34, 211, 238, 0.08));
  border: 2px dashed rgba(124, 92, 255, 0.3);
  color: var(--accent);
}

/* Pricing card timeline label */
.price-card__timeline {
  font-size: 0.82rem;
  color: var(--accent-2);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Improved card visuals for project listings */
.card-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start;
}

.card .thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  margin-bottom: 12px;
}

.project-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.project-card h3 {
  margin: 6px 0;
}

.project-card .card-actions {
  margin-top: auto;
  display: flex;
  gap: 12px;
}

.testimonials {
  margin-top: 28px;
}

.testimonial p {
  font-style: italic;
}

.case-card ul {
  margin-top: 6px;
}

.work-card__content {
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Built & Maintained block */
.build-maintain {
  padding: 28px;
  text-align: center;
}

.build-maintain .lead {
  max-width: 720px;
  margin: 0 auto 18px;
}

.tech-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-top: 12px;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 12px 10px;
  min-width: 140px;
}

.tech-icon {
  width: 44px;
  height: 44px;
  display: block;
}

.tech-item small {
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 520px) {
  .tech-item {
    min-width: 120px;
    padding: 10px;
  }
}

.case-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: 20px;
  display: grid;
  gap: 12px;
}

.case-card .lead {
  font-size: 1rem;
}

.case-card ul {
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.case-card ul li::before {
  content: "•";
  color: var(--accent-2);
  margin-right: 8px;
}

.case-card__meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.testimonial {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px 24px;
  display: grid;
  gap: 12px;
  box-shadow: var(--shadow);
}

.testimonial p {
  color: var(--text);
  font-size: 1rem;
}

.testimonial__meta {
  display: grid;
  gap: 2px;
  color: var(--muted);
}

.about-grid {
  align-items: stretch;
}

.about-list {
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.about-list li::before {
  content: "•";
  color: var(--accent-2);
  margin-right: 8px;
}

.step span {
  font-size: 1.4rem;
  color: var(--accent-2);
  font-weight: 600;
}

.contact {
  display: grid;
  gap: 32px;
}

.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 32px;
  border-radius: 24px;
}

.form-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 18px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 500;
}

input,
textarea {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-family: inherit;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(124, 92, 255, 0.4);
}

.form-note {
  margin-top: 14px;
  color: var(--muted);
}

.footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px 60px;
  display: grid;
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
  color: var(--muted);
  transition: color 0.35s ease, border-color 0.35s ease, background-color 0.35s ease;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-meta {
  font-size: 0.85rem;
}

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 70px;
    right: 24px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    flex-direction: column;
    padding: 16px;
    display: none;
    backdrop-filter: blur(24px);
    box-shadow: 0 12px 48px rgba(2, 6, 23, 0.45);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 40px;
  }

  .section--alt {
    padding: 60px 20px;
  }
}

.hero-content>* {
  animation: fade-up 0.8s ease forwards;
  opacity: 0;
  transform: translateY(12px);
}

.hero-content>*:nth-child(1) {
  animation-delay: 0.05s;
}

.hero-content>*:nth-child(2) {
  animation-delay: 0.15s;
}

.hero-content>*:nth-child(3) {
  animation-delay: 0.25s;
}

.hero-content>*:nth-child(4) {
  animation-delay: 0.35s;
}

.hero-content>*:nth-child(5) {
  animation-delay: 0.45s;
}

.hero-card {
  animation: float 8s ease-in-out infinite;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

  .hero-content>* {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Strong, visible focus styles for keyboard users */
:where(a, button, input, textarea, select) :focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* Buttons specifically */
.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  box-shadow: 0 6px 30px rgba(124, 92, 255, 0.12);
}

/* Ensure skip link is accessible */
.skip-link {
  left: -999px;
}

.skip-link:focus {
  left: 20px;
  top: 12px;
}

/* Improve standalone page layout: center and constrain content */
.section .section-title,
.section>.card,
.section>.grid,
.section>.work-cards-grid {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 700px) {

  .section .section-title,
  .section>.card,
  .section>.grid {
    padding: 0 16px;
  }
}

/* Page hero used on standalone pages */
.page-hero {
  background: linear-gradient(180deg, rgba(124, 92, 255, 0.06), rgba(34, 211, 238, 0.03));
  padding: 48px 0;
  margin-bottom: 24px;
  border-radius: 12px;
}

.page-hero .hero-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}

.page-hero h1 {
  font-size: clamp(1.6rem, 1.8vw + 1rem, 2.4rem);
  margin: 8px 0 12px;
}

.page-hero .lead {
  margin-bottom: 16px;
  color: var(--muted);
}

.page-hero .hero-cta {
  margin-top: 8px;
}


/* ═══════════════════════════════════════════════════════════════════
   ███  NEW FUTURISTIC ENHANCEMENTS  ███
   ═══════════════════════════════════════════════════════════════════ */

/* ── Animated gradient text ───────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #f5f7ff, var(--accent-2), #c4b5fd, #67e8f9, #f5f7ff);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 6s ease infinite;
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* ── Hero glow backdrop ───────────────────────────────────────── */
.hero-glow {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.18) 0%, rgba(34, 211, 238, 0.08) 50%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  top: -80px;
  left: -120px;
  animation: glow-pulse 6s ease-in-out infinite alternate;
}

.hero-glow--right {
  left: auto;
  right: -100px;
  top: 20%;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.15) 0%, rgba(124, 92, 255, 0.06) 50%, transparent 70%);
  animation-delay: 3s;
}

@keyframes glow-pulse {
  0% {
    opacity: 0.6;
    transform: scale(1);
  }

  100% {
    opacity: 1;
    transform: scale(1.15);
  }
}

/* ── Glassmorphism card ───────────────────────────────────────── */
.card--glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}

.card--glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.3), transparent, rgba(34, 211, 238, 0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card--glass:hover::before {
  opacity: 1;
}

.card--glass:hover {
  box-shadow: 0 18px 50px rgba(124, 92, 255, 0.15), 0 0 40px rgba(34, 211, 238, 0.08);
  border-color: rgba(124, 92, 255, 0.25);
}

/* ── Service card icon container ──────────────────────────────── */
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.15), rgba(34, 211, 238, 0.1));
  border: 1px solid rgba(124, 92, 255, 0.2);
  margin-bottom: 16px;
  transition: all 0.35s ease;
  box-shadow: 0 4px 20px rgba(124, 92, 255, 0.08);
}

.service-icon svg {
  width: 28px;
  height: 28px;
  color: var(--accent-2);
  transition: transform 0.35s ease;
}

.card--glass:hover .service-icon {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.25), rgba(34, 211, 238, 0.18));
  box-shadow: 0 0 24px rgba(124, 92, 255, 0.2), 0 0 48px rgba(34, 211, 238, 0.08);
  border-color: rgba(34, 211, 238, 0.3);
}

.card--glass:hover .service-icon svg {
  transform: scale(1.1) rotate(3deg);
}

/* ── Process section – connected timeline ─────────────────────── */
.process-grid {
  position: relative;
}

/* connecting line behind steps */
.process-grid::before {
  content: '';
  position: absolute;
  top: 42px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 50%, var(--accent) 100%);
  background-size: 200% 100%;
  animation: line-flow 4s linear infinite;
  z-index: 0;
  opacity: 0.4;
}

@keyframes line-flow {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.step {
  position: relative;
  z-index: 1;
  text-align: center;
}

/* Pulsing step number badge */
.step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 auto 16px;
  position: relative;
  box-shadow: 0 4px 20px rgba(124, 92, 255, 0.2);
}

.step-number::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(34, 211, 238, 0.3);
  animation: ring-pulse 3s ease-in-out infinite;
}

@keyframes ring-pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.3;
  }

  50% {
    transform: scale(1.15);
    opacity: 0.7;
  }
}

/* ── Pricing cards – frosted glass enhancement ────────────────── */
.price-card {
  position: relative;
  overflow: hidden;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.price-card:hover {
  border-color: rgba(124, 92, 255, 0.4);
  box-shadow: 0 20px 60px rgba(124, 92, 255, 0.18), 0 0 40px rgba(34, 211, 238, 0.06);
}

.price-card--featured {
  border: 2px solid rgba(124, 92, 255, 0.5);
  box-shadow: 0 20px 80px rgba(124, 92, 255, 0.2), 0 0 60px rgba(34, 211, 238, 0.08);
}

.price-card--featured:hover {
  box-shadow: 0 24px 90px rgba(124, 92, 255, 0.25), 0 0 80px rgba(34, 211, 238, 0.12);
}

/* "Most Popular" badge */
.popular-badge {
  position: absolute;
  top: 30px;
  right: -42px;
  padding: 4px 40px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(45deg);
  box-shadow: 0 4px 20px rgba(124, 92, 255, 0.3);
  z-index: 2;
}

/* Checkmark list items in pricing */
.price-card ul li {
  padding-left: 6px;
  position: relative;
}

.price-card ul li::before {
  content: '✓';
  color: var(--accent-2);
  margin-right: 10px;
  font-weight: 700;
}

/* ── Contact form – neon focus ────────────────────────────────── */
.contact-form {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.15), 0 0 20px rgba(124, 92, 255, 0.1), 0 0 40px rgba(34, 211, 238, 0.06);
}

/* Animated submit button */
.contact-form .btn--primary {
  background-size: 200% 200%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2), var(--accent));
  background-size: 200% 200%;
  animation: btn-gradient 4s ease infinite;
  position: relative;
  overflow: hidden;
}

@keyframes btn-gradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.contact-form .btn--primary::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  filter: blur(12px);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: -1;
}

.contact-form .btn--primary:hover::after {
  opacity: 0.5;
}

/* ── Footer – enhanced layout ─────────────────────────────────── */
.footer {
  position: relative;
}

.footer-gradient-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
  margin-bottom: 40px;
  border: none;
  opacity: 0.6;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-col h4 {
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.footer-col a {
  display: block;
  color: var(--muted);
  padding: 4px 0;
  transition: color 0.25s ease;
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: var(--accent-2);
}

.footer-brand p {
  margin-top: 8px;
  font-size: 0.92rem;
  max-width: 280px;
}

/* Social icons */
.social-icons {
  display: flex;
  gap: 14px;
  margin-top: 16px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--muted);
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.2), rgba(34, 211, 238, 0.15));
  color: var(--accent-2);
  border-color: rgba(124, 92, 255, 0.3);
  box-shadow: 0 0 20px rgba(124, 92, 255, 0.15);
  transform: translateY(-2px);
}

.social-icon svg {
  width: 20px;
  height: 20px;
}

/* ── Testimonial section ──────────────────────────────────────── */
.testimonial-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 28px;
  display: grid;
  gap: 16px;
  position: relative;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 50px rgba(124, 92, 255, 0.12);
}

.testimonial-quote {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 3rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.15;
  font-family: serif;
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.testimonial-text {
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
  font-size: 0.98rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

.testimonial-info strong {
  color: var(--text);
  display: block;
}

.testimonial-info span {
  color: var(--muted);
  font-size: 0.85rem;
}

/* ── FAQ Accordion ────────────────────────────────────────────── */
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 780px;
  margin: 0 auto;
}

.faq-item {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.35s ease;
}

.faq-item.is-open {
  border-color: rgba(124, 92, 255, 0.3);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 24px;
  background: none;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  gap: 16px;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-chevron {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  color: var(--accent-2);
}

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1), padding 0.35s ease;
  padding: 0 24px;
}

.faq-item.is-open .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

.faq-answer p {
  color: var(--muted);
  line-height: 1.7;
}

/* ── Back to top button ───────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 90px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 9997;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 20px rgba(124, 92, 255, 0.2);
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  box-shadow: 0 0 30px rgba(124, 92, 255, 0.3), 0 0 60px rgba(34, 211, 238, 0.1);
  transform: translateY(-2px);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
}

/* ── Responsive adjustments for new elements ──────────────────── */
@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .process-grid::before {
    display: none;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .testimonial-card {
    padding: 20px;
  }

  .faq-question {
    padding: 14px 18px;
    font-size: 0.95rem;
  }
}

@media (max-width: 700px) {
  .back-to-top {
    bottom: 140px;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   ███  LIGHT MODE SPECIFIC OVERRIDES  ███
   ═══════════════════════════════════════════════════════════════════ */

/* Light mode: ensure body background is visible behind particles */
html:not(.dark-mode) body {
  background: var(--bg);
}

/* Light mode particles: softer, subtle gradient */
html:not(.dark-mode) #particles-bg {
  background: linear-gradient(120deg, var(--bg-anim-1) 0%, var(--bg-anim-2) 50%, var(--bg-anim-3) 100%);
}

/* Nav: softer glow for light mode */
html:not(.dark-mode) .site-header {
  box-shadow: 0 2px 20px rgba(124, 92, 255, 0.08), 0 1px 8px rgba(0, 0, 0, 0.04);
  animation: none;
  border-bottom-color: var(--border);
}

/* Hero text: dark with no glow in light mode */
html:not(.dark-mode) .hero h1 {
  text-shadow: none;
  color: var(--text);
}

/* Hero glow: lighter and more subtle */
html:not(.dark-mode) .hero-glow {
  background: radial-gradient(circle, rgba(124, 92, 255, 0.08) 0%, rgba(34, 211, 238, 0.04) 50%, transparent 70%);
}

/* Cards: solid white with shadow in light mode */
html:not(.dark-mode) .card--glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

html:not(.dark-mode) .card--glass:hover {
  box-shadow: 0 12px 40px rgba(124, 92, 255, 0.1), 0 4px 20px rgba(0, 0, 0, 0.05);
  border-color: rgba(124, 92, 255, 0.25);
}

/* Service icon: softer bg in light mode */
html:not(.dark-mode) .service-icon {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.08), rgba(14, 165, 199, 0.06));
  border-color: rgba(124, 92, 255, 0.12);
}

/* Section alt: light background */
html:not(.dark-mode) .section--alt {
  background: var(--bg-alt);
}

/* Pricing cards: solid white background */
html:not(.dark-mode) .price-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-color: var(--border);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

html:not(.dark-mode) .price-card:hover {
  box-shadow: 0 12px 40px rgba(124, 92, 255, 0.12);
  border-color: rgba(124, 92, 255, 0.3);
}

html:not(.dark-mode) .price-card--featured {
  border-color: rgba(124, 92, 255, 0.4);
  box-shadow: 0 8px 40px rgba(124, 92, 255, 0.1);
}

/* Testimonial cards: white bg */
html:not(.dark-mode) .testimonial-card {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--border);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

/* FAQ items: white bg */
html:not(.dark-mode) .faq-item {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--border);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

html:not(.dark-mode) .faq-item.is-open {
  border-color: rgba(124, 92, 255, 0.3);
}

/* Contact form: white bg */
html:not(.dark-mode) .contact-form {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--border);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

html:not(.dark-mode) input,
html:not(.dark-mode) textarea {
  background: #fff;
  border-color: var(--border);
}

/* Hero card: white bg */
html:not(.dark-mode) .hero-card {
  background: #fff;
  box-shadow: 0 8px 40px rgba(15, 23, 42, 0.08);
}

/* Social icons: lighter bg */
html:not(.dark-mode) .social-icon {
  background: rgba(238, 240, 248, 0.8);
  border-color: var(--border);
}

html:not(.dark-mode) .social-icon:hover {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.1), rgba(14, 165, 199, 0.08));
}

/* Buttons: ensure secondary is readable */
html:not(.dark-mode) .btn--secondary {
  background: #fff;
  border-color: var(--border);
  color: var(--text);
}

html:not(.dark-mode) .btn--ghost {
  border-color: var(--border);
  color: var(--text);
}

/* Footer gradient: more visible in light mode */
html:not(.dark-mode) .footer-gradient-divider {
  opacity: 0.4;
}

/* Case card: white bg */
html:not(.dark-mode) .case-card {
  background: #fff;
}

/* Work card: white bg */
html:not(.dark-mode) .work-card {
  background: #fff;
}

/* Scroll progress: slightly more subtle */
html:not(.dark-mode) .scroll-progress-bar {
  opacity: 0.7;
}

/* Sticky contact panel: lighter in light mode */
html:not(.dark-mode) .sticky-contact .sc-btn {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  border-color: var(--border);
}

/* Step cards in light mode */
html:not(.dark-mode) .step {
  background: #fff;
}

/* Consent banner: white bg */
html:not(.dark-mode) .consent-banner {
  background: #fff;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.1);
}

/* ═══════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════ */

/* 1. Keyframes */
@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes pulse-glow {

  0%,
  100% {
    color: var(--accent);
    text-shadow: 0 0 12px rgba(124, 92, 255, 0.6), 0 0 28px rgba(124, 92, 255, 0.3);
  }

  50% {
    color: var(--accent-2);
    text-shadow: 0 0 18px rgba(34, 211, 238, 0.8), 0 0 40px rgba(34, 211, 238, 0.4);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

@keyframes icon-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* 2. Floating service icons */
.service-icon {
  animation: float 3.5s ease-in-out infinite;
  will-change: transform;
  display: inline-flex;
}

/* Stagger float phase per card so they don't all move together */
.card:nth-child(1) .service-icon {
  animation-delay: 0s;
}

.card:nth-child(2) .service-icon {
  animation-delay: 0.6s;
}

.card:nth-child(3) .service-icon {
  animation-delay: 1.2s;
}

.card:nth-child(4) .service-icon {
  animation-delay: 1.8s;
}

/* Spin on card hover */
.card:hover .service-icon svg,
.card:focus-within .service-icon svg {
  animation: icon-spin 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* 3. Step number glow pulse */
.step-number {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-display);
  animation: pulse-glow 2.8s ease-in-out infinite;
  will-change: text-shadow, color;
  margin-bottom: 10px;
}

.step:nth-child(1) .step-number {
  animation-delay: 0s;
}

.step:nth-child(2) .step-number {
  animation-delay: 0.7s;
}

.step:nth-child(3) .step-number {
  animation-delay: 1.4s;
}

.step:nth-child(4) .step-number {
  animation-delay: 2.1s;
}

/* 4. Pill shimmer sweep */
.pill {
  background-size: 200% auto;
  background-image: linear-gradient(105deg,
      rgba(124, 92, 255, 0.15) 0%,
      rgba(124, 92, 255, 0.15) 40%,
      rgba(255, 255, 255, 0.35) 50%,
      rgba(124, 92, 255, 0.15) 60%,
      rgba(124, 92, 255, 0.15) 100%);
  animation: shimmer 3.5s linear infinite;
}

.pill--ghost {
  background-image: linear-gradient(105deg,
      rgba(34, 211, 238, 0.12) 0%,
      rgba(34, 211, 238, 0.12) 40%,
      rgba(255, 255, 255, 0.3) 50%,
      rgba(34, 211, 238, 0.12) 60%,
      rgba(34, 211, 238, 0.12) 100%);
  animation: shimmer 3.5s linear infinite 0.8s;
}

/* 5. Staggered card entrance — only hidden when JS is active (.js-anim on <html>) */
.js-anim .card,
.js-anim .price-card,
.js-anim .testimonial-card,
.js-anim .step {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.js-anim .card.in-view,
.js-anim .price-card.in-view,
.js-anim .testimonial-card.in-view,
.js-anim .step.in-view {
  opacity: 1;
  transform: none;
}

/* Stagger delays (set by JS via --stagger-delay) */
.js-anim .card,
.js-anim .price-card,
.js-anim .testimonial-card,
.js-anim .step {
  transition-delay: var(--stagger-delay, 0ms);
}

/* Accessibility: honour reduced motion */
@media (prefers-reduced-motion: reduce) {

  .service-icon,
  .step-number,
  .pill,
  .pill--ghost {
    animation: none;
  }

  .js-anim .card,
  .js-anim .price-card,
  .js-anim .testimonial-card,
  .js-anim .step {
    opacity: 1;
    transform: none;
    transition: none;
  }
}