/* Tailwind Directives (Assumed to be loaded via CDN, but good to have structure here for reference or if build process added later) */
/* Core Variables */
:root {
  --primary-color: #cda45e;
  /* Gold */
  --secondary-color: #0c2e4e;
  /* Navy */
  --dark-bg: #051221;
  /* Deep Navy */
  --light-bg: #f8fafc;
  /* Slate-50 */
  --glass-border: rgba(255, 255, 255, 0.1);
  /* Performance: Reduced transparency to compensate for removed blur */
  --glass-bg-light: rgba(255, 255, 255, 0.95);
  --glass-bg-dark: rgba(5, 18, 33, 0.95);
}

/* PERFORMANCE: Disable Expensive GPU Effects Globally */
* {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  /* Optional: simplifies rendering */
  text-shadow: none !important;
  /* Optional: simplifies text rendering */
}

/* Re-enable modest box-shadow for cards only where necessary, or leave flat */
.glass,
.card,
.btn {
  /* Keep subtle border instead of heavy shadow */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

/* Base Styles */
body {
  font-family: 'Inter', sans-serif;
  /* Fallback for English */
}

/* Arabic Font Logic - Applied when dir="rtl" */
html[dir="rtl"] body {
  font-family: 'Cairo', sans-serif;
}

/* Smooth Transitions for Theme Switch */
body {
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Glassmorphism Utilities */
.glass {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg-light);
}

/* Dark Mode Glass */
.dark .glass {
  background: var(--glass-bg-dark);
  border-color: rgba(255, 255, 255, 0.05);
}

/* Specific Header Glass for Redesign */
.header-glass {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.85);
  /* Light Mode: White Glass */
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.dark .header-glass {
  background: rgba(2, 6, 23, 0.7);
  /* Dark Mode: Navy Glass */
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Floating Animations */
@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0px);
  }
}

@keyframes breathe {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.05);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 0.8;
  }
}

@keyframes fly-in {
  0% {
    transform: translateX(50px);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ANIMATIONS - PERFORMANCE MODE (Globally Reduced) */

/* 1. Disable Infinite Animations (Float, Breathe, Ping, Pulse) */
.animate-float,
.animate-breathe,
.animate-ping,
.animate-pulse,
.animate-bounce {
  animation: none !important;
  transform: none !important;
}

/* 2. Disable/Simplify Entry Animations (Fly-in) */
/* Currently disabling completely to fix 'lag' */
.animate-fly-in {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

/* 3. Global Safety for ALL devices to prevent flicker/lag */
@media (max-width: 767px) {

  .animate-fly-in,
  .animate-float,
  .animate-breathe,
  .animate-on-scroll,
  [class*="animate-"],
  .opacity-0,
  .translate-y-10 {
    animation: none !important;
    -webkit-animation: none !important;
    transform: none !important;
    -webkit-transform: none !important;
    transition: none !important;
    opacity: 1 !important;
  }
}

/* Delay Utilities */
.delay-100 {
  animation-delay: 100ms;
}

.delay-200 {
  animation-delay: 200ms;
}

.delay-300 {
  animation-delay: 300ms;
}

.delay-400 {
  animation-delay: 400ms;
}

.delay-500 {
  animation-delay: 500ms;
}

.delay-700 {
  animation-delay: 700ms;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 5px;
}

.dark ::-webkit-scrollbar-thumb {
  background: #475569;
}

/* Slider / Partner Marquee */
.partner-slider {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  direction: ltr;
  /* Force LTR for consistent transform logic */
}

.partner-track {
  display: inline-flex;
  gap: 3rem;
  /* equivalent to gap-12 in tailwind approx */
  animation: slide-partners-right 10s linear infinite;
  width: max-content;
}

/* Move Left (R <- L) Standard */
@keyframes slide-partners-left {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Move Right (L -> R) Requested by User */
@keyframes slide-partners-right {
  0% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(0);
  }
}

/* Utility for hiding scrollbar but allowing scroll */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* ... existing code ... */
.no-scrollbar {
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

/* =========================================
   HERO REDESIGN STYLES (BRAND IDENTITY)
   ========================================= */

/* Deep Space Background - Adapted for Theme */
.hero-bg {
  background-color: #f8fafc;
  /* Light Mode: Light Slate */
  background-image:
    radial-gradient(circle at 50% 50%, rgba(205, 164, 94, 0.05), transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(12, 46, 78, 0.05), transparent 30%);
  transition: background 0.3s ease;
}

.dark .hero-bg {
  background-color: #051221;
  /* Brand Dark Navy */
  background-image:
    radial-gradient(circle at 50% 50%, rgba(205, 164, 94, 0.08), transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(12, 46, 78, 0.4), transparent 30%);
}

/* Grid Pattern */
.hero-grid {
  background-size: 50px 50px;
  background-image:
    linear-gradient(rgba(12, 46, 78, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 46, 78, 0.05) 1px, transparent 1px);
  mask-image: radial-gradient(circle at center, black 60%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle at center, black 60%, transparent 100%);
}

.dark .hero-grid {
  background-image:
    linear-gradient(rgba(205, 164, 94, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(205, 164, 94, 0.03) 1px, transparent 1px);
}

/* Hero Badge */
.hero-badge {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(205, 164, 94, 0.3);
  box-shadow: 0 0 20px rgba(205, 164, 94, 0.05);
  backdrop-filter: blur(8px);
  color: #cda45e;
}

.dark .hero-badge {
  background: rgba(12, 46, 78, 0.5);
  border: 1px solid rgba(205, 164, 94, 0.2);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
}

/* Neon Icon Cards */
.neon-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(205, 164, 94, 0.2);
  box-shadow:
    0 0 0 1px rgba(205, 164, 94, 0.05),
    0 4px 6px -1px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.dark .neon-card {
  background: rgba(5, 18, 33, 0.7);
  border: 1px solid rgba(205, 164, 94, 0.1);
  box-shadow:
    0 0 0 1px rgba(205, 164, 94, 0.05),
    0 4px 6px -1px rgba(0, 0, 0, 0.2),
    inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.neon-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 0 0 1px rgba(205, 164, 94, 0.3),
    0 10px 15px -3px rgba(0, 0, 0, 0.2),
    0 0 20px rgba(205, 164, 94, 0.15);
  border-color: rgba(205, 164, 94, 0.4);
}

/* Brand Primary Button with Glow */
.btn-primary-glow {
  background: linear-gradient(135deg, #cda45e 0%, #b08d55 100%);
  box-shadow: 0 0 20px rgba(205, 164, 94, 0.3);
  position: relative;
  overflow: hidden;
  color: #051221;
  /* Dark text on Gold for contrast */
}

.btn-primary-glow::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  100% {
    left: 100%;
  }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 20;
}

.mouse-icon {
  width: 26px;
  height: 42px;
  border: 2px solid rgba(205, 164, 94, 0.3);
  border-radius: 20px;
  position: relative;
}

.mouse-wheel {
  width: 4px;
  height: 8px;
  background: #cda45e;
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
  0% {
    top: 8px;
    opacity: 1;
  }

  100% {
    top: 24px;
    opacity: 0;
  }
}

/* Text Glow Support */
.text-glow {
  text-shadow: 0 0 30px rgba(205, 164, 94, 0.2);
}





/* Hero Badge */
.hero-badge {
  background: rgba(12, 46, 78, 0.5);
  border: 1px solid rgba(205, 164, 94, 0.2);
  box-shadow: 0 0 20px rgba(205, 164, 94, 0.1);
  backdrop-filter: blur(8px);
  color: #cda45e;
}

/* Neon Icon Cards */
.neon-card {
  background: rgba(5, 18, 33, 0.7);
  border: 1px solid rgba(205, 164, 94, 0.1);
  box-shadow:
    0 0 0 1px rgba(205, 164, 94, 0.05),
    0 4px 6px -1px rgba(0, 0, 0, 0.2),
    inset 0 0 20px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.neon-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 0 0 1px rgba(205, 164, 94, 0.3),
    0 10px 15px -3px rgba(0, 0, 0, 0.2),
    0 0 20px rgba(205, 164, 94, 0.15);
  border-color: rgba(205, 164, 94, 0.4);
}

/* Brand Primary Button with Glow */
.btn-primary-glow {
  background: linear-gradient(135deg, #cda45e 0%, #b08d55 100%);
  box-shadow: 0 0 20px rgba(205, 164, 94, 0.3);
  position: relative;
  overflow: hidden;
  color: #051221;
  /* Dark text on Gold for contrast */
}

.btn-primary-glow::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  100% {
    left: 100%;
  }
}

/* Scroll Indicator */
.scroll-indicator {
  /* position: absolute; removed for tailwind control */
  /* bottom/right removed */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 20;
}

.mouse-icon {
  width: 26px;
  height: 42px;
  border: 2px solid rgba(205, 164, 94, 0.3);
  border-radius: 20px;
  position: relative;
}

.mouse-wheel {
  width: 4px;
  height: 8px;
  background: #cda45e;
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
  0% {
    top: 8px;
    opacity: 1;
  }

  100% {
    top: 24px;
    opacity: 0;
  }
}

/* Text Glow Support */
.text-glow {
  text-shadow: 0 0 30px rgba(205, 164, 94, 0.2);
}

/* Text Glow Support */
.text-glow {
  text-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}