:root {
  --brand-primary: #2563EB;
  --brand-primary-hover: #1D4ED8;
  --brand-navy: #0B132B;
  --brand-navy-light: #152243;
  --brand-orange: #F97316;
}

body {
  font-family: 'Cairo', 'Readex Pro', system-ui, -apple-system, sans-serif;
  background-color: #F8FAFC;
  color: #0F172A;
  overflow-x: hidden;
}

.font-inter {
  font-family: 'Inter', system-ui, sans-serif;
}

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

/* Smooth SPA views */
.page-view {
  display: none;
  animation: fadeInView 0.32s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.page-view.active {
  display: block;
}

@keyframes fadeInView {
  from { opacity: 0; transform: translate3d(0, 8px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* Subtle geometric pattern background */
.bg-circuit-pattern {
  background-color: var(--brand-navy);
  background-image:
    radial-gradient(circle at 20% 25%, rgba(37, 99, 235, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 80% 75%, rgba(249, 115, 22, 0.14) 0%, transparent 45%),
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 44px 44px, 44px 44px;
}

/* ============================================================================
   REACT BITS ANIMATIONS SUITE (GPU-Composited 60fps)
   ============================================================================ */

/* 1. Top Scroll Progress Line */
#rbScrollProgress {
  position: fixed;
  top: 0;
  right: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #F97316, #38BDF8, #2563EB);
  z-index: 9998;
  transition: width 0.08s linear;
}

/* 2. React Bits Word Reveal Animation (Arabic Ligature Safe, No Blur Lag) */
.rb-blur-word {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.rb-blur-word.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* 3. React Bits ShinyText Metallic Sweep */
.rb-shiny-text {
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.82) 35%,
    #ffffff 48%,
    #FDBA74 52%,
    rgba(255, 255, 255, 0.82) 65%
  );
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  animation: rbShinySweep 4.2s infinite linear;
}

@keyframes rbShinySweep {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}

/* 4. React Bits GradientText Flowing Colors */
.rb-gradient-text {
  background: linear-gradient(90deg, #FFFFFF, #38BDF8, #F97316, #60A5FA, #FFFFFF);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  animation: rbGradientShift 6s ease infinite;
}

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

/* 5. React Bits StarBorder Animated Orbiting Border */
.rb-star-border {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 2px;
  border-radius: 0.9rem;
}

.rb-star-border::before {
  content: "";
  position: absolute;
  inset: -120%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 240deg,
    #38BDF8 290deg,
    #F97316 330deg,
    #FFFFFF 355deg,
    transparent 360deg
  );
  animation: rbStarOrbit 3.4s linear infinite;
  z-index: -1;
}

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

/* 6. React Bits SpotlightCard & BorderGlow */
.rb-spotlight-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  --spot-x: -999px;
  --spot-y: -999px;
}

.rb-spotlight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    380px circle at var(--spot-x) var(--spot-y),
    rgba(37, 99, 235, 0.14),
    rgba(249, 115, 22, 0.06) 40%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

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

.rb-spotlight-dark::before {
  background: radial-gradient(
    420px circle at var(--spot-x) var(--spot-y),
    rgba(56, 189, 248, 0.25),
    rgba(249, 115, 22, 0.12) 42%,
    transparent 72%
  );
}

/* 7. Crisp Hardware-Accelerated Card Lift */
.rb-tilted-card {
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.rb-tilted-card:hover {
  transform: translate3d(0, -4px, 0);
}

.dest-card img {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.dest-card:hover img {
  transform: scale(1.04);
}

/* 8. React Bits AnimatedContent (Fast GPU Scroll Reveal) */
.rb-reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.rb-reveal.rb-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* 9. React Bits LogoLoop / Infinite Marquee */
.rb-marquee-wrap {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.rb-marquee-track {
  display: flex;
  width: max-content;
  gap: 1.5rem;
  animation: rbMarqueeScroll 32s linear infinite;
}

[dir="rtl"] .rb-marquee-track {
  animation-name: rbMarqueeScrollRtl;
}

.rb-marquee-wrap:hover .rb-marquee-track {
  animation-play-state: paused;
}

@keyframes rbMarqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes rbMarqueeScrollRtl {
  0% { transform: translateX(0); }
  100% { transform: translateX(50%); }
}

/* 10. React Bits Floating Glass Dock */
.rb-dock {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 45;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 22px;
  background: rgba(11, 19, 43, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 30px rgba(2, 6, 23, 0.4);
}

.rb-dock-item {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #E2E8F0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s, color 0.2s;
  transform-origin: bottom center;
  position: relative;
  cursor: pointer;
}

.rb-dock-item:hover {
  background: #2563EB;
  color: #FFFFFF;
}

.rb-dock-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #0F172A;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: opacity 0.18s, transform 0.18s;
}

.rb-dock-item:hover .rb-dock-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* 11. Floating Badge Animation */
@keyframes rbFloatSlow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

.rb-float-slow {
  animation: rbFloatSlow 4s ease-in-out infinite;
}

/* Trip Type Radio Card */
.trip-radio-card {
  transition: all 0.2s ease;
}
.trip-radio-card:has(input:checked) {
  border-color: var(--brand-primary);
  background-color: #EFF6FF;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
}

/* Reduced motion & CMS Animation Disable Mode */
body.rb-animations-off *,
body.rb-animations-off *::before,
body.rb-animations-off *::after {
  animation: none !important;
  transition: none !important;
}
body.rb-animations-off .rb-reveal,
body.rb-animations-off .rb-blur-word {
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
}
body.rb-animations-off #rbDockNav,
body.rb-animations-off #rbClickSparkCanvas,
body.rb-animations-off canvas.rb-bg-canvas {
  display: none !important;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #F1F5F9; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #94A3B8; }

/* ============================================================================
   COMPREHENSIVE DARK MODE SUPPORT
   ============================================================================ */
body.dark-mode {
  background-color: #060B19 !important;
  color: #F1F5F9 !important;
}

body.dark-mode #homeVipSection,
body.dark-mode .bg-slate-50 {
  background-color: #0B132B !important;
  color: #E2E8F0 !important;
}

body.dark-mode #homeWhyUsSection,
body.dark-mode .bg-white {
  background-color: #111B36 !important;
  color: #F1F5F9 !important;
}

body.dark-mode .bg-slate-100,
body.dark-mode .bg-slate-100\/70 {
  background-color: #091024 !important;
}

body.dark-mode .border-slate-200,
body.dark-mode .border-slate-200\/80,
body.dark-mode .border-slate-200\/70,
body.dark-mode .border-slate-100 {
  border-color: #1E2D52 !important;
}

body.dark-mode .text-slate-900,
body.dark-mode .text-slate-800 {
  color: #F8FAFC !important;
}

body.dark-mode .text-slate-700,
body.dark-mode .text-slate-600 {
  color: #CBD5E1 !important;
}

body.dark-mode .text-slate-500,
body.dark-mode .text-slate-400 {
  color: #94A3B8 !important;
}

body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
  background-color: #0B132B !important;
  border-color: #253663 !important;
  color: #F8FAFC !important;
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
  color: #64748B !important;
}

body.dark-mode thead.bg-slate-50 {
  background-color: #0B132B !important;
}

body.dark-mode tr.hover\:bg-slate-50:hover {
  background-color: #17254B !important;
}

body.dark-mode .trip-radio-card:has(input:checked) {
  background-color: #172554 !important;
  border-color: #3B82F6 !important;
}

@media print {
  header, footer, #rbDockNav, #rbClickSparkCanvas, .no-print {
    display: none !important;
  }
}
