/* ==========================================================================
   MDARK - Digital Solutions & Marketing
   Ultra-Premium Animated Tech Agency Theme
   ========================================================================== */

:root {
  --bg-primary: #05070a;
  --bg-secondary: #0a0d14;
  --bg-card: rgba(13, 18, 26, 0.7);
  --bg-card-hover: rgba(18, 25, 38, 0.85);
  
  --color-brand: #9efe00;
  --color-brand-glow: rgba(158, 254, 0, 0.45);
  --color-brand-dark: #6cb800;
  --color-brand-light: #c2ff4d;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-brand: rgba(158, 254, 0, 0.35);
  
  --font-ar: 'Cairo', system-ui, -apple-system, sans-serif;
  --font-en: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-ar);
  background-color: var(--bg-primary);
  color: var(--text-main);
  overflow-x: hidden;
}

body {
  line-height: 1.7;
  position: relative;
  min-height: 100vh;
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-brand);
}

/* Selection */
::selection {
  background: var(--color-brand);
  color: #000;
}

/* ==========================================================================
   AMBIENT ANIMATED LIGHTS & AURORA GLOWS (Replaces the grid)
   ========================================================================== */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.75;
}

.aurora-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.aurora-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.25;
  will-change: transform;
}

.aurora-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--color-brand) 0%, rgba(158, 254, 0, 0) 70%);
  top: -100px;
  right: -100px;
  animation: floatOrb1 18s ease-in-out infinite alternate;
}

.aurora-2 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #0ea5e9 0%, rgba(14, 165, 233, 0) 70%);
  bottom: 10%;
  left: -150px;
  opacity: 0.15;
  animation: floatOrb2 22s ease-in-out infinite alternate;
}

.aurora-3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #10b981 0%, rgba(16, 185, 129, 0) 70%);
  top: 45%;
  right: 20%;
  opacity: 0.12;
  animation: floatOrb3 16s ease-in-out infinite alternate;
}

@keyframes floatOrb1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-80px, 120px) scale(1.15); }
  100% { transform: translate(-140px, 40px) scale(0.95); }
}

@keyframes floatOrb2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(120px, -90px) scale(1.2); }
  100% { transform: translate(60px, -140px) scale(0.9); }
}

@keyframes floatOrb3 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-100px, -60px) scale(1.25); }
  100% { transform: translate(80px, 80px) scale(1); }
}

/* Laser Section Divider */
.laser-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--border-glass) 30%, var(--color-brand) 50%, var(--border-glass) 70%, transparent 100%);
  position: relative;
  overflow: hidden;
}

.laser-divider::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--color-brand-light), transparent);
  animation: laserSweep 4s linear infinite;
}

@keyframes laserSweep {
  0% { left: -50%; }
  100% { left: 150%; }
}

/* ==========================================================================
   INTERACTIVE CARDS & LUXURY GLASSMORPHISM
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  position: relative;
  z-index: 1;
}

.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 1.25rem;
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.7);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

/* Spotlight Follow Effect on Cards */
.glass-panel::before {
  content: '';
  position: absolute;
  top: var(--mouse-y, -200px);
  left: var(--mouse-x, -200px);
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(158, 254, 0, 0.12) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.glass-panel:hover::before {
  opacity: 1;
}

.glass-panel:hover {
  border-color: var(--border-brand);
  transform: translateY(-6px);
  box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.8), 0 0 25px -5px rgba(158, 254, 0, 0.2);
}

/* Shimmering Animated Border on Highlighted Elements */
.animated-glow-border {
  position: relative;
  z-index: 1;
}

.animated-glow-border::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(90deg, transparent 20%, var(--color-brand) 50%, transparent 80%);
  background-size: 200% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderRotate 3.5s linear infinite;
  pointer-events: none;
}

@keyframes borderRotate {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Heading Line-Height Fix for Arabic & English Typography */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.5 !important;
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3 {
  line-height: 1.6 !important;
}

.brand-gradient-text {
  background: linear-gradient(135deg, #ffffff 15%, var(--color-brand-light) 60%, var(--color-brand) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
  background-size: 200% auto;
  animation: textShine 6s linear infinite;
}

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

.glow-text {
  text-shadow: 0 0 30px var(--color-brand-glow);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.15rem;
  border-radius: 9999px;
  background: rgba(158, 254, 0, 0.08);
  border: 1px solid rgba(158, 254, 0, 0.3);
  color: var(--color-brand);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 15px rgba(158, 254, 0, 0.1);
  transition: var(--transition-smooth);
}

.section-badge:hover {
  border-color: var(--color-brand);
  box-shadow: 0 0 20px rgba(158, 254, 0, 0.3);
  transform: translateY(-2px);
}

/* ==========================================================================
   BUTTONS WITH PRESTIGE EFFECTS
   ========================================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: var(--color-brand);
  color: #07090c;
  font-weight: 800;
  padding: 0.9rem 2rem;
  border-radius: 0.75rem;
  border: 1px solid var(--color-brand);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(158, 254, 0, 0.4);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background: var(--color-brand-light);
  box-shadow: 0 0 35px rgba(158, 254, 0, 0.75);
  transform: translateY(-3px) scale(1.02);
  color: #000;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-weight: 700;
  padding: 0.9rem 2rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border-glass);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6);
  color: #fff;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.header-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(5, 7, 10, 0.8);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-bottom: 1px solid var(--border-glass);
  transition: var(--transition-smooth);
}

.header-nav.scrolled {
  background: rgba(5, 7, 10, 0.95);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.85);
  border-bottom: 1px solid rgba(158, 254, 0, 0.15);
}

/* ==========================================================================
   ICON BOXES & FLOATING ANIMATIONS
   ========================================================================== */
.icon-box {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(158, 254, 0, 0.08);
  border: 1px solid rgba(158, 254, 0, 0.25);
  color: var(--color-brand);
  font-size: 1.65rem;
  margin-bottom: 1.35rem;
  transition: var(--transition-smooth);
}

.glass-panel:hover .icon-box {
  background: var(--color-brand);
  color: #07090c;
  box-shadow: 0 0 30px rgba(158, 254, 0, 0.5);
  transform: scale(1.1) rotate(4deg);
}

/* Floating Elements (Badges / Cards) */
.floating-element {
  animation: floatSlow 5s ease-in-out infinite alternate;
}

.floating-element-reverse {
  animation: floatSlowReverse 6s ease-in-out infinite alternate;
}

@keyframes floatSlow {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-12px); }
}

@keyframes floatSlowReverse {
  0% { transform: translateY(0px); }
  100% { transform: translateY(12px); }
}

/* Pulse Glow Animation */
.pulse-glow {
  animation: pulseGlowAnim 3s infinite;
}

@keyframes pulseGlowAnim {
  0%, 100% {
    box-shadow: 0 0 15px rgba(158, 254, 0, 0.25);
  }
  50% {
    box-shadow: 0 0 35px rgba(158, 254, 0, 0.6);
  }
}

/* Reveal On Scroll Classes */
.reveal-init {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

/* Delay Helpers */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* Stats Counter */
.stat-card {
  padding: 2.25rem 1.5rem;
  text-align: center;
  border-radius: 1.25rem;
  background: rgba(13, 18, 26, 0.6);
  backdrop-filter: blur(15px);
  border: 1px solid var(--border-glass);
  transition: var(--transition-smooth);
}

.stat-card:hover {
  border-color: var(--border-brand);
  transform: translateY(-5px);
  box-shadow: 0 15px 30px -10px rgba(158, 254, 0, 0.2);
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 62px;
  height: 62px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 34px;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
  z-index: 999;
  text-decoration: none;
  transition: var(--transition-smooth);
  animation: pulseWhatsapp 2.5s infinite;
}

@keyframes pulseWhatsapp {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float:hover {
  transform: scale(1.15) translateY(-4px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.7);
}

/* Check Item */
.check-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}

.check-item i {
  color: var(--color-brand);
  font-size: 0.9rem;
}

/* Forms */
.form-input, .form-textarea, .form-select {
  width: 100%;
  background: rgba(10, 13, 20, 0.85);
  border: 1px solid var(--border-glass);
  border-radius: 0.75rem;
  padding: 0.9rem 1.2rem;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 20px rgba(158, 254, 0, 0.25);
  background: rgba(10, 13, 20, 0.98);
}

/* Language Toggle Button & LTR / RTL Helpers */
.lang-toggle-btn {
  transition: var(--transition-smooth);
  backdrop-filter: blur(10px);
}

.lang-toggle-btn:hover {
  background: rgba(158, 254, 0, 0.15);
  transform: translateY(-1px);
}

[dir="ltr"] .ltr-rotate {
  transform: rotate(180deg);
}

[dir="ltr"] {
  font-family: var(--font-en);
}

[dir="rtl"] {
  font-family: var(--font-ar);
}

