/* ============================================
   NGU SYSTEMS - DESIGN SYSTEM TOKENS
   OpenAI + Stripe + Ultra Minimal Elite
   ============================================ */

/* Design Tokens - Colors */
:root {
  /* Background Colors - Multiple Dark Shades for Visual Depth */
  --color-bg: #0C0C0D;
  --color-bg-light: #141416;
  --color-bg-primary: #0C0C0D;
  --color-bg-secondary: #141416;
  --color-bg-tertiary: #1A1A1C;
  --color-bg-quaternary: #0F0F11;
  --color-bg-section-alt: #101012;
  --color-bg-section-light: #16161A;
  --color-bg-hero-gradient: linear-gradient(180deg, #0C0C0D 0%, #000000 100%);
  
  /* Text Colors */
  --color-text: #FFFFFF;
  --color-text-primary: #FFFFFF;
  --color-subtle: #B4B4B8;
  --color-text-secondary: #B4B4B8;
  --color-text-tertiary: #71717A;
  
  /* Primary Accent Colors - From Logo */
  --color-accent-blue: #0090F8;
  --color-accent-green: #22C55E;
  --color-accent-gradient: linear-gradient(90deg, #0090F8 0%, #22C55E 100%);
  
  /* Secondary Accent Colors - For Visual Variety */
  --color-accent-purple: #7C3AED;
  --color-accent-teal: #14B8A6;
  --color-accent-deep-purple: #5B21B6;
  --color-accent-dark-teal: #0D9488;
  
  /* Brand Gradient */
  --color-brand-gradient: linear-gradient(90deg, #0090F8 0%, #22C55E 100%);
  --color-brand-gradient-enhanced: linear-gradient(135deg, #0090F8 0%, #14B8A6 50%, #22C55E 100%);
  --color-logo-gradient: linear-gradient(90deg, #0090F8 0%, #22C55E 100%);
  --color-logo-gradient-hover: linear-gradient(90deg, #00A0FF 0%, #2DD573 100%);
  
  /* Spacing Tokens - 8px base grid system */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-6: 48px;
  --space-8: 64px;
  --space-10: 80px;
  --space-12: 96px;
  --space-16: 128px;
  
  /* Semantic spacing for sections */
  --section-padding-mobile: 48px;
  --section-padding-tablet: 64px;
  --section-padding-desktop: 80px;
  
  /* Legacy spacing for compatibility */
  --spacing-1: 4px;
  --spacing-2: 8px;
  --spacing-3: 12px;
  --spacing-4: 16px;
  --spacing-5: 20px;
  --spacing-6: 24px;
  --spacing-8: 32px;
  --spacing-10: 40px;
  --spacing-12: 48px;
  --spacing-16: 64px;
  --spacing-24: 96px;
  
  /* Border Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  
  /* Shadows - Subtle Depth */
  --shadow-subtle: 0 2px 20px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
  
  /* Neon Glows - Blue/Green with Enhanced Visibility */
  --glow-blue: 0 0 25px rgba(0, 144, 248, 0.15);
  --glow-blue-strong: 0 0 30px rgba(0, 144, 248, 0.25), 0 0 60px rgba(0, 144, 248, 0.15);
  --glow-green: 0 0 25px rgba(34, 197, 94, 0.15);
  --glow-green-strong: 0 0 30px rgba(34, 197, 94, 0.25), 0 0 60px rgba(34, 197, 94, 0.15);
  --glow-gradient: 0 0 25px rgba(0, 144, 248, 0.15), 0 0 25px rgba(34, 197, 94, 0.15);
  --glow-gradient-strong: 0 0 30px rgba(0, 144, 248, 0.25), 0 0 30px rgba(34, 197, 94, 0.2), 0 10px 40px rgba(0, 0, 0, 0.4);
  --glow-accent: 0 0 20px rgba(0, 144, 248, 0.12);
  --glow-purple: 0 0 25px rgba(124, 58, 237, 0.15);
  --glow-teal: 0 0 25px rgba(20, 184, 166, 0.15);
  
  /* Typography - Inter/Satoshi for headings (200-500), Inter/IBM Plex Sans for body (300-400) */
  --font-heading: 'Inter', 'Satoshi', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  
  /* Typography Sizes */
  --text-h1: 64px;
  --text-h1-mobile: 56px;
  --text-h2: 40px;
  --text-h2-mobile: 32px;
  --text-h3: 28px;
  --text-h3-mobile: 24px;
  --text-body: 18px;
  --text-body-mobile: 16px;
  --text-body-sm: 16px;
  --text-body-sm-mobile: 14px;
  
  /* Line Heights - 1.2 for titles, 1.6 for body */
  --leading-tight: 1.2;
  --leading-snug: 1.2;
  --leading-normal: 1.5;
  --leading-relaxed: 1.6;
  --leading-loose: 1.8;
  
  /* Transitions - 200-350ms ease-out */
  --transition-fast: 200ms ease-out;
  --transition-base: 250ms ease-out;
  --transition-slow: 350ms ease-out;
  
  /* Max Widths */
  --max-width-sm: 640px;
  --max-width-md: 768px;
  --max-width-lg: 1024px;
  --max-width-xl: 1280px;
  --max-width-content: 720px;
  --max-width-wide: 1200px;
}

/* ============================================
   RESET & BASE STYLES - MOBILE FIRST APPROACH
   ============================================ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* Prevent text size adjustment on orientation change */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-body-mobile); /* Mobile First: Start with mobile size */
  line-height: var(--leading-relaxed);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* Improve touch experience */
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Desktop body size */
@media (min-width: 768px) {
  body {
    font-size: var(--text-body);
  }
}

/* Safe area padding for notched devices */
@supports (padding: env(safe-area-inset-bottom)) {
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* ============================================
   PREMIUM HERO SECTION - NGU SYSTEMS
   OpenAI × Stripe × Ultra-Minimal × Web3 Touch
   ============================================ */

.ngu-hero-premium {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}

/* ============================================
   LAYER 1: Dark Gradient Base
   ============================================ */
.ngu-hero-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ngu-hero-gradient {
  background: linear-gradient(180deg, #000000 0%, #0C0C0D 40%, #000000 100%);
  z-index: 1;
}

/* ============================================
   LAYER 2: Soft Glowing Mesh
   ============================================ */
.ngu-hero-mesh {
  z-index: 2;
  background: 
    radial-gradient(circle at 20% 30%, rgba(0, 144, 248, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(34, 197, 94, 0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(0, 144, 248, 0.05) 0%, transparent 70%);
  opacity: 0.8;
  animation: nguMeshPulse 20s ease-in-out infinite;
}

@keyframes nguMeshPulse {
  0%, 100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.03);
  }
}

/* ============================================
   LAYER 3: Flowing Data Lines (Thin & Elegant)
   ============================================ */
.ngu-hero-data-lines {
  z-index: 3;
  overflow: hidden;
}

.ngu-data-line {
  position: absolute;
  opacity: 0.6;
}

/* Horizontal Lines */
.ngu-line-h {
  width: 100%;
  height: 1px;
  left: 0;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(0, 144, 248, 0.4) 20%,
    rgba(34, 197, 94, 0.3) 50%,
    rgba(0, 144, 248, 0.4) 80%,
    transparent 100%
  );
  animation: nguLineFlowH 15s linear infinite;
  filter: blur(0.5px);
  box-shadow: 0 0 8px rgba(0, 144, 248, 0.2);
}

/* Vertical Lines */
.ngu-line-v {
  width: 1px;
  height: 100%;
  top: 0;
  background: linear-gradient(180deg, 
    transparent 0%, 
    rgba(0, 144, 248, 0.4) 20%,
    rgba(34, 197, 94, 0.3) 50%,
    rgba(0, 144, 248, 0.4) 80%,
    transparent 100%
  );
  animation: nguLineFlowV 12s linear infinite;
  filter: blur(0.5px);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.2);
}

/* Line Flow Animations */
@keyframes nguLineFlowH {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}

@keyframes nguLineFlowV {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(100%);
    opacity: 0;
  }
}

/* ============================================
   LAYER 4: Micro Particles (Subtle Motion)
   ============================================ */
.ngu-hero-particles {
  z-index: 4;
  overflow: hidden;
}

.ngu-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(0, 144, 248, 0.8);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(0, 144, 248, 0.4);
  animation: nguParticleFloat 20s ease-in-out infinite;
}

.ngu-particle:nth-child(even) {
  background: rgba(34, 197, 94, 0.8);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
  animation-duration: 25s;
}

.ngu-particle:nth-child(1) {
  animation-delay: 0s;
}

.ngu-particle:nth-child(2) {
  animation-delay: -5s;
}

.ngu-particle:nth-child(3) {
  animation-delay: -10s;
}

.ngu-particle:nth-child(4) {
  animation-delay: -15s;
}

.ngu-particle:nth-child(5) {
  animation-delay: -20s;
}

.ngu-particle:nth-child(6) {
  animation-delay: -8s;
}

/* Particle Float Animation (Micro-Motion) */
@keyframes nguParticleFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.5;
  }
  25% {
    transform: translate(15px, -20px) scale(1.2);
    opacity: 0.8;
  }
  50% {
    transform: translate(-10px, -30px) scale(0.9);
    opacity: 0.6;
  }
  75% {
    transform: translate(20px, -15px) scale(1.1);
    opacity: 0.7;
  }
}

/* ============================================
   HERO CONTENT BLOCK
   ============================================ */
.ngu-hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  pointer-events: none;
}

.ngu-hero-content-wrapper {
  pointer-events: auto;
}

/* H1 Title */
.ngu-hero-title {
  font-family: var(--font-heading);
  font-size: 72px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  margin: 0 0 24px 0;
  animation: nguFadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both;
}

/* Audience Badge */
.ngu-hero-audience {
  display: inline-block;
  font-size: 18px;
  font-weight: 500;
  color: var(--color-accent-blue);
  letter-spacing: -0.01em;
  margin: 0 0 32px 0;
  padding: 8px 20px;
  background: rgba(0, 144, 248, 0.08);
  border-radius: 999px;
  border: 1px solid rgba(0, 144, 248, 0.2);
  animation: nguFadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}

/* Subheadline */
.ngu-hero-subtitle {
  max-width: 600px;
  margin: 0 auto 48px auto;
}

.ngu-hero-subtitle p {
  font-size: 22px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--color-text-secondary);
  margin: 0;
}

.ngu-subtitle-line {
  display: inline;
  animation: nguFadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s both;
}

.ngu-subtitle-delay {
  animation-delay: 0.7s;
}

/* CTA Group */
.ngu-hero-cta-group {
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: center;
  align-items: center;
  animation: nguFadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.9s both;
}

/* ============================================
   PREMIUM CTA BUTTONS - MOBILE FIRST
   ============================================ */
.ngu-cta-primary,
.ngu-cta-secondary {
  position: relative;
  /* Mobile First: Smaller padding on mobile */
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 10px;
  cursor: pointer;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  border: none;
  overflow: hidden;
  /* Touch-friendly: minimum touch target */
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Tablet and up */
@media (min-width: 640px) {
  .ngu-cta-primary,
  .ngu-cta-secondary {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: 12px;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .ngu-cta-primary,
  .ngu-cta-secondary {
    padding: 18px 36px;
  }
}

/* Primary CTA - Gradient Glow */
.ngu-cta-primary {
  background: linear-gradient(90deg, var(--color-accent-blue) 0%, var(--color-accent-green) 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(0, 144, 248, 0.3);
}

.ngu-cta-primary .ngu-cta-text {
  position: relative;
  z-index: 2;
}

.ngu-cta-primary .ngu-cta-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 250ms ease;
}

.ngu-cta-primary:hover {
  transform: scale(1.05);
  box-shadow: 
    0 0 40px rgba(0, 144, 248, 0.5),
    0 0 40px rgba(34, 197, 94, 0.4),
    0 8px 30px rgba(0, 0, 0, 0.4);
}

.ngu-cta-primary:hover .ngu-cta-glow {
  opacity: 1;
}

.ngu-cta-primary:active {
  transform: scale(1.02);
}

/* Secondary CTA - Outline */
.ngu-cta-secondary {
  background: transparent;
  color: var(--color-text-primary);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.ngu-cta-secondary:hover {
  transform: scale(1.03);
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.ngu-cta-secondary:active {
  transform: scale(1.01);
}

/* ============================================
   SCROLL INDICATOR
   ============================================ */
.ngu-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  animation: nguPulse 2s ease-in-out infinite;
  cursor: pointer;
}

.ngu-scroll-chevron {
  color: rgba(255, 255, 255, 0.5);
  transition: color 250ms ease;
}

.ngu-scroll-indicator:hover .ngu-scroll-chevron {
  color: rgba(255, 255, 255, 0.9);
}

@keyframes nguPulse {
  0%, 100% {
    opacity: 0.5;
    transform: translateX(-50%) translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) translateY(5px);
  }
}

/* Fade In Up Animation */
@keyframes nguFadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   HERO RESPONSIVENESS
   ============================================ */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
  .ngu-hero-title {
    font-size: 56px;
  }
  
  .ngu-hero-subtitle p {
    font-size: 20px;
  }
  
  .ngu-hero-audience {
    font-size: 16px;
  }
}

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {
  .ngu-hero-title {
    font-size: 44px;
    margin-bottom: 20px;
  }
  
  .ngu-hero-audience {
    font-size: 14px;
    margin-bottom: 24px;
    padding: 6px 16px;
  }
  
  .ngu-hero-subtitle {
    max-width: 100%;
  }
  
  .ngu-hero-subtitle p {
    font-size: 18px;
  }
  
  .ngu-subtitle-line {
    display: block;
    margin-bottom: 8px;
  }
  
  .ngu-hero-cta-group {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  
  .ngu-cta-primary,
  .ngu-cta-secondary {
    width: 100%;
    max-width: 320px;
    padding: 16px 32px;
  }
  
  .ngu-hero-content {
    padding: 0 20px;
  }
  
  /* Reduce particle and line opacity on mobile for performance */
  .ngu-particle {
    opacity: 0.5;
  }
  
  .ngu-data-line {
    opacity: 0.4;
  }
  
  .ngu-scroll-indicator {
    bottom: 24px;
  }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
  .ngu-hero-title {
    font-size: 32px;
    line-height: 1.2;
    padding: 0 8px;
  }
  
  .ngu-hero-subtitle p {
    font-size: 15px;
    padding: 0 4px;
  }
  
  .ngu-hero-audience {
    font-size: 12px;
    padding: 5px 12px;
  }
  
  .ngu-cta-primary,
  .ngu-cta-secondary {
    padding: 12px 20px;
    font-size: 14px;
    width: 100%;
    max-width: 280px;
  }
  
  /* Hide particles on very small screens for performance */
  .ngu-particle {
    display: none;
  }
  
  /* Reduce data lines on small screens */
  .ngu-data-line {
    opacity: 0.25;
  }
  
  .ngu-hero-content {
    padding: 0 16px;
  }
}

/* Extra Small Mobile (max-width: 360px) */
@media (max-width: 360px) {
  .ngu-hero-title {
    font-size: 28px;
  }
  
  .ngu-hero-subtitle p {
    font-size: 14px;
  }
  
  .ngu-cta-primary,
  .ngu-cta-secondary {
    padding: 11px 18px;
    font-size: 13px;
  }
}

/* RTL Support for Hero */
[dir="rtl"] .ngu-hero-cta-group {
  flex-direction: row-reverse;
}

@media (max-width: 767px) {
  [dir="rtl"] .ngu-hero-cta-group {
    flex-direction: column;
  }
}

/* ============================================
   MULTI-LAYER PARALLAX BACKGROUND SYSTEM
   ============================================ */

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

/* Layer A: Dark Gradient Base (Slowest - 3% scroll speed) */
.web3-bg-layer-a {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #000000 0%, #0C0C0D 40%, #000000 100%);
  will-change: transform;
  transition: transform 0.1s linear;
}

/* Layer B: NGU Mesh Glow (5% scroll speed) */
.web3-bg-layer-b {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 25% 30%, rgba(0, 144, 248, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 75% 70%, rgba(34, 197, 94, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(0, 144, 248, 0.04) 0%, transparent 70%);
  opacity: 0.9;
  animation: nguMeshPulseGlobal 25s ease-in-out infinite;
  will-change: transform;
  transition: transform 0.1s linear;
}

/* RTL: Reduce mesh opacity for better Arabic text visibility */
[dir="rtl"] .web3-bg-layer-b {
  opacity: 0.6;
}

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

/* Layer C: Flowing Data Lines (8% scroll speed) */
.web3-bg-layer-c {
  position: absolute;
  inset: 0;
  will-change: transform;
  transition: transform 0.1s linear;
}

/* Layer D: Micro-Particles (12% scroll speed) */
.web3-bg-layer-d {
  position: absolute;
  inset: 0;
  will-change: transform;
  transition: transform 0.1s linear;
}

.web3-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0, 144, 248, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 197, 94, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.15;
  animation: gridPulse 20s ease-in-out infinite;
  will-change: transform;
  transition: transform 0.1s linear;
}

/* RTL: Reduce grid opacity for cleaner Arabic text */
[dir="rtl"] .web3-bg::before {
  opacity: 0.08;
}

.web3-bg::after {
  content: '';
  position: absolute;
  top: 20%;
  right: 15%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(120px);
  animation: glowPulse 12s ease-in-out infinite;
  opacity: 0.4;
}

.web3-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(0, 144, 248, 0.12) 20%,
    rgba(34, 197, 94, 0.10) 50%,
    rgba(0, 144, 248, 0.12) 80%,
    transparent 100%
  );
  box-shadow: 0 0 8px rgba(0, 144, 248, 0.08);
  animation: lineMove 35s linear infinite;
  filter: blur(0.5px);
}

/* RTL: Reduce data lines opacity and speed */
[dir="rtl"] .web3-line {
  opacity: 0.5;
  animation-duration: 45s;
}

/* Floating micro-particles */
.web3-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(0, 144, 248, 0.7);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(0, 144, 248, 0.4);
  animation: particleFloat 25s ease-in-out infinite;
}

.web3-particle:nth-child(even) {
  background: rgba(34, 197, 94, 0.7);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
  animation-duration: 30s;
}

/* RTL: Reduce particles opacity for better text clarity */
[dir="rtl"] .web3-particle {
  opacity: 0.4;
}

@keyframes particleFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.4;
  }
  25% {
    transform: translate(20px, -30px) scale(1.3);
    opacity: 0.7;
  }
  50% {
    transform: translate(-15px, -50px) scale(0.9);
    opacity: 0.5;
  }
  75% {
    transform: translate(25px, -25px) scale(1.2);
    opacity: 0.6;
  }
}

.web3-line:nth-child(1) {
  top: 10%;
  width: 200px;
  animation-delay: 0s;
  animation-duration: 45s;
}

.web3-line:nth-child(2) {
  top: 25%;
  width: 300px;
  animation-delay: -8s;
  animation-duration: 50s;
}

.web3-line:nth-child(3) {
  top: 45%;
  width: 250px;
  animation-delay: -15s;
  animation-duration: 55s;
}

.web3-line:nth-child(4) {
  top: 65%;
  width: 180px;
  animation-delay: -22s;
  animation-duration: 48s;
}

.web3-line:nth-child(5) {
  top: 85%;
  width: 220px;
  animation-delay: -30s;
  animation-duration: 52s;
}

.web3-line:nth-child(6) {
  top: 0;
  left: 20%;
  width: 1px;
  height: 200px;
  background: linear-gradient(180deg, 
    transparent 0%, 
    rgba(0, 208, 132, 0.06) 50%,
    transparent 100%
  );
  animation: lineMoveVertical 35s linear infinite;
}

.web3-line:nth-child(7) {
  top: 0;
  left: 75%;
  width: 1px;
  height: 250px;
  background: linear-gradient(180deg, 
    transparent 0%, 
    rgba(79, 70, 229, 0.06) 50%,
    transparent 100%
  );
  animation: lineMoveVertical 42s linear infinite;
  animation-delay: -18s;
}

@keyframes lineMove {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateX(100vw);
    opacity: 0;
  }
}

@keyframes lineMoveVertical {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  10% {
    opacity: 0.5;
  }
  90% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(100vh);
    opacity: 0;
  }
}

@keyframes glowPulse {
  0%, 100% {
    opacity: 0.2;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(1.03);
  }
}

@keyframes gridPulse {
  0%, 100% {
    opacity: 0.08;
  }
  50% {
    opacity: 0.12;
  }
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: var(--leading-tight);
  color: var(--color-text);
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--text-h1-mobile);
  line-height: var(--leading-tight);
}

h2 {
  font-size: var(--text-h2-mobile);
  line-height: var(--leading-snug);
}

h3 {
  font-size: var(--text-h3-mobile);
  line-height: var(--leading-snug);
}

@media (min-width: 768px) {
  h1 {
    font-size: var(--text-h1);
  }
  h2 {
    font-size: var(--text-h2);
  }
  h3 {
    font-size: var(--text-h3);
  }
}

p {
  max-width: var(--max-width-content);
  margin-left: auto;
  margin-right: auto;
}

/* Gradient Text */
.gradient-text {
  background: var(--color-brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
}

/* ============================================
   NGU INTELLIGENCE LINE - Visual Connector
   ============================================ */

.ngu-intelligence-line {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 80px;
  background: linear-gradient(180deg, 
    rgba(0, 144, 248, 0.6) 0%,
    rgba(34, 197, 94, 0.5) 50%,
    rgba(0, 144, 248, 0.6) 100%
  );
  box-shadow: 
    0 0 12px rgba(0, 144, 248, 0.4),
    0 0 12px rgba(34, 197, 94, 0.3);
  opacity: 0;
  animation: intelligenceLinePulse 3s ease-in-out infinite;
  filter: blur(0.5px);
  z-index: 5;
  pointer-events: none;
}

.ngu-intelligence-line.visible {
  opacity: 1;
  animation: intelligenceLineReveal 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards,
             intelligenceLinePulse 3s ease-in-out infinite 0.8s;
}

@keyframes intelligenceLineReveal {
  from {
    opacity: 0;
    height: 0;
  }
  to {
    opacity: 1;
    height: 80px;
  }
}

@keyframes intelligenceLinePulse {
  0%, 100% {
    opacity: 0.6;
    box-shadow: 
      0 0 12px rgba(0, 144, 248, 0.4),
      0 0 12px rgba(34, 197, 94, 0.3);
  }
  50% {
    opacity: 1;
    box-shadow: 
      0 0 20px rgba(0, 144, 248, 0.6),
      0 0 20px rgba(34, 197, 94, 0.5);
  }
}

/* ============================================
   ANIMATIONS - FADE & TRANSLATE
   ============================================ */

.header-fade-in {
  animation: fadeInDown 0.6s var(--transition-base);
}

/* Legacy hero animations - kept for compatibility with other sections */
.hero-title {
  animation: fadeInUp 0.8s var(--transition-base) 0.1s both;
}

.hero-text {
  animation: fadeInUp 0.8s var(--transition-base) 0.3s both;
}

.hero-buttons {
  animation: fadeInUp 0.8s var(--transition-base) 0.5s both;
}

/* Enhanced Fade & Slide Animations with Scroll Reveal */
.fade-in-section {
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  filter: blur(2px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              filter 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* RTL: Reduce blur effect for better Arabic text clarity */
[dir="rtl"] .fade-in-section {
  filter: blur(0.5px);
  transform: translateY(30px) scale(0.98);
}

[dir="rtl"] .fade-in-section.visible {
  filter: blur(0);
}

/* Section Title with Letter-Spacing Animation */
.section-title {
  opacity: 0;
  transform: translateY(50px);
  letter-spacing: 0.05em;
  filter: brightness(0.9);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              letter-spacing 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s,
              filter 0.5s ease-out;
  will-change: opacity, transform, letter-spacing;
}

.section-title.visible {
  opacity: 1;
  transform: translateY(0);
  letter-spacing: -0.02em;
  filter: brightness(1);
  animation: titleGlowEnhanced 1.2s ease-out;
}

/* RTL: Simplified animation without letter-spacing changes */
[dir="rtl"] .section-title {
  letter-spacing: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              filter 0.5s ease-out;
}

[dir="rtl"] .section-title.visible {
  letter-spacing: 0;
  transform: translateY(0);
}

/* Enhanced Title Glow with Soft Pulse */
@keyframes titleGlowEnhanced {
  0% {
    filter: brightness(0.9) drop-shadow(0 0 0 transparent);
  }
  30% {
    filter: brightness(1.08) drop-shadow(0 0 20px rgba(0, 144, 248, 0.15));
  }
  60% {
    filter: brightness(1.05) drop-shadow(0 0 15px rgba(34, 197, 94, 0.12));
  }
  100% {
    filter: brightness(1) drop-shadow(0 0 0 transparent);
  }
}

/* Individual Letter Fade Animation - DISABLED FOR RTL LANGUAGES */
.section-title.visible .letter-fade {
  display: inline-block;
  opacity: 0;
  animation: letterFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* RTL: Disable letter splitting - show complete text */
[dir="rtl"] .section-title.visible .letter-fade {
  display: inline;
  opacity: 1;
  animation: none;
}

@keyframes letterFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-content {
  opacity: 0;
  transform: translateY(35px);
  filter: blur(1px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.15s, 
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.15s,
              filter 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.15s;
}

.section-content.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* RTL: No blur for Arabic text content */
[dir="rtl"] .section-content {
  filter: none;
  transform: translateY(25px);
}

[dir="rtl"] .section-content.visible {
  filter: none;
}

/* Enhanced Feature Card with Scroll Reveal */
.feature-card {
  opacity: 0;
  transform: translateY(40px) scale(0.93);
  filter: blur(2px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              filter 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform, filter;
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  animation: cardGlowReveal 0.8s ease-out;
}

/* RTL: No blur for cards with Arabic text */
[dir="rtl"] .feature-card {
  filter: none;
  transform: translateY(30px) scale(0.95);
}

[dir="rtl"] .feature-card.visible {
  filter: none;
}

@keyframes cardGlowReveal {
  0% {
    box-shadow: 0 0 0 transparent;
  }
  50% {
    box-shadow: 
      0 0 25px rgba(0, 144, 248, 0.2),
      0 0 25px rgba(34, 197, 94, 0.15);
  }
  100% {
    box-shadow: 0 0 0 transparent;
  }
}

.reason-item {
  opacity: 0;
  transform: translateX(-30px) translateY(15px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.reason-item.visible {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

/* RTL adjustments for reason items */
[dir="rtl"] .reason-item {
  transform: translateX(30px) translateY(15px);
}

[dir="rtl"] .reason-item.visible {
  transform: translateX(0) translateY(0);
}

/* Ensure each reason item animates individually */
.reason-item:not(.visible) {
  pointer-events: none;
}

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   CARDS - MOBILE FIRST WITH ENHANCED HOVER EFFECTS
   ============================================ */

.card-hover {
  transition: all 350ms cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(20, 20, 22, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  /* Mobile First: Smaller radius on mobile */
  border-radius: var(--radius-md);
  will-change: transform, box-shadow, border-color;
  position: relative;
  overflow: hidden;
  /* Mobile First: Touch-friendly padding */
  padding: 20px;
}

/* Tablet and up */
@media (min-width: 640px) {
  .card-hover {
    border-radius: var(--radius-lg);
    padding: 24px;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .card-hover {
    padding: 32px;
  }
}

/* Glow layer that appears on hover */
.card-hover::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(circle at center, rgba(0, 144, 248, 0.08) 0%, transparent 70%);
  transition: opacity 350ms ease-out;
  pointer-events: none;
}

/* Animated gradient border on hover */
.card-hover::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, 
    rgba(0, 144, 248, 0.4) 0%, 
    rgba(34, 197, 94, 0.3) 50%,
    rgba(0, 144, 248, 0.4) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 350ms ease-out;
  pointer-events: none;
}

.card-hover:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 0 35px rgba(0, 144, 248, 0.3),
    0 0 35px rgba(34, 197, 94, 0.25),
    0 20px 50px rgba(0, 0, 0, 0.6);
  border-color: rgba(0, 144, 248, 0.4);
  background: rgba(20, 20, 22, 0.8);
}

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

.card-hover:hover::after {
  opacity: 1;
  animation: borderPulse 2s ease-in-out infinite;
}

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

/* ============================================
   BUTTONS - ENHANCED SCALE & GRADIENT GLOW
   ============================================ */

.btn-glow {
  position: relative;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  will-change: transform, box-shadow, filter;
}

.btn-glow::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: var(--color-brand-gradient-enhanced);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 250ms ease-out;
}

.btn-glow::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: width 500ms cubic-bezier(0.4, 0, 0.2, 1), height 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-glow:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 
    0 0 35px rgba(0, 144, 248, 0.35),
    0 0 35px rgba(34, 197, 94, 0.3),
    0 0 20px rgba(20, 184, 166, 0.2),
    0 15px 40px rgba(0, 0, 0, 0.5);
  filter: brightness(1.15);
  border: 2px solid rgba(0, 144, 248, 0.5);
}

.btn-glow:hover::before {
  opacity: 1;
}

.btn-glow:hover::after {
  width: 350px;
  height: 350px;
}

.btn-glow:active {
  transform: scale(1.02) translateY(-1px);
  transition: all 100ms ease-out;
}

/* Secondary Button - Enhanced */
.btn-secondary {
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: var(--radius-lg);
  position: relative;
  border: 2px solid rgba(180, 180, 184, 0.3);
  will-change: transform, box-shadow, border-color;
  overflow: hidden;
}

.btn-secondary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 144, 248, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 250ms ease-out;
}

.btn-secondary:hover {
  transform: scale(1.05) translateY(-2px);
  border-color: var(--color-accent-blue);
  color: var(--color-accent-blue);
  box-shadow: 
    0 0 25px rgba(0, 144, 248, 0.3),
    0 0 15px rgba(20, 184, 166, 0.15),
    0 15px 40px rgba(0, 0, 0, 0.5);
  background: rgba(0, 144, 248, 0.12);
}

.btn-secondary:hover::before {
  opacity: 1;
}

.btn-secondary:active {
  transform: scale(1.02) translateY(-1px);
  transition: all 100ms ease-out;
}

/* ============================================
   HEADER - GLASS MORPHISM
   ============================================ */

.glass-header-container {
  background: rgba(20, 20, 22, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition-base);
}

.glass-header-container:hover {
  background: rgba(20, 20, 22, 0.5);
  border-bottom-color: rgba(79, 70, 229, 0.1);
}

/* Glass Menu Button */
.glass-menu-button {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: var(--spacing-2) var(--spacing-3);
  color: var(--color-text-primary);
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
}

.glass-menu-button:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(79, 70, 229, 0.2);
  box-shadow: var(--glow-accent);
  transform: scale(1.05);
}

.glass-menu-button:active {
  transform: scale(0.95);
}

/* ============================================
   LOGO SIZING
   ============================================ */

.logo-height {
  height: 8.5rem;
}

@media (min-width: 640px) {
  .logo-height {
    height: 10rem;
  }
}

@media (min-width: 768px) {
  .logo-height {
    height: 10rem;
  }
}

@media (min-width: 1024px) {
  .logo-height {
    height: 11rem;
  }
}

/* ============================================
   TAILWIND CUSTOM COLORS
   ============================================ */

.bg-bg-primary {
  background-color: var(--color-bg-primary);
}

.bg-bg-secondary {
  background-color: var(--color-bg-secondary);
}

.text-text-primary {
  color: var(--color-text-primary);
}

.text-text-secondary {
  color: var(--color-text-secondary);
}

.text-accent-blue {
  color: var(--color-accent-blue);
}

.text-accent-green {
  color: var(--color-accent-green);
}

.from-accent-blue {
  --tw-gradient-from: var(--color-accent-blue);
}

.to-accent-green {
  --tw-gradient-to: var(--color-accent-green);
}

.border-text-secondary {
  border-color: var(--color-text-secondary);
}

.hover\:border-accent-blue:hover {
  border-color: var(--color-accent-blue);
}

.hover\:text-accent-blue:hover {
  color: var(--color-accent-blue);
}

/* ============================================
   LEGACY HERO TEXT ANIMATION - Kept for other sections
   ============================================ */

.hero-audience {
  opacity: 0;
  animation: fadeInUp 0.7s ease-out 0.2s both;
}

.hero-subheadline {
  display: inline-block;
  opacity: 0;
  animation: fadeInSlideRight 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
}

.hero-subheadline-delay {
  display: inline-block;
  opacity: 0;
  animation: fadeInSlideRight 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.8s both;
}

@keyframes fadeInSlideRight {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* RTL version - slide from right */
[dir="rtl"] .hero-subheadline,
[dir="rtl"] .hero-subheadline-delay {
  animation: fadeInSlideLeft 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
}

[dir="rtl"] .hero-subheadline-delay {
  animation-delay: 0.8s;
}

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

@media (max-width: 640px) {
  .hero-subheadline,
  .hero-subheadline-delay {
    display: block;
  }
  
  .hero-audience {
    font-size: 14px;
  }
}

/* ============================================
   VALUE LAYER ICONS - Minimalist Line Icons
   ============================================ */

.feature-icon {
  color: var(--color-accent);
  transition: all var(--transition-base);
}

.feature-icon svg {
  stroke: currentColor;
  transition: all var(--transition-base);
}

.feature-card:hover .feature-icon {
  color: var(--color-accent);
  transform: scale(1.05);
}

.feature-card:hover .feature-icon svg {
  filter: drop-shadow(0 0 8px rgba(79, 70, 229, 0.2));
}

/* ============================================
   SECTION SPACING CONSISTENCY & BACKGROUNDS
   ============================================ */

/* Section Base Styles with Consistent Spacing */
section {
  position: relative;
}

/* ============================================
   SECTION TRANSITIONS - GRADIENT FADES & MESH
   ============================================ */

/* Alternating Section Backgrounds with Smooth Transitions */
.section-bg-primary {
  background: var(--color-bg-primary);
  position: relative;
}

.section-bg-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(180deg, 
    rgba(0, 0, 0, 0) 0%,
    var(--color-bg-primary) 100%
  );
  opacity: 0.8;
  pointer-events: none;
}

.section-bg-secondary {
  background: var(--color-bg-section-alt);
  position: relative;
}

.section-bg-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(180deg, 
    rgba(0, 0, 0, 0) 0%,
    var(--color-bg-section-alt) 100%
  );
  opacity: 0.8;
  pointer-events: none;
}

.section-bg-tertiary {
  background: var(--color-bg-section-light);
  position: relative;
}

.section-bg-tertiary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(180deg, 
    rgba(0, 0, 0, 0) 0%,
    var(--color-bg-section-light) 100%
  );
  opacity: 0.8;
  pointer-events: none;
}

/* Line Reveal Dividers */
.section-divider {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(0, 144, 248, 0.5) 20%,
    rgba(34, 197, 94, 0.4) 50%,
    rgba(0, 144, 248, 0.5) 80%,
    transparent 100%
  );
  box-shadow: 0 0 10px rgba(0, 144, 248, 0.3);
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.section-divider.visible {
  width: 60%;
}

/* Subtle Geometric Pattern Overlays */
.section-bg-pattern-dots::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at center, rgba(0, 144, 248, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
  pointer-events: none;
}

.section-bg-pattern-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 144, 248, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 197, 94, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.4;
  pointer-events: none;
}

.section-bg-pattern-mesh::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 30% 40%, rgba(124, 58, 237, 0.02) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(20, 184, 166, 0.03) 0%, transparent 50%);
  opacity: 1;
  pointer-events: none;
}

/* Reduce Excessive Spacing - Updated Section Padding */
section.py-10,
section.py-12,
section.py-16,
section.py-20 {
  padding-top: var(--section-padding-mobile) !important;
  padding-bottom: var(--section-padding-mobile) !important;
}

@media (min-width: 768px) {
  section.py-10,
  section.py-12,
  section.py-16,
  section.py-20 {
    padding-top: var(--section-padding-tablet) !important;
    padding-bottom: var(--section-padding-tablet) !important;
  }
}

@media (min-width: 1024px) {
  section.py-10,
  section.py-12,
  section.py-16,
  section.py-20 {
    padding-top: var(--section-padding-desktop) !important;
    padding-bottom: var(--section-padding-desktop) !important;
  }
}

/* ============================================
   RESPONSIVE UTILITIES - ENHANCED
   ============================================ */

/* Mobile (320px - 640px) */
@media (max-width: 640px) {
  /* Reduce animation distance on mobile for performance */
  .fade-in-section {
    transform: translateY(20px) scale(0.99);
  }
  
  .section-title {
    transform: translateY(25px);
  }
  
  .section-content {
    transform: translateY(20px);
  }
  
  /* Mobile typography adjustments */
  h1 {
    font-size: 48px;
    line-height: 1.15;
    font-weight: 400;
    letter-spacing: -0.02em;
  }
  
  h2 {
    font-size: 32px;
    line-height: 1.2;
    font-weight: 400;
  }
  
  h3 {
    font-size: 24px;
    line-height: 1.3;
    font-weight: 400;
  }
  
  /* Mobile button adjustments */
  .btn-glow,
  .btn-secondary {
    width: 100%;
    max-width: 100%;
    padding: 16px 24px !important;
    font-size: 16px;
  }
  
  /* Mobile card adjustments */
  .card-hover {
    padding: 24px;
    margin-bottom: 16px;
  }
  
  .card-hover:hover {
    transform: translateY(-3px);
  }
  
  /* Ensure proper padding on mobile */
  section {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  
  /* Prevent text overlap (legacy) */
  .hero-subheadline,
  .hero-subheadline-delay {
    display: block;
    margin-bottom: 0.5rem;
  }
  
  /* Optimize hero background for mobile */
  .ngu-hero-mesh {
    opacity: 0.6;
  }
  
  .ngu-data-line {
    opacity: 0.3;
  }
  
  /* Section patterns - reduce on mobile for performance */
  .section-bg-pattern-dots::before,
  .section-bg-pattern-grid::before {
    opacity: 0.3;
  }
}

/* Tablet (641px - 1024px) */
@media (min-width: 641px) and (max-width: 1024px) {
  /* Tablet card styling */
  .card-hover {
    padding: 32px;
    margin-bottom: 20px;
  }
  
  .card-hover:hover {
    transform: translateY(-5px);
  }
  
  /* 2x2 grid on tablet */
  .grid.grid-cols-1.md\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  /* Tablet typography */
  h1 {
    font-size: 56px;
    line-height: 1.15;
  }
  
  h2 {
    font-size: 36px;
    line-height: 1.2;
  }
  
  h3 {
    font-size: 26px;
    line-height: 1.3;
  }
  
  /* Tablet buttons */
  .btn-glow,
  .btn-secondary {
    padding: 18px 32px !important;
  }
  
  /* Ensure proper icon sizing */
  .feature-icon svg {
    width: 3.5rem;
    height: 3.5rem;
  }
  
  /* Prevent overlap on tablet */
  .card-hover {
    min-height: auto;
  }
  
  /* Section spacing optimization for tablet */
  section {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
}

/* Desktop (1025px+) - Enhanced Interactions */
@media (min-width: 1025px) {
  /* Enhanced hover effects on desktop */
  .card-hover {
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .card-hover:hover {
    transform: translateY(-8px) scale(1.01);
  }
  
  .btn-glow:hover,
  .btn-secondary:hover {
    transform: scale(1.06) translateY(-2px);
  }
  
  /* Optimal grid spacing on desktop */
  .grid.grid-cols-1.md\:grid-cols-2 {
    gap: 32px;
  }
  
  /* Enhanced section patterns on desktop */
  .section-bg-pattern-dots::before,
  .section-bg-pattern-grid::before,
  .section-bg-pattern-mesh::before {
    opacity: 1;
  }
  
  /* Hero optimizations for desktop */
  .ngu-hero-mesh {
    opacity: 1;
  }
  
  .ngu-data-line {
    opacity: 0.6;
  }
}

/* Grid responsive behavior */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr !important;
  }
  
  /* Ensure proper spacing on mobile */
  .card-hover {
    margin-bottom: var(--spacing-4);
  }
  
  /* Stack buttons vertically on mobile */
  .flex.flex-col.sm\:flex-row {
    flex-direction: column;
  }
  
  /* Adjust hero text spacing (legacy) */
  .hero-text {
    margin-bottom: var(--spacing-8);
  }
  
  /* Ensure icons scale properly */
  .feature-icon svg {
    width: 3rem;
    height: 3rem;
  }
  
  /* Prevent text overlap on mobile */
  h1, h2, h3 {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  /* Ensure cards don't overlap */
  .card-hover {
    min-height: auto;
    margin-bottom: var(--spacing-6);
  }
  
  /* Center text on mobile */
  .text-center {
    text-align: center;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

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

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */

.language-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-link {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
}

.lang-link:hover {
  color: var(--color-text-primary);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.lang-link.active {
  color: var(--color-accent-blue);
  font-weight: 500;
  background: rgba(0, 144, 248, 0.1);
}

.lang-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 2px;
  background: var(--color-accent-blue);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(0, 144, 248, 0.4);
}

.lang-link:focus-visible {
  outline: 2px solid var(--color-accent-blue);
  outline-offset: 2px;
}

/* RTL adjustments for language switcher */
[dir="rtl"] .language-switcher {
  flex-direction: row-reverse;
}

/* ============================================
   RTL (RIGHT-TO-LEFT) SUPPORT
   ============================================ */

[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] h5,
[dir="rtl"] h6 {
  text-align: right;
}

[dir="rtl"] p {
  text-align: right;
}

[dir="rtl"] .text-center {
  text-align: center;
}

/* RTL List Items */
[dir="rtl"] .rtl-list-item {
  flex-direction: row-reverse;
}

[dir="rtl"] .rtl-list-item .order-1 {
  order: 1;
}

[dir="rtl"] .rtl-list-item .order-2 {
  order: 2;
}

/* RTL Icons - Keep icons on the right side */
[dir="rtl"] .rtl-icon {
  margin-left: 0;
  margin-right: auto;
}

/* RTL Buttons - Reverse order for primary/secondary */
[dir="rtl"] .flex.flex-row {
  flex-direction: row-reverse;
}

/* RTL Cards - Adjust padding and alignment */
[dir="rtl"] .card-hover {
  text-align: right;
}

/* RTL Hero Section */
[dir="rtl"] .ngu-hero-premium {
  text-align: center; /* Keep center for hero */
}

/* RTL Grid adjustments */
[dir="rtl"] .grid {
  direction: rtl;
}

/* RTL Spacing adjustments for better readability */
[dir="rtl"] body {
  font-family: 'Noto Sans Arabic', 'Inter', system-ui, sans-serif;
  letter-spacing: 0; /* Reset letter-spacing for Arabic */
  font-weight: 400; /* Clean and minimal, matching brand identity */
}

[dir="rtl"] p {
  line-height: 1.9; /* Increased for Arabic/Hebrew readability */
  text-align: right;
  font-weight: 400; /* Better weight for Arabic text */
}

[dir="rtl"] h1,
[dir="rtl"] h2 {
  letter-spacing: 0; /* Reset negative letter-spacing for Arabic */
  font-weight: 500; /* Heavier weight for better contrast */
}

[dir="rtl"] h3 {
  font-weight: 500; /* Better weight for card titles */
}

[dir="rtl"] h3 {
  line-height: 1.4;
}

/* RTL Text alignment improvements */
[dir="rtl"] .section-title {
  text-align: center;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: normal;
}

[dir="rtl"] .section-content {
  text-align: right;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: normal;
}

/* RTL: Prevent text splitting across lines during animations */
[dir="rtl"] .section-content p {
  display: block;
  width: 100%;
  white-space: normal;
  word-break: keep-all;
}

/* RTL Hero section adjustments */
[dir="rtl"] .ngu-hero-title {
  letter-spacing: 0;
  line-height: 1.3;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: normal;
}

[dir="rtl"] .ngu-hero-subtitle p {
  text-align: center;
  line-height: 1.8;
  white-space: normal;
  word-break: keep-all;
  max-width: 100%;
}

/* RTL: Prevent hero text splitting */
[dir="rtl"] .ngu-hero-content {
  padding: 0 32px;
}

[dir="rtl"] .ngu-hero-audience {
  white-space: nowrap;
}

/* RTL spacing for better readability */
[dir="rtl"] .space-y-6 > * + *,
[dir="rtl"] .space-y-8 > * + * {
  margin-top: 2rem;
}

/* RTL Card titles with emojis - ensure proper alignment */
[dir="rtl"] .card-hover h3 {
  text-align: right;
  direction: rtl;
}

/* RTL Feature cards - ensure content is right-aligned */
[dir="rtl"] .feature-card h3,
[dir="rtl"] .feature-card p {
  text-align: right;
}

/* RTL Gradient text */
[dir="rtl"] .gradient-text {
  display: inline-block;
}

/* ============================================
   ARABIC ENHANCEMENTS - Better Contrast & Mobile
   ============================================ */

/* Improved text contrast for Arabic */
[dir="rtl"] .text-text-secondary {
  color: #C5C5C9; /* Lighter gray for better contrast */
}

[dir="rtl"] .ngu-hero-title {
  font-weight: 600; /* Bold for hero title */
  font-size: 44px; /* Better mobile size */
}

[dir="rtl"] .ngu-hero-subtitle p {
  font-size: 20px;
  font-weight: 400;
  color: #D0D0D4; /* Better contrast */
  line-height: 1.8;
}

/* Arabic mobile optimizations - Mobile First */
@media (max-width: 767px) {
  [dir="rtl"] body {
    font-size: 17px; /* Slightly larger for mobile */
  }
  
  [dir="rtl"] .ngu-hero-title {
    font-size: 38px;
    line-height: 1.25;
    margin-bottom: 20px;
  }
  
  [dir="rtl"] .ngu-hero-subtitle p {
    font-size: 18px;
    line-height: 1.75;
  }
  
  [dir="rtl"] h2 {
    font-size: 32px;
    line-height: 1.3;
    font-weight: 600;
  }
  
  [dir="rtl"] h3 {
    font-size: 24px;
    line-height: 1.4;
    font-weight: 500;
  }
  
  [dir="rtl"] p {
    font-size: 17px;
    line-height: 1.85;
    font-weight: 400;
  }
  
  /* Better card spacing on mobile */
  [dir="rtl"] .card-hover {
    padding: 24px 20px;
    margin-bottom: 20px;
  }
  
  /* Better button sizes */
  [dir="rtl"] .ngu-cta-primary,
  [dir="rtl"] .ngu-cta-secondary,
  [dir="rtl"] .btn-glow,
  [dir="rtl"] .btn-secondary {
    padding: 16px 28px;
    font-size: 16px;
    font-weight: 500;
  }
  
  /* Improve section spacing */
  [dir="rtl"] section {
    padding-top: 48px;
    padding-bottom: 48px;
  }
}

/* Tablet adjustments for Arabic */
@media (min-width: 768px) and (max-width: 1024px) {
  [dir="rtl"] .ngu-hero-title {
    font-size: 52px;
  }
  
  [dir="rtl"] h2 {
    font-size: 38px;
    font-weight: 600;
  }
  
  [dir="rtl"] h3 {
    font-size: 26px;
  }
}

/* Desktop - Full experience */
@media (min-width: 1025px) {
  [dir="rtl"] .ngu-hero-title {
    font-size: 64px;
    font-weight: 600;
  }
  
  [dir="rtl"] h2 {
    font-size: 40px;
    font-weight: 600;
  }
  
  [dir="rtl"] h3 {
    font-size: 28px;
    font-weight: 500;
  }
}

/* Clean typography for Arabic - matching brand identity */
[dir="rtl"] h3,
[dir="rtl"] .feature-card h3 {
  font-family: 'Noto Sans Arabic', 'Inter', system-ui, sans-serif;
}

/* Better contrast for all text in RTL */
[dir="rtl"] .section-title {
  color: #FFFFFF;
  font-weight: 600;
}

[dir="rtl"] .section-content p {
  color: #D0D0D4;
}

/* RTL Bullet points */
[dir="rtl"] ul {
  padding-right: 0;
  padding-left: 0;
}

[dir="rtl"] li {
  text-align: right;
}

/* RTL Button groups - Primary on right, Secondary on left */
[dir="rtl"] .flex.flex-col.sm\:flex-row {
  flex-direction: column;
}

@media (min-width: 640px) {
  [dir="rtl"] .flex.flex-col.sm\:flex-row {
    flex-direction: row-reverse;
  }
  
  /* Ensure button order: primary (glow) on right, secondary on left in RTL */
  [dir="rtl"] .hero-buttons,
  [dir="rtl"] .ngu-hero-cta-group,
  [dir="rtl"] .section-content .flex.flex-col.sm\:flex-row {
    flex-direction: row-reverse;
  }
  
  [dir="rtl"] .hero-buttons .btn-glow,
  [dir="rtl"] .ngu-hero-cta-group .ngu-cta-primary,
  [dir="rtl"] .section-content .btn-glow {
    order: 1;
  }
  
  [dir="rtl"] .hero-buttons .btn-secondary,
  [dir="rtl"] .ngu-hero-cta-group .ngu-cta-secondary,
  [dir="rtl"] .section-content .btn-secondary {
    order: 2;
  }
}

/* RTL Header adjustments - REMOVED to keep menu button on right always */
/* Header now uses dir="ltr" to maintain consistent layout across all languages */

/* RTL Feature cards - icons on right, text on left */
[dir="rtl"] .feature-card {
  text-align: right;
  direction: rtl;
}

[dir="rtl"] .card-hover {
  text-align: right;
  direction: rtl;
}

[dir="rtl"] .feature-icon {
  margin-left: 0;
  margin-right: 0;
  margin-bottom: var(--spacing-6);
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

/* RTL Reason items - bullet on right, text on left */
[dir="rtl"] .reason-item {
  flex-direction: row-reverse;
  text-align: right;
  justify-content: flex-end;
}

/* Ensure proper text direction for mixed content */
[dir="rtl"] .gradient-text {
  direction: rtl;
  unicode-bidi: embed;
}

/* RTL Mobile adjustments */
@media (max-width: 640px) {
  [dir="rtl"] .language-switcher {
    font-size: 12px;
    gap: 6px;
  }
  
  [dir="rtl"] .lang-link {
    padding: 3px 6px;
    font-size: 12px;
  }
  
  /* Ensure buttons stack vertically on mobile for both LTR and RTL */
  [dir="rtl"] .flex.flex-col.sm\:flex-row {
    flex-direction: column;
  }
  
  [dir="rtl"] .flex.flex-col.sm\:flex-row .btn-glow,
  [dir="rtl"] .flex.flex-col.sm\:flex-row .btn-secondary {
    order: 0;
    width: 100%;
  }
}

/* Performance optimizations */
.card-hover,
.btn-glow,
.btn-secondary,
.reason-item {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* Smooth scrolling for RTL */
[dir="rtl"] {
  scroll-behavior: smooth;
}

/* ============================================
   SERVICES SECTION - MOBILE FIRST DESIGN
   ============================================ */

.services-section {
  position: relative;
  overflow: hidden;
}

/* Service Card Base - Mobile First */
.service-card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 350ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, box-shadow;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(circle at center, rgba(0, 144, 248, 0.1) 0%, transparent 70%);
  transition: opacity 350ms ease-out;
  pointer-events: none;
}

/* Service Icon */
.service-icon {
  display: flex;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.service-icon svg {
  transition: transform 300ms ease-out, filter 300ms ease-out;
}

/* Service Features List */
.service-features li {
  transition: transform 200ms ease-out;
}

.service-features li:hover {
  transform: translateX(4px);
}

[dir="rtl"] .service-features li:hover {
  transform: translateX(-4px);
}

.feature-check {
  transition: all 250ms ease-out;
}

/* Service Card Hover Effects */
.service-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 
    0 0 30px rgba(0, 144, 248, 0.2),
    0 0 30px rgba(34, 197, 94, 0.15),
    0 15px 40px rgba(0, 0, 0, 0.5);
  border-color: rgba(0, 144, 248, 0.3);
}

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

.service-card:hover .service-icon svg {
  transform: scale(1.1);
  filter: drop-shadow(0 0 10px currentColor);
}

.service-card:hover .feature-check {
  background: linear-gradient(135deg, rgba(0, 144, 248, 0.4) 0%, rgba(34, 197, 94, 0.4) 100%);
}

/* CTA Card */
.services-cta .cta-card {
  transition: all 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

.services-cta .cta-card:hover {
  box-shadow: 
    0 0 40px rgba(0, 144, 248, 0.15),
    0 0 40px rgba(34, 197, 94, 0.1),
    0 20px 50px rgba(0, 0, 0, 0.4);
  border-color: rgba(0, 144, 248, 0.2);
}

/* Services Mobile Optimizations */
@media (max-width: 640px) {
  .service-card {
    padding: 20px !important;
    border-radius: 16px !important;
  }
  
  .service-card:hover {
    transform: translateY(-4px) scale(1.005);
  }
  
  .service-icon svg {
    width: 36px !important;
    height: 36px !important;
  }
  
  .service-features li {
    font-size: 13px;
  }
  
  .services-cta .cta-card {
    padding: 24px !important;
    border-radius: 20px !important;
  }
  
  /* Stack grid properly on mobile */
  .services-grid {
    gap: 16px !important;
  }
}

/* Services Tablet */
@media (min-width: 641px) and (max-width: 1024px) {
  .service-card {
    padding: 24px;
  }
  
  .service-card:hover {
    transform: translateY(-5px) scale(1.008);
  }
  
  .services-grid {
    gap: 20px;
  }
}

/* Services Desktop */
@media (min-width: 1025px) {
  .service-card {
    padding: 32px;
  }
  
  .services-grid {
    gap: 28px;
  }
}

/* RTL Services Adjustments */
[dir="rtl"] .service-card {
  text-align: right;
}

[dir="rtl"] .service-icon {
  justify-content: flex-end;
}

[dir="rtl"] .service-features li {
  flex-direction: row-reverse;
  text-align: right;
}

[dir="rtl"] .services-cta .flex.sm\:flex-row {
  flex-direction: column;
}

@media (min-width: 640px) {
  [dir="rtl"] .services-cta .flex.sm\:flex-row {
    flex-direction: row-reverse;
  }
}

/* Service Card Animation Delays */
.service-card:nth-child(1) { animation-delay: 0s; }
.service-card:nth-child(2) { animation-delay: 0.08s; }
.service-card:nth-child(3) { animation-delay: 0.16s; }
.service-card:nth-child(4) { animation-delay: 0.24s; }
.service-card:nth-child(5) { animation-delay: 0.32s; }
.service-card:nth-child(6) { animation-delay: 0.4s; }

/* ============================================
   TRUST INDICATORS SECTION
   ============================================ */

.trust-section {
  background: linear-gradient(180deg, rgba(12, 12, 13, 0.95) 0%, rgba(20, 20, 22, 0.9) 100%);
}

.trust-item {
  transition: all 300ms ease-out;
}

.trust-item:hover {
  transform: translateY(-4px);
}

.trust-number {
  background: var(--color-brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.trust-label {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Mobile Trust */
@media (max-width: 640px) {
  .trust-number {
    font-size: 28px;
  }
  
  .trust-label {
    font-size: 11px;
  }
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */

.how-it-works-section .step-card {
  position: relative;
}

.step-number {
  transition: all 300ms ease-out;
}

.step-card:hover .step-number {
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(0, 144, 248, 0.3);
}

/* Mobile Steps */
@media (max-width: 640px) {
  .step-number {
    width: 48px;
    height: 48px;
  }
  
  .step-number span {
    font-size: 18px;
  }
}

/* RTL Steps */
[dir="rtl"] .step-card {
  text-align: center;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */

.testimonial-card {
  position: relative;
  background: rgba(20, 20, 22, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 16px;
  opacity: 0.1;
  font-size: 80px;
  font-family: Georgia, serif;
  line-height: 1;
  background: var(--color-brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[dir="ltr"] .testimonial-card::before {
  left: 16px;
}

[dir="rtl"] .testimonial-card::before {
  right: 16px;
}

.testimonial-card:hover {
  border-color: rgba(0, 144, 248, 0.2);
  box-shadow: 0 0 30px rgba(0, 144, 248, 0.1);
}

/* Mobile Testimonials */
@media (max-width: 640px) {
  .testimonial-card::before {
    font-size: 60px;
    top: 12px;
  }
}

/* ============================================
   FAQ SECTION
   ============================================ */

.faq-item {
  border-radius: 16px;
  overflow: hidden;
  transition: all 300ms ease-out;
}

.faq-item[open] {
  background: rgba(20, 20, 22, 0.8);
}

.faq-item[open] .faq-question {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px 16px 0 0;
}

.faq-question:hover {
  background: rgba(25, 25, 27, 0.8) !important;
  border-color: rgba(0, 144, 248, 0.2) !important;
}

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

.faq-icon {
  transition: all 300ms ease-out;
}

.faq-item[open] .faq-icon {
  background: linear-gradient(135deg, rgba(0, 144, 248, 0.2) 0%, rgba(34, 197, 94, 0.2) 100%);
}

.faq-answer {
  animation: fadeInDown 300ms ease-out;
}

@keyframes fadeInAnswer {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile FAQ */
@media (max-width: 640px) {
  .faq-item {
    border-radius: 12px;
  }
  
  .faq-question {
    padding: 14px 16px !important;
    border-radius: 12px !important;
  }
  
  .faq-item[open] .faq-question {
    border-radius: 12px 12px 0 0 !important;
  }
}

/* RTL FAQ */
[dir="rtl"] .faq-question {
  text-align: right;
}

[dir="rtl"] .faq-answer p {
  text-align: right;
}

/* ============================================
   WHATSAPP CTA BUTTONS
   ============================================ */

/* CTA buttons with WhatsApp icon */
.ngu-cta-primary,
.ngu-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.ngu-cta-primary svg,
.ngu-cta-secondary svg {
  flex-shrink: 0;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  z-index: 9999;
}

.whatsapp-float:hover {
  transform: scale(1.05);
}

.whatsapp-float:active {
  transform: scale(0.95);
}

/* Mobile adjustments for floating button */
@media (max-width: 640px) {
  .whatsapp-float {
    bottom: 16px !important;
  }
  
  [dir="ltr"] .whatsapp-float {
    right: 16px !important;
  }
  
  [dir="rtl"] .whatsapp-float {
    left: 16px !important;
  }
}

/* RTL Service Card Improvements */
[dir="rtl"] .service-card h3 {
  font-weight: 600;
}

[dir="rtl"] .service-card p {
  font-weight: 400;
  line-height: 1.8;
}

/* Arabic Services Mobile Optimizations */
@media (max-width: 640px) {
  [dir="rtl"] .service-card h3 {
    font-size: 18px;
    line-height: 1.4;
  }
  
  [dir="rtl"] .service-card p {
    font-size: 14px;
    line-height: 1.75;
  }
  
  [dir="rtl"] .services-section h2 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
  }
}

/* Touch Active States for Mobile */
@media (hover: none) and (pointer: coarse) {
  .service-card:active {
    transform: scale(0.98);
    transition: transform 100ms ease-out;
  }
  
  .ngu-cta-primary:active,
  .ngu-cta-secondary:active {
    transform: scale(0.96);
    transition: transform 100ms ease-out;
  }
  
  .card-hover:active {
    transform: scale(0.98);
    transition: transform 100ms ease-out;
  }
  
  /* Disable hover effects on touch devices */
  .service-card:hover {
    transform: none;
    box-shadow: none;
  }
  
  .card-hover:hover {
    transform: none;
  }
}

/* ============================================
   MOBILE PERFORMANCE OPTIMIZATIONS
   ============================================ */

.mobile-optimized .web3-bg-layer-a,
.mobile-optimized .web3-bg-layer-b,
.mobile-optimized .web3-bg-layer-c,
.mobile-optimized .web3-bg-layer-d {
  will-change: auto;
}

/* Reduce parallax intensity on mobile */
@media (max-width: 768px) {
  .web3-bg-layer-a,
  .web3-bg-layer-b,
  .web3-bg-layer-c,
  .web3-bg-layer-d {
    transition: transform 0.2s linear;
  }
  
  /* Reduce blur effects on mobile for performance */
  .fade-in-section {
    filter: none;
  }
  
  .section-content {
    filter: none;
  }
  
  .feature-card {
    filter: none;
  }
  
  /* Simplify card hover on mobile */
  .card-hover:hover {
    transform: translateY(-4px) scale(1.01);
  }
  
  /* Reduce particle count visibility on mobile */
  .web3-particle:nth-child(n+6) {
    display: none;
  }
  
  /* Optimize intelligence line on mobile */
  .ngu-intelligence-line {
    height: 60px;
    filter: none;
  }
  
  /* RTL Mobile: Ensure text remains intact */
  [dir="rtl"] .section-title,
  [dir="rtl"] .section-content,
  [dir="rtl"] .feature-card {
    filter: none !important;
  }
}