body {
  box-sizing: border-box;
  font-family: 'Tajawal', sans-serif;
  background-color: #020617;
  overflow-x: hidden;
}
    
h1, h2, .accelerator-font {
  font-family: 'Changa', sans-serif;
}

:root {
  --accent-gradient: linear-gradient(135deg, #00FFFF, #A855F7, #FF4500);
  --glow-color: rgba(0, 255, 255, 0.5);
}

.warp-speed-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  opacity: 0.4;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  opacity: 0;
  animation: warp 3s infinite linear;
}

.star:nth-child(1) { top: 50%; left: 50%; animation-delay: 0s; }
.star:nth-child(2) { top: 45%; left: 55%; animation-delay: 0.5s; }
.star:nth-child(3) { top: 55%; left: 45%; animation-delay: 1s; }
.star:nth-child(4) { top: 40%; left: 60%; animation-delay: 1.5s; }
.star:nth-child(5) { top: 60%; left: 40%; animation-delay: 2s; }

@keyframes warp {
  0% { transform: translate(-50%, -50%) scale(0.1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(15); opacity: 0; }
}

.text-accelerate {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.4));
}

.btn-accelerator {
  position: relative;
  background: var(--accent-gradient);
  border: none;
  overflow: hidden;
  transition: all 0.3s ease;
  transform: skewX(-10deg);
}

.btn-accelerator span { transform: skewX(10deg); display: block; }

.btn-accelerator:hover {
  transform: skewX(-10deg) scale(1.05) translateY(-3px);
  box-shadow: 0 0 30px var(--glow-color);
}

.btn-accelerator::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -150%;
  width: 50%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: skewX(-20deg);
  animation: shimmer 2s infinite;
}

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

.btn-secondary {
  position: relative;
  background: transparent;
  border: 2px solid;
  border-image: var(--accent-gradient) 1;
  transition: all 0.3s ease;
  transform: skewX(-10deg);
}

.btn-secondary span { transform: skewX(10deg); display: block; }

.btn-secondary:hover {
  background: rgba(168, 85, 247, 0.2);
  transform: skewX(-10deg) scale(1.05);
}

.feature-card {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 255, 0.2);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.feature-card:hover::before { transform: scaleX(1); }

.feature-card:hover {
  transform: translateY(-10px) skewX(-3deg);
  border-color: rgba(0, 255, 255, 0.5);
  box-shadow: 0 20px 40px rgba(0, 255, 255, 0.1);
}

.feature-icon {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

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

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 0;
  width: 0; height: 2px;
  background: var(--accent-gradient);
  transition: width 0.3s ease;
}

.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: #00FFFF; }

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

.footer-border { background: var(--accent-gradient); height: 1px; }

.page-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #020617;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}

.page-overlay.active { transform: translateX(0); }

.course-card {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 255, 0.2);
  transition: all 0.3s ease;
  overflow: hidden;
}

.course-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 255, 255, 0.5);
  box-shadow: 0 15px 30px rgba(0, 255, 255, 0.1);
}

.filter-btn {
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.2);
}

.filter-btn.active {
  background: var(--accent-gradient);
  border-color: transparent;
}

.filter-btn:hover:not(.active) {
  border-color: rgba(0, 255, 255, 0.5);
  background: rgba(0, 255, 255, 0.1);
}

/* حركات الدول */
.country-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.country-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* السعودية */
.country-overlay.saudi-theme {
  background: radial-gradient(circle at center, rgba(22, 101, 52, 0.95) 0%, rgba(2, 6, 23, 0.98) 70%);
}

.saudi-crescent {
  position: absolute;
  font-size: 8rem;
  color: #ffd700;
  filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.8)) drop-shadow(0 0 60px rgba(34, 197, 94, 0.6));
  animation: crescentGlow 1.5s ease-out forwards;
}

@keyframes crescentGlow {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0) rotate(-180deg); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.3) rotate(0deg); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(2) rotate(20deg); }
}

.palm-tree {
  position: absolute;
  font-size: 4rem;
  opacity: 0;
  animation: palmGrow 1.2s ease-out forwards;
}

@keyframes palmGrow {
  0% { opacity: 0; transform: translateY(100px) scale(0); }
  50% { opacity: 1; transform: translateY(-20px) scale(1.2); }
  100% { opacity: 0; transform: translateY(-50px) scale(0.8); }
}

.saudi-star {
  position: absolute;
  background: radial-gradient(circle, #ffd700 0%, transparent 70%);
  border-radius: 50%;
  animation: starTwinkle 1s ease-out forwards;
}

@keyframes starTwinkle {
  0% { opacity: 0; transform: scale(0); }
  50% { opacity: 1; transform: scale(1.5); }
  100% { opacity: 0; transform: scale(0.5); }
}

.sand-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #d4a574;
  border-radius: 50%;
  animation: sandRise 1.3s ease-out forwards;
}

@keyframes sandRise {
  0% { opacity: 0; transform: translateY(0) scale(0); }
  30% { opacity: 1; transform: translateY(-100px) scale(1); }
  100% { opacity: 0; transform: translateY(-300px) scale(0.3); }
}

/* الأردن */
.country-overlay.jordan-theme {
  background: radial-gradient(circle at center, rgba(190, 100, 120, 0.95) 0%, rgba(2, 6, 23, 0.98) 70%);
}

.petra-arch {
  position: absolute;
  width: 150px;
  height: 200px;
  border: 8px solid #c9a084;
  border-bottom: none;
  border-radius: 75px 75px 0 0;
  box-shadow: 0 0 40px rgba(201, 160, 132, 0.6);
  animation: archReveal 1.3s ease-out forwards;
}

@keyframes archReveal {
  0% { opacity: 0; transform: translate(-50%, -50%) scaleY(0); }
  50% { opacity: 1; transform: translate(-50%, -50%) scaleY(1.1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scaleY(1) scale(1.5); }
}

.petra-column {
  position: absolute;
  width: 20px;
  height: 0;
  background: linear-gradient(180deg, #d4a084 0%, #a67c5b 100%);
  border-radius: 3px 3px 0 0;
  animation: columnRise 1s ease-out forwards;
}

@keyframes columnRise {
  0% { height: 0; opacity: 0; }
  60% { height: 120px; opacity: 1; }
  100% { height: 80px; opacity: 0; }
}

.jordan-rose {
  position: absolute;
  font-size: 3rem;
  animation: roseBloom 1.2s ease-out forwards;
}

@keyframes roseBloom {
  0% { opacity: 0; transform: scale(0) rotate(-90deg); }
  50% { opacity: 1; transform: scale(1.3) rotate(0deg); }
  100% { opacity: 0; transform: scale(0.5) rotate(45deg) translateY(-30px); }
}

.rock-fragment {
  position: absolute;
  background: linear-gradient(135deg, #c9a084 0%, #8b6b4d 100%);
  border-radius: 30%;
  animation: rockBurst 1.2s ease-out forwards;
}

@keyframes rockBurst {
  0% { opacity: 0; transform: translateY(0) rotate(0deg) scale(0); }
  30% { opacity: 1; transform: translateY(-80px) rotate(180deg) scale(1); }
  100% { opacity: 0; transform: translateY(-200px) rotate(360deg) scale(0.3); }
}

/* العراق */
.country-overlay.iraq-theme {
  background: radial-gradient(circle at center, rgba(180, 140, 60, 0.95) 0%, rgba(2, 6, 23, 0.98) 70%);
}

.iraq-sun {
  position: absolute;
  font-size: 10rem;
  filter: drop-shadow(0 0 50px rgba(255, 200, 0, 0.9)) drop-shadow(0 0 100px rgba(255, 150, 0, 0.6));
  animation: sunBurst 1.5s ease-out forwards;
}

@keyframes sunBurst {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0) rotate(-180deg); }
  40% { opacity: 1; transform: translate(-50%, -50%) scale(1.2) rotate(0deg); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(3) rotate(45deg); }
}

.ziggurat-level {
  background: linear-gradient(180deg, #c9a060 0%, #8b7040 100%);
  margin: 0 auto 2px;
}

.iraq-ziggurat {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: zigguratBuild 1.3s ease-out forwards;
}

@keyframes zigguratBuild {
  0% { opacity: 0; transform: translate(-50%, 100px) scale(0.5); }
  50% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50px) scale(1.3); }
}

.tigris-wave {
  position: absolute;
  width: 300px;
  height: 30px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.6), rgba(34, 211, 238, 0.6), transparent);
  border-radius: 50%;
  animation: waveFlow 1.2s ease-out forwards;
}

@keyframes waveFlow {
  0% { opacity: 0; transform: translateX(-50%) scaleX(0); }
  50% { opacity: 1; transform: translateX(-50%) scaleX(1); }
  100% { opacity: 0; transform: translateX(-50%) scaleX(1.5) translateY(-30px); }
}

.cuneiform {
  position: absolute;
  font-size: 2rem;
  color: #c9a060;
  text-shadow: 0 0 15px rgba(201, 160, 96, 0.8);
  animation: cuneiformFade 1s ease-out forwards;
}

@keyframes cuneiformFade {
  0% { opacity: 0; transform: scale(0) rotate(-45deg); }
  50% { opacity: 1; transform: scale(1.2) rotate(0deg); }
  100% { opacity: 0; transform: scale(0.8) rotate(15deg) translateY(-20px); }
}

/* حركة بنك الأسئلة */
.question-bank-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at center, rgba(139, 92, 246, 0.4) 0%, rgba(2, 6, 23, 0.98) 60%);
  transition: opacity 0.3s;
}

.question-bank-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.brain-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 8rem;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 40px rgba(139, 92, 246, 0.8)) drop-shadow(0 0 80px rgba(0, 255, 255, 0.5));
  animation: brainPulse 1.8s ease-out forwards;
}

@keyframes brainPulse {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0); }
  30% { opacity: 1; transform: translate(-50%, -50%) scale(1.3); }
  50% { transform: translate(-50%, -50%) scale(1); }
  70% { transform: translate(-50%, -50%) scale(1.2); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(2.5); }
}

.energy-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 4px solid;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: energyExpand 1.5s ease-out forwards;
}

@keyframes energyExpand {
  0% { width: 50px; height: 50px; opacity: 1; }
  100% { width: 500px; height: 500px; opacity: 0; }
}

.knowledge-orb {
  position: absolute;
  width: 25px;
  height: 25px;
  background: radial-gradient(circle, #00FFFF 0%, #A855F7 50%, transparent 70%);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
}

.question-mark {
  position: absolute;
  font-size: 3rem;
  color: #00FFFF;
  text-shadow: 0 0 20px rgba(0, 255, 255, 0.8), 0 0 40px rgba(168, 85, 247, 0.6);
  animation: questionFloat 1.3s ease-out forwards;
}

@keyframes questionFloat {
  0% { opacity: 0; transform: translateY(50px) rotate(-30deg) scale(0); }
  50% { opacity: 1; transform: translateY(-20px) rotate(10deg) scale(1.2); }
  100% { opacity: 0; transform: translateY(-80px) rotate(0deg) scale(0.5); }
}

.data-stream {
  position: absolute;
  width: 3px;
  height: 0;
  background: linear-gradient(180deg, transparent, #00FFFF, #A855F7, transparent);
  animation: streamFlow 1s ease-out forwards;
}

@keyframes streamFlow {
  0% { height: 0; opacity: 0; }
  50% { height: 100px; opacity: 1; }
  100% { height: 0; opacity: 0; transform: translateY(-150px); }
}

.flash-white {
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
  animation: flashWhite 0.4s ease-out 1.6s forwards;
}

@keyframes flashWhite {
  0% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 1; }
}

/* الشعار */
.logo-img {
  width: 120px;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
}

.footer-logo {
  width: 160px;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
}