/* ============================================================
   BASE.CSS — CSS Variables, Reset, Fonts, Utilities
   ============================================================ */

:root {
  --bg-dark:      #070f1e;
  --bg-card:      #0f2138;
  --primary:      #0980d6;
  --primary-light:#38bdf8;
  --accent:       #06c6b2;
  --accent-glow:  rgba(6,198,178,0.3);
  --text-main:    #f8fafc;
  --text-muted:   #94a3b8;
  --text-dark:    #0f172a;
  --border-color: rgba(255,255,255,0.1);
  --card-light:   #ffffff;
  --font-en:      'Outfit', sans-serif;
  --font-ar:      'Tajawal', sans-serif;
  --radius-sm:    10px;
  --radius-md:    16px;
  --radius-lg:    24px;
  --radius-xl:    32px;
  --transition:   0.3s ease;
}

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

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

body {
  font-family: var(--font-en);
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Arabic font override — preserving FontAwesome icons */
[dir="rtl"],
[dir="rtl"] body {
  font-family: var(--font-ar);
  line-height: 1.65;
}

[dir="rtl"] *:not(.fa-solid):not(.fa-brands):not(.fa-regular):not(.fa-v4-font-face-style):not(i) {
  font-family: var(--font-ar);
  letter-spacing: 0;
}

/* Ensure FontAwesome icons ALWAYS retain icon font */
i.fa-solid, i.fa-brands, i.fa-regular,
.fa-solid, .fa-brands, .fa-regular {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
}

/* Force LTR direction & left alignment for numbers, emails, and technical strings */
.ltr-text,
[dir="rtl"] .ltr-text,
a[href^="tel:"],
a[href^="mailto:"] {
  direction: ltr !important;
  unicode-bidi: embed !important;
  display: inline-block;
  text-align: left !important;
}

/* Tajawal font vertical optical baseline alignment */
[dir="rtl"] button span,
[dir="rtl"] .btn-primary span,
[dir="rtl"] .btn-secondary span,
[dir="rtl"] .btn-cta-nav span,
[dir="rtl"] .hero-badge span,
[dir="rtl"] .pillar-tag,
[dir="rtl"] .download-badge,
[dir="rtl"] .security-badge span,
[dir="rtl"] .persona-role-badge span,
[dir="rtl"] .module-chip span,
[dir="rtl"] .persona-action-btn span {
  display: inline-block;
  transform: translateY(1.5px);
}

/* Ambient glows — fixed behind everything */
.glow-bg {
  position: fixed;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(9,128,214,0.22) 0%, transparent 70%);
  top: -150px; left: -150px;
  pointer-events: none; z-index: 0;
}
.glow-bg-right {
  position: fixed;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6,198,178,0.18) 0%, transparent 70%);
  bottom: -100px; right: -100px;
  pointer-events: none; z-index: 0;
}

/* Container */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Section spacing */
section { padding: 90px 0; }

/* Section headings */
.section-title {
  text-align: center;
  margin-bottom: 60px;
}
.section-title h2 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.section-title p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
}
[dir="rtl"] .section-title { text-align: center; }

/* Gradient text utility */
.gradient-text {
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Scroll-reveal (JS adds .is-visible) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.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; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Keyframes */
@keyframes fadeInUp {
  from { opacity:0; transform:translateY(30px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes floatSlow {
  0%,100% { transform:translateY(0); }
  50%      { transform:translateY(-12px); }
}
@keyframes pulse-dot {
  0%,100% { box-shadow:0 0 0 0 rgba(16,185,129,0.5); }
  50%     { box-shadow:0 0 0 8px transparent; }
}
@keyframes spin-slow {
  from { transform:rotate(0deg); }
  to   { transform:rotate(360deg); }
}
