﻿/* =========================================
   DigitalPath — ديجيتال باث
   Design System & Global Styles
   ========================================= */

/* --- Fonts loaded via <link> in HTML for better performance --- */

/* --- CSS Variables — DIGITAL PATH brand --- */
:root {
  /* Brand */
  --navy: #001B44;
  --navy-mid: #0A2A5C;
  --cyan: #00ADEF;
  --cyan-deep: #0090C4;

  /* Surfaces */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F3F8FC;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F7FBFE;
  --bg-glass: rgba(255, 255, 255, 0.72);
  --border-glass: rgba(0, 27, 68, 0.1);

  --accent-blue: #00ADEF;
  --accent-purple: #0077B6;
  --accent-cyan: #00ADEF;
  --accent-pink: #00ADEF;
  --accent-green: #00ADEF;
  --accent-orange: #0090C4;

  --gradient-primary: linear-gradient(135deg, #001B44 0%, #00ADEF 100%);
  --gradient-secondary: linear-gradient(135deg, #00ADEF 0%, #0A2A5C 100%);
  --gradient-accent: linear-gradient(135deg, #0A2A5C 0%, #00ADEF 100%);
  --gradient-warm: linear-gradient(135deg, #0090C4 0%, #00ADEF 100%);

  --text-primary: #001B44;
  --text-secondary: rgba(0, 27, 68, 0.72);
  --text-muted: rgba(0, 27, 68, 0.45);

  /* Typography */
  --font-main: 'Tajawal', 'Montserrat', sans-serif;
  --font-display: 'Montserrat', 'Tajawal', sans-serif;
  --fs-hero: clamp(1.65rem, 3.8vw, 2.65rem);
  --fs-h1: clamp(1.75rem, 3.2vw, 2.55rem);
  --fs-h2: clamp(1.35rem, 2.6vw, 2rem);
  --fs-h3: clamp(1.05rem, 1.8vw, 1.3rem);
  --fs-body: 1.05rem;
  --fs-small: 0.9rem;

  /* Spacing */
  --section-padding: clamp(60px, 10vw, 110px) clamp(16px, 5vw, 80px);
  --container-max: 1180px;
  --gap: 2rem;
  --radius: 16px;
  --radius-sm: 10px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  overflow-x: clip;
  min-height: 100vh;
  min-height: 100dvh;
  background-image:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(0, 173, 239, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(0, 27, 68, 0.05), transparent 50%);
  /* fixed attachment breaks scroll/performance on iOS — desktop only below */
  background-attachment: scroll;
}

@media (min-width: 993px) {
  body {
    background-attachment: fixed;
  }
}

/* Direction lock: Arabic RTL / English LTR */
html[dir="rtl"],
html[dir="rtl"] body {
  direction: rtl !important;
  text-align: right;
  --hover-x: -1;
}

html[dir="ltr"],
html[dir="ltr"] body {
  direction: ltr !important;
  text-align: left;
  --hover-x: 1;
}

html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select {
  direction: rtl !important;
  text-align: right !important;
}

html[dir="ltr"] input,
html[dir="ltr"] textarea,
html[dir="ltr"] select {
  direction: ltr !important;
  text-align: left !important;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  border: none;
  outline: none;
  cursor: pointer;
  font-family: var(--font-main);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible,
.lang-btn:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

input, textarea {
  font-family: var(--font-main);
  border: none;
  outline: none;
}

.skip-link {
  position: absolute;
  top: -100px;
  inset-inline-start: 16px;
  z-index: 10000;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1.1rem;
  border-radius: 10px;
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.mobile-only {
  display: none !important;
}

/* --- Container --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
  width: 100%;
}

/* --- Section Titles --- */
.section-header {
  text-align: center;
  margin-bottom: 3.25rem;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  background: rgba(0, 173, 239, 0.08);
  border: 1px solid rgba(0, 173, 239, 0.2);
  border-radius: 8px;
  font-size: var(--fs-small);
  color: var(--cyan-deep);
  margin-bottom: 1.2rem;
  font-weight: 600;
}

.section-badge i {
  font-size: 0.8rem;
}

.section-title {
  font-size: var(--fs-h1);
  font-weight: 800;
  margin-bottom: 0.85rem;
  line-height: 1.3;
  color: var(--navy);
  letter-spacing: -0.02em;
}

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

.section-desc {
  font-size: var(--fs-body);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* =========================================
   NAVBAR — Premium Agency Header
   ========================================= */
.navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: padding 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  background: transparent;
}

.navbar.scrolled {
  padding: 10px 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 10px 32px rgba(0, 27, 68, 0.07);
  border-bottom: 1px solid rgba(0, 27, 68, 0.05);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: 1180px;
  padding: 0.5rem 0.95rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(0, 27, 68, 0.07);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 27, 68, 0.07);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  position: relative;
}

.navbar .container::before {
  display: none;
}

.navbar.scrolled .container {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

/* Brand + links cluster (right side in RTL) */
.nav-cluster {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.nav-divider {
  width: 1px;
  height: 22px;
  background: linear-gradient(180deg, transparent, rgba(0, 27, 68, 0.18), transparent);
  flex-shrink: 0;
}

/* --- Logo --- */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-logo:hover {
  transform: translateY(-1px);
}

.nav-logo .logo-mark-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.nav-logo .logo-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.28em;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.nav-logo .lw-digital { color: var(--navy); }
.nav-logo .lw-path { color: var(--cyan); }

.nav-logo .logo-img,
.nav-logo .logo-icon,
.nav-logo > span:not(.logo-wordmark) {
  display: none;
}

.footer-brand .nav-logo {
  gap: 0;
}

.footer-brand .nav-logo .logo-mark-img,
.footer-brand .nav-logo .logo-wordmark {
  display: none;
}

.footer-brand .nav-logo .logo-img,
.footer-brand .nav-logo .logo-img--footer {
  display: block;
  height: 72px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  background: transparent;
  padding: 0;
  border-radius: 0;
  filter: none;
}

@media (max-width: 768px) {
  .nav-logo .logo-mark-img {
    width: 34px;
    height: 34px;
  }

  .nav-logo .logo-wordmark {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
  }

  .hero-logo {
    width: min(240px, 62vw) !important;
  }

  .hero {
    min-height: auto;
    padding: clamp(96px, 14vh, 120px) 0 3.25rem;
  }

  .hero-mark {
    width: min(70vw, 320px) !important;
    opacity: 0.08 !important;
  }

  .hero-title {
    font-size: clamp(1.45rem, 6.2vw, 1.9rem);
  }

  .hero-desc {
    font-size: 0.98rem;
    max-width: 34ch;
  }
}

@media (max-width: 400px) {
  .nav-logo .logo-wordmark {
    display: none;
  }

  .lang-btn {
    min-width: 30px;
    padding: 0.35rem 0.45rem;
  }
}

/* --- Nav Links --- */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  background: transparent;
  border: none;
  padding: 0;
  position: relative;
  z-index: 1;
}

.nav-links a {
  position: relative;
  font-size: 0.9rem;
  color: rgba(0, 27, 68, 0.65);
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  white-space: nowrap;
}

.nav-links a::after {
  display: none !important;
  content: none !important;
}

.nav-links a:hover {
  color: var(--navy);
  background: rgba(0, 173, 239, 0.08);
}

.nav-links a.active {
  color: var(--navy);
  background: rgba(0, 173, 239, 0.12);
  box-shadow: inset 0 0 0 1px rgba(0, 173, 239, 0.22);
}

/* --- Actions --- */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.lang-switch {
  display: flex;
  align-items: center;
  background: rgba(0, 27, 68, 0.04);
  border: 1px solid rgba(0, 27, 68, 0.1);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  min-width: 34px;
  padding: 0.4rem 0.62rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(0, 27, 68, 0.45);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-main);
  line-height: 1.2;
}

.lang-btn:hover {
  color: var(--navy);
}

.lang-btn.active {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 173, 239, 0.25);
}

.nav-cta {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.58rem 1.15rem !important;
  background: var(--cyan) !important;
  color: #fff !important;
  border-radius: 10px;
  font-weight: 700 !important;
  font-size: 0.84rem !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 6px 18px rgba(0, 173, 239, 0.35);
  border: none !important;
  white-space: nowrap;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  transform: translateY(-1px) !important;
  filter: brightness(1.05);
  box-shadow: 0 10px 26px rgba(0, 173, 239, 0.45) !important;
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
  border-radius: 10px;
  border: 1px solid rgba(0, 27, 68, 0.1);
  background: rgba(0, 27, 68, 0.03);
  position: relative;
  appearance: none;
  -webkit-appearance: none;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--navy);
  border-radius: 4px;
  transition: var(--transition-smooth);
  display: block;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}
/* =========================================
   HERO SECTION — Agency-grade brand stage
   ========================================= */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: clamp(110px, 12vh, 140px) 0 clamp(72px, 10vh, 100px);
  background:
    radial-gradient(ellipse 90% 70% at 50% -10%, rgba(0, 173, 239, 0.14), transparent 55%),
    linear-gradient(180deg, #FFFFFF 0%, #F5F9FC 48%, #EEF5FA 100%);
}

.hero-stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 27, 68, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 27, 68, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: float 12s ease-in-out infinite;
}

.hero-glow--a {
  width: 520px;
  height: 520px;
  background: rgba(0, 173, 239, 0.28);
  top: -12%;
  inset-inline-start: -8%;
}

.hero-glow--b {
  width: 460px;
  height: 460px;
  background: rgba(0, 27, 68, 0.14);
  bottom: -18%;
  inset-inline-end: -10%;
  animation-delay: -4s;
}

.hero-mark {
  position: absolute;
  top: 52%;
  left: 50%;
  width: min(58vw, 620px);
  transform: translate(-50%, -46%);
  opacity: 0.07;
  filter: saturate(1.1);
  animation: markPulse 8s ease-in-out infinite;
}

@keyframes markPulse {
  0%, 100% { opacity: 0.06; transform: translate(-50%, -46%) scale(1); }
  50% { opacity: 0.1; transform: translate(-50%, -48%) scale(1.03); }
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(20px, -18px) scale(1.04); }
  50% { transform: translate(-14px, 14px) scale(0.97); }
  75% { transform: translate(10px, 8px) scale(1.02); }
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.hero-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 1.6rem;
}

.hero-logo {
  width: min(340px, 78vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 22px 48px rgba(0, 119, 182, 0.18));
  animation: brandRise 1.05s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes brandRise {
  from { opacity: 0; transform: translateY(32px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-title {
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 1rem;
  animation: fadeInUp 0.55s ease-out 0.12s backwards;
  color: var(--navy);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  letter-spacing: -0.01em;
}

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

.hero-desc {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text-secondary);
  margin: 0 auto 2rem;
  max-width: 520px;
  line-height: 1.85;
  animation: fadeInUp 0.55s ease-out 0.2s backwards;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeInUp 0.55s ease-out 0.28s backwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 1.7rem;
  border-radius: 12px;
  font-size: 0.98rem;
  font-weight: 700;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--cyan);
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 173, 239, 0.32);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0, 173, 239, 0.42);
  filter: brightness(1.04);
}

.btn-primary i {
  transition: transform 0.25s ease;
}

html[dir="rtl"] .btn-primary:hover i {
  transform: translateX(-4px);
}

html[dir="ltr"] .btn-primary:hover i {
  transform: translateX(4px);
}

html[dir="ltr"] .btn-primary .fa-arrow-left,
html[dir="ltr"] .preview-arrow .fa-arrow-left {
  transform: scaleX(-1);
}

html[dir="ltr"] .btn-primary:hover .fa-arrow-left {
  transform: scaleX(-1) translateX(4px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.85);
  color: var(--navy);
  border: 1px solid rgba(0, 27, 68, 0.12);
  box-shadow: 0 6px 18px rgba(0, 27, 68, 0.05);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: #fff;
  border-color: rgba(0, 173, 239, 0.45);
  transform: translateY(-3px);
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 22px;
  height: 36px;
  border: 1.5px solid rgba(0, 27, 68, 0.2);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.hero-scroll span {
  width: 3px;
  height: 8px;
  border-radius: 3px;
  background: var(--cyan);
  animation: scrollDot 1.6s ease-in-out infinite;
}

@keyframes scrollDot {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 0; transform: translateY(0); }
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  justify-content: center;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  min-width: 110px;
}

.stat-number {
  font-size: 1.85rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  font-family: var(--font-display);
}

.stat-label {
  font-size: var(--fs-small);
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.stats-strip {
  padding: 2rem 0 2.75rem;
  background: #fff;
  border-bottom: 1px solid rgba(0, 27, 68, 0.06);
  position: relative;
}

.stats-strip::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(280px, 50%);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

/* =========================================
   SERVICES SECTION
   ========================================= */
.services {
  padding: var(--section-padding);
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--gap);
}

.service-card {
  background: var(--bg-card);
  border: 1px solid rgba(0, 27, 68, 0.08);
  border-radius: var(--radius);
  padding: 2.25rem 1.85rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  box-shadow: 0 8px 28px rgba(0, 27, 68, 0.04);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--card-gradient, var(--gradient-primary));
  opacity: 0;
  transition: var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: rgba(0, 173, 239, 0.35);
  box-shadow: 0 18px 48px rgba(0, 27, 68, 0.1);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  position: relative;
  background: var(--icon-bg, rgba(0, 173, 239, 0.1));
  color: var(--icon-color, var(--accent-blue));
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(-5deg);
}

.service-card:nth-child(1) {
  --card-gradient: var(--gradient-primary);
  --icon-bg: rgba(0, 173, 239, 0.12);
  --icon-color: var(--accent-blue);
}

.service-card:nth-child(2) {
  --card-gradient: var(--gradient-secondary);
  --icon-bg: rgba(0, 173, 239, 0.12);
  --icon-color: var(--accent-cyan);
}

.service-card:nth-child(3) {
  --card-gradient: var(--gradient-accent);
  --icon-bg: rgba(0, 119, 182, 0.12);
  --icon-color: var(--accent-purple);
}

.service-card:nth-child(4) {
  --card-gradient: var(--gradient-warm);
  --icon-bg: rgba(0, 144, 196, 0.12);
  --icon-color: var(--accent-orange);
}

.service-title {
  font-size: var(--fs-h3);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.service-desc {
  font-size: var(--fs-body);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-small);
  color: var(--text-secondary);
}

.service-features li i {
  color: var(--accent-green);
  font-size: 0.75rem;
}

/* =========================================
   PLATFORMS SECTION
   ========================================= */
.platforms {
  padding: var(--section-padding);
  position: relative;
  background: var(--bg-secondary);
}

.platforms::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glass), transparent);
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
}

.platform-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.platform-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, var(--platform-glow, rgba(0,173,239,0.05)), transparent 70%);
  opacity: 0;
  transition: var(--transition-smooth);
}

.platform-card:hover {
  transform: translateY(-8px);
  border-color: var(--platform-color, var(--accent-blue));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.platform-card:hover::after {
  opacity: 1;
}

.platform-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
  background: var(--platform-bg, rgba(0, 173, 239, 0.1));
  color: var(--platform-color, var(--accent-blue));
  transition: var(--transition-smooth);
}

.platform-card:hover .platform-logo {
  transform: scale(1.1);
}

.platform-card:nth-child(1) {
  --platform-color: #6c5ce7;
  --platform-bg: rgba(108, 92, 231, 0.12);
  --platform-glow: rgba(108, 92, 231, 0.08);
}
.platform-card:nth-child(2) {
  --platform-color: #00b894;
  --platform-bg: rgba(0, 184, 148, 0.12);
  --platform-glow: rgba(0, 184, 148, 0.08);
}
.platform-card:nth-child(3) {
  --platform-color: #95bf47;
  --platform-bg: rgba(149, 191, 71, 0.12);
  --platform-glow: rgba(149, 191, 71, 0.08);
}

.platform-name {
  font-size: var(--fs-h3);
  font-weight: 700;
  margin-bottom: 0.6rem;
  position: relative;
  z-index: 1;
}

.platform-desc {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

/* =========================================
   WHY CHOOSE US SECTION
   ========================================= */
.why-us {
  padding: var(--section-padding);
  position: relative;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--gap);
}

.why-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid rgba(0, 27, 68, 0.08);
  border-radius: var(--radius);
  transition: var(--transition-smooth);
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 27, 68, 0.04);
}

.why-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: rgba(0, 173, 239, 0.28);
  box-shadow: 0 16px 40px rgba(0, 27, 68, 0.1);
}

.why-icon {
  width: 65px;
  height: 65px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: var(--gradient-primary);
  color: #fff;
  position: relative;
}

.why-icon::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--gradient-primary);
  opacity: 0.2;
  z-index: -1;
  transition: var(--transition-smooth);
}

.why-card:hover .why-icon::after {
  inset: -8px;
  opacity: 0.3;
}

.why-title {
  font-size: var(--fs-h3);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.why-desc {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  line-height: 1.8;
}

/* =========================================
   PROCESS / STEPS SECTION
   ========================================= */
.process {
  padding: var(--section-padding);
  background: var(--bg-secondary);
  position: relative;
}

.process::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glass), transparent);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  position: relative;
}

.step-card {
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
}

.step-number {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 1;
}

.step-number::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px dashed rgba(0, 173, 239, 0.3);
  animation: rotate 15s linear infinite;
}

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

.step-title {
  font-size: var(--fs-h3);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* =========================================
   CONTACT SECTION
   ========================================= */
.contact {
  padding: var(--section-padding);
  position: relative;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info {
  padding: 2rem 0;
}

.contact-info h3 {
  font-size: var(--fs-h2);
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
}

.contact-method:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-blue);
  transform: translateX(calc(var(--hover-x, -1) * 5px));
}

.contact-method .method-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-method:nth-child(1) .method-icon {
  background: rgba(37, 211, 102, 0.12);
  color: #25d366;
}
.contact-method:nth-child(2) .method-icon {
  background: rgba(0, 173, 239, 0.12);
  color: var(--accent-blue);
}
.contact-method:nth-child(3) .method-icon {
  background: rgba(0, 27, 68, 0.08);
  color: var(--navy);
}

.method-label {
  font-size: var(--fs-small);
  color: var(--text-muted);
}

.method-value {
  font-weight: 600;
  font-size: 0.95rem;
}

/* Contact Form */
.contact-form {
  background: #fff;
  border: 1px solid rgba(0, 27, 68, 0.08);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: 0 12px 40px rgba(0, 27, 68, 0.06);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: var(--fs-small);
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: #F7FBFE;
  border: 1px solid rgba(0, 27, 68, 0.12);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 1rem;
  direction: inherit;
  text-align: start;
  transition: var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 173, 239, 0.15);
  background: #fff;
}

.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

.form-submit {
  width: 100%;
  padding: 1rem;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 173, 239, 0.4);
}

.form-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: var(--transition-fast);
}

.form-submit:hover::before {
  opacity: 1;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  padding: 3.5rem 0 2rem;
  background: var(--navy);
  border-top: none;
  color: rgba(255, 255, 255, 0.85);
}

.footer .nav-logo .logo-img {
  filter: none;
  background: transparent;
  border-radius: 0;
  padding: 0;
}

#particles-canvas {
  opacity: 0.22;
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo,
  .hero-mark,
  .hero-glow,
  .hero-scroll span {
    animation: none !important;
  }
}

.footer-about,
.footer-nav a,
.footer-contact-info a,
.footer-copy,
.footer-nav h4,
.footer-contact-info h4 {
  color: rgba(255, 255, 255, 0.72) !important;
}

.footer-nav h4,
.footer-contact-info h4 {
  color: #fff !important;
}

.footer-nav a:hover,
.footer-contact-info a:hover {
  color: var(--cyan) !important;
}

.footer-social a {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: rgba(255, 255, 255, 0.8) !important;
}

.footer-social a:hover {
  background: var(--cyan) !important;
  color: #fff !important;
  border-color: transparent !important;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  padding-top: 1.25rem;
}

.footer .container {
  display: block;
}

.footer-main {
  border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

.footer-copy {
  font-size: var(--fs-small);
  color: var(--text-muted);
}

.footer-copy .heart {
  color: var(--accent-pink);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: var(--fs-small);
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

.footer-social {
  display: flex;
  gap: 0.8rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.footer-social a:hover {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
}

/* =========================================
   SCROLL ANIMATIONS
   ========================================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Floating Particles Canvas */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* Scroll to Top Button */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  inset-inline-start: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 20px rgba(0, 173, 239, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition-smooth);
  z-index: 999;
  cursor: pointer;
  border: none;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 173, 239, 0.6);
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */

/* Tablet + mobile: drawer nav (starts earlier so links don't overflow) */
@media (max-width: 992px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: 2rem;
  }

  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 27, 68, 0.45);
    z-index: 1200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .nav-links {
    position: fixed !important;
    top: 0;
    inset-inline-end: 0;
    inset-inline-start: auto;
    width: min(300px, 86vw);
    height: 100%;
    height: 100dvh;
    max-height: 100dvh;
    background: #ffffff;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: calc(5.25rem + env(safe-area-inset-top, 0px)) 1.15rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
    gap: 0.3rem;
    z-index: 1250;
    border-radius: 0;
    border-inline-start: 1px solid rgba(0, 27, 68, 0.08);
    box-shadow: -16px 0 48px rgba(0, 27, 68, 0.14);
    display: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .nav-links.active {
    display: flex !important;
  }

  .mobile-only {
    display: flex !important;
    margin-top: 0.75rem;
    justify-content: center;
    padding: 0.9rem 1rem !important;
    background: var(--cyan) !important;
    color: #fff !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
  }

  .nav-toggle {
    display: flex;
    order: 2;
    min-width: 44px;
    min-height: 44px;
    flex-shrink: 0;
    z-index: 1301;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .nav-links a {
    font-size: 1.05rem;
    padding: 0.95rem 1rem;
    border-radius: 12px;
    text-align: start;
    white-space: normal;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a.active {
    background: rgba(0, 173, 239, 0.16);
  }

  .nav-cluster {
    order: 1;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    gap: 0;
    margin-inline-start: 0;
  }

  .nav-divider {
    display: none;
  }

  .nav-actions {
    display: flex;
    gap: 0.35rem;
    order: 3;
    margin-inline-start: 0;
    flex-shrink: 0;
  }

  .nav-actions .nav-cta {
    display: none !important;
  }

  .navbar {
    padding: max(8px, env(safe-area-inset-top, 0px)) 0 8px;
    z-index: 1300;
  }

  .navbar .container {
    gap: 0.4rem;
    border-radius: 14px;
    padding: 0.4rem 0.5rem;
    max-width: calc(100% - 16px);
    width: calc(100% - 16px);
  }

  body.nav-open {
    overflow: hidden;
  }

  .whatsapp-float {
    width: 52px;
    height: 52px;
    font-size: 1.45rem;
  }

  .scroll-top {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 768px) {
  .hero-stats {
    flex-wrap: wrap;
    gap: 1.25rem;
    justify-content: center;
  }

  .stat-item {
    flex: 1 1 40%;
    min-width: 0;
    max-width: 160px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .platforms-grid {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps {
    grid-template-columns: 1fr 1fr;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 360px;
    margin-inline: auto;
  }

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

  .btn {
    justify-content: center;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .work-body {
    padding: 1.1rem 1rem 1.25rem;
  }

  .work-body h3 {
    font-size: 1.05rem;
  }

  .work-body p {
    font-size: 0.88rem;
    line-height: 1.65;
  }
}

@media (max-width: 480px) {
  .why-grid {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .footer .container {
    flex-direction: column;
    text-align: center;
  }

  .contact-form {
    padding: 1.25rem;
  }

  .platform-detail-header {
    flex-direction: column;
    text-align: center;
  }

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

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

  .comparison-table-wrapper {
    font-size: 0.8rem;
    margin-inline: -8px;
    padding-inline: 8px;
  }

  .work-brand {
    font-size: 0.82rem;
    letter-spacing: 0.12em;
  }

  .work-visual {
    height: 120px;
  }

  .faq-item summary {
    font-size: 0.95rem;
    padding: 1rem 1.1rem;
    min-height: 48px;
  }
}

/* =========================================
   WHATSAPP FLOATING BUTTON
   ========================================= */
.whatsapp-float {
  direction: ltr !important;
  position: fixed !important;
  bottom: 30px !important;
  left: 20px !important;
  right: auto !important;
  inset: unset !important;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.8rem;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: var(--transition-smooth);
  animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7); }
}

/* =========================================
   ENHANCED FOOTER SOCIAL ICONS
   ========================================= */
.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.footer-social a:hover {
  transform: translateY(-3px);
  color: #fff;
}

.footer-social a:nth-child(1):hover {
  background: #000;
  border-color: #333;
}

.footer-social a:nth-child(2):hover {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  border-color: transparent;
}

.footer-social a:nth-child(3):hover {
  background: #0077b5;
  border-color: #0077b5;
}

.footer-social a:nth-child(4):hover {
  background: #fffc00;
  border-color: #fffc00;
  color: #000;
}

/* =========================================
   CLIENTS / TRUST STRIP
   ========================================= */
.trust-strip {
  padding: clamp(28px, 4vw, 44px) 0;
  text-align: center;
  border-bottom: 1px solid rgba(0, 27, 68, 0.06);
  background: var(--bg-secondary);
}

.trust-title {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  font-family: var(--font-display);
}

.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem 2rem;
  flex-wrap: wrap;
}

.trust-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.15rem;
  color: var(--text-muted);
  opacity: 0.72;
  transition: var(--transition-smooth);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.trust-logo i {
  font-size: 1.35rem;
  color: var(--navy);
  opacity: 0.55;
}

.trust-logo span {
  font-size: 0.85rem;
}

.trust-logo:hover {
  opacity: 1;
  color: var(--navy);
}

.trust-logo:hover i {
  color: var(--cyan);
  opacity: 1;
}

/* =========================================
   IMPROVED FORM INPUTS
   ========================================= */
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent-blue) !important;
  box-shadow: 0 0 0 3px rgba(0, 173, 239, 0.15);
}

.contact-form label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
  display: block;
}

/* =========================================
   IMPROVED STEP NUMBERS
   ========================================= */
.step-number {
  background: var(--gradient-primary) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* =========================================
   MULTI-PAGE ADDITIONS
   ========================================= */

/* --- Gradient Text Inline (for logo) --- */
.gradient-text-inline {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}



/* --- Page Header (for sub-pages) --- */
.page-header {
  padding: clamp(130px, 16vh, 180px) 0 clamp(60px, 8vh, 80px);
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0, 173, 239, 0.1), transparent 60%),
    linear-gradient(180deg, #F3F8FC 0%, #FFFFFF 100%);
}

.page-header::after {
  content: '';
  position: absolute;
  top: 58%;
  left: 50%;
  width: min(420px, 70vw);
  height: min(260px, 40vw);
  transform: translate(-50%, -50%);
  background: url('assets/logo-mark.svg') center / contain no-repeat;
  opacity: 0.06;
  pointer-events: none;
}

.page-header .hero-bg {
  display: none;
}

.page-header-content {
  position: relative;
  z-index: 2;
}

.page-header-title {
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  animation: fadeInUp 0.45s ease-out;
  color: var(--navy);
}

.page-header-desc {
  font-size: var(--fs-body);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  animation: fadeInUp 0.4s ease-out 0.06s backwards;
}

/* --- Services Preview Cards (Homepage) --- */
.services-preview {
  padding: clamp(40px, 6vw, 80px) 0;
  position: relative;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.preview-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid rgba(0, 27, 68, 0.08);
  border-radius: var(--radius);
  transition: var(--transition-smooth);
  position: relative;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 24px rgba(0, 27, 68, 0.04);
}

.preview-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: rgba(0, 173, 239, 0.3);
  box-shadow: 0 16px 40px rgba(0, 27, 68, 0.1);
}

.preview-icon {
  width: 65px;
  height: 65px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1rem;
  background: var(--icon-bg, rgba(0, 173, 239, 0.12));
  color: var(--icon-color, var(--accent-blue));
  transition: var(--transition-smooth);
}

.preview-card:hover .preview-icon {
  transform: scale(1.1) rotate(-5deg);
}

.preview-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.preview-card p {
  font-size: var(--fs-small);
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.preview-arrow {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.preview-card:hover .preview-arrow {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #fff;
  transform: translateX(calc(var(--hover-x, -1) * 5px));
}

/* --- Home Process / Testimonials / FAQ / Work --- */
.work-section {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.35rem;
}

@media (min-width: 1100px) {
  .work-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.work-card {
  background: #fff;
  border: 1px solid rgba(0, 27, 68, 0.07);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 27, 68, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

a.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 27, 68, 0.08);
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 27, 68, 0.08);
}

.work-visual {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: #fff;
}

.work-visual--salla { background: linear-gradient(135deg, #004D40, #00A884); }
.work-visual--corp { background: linear-gradient(135deg, #001B44, #0A2A5C); }
.work-visual--zid { background: linear-gradient(135deg, #4A3AFF, #7B6CFF); }
.work-visual--platinum {
  background:
    radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.35), transparent 45%),
    linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 45%, #0f0f0f 100%);
}

.work-visual--hafilah {
  background:
    radial-gradient(circle at 20% 80%, rgba(0, 173, 239, 0.25), transparent 45%),
    linear-gradient(135deg, #0A2A5C 0%, #001B44 55%, #003366 100%);
}

.work-visual--mazaj {
  background:
    radial-gradient(circle at 75% 30%, rgba(255, 255, 255, 0.12), transparent 40%),
    linear-gradient(135deg, #5B2C6F 0%, #1A0B2E 50%, #2E1A47 100%);
}

.work-visual--jazira {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 80, 50, 0.28), transparent 45%),
    linear-gradient(135deg, #1a1a1a 0%, #2a1210 50%, #0d0d0d 100%);
}

.work-visual--chinese {
  background:
    radial-gradient(circle at 70% 25%, rgba(200, 16, 46, 0.35), transparent 48%),
    linear-gradient(135deg, #0d1b2a 0%, #1b2838 45%, #0a1628 100%);
}

.work-visual--almasa {
  background:
    radial-gradient(circle at 25% 30%, rgba(228, 181, 93, 0.4), transparent 48%),
    linear-gradient(135deg, #1a1410 0%, #2c2118 50%, #0f0c09 100%);
}

.work-brand {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.22em;
  font-size: 1.05rem;
  color: #E8D5A3;
}

.work-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.7rem;
}

.work-meta .work-tag {
  margin-bottom: 0;
}

.work-live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #0a7a45;
  background: rgba(16, 185, 129, 0.12);
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
}

.work-live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  animation: pulse 2s ease-in-out infinite;
}

.work-link {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--cyan-deep);
}

a.work-card:hover .work-link {
  color: var(--navy);
}

.work-body {
  padding: 1.35rem 1.35rem 1.5rem;
}

.work-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cyan-deep);
  background: rgba(0, 173, 239, 0.1);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  margin-bottom: 0.7rem;
}

.work-body h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.45rem;
}

.work-body p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.work-cta {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.stat-plus {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-inline-start: 1px;
}

.service-cta,
.platform-cta {
  display: inline-flex;
  align-items: center;
  margin-top: 1.35rem;
  font-weight: 700;
  color: var(--cyan-deep);
  gap: 0.4rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.service-cta:hover,
.platform-cta:hover {
  color: var(--navy);
  transform: translateX(calc(var(--hover-x, -1) * 4px));
}

.service-cta::after,
.platform-cta::after {
  content: '←';
}

html[dir="ltr"] .service-cta::after,
html[dir="ltr"] .platform-cta::after {
  content: '→';
}

.home-process {
  padding: var(--section-padding);
  background: #fff;
}

.home-process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.home-step {
  padding: 1.6rem 1.25rem 1.7rem;
  border-top: 2px solid rgba(0, 173, 239, 0.35);
  background: linear-gradient(180deg, rgba(0, 173, 239, 0.04), transparent 55%);
}

.home-step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 0.9rem;
}

.home-step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.55rem;
}

.home-step p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.testimonials {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.testimonial {
  background: #fff;
  border: 1px solid rgba(0, 27, 68, 0.07);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 27, 68, 0.04);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.testimonial-stars {
  color: #F5B301;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

.testimonial > p {
  color: var(--text-secondary);
  line-height: 1.85;
  font-size: 0.98rem;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-display);
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  color: var(--navy);
  font-size: 0.95rem;
}

.testimonial-author span {
  display: block;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 0.15rem;
}

.faq-section {
  padding: var(--section-padding);
  background: #fff;
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid rgba(0, 27, 68, 0.08);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item[open] {
  border-color: rgba(0, 173, 239, 0.35);
  box-shadow: 0 10px 28px rgba(0, 27, 68, 0.05);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 1.35rem;
  font-weight: 700;
  color: var(--navy);
  position: relative;
  padding-inline-end: 3rem;
  line-height: 1.5;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  inset-inline-end: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(0, 173, 239, 0.1);
  color: var(--cyan-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: '−';
  background: var(--cyan);
  color: #fff;
}

.faq-item p {
  padding: 0 1.35rem 1.25rem;
  color: var(--text-secondary);
  line-height: 1.85;
  font-size: 0.98rem;
}

.form-note {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 992px) {
  .home-process-grid,
  .testimonials-grid,
  .work-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .home-process-grid,
  .testimonials-grid,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .preview-grid {
    grid-template-columns: 1fr !important;
  }

  .trust-logos {
    gap: 0.85rem 1.25rem;
  }

  .cta-box {
    flex-direction: column;
    text-align: center;
    padding: 1.75rem 1.25rem;
  }
}

/* --- CTA Section --- */
.cta-section {
  padding: clamp(40px, 6vw, 80px) 0;
}

.cta-box {
  background: linear-gradient(135deg, #001B44 0%, #0A2A5C 55%, #0077B6 100%);
  border: none;
  border-radius: 20px;
  padding: clamp(2.2rem, 5vw, 3.25rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  overflow: hidden;
  color: #fff;
  box-shadow: 0 24px 60px rgba(0, 27, 68, 0.28);
}

.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 88% 18%, rgba(0, 173, 239, 0.38), transparent 42%),
    radial-gradient(circle at 8% 88%, rgba(0, 173, 239, 0.16), transparent 35%);
  pointer-events: none;
}

.cta-box::after {
  content: '';
  position: absolute;
  inset-inline-end: -2%;
  top: 50%;
  width: min(280px, 40%);
  height: 70%;
  transform: translateY(-50%);
  background: url('assets/logo-mark.svg') center / contain no-repeat;
  opacity: 0.12;
  filter: brightness(2);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.78);
}

.cta-box .btn-primary {
  position: relative;
  z-index: 1;
  background: #fff;
  color: var(--navy);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.cta-box .btn-primary:hover {
  filter: none;
  background: var(--cyan);
  color: #fff;
}

/* --- Platform Detail Cards --- */
.platforms-detail {
  padding: clamp(40px, 6vw, 80px) 0;
}

.platform-detail-card {
  background: var(--bg-card);
  border: 1px solid rgba(0, 27, 68, 0.08);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin-bottom: 2rem;
  transition: var(--transition-smooth);
  box-shadow: 0 8px 28px rgba(0, 27, 68, 0.04);
}

.platform-detail-card:hover {
  border-color: rgba(0, 173, 239, 0.28);
  box-shadow: 0 16px 40px rgba(0, 27, 68, 0.1);
}

.platform-detail-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-glass);
}

.platform-logo-large {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
  background: var(--platform-bg, rgba(0, 173, 239, 0.12));
  color: var(--platform-color, var(--accent-blue));
}

.platform-detail-name {
  font-size: var(--fs-h2);
  font-weight: 700;
}

.platform-detail-tagline {
  font-size: var(--fs-small);
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.platform-detail-desc {
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 2rem;
  font-size: var(--fs-body);
}

.platform-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.platform-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  font-size: var(--fs-small);
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.platform-feature:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(0, 173, 239, 0.2);
}

.platform-feature i {
  color: var(--accent-cyan);
  font-size: 1rem;
}

/* --- Comparison Table --- */
.comparison {
  padding: clamp(40px, 6vw, 80px) 0;
  background: var(--bg-secondary);
}

.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border-glass);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border-glass);
}

.comparison-table th {
  background: rgba(0, 173, 239, 0.08);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  position: sticky;
  inset-inline-start: 0;
  background: #fff;
  z-index: 1;
  box-shadow: 4px 0 12px rgba(0, 27, 68, 0.04);
  text-align: start;
}
  font-weight: 600;
}

.comparison-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.comparison-table th i {
  margin-inline-start: 0.3rem;
}

.star-gold {
  color: #0090C4;
  font-size: 0.7rem;
  margin: 0 1px;
}

.badge-yes {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-mid {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  background: rgba(0, 144, 196, 0.15);
  color: var(--accent-orange);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* --- About Section --- */
.about-section {
  padding: clamp(40px, 6vw, 80px) 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-text h2 {
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 1rem;
}

.about-local {
  margin-top: 0.5rem;
  padding: 0.9rem 1rem;
  background: rgba(0, 173, 239, 0.06);
  border-inline-start: 3px solid var(--cyan);
  border-radius: 0 10px 10px 0;
  font-weight: 600;
  color: var(--navy) !important;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.value-card {
  background: var(--bg-card);
  border: 1px solid rgba(0, 27, 68, 0.08);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition-smooth);
  box-shadow: 0 8px 24px rgba(0, 27, 68, 0.04);
}

.value-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 173, 239, 0.28);
  box-shadow: 0 14px 36px rgba(0, 27, 68, 0.1);
}

.value-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 1rem;
}

.value-card h3 {
  font-size: var(--fs-h3);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.value-card p {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Enhanced Footer (Multi-column) --- */
.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-glass);
}

.footer-brand .nav-logo {
  margin-bottom: 1rem;
}

.footer-about {
  font-size: var(--fs-small);
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-nav h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.footer-nav a {
  font-size: var(--fs-small);
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--accent-cyan);
  padding-inline-end: 5px;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-contact-info h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.footer-contact-info a {
  font-size: var(--fs-small);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

.footer-contact-info a:hover {
  color: var(--accent-cyan);
}

.footer-contact-info .footer-social {
  margin-top: 0.5rem;
}

.footer-bottom {
  text-align: center;
}

/* --- Footer Responsive --- */
@media (max-width: 992px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .footer-main {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-nav a:hover {
    padding-inline-end: 0;
  }

  .footer-contact-info a {
    justify-content: center;
  }

  .footer-brand .nav-logo {
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }

  .cta-box {
    flex-direction: column;
    text-align: center;
  }

  .preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .platform-detail-header {
    flex-direction: column;
    text-align: center;
  }

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

  .comparison-table th,
  .comparison-table td {
    padding: 0.7rem 0.8rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .preview-grid {
    grid-template-columns: 1fr;
  }

  .platform-features-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   LTR / EN layout fixes
   ========================================= */
html[dir="ltr"] { --hover-x: 1; }
html[dir="rtl"] { --hover-x: -1; }

html[dir="ltr"] .hero-content { text-align: start; }
html[dir="ltr"] .hero-actions,
html[dir="ltr"] .hero-stats { justify-content: flex-start; }

html[dir="ltr"] .btn,
html[dir="ltr"] .form-submit,
html[dir="ltr"] .nav-cta { flex-direction: row; }

html[dir="ltr"] .preview-arrow i { transform: scaleX(-1); }

html[dir="ltr"] .footer-contact-info,
html[dir="ltr"] .footer-nav,
html[dir="ltr"] .footer-brand,
html[dir="ltr"] .about-text,
html[dir="ltr"] .contact-info,
html[dir="ltr"] .form-group,
html[dir="ltr"] .platform-detail-body,
html[dir="ltr"] .service-card,
html[dir="ltr"] .why-card,
html[dir="ltr"] .step-card,
html[dir="ltr"] .value-card { text-align: start; }

html[dir="ltr"] .footer-social { justify-content: flex-start; }

html[dir="ltr"] .section-header,
html[dir="ltr"] .page-header-content { text-align: center; }

html[dir="ltr"] .preview-card,
html[dir="ltr"] .stat-item { text-align: center; }



html[dir="ltr"] .scroll-top {
  inset-inline-start: auto;
  inset-inline-end: 2rem;
  bottom: 6.5rem;
}



html[dir="rtl"] .scroll-top {
  inset-inline-start: 2rem;
  inset-inline-end: auto;
}

html[dir="ltr"] .reveal { transform: translateX(-24px); }
html[dir="ltr"] .reveal.active { transform: translateX(0); }
html[dir="rtl"] .reveal { transform: translateX(24px); }
html[dir="rtl"] .reveal.active { transform: translateX(0); }

@media (max-width: 768px) {
  html[dir="ltr"] .hero-content,
  html[dir="rtl"] .hero-content { text-align: center; }

  html[dir="ltr"] .hero-actions,
  html[dir="rtl"] .hero-actions,
  html[dir="ltr"] .hero-stats,
  html[dir="rtl"] .hero-stats { justify-content: center; }

  html[dir="ltr"] .hero-desc,
  html[dir="rtl"] .hero-desc { margin-inline: auto; }

  html[dir="ltr"] .btn,
  html[dir="rtl"] .btn {
    justify-content: center;
    width: 100%;
  }
}

html[dir="ltr"] .nav-links a {
  padding-inline: 0.85rem;
  font-size: 0.82rem;
}

html[dir="ltr"] .page-header-title,
html[dir="ltr"] .hero-title,
html[dir="rtl"] .page-header-title,
html[dir="rtl"] .hero-title {
  overflow-wrap: anywhere;
  word-break: break-word;
}

html[dir="ltr"] .contact-info,
html[dir="ltr"] .contact-form {
  direction: ltr;
}

html[dir="rtl"] .contact-info,
html[dir="rtl"] .contact-form {
  direction: rtl;
}

html[dir="ltr"] .form-group label,
html[dir="ltr"] .method-label,
html[dir="ltr"] .method-value {
  text-align: left;
}

html[dir="rtl"] .form-group label,
html[dir="rtl"] .method-label,
html[dir="rtl"] .method-value {
  text-align: right;
}

/* =========================================
   Performance helpers
   ========================================= */
.services-preview,
.trust-strip,
.cta-section,
.about-section,
.why-us,
.process,
.services-detail,
.platforms-detail,
.contact-section,
.footer {
  content-visibility: auto;
  contain-intrinsic-size: 1px 600px;
}

#particles-canvas {
  contain: strict;
  will-change: auto;
}

@media (max-width: 992px) {
  .navbar,
  .hero-badge,
  .btn-secondary,
  .preview-card,
  .service-card,
  .cta-box,
  .nav-links,
  .services-preview,
  .trust-strip,
  .cta-section,
  .about-section,
  .why-us,
  .process,
  .services-detail,
  .platforms-detail,
  .contact-section,
  .footer {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .services-preview,
  .trust-strip,
  .cta-section,
  .about-section,
  .why-us,
  .process,
  .services-detail,
  .platforms-detail,
  .contact-section,
  .footer {
    content-visibility: visible;
    contain-intrinsic-size: auto;
  }

  #particles-canvas {
    display: none !important;
  }

  .orb {
    display: none;
  }

  main {
    padding-bottom: 4.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  #particles-canvas {
    display: none !important;
  }
}

/* WHATSAPP FORCE LEFT */
a.whatsapp-float,
.whatsapp-float {
  direction: ltr !important;
  position: fixed !important;
  left: max(16px, env(safe-area-inset-left, 16px)) !important;
  right: auto !important;
  bottom: max(22px, env(safe-area-inset-bottom, 22px)) !important;
  inset-inline: unset !important;
  margin: 0 !important;
  transform: none !important;
  z-index: 999 !important;
}

.scroll-top {
  bottom: max(86px, calc(env(safe-area-inset-bottom, 0px) + 86px)) !important;
  inset-inline-start: max(16px, env(safe-area-inset-left, 16px)) !important;
}