@import url("https://fonts.googleapis.com/css2?family=Almarai:wght@400;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Almarai", sans-serif;
  scroll-behavior: smooth;
}

body {
  /* خلفية أعمق وأكثر حيوية */
  background: radial-gradient(circle at 50% 20%, #001f3f, #00040a);
  color: #fff;
  line-height: 1.8;
  overflow-x: hidden;
}

/* 🌊 تأثير الموجات الخلفية */
.wave-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  /* تغيير بسيط في تدرج الموجات */
  background: radial-gradient(
    circle,
    rgba(0, 180, 255, 0.15) 12%,
    transparent 13%
  );
  background-size: 100px 100px;
  animation: moveWave 12s linear infinite; /* أبطأ ليكون أكثر هدوءًا */
  opacity: 0.5; /* تخفيف الموجات */
}

@keyframes moveWave {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 100px 100px;
  }
}

/* 🧊 Glass Effect - تم تحسينه */
.glass {
  backdrop-filter: blur(15px); /* زيادة التشويش */
  background: rgba(255, 255, 255, 0.05); /* تقليل شفافية الخلفية */
  border: 1px solid rgba(255, 255, 255, 0.1); /* تخفيف حدود الزجاج */
  border-radius: 20px; /* زيادة الانحناء */
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37); /* ظل ثلاثي الأبعاد */
  transition: all 0.4s ease-in-out; /* إضافة انتقال للعناصر التي تستخدم هذا الكلاس */
}

/* 🧭 Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 10, 30, 0.8); /* خلفية أغمق وأقل شفافية بقليل */
  color: #40e0ff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  z-index: 1000;
  backdrop-filter: blur(15px); /* زيادة تشويش خلفية الناف بار */
  transition: 0.3s;
  border-bottom: 2px solid #00c6ff55; /* إضافة خط فاصل أنيق */
}

.navbar .logo {
  font-size: 24px;
  font-weight: 700;
  color: #40e0ff;
}

.navbar a {
  color: #fff;
  text-decoration: none;
  margin: 0 15px;
  font-weight: 500;
  transition: 0.4s ease;
  position: relative;
  padding-bottom: 5px;
}

/* تأثير خط تحتي عند التمرير */
.navbar a:hover {
  color: #40e0ff;
}
.navbar a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  right: 0;
  background-color: #40e0ff;
  transition: width 0.3s ease-out;
}
.navbar a:hover::after {
  width: 100%;
  left: 0;
  right: auto;
}

/* ✨ Hero */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 50px;
  max-width: 800px;
  /* إضافة تأثير حركة عند الظهور */
  animation: fadeInDown 1s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-size: 60px; /* حجم أكبر */
  color: #40e0ff; /* لون أزرق سماوي جديد */
  margin-bottom: 25px;
  text-shadow: 0 0 10px rgba(64, 224, 255, 0.5); /* ظل نص خفيف */
}

.hero p {
  font-size: 20px;
  color: #c0f8ff; /* لون أفتح للقراءة */
}

/* 🚀 الأزرار */
.btn {
  display: inline-block;
  margin-top: 30px;
  padding: 15px 40px; /* توسيع الأزرار */
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.4s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
}

.primary-btn {
  background: linear-gradient(135deg, #00c6ff, #40e0ff); /* تدرج لوني ألطف */
  color: #000; /* تغيير لون النص للأسود على الخلفية الفاتحة */
}

.primary-btn:hover {
  transform: scale(1.05); /* حركة توسع ألطف */
  box-shadow: 0 5px 25px rgba(64, 224, 255, 0.8); /* ظل مضيء قوي */
}

.secondary-btn {
  background: linear-gradient(135deg, #40e0ff, #007bff);
  color: #fff;
}

.secondary-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(0, 180, 255, 0.7);
}

/* ⚙️ الأقسام العامة */
section {
  padding: 120px 10%; /* زيادة التباعد بين الأقسام */
  position: relative;
}

h2 {
  font-size: 40px;
  color: #40e0ff;
  margin-bottom: 40px;
  text-align: center;
  position: relative;
  text-shadow: 0 0 5px rgba(64, 224, 255, 0.3);
}

h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #40e0ff;
  margin: 10px auto 0;
  border-radius: 5px;
}

/* ℹ️ من نحن - الإحصائيات */
.about-box {
  padding: 60px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.stats {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 50px;
}

.stats .card {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px 20px;
  border-radius: 15px;
  width: 200px;
  transition: all 0.4s ease;
  transform-style: preserve-3d; /* تفعيل المنظور الثلاثي */
  box-shadow: 0 0 15px rgba(0, 150, 255, 0.2);
}

.stats .card:hover {
  transform: translateY(-15px) rotateX(5deg) rotateY(5deg); /* حركة ثلاثية الأبعاد خفيفة */
  background: rgba(64, 224, 255, 0.15);
  box-shadow: 0 10px 30px rgba(64, 224, 255, 0.5);
}

.stats h3 {
  font-size: 36px;
  color: #40e0ff;
  margin-bottom: 5px;
}

/* 💼 الخدمات */
.services {
  text-align: center;
  background: radial-gradient(circle at top, #001025, #00040a);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(280px, 1fr)
  ); /* زيادة حجم البطاقات */
  gap: 30px;
}

.service-card {
  padding: 35px;
  transition: all 0.4s ease;
  text-align: right;
  transform-style: preserve-3d;
}

.service-card h3 {
  color: #40e0ff;
  margin-bottom: 15px;
  font-size: 22px;
}

.service-card:hover {
  transform: translateY(-10px) scale(1.02); /* رفع خفيف مع توسع */
  box-shadow: 0 15px 35px rgba(0, 150, 255, 0.4);
}

/* 🤝 الشراكة التقنية */
.partners {
  background: linear-gradient(180deg, #001025, #00040a);
  text-align: center;
}

.partners .subtitle {
  color: #c0f8ff;
  margin-bottom: 50px;
  font-size: 18px;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.partner-card {
  padding: 35px;
  transition: all 0.4s ease;
  text-align: center;
}

.partner-card h3 {
  color: #40e0ff;
  margin-bottom: 15px;
  font-size: 22px;
}

.partner-card:hover {
  transform: translateY(-10px) rotateZ(-1deg); /* دوران خفيف لمسة جمالية */
  box-shadow: 0 15px 35px rgba(0, 150, 255, 0.4);
}

/* 📞 تواصل معنا */
.contact {
  text-align: center;
}

.contact-box {
  padding: 60px;
  max-width: 700px;
  margin: 0 auto;
}

.contact input,
.contact textarea {
  width: 90%;
  max-width: 500px;
  padding: 15px;
  border: 1px solid rgba(64, 224, 255, 0.3); /* إطار بلون سماوي فاتح */
  border-radius: 12px;
  outline: none;
  font-size: 16px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.15); /* خلفية أكثر وضوحًا */
  color: #fff;
  transition: 0.3s;
}

.contact input:focus,
.contact textarea:focus {
  background: rgba(64, 224, 255, 0.1);
  border: 1px solid #40e0ff;
}

.contact textarea {
  height: 150px;
  resize: vertical; /* السماح بالتغيير العمودي فقط */
}

.info {
  color: #a3d8ff;
  font-size: 16px;
  margin-top: 25px;
}

/* ⬇️ الفوتر */
footer {
  background: #00040a;
  color: #a3d8ff;
  text-align: center;
  padding: 25px;
  font-size: 15px;
  border-top: 1px solid #00c6ff33;
}

/* 🔄 حركات الظهور (التي تعتمد على الـ JS) */
.fade-section {
  opacity: 0;
  transform: translateY(60px); /* زيادة حركة الانتقال العمودي */
  transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* منحنى حركة أكثر سلاسة */
}

.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 📱 الـ Media Queries (للتجاوب) */
@media (max-width: 992px) {
  .navbar nav {
    display: none; /* إخفاء قائمة التنقل على الشاشات الصغيرة - يمكن استبدالها بقائمة هامبرغر */
  }
  .navbar {
    justify-content: center;
  }
  .hero h1 {
    font-size: 44px;
  }
  .hero-content {
    padding: 30px;
  }
  section {
    padding: 80px 5%;
  }
  .about-box,
  .contact-box {
    padding: 30px;
  }
  .stats .card {
    width: 150px;
  }
  h2 {
    font-size: 30px;
  }
}
