/* ═══════════════════════════════════════════════════════
   BIG INTELLIGENT CENTER CALL — Stylesheet
   Primary language: Arabic (RTL)  |  Secondary: English (LTR)
   Theme: Deep navy + blue/cyan accents
═══════════════════════════════════════════════════════ */

/* ─── CSS Custom Properties ─── */
:root {
  --navy:        #071330;
  --navy-2:      #0d1f3c;
  --navy-card:   #0f2040;
  --navy-card2:  #132850;
  --blue:        #1a56db;
  --blue-2:      #2563eb;
  --cyan:        #00c4e0;
  --text:        #ffffff;
  --text-muted:  #8fa3bf;
  --text-gray:   #b8cce4;
  --light-bg:    #f0f4f8;
  --border:      rgba(255, 255, 255, 0.07);
  --shadow:      0 8px 32px rgba(0, 0, 0, 0.28);
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   20px;
}

/* ─── Reset ─── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

/* ─── Font: Arabic → Cairo first, English → Inter first ─── */
html[lang="ar"] body {
  font-family: "Cairo", "Inter", sans-serif;
}

html[lang="en"] body {
  font-family: "Inter", "Cairo", sans-serif;
}

body {
  font-family: "Cairo", "Inter", sans-serif;
  background: var(--navy);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  transition: opacity 0.18s ease;
}

/* Fade during language switch */
body.lang-switching {
  opacity: 0;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

/* ─── Container ─── */
.container {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ─── Section base ─── */
.section {
  padding-block: 5.5rem;
  overflow-x: hidden; /* prevent translateX reveal from causing horizontal scroll */
}

/* ─── Typography ─── */
.eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.65rem;
}

.eyebrow.dark {
  color: var(--blue);
}

h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  margin-bottom: 1.1rem;
}

h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.35rem);
  margin-bottom: 1rem;
}

h4 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.section-desc {
  color: var(--text-gray);
  max-width: 480px;
  margin-bottom: 1.75rem;
  font-size: 0.97rem;
}

.section-desc.dark-text {
  color: #4a6480;
}

.text-muted {
  color: var(--text-muted) !important;
}

/* ─── Scroll Reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.reveal-right {
  transform: translateX(22px);
}

/* RTL: reveal-right should come from the opposite side */
[dir="rtl"] .reveal.reveal-right {
  transform: translateX(-22px);
}

.reveal.visible {
  opacity: 1;
  transform: translate(0);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  font-family: "Cairo", "Inter", sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: var(--radius-sm);
  padding: 0.78rem 1.55rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
              background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
  max-width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #fff;
  box-shadow: 0 4px 18px rgba(26, 86, 219, 0.38);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(26, 86, 219, 0.52);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.38);
  color: #fff;
  background: transparent;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-nav {
  background: var(--blue);
  color: #fff;
  border-radius: 6px;
  padding: 0.58rem 1.2rem;
  font-size: 0.87rem;
  border: none;
}

.btn-nav:hover {
  background: var(--blue-2);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(26, 86, 219, 0.45);
}

.btn-white {
  background: #fff;
  color: var(--navy);
  font-weight: 800;
}

.btn-white:hover {
  background: var(--light-bg);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

/* ═══════════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 1000;
  padding-block: 1rem;
  background: rgba(7, 19, 48, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: rgba(7, 19, 48, 0.97);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-logo {
  text-decoration: none;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  border: none;
  outline: none;
  background: none;
  padding: 0;
}

.logo-img {
  height: 58px;
  width: auto;
  object-fit: contain;
  display: block;
  border: none;
  outline: none;
  background: transparent;
  mix-blend-mode: screen;
  filter: brightness(2.5) contrast(1.05) saturate(1.2);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.logo-img:hover {
  filter: brightness(3) contrast(1.05) saturate(1.3) drop-shadow(0 0 10px rgba(0,196,224,0.45));
  transform: scale(1.04);
}

.logo-img--footer {
  height: 50px;
  filter: brightness(2.2) contrast(1.05) saturate(1.1);
  opacity: 0.95;
}

.navbar.scrolled .logo-img {
  filter: brightness(2.5) contrast(1.05) saturate(1.2);
}

/* Nav links centered */
.nav-links {
  display: flex;
  list-style: none;
  gap: 1.6rem;
  margin-inline: auto;
}

.nav-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #fff;
}

/* Nav end: lang toggle + CTA */
.nav-end {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

/* Language toggle button */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: 1.5px solid rgba(0, 196, 224, 0.55);
  color: var(--cyan);
  border-radius: 6px;
  padding: 0.5rem 0.85rem;
  font-family: "Inter", "Cairo", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 0.2s ease, border-color 0.2s ease,
              color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.lang-toggle:hover {
  background: rgba(0, 196, 224, 0.12);
  border-color: var(--cyan);
  color: #fff;
  transform: translateY(-1px);
}

.lang-toggle i {
  font-size: 0.88rem;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem;
  margin-inline-start: auto;
}

/* ═══════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
  padding-bottom: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 50%, rgba(0, 196, 224, 0.13) 0%, transparent 50%),
    radial-gradient(circle at 20% 70%, rgba(26, 86, 219, 0.22) 0%, transparent 48%),
    linear-gradient(140deg, #071330 0%, #0d1f3c 45%, #0b2260 100%);
}

/* Animated grid overlay */
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  animation: gridDrift 20s linear infinite;
}

/* ── Canvas particles ── */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ── Animated gradient orbs ── */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.hero-orb-1 {
  width: 580px;
  height: 580px;
  background: rgba(26, 86, 219, 0.22);
  top: -120px;
  right: -120px;
  animation: orbDrift1 12s ease-in-out infinite;
}

.hero-orb-2 {
  width: 420px;
  height: 420px;
  background: rgba(0, 196, 224, 0.16);
  top: 30%;
  left: 0%;
  animation: orbDrift2 10s ease-in-out infinite;
}

.hero-orb-3 {
  width: 320px;
  height: 320px;
  background: rgba(124, 58, 237, 0.14);
  bottom: 8%;
  right: 18%;
  animation: orbDrift3 14s ease-in-out infinite;
}

[dir="rtl"] .hero-orb-1 { right: auto; left: -120px; }
[dir="rtl"] .hero-orb-2 { left: auto; right: 0%; }

/* ── Container ── */
.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
  padding-bottom: 5rem;
}

.hero-content {
  max-width: 540px;
}

/* ── Entrance animations ── */
.hero-anim-1 { animation: heroDown  0.7s cubic-bezier(0.22,1,.36,1) 0.1s both; }
.hero-anim-2 { animation: heroUp    0.8s cubic-bezier(0.22,1,.36,1) 0.28s both; }
.hero-anim-3 { animation: heroUp    0.8s cubic-bezier(0.22,1,.36,1) 0.46s both; }
.hero-anim-4 { animation: heroUp    0.7s cubic-bezier(0.22,1,.36,1) 0.64s both; }
.hero-anim-5 { animation: heroUp    0.7s cubic-bezier(0.22,1,.36,1) 0.82s both; }

/* Card visual entrance — LTR slides from right, RTL from left */
.hero-anim-card {
  animation: heroFromRight 0.95s cubic-bezier(0.22,1,.36,1) 0.32s both;
}
[dir="rtl"] .hero-anim-card {
  animation: heroFromLeft  0.95s cubic-bezier(0.22,1,.36,1) 0.32s both;
}

/* ── Hero Tag (eyebrow) ── */
.hero-tag {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  background: rgba(0, 196, 224, 0.1);
  border: 1px solid rgba(0, 196, 224, 0.32);
  border-radius: 999px;
  padding: 0.42rem 1.1rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  max-width: 100%;
}

.tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  flex-shrink: 0;
  animation: blinkDot 2.2s ease-in-out infinite;
}

.hero-accent {
  color: var(--cyan);
}

.hero-desc {
  color: var(--text-gray);
  font-size: 1.02rem;
  margin-bottom: 0.6rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

/* Ripple effect on primary button */
.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.18), transparent);
  transform: translateX(-100%) skewX(-15deg);
  animation: btnShine 3.5s ease-in-out 1.5s infinite;
}

/* ── Hero mini stats ── */
.hero-mini-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mini-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ms-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--cyan);
  line-height: 1;
}

.ms-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.2;
}

.ms-sep {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
}

/* ── Hero Visual ── */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 480px;
}

/* ── Orbit rings ── */
.orbit-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 560px;
  height: 560px;
  pointer-events: none;
  z-index: 0;
}

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px dashed rgba(0, 196, 224, 0.2);
}

.orbit-1 {
  width: 370px;
  height: 370px;
  margin-top: -185px;
  margin-left: -185px;
  animation: orbitCW  22s linear infinite;
}

.orbit-2 {
  width: 510px;
  height: 510px;
  margin-top: -255px;
  margin-left: -255px;
  border-color: rgba(124, 58, 237, 0.15);
  animation: orbitCCW 35s linear infinite;
}

.orbit-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  top: -5px;
  left: calc(50% - 5px);
}

.od-1 {
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan), 0 0 28px rgba(0,196,224,0.4);
}

.od-2 {
  background: #a855f7;
  box-shadow: 0 0 12px #a855f7, 0 0 28px rgba(168,85,247,0.4);
  top: auto;
  bottom: -5px;
}

/* ── Hero glow (pulsing) ── */
.hero-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(26, 86, 219, 0.28) 0%,
    rgba(0, 196, 224, 0.12) 50%,
    transparent 70%
  );
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);
  pointer-events: none;
  animation: glowPulse 4s ease-in-out infinite;
}

/* ── Hero Card (float + border-glow + entrance) ── */
.hero-card {
  position: relative;
  width: 310px;
  height: 400px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #0f2a5e, #091428);
  border: 1px solid rgba(0, 196, 224, 0.22);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(0, 196, 224, 0.08);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: cardFloat 6s ease-in-out 1.4s infinite,
             cardGlow  4s ease-in-out 2s  infinite;
  z-index: 2;
}

/* Scan-light sweep */
.card-scan {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  z-index: 4;
  pointer-events: none;
}

.card-scan::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 196, 224, 0.75) 50%, transparent 100%);
  top: -4%;
  animation: scanLight 5s ease-in-out 2s infinite;
}

.city-grid {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(to top, rgba(7, 19, 48, 0.85) 0%, transparent 65%),
    repeating-linear-gradient(90deg, transparent, transparent 28px,
      rgba(255, 255, 255, 0.026) 28px, rgba(255, 255, 255, 0.026) 29px),
    repeating-linear-gradient(0deg, transparent, transparent 38px,
      rgba(255, 255, 255, 0.02) 38px, rgba(255, 255, 255, 0.02) 39px);
  pointer-events: none;
}

.agent-svg {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 300px;
  z-index: 3;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.4));
  animation: agentBreath 4s ease-in-out 1s infinite;
}

/* Badge — appears with pop, flips side in RTL */
.hero-badge {
  position: absolute;
  bottom: 28px;
  right: -18px;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  border-radius: var(--radius-md);
  padding: 0.8rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: 0 10px 28px rgba(26, 86, 219, 0.55);
  z-index: 10;
  min-width: 145px;
  animation: badgePop 0.7s cubic-bezier(0.34,1.56,.64,1) 1.2s both;
}

[dir="rtl"] .hero-badge {
  right: auto;
  left: -18px;
}

.badge-icon {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.9);
}

.badge-num {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1;
}

.badge-label {
  display: block;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.82);
  margin-top: 0.15rem;
}

/* ── Floating chips ── */
.hero-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(9, 20, 40, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 196, 224, 0.28);
  border-radius: 14px;
  padding: 0.7rem 1rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.32);
  z-index: 10;
  min-width: 136px;
}

.chip-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(26,86,219,0.5), rgba(0,196,224,0.4));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.chip-txt {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.chip-txt strong {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.chip-txt span {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* chip positions */
.chip-1 {
  top: 68px;
  left: 8px;
  animation: chipIn 0.6s cubic-bezier(0.34,1.56,.64,1) 1s both,
             chipBob1 5s ease-in-out 2s infinite;
}

.chip-2 {
  bottom: 105px;
  right: 4px;
  animation: chipIn 0.6s cubic-bezier(0.34,1.56,.64,1) 1.3s both,
             chipBob2 6s ease-in-out 2.5s infinite;
}

[dir="rtl"] .chip-1 { left: auto; right: 8px; }
[dir="rtl"] .chip-2 { right: auto; left: 4px; }

/* ── Wave ── */
.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  line-height: 0;
  pointer-events: none;
}

.hero-wave svg {
  width: 100%;
  height: 70px;
}

/* ════════════════════════════════════════
   HERO KEYFRAMES
════════════════════════════════════════ */
@keyframes heroDown {
  from { opacity: 0; transform: translateY(-24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroFromRight {
  from { opacity: 0; transform: translateX(60px) scale(0.95); }
  to   { opacity: 1; transform: translateX(0)    scale(1); }
}

@keyframes heroFromLeft {
  from { opacity: 0; transform: translateX(-60px) scale(0.95); }
  to   { opacity: 1; transform: translateX(0)     scale(1); }
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0px); }
  50%      { transform: translateY(-16px); }
}

@keyframes cardGlow {
  0%, 100% {
    box-shadow: 0 24px 64px rgba(0,0,0,.48),
                0 0 0 1px rgba(0,196,224,.08),
                0 0 30px rgba(0,196,224,.06);
  }
  50% {
    box-shadow: 0 24px 64px rgba(0,0,0,.48),
                0 0 0 1px rgba(0,196,224,.35),
                0 0 60px rgba(0,196,224,.22);
  }
}

@keyframes agentBreath {
  0%, 100% { transform: translateX(-50%) scaleY(1);    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.4)); }
  50%      { transform: translateX(-50%) scaleY(1.015); filter: drop-shadow(0 12px 32px rgba(0,196,224,0.25)); }
}

@keyframes glowPulse {
  0%, 100% { transform: translate(-50%,-52%) scale(1);   opacity: 0.65; }
  50%      { transform: translate(-50%,-52%) scale(1.22); opacity: 1; }
}

@keyframes orbitCW  { from { transform: rotate(0deg); }   to { transform: rotate(360deg); } }
@keyframes orbitCCW { from { transform: rotate(0deg); }   to { transform: rotate(-360deg); } }

@keyframes badgePop {
  0%   { opacity: 0; transform: scale(0.3) rotate(-8deg); }
  70%  { transform: scale(1.1)  rotate(2deg); }
  100% { opacity: 1; transform: scale(1)   rotate(0deg); }
}

@keyframes chipIn {
  from { opacity: 0; transform: scale(0.6) translateY(12px); }
  to   { opacity: 1; transform: scale(1)   translateY(0); }
}

@keyframes chipBob1 {
  0%, 100% { transform: translateY(0px)  rotate(-1.5deg); }
  50%      { transform: translateY(-9px) rotate(1.5deg); }
}

@keyframes chipBob2 {
  0%, 100% { transform: translateY(0px)   rotate(1.5deg); }
  50%      { transform: translateY(-11px) rotate(-1.5deg); }
}

@keyframes scanLight {
  0%   { top: -5%; opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { top: 106%; opacity: 0; }
}

@keyframes blinkDot {
  0%, 100% { opacity: 1;   box-shadow: 0 0 10px var(--cyan); }
  50%      { opacity: 0.25; box-shadow: 0 0 3px  var(--cyan); }
}

@keyframes btnShine {
  0%   { transform: translateX(-120%) skewX(-15deg); }
  40%  { transform: translateX(220%)  skewX(-15deg); }
  100% { transform: translateX(220%)  skewX(-15deg); }
}

@keyframes orbDrift1 {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(-40px, 25px) scale(1.08); }
  66%      { transform: translate(25px, -30px) scale(0.95); }
}

@keyframes orbDrift2 {
  0%, 100% { transform: translate(0,0); }
  40%      { transform: translate(30px, -20px); }
  80%      { transform: translate(-20px, 18px); }
}

@keyframes orbDrift3 {
  0%, 100% { transform: translate(0,0); }
  50%      { transform: translate(-25px, -18px); }
}

@keyframes gridDrift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 60px 60px, 60px 60px; }
}

/* ═══════════════════════════════════════════════════════
   SECTION SPLIT LAYOUT
═══════════════════════════════════════════════════════ */
.section-split {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: center;
}

.section-split.reverse {
  grid-template-columns: 1.2fr 2fr;
}

.section-split.faq-split {
  grid-template-columns: 1fr 1.5fr;
  align-items: start;
}

/* ═══════════════════════════════════════════════════════
   FEATURES SECTION (light bg)
═══════════════════════════════════════════════════════ */
.features-section {
  background: var(--light-bg);
  color: #0d1f3c;
}

.features-section h2 {
  color: #0d1f3c;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

.feature-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1.45rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
  border: 1px solid rgba(26, 86, 219, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(26, 86, 219, 0.14);
}

.feat-icon {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--blue), #0ea5e9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  flex-shrink: 0;
}

.feature-card h4 {
  color: #0d1f3c;
  font-size: 0.97rem;
}

.feature-card p {
  color: #5a7090;
  font-size: 0.86rem;
  margin-bottom: 0.65rem;
}

.feat-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  transition: gap 0.2s ease;
}

.feat-link:hover {
  gap: 0.55rem;
}

/* ═══════════════════════════════════════════════════════
   SERVICES SECTION
═══════════════════════════════════════════════════════ */
.services-section {
  background: var(--navy-2);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

.service-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.55rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 196, 224, 0.4);
  box-shadow: 0 10px 30px rgba(0, 196, 224, 0.1);
}

.srv-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(26, 86, 219, 0.4), rgba(0, 196, 224, 0.3));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  font-size: 1.2rem;
  margin-bottom: 0.9rem;
  flex-shrink: 0;
}

.service-card h4 {
  font-size: 0.97rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.87rem;
  margin-bottom: 0.8rem;
}

.learn-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--cyan);
  text-decoration: none;
  transition: gap 0.2s ease;
}

.learn-more:hover {
  gap: 0.6rem;
}

/* ═══════════════════════════════════════════════════════
   STATS SECTION
═══════════════════════════════════════════════════════ */
.stats-section {
  background: var(--navy);
}

.stats-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.stats-img-wrap {
  position: relative;
  width: 100%;
  max-width: 340px;
}

.stats-agent-img {
  height: 340px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--navy-card), var(--navy-card2));
  border: 1px solid rgba(0, 196, 224, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.agent-placeholder {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 50px rgba(0, 196, 224, 0.3);
  z-index: 2;
}

.stats-rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 196, 224, 0.2);
  animation: pulse-ring 3s ease-out infinite;
}

.ring-1 { width: 160px; height: 160px; }
.ring-2 { width: 240px; height: 240px; animation-delay: 1s; }

@keyframes pulse-ring {
  0%   { transform: scale(0.85); opacity: 0.6; }
  100% { transform: scale(1.15); opacity: 0; }
}

.stats-badge {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  border-radius: 12px;
  padding: 0.8rem 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 10px 28px rgba(26, 86, 219, 0.55);
  white-space: nowrap;
  max-width: 90%;
}

.badge-num-lg {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
}

.badge-label-sm {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.82);
  margin-top: 0.2rem;
}

.counters-row {
  display: flex;
  gap: 1.15rem;
  justify-content: center;
  flex-wrap: wrap;
}

.counter-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.35rem;
  min-width: 95px;
}

.counter-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--cyan);
  line-height: 1;
}

.counter-label {
  font-size: 0.77rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  text-align: center;
}

/* ═══════════════════════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════════════════════ */
.testimonials-section {
  background: var(--navy-2);
}

.testi-header {
  margin-bottom: 3rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.testi-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testi-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32);
}

.testi-stars {
  color: #f59e0b;
  font-size: 0.88rem;
  margin-bottom: 0.85rem;
  display: flex;
  gap: 0.2rem;
}

.testi-text {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-style: italic;
  margin-bottom: 1.3rem;
  line-height: 1.7;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.testi-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  color: #fff;
}

.testi-author strong {
  display: block;
  font-size: 0.93rem;
}

.testi-author span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════
   FAQ
═══════════════════════════════════════════════════════ */
.faq-section {
  background: var(--navy);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.faq-item {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-item.active {
  border-color: rgba(0, 196, 224, 0.38);
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: "Cairo", "Inter", sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
  padding: 1.1rem 1.3rem;
  text-align: start;           /* logical: right in RTL, left in LTR */
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color 0.2s ease;
}

.faq-q:hover {
  color: var(--cyan);
}

.faq-q i {
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.35s ease, color 0.2s ease;
}

.faq-item.active .faq-q i {
  transform: rotate(180deg);
  color: var(--cyan);
}

.faq-a {
  padding: 0 1.3rem;
  max-height: 0;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.75;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.active .faq-a {
  max-height: 200px;
  padding: 0 1.3rem 1.15rem;
}

/* ═══════════════════════════════════════════════════════
   CTA BANNER
═══════════════════════════════════════════════════════ */
.cta-banner-wrap {
  padding: 2.5rem 1.25rem;
  background: var(--navy-2);
}

.cta-banner {
  max-width: 880px;
  margin-inline: auto;
  background: linear-gradient(125deg, #006fa8, #00b4c8, #0050cc);
  border-radius: 999px;
  padding: 3.5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-texture {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      45deg, transparent, transparent 12px,
      rgba(255, 255, 255, 0.04) 12px, rgba(255, 255, 255, 0.04) 13px
    );
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: clamp(1.35rem, 3vw, 2rem);
  margin-bottom: 0.65rem;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 1.6rem;
}

/* ═══════════════════════════════════════════════════════
   CONTACT SECTION
═══════════════════════════════════════════════════════ */
.contact-section {
  background: var(--navy);
}

.section-header-center {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header-center .section-desc {
  margin-inline: auto;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.75rem 1.5rem;
  color: var(--text);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
  border-color: rgba(0, 196, 224, 0.42);
}

.contact-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.3rem;
  flex-shrink: 0;
}

.contact-icon.phone {
  background: linear-gradient(135deg, var(--blue), #0ea5e9);
  box-shadow: 0 8px 26px rgba(26, 86, 219, 0.4);
}

.contact-icon.wa {
  background: linear-gradient(135deg, #25d366, #128c7e);
  box-shadow: 0 8px 26px rgba(37, 211, 102, 0.38);
}

.contact-icon.em {
  background: linear-gradient(135deg, #e94560, #c0392b);
  box-shadow: 0 8px 26px rgba(233, 69, 96, 0.38);
}

.contact-icon.addr {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 8px 26px rgba(245, 158, 11, 0.38);
}

.contact-card--address {
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
}

.contact-card--address:hover .contact-icon.addr {
  box-shadow: 0 12px 32px rgba(245, 158, 11, 0.6);
  transform: scale(1.08) rotate(-5deg);
}

/* Small map-pin animation on hover */
.contact-card--address:hover .fa-map-marker-alt {
  animation: pinBounce 0.5s cubic-bezier(0.34,1.56,.64,1);
}

@keyframes pinBounce {
  0%   { transform: translateY(0); }
  40%  { transform: translateY(-8px); }
  70%  { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}

.contact-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.contact-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ═══════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════ */
.footer {
  background: var(--navy-2);
  border-top: 1px solid var(--border);
  padding-top: 3.5rem;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
  flex-wrap: wrap;
  padding-bottom: 2.5rem;
}

.footer-brand {
  flex: 1;
  min-width: 180px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 0.55rem;
  max-width: 220px;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-socials {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--navy-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease,
              border-color 0.2s ease, transform 0.2s ease;
}

.footer-socials a:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  transform: translateY(-2px);
}

.footer-copy {
  border-top: 1px solid var(--border);
  padding-block: 1.2rem;
}

.footer-copy p {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-bottom: 0.25rem;
}

.footer-copy a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-copy a:hover {
  color: var(--cyan);
}

/* ═══════════════════════════════════════════════════════
   GLOBAL PAGE ANIMATIONS
═══════════════════════════════════════════════════════ */

/* ── Enhanced reveal base (smoother easing) ── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.reveal-right {
  transform: translateX(30px);
}

[dir="rtl"] .reveal.reveal-right {
  transform: translateX(-30px);
}

/* Slide from left */
.reveal[data-dir="left"] {
  transform: translateX(-38px);
}

[dir="rtl"] .reveal[data-dir="left"] {
  transform: translateX(38px);
}

/* Scale reveal */
.reveal[data-dir="scale"] {
  transform: scale(0.85) translateY(18px);
}

.reveal.visible {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* ── Section decorative background accents ── */
.services-section,
.stats-section,
.testimonials-section,
.faq-section,
.contact-section {
  position: relative;
  overflow: hidden;
}

.services-section::before {
  content: '';
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 86, 219, 0.07) 0%, transparent 68%);
  top: -160px;
  right: -100px;
  pointer-events: none;
  z-index: 0;
}

[dir="rtl"] .services-section::before { right: auto; left: -100px; }

.stats-section::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 196, 224, 0.06) 0%, transparent 65%);
  bottom: -200px;
  left: -120px;
  pointer-events: none;
  z-index: 0;
}

[dir="rtl"] .stats-section::before { left: auto; right: -120px; }

.testimonials-section::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 340px;
  background: radial-gradient(ellipse, rgba(124, 58, 237, 0.06) 0%, transparent 65%);
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
}

.faq-section::after {
  content: '';
  position: absolute;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 86, 219, 0.06) 0%, transparent 65%);
  top: 50%;
  right: -150px;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
}

[dir="rtl"] .faq-section::after { right: auto; left: -150px; }

/* Keep content above decorative layers */
.services-section > .container,
.stats-section > .container,
.testimonials-section > .container,
.faq-section > .container,
.contact-section > .container {
  position: relative;
  z-index: 1;
}

/* ── Animated section heading underline ── */
.features-section .split-left h2,
.services-section .split-left h2,
.stats-section .split-left h2,
.testimonials-section .testi-header h2,
.faq-section .split-left h2 {
  position: relative;
  padding-bottom: 0.6rem;
}

.features-section .split-left h2::after,
.services-section .split-left h2::after,
.stats-section .split-left h2::after,
.testimonials-section .testi-header h2::after,
.faq-section .split-left h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  border-radius: 2px;
  transition: width 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}

[dir="rtl"] .features-section .split-left h2::after,
[dir="rtl"] .services-section .split-left h2::after,
[dir="rtl"] .stats-section .split-left h2::after,
[dir="rtl"] .testimonials-section .testi-header h2::after,
[dir="rtl"] .faq-section .split-left h2::after {
  left: auto;
  right: 0;
}

.split-left.visible h2::after,
.testi-header.visible h2::after {
  width: 55%;
}

/* ── Feature cards ── */
.feature-card {
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), #0ea5e9);
  transform: scaleX(0);
  transform-origin: start;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  border-radius: 2px 2px 0 0;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feat-icon {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease;
}

.feature-card:hover .feat-icon {
  transform: scale(1.14) rotate(-6deg);
  box-shadow: 0 10px 24px rgba(26, 86, 219, 0.45);
}

/* Shimmer on hover */
.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
  transform: skewX(-15deg);
  transition: left 0.55s ease;
}

.feature-card:hover::after {
  left: 170%;
}

/* ── Service cards ── */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(0, 196, 224, 0.06), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover::before {
  opacity: 1;
}

.srv-icon {
  transition: transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.3s ease,
              box-shadow 0.3s ease;
}

.service-card:hover .srv-icon {
  transform: scale(1.18) rotate(8deg);
  background: linear-gradient(135deg, rgba(26, 86, 219, 0.65), rgba(0, 196, 224, 0.5));
  box-shadow: 0 0 22px rgba(0, 196, 224, 0.4);
}

/* ── Stats counters ── */
.counter-item {
  position: relative;
  overflow: hidden;
}

.counter-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.counter-item.visible {
  animation: counterPop 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.counter-item.visible::after {
  transform: scaleX(1);
}

@keyframes counterPop {
  from { opacity: 0; transform: scale(0.75) translateY(14px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

.counter-val {
  position: relative;
  display: inline-block;
}

.counter-item.visible .counter-val {
  animation: numReveal 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

@keyframes numReveal {
  from { opacity: 0; transform: translateY(18px); filter: blur(6px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

/* Stats agent image float */
.stats-agent-img {
  animation: statsFloat 5s ease-in-out 0.5s infinite;
}

@keyframes statsFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* ── Testimonial cards ── */
.testi-card {
  position: relative;
  overflow: hidden;
}

/* Big decorative quote mark */
.testi-card::before {
  content: '\201C';
  position: absolute;
  top: -8px;
  right: 14px;
  font-size: 5.5rem;
  font-family: Georgia, serif;
  color: rgba(0, 196, 224, 0.07);
  line-height: 1;
  pointer-events: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

[dir="rtl"] .testi-card::before {
  right: auto;
  left: 14px;
}

.testi-card:hover::before {
  color: rgba(0, 196, 224, 0.16);
  transform: scale(1.1) translateY(-4px);
}

/* Shimmer sweep */
.testi-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
  transform: skewX(-12deg);
  transition: left 0.6s ease;
}

.testi-card:hover::after {
  left: 170%;
}

.testi-avatar {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease;
}

.testi-card:hover .testi-avatar {
  transform: scale(1.12);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Stars sequential glow */
.testi-card.visible .testi-stars i {
  animation: starGlow 0.4s ease both;
}

.testi-card.visible .testi-stars i:nth-child(1) { animation-delay: 0.1s; }
.testi-card.visible .testi-stars i:nth-child(2) { animation-delay: 0.18s; }
.testi-card.visible .testi-stars i:nth-child(3) { animation-delay: 0.26s; }
.testi-card.visible .testi-stars i:nth-child(4) { animation-delay: 0.34s; }
.testi-card.visible .testi-stars i:nth-child(5) { animation-delay: 0.42s; }

@keyframes starGlow {
  from { opacity: 0; transform: scale(0.4) rotate(-20deg); }
  to   { opacity: 1; transform: scale(1)   rotate(0deg); }
}

/* ── FAQ items ── */
.faq-item {
  position: relative;
}

/* Side accent bar */
.faq-item::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--cyan), var(--blue));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s ease;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

[dir="rtl"] .faq-item::before {
  right: auto;
  left: 0;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.faq-item.active::before {
  transform: scaleY(1);
}

.faq-item:hover {
  border-color: rgba(0, 196, 224, 0.22);
}

/* ── CTA Banner ── */
.cta-banner {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.cta-banner:hover {
  transform: translateY(-4px) scale(1.005);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.28);
}

/* Floating wave inside banner */
.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -25%;
  left: -5%;
  width: 110%;
  height: 80%;
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 255, 255, 0.09) 0%, transparent 55%);
  pointer-events: none;
  animation: ctaInnerWave 7s ease-in-out infinite;
}

@keyframes ctaInnerWave {
  0%, 100% { transform: translateY(0) scaleX(1); opacity: 0.7; }
  50%      { transform: translateY(-18px) scaleX(1.06); opacity: 1; }
}

/* ── Contact cards ── */
.contact-icon {
  transition: transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease;
}

.contact-card:hover .contact-icon {
  transform: scale(1.15) translateY(-5px);
}

.contact-card:hover .contact-icon.phone {
  box-shadow: 0 12px 32px rgba(26, 86, 219, 0.55);
}

.contact-card:hover .contact-icon.wa {
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.55);
}

.contact-card:hover .contact-icon.em {
  box-shadow: 0 12px 32px rgba(233, 69, 96, 0.55);
}

.contact-card:hover .contact-icon.addr {
  box-shadow: 0 12px 32px rgba(245, 158, 11, 0.55);
}

/* WhatsApp card: pulsing ring */
.contact-card:nth-child(2)::before {
  content: '';
  position: absolute;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.4);
  top: 2.35rem;
  left: 50%;
  transform: translateX(-50%);
  animation: waPulse 2.4s ease-out 1s infinite;
}

@keyframes waPulse {
  0%   { transform: translateX(-50%) scale(1);   opacity: 0.7; }
  100% { transform: translateX(-50%) scale(1.85); opacity: 0; }
}

/* ── Active navbar link ── */
.nav-links a.active {
  color: var(--cyan);
}

.nav-links a.active::after {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  margin: 2px auto 0;
}

/* ── Footer links hover ── */
.footer-links a {
  position: relative;
  padding-bottom: 2px;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--cyan);
  transition: width 0.25s ease;
}

.footer-links a:hover::after {
  width: 100%;
}

/* ─── RTL — Specific overrides
   (Most layout is handled automatically by dir="rtl"
    on the html element; these are the exceptions)
═══════════════════════════════════════════════════════ */

/* Arrow icons face the correct reading direction */
[dir="ltr"] .dir-arrow {
  /* arrows already face right in LTR — no change needed */
}

[dir="rtl"] .dir-arrow {
  /* arrow-left is already set in HTML for RTL default;
     JS swaps to arrow-right when switching to EN        */
}

/* Hero content in RTL: text is on the right side naturally */
[dir="rtl"] .hero-content {
  max-width: 540px;
}

/* Features section: in RTL the split-left (text) appears on the right */
[dir="rtl"] .features-section .section-desc {
  max-width: 480px;
}

/* Mobile nav open state is a column — keep aligned to start */
[dir="rtl"] .nav-links.open {
  align-items: flex-end;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 1024px)
═══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .section-split,
  .section-split.reverse,
  .section-split.faq-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* 4 contact cards → 2×2 on tablet */
  .contact-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-card {
    width: 270px;
    height: 350px;
  }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 768px)
═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Base reset ── */
  *, *::before, *::after { box-sizing: border-box; }
  html, body { overflow-x: hidden; }

  .container { padding-inline: 1rem; }
  .section   { padding-block: 2.8rem; }

  h1 { font-size: 1.85rem; line-height: 1.2; }
  h2 { font-size: 1.5rem;  line-height: 1.3; }
  p  { line-height: 1.65; }

  /* ── Navbar ── */
  .logo-img      { height: 36px; }
  .nav-end       { gap: 0.4rem; }
  .lang-toggle   { padding: 0.4rem 0.65rem; font-size: 0.78rem; }
  .nav-end .btn-nav { display: none; }
  .nav-toggle    { display: block; }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(7,19,48,0.97);
    border-top: 1px solid var(--border);
    backdrop-filter: blur(16px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.5);
    z-index: 999;
  }
  .nav-links.open { display: flex; }

  .nav-links li   { border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a    { display: block; padding: 0.9rem 1.4rem; font-size: 0.93rem; }

  /* ── Hero ── */
  .hero-section {
    padding-top: 5rem;
    padding-bottom: 2rem;
    min-height: auto;
    align-items: flex-start;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
    padding-bottom: 0;
  }

  .hero-visual { display: none; }
  .hero-badge  { display: none; }

  .hero-content { max-width: 100%; order: 1; }

  .hero-tag {
    font-size: 0.68rem;
    padding: 0.35rem 0.85rem;
    letter-spacing: 0.04em;
    text-align: center;
    max-width: 90%;
    margin-inline: auto;
    justify-content: center;
    white-space: normal;
    line-height: 1.5;
  }

  .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.7rem;
  }

  .hero-mini-stats {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
  }

  .ms-sep { display: none; }

  /* ── Sections: split → stack ── */
  .section-split,
  .section-split.reverse,
  .section-split.faq-split {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .split-left  { order: 1; text-align: center; }
  .split-right { order: 2; }

  [dir="rtl"] .split-left { text-align: center; }

  /* center the h2 underline */
  .features-section .split-left h2::after,
  .services-section .split-left h2::after,
  .stats-section    .split-left h2::after,
  .faq-section      .split-left h2::after {
    left: 50%; transform: translateX(-50%);
  }

  .split-left .btn,
  .split-left .stat-progress-wrap {
    margin-inline: auto;
  }

  .stat-progress-wrap { max-width: 340px; text-align: start; }

  /* ── Features ── */
  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
  }
  .feature-card {
    padding: 1.1rem;
    align-items: center;
    text-align: center;
  }
  .feat-icon { margin-inline: auto; width: 40px; height: 40px; font-size: 1rem; }
  .feature-card h4 { font-size: 0.85rem; }
  .feature-card p  { font-size: 0.76rem; }

  /* ── Services ── */
  .services-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
  }
  .service-card { padding: 1.1rem; }
  .srv-icon     { width: 40px; height: 40px; font-size: 1rem; }
  .service-card h3 { font-size: 0.88rem; }
  .service-card p  { font-size: 0.76rem; }

  /* ── Stats ── */
  .counters-row { gap: 0.7rem; }
  .counter-item {
    flex: 1;
    min-width: 80px;
    padding: 0.9rem 0.85rem;
  }
  .counter-val   { font-size: 1.2rem; }
  .counter-label { font-size: 0.7rem; }

  .stats-visual { align-items: center; text-align: center; }

  .spi-label { min-width: 80px; font-size: 0.73rem; }

  /* ── Testimonials ── */
  .testimonials-grid { grid-template-columns: 1fr; gap: 1rem; }
  .testi-header      { text-align: center; }

  /* ── FAQ ── */
  .faq-list { gap: 0.6rem; }
  .faq-q    { font-size: 0.9rem; padding: 0.95rem 1rem; }
  .faq-a    { font-size: 0.83rem; padding: 0 1rem 1rem; }

  /* ── CTA ── */
  .cta-banner {
    border-radius: 18px;
    padding: 2.2rem 1.25rem;
    text-align: center;
  }
  .cta-content h2  { font-size: 1.35rem; }
  .cta-content .btn { margin-inline: auto; display: block; width: fit-content; }

  /* ── Contact ── */
  .contact-cards { grid-template-columns: 1fr; gap: 0.85rem; }
  .contact-card  {
    padding: 1.15rem 1.3rem;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    text-align: start;
  }
  [dir="rtl"] .contact-card { text-align: start; }
  .contact-card .contact-icon {
    width: 50px; height: 50px;
    font-size: 1.25rem;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  /* ── Footer ── */
  .footer-inner {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-align: center;
  }
  .footer-brand p     { max-width: 100%; }
  .footer-links       { flex-wrap: wrap; justify-content: center; gap: 0.7rem 1.1rem; }
  .footer-copy p      { text-align: center; }
  .footer-socials     { justify-content: center; }

  /* Disable 3D tilt on touch devices */
  .feature-card, .service-card,
  .testi-card, .contact-card { transform: none !important; }

  /* Reduce translateX reveal on mobile to avoid clipping issues */
  .reveal.reveal-right,
  .reveal[data-dir="left"],
  .faq-item.reveal,
  [dir="rtl"] .reveal.reveal-right,
  [dir="rtl"] .reveal[data-dir="left"],
  [dir="rtl"] .faq-item.reveal {
    transform: translateY(20px);
  }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — SMALL PHONES (≤ 600px)
   Single column for feature/service grids
═══════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  .features-grid,
  .services-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .feature-card,
  .service-card {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
  }

  .feat-icon, .srv-icon {
    flex-shrink: 0;
    margin: 0;
    width: 44px; height: 44px;
  }

  .feature-card h4,
  .service-card h3 { font-size: 0.9rem; text-align: start; }

  .feature-card p,
  .service-card p  { font-size: 0.79rem; text-align: start; }

  .hero-tag  { font-size: 0.63rem; max-width: 85%; }
  .hero-desc { font-size: 0.88rem; }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — VERY SMALL PHONES (≤ 420px)
═══════════════════════════════════════════════════════ */
@media (max-width: 420px) {

  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }

  .container  { padding-inline: 0.9rem; }
  .section    { padding-block: 2.2rem; }
  .logo-img   { height: 30px; }
  .lang-toggle { padding: 0.35rem 0.5rem; font-size: 0.74rem; }

  .hero-section   { padding-top: 4.5rem; padding-bottom: 1.5rem; }
  .hero-tag       { font-size: 0.6rem; letter-spacing: 0.02em; }
  .hero-desc      { font-size: 0.85rem; }

  .hero-actions   { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 260px; text-align: center; }

  .hero-mini-stats { gap: 0.4rem 0.9rem; }
  .ms-val          { font-size: 1rem; }
  .ms-label        { font-size: 0.7rem; }

  .counter-item  { min-width: 0; padding: 0.7rem 0.6rem; }
  .counter-val   { font-size: 1rem; }
  .counter-label { font-size: 0.65rem; }

  .cta-banner    { padding: 1.8rem 1rem; }
  .cta-content h2 { font-size: 1.15rem; }

  .contact-card .contact-icon { width: 44px; height: 44px; font-size: 1.1rem; }
  .contact-card h4 { font-size: 0.9rem; }
  .contact-card p  { font-size: 0.8rem; }

  .faq-q { font-size: 0.85rem; padding: 0.85rem 0.9rem; }
  .faq-a { font-size: 0.8rem; }

  /* FABs */
  #floatWa .wa-circle { width: 48px; height: 48px; font-size: 1.4rem; }
  #floatWa  { bottom: 1rem; inset-inline-end: 0.85rem; }
  #floatTop { width: 42px; height: 42px; bottom: 1rem; inset-inline-start: 0.85rem; }
  .fab-tooltip { display: none; }
  #floatWa .wa-label { display: none; }
}

/* ═══════════════════════════════════════════════════════
   ADVANCED ANIMATIONS — Level 3 (Ultra Professional)
═══════════════════════════════════════════════════════ */

/* ── Word-by-word reveal ── */
.split-words {
  overflow: visible;
}
.word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: 1.25;
}
.word-inner {
  display: inline-block;
  transform: translateY(110%) skewY(4deg);
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              opacity   0.5s  ease;
  opacity: 0;
}
.reveal.visible .split-words .word-inner,
.reveal-block.visible .split-words .word-inner {
  transform: translateY(0) skewY(0deg);
  opacity: 1;
}
/* stagger up to 12 words */
.split-words .word:nth-child(1)  .word-inner { transition-delay: 0.00s; }
.split-words .word:nth-child(2)  .word-inner { transition-delay: 0.07s; }
.split-words .word:nth-child(3)  .word-inner { transition-delay: 0.14s; }
.split-words .word:nth-child(4)  .word-inner { transition-delay: 0.21s; }
.split-words .word:nth-child(5)  .word-inner { transition-delay: 0.28s; }
.split-words .word:nth-child(6)  .word-inner { transition-delay: 0.35s; }
.split-words .word:nth-child(7)  .word-inner { transition-delay: 0.42s; }
.split-words .word:nth-child(8)  .word-inner { transition-delay: 0.49s; }
.split-words .word:nth-child(9)  .word-inner { transition-delay: 0.56s; }
.split-words .word:nth-child(10) .word-inner { transition-delay: 0.63s; }
.split-words .word:nth-child(11) .word-inner { transition-delay: 0.70s; }
.split-words .word:nth-child(12) .word-inner { transition-delay: 0.77s; }

/* ── Floating background shapes (JS-generated) ── */
.float-shape {
  position: absolute;
  pointer-events: none;
  border: 1px solid rgba(0, 196, 224, 0.14);
  z-index: 0;
  animation: shapeFloat linear infinite;
}
@keyframes shapeFloat {
  0%   { transform: translateY(0px)   rotate(0deg)   scale(1); }
  33%  { transform: translateY(-28px) rotate(120deg) scale(1.06); }
  66%  { transform: translateY(14px)  rotate(240deg) scale(0.94); }
  100% { transform: translateY(0px)   rotate(360deg) scale(1); }
}

/* ── Neon border trace — service cards (::after available) ── */
@keyframes traceFlow {
  0%   { background-position: 0%   0%; }
  100% { background-position: 400% 0%; }
}
.service-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius-md) + 1px);
  padding: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--cyan)  30%,
    var(--blue)  50%,
    var(--cyan)  70%,
    transparent  100%
  );
  background-size: 400% 100%;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  z-index: 0;
  transition: opacity 0.35s ease;
  animation: traceFlow 2s linear infinite paused;
}
.service-card:hover::after {
  opacity: 1;
  animation-play-state: running;
}

/* ── Neon border trace — contact cards ── */
.contact-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius-lg) + 1px);
  padding: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--cyan)  25%,
    #60a5fa     50%,
    var(--cyan)  75%,
    transparent  100%
  );
  background-size: 400% 100%;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  z-index: 0;
  transition: opacity 0.35s ease;
  animation: traceFlow 2.5s linear infinite paused;
}
.contact-card:hover::after {
  opacity: 1;
  animation-play-state: running;
}

/* ── Gradient text on numbers ── */
.counter-val,
.ms-val {
  background: linear-gradient(135deg, #ffffff 15%, var(--cyan) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Stats progress bars ── */
.stat-progress-wrap {
  margin-top: 1.2rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.stat-progress-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.spi-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  min-width: 100px;
  flex-shrink: 0;
}
.spi-bar-track {
  flex: 1;
  height: 5px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 3px;
  overflow: hidden;
}
.spi-bar-fill {
  height: 100%;
  border-radius: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transition: width 1.6s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}
.spi-bar-fill::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 6px; height: 100%;
  background: #fff;
  border-radius: 50%;
  opacity: 0.8;
  filter: blur(1px);
}
.spi-pct {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cyan);
  min-width: 32px;
  text-align: end;
}
.stats-section .split-left.visible .spi-bar-fill {
  width: var(--target-width);
}

/* ── Magnetic button effect ── */
.btn-magnetic {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  will-change: transform;
}

/* ── Enhanced feature card hover glow ── */
.feature-card:hover {
  box-shadow:
    0 0 0 1px rgba(26, 86, 219, 0.45),
    0 12px 40px rgba(26, 86, 219, 0.18),
    0 0 50px rgba(0, 196, 224, 0.08);
}

/* ── Enhanced testi card hover glow ── */
.testi-card:hover {
  box-shadow:
    0 0 0 1px rgba(168, 85, 247, 0.35),
    0 12px 40px rgba(168, 85, 247, 0.12),
    0 0 60px rgba(0, 196, 224, 0.06);
}

/* ── FAQ items slide from side ── */
.faq-item.reveal {
  transform: translateX(32px);
}
[dir="rtl"] .faq-item.reveal {
  transform: translateX(-32px);
}
.faq-item.reveal.visible {
  transform: translateX(0);
}

/* ── CTA banner content staggered entrance ── */
.cta-banner.visible .cta-content > *:nth-child(1) {
  animation: ctaSlideUp 0.75s cubic-bezier(0.22,1,.36,1) 0.1s both;
}
.cta-banner.visible .cta-content > *:nth-child(2) {
  animation: ctaSlideUp 0.75s cubic-bezier(0.22,1,.36,1) 0.25s both;
}
.cta-banner.visible .cta-content > *:nth-child(3) {
  animation: ctaSlideUp 0.75s cubic-bezier(0.22,1,.36,1) 0.4s both;
}
@keyframes ctaSlideUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* ── Testi stars wave ── */
.testi-card.visible .testi-stars i:nth-child(1) { animation: starWave 0.4s ease 0.2s both; }
.testi-card.visible .testi-stars i:nth-child(2) { animation: starWave 0.4s ease 0.3s both; }
.testi-card.visible .testi-stars i:nth-child(3) { animation: starWave 0.4s ease 0.4s both; }
.testi-card.visible .testi-stars i:nth-child(4) { animation: starWave 0.4s ease 0.5s both; }
.testi-card.visible .testi-stars i:nth-child(5) { animation: starWave 0.4s ease 0.6s both; }
@keyframes starWave {
  0%   { transform: scale(0) rotate(-30deg); opacity: 0; }
  70%  { transform: scale(1.35) rotate(5deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); }
}

/* ── Service icon ripple on entrance ── */
.service-card.visible .srv-icon {
  animation: iconBounceIn 0.6s cubic-bezier(0.34,1.56,.64,1) 0.1s both;
}
@keyframes iconBounceIn {
  0%   { transform: scale(0.3) rotate(-10deg); opacity: 0; box-shadow: none; }
  60%  { transform: scale(1.15) rotate(4deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); }
}

/* ── Feature icon bounce-in ── */
.feature-card.visible .feat-icon {
  animation: iconBounceIn 0.55s cubic-bezier(0.34,1.56,.64,1) 0.05s both;
}

/* ── Contact icon bounce-in ── */
.contact-card.visible .contact-icon {
  animation: iconBounceIn 0.6s cubic-bezier(0.34,1.56,.64,1) 0.15s both;
}

/* ── Pulsing counter badge ── */
@keyframes countBadgePulse {
  0%, 100% { transform: scale(1);    box-shadow: 0 10px 28px rgba(26,86,219,0.5); }
  50%      { transform: scale(1.04); box-shadow: 0 10px 28px rgba(26,86,219,0.5), 0 0 0 10px rgba(26,86,219,0.1); }
}
.stats-visual.visible .badge-num-lg {
  animation: countBadgePulse 2.8s ease-in-out 1.5s infinite;
}

/* ── Heading section ambient glow ── */
@keyframes sectionHeadGlow {
  0%, 100% { text-shadow: none; }
  50%      { text-shadow: 0 0 35px rgba(0,196,224,0.2); }
}
.split-left.visible h2 {
  animation: sectionHeadGlow 4s ease-in-out 0.5s infinite;
}

/* ── Particle shimmer on section canvases ── */
.section-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}
.features-grid,
.services-grid,
.features-section .split-left,
.services-section .split-left {
  position: relative;
  z-index: 1;
}
.float-shape {
  z-index: 0;
}

/* ── Counter item pop (enhanced) ── */
@keyframes counterBigPop {
  0%   { transform: scale(0.6) translateY(20px); opacity: 0; filter: blur(6px); }
  60%  { transform: scale(1.08) translateY(-3px); opacity: 1; filter: blur(0); }
  100% { transform: scale(1) translateY(0); filter: blur(0); }
}
.counter-item.visible {
  animation: counterBigPop 0.7s cubic-bezier(0.34,1.56,.64,1) both;
}

/* ── Navbar active link underline ── */
.nav-links a.active::after {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  border-radius: 2px;
  animation: activeUnderline 0.35s ease both;
}
@keyframes activeUnderline {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* ── Smooth entrance for contact section headings ── */
.contact-section .split-left .reveal-block {
  overflow: hidden;
}

/* ── Agent placeholder breathe in stats ── */
@keyframes agentBreathe {
  0%, 100% { transform: scale(1);    filter: drop-shadow(0 0 18px rgba(0,196,224,0.35)); }
  50%      { transform: scale(1.04); filter: drop-shadow(0 0 32px rgba(0,196,224,0.55)); }
}
.stats-visual.visible .agent-placeholder {
  animation: agentBreathe 3.5s ease-in-out 0.4s infinite;
}

/* ── Testi card avatar pop ── */
.testi-card.visible .testi-avatar {
  animation: iconBounceIn 0.55s cubic-bezier(0.34,1.56,.64,1) 0.08s both;
}

/* ── Features grid ambient drift ── */
.features-section {
  overflow: hidden;
}
.services-section {
  overflow: hidden;
}

/* ── CTA inner glow pulse ── */
@keyframes ctaGlowPulse {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 1; }
}
.cta-banner::before {
  animation: ctaGlowPulse 3s ease-in-out infinite;
}

/* ── Footer links ── */
.footer-links a {
  position: relative;
}
.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.footer-links a:hover::after {
  transform: scaleX(1);
}

/* ── Nav scroll active glow ── */
.navbar.scrolled {
  box-shadow:
    0 4px 24px rgba(0,0,0,0.4),
    0 0 0 1px rgba(0,196,224,0.08);
}

/* ── Scroll progress bar (top of page) ── */
#scrollProgress {
  position: fixed;
  top: 0; left: 0;
  height: 2.5px;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--blue));
  background-size: 200% 100%;
  z-index: 9999;
  animation: progressShimmer 2s linear infinite;
  transition: width 0.1s ease;
  pointer-events: none;
}
@keyframes progressShimmer {
  0%   { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

/* ═══════════════════════════════════════════════════════
   FLOATING ACTION BUTTONS  — Modern Redesign
═══════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────
   WhatsApp FAB
───────────────────────────────────────────────────── */
#floatWa {
  position: fixed;
  bottom: 2rem;
  inset-inline-end: 1.6rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;

  /* Entrance: slide up after page loads */
  animation: waEnter 0.7s cubic-bezier(0.34,1.56,.64,1) 2s both;
}

@keyframes waEnter {
  from { transform: translateY(100px) scale(0.4); opacity: 0; }
  to   { transform: translateY(0)      scale(1);   opacity: 1; }
}

/* The circle icon */
#floatWa .wa-circle {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(145deg, #2ecc71, #128c7e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: #fff;
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.34,1.56,.64,1);
  box-shadow:
    0 8px 28px rgba(37,211,102,0.5),
    inset 0 1px 0 rgba(255,255,255,0.2);
  /* gentle bob */
  animation: waBob 3s ease-in-out 2.8s infinite;
}

@keyframes waBob {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* Ripple rings */
#floatWa .wa-circle::before,
#floatWa .wa-circle::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,0.55);
  animation: waRipple 2.4s ease-out 3s infinite;
}
#floatWa .wa-circle::after {
  animation-delay: 3.8s;
  border-color: rgba(37,211,102,0.3);
}

@keyframes waRipple {
  0%   { transform: scale(1);    opacity: 0.8; }
  100% { transform: scale(2.1);  opacity: 0; }
}

/* Notification dot */
#floatWa .wa-dot {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #ff4757;
  border: 2px solid #0d1b2e;
  animation: dotPop 0.5s cubic-bezier(0.34,1.56,.64,1) 2.8s both,
             dotBlink 2s ease-in-out 4s infinite;
}

@keyframes dotPop {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}
@keyframes dotBlink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

/* Label pill that slides out on hover */
#floatWa .wa-label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  background: linear-gradient(135deg, #2ecc71, #128c7e);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 30px 0 0 30px;
  padding: 0;
  margin-inline-end: -6px;
  order: -1; /* appears before the circle (RTL: after circle = inline-end) */
  transition:
    max-width   0.4s cubic-bezier(0.22,1,0.36,1),
    padding     0.4s cubic-bezier(0.22,1,0.36,1),
    box-shadow  0.3s ease;
  box-shadow: 0 8px 28px rgba(37,211,102,0);
}

[dir="rtl"] #floatWa .wa-label {
  border-radius: 0 30px 30px 0;
  margin-inline-end: 0;
  margin-inline-start: -6px;
  order: 1;
}

#floatWa:hover .wa-label {
  max-width: 160px;
  padding: 0 1.1rem 0 0.9rem;
  box-shadow: 0 8px 28px rgba(37,211,102,0.35);
}

#floatWa:hover .wa-circle {
  transform: scale(1.08);
  animation-play-state: paused;
}

/* ─────────────────────────────────────────────────────
   Scroll-to-Top FAB
───────────────────────────────────────────────────── */
#floatTop {
  position: fixed;
  bottom: 2rem;
  inset-inline-start: 1.6rem;
  z-index: 1000;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0;
  background: rgba(13, 27, 46, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(0,196,224,0.25);
  color: var(--cyan);
  font-size: 1.15rem;

  /* Hidden by default */
  opacity: 0;
  pointer-events: none;
  transform: translateY(30px) scale(0.7);
  transition:
    opacity    0.4s cubic-bezier(0.22,1,0.36,1),
    transform  0.4s cubic-bezier(0.34,1.56,.64,1),
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

/* SVG progress ring */
#floatTop .top-ring {
  position: absolute;
  inset: -3px;
  width: calc(100% + 6px);
  height: calc(100% + 6px);
  transform: rotate(-90deg);
}
#floatTop .top-ring circle {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
}
#floatTop .top-ring .track {
  stroke: rgba(0,196,224,0.1);
}
#floatTop .top-ring .fill {
  stroke: url(#topGrad);
  stroke-dasharray: 150;
  stroke-dashoffset: 150;
  transition: stroke-dashoffset 0.15s linear;
}

/* Visible state */
#floatTop.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

#floatTop:hover {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-color: transparent;
  color: #fff;
  transform: translateY(-5px) scale(1.06);
  box-shadow: 0 14px 36px rgba(26,86,219,0.5);
}

/* Arrow icon bounce on hover */
#floatTop .fa-chevron-up {
  transition: transform 0.3s cubic-bezier(0.34,1.56,.64,1);
  position: relative;
  z-index: 1;
}
#floatTop:hover .fa-chevron-up {
  transform: translateY(-3px);
}

/* Tooltip (shared) */
.fab-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(8,18,36,0.95);
  color: #e2e8f0;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  border: 1px solid rgba(0,196,224,0.18);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.fab-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(8,18,36,0.95);
}
#floatTop:hover .fab-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
[dir="rtl"] .fab-tooltip {
  left: auto;
  right: 50%;
  transform: translateX(50%) translateY(8px);
}
[dir="rtl"] .fab-tooltip::after {
  left: auto;
  right: 50%;
  transform: translateX(50%);
}
[dir="rtl"] #floatTop:hover .fab-tooltip {
  transform: translateX(50%) translateY(0);
}

/* ── Mobile ── */
@media (max-width: 480px) {
  #floatWa .wa-circle  { width: 52px; height: 52px; font-size: 1.5rem; }
  #floatWa             { bottom: 1.25rem; inset-inline-end: 1rem; }
  #floatTop            { width: 44px; height: 44px; bottom: 1.25rem; inset-inline-start: 1rem; font-size: 1rem; }
  .fab-tooltip         { display: none; }
  #floatWa .wa-label   { display: none; }
}
