/* =============================================
   AHMED ZERABIB — ULTRA PREMIUM PORTFOLIO CSS
   ============================================= */

/* ─── VARIABLES ─────────────────────────────── */
:root {
  --bg: #050508;
  --bg2: #07070f;
  --bg3: #0d0d1a;
  --surface: rgba(255, 255, 255, 0.03);
  --surface2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.07);
  --border2: rgba(6, 182, 212, 0.3);

  --violet: #06b6d4;
  --violet-dim: #0891b2;
  --violet-bright: #22d3ee;
  --cyan: #06b6d4;
  --cyan-dim: #0891b2;
  --pink: #ec4899;
  --green: #10b981;
  --amber: #f59e0b;

  --grad-violet: linear-gradient(135deg, #06b6d4, #0891b2);
  --grad-cyan: linear-gradient(135deg, #06b6d4, #0891b2);
  --grad-hero: linear-gradient(135deg, #06b6d4 0%, #0891b2 50%, #ec4899 100%);
  --grad-text: linear-gradient(135deg, #22d3ee, #0891b2);

  --text: #f1f0ff;
  --text2: #a09ab8;
  --text3: #6b6585;

  --font-display: "Syne", sans-serif;
  --font-body: "Cabinet Grotesk", sans-serif;
  --font-mono: "DM Mono", monospace;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 32px;

  --shadow-violet: 0 0 60px rgba(6, 182, 212, 0.25);
  --shadow-cyan: 0 0 60px rgba(6, 182, 212, 0.2);
  --shadow-card: 0 8px 40px rgba(0, 0, 0, 0.6);
  --shadow-deep: 0 24px 80px rgba(0, 0, 0, 0.7);

  --transition: cubic-bezier(0.4, 0, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── LIGHT MODE ────────────────────────────── */
[data-theme="light"] {
  --bg: #f5f5f7;
  --bg2: #eeeef1;
  --bg3: #e4e4e9;
  --surface: rgba(0, 0, 0, 0.03);
  --surface2: rgba(0, 0, 0, 0.06);
  --border: rgba(0, 0, 0, 0.08);
  --border2: rgba(6, 182, 212, 0.35);

  --violet: #0891b2;
  --violet-dim: #0e7490;
  --violet-bright: #06b6d4;
  --cyan: #0891b2;
  --cyan-dim: #0e7490;

  --grad-violet: linear-gradient(135deg, #06b6d4, #0891b2);
  --grad-cyan: linear-gradient(135deg, #06b6d4, #0891b2);
  --grad-hero: linear-gradient(135deg, #06b6d4 0%, #0891b2 50%, #ec4899 100%);
  --grad-text: linear-gradient(135deg, #0891b2, #0e7490);

  --text: #1a1a2e;
  --text2: #4a4a6a;
  --text3: #7a7a9a;

  --shadow-violet: 0 0 60px rgba(6, 182, 212, 0.15);
  --shadow-cyan: 0 0 60px rgba(6, 182, 212, 0.12);
  --shadow-card: 0 8px 40px rgba(0, 0, 0, 0.08);
  --shadow-deep: 0 24px 80px rgba(0, 0, 0, 0.1);
}

/* Light mode — aurora / grain toned down */
[data-theme="light"] body::before {
  background:
    radial-gradient(ellipse 100% 80% at 20% -10%, rgba(6, 182, 212, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 80% 60% at 80% 110%, rgba(6, 182, 212, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse 60% 60% at 50% 50%, rgba(236, 72, 153, 0.02) 0%, transparent 60%);
  animation: none;
}

[data-theme="light"] body::after {
  opacity: 0.012;
}

/* Navbar */
[data-theme="light"] .navbar.scrolled::before {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px) saturate(1.2);
  border-bottom-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Mobile menu */
[data-theme="light"] .mob-backdrop {
  background: rgba(0, 0, 0, 0.2);
}
[data-theme="light"] .mob-inner {
  background: var(--bg2);
  border-left-color: rgba(0, 0, 0, 0.08);
}

/* Hamburger */
[data-theme="light"] .hamburger span {
  background: var(--text);
}

/* Hero canvas — reduce opacity */
[data-theme="light"] #heroCanvas {
  opacity: 0.35;
}

/* Hero glows */
[data-theme="light"] .hero-glow {
  opacity: 0.3;
}


/* Footer */
[data-theme="light"] .footer {
  border-top-color: rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .back-to-top {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.08);
}

/* Scroll progress */
[data-theme="light"] .scroll-progress {
  box-shadow: 0 0 6px rgba(6, 182, 212, 0.5);
}

/* Lang switcher */
[data-theme="light"] .lang-btn {
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--text2);
}
[data-theme="light"] .lang-btn:hover {
  background: rgba(6, 182, 212, 0.06);
}

/* Hero image frame */
[data-theme="light"] .hero-image-bg {
  opacity: 0.15;
}

/* Section highlight gradient text */
.highlight {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="light"] .highlight {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Theme toggle button */
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s var(--transition);
  position: relative;
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--border2);
  color: var(--text);
  background: var(--surface2);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.15);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform 0.4s var(--spring);
}

.theme-toggle:hover svg {
  transform: rotate(30deg);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  position: absolute;
  transition: opacity 0.3s, transform 0.4s var(--spring);
}

.theme-toggle .icon-sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0);
}
.theme-toggle .icon-moon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

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

/* ─── PRELOADER : NUVEX PRO TECH ANIMATION ──── */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, #001a2e 0%, #000814 55%, #00040a 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preloader::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 255, 255, 0.10) 0%, transparent 55%);
  pointer-events: none;
  animation: nxAmbientPulse 3.6s 1.4s ease-in-out infinite;
  opacity: 0;
}
@keyframes nxAmbientPulse {
  0%, 100% { opacity: 0.35; }
  50%      { opacity: 1; }
}

#preloaderParticles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.preloader-content {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nuvex-stage {
  position: relative;
  width: clamp(280px, 38vw, 440px);
  aspect-ratio: 1 / 1.05;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ── Tech rings ─────────────────────────────── */
.nx-rings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  filter: drop-shadow(0 0 6px rgba(0, 255, 255, 0.5));
  opacity: 0;
  animation: nxRingsIn 0.8s 0.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes nxRingsIn {
  from { opacity: 0; transform: scale(0.7); }
  to   { opacity: 1; transform: scale(1); }
}
.nx-ring {
  transform-origin: 100px 100px;
  transform-box: fill-box;
}
.nx-ring-1 { animation: nxSpin 18s linear infinite; }
.nx-ring-2 { animation: nxSpin 24s linear infinite reverse; }
.nx-ring-3 { animation: nxSpin 9s  linear infinite; }
@keyframes nxSpin {
  to { transform: rotate(360deg); }
}
.nx-ring-tick {
  filter: drop-shadow(0 0 4px #00FFFF);
  animation: nxBlink 1.6s ease-in-out infinite;
}
.nx-ring-tick:nth-of-type(2) { animation-delay: 0.4s; }
.nx-ring-tick:nth-of-type(3) { animation-delay: 0.8s; }
.nx-ring-tick:nth-of-type(4) { animation-delay: 1.2s; }
@keyframes nxBlink {
  0%, 100% { opacity: 0.3; }
  50%      { opacity: 1; }
}

/* ── Corner brackets ────────────────────────── */
.nx-bracket {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 1.5px solid #00FFFF;
  filter: drop-shadow(0 0 6px rgba(0, 255, 255, 0.7));
  z-index: 2;
  opacity: 0;
  animation: nxBracketIn 0.5s 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.br-tl { top: 6%;    left: 6%;   border-right: none;  border-bottom: none; }
.br-tr { top: 6%;    right: 6%;  border-left: none;   border-bottom: none; animation-delay: 0.7s; }
.br-bl { bottom: 18%; left: 6%;  border-right: none;  border-top: none;    animation-delay: 0.8s; }
.br-br { bottom: 18%; right: 6%; border-left: none;   border-top: none;    animation-delay: 0.9s; }
@keyframes nxBracketIn {
  from { opacity: 0; transform: scale(0.5); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── Logo frame + scan reveal ───────────────── */
.nx-logo-frame {
  position: relative;
  width: 62%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transform: translateY(-4%);
}
.nx-logo-img {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  filter: drop-shadow(0 0 0 rgba(0, 255, 255, 0));
  animation:
    nxLogoIn   0.9s 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    nxLogoGlow 1.6s 1.5s ease-out 1 forwards,
    nxGlitch   3.6s 2.5s steps(1) infinite;
}
.nx-logo-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  clip-path: inset(0 0 100% 0);
  animation: nxClipReveal 1.1s 0.85s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
@keyframes nxClipReveal {
  0%   { clip-path: inset(0 0 100% 0); }
  100% { clip-path: inset(0 0 0% 0);   }
}
@keyframes nxLogoIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes nxLogoGlow {
  0%   { filter: drop-shadow(0 0 0 rgba(0,255,255,0)); }
  40%  { filter: drop-shadow(0 0 28px rgba(0,255,255,0.95)) drop-shadow(0 0 56px rgba(0,255,255,0.55)); }
  100% { filter: drop-shadow(0 0 14px rgba(0,255,255,0.55)) drop-shadow(0 0 28px rgba(0,255,255,0.25)); }
}
@keyframes nxGlitch {
  0%, 96%, 100% { transform: translate(0, 0); }
  97%           { transform: translate(-2px, 1px); filter: hue-rotate(20deg); }
  98%           { transform: translate(2px, -1px); }
  99%           { transform: translate(-1px, 0); }
}

/* Scan line that swipes across the logo on entry */
.nx-scan {
  position: absolute;
  left: -4%;
  right: -4%;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00FFFF 50%, transparent);
  box-shadow: 0 0 12px #00FFFF, 0 0 24px rgba(0, 255, 255, 0.6);
  opacity: 0;
  z-index: 3;
  animation: nxScan 1.4s 0.7s cubic-bezier(0.65, 0, 0.35, 1) 1 forwards;
}
@keyframes nxScan {
  0%   { top: 0%;   opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* ── Status meta block ──────────────────────── */
.nx-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
  opacity: 0;
  animation: nxMetaIn 0.6s 2.1s ease forwards;
}
@keyframes nxMetaIn {
  to { opacity: 1; }
}

.nx-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', 'DM Mono', ui-monospace, monospace;
  font-size: clamp(9px, 1.1vw, 11px);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #FFFFFF 0%, #B0F4FF 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nx-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00FFFF;
  box-shadow: 0 0 8px #00FFFF, 0 0 16px rgba(0, 255, 255, 0.7);
  animation: nxBlink 1.2s ease-in-out infinite;
}
.nx-status-text::after {
  content: "_";
  margin-left: 2px;
  animation: nxBlink 0.7s steps(1) infinite;
  -webkit-text-fill-color: #00FFFF;
}

.nx-progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: clamp(180px, 22vw, 240px);
}
.nx-progress {
  flex: 1;
  height: 2px;
  background: rgba(0, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
}
.nx-progress::before,
.nx-progress::after {
  content: "";
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 1px;
  background: rgba(0, 255, 255, 0.5);
}
.nx-progress::before { left: 0; }
.nx-progress::after  { right: 0; }
.nx-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #FFFFFF, #00FFFF);
  box-shadow: 0 0 10px #00FFFF, 0 0 20px rgba(0, 255, 255, 0.6);
  transition: width 0.12s linear;
}
.nx-progress-num {
  font-family: 'JetBrains Mono', 'DM Mono', ui-monospace, monospace;
  font-size: clamp(10px, 1.2vw, 12px);
  font-weight: 600;
  color: #B0F4FF;
  min-width: 28px;
  text-align: right;
  letter-spacing: 0.08em;
}

/* ── Exit ───────────────────────────────────── */
.preloader.exit {
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.7s cubic-bezier(0.65, 0, 0.35, 1),
              transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}
.preloader.exit .nuvex-stage {
  filter: blur(6px);
  transition: filter 0.6s ease;
}
.preloader.done {
  pointer-events: none;
  visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .nx-rings, .nx-bracket, .nx-logo-img, .nx-logo-img img, .nx-scan,
  .nx-meta, .nx-status-dot, .nx-ring-tick, .nx-ring-1, .nx-ring-2, .nx-ring-3,
  .preloader::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
  }
  .nx-logo-img, .nx-meta, .nx-rings, .nx-bracket { opacity: 1 !important; }
  .nx-logo-img img { -webkit-mask-image: none; mask-image: none; }
}

/* ─── AMBIENT LIGHTNING ─────────────────────── */
#ambientLightning {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
[data-theme="light"] #ambientLightning {
  opacity: 0.4;
}

/* ─── RESET ──────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
  transition: background-color 0.4s ease, color 0.4s ease;
}
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}
/* ─── AURORA MESH BACKGROUND ─────────────────── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(
      ellipse 100% 80% at 20% -10%,
      rgba(6, 182, 212, 0.12) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse 80% 60% at 80% 110%,
      rgba(6, 182, 212, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse 60% 60% at 50% 50%,
      rgba(236, 72, 153, 0.04) 0%,
      transparent 60%
    );
  pointer-events: none;
  z-index: 0;
  animation: auroraDrift 40s ease-in-out infinite alternate;
}

@keyframes auroraDrift {
  0% {
    background:
      radial-gradient(
        ellipse 100% 80% at 20% -10%,
        rgba(6, 182, 212, 0.12) 0%,
        transparent 50%
      ),
      radial-gradient(
        ellipse 80% 60% at 80% 110%,
        rgba(6, 182, 212, 0.08) 0%,
        transparent 50%
      ),
      radial-gradient(
        ellipse 60% 60% at 50% 50%,
        rgba(236, 72, 153, 0.04) 0%,
        transparent 60%
      );
  }
  33% {
    background:
      radial-gradient(
        ellipse 100% 80% at 80% 0%,
        rgba(6, 182, 212, 0.1) 0%,
        transparent 50%
      ),
      radial-gradient(
        ellipse 80% 60% at 10% 80%,
        rgba(6, 182, 212, 0.1) 0%,
        transparent 50%
      ),
      radial-gradient(
        ellipse 60% 60% at 60% 30%,
        rgba(236, 72, 153, 0.05) 0%,
        transparent 60%
      );
  }
  66% {
    background:
      radial-gradient(
        ellipse 100% 80% at 40% 110%,
        rgba(6, 182, 212, 0.08) 0%,
        transparent 50%
      ),
      radial-gradient(
        ellipse 80% 60% at 70% -10%,
        rgba(6, 182, 212, 0.12) 0%,
        transparent 50%
      ),
      radial-gradient(
        ellipse 60% 60% at 20% 60%,
        rgba(236, 72, 153, 0.06) 0%,
        transparent 60%
      );
  }
  100% {
    background:
      radial-gradient(
        ellipse 100% 80% at 60% 20%,
        rgba(6, 182, 212, 0.14) 0%,
        transparent 50%
      ),
      radial-gradient(
        ellipse 80% 60% at 30% 90%,
        rgba(6, 182, 212, 0.07) 0%,
        transparent 50%
      ),
      radial-gradient(
        ellipse 60% 60% at 80% 40%,
        rgba(236, 72, 153, 0.05) 0%,
        transparent 60%
      );
  }
}

/* ─── GRAIN OVERLAY ──────────────────────────── */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 1;
}

a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
img {
  display: block;
  max-width: 100%;
}

::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--violet), var(--cyan));
  border-radius: 4px;
}

::selection {
  background: rgba(6, 182, 212, 0.4);
  color: #fff;
}

/* ─── CURSOR TRAIL CANVAS ───────────────────── */
#cursorCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

/* ─── HIDE CUSTOM CURSOR ON MOBILE / TOUCH ──── */
@media (max-width: 768px), (pointer: coarse) {
  body,
  body * {
    cursor: auto !important;
  }
  #cursorCanvas {
    display: none !important;
  }
}

/* ─── SCROLL PROGRESS ────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--grad-hero);
  z-index: 9998;
  box-shadow:
    0 0 8px rgba(6, 182, 212, 1),
    0 0 20px rgba(6, 182, 212, 0.6);
  transition: width 0.08s linear;
}

/* ─── CONTAINER ──────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

/* ─── REVEAL ANIMATIONS ──────────────────────── */
.reveal-up,
.reveal-right {
  opacity: 0;
  transition:
    opacity 0.6s var(--transition),
    transform 0.6s var(--transition);
}

.reveal-up {
  transform: translateY(30px);
}
.reveal-right {
  transform: translateX(40px);
}

.reveal-up.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ─── BUTTONS ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  cursor: none;
  transition: all 0.35s var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.35s var(--spring);
}

.btn-primary {
  background: linear-gradient(135deg, #9d70ff, #0891b2 50%, #7c3aed);
  background-size: 200% 200%;
  color: #fff;
  box-shadow:
    0 4px 20px rgba(6, 182, 212, 0.5),
    0 0 60px rgba(6, 182, 212, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  animation: btnGradientShift 4s ease infinite;
}

@keyframes btnGradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-primary:hover::before {
  opacity: 1;
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 12px 40px rgba(6, 182, 212, 0.65),
    0 0 80px rgba(6, 182, 212, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn-primary:hover svg {
  transform: translateX(5px);
}

/* Shimmer sweep */
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.22),
    transparent
  );
  skew: -15deg;
  transition: left 0.7s var(--transition);
}
.btn-primary:hover::after {
  left: 160%;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(6, 182, 212, 0.35);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 20px rgba(6, 182, 212, 0.03);
}

.btn-outline:hover {
  background: rgba(6, 182, 212, 0.12);
  border-color: var(--violet);
  transform: translateY(-3px);
  box-shadow:
    0 8px 30px rgba(6, 182, 212, 0.25),
    inset 0 0 20px rgba(6, 182, 212, 0.05);
}

.btn:active {
  transform: translateY(0) scale(0.97);
  transition-duration: 0.1s;
}

.btn-full {
  width: 100%;
  justify-content: center;
}


/* ─── NAVBAR ─────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%; /* ← ADD THIS */
  max-width: 100vw; /* ← ADD THIS */
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(20px, 5vw, 60px);
  transition: all 0.5s var(--transition);
}
.navbar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: all 0.5s var(--transition);
  z-index: -1;
}

.navbar.scrolled::before {
  background: rgba(5, 5, 8, 0.88);
  backdrop-filter: blur(24px) saturate(1.8);
  border-bottom-color: rgba(6, 182, 212, 0.1);
  box-shadow:
    0 1px 0 rgba(6, 182, 212, 0.05),
    0 8px 32px rgba(0, 0, 0, 0.4);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  cursor: none;
  position: relative;
}

.nav-logo .dot {
  color: var(--violet);
  display: inline-block;
  animation: dotPulse 3s ease-in-out infinite;
}

@keyframes dotPulse {
  0%,
  100% {
    text-shadow: 0 0 8px var(--violet);
  }
  50% {
    text-shadow:
      0 0 20px var(--violet),
      0 0 40px var(--violet),
      0 0 60px rgba(6, 182, 212, 0.5);
  }
}

.nav-links {
  display: flex;
  gap: 2px;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  padding: 8px 16px;
  border-radius: 100px;
  color: var(--text2);
  transition: all 0.3s var(--transition);
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--violet), var(--cyan));
  border-radius: 1px;
  transition: width 0.3s var(--spring);
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.8);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}
.nav-link.active::after {
  width: 22px;
}
.nav-link:hover::after {
  width: 16px;
}

.nav-cta {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  padding: 9px 22px;
  border-radius: 100px;
  background: var(--grad-violet);
  color: #fff;
  box-shadow:
    0 2px 16px rgba(6, 182, 212, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: all 0.3s var(--transition);
  position: relative;
  overflow: hidden;
}
.nav-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow:
    0 6px 24px rgba(6, 182, 212, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.nav-cta:hover::after {
  opacity: 1;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.35s var(--transition);
  transform-origin: center;
}
.hamburger.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile Menu */
/* ─── MOBILE MENU ────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  visibility: hidden;
  pointer-events: none;
}

.mobile-menu.open {
  visibility: visible;
  pointer-events: all;
  z-index: 1001;
}

/* Blurred dark backdrop */
.mob-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 8, 0.6);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.5s var(--transition);
}
.mobile-menu.open .mob-backdrop {
  opacity: 1;
}

/* Slide-in panel from right */
.mob-inner {
  position: absolute;
  top: 0;
  right: 0;
  width: min(360px, 88vw);
  height: 100%;
  background: var(--bg2);
  border-left: 1px solid rgba(6, 182, 212, 0.15);
  display: flex;
  flex-direction: column;
  padding: 32px 32px 40px;
  overflow: hidden;
  transform: translateX(100%);
  transition: transform 0.55s cubic-bezier(0.77, 0, 0.18, 1);
  box-shadow: -24px 0 80px rgba(0, 0, 0, 0.6);
}
.mobile-menu.open .mob-inner {
  transform: translateX(0);
}

/* Ambient glows inside panel */
.mob-glow-1 {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(6, 182, 212, 0.12) 0%,
    transparent 70%
  );
  top: -80px;
  right: -80px;
  pointer-events: none;
}
.mob-glow-2 {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(6, 182, 212, 0.07) 0%,
    transparent 70%
  );
  bottom: 40px;
  left: -60px;
  pointer-events: none;
}

/* Close button */
.mob-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s var(--transition);
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}
.mobile-menu.open .mob-close {
  opacity: 1;
  transform: rotate(0) scale(1);
  transition-delay: 0.3s;
}
.mob-close svg {
  width: 18px;
  height: 18px;
}
.mob-close:hover {
  border-color: var(--border2);
  color: var(--text);
  background: var(--surface2);
  transform: rotate(90deg) scale(1.1);
}

/* Header */
.mob-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 48px;
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.4s var(--transition) 0.3s,
    transform 0.4s var(--transition) 0.3s;
}
.mobile-menu.open .mob-header {
  opacity: 1;
  transform: translateY(0);
}
.mob-logo {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}
.mob-logo .dot {
  color: var(--violet);
  animation: dotPulse 3s ease-in-out infinite;
}
.mob-tagline {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text3);
}

/* Nav list */
.mob-nav {
  flex: 1;
}
.mob-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mob-nav li {
  opacity: 0;
  transform: translateX(28px);
  transition:
    opacity 0.4s var(--transition),
    transform 0.4s var(--transition);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
/* Stagger each nav item when open */
.mobile-menu.open .mob-nav li:nth-child(1) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.25s;
}
.mobile-menu.open .mob-nav li:nth-child(2) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.32s;
}
.mobile-menu.open .mob-nav li:nth-child(3) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.39s;
}
.mobile-menu.open .mob-nav li:nth-child(4) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.46s;
}
.mobile-menu.open .mob-nav li:nth-child(5) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.53s;
}
.mobile-menu.open .mob-nav li:nth-child(6) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.6s;
}

.mob-link {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  position: relative;
  transition:
    color 0.3s var(--transition),
    gap 0.3s var(--spring);
  -webkit-text-fill-color: unset;
}
.mob-link::before {
  content: attr(data-num);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--violet);
  opacity: 0.6;
  min-width: 22px;
  transition: opacity 0.3s;
}
.mob-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(to right, var(--violet), var(--cyan));
  transition: width 0.4s var(--spring);
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.6);
}
.mob-link:hover {
  color: var(--text);
  gap: 20px;
  -webkit-text-fill-color: unset;
  transform: none;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}
.mob-link:hover::before {
  opacity: 1;
}
.mob-link:hover::after {
  width: 100%;
}

/* Footer — CTA + socials */
.mob-footer {
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.4s var(--transition) 0.7s,
    transform 0.4s var(--transition) 0.7s;
}
.mobile-menu.open .mob-footer {
  opacity: 1;
  transform: translateY(0);
}
.mob-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 100px;
  background: var(--grad-violet);
  color: #fff !important;
  font-family: var(--font-mono) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.4);
  transition:
    transform 0.3s var(--spring),
    box-shadow 0.3s !important;
  -webkit-text-fill-color: #fff !important;
}
.mob-cta::before,
.mob-cta::after {
  display: none;
}
.mob-cta:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.6) !important;
  color: #fff !important;
  gap: 8px !important;
}
.mob-socials {
  display: flex;
  gap: 12px;
}
.mob-social {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text2);
  transition: all 0.3s var(--spring);
}
.mob-social:hover {
  border-color: var(--violet);
  color: #fff;
  background: rgba(6, 182, 212, 0.12);
  transform: translateY(-3px);
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}
.mobile-menu ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.mob-link {
  font-family: var(--font-display);
  font-size: clamp(16px, 3vw, 16px);
  font-weight: 800;
  color: var(--text2);
  transition: all 0.3s var(--transition);
  display: block;
  text-align: center;
  letter-spacing: -0.03em;
  padding: 10px;
}

/* ─── HERO ────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: var(--hero-vh, 100vh);
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 2;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-bg-grid {
  display: none;
}

@keyframes gridDrift {
  0% {
    background-position:
      0 0,
      0 0;
  }
  100% {
    background-position:
      60px 60px,
      60px 60px;
  }
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

.glow-1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(
    circle,
    rgba(6, 182, 212, 0.22) 0%,
    rgba(6, 182, 212, 0.05) 40%,
    transparent 70%
  );
  top: -15%;
  left: -10%;
  animation: glowPulse1 8s ease-in-out infinite;
}

.glow-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(6, 182, 212, 0.18) 0%,
    rgba(6, 182, 212, 0.04) 40%,
    transparent 70%
  );
  bottom: 0%;
  right: 0%;
  animation: glowPulse2 10s ease-in-out infinite;
}

@keyframes glowPulse1 {
  0%,
  100% {
    opacity: 0.8;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

@keyframes glowPulse2 {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

/* Floating orbs */
.hero::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(236, 72, 153, 0.07) 0%,
    transparent 70%
  );
  top: 60%;
  left: 40%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  animation: orbFloat 14s ease-in-out infinite;
}

@keyframes orbFloat {
  0%,
  100% {
    transform: translate(0, 0);
  }
  33% {
    transform: translate(40px, -30px);
  }
  66% {
    transform: translate(-20px, 20px);
  }
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px clamp(20px, 5vw, 60px) 60px;
}

.hero-content {
  flex: 1;
  max-width: 580px;
}

/* Hero Tag */
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px 6px 10px;
  background: rgba(16, 185, 129, 0.07);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--green);
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
  box-shadow:
    0 0 20px rgba(16, 185, 129, 0.08),
    inset 0 1px 0 rgba(16, 185, 129, 0.1);
}

.tag-dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  animation: tagPulse 2s ease-in-out infinite;
}

@keyframes tagPulse {
  0%,
  100% {
    box-shadow: 0 0 6px var(--green);
    transform: scale(1);
  }
  50% {
    box-shadow:
      0 0 16px var(--green),
      0 0 32px rgba(16, 185, 129, 0.5);
    transform: scale(1.4);
  }
}

@keyframes nameGradientFlow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Hero Title */
.hero-title {
  font-family: var(--font-mono);
  font-size: clamp(14px, 2vw, 18px);
  color: var(--text2);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 30px;
}

.title-prefix,
.title-suffix {
  color: var(--cyan);
  opacity: 0.7;
}

#typingText {
  color: var(--cyan);
  font-weight: 500;
  text-shadow: 0 0 20px rgba(6, 182, 212, 0.6);
}

.cursor-blink {
  color: var(--violet);
  animation: blink 1s step-end infinite;
  text-shadow: 0 0 12px var(--violet);
}

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

/* Hero Bio */
.hero-bio {
  font-size: 16px;
  color: var(--text2);
  line-height: 1.8;
  margin-bottom: 38px;
  max-width: 480px;
}

/* Hero Buttons */
.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}

.stat {
  text-align: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  filter: drop-shadow(0 0 12px rgba(6, 182, 212, 0.4));
}

.stat-plus {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--violet);
  vertical-align: super;
}

.stat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text3);
  margin-top: 5px;
}

.stat-divider {
  width: 1px;
  height: 44px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(6, 182, 212, 0.4),
    transparent
  );
}

/* Hero Image */
.hero-image-wrap {
  flex: 0 0 auto;
  width: clamp(280px, 35vw, 420px);
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.1s linear;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hero-image-wrap .hero-image-frame { aspect-ratio: 1; height: auto; }

.lightning-canvas {
  position: absolute;
  inset: -80px;
  width: calc(100% + 160px);
  height: calc(100% + 160px);
  z-index: 10;
  pointer-events: none;
}

.hero-image-bg {
  position: absolute;
  inset: -30px;
  background: conic-gradient(
    from 0deg,
    var(--violet),
    var(--cyan),
    var(--pink),
    var(--violet-bright),
    var(--violet)
  );
  border-radius: 50%;
  opacity: 0.15;
  filter: blur(50px);
  animation: rotateBg 10s linear infinite;
}

@keyframes rotateBg {
  to {
    transform: rotate(360deg);
  }
}

.hero-image-frame {
  width: 100%;
  height: 100%;
  border-radius: var(--r-xl);
  background: var(--bg3);
  border: 1px solid rgba(6, 182, 212, 0.25);
  overflow: hidden;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 80px rgba(6, 182, 212, 0.2),
    0 40px 80px rgba(0, 0, 0, 0.6),
    inset 0 0 60px rgba(6, 182, 212, 0.04);
}

/* Animated border on frame */
.hero-image-frame::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: var(--r-xl);
  background: conic-gradient(
    from var(--angle, 0deg),
    var(--violet),
    var(--cyan),
    var(--pink),
    var(--violet)
  );
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s;
  animation: rotateBorderAngle 4s linear infinite;
}

.hero-image-wrap:hover .hero-image-frame::before {
  opacity: 0.6;
}

@property --angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
@keyframes rotateBorderAngle {
  to {
    --angle: 360deg;
  }
}

/* Frame corners */
.frame-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--violet);
  border-style: solid;
  opacity: 0.9;
  animation: cornerPulse 3s ease-in-out infinite;
  z-index: 4;
}
.frame-corner.tl {
  top: 12px;
  left: 12px;
  border-width: 2px 0 0 2px;
}
.frame-corner.tr {
  top: 12px;
  right: 12px;
  border-width: 2px 2px 0 0;
}
.frame-corner.bl {
  bottom: 12px;
  left: 12px;
  border-width: 0 0 2px 2px;
}
.frame-corner.br {
  bottom: 12px;
  right: 12px;
  border-width: 0 2px 2px 0;
  animation-delay: 0.5s;
}

@keyframes cornerPulse {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
    box-shadow:
      0 0 12px var(--violet),
      0 0 24px rgba(6, 182, 212, 0.4);
  }
}

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

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text3);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  z-index: 2;
  animation: fadeInUp 1s 1.5s both;
}

.scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, transparent, var(--violet));
  animation: scrollLine 2.2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.6);
}

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--violet) 30%,
    var(--cyan) 70%,
    transparent 100%
  );
  opacity: 0.4;
  box-shadow: 0 0 20px var(--violet);
}

/* ─── FOOTER ─────────────────────────────────── */
.footer {
  padding: 40px 0;
  border-top: 1px solid rgba(6, 182, 212, 0.1);
  position: relative;
  z-index: 2;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--violet),
    var(--cyan),
    transparent
  );
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

/* ═══════════════════════════════════════════════
   SERVICES SECTION
   ═══════════════════════════════════════════════ */
.services {
  position: relative;
  padding: 130px 0 140px;
  overflow: hidden;
  background: var(--bg2);
}

.svc-bg-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(120px);
  z-index: 0;
}
.svc-bg-glow-1 {
  width: 600px; height: 600px;
  left: -180px; top: -100px;
  background: radial-gradient(circle, rgba(6,182,212,0.07) 0%, transparent 70%);
}
.svc-bg-glow-2 {
  width: 500px; height: 500px;
  right: -120px; bottom: -100px;
  background: radial-gradient(circle, rgba(167,139,250,0.07) 0%, transparent 70%);
}

.services .container { position: relative; z-index: 1; }

/* ── Header ──────────────────────────────────── */
.svc-head {
  text-align: center;
  margin-bottom: 76px;
}
.svc-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(6,182,212,0.08);
  border: 1px solid rgba(6,182,212,0.2);
  border-radius: 100px;
  padding: 5px 16px;
  margin-bottom: 20px;
}
.svc-main-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 18px;
}
.svc-main-sub {
  font-size: 1.05rem;
  color: var(--text2);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Grid ─────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* ── Card ─────────────────────────────────────── */
.svc-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.45s var(--spring), border-color 0.3s ease, box-shadow 0.4s ease;
  overflow: hidden;
}
.svc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-xl);
  background: radial-gradient(circle at 50% -10%, rgba(6,182,212,0.09) 0%, transparent 65%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.svc-card:hover {
  transform: translateY(-9px);
  border-color: rgba(6,182,212,0.32);
  box-shadow: 0 24px 60px rgba(6,182,212,0.1), 0 2px 0 rgba(6,182,212,0.15) inset;
}
.svc-card:hover::before { opacity: 1; }

/* per-card accent colours on hover */
.svc-svg--design  ~ * { --svc-accent: #ec4899; }
.svc-card:has(.svc-svg--design):hover  { border-color: rgba(236,72,153,0.3);  box-shadow: 0 24px 60px rgba(236,72,153,0.09); }
.svc-card:has(.svc-svg--ecom):hover    { border-color: rgba(74,222,128,0.3);  box-shadow: 0 24px 60px rgba(74,222,128,0.09); }
.svc-card:has(.svc-svg--setup):hover   { border-color: rgba(167,139,250,0.3); box-shadow: 0 24px 60px rgba(167,139,250,0.09); }
.svc-card:has(.svc-svg--support):hover { border-color: rgba(251,191,36,0.3);  box-shadow: 0 24px 60px rgba(251,191,36,0.09); }

/* ── Illustration box ──────────────────────────── */
.svc-illu {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(255,255,255,0.018);
  border: 1px solid rgba(255,255,255,0.055);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.svc-svg {
  width: 78%;
  max-height: 110px;
}

/* ── Text ──────────────────────────────────────── */
.svc-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.svc-desc {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text2);
  flex: 1;
}
.svc-learn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--cyan);
  text-decoration: none;
  margin-top: 4px;
  transition: gap 0.3s var(--spring), opacity 0.25s ease;
}
.svc-card:has(.svc-svg--design)  .svc-learn { color: #ec4899; }
.svc-card:has(.svc-svg--ecom)    .svc-learn { color: #4ade80; }
.svc-card:has(.svc-svg--setup)   .svc-learn { color: #a78bfa; }
.svc-card:has(.svc-svg--support) .svc-learn { color: #fbbf24; }
.svc-learn svg { width: 15px; height: 15px; flex-shrink: 0; transition: transform 0.3s var(--spring); }
.svc-learn:hover { gap: 10px; }
.svc-learn:hover svg { transform: translateX(3px); }

/* ── Light mode tweaks ─────────────────────────── */
[data-theme="light"] .services { background: #eeeef1; }
[data-theme="light"] .svc-card { background: rgba(255,255,255,0.75); border-color: rgba(0,0,0,0.07); }
[data-theme="light"] .svc-card:hover { border-color: rgba(6,182,212,0.4); }
[data-theme="light"] .svc-illu { background: rgba(0,0,0,0.025); border-color: rgba(0,0,0,0.06); }
[data-theme="light"] .svc-name { color: #0f0f1a; }
[data-theme="light"] .svc-desc { color: #4a4a6a; }

/* ─────────────────────────────────────────────────
   SVG ANIMATIONS
   ───────────────────────────────────────────────── */

/* shared SVG transform helper */
.svc-svg * { transform-box: fill-box; }

/* ── 1. Dev card ── code lines draw-in wave ────── */
@keyframes svcCodeLine {
  0%        { stroke-dashoffset: 60; opacity: 0;   }
  15%, 75%  { stroke-dashoffset: 0;  opacity: 1;   }
  90%, 100% { stroke-dashoffset: 60; opacity: 0;   }
}
.svc-cline { animation: svcCodeLine 2.6s ease-in-out infinite; }
.svc-cline.c1 { animation-delay: 0s;    }
.svc-cline.c2 { animation-delay: 0.22s; }
.svc-cline.c3 { animation-delay: 0.44s; }
.svc-cline.c4 { animation-delay: 0.66s; }
.svc-cline.c5 { animation-delay: 0.88s; }

@keyframes svcCursorBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.svc-cur { animation: svcCursorBlink 0.9s step-end infinite; }

@keyframes svcBracketPulse {
  0%, 100% { opacity: 0.35; }
  50%       { opacity: 0.9; }
}
.svc-bracket-l { animation: svcBracketPulse 2s ease-in-out 0s   infinite; }
.svc-bracket-r { animation: svcBracketPulse 2s ease-in-out 0.4s infinite; }

/* ── 2. Design card ── pen draws path ─────────── */
@keyframes svcDrawPath {
  0%        { stroke-dashoffset: 110; }
  45%, 55%  { stroke-dashoffset: 0;   }
  100%      { stroke-dashoffset: -110; }
}
.svc-draw-path { animation: svcDrawPath 3.2s ease-in-out infinite; }

@keyframes svcPenMove {
  0%        { transform: translate(0px,  0px);   }
  45%, 55%  { transform: translate(72px,-38px);  }
  100%      { transform: translate(0px,  0px);   }
}
.svc-pen-tip { animation: svcPenMove 3.2s ease-in-out infinite; transform-origin: center; }

@keyframes svcDotPop {
  0%, 15%   { transform: scale(0); opacity: 0; }
  30%, 80%  { transform: scale(1); opacity: 1; }
  95%, 100% { transform: scale(0); opacity: 0; }
}
.svc-cdot { transform-origin: center; }
.svc-cdot.d1 { animation: svcDotPop 3s ease 0.1s  infinite; }
.svc-cdot.d2 { animation: svcDotPop 3s ease 0.3s  infinite; }
.svc-cdot.d3 { animation: svcDotPop 3s ease 0.5s  infinite; }
.svc-cdot.d4 { animation: svcDotPop 3s ease 0.7s  infinite; }
.svc-cdot.d5 { animation: svcDotPop 3s ease 0.9s  infinite; }

/* ── 3. E-commerce ── items float in + sparkle ── */
@keyframes svcItemFloat {
  0%, 100% { transform: translateY(0px);   opacity: 1; }
  50%       { transform: translateY(-6px); opacity: 0.8; }
}
.svc-item { transform-origin: center; }
.svc-item.it1 { animation: svcItemFloat 2s ease-in-out 0s    infinite; }
.svc-item.it2 { animation: svcItemFloat 2s ease-in-out 0.35s infinite; }
.svc-item.it3 { animation: svcItemFloat 2s ease-in-out 0.7s  infinite; }

@keyframes svcBadgePop {
  0%, 100% { transform: scale(0.94); }
  50%       { transform: scale(1.04); }
}
.svc-badge { transform-origin: center; animation: svcBadgePop 2.2s ease-in-out infinite; }

@keyframes svcSpark {
  0%, 40%, 100% { opacity: 0; transform: scale(0.6); }
  55%, 80%       { opacity: 1; transform: scale(1.1); }
}
.svc-spark.sp1 { transform-origin: center; animation: svcSpark 3s ease 0s    infinite; }
.svc-spark.sp2 { transform-origin: center; animation: svcSpark 3s ease 1.2s  infinite; }

/* ── 4. SEO card ── rocket float + flame + lines + twinkle */
@keyframes svcRocketFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}
.svc-rocket { transform-origin: 65px 52px; animation: svcRocketFloat 2.4s ease-in-out infinite; }

@keyframes svcFlameFlicker {
  0%, 100% { transform: scaleY(1)    scaleX(1);    opacity: 0.9; }
  25%       { transform: scaleY(1.2) scaleX(0.88); opacity: 1;   }
  50%       { transform: scaleY(0.9) scaleX(1.12); opacity: 0.8; }
  75%       { transform: scaleY(1.1) scaleX(0.95); opacity: 0.95; }
}
.svc-flame { transform-origin: center top; animation: svcFlameFlicker 0.35s ease-in-out infinite; }

@keyframes svcSpeedLine {
  0%        { opacity: 0;    transform: translateX(-8px); }
  40%, 60%  { opacity: 0.7;  transform: translateX(0);    }
  100%      { opacity: 0;    transform: translateX(8px);  }
}
.svc-sl { transform-origin: center; }
.svc-sl.sl1 { animation: svcSpeedLine 1.6s ease-in-out 0s    infinite; }
.svc-sl.sl2 { animation: svcSpeedLine 1.6s ease-in-out 0.2s  infinite; }
.svc-sl.sl3 { animation: svcSpeedLine 1.6s ease-in-out 0.1s  infinite; }
.svc-sl.sl4 { animation: svcSpeedLine 1.6s ease-in-out 0.3s  infinite; }

@keyframes svcTwinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.7); }
  50%       { opacity: 1;   transform: scale(1.3); }
}
.svc-twinkle { transform-origin: center; }
.svc-twinkle.tw1 { animation: svcTwinkle 2.2s ease 0s    infinite; }
.svc-twinkle.tw2 { animation: svcTwinkle 2.2s ease 0.5s  infinite; }
.svc-twinkle.tw3 { animation: svcTwinkle 2.2s ease 1.0s  infinite; }
.svc-twinkle.tw4 { animation: svcTwinkle 2.2s ease 1.5s  infinite; }
.svc-twinkle.tw5 { animation: svcTwinkle 2.2s ease 0.8s  infinite; }

/* ── 5. Digital Setup ── globe orbit ──────────── */
@keyframes svcOrbit {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.svc-orbit-ring { transform-origin: 65px 52px; animation: svcOrbit 9s linear infinite; }
.svc-orbit-dot  { transform-origin: 65px 52px; animation: svcOrbit 9s linear infinite; }

@keyframes svcSigPulse {
  0%, 100% { opacity: 0.1; transform: scaleY(0.85); }
  50%       { opacity: 0.8; transform: scaleY(1);    }
}
.svc-sig { transform-origin: center bottom; }
.svc-sig.sig1 { animation: svcSigPulse 2s ease 0s    infinite; }
.svc-sig.sig2 { animation: svcSigPulse 2s ease 0.35s infinite; }

/* ── 6. Support ── gears + checkmark + shield ─── */
@keyframes svcGearCW  { from { transform: rotate(0deg); }   to { transform: rotate(360deg);  } }
@keyframes svcGearCCW { from { transform: rotate(0deg); }   to { transform: rotate(-360deg); } }
.svc-gear-big   { animation: svcGearCW  7s linear infinite; }
.svc-gear-small { animation: svcGearCCW 4.5s linear infinite; }

@keyframes svcCheckDraw {
  0%, 10%   { stroke-dashoffset: 50; opacity: 0.4; }
  40%, 70%  { stroke-dashoffset: 0;  opacity: 1;   }
  90%, 100% { stroke-dashoffset: 50; opacity: 0.4; }
}
.svc-check { animation: svcCheckDraw 3s ease-in-out infinite; }

@keyframes svcShieldPulse {
  0%, 100% { transform: scale(0.96); opacity: 0.5; }
  50%       { transform: scale(1.02); opacity: 0.9; }
}
.svc-shield { transform-origin: center; animation: svcShieldPulse 2.2s ease-in-out infinite; }

/* ── Hover: speed up all animations on card hover ── */
.svc-card:hover .svc-cline       { animation-duration: 1.4s; }
.svc-card:hover .svc-draw-path   { animation-duration: 1.8s; }
.svc-card:hover .svc-pen-tip     { animation-duration: 1.8s; }
.svc-card:hover .svc-cdot        { animation-duration: 1.6s; }
.svc-card:hover .svc-rocket      { animation-duration: 1.2s; }
.svc-card:hover .svc-flame       { animation-duration: 0.18s; }
.svc-card:hover .svc-orbit-ring,
.svc-card:hover .svc-orbit-dot   { animation-duration: 4s; }
.svc-card:hover .svc-gear-big    { animation-duration: 3.5s; }
.svc-card:hover .svc-gear-small  { animation-duration: 2.2s; }
.svc-card:hover .svc-check       { animation-duration: 1.6s; }

/* ── Responsive ───────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .services { padding: 72px 0 60px; }
  .svc-head { margin-bottom: 32px; }

  /* ── Compact 2-column tile grid ─────────────────── */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* Hide the SVG illustration — pure text tiles */
  .svc-illu { display: none; }

  .svc-card {
    padding: 18px 16px 16px;
    gap: 8px;
    border-radius: 16px;
    border-top: 2px solid var(--border);
  }

  .svc-name { font-size: 0.95rem; }
  .svc-desc { font-size: 0.8rem; line-height: 1.55; }
  .svc-learn { font-size: 0.75rem; }

  /* Per-service colored top accent */
  .svc-card:has(.svc-svg--dev)     { border-top-color: #06b6d4; }
  .svc-card:has(.svc-svg--design)  { border-top-color: #ec4899; }
  .svc-card:has(.svc-svg--ecom)    { border-top-color: #4ade80; }
  .svc-card:has(.svc-svg--seo)     { border-top-color: #22d3ee; }
  .svc-card:has(.svc-svg--setup)   { border-top-color: #a78bfa; }
  .svc-card:has(.svc-svg--support) { border-top-color: #fbbf24; }
}

/* ═══════════════════════════════════════════════
   PROCESS SECTION
   ═══════════════════════════════════════════════ */
.process {
  position: relative;
  padding: 130px 0 100px;
  overflow: hidden;
  background: var(--bg);
}
.proc-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(130px);
  z-index: 0;
}
.proc-glow-1 {
  width: 700px; height: 500px;
  right: -150px; top: -60px;
  background: radial-gradient(circle, rgba(167,139,250,0.07) 0%, transparent 70%);
}
.proc-glow-2 {
  width: 500px; height: 500px;
  left: -100px; bottom: -80px;
  background: radial-gradient(circle, rgba(6,182,212,0.06) 0%, transparent 70%);
}
.process .container { position: relative; z-index: 1; }

/* ── Header ──────────────────────────────────── */
.proc-head { text-align: center; margin-bottom: 80px; }
.proc-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--pink);
  background: rgba(236,72,153,0.08);
  border: 1px solid rgba(236,72,153,0.22);
  border-radius: 100px;
  padding: 5px 16px; margin-bottom: 20px;
}
.proc-main-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text);
  line-height: 1.15; margin-bottom: 18px;
}
.proc-main-sub {
  font-size: 1.05rem; color: var(--text2);
  max-width: 520px; margin: 0 auto; line-height: 1.7;
}

/* ── Flow wrapper ─────────────────────────────── */
.proc-flow {
  position: relative;
  padding-top: 28px;
}

/* ── Track line ───────────────────────────────── */
.proc-track {
  position: absolute;
  top: 28px;
  left: calc(12.5% + 24px);
  width: calc(75% - 48px);
  height: 2px;
  z-index: 0;
}
.proc-track-bg {
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.07);
  border-radius: 2px;
}
.proc-track-fill {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, #06b6d4 0%, #ec4899 33%, #a78bfa 66%, #4ade80 100%);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 2.2s cubic-bezier(0.25, 0.1, 0.25, 1);
  box-shadow: 0 0 12px rgba(6,182,212,0.4);
}
.proc-in-view .proc-track-fill { transform: scaleX(1); }

/* ── Steps row ────────────────────────────────── */
.proc-steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}

/* ── Step column ──────────────────────────────── */
.proc-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

/* ── Pin ─────────────────────────────────────── */
.proc-pin {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid transparent;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transform: scale(0);
  transition: transform 0.55s var(--spring);
  z-index: 2;
}
.pin-1 { border-color: rgba(6,182,212,0.6);  box-shadow: 0 0 18px rgba(6,182,212,0.2); }
.pin-2 { border-color: rgba(236,72,153,0.6); box-shadow: 0 0 18px rgba(236,72,153,0.2); }
.pin-3 { border-color: rgba(167,139,250,0.6);box-shadow: 0 0 18px rgba(167,139,250,0.2); }
.pin-4 { border-color: rgba(74,222,128,0.6); box-shadow: 0 0 18px rgba(74,222,128,0.2); }
.proc-in-view .proc-pin { transform: scale(1); }
.proc-in-view .pin-1 { transition-delay: 0s; }
.proc-in-view .pin-2 { transition-delay: 0.55s; }
.proc-in-view .pin-3 { transition-delay: 1.1s; }
.proc-in-view .pin-4 { transition-delay: 1.65s; }

.proc-num {
  font-family: var(--font-mono);
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.05em;
}
.pin-1 .proc-num { color: #06b6d4; }
.pin-2 .proc-num { color: #ec4899; }
.pin-3 .proc-num { color: #a78bfa; }
.pin-4 .proc-num { color: #4ade80; }

.proc-pin-ring {
  position: absolute; inset: -7px; border-radius: 50%;
  border: 1.5px solid currentColor; opacity: 0;
  animation: procPinRingPulse 2.2s ease-out infinite;
}
.pin-1 .proc-pin-ring { color: #06b6d4; animation-delay: 0s; }
.pin-2 .proc-pin-ring { color: #ec4899; animation-delay: 0.55s; }
.pin-3 .proc-pin-ring { color: #a78bfa; animation-delay: 1.1s; }
.pin-4 .proc-pin-ring { color: #4ade80; animation-delay: 1.65s; }
@keyframes procPinRingPulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  100% { transform: scale(2.2); opacity: 0;   }
}

/* ── Card ─────────────────────────────────────── */
.proc-card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 18px 20px;
  display: flex; flex-direction: column; gap: 10px;
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s var(--spring),
              border-color 0.3s ease, box-shadow 0.35s ease;
  border-top-width: 2px;
}
.proc-step:nth-child(1) .proc-card { border-top-color: #06b6d4; }
.proc-step:nth-child(2) .proc-card { border-top-color: #ec4899; }
.proc-step:nth-child(3) .proc-card { border-top-color: #a78bfa; }
.proc-step:nth-child(4) .proc-card { border-top-color: #4ade80; }

.proc-in-view .proc-step:nth-child(1) .proc-card { opacity: 1; transform: translateY(0); transition-delay: 0.25s; }
.proc-in-view .proc-step:nth-child(2) .proc-card { opacity: 1; transform: translateY(0); transition-delay: 0.8s; }
.proc-in-view .proc-step:nth-child(3) .proc-card { opacity: 1; transform: translateY(0); transition-delay: 1.35s; }
.proc-in-view .proc-step:nth-child(4) .proc-card { opacity: 1; transform: translateY(0); transition-delay: 1.9s; }

.proc-card:hover { transform: translateY(-6px) !important; box-shadow: 0 18px 44px rgba(0,0,0,0.3); }
.proc-step:nth-child(1) .proc-card:hover { border-color: rgba(6,182,212,0.4);  box-shadow: 0 18px 44px rgba(6,182,212,0.1); }
.proc-step:nth-child(2) .proc-card:hover { border-color: rgba(236,72,153,0.4); box-shadow: 0 18px 44px rgba(236,72,153,0.1); }
.proc-step:nth-child(3) .proc-card:hover { border-color: rgba(167,139,250,0.4);box-shadow: 0 18px 44px rgba(167,139,250,0.1); }
.proc-step:nth-child(4) .proc-card:hover { border-color: rgba(74,222,128,0.4); box-shadow: 0 18px 44px rgba(74,222,128,0.1); }

/* ── Illustration box ──────────────────────────── */
.proc-illu {
  width: 100%; aspect-ratio: 4 / 3;
  background: rgba(255,255,255,0.018);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--r-md); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.proc-svg { width: 82%; max-height: 100px; }

/* ── Step text ─────────────────────────────────── */
.proc-step-title {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 700;
  color: var(--text); letter-spacing: -0.02em;
}
.proc-step-desc {
  font-size: 0.835rem; line-height: 1.65; color: var(--text2);
}

/* ── CTA strip ─────────────────────────────────── */
.proc-cta-strip {
  margin-top: 72px;
  display: flex; align-items: center; justify-content: center; gap: 24px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px 40px;
}
.proc-cta-strip p {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 700;
  color: var(--text); letter-spacing: -0.02em;
}
.proc-cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  color: #fff; text-decoration: none;
  font-size: 0.88rem; font-weight: 700; letter-spacing: 0.03em;
  padding: 12px 24px; border-radius: 100px;
  transition: gap 0.3s var(--spring), opacity 0.25s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 20px rgba(6,182,212,0.3);
  white-space: nowrap;
}
.proc-cta-btn svg { width: 15px; height: 15px; transition: transform 0.3s var(--spring); }
.proc-cta-btn:hover { opacity: 0.9; gap: 12px; box-shadow: 0 6px 28px rgba(6,182,212,0.45); }
.proc-cta-btn:hover svg { transform: translateX(3px); }

/* ── Light mode ────────────────────────────────── */
[data-theme="light"] .process       { background: #f5f5f7; }
[data-theme="light"] .proc-card     { background: rgba(255,255,255,0.8); border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .proc-pin      { background: #f5f5f7; }
[data-theme="light"] .proc-track-bg { background: rgba(0,0,0,0.08); }
[data-theme="light"] .proc-step-title { color: #0f0f1a; }
[data-theme="light"] .proc-step-desc  { color: #4a4a6a; }
[data-theme="light"] .proc-cta-strip  { background: rgba(255,255,255,0.7); border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .proc-illu { background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.06); }

/* ─────────────────────────────────────────────────
   PROCESS SVG ANIMATIONS
   ───────────────────────────────────────────────── */
.proc-svg * { transform-box: fill-box; }

/* ── Discovery: doc lines draw in ──────────────── */
@keyframes procDocLine {
  0%, 8%    { stroke-dashoffset: 100; opacity: 0; }
  28%, 72%  { stroke-dashoffset: 0;   opacity: 1; }
  92%, 100% { stroke-dashoffset: 100; opacity: 0; }
}
.proc-dl.dl1 { animation: procDocLine 3s ease-in-out 0s    infinite; }
.proc-dl.dl2 { animation: procDocLine 3s ease-in-out 0.22s infinite; }
.proc-dl.dl3 { animation: procDocLine 3s ease-in-out 0.44s infinite; }
.proc-dl.dl4 { animation: procDocLine 3s ease-in-out 0.66s infinite; }

@keyframes procMagScan {
  0%        { transform: translate(0px, 0px); }
  40%, 55%  { transform: translate(-36px, 4px); }
  100%      { transform: translate(0px, 0px); }
}
.proc-mag { transform-origin: center; animation: procMagScan 4s ease-in-out infinite; }

@keyframes procScanPulse {
  0%, 100% { opacity: 0.2; transform: scaleX(0.35); }
  50%       { opacity: 1;   transform: scaleX(1);    }
}
.proc-scan { transform-origin: left center; animation: procScanPulse 0.9s ease-in-out infinite; }

@keyframes procTargetRing {
  0%   { transform: scale(1);   opacity: 0.55; }
  100% { transform: scale(2);   opacity: 0;    }
}
.proc-target-ring { transform-origin: center; animation: procTargetRing 1.8s ease-out infinite; }

/* ── Design: wireframes + palette ──────────────── */
@keyframes procWfBlock {
  0%, 100%  { opacity: 0; transform: scale(0.82); }
  18%, 80%  { opacity: 1; transform: scale(1);    }
}
.proc-wf { transform-origin: center; }
.proc-wf.wf1 { animation: procWfBlock 3.2s ease 0s     infinite; }
.proc-wf.wf2 { animation: procWfBlock 3.2s ease 0.28s  infinite; }
.proc-wf.wf3 { animation: procWfBlock 3.2s ease 0.46s  infinite; }
.proc-wf.wf4 { animation: procWfBlock 3.2s ease 0.62s  infinite; }
.proc-wf.wf5 { animation: procWfBlock 3.2s ease 0.78s  infinite; }

@keyframes procPalDot {
  0%, 100%  { transform: scale(0); opacity: 0; }
  20%, 80%  { transform: scale(1); opacity: 1; }
}
.proc-pal { transform-origin: center; }
.proc-pal.pp1 { animation: procPalDot 3.2s ease 0.1s  infinite; }
.proc-pal.pp2 { animation: procPalDot 3.2s ease 0.3s  infinite; }
.proc-pal.pp3 { animation: procPalDot 3.2s ease 0.5s  infinite; }
.proc-pal.pp4 { animation: procPalDot 3.2s ease 0.7s  infinite; }
.proc-pal.pp5 { animation: procPalDot 3.2s ease 0.9s  infinite; }

/* ── Build: code lines + bar + cursor ──────────── */
@keyframes procCodeLine {
  0%, 8%    { stroke-dashoffset: 100; opacity: 0; }
  28%, 75%  { stroke-dashoffset: 0;   opacity: 1; }
  92%, 100% { stroke-dashoffset: 100; opacity: 0; }
}
.proc-cl.cl1 { animation: procCodeLine 2.8s ease-in-out 0s    infinite; }
.proc-cl.cl2 { animation: procCodeLine 2.8s ease-in-out 0.22s infinite; }
.proc-cl.cl3 { animation: procCodeLine 2.8s ease-in-out 0.44s infinite; }
.proc-cl.cl4 { animation: procCodeLine 2.8s ease-in-out 0.66s infinite; }

.proc-bcur { animation: svcCursorBlink 0.9s step-end infinite; }

@keyframes procBarFill {
  0%, 8%    { transform: scaleX(0); }
  65%, 80%  { transform: scaleX(1); }
  96%, 100% { transform: scaleX(0); }
}
.proc-bar { transform-origin: 0% 50%; animation: procBarFill 3.5s ease-in-out infinite; }

/* ── Launch: live badge + confetti + checkmarks ── */
@keyframes procLivePulse {
  0%, 100% { transform: scale(1);    opacity: 0.85; }
  50%       { transform: scale(1.06); opacity: 1;    }
}
.proc-live { transform-origin: center; animation: procLivePulse 1.4s ease-in-out infinite; }

@keyframes procLiveDot {
  0%, 100% { transform: scale(0.75); opacity: 0.5; }
  50%       { transform: scale(1.25); opacity: 1;   }
}
.proc-live-dot { transform-origin: center; animation: procLiveDot 0.8s ease-in-out infinite; }

@keyframes procConf {
  0%, 25%   { opacity: 0; transform: translate(0, 0); }
  55%, 70%  { opacity: 1; transform: translate(0, -12px); }
  100%      { opacity: 0; transform: translate(0, -20px); }
}
.proc-conf.cc1 { transform-origin: center; animation: procConf 2.2s ease 0s    infinite; }
.proc-conf.cc2 { animation: procConf 2.2s ease 0.4s  infinite; }
.proc-conf.cc3 { animation: procConf 2.2s ease 0.8s  infinite; }
.proc-conf.cc4 { animation: procConf 2.2s ease 1.2s  infinite; }
.proc-conf.cc5 { animation: procConf 2.2s ease 0.6s  infinite; }

@keyframes procCkDraw {
  0%, 15%   { stroke-dashoffset: 100; opacity: 0.3; }
  45%, 75%  { stroke-dashoffset: 0;   opacity: 1;   }
  92%, 100% { stroke-dashoffset: 100; opacity: 0.3; }
}
.proc-ck.ck1 { animation: procCkDraw 2.6s ease 0s    infinite; }
.proc-ck.ck2 { animation: procCkDraw 2.6s ease 0.38s infinite; }
.proc-ck.ck3 { animation: procCkDraw 2.6s ease 0.76s infinite; }

/* ── Hover: speed up ────────────────────────────── */
.proc-card:hover .proc-dl    { animation-duration: 1.6s; }
.proc-card:hover .proc-mag   { animation-duration: 2.2s; }
.proc-card:hover .proc-wf    { animation-duration: 1.8s; }
.proc-card:hover .proc-pal   { animation-duration: 1.8s; }
.proc-card:hover .proc-cl    { animation-duration: 1.5s; }
.proc-card:hover .proc-bar   { animation-duration: 2s;   }
.proc-card:hover .proc-live  { animation-duration: 0.7s; }
.proc-card:hover .proc-ck    { animation-duration: 1.4s; }

/* ── Responsive ───────────────────────────────────*/
@media (max-width: 900px) {
  .proc-track { display: none; }
  .proc-flow  { padding-top: 0; }
  .proc-steps-row { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .proc-pin   { transform: scale(1) !important; }
  .proc-card  { opacity: 1 !important; transform: translateY(0) !important; }
}
@media (max-width: 540px) {
  .process { padding: 80px 0 70px; }
  .proc-head { margin-bottom: 44px; }

  /* ── Vertical sidebar timeline ─────────────────── */
  .proc-track { display: none; }
  .proc-flow  { padding-top: 0; }

  .proc-steps-row {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-left: 0;
    position: relative;
    /* override 2-col from 900px breakpoint */
    grid-template-columns: unset;
  }

  /* Multicolor vertical line */
  .proc-steps-row::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 26px;
    bottom: 26px;
    width: 2px;
    background: linear-gradient(to bottom,
      #06b6d4 0%, #ec4899 33%, #a78bfa 66%, #4ade80 100%);
    border-radius: 2px;
    opacity: 0.45;
    z-index: 0;
  }

  .proc-step {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
    padding-bottom: 22px;
  }
  .proc-step:last-child { padding-bottom: 0; }

  .proc-pin {
    flex-shrink: 0;
    width: 52px; height: 52px;
    transform: scale(1) !important;
    position: relative;
    z-index: 1;
    margin-top: 0;
  }

  .proc-card {
    flex: 1;
    opacity: 1 !important;
    transform: none !important;
    border-radius: 16px;
  }

  .proc-illu { display: none; }

  .proc-cta-strip { flex-direction: column; gap: 16px; text-align: center; padding: 24px 20px; }
}

/* ─────────────────────────────────────────────── */

/* ─────────────────────────────────────────────────
   PROJECTS SECTION
   ───────────────────────────────────────────────── */
/* ═══════════════════════════════════════════════════
   PROJECTS — Bento editorial layout
   ═══════════════════════════════════════════════════ */

.projects {
  position: relative;
  padding: 140px 0 100px;
  overflow: hidden;
}

.proj-glow {
  position: absolute;
  width: 55vw; height: 55vw;
  border-radius: 50%;
  filter: blur(150px);
  z-index: 0; pointer-events: none;
  opacity: 0.12;
}
.proj-glow-1 { top: -5%; right: -12vw; background: var(--grad-violet); }
.proj-glow-2 { bottom: -5%; left: -12vw; background: var(--grad-cyan); }

.proj-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 80px;
}
.proj-label {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.18em; color: var(--accent);
  margin-bottom: 14px;
}
.proj-main-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800; line-height: 1.1;
  color: var(--text); letter-spacing: -0.04em;
  margin-bottom: 24px;
}
.proj-main-sub {
  font-size: 1.05rem; color: var(--text2);
  line-height: 1.6; max-width: 600px; margin: 0 auto;
}

/* ── Bento grid ─────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

.proj-card:nth-child(1) { grid-column: 1 / 8; }
.proj-card:nth-child(2) { grid-column: 8 / 13; }
.proj-card:nth-child(3) {
  grid-column: 1 / -1;
  flex-direction: row;
}

/* ── Per-card accent tokens ─────────────────────── */
.proj-card[data-color="cyan"]   { --card-color: #06b6d4; --card-glow: rgba(6,182,212,0.18); }
.proj-card[data-color="violet"] { --card-color: #a78bfa; --card-glow: rgba(167,139,250,0.18); }
.proj-card[data-color="amber"]  { --card-color: #fbbf24; --card-glow: rgba(251,191,36,0.18); }

/* ── Card base ──────────────────────────────────── */
.proj-card {
  --card-color: #06b6d4;
  --card-glow: rgba(6,182,212,0.18);
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition:
    transform 0.45s var(--spring),
    box-shadow 0.45s ease,
    border-color 0.35s ease;
}

.proj-card:hover {
  transform: translateY(-7px);
  border-color: var(--card-color);
  box-shadow:
    0 32px 64px rgba(0,0,0,0.28),
    0 0 0 1px var(--card-color),
    0 0 48px var(--card-glow);
}

/* Big faded number overlay */
.proj-card::after {
  content: attr(data-num);
  position: absolute;
  bottom: 16px; right: 24px;
  font-family: var(--font-display);
  font-size: 8rem; font-weight: 900; line-height: 1;
  color: var(--card-color);
  opacity: 0.045;
  pointer-events: none; user-select: none;
  transition: opacity 0.4s ease;
  z-index: 0;
}
.proj-card:hover::after { opacity: 0.1; }

/* ── Image wrapper ──────────────────────────────── */
.proj-img-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: rgba(0,0,0,0.25);
  clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%);
  transition: clip-path 0.55s var(--spring);
  flex-shrink: 0;
}

.proj-card:hover .proj-img-wrap {
  clip-path: polygon(0 0, 100% 0, 100% 91%, 0 100%);
}

/* 3rd card: horizontal diagonal slash */
.proj-card:nth-child(3) .proj-img-wrap {
  width: 42%;
  aspect-ratio: unset;
  clip-path: polygon(0 0, 88% 0, 100% 100%, 0 100%);
  border-radius: 0;
  flex-shrink: 0;
}
.proj-card:nth-child(3):hover .proj-img-wrap {
  clip-path: polygon(0 0, 91% 0, 100% 100%, 0 100%);
}

.proj-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--card-color);
  transition: transform 0.7s var(--spring);
}
.proj-img-placeholder svg { width: 55%; height: auto; }

.proj-card:hover .proj-img-placeholder {
  transform: scale(1.09);
}

.proj-img-real {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--spring);
}
.proj-card:hover .proj-img-real { transform: scale(1.05); }

/* Gradient overlay */
.proj-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, transparent 35%, rgba(0,0,0,0.6));
  z-index: 1;
  opacity: 0; transition: opacity 0.4s ease;
}
.proj-card:hover .proj-overlay { opacity: 1; }

/* Hover CTA that slides up from bottom of image */
.proj-hover-cta {
  position: absolute;
  bottom: -50px; left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--card-color);
  color: #000;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none;
  padding: 10px 22px; border-radius: 100px;
  white-space: nowrap;
  transition: bottom 0.45s var(--spring), opacity 0.4s ease;
  opacity: 0;
}
.proj-card:hover .proj-hover-cta {
  bottom: 22px;
  opacity: 1;
}

/* ── Tags ───────────────────────────────────────── */
.proj-tags {
  position: absolute; top: 16px; left: 16px;
  display: flex; gap: 8px; z-index: 4;
}
.proj-tags span {
  font-size: 0.62rem; font-weight: 700;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(10px);
  color: #fff; padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: border-color 0.3s, color 0.3s;
}
.proj-card:hover .proj-tags span {
  border-color: var(--card-color);
  color: var(--card-color);
}

/* ── Content area ───────────────────────────────── */
.proj-content {
  padding: 32px 32px 28px;
  flex-grow: 1;
  display: flex; flex-direction: column;
  position: relative; z-index: 2;
}

.proj-card:nth-child(3) .proj-content {
  padding: 44px 56px;
  justify-content: center;
}

/* Animated accent bar */
.proj-content::before {
  content: '';
  display: block;
  width: 28px; height: 2.5px;
  background: var(--card-color);
  border-radius: 2px;
  margin-bottom: 20px;
  transition: width 0.45s var(--spring);
}
.proj-card:hover .proj-content::before { width: 52px; }

.proj-title {
  font-family: var(--font-display);
  font-size: 1.38rem; font-weight: 700;
  color: var(--text); margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.proj-desc {
  font-size: 0.91rem; color: var(--text2);
  line-height: 1.65; margin-bottom: 28px;
  flex-grow: 1;
}

.proj-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 800;
  color: var(--card-color);
  text-decoration: none; text-transform: uppercase; letter-spacing: 0.1em;
  transition: gap 0.3s var(--spring);
}
.proj-link svg { width: 14px; height: 14px; transition: transform 0.3s var(--spring); }
.proj-link:hover { gap: 14px; }
.proj-link:hover svg { transform: translateX(4px); }

/* ── Footer ─────────────────────────────────────── */
.proj-footer {
  margin-top: 64px;
  display: flex;
  justify-content: center;
}

/* ── Light mode ─────────────────────────────────── */
[data-theme="light"] .projects      { background: #fff; }
[data-theme="light"] .proj-card     { background: #f9f9fb; border-color: rgba(0,0,0,0.07); }
[data-theme="light"] .proj-img-wrap { background: #e8e8f2; }
[data-theme="light"] .proj-title    { color: #0f0f1a; }
[data-theme="light"] .proj-desc     { color: #4a4a6a; }

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 1100px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .proj-card:nth-child(1) { grid-column: span 1; }
  .proj-card:nth-child(2) { grid-column: span 1; }
  .proj-card:nth-child(3) {
    grid-column: 1 / -1;
    flex-direction: column;
  }
  .proj-card:nth-child(3) .proj-img-wrap {
    width: 100%; aspect-ratio: 16 / 9;
    clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%);
  }
  .proj-card:nth-child(3):hover .proj-img-wrap {
    clip-path: polygon(0 0, 100% 0, 100% 91%, 0 100%);
  }
  .proj-card:nth-child(3) .proj-content { padding: 32px; }
}
@media (max-width: 680px) {
  .projects { padding: 100px 0 80px; }
  .projects-grid { grid-template-columns: 1fr; gap: 20px; }

  .proj-card:nth-child(1),
  .proj-card:nth-child(2),
  .proj-card:nth-child(3) { grid-column: 1 / -1; flex-direction: column; }

  /* All image wraps full-width */
  .proj-card .proj-img-wrap {
    width: 100%; aspect-ratio: 16 / 9;
    border-radius: 0;
  }

  /* Alternating diagonal cuts — visual rhythm on scroll */
  .proj-card:nth-child(odd) .proj-img-wrap  { clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%); }
  .proj-card:nth-child(even) .proj-img-wrap { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 86%); }
  .proj-card:nth-child(odd):hover .proj-img-wrap  { clip-path: polygon(0 0, 100% 0, 100% 91%, 0 100%); }
  .proj-card:nth-child(even):hover .proj-img-wrap { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 91%); }

  /* Even cards nudge right — zigzag stagger */
  .proj-card:nth-child(even) { margin-left: 14px; }

  .proj-card:nth-child(3) .proj-content { padding: 28px; }
  .proj-card::after { font-size: 5.5rem; }
}

/* ═══════════════════════════════════════════════
   CONTACT SECTION
   ═══════════════════════════════════════════════ */

.contact {
  position: relative;
  padding: 130px 0 110px;
  overflow: hidden;
  background: var(--bg2);
}
.contact-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(140px);
  z-index: 0;
}
.contact-glow-1 {
  width: 700px; height: 600px;
  right: -150px; top: -80px;
  background: radial-gradient(circle, rgba(6,182,212,0.09) 0%, transparent 70%);
}
.contact-glow-2 {
  width: 600px; height: 500px;
  left: -150px; bottom: -80px;
  background: radial-gradient(circle, rgba(236,72,153,0.06) 0%, transparent 70%);
}
.contact-glow-3 {
  width: 400px; height: 400px;
  left: 50%; top: 40%;
  transform: translate(-50%,-50%);
  background: radial-gradient(circle, rgba(167,139,250,0.04) 0%, transparent 70%);
}
.contact .container { position: relative; z-index: 1; }

/* ── Header ──────────────────────────────────── */
.contact-head { text-align: center; margin-bottom: 80px; }
.contact-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--pink);
  background: rgba(236,72,153,0.08);
  border: 1px solid rgba(236,72,153,0.22);
  border-radius: 100px;
  padding: 5px 16px; margin-bottom: 20px;
}
.contact-main-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text);
  line-height: 1.15; margin-bottom: 18px;
}
.contact-main-sub {
  font-size: 1.05rem; color: var(--text2);
  max-width: 480px; margin: 0 auto; line-height: 1.7;
}

/* ── Layout ──────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
  align-items: start;
}

/* ── Info Cards ──────────────────────────────── */
.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.3s var(--transition), box-shadow 0.3s var(--transition), transform 0.3s var(--spring);
}
.contact-card-link:hover {
  border-color: var(--border2);
  box-shadow: 0 0 30px rgba(6,182,212,0.1);
  transform: translateX(4px);
}
.contact-card-link:hover .contact-card-arrow {
  transform: translateX(4px);
  color: var(--cyan);
}

.contact-card-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-card-icon svg { width: 20px; height: 20px; }
.cci-email { background: rgba(6,182,212,0.1);  color: var(--cyan); border: 1px solid rgba(6,182,212,0.18); }
.cci-wa    { background: rgba(74,222,128,0.1); color: #4ade80;    border: 1px solid rgba(74,222,128,0.18); }
.cci-loc   { background: rgba(236,72,153,0.1); color: var(--pink); border: 1px solid rgba(236,72,153,0.18); }
.cci-avail { background: rgba(167,139,250,0.1);color: #a78bfa;    border: 1px solid rgba(167,139,250,0.18); }

.contact-card-body { flex: 1; min-width: 0; }
.contact-card-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text3);
  margin-bottom: 3px;
}
.contact-card-val {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.contact-card-arrow {
  width: 16px; height: 16px;
  color: var(--text3);
  flex-shrink: 0;
  transition: transform 0.3s var(--spring), color 0.25s;
}

/* ── Availability dot ────────────────────────── */
.contact-avail-val {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.contact-avail-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74,222,128,0.6);
  animation: contactPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes contactPulse {
  0%   { box-shadow: 0 0 0 0 rgba(74,222,128,0.6); }
  60%  { box-shadow: 0 0 0 7px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

/* ── Socials row ─────────────────────────────── */
.contact-socials {
  display: flex;
  gap: 10px;
}
.contact-social {
  width: 42px; height: 42px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text2);
  text-decoration: none;
  transition: all 0.3s var(--spring);
}
.contact-social:hover {
  background: var(--surface2);
  border-color: var(--border2);
  color: var(--cyan);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(6,182,212,0.15);
}

/* ── Form wrapper ────────────────────────────── */
.contact-form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 44px 40px;
  position: relative;
  overflow: hidden;
}
.contact-form-wrap::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(6,182,212,0.04) 0%, transparent 50%);
  pointer-events: none;
}

/* ── Form row (two cols) ─────────────────────── */
.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ── Field ───────────────────────────────────── */
.cf-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.cf-field:last-of-type { margin-bottom: 0; }

.cf-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text3);
  transition: color 0.25s;
}
.cf-field:focus-within .cf-label { color: var(--cyan); }

/* ── Input + textarea ────────────────────────── */
.cf-input-wrap { position: relative; }
.cf-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.3s var(--transition), box-shadow 0.3s var(--transition);
  resize: none;
  -webkit-appearance: none;
}
.cf-input::placeholder { color: var(--text3); }
.cf-input:focus {
  border-color: var(--border2);
  box-shadow: 0 0 0 3px rgba(6,182,212,0.1), 0 0 20px rgba(6,182,212,0.08);
}
.cf-input-line {
  position: absolute;
  bottom: 0; left: 12px; right: 12px;
  height: 2px;
  background: var(--grad-cyan);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.35s var(--spring);
  pointer-events: none;
}
.cf-input:focus ~ .cf-input-line { transform: scaleX(1); }
.cf-textarea { min-height: 140px; }

/* ── Submit area ─────────────────────────────── */
.cf-bottom {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.cf-submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--grad-cyan);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 30px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--transition);
  box-shadow: 0 0 32px rgba(6,182,212,0.3);
  overflow: hidden;
  flex-shrink: 0;
}
.cf-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(6,182,212,0.45);
}
.cf-submit:active { transform: translateY(0); }
.cf-submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

/* icons inside submit button */
.cf-submit-plane,
.cf-submit-spinner,
.cf-submit-check { width: 17px; height: 17px; flex-shrink: 0; transition: opacity 0.25s, transform 0.35s var(--spring); }
.cf-submit-spinner { display: none; animation: cfSpin 0.7s linear infinite; }
.cf-submit-check   { display: none; }

.cf-submit.loading .cf-submit-plane   { display: none; }
.cf-submit.loading .cf-submit-spinner { display: block; }
.cf-submit.loading .cf-submit-check   { display: none; }

.cf-submit.sent .cf-submit-plane   { display: none; }
.cf-submit.sent .cf-submit-spinner { display: none; }
.cf-submit.sent .cf-submit-check   { display: block; }
.cf-submit.sent { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 0 32px rgba(16,185,129,0.35); }

@keyframes cfSpin { to { transform: rotate(360deg); } }

/* ── Feedback message ────────────────────────── */
.cf-feedback {
  font-size: 0.88rem;
  font-family: var(--font-body);
  line-height: 1.5;
  flex: 1;
  min-width: 0;
}
.cf-feedback.cf-success { color: #4ade80; }
.cf-feedback.cf-error   { color: #f87171; }

/* ── Light mode ──────────────────────────────── */
[data-theme="light"] .contact { background: var(--bg2); }
[data-theme="light"] .contact-form-wrap {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px);
}
[data-theme="light"] .cf-input {
  background: rgba(255,255,255,0.9);
  border-color: rgba(0,0,0,0.1);
  color: var(--text);
}
[data-theme="light"] .cf-input:focus {
  border-color: var(--border2);
  box-shadow: 0 0 0 3px rgba(6,182,212,0.08);
}
[data-theme="light"] .contact-card { background: rgba(255,255,255,0.7); }
[data-theme="light"] .contact-social { background: rgba(255,255,255,0.7); }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 960px) {
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .contact-form-wrap { padding: 36px 28px; }
}
@media (max-width: 600px) {
  .contact { padding: 80px 0 70px; }
  .contact-head { margin-bottom: 50px; }
  .cf-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 28px 20px; }
  .cf-bottom { flex-direction: column; align-items: stretch; }
  .cf-submit { justify-content: center; }
  .cf-feedback { text-align: center; }
}

/* ═══════════════════════════════════════════════
   CONTACT REDIRECT (home page teaser → contact.html)
   ═══════════════════════════════════════════════ */
.contact-redirect {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}
.cr-glow {
  position: absolute;
  width: 600px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(6,182,212,0.08), transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
}
.cr-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 64px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 28px;
  position: relative;
  overflow: hidden;
}
.cr-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 0% 50%, rgba(6,182,212,0.06), transparent 60%);
  pointer-events: none;
}
.cr-text { flex: 1; }
.cr-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}
.cr-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.1;
}
.cr-sub {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text2);
  line-height: 1.6;
}
.cr-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--grad-hero);
  color: #fff;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(6,182,212,0.25);
}
.cr-btn svg { width: 16px; height: 16px; transition: transform 0.2s; }
.cr-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(6,182,212,0.4); }
.cr-btn:hover svg { transform: translateX(3px); }
@media (max-width: 700px) {
  .cr-inner { flex-direction: column; text-align: center; padding: 40px 24px; }
  .cr-btn { width: 100%; justify-content: center; }
}

/* ═══════════════════════════════════════════════
   FAQ SECTION
   ═══════════════════════════════════════════════ */

/* ── Testimonials ──────────────────────────────────────────── */

.testimonials {
  padding: 96px 0 80px;
  background: var(--bg);
  position: relative;
}

[data-theme="light"] .testimonials { background: #f5f5f7; }

.testi-head {
  text-align: center;
  margin-bottom: 56px;
}

.testi-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent, #06b6d4);
  margin-bottom: 16px;
}

.testi-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary, #f1f0ff);
  margin-bottom: 14px;
}

[data-theme="light"] .testi-title { color: #1a1a2e; }

.testi-hl { color: var(--accent, #06b6d4); }

.testi-sub {
  font-size: 15px;
  color: var(--text-muted, #94a3b8);
  max-width: 480px;
  margin: 0 auto;
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.testi-card {
  background: var(--glass-bg, rgba(255,255,255,.04));
  border: 1px solid var(--glass-border, rgba(255,255,255,.07));
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color .25s, transform .25s;
}

[data-theme="light"] .testi-card {
  background: #fff;
  border-color: rgba(0,0,0,.07);
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
}

.testi-card:hover {
  border-color: rgba(6,182,212,.3);
  transform: translateY(-3px);
}

.testi-quote { position: relative; }

.testi-text {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--text-secondary, #c8c7e0);
  font-style: italic;
  margin-top: 8px;
}

[data-theme="light"] .testi-text { color: #444; }

.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 18px;
}

[data-theme="light"] .testi-author { border-top-color: rgba(0,0,0,.06); }

.testi-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #0f1117;
  flex-shrink: 0;
}

.testi-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary, #f1f0ff);
}

[data-theme="light"] .testi-name { color: #1a1a2e; }

.testi-role {
  font-size: 12px;
  color: var(--text-muted, #94a3b8);
  margin-top: 2px;
}

@media (max-width: 768px) {
  .testimonials { padding: 64px 0 56px; }
  .testi-grid { grid-template-columns: 1fr; }
}

/* ── FAQ ─────────────────────────────────────────────────────── */

.faq {
  position: relative;
  padding: 130px 0 110px;
  overflow: hidden;
  background: var(--bg);
}
.faq-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(140px);
  z-index: 0;
}
.faq-glow-1 {
  width: 700px; height: 600px;
  left: -180px; top: -80px;
  background: radial-gradient(circle, rgba(6,182,212,0.07) 0%, transparent 70%);
}
.faq-glow-2 {
  width: 550px; height: 550px;
  right: -120px; bottom: -100px;
  background: radial-gradient(circle, rgba(236,72,153,0.05) 0%, transparent 70%);
}
.faq .container { position: relative; z-index: 1; }

/* ── Header ──────────────────────────────────── */
.faq-head { text-align: center; margin-bottom: 80px; }
.faq-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cyan);
  background: rgba(6,182,212,0.08);
  border: 1px solid rgba(6,182,212,0.22);
  border-radius: 100px;
  padding: 5px 16px; margin-bottom: 20px;
}
.faq-main-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text);
  line-height: 1.15; margin-bottom: 18px;
}
.faq-hl {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="light"] .faq-hl {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.faq-main-sub {
  font-size: 1.05rem; color: var(--text2);
  max-width: 520px; margin: 0 auto; line-height: 1.7;
}

/* ── Layout ──────────────────────────────────── */
.faq-layout {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 48px;
  align-items: start;
}

/* ── Left Panel ──────────────────────────────── */
.faq-panel { position: sticky; top: 110px; }
.faq-panel-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.35s var(--transition), box-shadow 0.35s var(--transition);
}
.faq-panel-inner::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(6,182,212,0.05) 0%, transparent 55%);
  pointer-events: none;
}
.faq-panel-inner:hover {
  border-color: var(--border2);
  box-shadow: 0 0 60px rgba(6,182,212,0.12);
}

/* ── Visual (rings) ──────────────────────────── */
.faq-panel-visual {
  position: relative;
  width: 190px; height: 190px;
  margin: 0 auto 30px;
}
.faq-rings-svg { width: 100%; height: 100%; overflow: visible; }
.faq-ring { transform-origin: 100px 100px; transform-box: view-box; }
.faq-ring.r1 { animation: faqSpin1 20s linear infinite; }
.faq-ring.r2 { animation: faqSpin2 13s linear infinite reverse; }
.faq-ring.r3 { animation: faqSpin3  9s linear infinite; }
@keyframes faqSpin1 { to { transform: rotate(360deg); } }
@keyframes faqSpin2 { to { transform: rotate(360deg); } }
@keyframes faqSpin3 { to { transform: rotate(360deg); } }

/* ── Floating chips ──────────────────────────── */
.faq-chip {
  position: absolute;
  display: flex; align-items: center; gap: 5px;
  background: var(--bg);
  border: 1px solid var(--border2);
  border-radius: 100px;
  padding: 5px 12px 5px 8px;
  font-family: var(--font-mono);
  font-size: 0.67rem;
  color: var(--text2);
  white-space: nowrap;
  box-shadow: 0 4px 18px rgba(0,0,0,0.35);
  pointer-events: none;
}
.faq-chip svg { width: 11px; height: 11px; color: var(--cyan); flex-shrink: 0; }
.faq-chip-1 { top: 8px;   left: -22px;  animation: faqFloat1 3.2s ease-in-out infinite; }
.faq-chip-2 { bottom: 8px; right: -22px; animation: faqFloat2 3.8s ease-in-out infinite; }
@keyframes faqFloat1 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-7px)} }
@keyframes faqFloat2 { 0%,100%{transform:translateY(0)} 50%{transform:translateY( 7px)} }

/* ── Stats row ───────────────────────────────── */
.faq-panel-stats {
  display: flex;
  align-items: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  margin-bottom: 26px;
}
.faq-ps { flex: 1; text-align: center; }
.faq-ps strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 5px;
}
.faq-ps strong em {
  font-style: normal;
  color: var(--cyan);
}
.faq-ps > span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.faq-ps-div {
  width: 1px; height: 40px;
  background: var(--border);
  flex-shrink: 0;
  margin: 0 10px;
}

/* ── Panel CTA ───────────────────────────────── */
.faq-panel-cta { text-align: center; }
.faq-panel-cta > p {
  font-size: 0.9rem;
  color: var(--text2);
  margin-bottom: 14px;
}
.faq-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--grad-cyan);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 11px 26px;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.3s var(--transition);
  box-shadow: 0 0 28px rgba(6,182,212,0.28);
}
.faq-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(6,182,212,0.45);
}
.faq-cta-btn svg { width: 14px; height: 14px; }

/* ── Accordion ───────────────────────────────── */
.faq-accordion { display: flex; flex-direction: column; }

.faq-item {
  position: relative;
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 2px; height: 0;
  background: linear-gradient(180deg, var(--cyan), #ec4899);
  transition: height 0.45s var(--transition);
  border-radius: 0 2px 2px 0;
}
.faq-item.open::before { height: 100%; }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 4px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  transition: color 0.25s;
}
.faq-q:hover .faq-q-text { color: var(--cyan); }
.faq-item.open .faq-q .faq-q-text { color: var(--cyan); }

.faq-q-num {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  font-weight: 500;
  color: var(--cyan);
  opacity: 0.6;
  flex-shrink: 0;
  min-width: 20px;
  transition: opacity 0.25s;
}
.faq-item.open .faq-q-num { opacity: 1; }

.faq-q-text {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  flex: 1;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: color 0.25s;
}

.faq-chevron {
  width: 20px; height: 20px;
  flex-shrink: 0;
  color: var(--text3);
  transition: transform 0.4s var(--spring), color 0.25s;
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--cyan);
}

/* ── Answer (grid animation) ─────────────────── */
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.42s cubic-bezier(0.4,0,0.2,1);
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a-inner p {
  padding: 2px 4px 24px 34px;
  color: var(--text2);
  font-size: 0.95rem;
  line-height: 1.78;
  font-family: var(--font-body);
}

/* ── Light mode overrides ────────────────────── */
[data-theme="light"] .faq { background: var(--bg); }
[data-theme="light"] .faq-panel-inner {
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(12px);
}
[data-theme="light"] .faq-chip { background: rgba(255,255,255,0.9); }

/* ── Tablet breakpoint ───────────────────────── */
@media (max-width: 960px) {
  .faq-layout { grid-template-columns: 1fr 1.4fr; gap: 30px; }
}
@media (max-width: 760px) {
  .faq-layout { grid-template-columns: 1fr; }
  .faq-panel { position: static; }
}

/* ───────────────────────────────────────────────── */

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.footer-logo {
  display: flex;
  align-items: center;
}
.footer-logo img {
  height: 36px;
  width: auto;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-social-link {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text3);
  transition: all 0.3s ease;
  cursor: pointer;
}
.footer-social-link svg {
  width: 16px;
  height: 16px;
}
.footer-social-link:hover {
  color: var(--cyan);
  border-color: rgba(6, 182, 212, 0.4);
  background: rgba(6, 182, 212, 0.08);
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer p {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text3);
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text2);
  transition: all 0.35s var(--spring);
  overflow: hidden;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  cursor: pointer;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-violet);
  opacity: 0;
  transition: opacity 0.3s;
}
.back-to-top svg {
  width: 18px;
  height: 18px;
  position: relative;
  z-index: 1;
  transition: transform 0.35s var(--spring);
}
.back-to-top:hover {
  border-color: var(--violet);
  color: #fff;
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.45);
}
.back-to-top:hover::before {
  opacity: 1;
}
.back-to-top:hover svg {
  transform: translateY(-2px);
}

/* ─── FOCUS / ACCESSIBILITY ──────────────────── */
:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
    padding-top: 120px;
  }
  .hero-content {
    max-width: 100%;
  }
  .hero-btns {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .hero-bio {
    margin: 0 auto 36px;
  }
  .hero-image-wrap {
    width: clamp(260px, 60vw, 360px);
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .nav-logo {
    order: 1;
  }
  .lang-switcher {
    order: 2;
  }
  .theme-toggle {
    order: 3;
    width: 34px;
    height: 34px;
    margin-left: auto;
    margin-right: auto;
  }
  .theme-toggle svg {
    width: 16px;
    height: 16px;
  }
  .hamburger {
    order: 4;
  }
  .hero-image-wrap {
    width: min(280px, 80vw);
  }
  .hero-stats {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .hero-btns {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-btns .btn {
    justify-content: center;
  }
}

/* ─── IN-APP BROWSER FIXES ───────────────────── */
body.iab-mode,
body.iab-mode * {
  cursor: auto !important;
}

/* Stop all expensive CSS animations that repaint every frame */
body.iab-mode::before {
  animation: none !important;
}

body.iab-mode .hero-bg-grid {
  animation: none !important;
}

/* Disable all will-change hints to free compositor resources */
body.iab-mode .hero-glow {
  will-change: auto !important;
}
body.iab-mode #cursorCanvas {
  display: none !important;
}

/* Disable backdrop-filter (very expensive in IABs) */
body.iab-mode .navbar.scrolled::before {
  backdrop-filter: none;
  background: rgba(5, 5, 8, 0.97);
}

body.iab-mode .mobile-menu .mob-inner {
  backdrop-filter: none;
}

body.iab-mode .mob-backdrop {
  backdrop-filter: none;
  background: rgba(5, 5, 8, 0.85);
}

/* Kill ALL backdrop-filter in IAB — main source of white screen / glitch */
body.iab-mode * {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Disable floating animation loops in IAB */
body.iab-mode .floating-badge,
body.iab-mode .tag-dot,
body.iab-mode .hero-image-bg,
body.iab-mode .nav-logo .dot,
body.iab-mode .btn-primary,
body.iab-mode .scroll-line {
  animation: none !important;
}

/* ─── LANGUAGE SWITCHER ──────────────────────── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
}

.lang-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text2);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 5px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s var(--transition);
}

.lang-btn:hover {
  border-color: rgba(6, 182, 212, 0.5);
  color: var(--text);
  background: rgba(6, 182, 212, 0.08);
}

.lang-btn.active {
  background: var(--grad-violet);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 2px 12px rgba(6, 182, 212, 0.4);
}

.mob-lang {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

/* ─── RTL SUPPORT (Arabic) ───────────────────── */
.lang-ar body,
html[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .navbar {
  direction: rtl;
}

@media (max-width: 900px) {
  html[dir="rtl"] .nav-logo {
    order: 4;
    margin-right: 0;
    margin-left: auto;
  }
  html[dir="rtl"] .hamburger {
    order: 1;
    margin-left: 0;
    margin-right: auto;
  }
  html[dir="rtl"] .lang-switcher {
    order: 3;
  }
  html[dir="rtl"] .theme-toggle {
    order: 2;
  }
}

html[dir="rtl"] .hero-inner {
  direction: rtl;
}

html[dir="rtl"] .hero-content {
  text-align: right;
}

html[dir="rtl"] .section-label::before {
  background: linear-gradient(to left, transparent, var(--violet));
}

html[dir="rtl"] .section-label {
  flex-direction: row-reverse;
}

html[dir="rtl"] .about-grid {
  direction: rtl;
}

html[dir="rtl"] .timeline-grid {
  direction: rtl;
}

html[dir="rtl"] .mob-inner {
  right: auto;
  left: 0;
  border-left: none;
  border-right: 1px solid rgba(6, 182, 212, 0.15);
  transform: translateX(-100%);
}

html[dir="rtl"] .mobile-menu.open .mob-inner {
  transform: translateX(0);
}

html[dir="rtl"] .contact-grid {
  direction: rtl;
}

html[dir="rtl"] .hero-btns {
  flex-direction: row;
  justify-content: flex-start;
}

html[dir="rtl"] .hero-stats {
  justify-content: flex-start;
}

html[dir="rtl"] .btn svg {
  transform: scaleX(-1);
}

html[dir="rtl"] .footer-inner {
  direction: rtl;
}

/* ─── PERFORMANCE: prefers-reduced-motion ────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal-up,
  .reveal-right {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* On mobile: show lang switcher in navbar beside logo, hide from mobile menu */
@media (max-width: 900px) {
  .lang-switcher {
    display: flex;
    gap: 2px;
    order: 2; /* sits right after the logo */
  }
  .lang-btn {
    font-size: 10px;
    padding: 4px 7px;
  }
  .mob-lang {
    display: none;
  }
}

/* Ensure navbar layout on mobile */
@media (max-width: 900px) {
  .navbar {
    display: flex;
    align-items: center;
  }
  .nav-logo {
    order: 1;
    margin-right: 8px;
  }
  .lang-switcher {
    order: 2;
  }
  .theme-toggle {
    order: 3;
    margin-left: auto;
    margin-right: auto;
  }
  .hamburger {
    order: 4;
  }
}

/* =============================================
   NUVEX — AGENCY HERO ENHANCEMENTS
   ============================================= */

/* Logo image (navbar) */
.nav-logo-img {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0;
  text-decoration: none;
  filter: drop-shadow(0 0 14px rgba(34, 211, 238, 0.35));
  transition: filter 0.4s var(--transition), transform 0.4s var(--spring);
}
.nav-logo-img img {
  height: 100%;
  width: auto;
  display: block;
  object-fit: contain;
}
.nav-logo-img:hover {
  filter: drop-shadow(0 0 22px rgba(34, 211, 238, 0.65));
  transform: translateY(-1px);
}
[data-theme="light"] .nav-logo-img {
  filter: drop-shadow(0 0 10px rgba(8, 145, 178, 0.25));
}
[data-theme="light"] .nav-logo-img img {
  filter: none;
}

/* Logo swap: dark/light mode */
img.logo-light { display: none !important; }
[data-theme="light"] img.logo-dark { display: none !important; }
[data-theme="light"] img.logo-light { display: block !important; }

/* Mobile logo image */
.mob-logo-img {
  display: inline-flex;
  align-items: center;
  height: 38px;
}
.mob-logo-img img {
  height: 100%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.4));
}

/* Extra hero glow */
.hero-glow.glow-3 {
  width: 420px;
  height: 420px;
  background: radial-gradient(
    circle,
    rgba(124, 58, 237, 0.16) 0%,
    rgba(124, 58, 237, 0.04) 40%,
    transparent 70%
  );
  top: 30%;
  left: 45%;
  animation: glowPulse2 12s ease-in-out infinite 1.2s;
}

/* Agency hero — give a touch more breathing room */
.hero-agency .hero-inner {
  max-width: 1280px;
  gap: 70px;
}
.hero-agency .hero-content {
  max-width: 620px;
}

/* Strong agency headline (replaces .hero-name in this section) */
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  color: var(--text);
  max-width: 22ch;
  text-wrap: balance;
}
.headline-accent {
  position: relative;
  display: inline-block;
  isolation: isolate;
}
.headline-accent-inner {
  background: var(--grad-hero);
  background-size: 250% 250%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: nameGradientFlow 7s ease infinite;
  filter: drop-shadow(0 0 22px rgba(6, 182, 212, 0.25));
}
.headline-accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.05em;
  height: 8px;
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.35), rgba(124, 58, 237, 0.25), transparent);
  filter: blur(10px);
  z-index: -1;
  opacity: 0.9;
  animation: glowPulse1 5s ease-in-out infinite;
}

/* Trust indicators */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
  max-width: 560px;
}
.hero-trust.hero-trust-top {
  margin-bottom: 0;
  justify-content: center;
  gap: 8px;
  position: relative;
  z-index: 5;
}
.hero-trust.hero-trust-top .trust-pill {
  padding: 6px 12px 6px 9px;
  font-size: 11px;
  background: rgba(10, 14, 22, 0.55);
  backdrop-filter: blur(14px);
}
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  background: rgba(6, 182, 212, 0.05);
  border: 1px solid rgba(6, 182, 212, 0.18);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--text2);
  backdrop-filter: blur(10px);
  transition: all 0.35s var(--spring);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.trust-pill:hover {
  border-color: rgba(6, 182, 212, 0.45);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.trust-check {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--grad-violet);
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.45);
}
.trust-check::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 2.5px;
  width: 4px;
  height: 7px;
  border: solid #fff;
  border-width: 0 1.6px 1.6px 0;
  transform: rotate(45deg);
}
[data-theme="light"] .trust-pill {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(6, 182, 212, 0.25);
}

/* ─── DASHBOARD MOCKUP (right-side visual) ──── */
.hero-visual {
  width: clamp(320px, 42vw, 540px);
  aspect-ratio: 1.05 / 1;
}

.dashboard-mockup {
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(160deg, rgba(10, 12, 22, 0.96), rgba(8, 10, 20, 0.92));
  padding: 0;
}
[data-theme="light"] .dashboard-mockup {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(245, 247, 252, 0.94));
  border-color: rgba(6, 182, 212, 0.2);
}

.mockup-topbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}
[data-theme="light"] .mockup-topbar {
  background: rgba(0, 0, 0, 0.025);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}
.mockup-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}
.mockup-dot.red { background: #ff5f56; }
.mockup-dot.yellow { background: #ffbd2e; }
.mockup-dot.green { background: #27c93f; }
.mockup-url {
  margin-left: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text3);
  letter-spacing: 0.04em;
}

.mockup-body {
  flex: 1;
  display: grid;
  grid-template-columns: 56px 1fr;
  min-height: 0;
}

.mockup-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.015);
}
[data-theme="light"] .mockup-sidebar {
  background: rgba(0, 0, 0, 0.02);
  border-right-color: rgba(0, 0, 0, 0.05);
}
.mockup-logo-mini {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--grad-violet);
  font-family: var(--font-display);
  font-weight: 800;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  margin-bottom: 6px;
}
.mockup-nav-item {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  position: relative;
  transition: background 0.4s;
}
.mockup-nav-item.active {
  background: rgba(6, 182, 212, 0.18);
  box-shadow: 0 0 0 1px rgba(6, 182, 212, 0.35), 0 0 14px rgba(6, 182, 212, 0.25);
}
[data-theme="light"] .mockup-nav-item {
  background: rgba(0, 0, 0, 0.05);
}

.mockup-main {
  padding: 18px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.mockup-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.mockup-stat-card {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
}
.mockup-stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.06), transparent 60%);
  pointer-events: none;
}
[data-theme="light"] .mockup-stat-card {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(0, 0, 0, 0.06);
}
.mockup-stat-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text3);
}
.mockup-stat-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.mockup-stat-bar {
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin-top: 6px;
}
[data-theme="light"] .mockup-stat-bar { background: rgba(0, 0, 0, 0.06); }
.mockup-stat-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--grad-violet);
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
  animation: mockupFill 1.6s 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes mockupFill {
  to { width: var(--w); }
}

.mockup-chart {
  flex: 1;
  min-height: 88px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 10px;
  position: relative;
  overflow: hidden;
}
[data-theme="light"] .mockup-chart {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(0, 0, 0, 0.05);
}
.mockup-chart svg {
  width: 100%;
  height: 100%;
  display: block;
}
.mockup-chart-line {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  filter: drop-shadow(0 0 6px rgba(6, 182, 212, 0.6));
  animation: mockupLine 2.4s 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes mockupLine {
  to { stroke-dashoffset: 0; }
}
.mockup-chart-area {
  opacity: 0;
  animation: mockupArea 1.2s 1.6s ease forwards;
}
@keyframes mockupArea {
  to { opacity: 1; }
}

.mockup-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mockup-list-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
}
[data-theme="light"] .mockup-list-row { background: rgba(0, 0, 0, 0.025); }
.mockup-list-row > span:nth-child(1),
.mockup-list-row > span:nth-child(2) {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
}
[data-theme="light"] .mockup-list-row > span:nth-child(1),
[data-theme="light"] .mockup-list-row > span:nth-child(2) {
  background: rgba(0, 0, 0, 0.08);
}
.mockup-list-row > span:nth-child(2) {
  width: 70%;
}
.mockup-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 100px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--green);
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.mockup-tag.alt {
  background: rgba(245, 158, 11, 0.12);
  color: var(--amber);
  border-color: rgba(245, 158, 11, 0.25);
}

/* Floating cards (replaces tech badges) */
.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(5, 5, 8, 0.85);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 14px;
  backdrop-filter: blur(20px);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.5),
    0 0 24px rgba(6, 182, 212, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  z-index: 4;
  transition: all 0.4s var(--spring);
  white-space: nowrap;
}
[data-theme="light"] .floating-card {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(6, 182, 212, 0.25);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.08),
    0 0 24px rgba(6, 182, 212, 0.08);
}
.floating-card:hover {
  transform: translateY(-4px) scale(1.04);
  border-color: rgba(6, 182, 212, 0.6);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.55),
    0 0 32px rgba(6, 182, 212, 0.25);
}
.fc-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--grad-violet);
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.fc-icon svg { width: 16px; height: 16px; }
.fc-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.fc-text strong {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}
.fc-text strong small {
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
}
.fc-text span {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text3);
  margin-top: 2px;
}

.fc-1 {
  top: 8%;
  left: -14%;
  animation: floatBadge 5s ease-in-out infinite;
}
.fc-2 {
  bottom: 22%;
  left: -18%;
  animation: floatBadge 6s ease-in-out infinite 1.6s;
}
.fc-3 {
  top: 38%;
  right: -14%;
  animation: floatBadge 5.5s ease-in-out infinite 0.8s;
}

/* Responsive — agency hero */
@media (max-width: 1024px) {
  .hero-agency .hero-inner {
    flex-direction: column;
    text-align: center;
    padding-top: 120px;
    gap: 60px;
  }
  .hero-agency .hero-content {
    max-width: 100%;
  }
  .hero-trust { justify-content: center; }
  .hero-visual { width: clamp(300px, 70vw, 480px); }
  .fc-1 { left: -4%; }
  .fc-2 { left: -6%; }
  .fc-3 { right: -4%; }
}

@media (max-width: 768px) {
  .nav-logo-img { height: 38px; }
  .hero-headline { font-size: clamp(24px, 6vw, 32px); max-width: 22ch; }
  .hero-visual { width: min(340px, 86vw); }
  .fc-1 { left: -2%; top: -4%; padding: 8px 12px; }
  .fc-1 .fc-text strong { font-size: 14px; }
  .fc-1 .fc-icon { width: 28px; height: 28px; }
  .fc-2 { display: none; }
  .fc-3 { right: -2%; bottom: -4%; top: auto; padding: 8px 12px; }
  .fc-3 .fc-text strong { font-size: 14px; }
  .fc-3 .fc-icon { width: 28px; height: 28px; }
  .mockup-url { display: none; }
}

@media (max-width: 480px) {
  .hero-trust { gap: 8px; }
  .trust-pill { font-size: 10.5px; padding: 6px 12px 6px 8px; }
}

/* RTL adjustments */
html[dir="rtl"] .hero-trust { justify-content: flex-start; }
html[dir="rtl"] .fc-1 { left: auto; right: -14%; }
html[dir="rtl"] .fc-2 { left: auto; right: -18%; }
html[dir="rtl"] .fc-3 { right: auto; left: -14%; }

/* ═══════════════════════════════════════════════════
   MOBILE EXPERIENCE — Global fun polish ≤600px
   ═══════════════════════════════════════════════════ */
@media (max-width: 600px) {

  /* ── Softer card radius everywhere on mobile ─── */
  :root {
    --r-xl: 20px;
    --r-lg: 14px;
  }

  /* ── Alternating section backgrounds ───────────── */
  .services { background: var(--bg2); }
  .process  { background: var(--bg);  }
  .projects { background: var(--bg2); }
  .faq      { background: var(--bg);  }
  .contact  { background: var(--bg2); }

  /* ── Section label — left-aligned on mobile ──── */
  .svc-head,
  .proc-head,
  .proj-head {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }
  .proj-main-sub,
  .svc-main-sub,
  .proc-main-sub { margin: 0; max-width: 100%; }

  /* ── Hero: tighter spacing ───────────────────── */
  .hero-agency .hero-inner { padding-top: 100px; gap: 36px; }
  .hero-headline { font-size: clamp(22px, 6vw, 30px); }
  .hero-stats { gap: 12px; }
  .stat-num { font-size: 1.6rem; }

  /* ── Trust pills: single row scroll ─────────── */
  .hero-trust {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    padding-bottom: 6px;
    scrollbar-width: none;
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .hero-trust::-webkit-scrollbar { display: none; }
  .trust-pill { flex-shrink: 0; }

  /* ── Process: compact header ─────────────────── */
  .proc-step-title { font-size: 1rem; }
  .proc-step-desc  { font-size: 0.85rem; }

  /* ── Projects: tighter content padding ──────── */
  .proj-content { padding: 24px 20px 20px; }
  .proj-title   { font-size: 1.15rem; }
  .proj-desc    { font-size: 0.88rem; margin-bottom: 20px; }

  /* ── Footer: stack socials below copyright ───── */
  .footer-top { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-socials { gap: 12px; }

  /* ── FAQ ─────────────────────────────────────── */
  .faq { padding: 80px 0 70px; }
  .faq-head { margin-bottom: 50px; }
  .faq-layout { grid-template-columns: 1fr; }
  .faq-panel { position: static; }
  .faq-panel-visual { width: 150px; height: 150px; }
  .faq-chip-1 { left: -5px; }
  .faq-chip-2 { right: -5px; }
  .faq-q-text { font-size: 0.9rem; }
  .faq-a-inner p { padding-left: 28px; font-size: 0.9rem; }
}