/* الألوان الأساسية: الأزرق والأبيض */
:root {
  --primary-blue: #007aff; /* أزرق Apple/تقني قوي */
  --light-blue: #f0f8ff; /* أزرق سماوي فاتح للخلفيات */
  --text-color: #333333;
  --background-white: #ffffff;
  --dark-footer: #004d99;
  --font-family: "Cairo", sans-serif;
}

/* التصفير الأساسي وتطبيق الخط */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  color: var(--text-color);
  background-color: var(--background-white);
  direction: rtl;
  overflow-x: hidden;
}

/* الأقسام المشتركة */
.section {
  padding: 100px 5%;
  min-height: 80vh;
}

.section-title {
  text-align: center;
  font-size: 38px;
  margin-bottom: 60px;
  color: var(--primary-blue);
  position: relative;
}

/* شريط التنقل (Navbar) */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 15px 30px;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.navbar .logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-blue);
}

.navbar nav a {
  text-decoration: none;
  color: var(--text-color);
  margin: 0 15px;
  font-weight: 500;
  transition: color 0.3s;
}

.navbar nav a:hover {
  color: var(--primary-blue);
}

/* --- 1. القسم الرئيسي (Hero Section) --- */

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 100px 5% 0;
  background: linear-gradient(
    180deg,
    var(--background-white) 0%,
    var(--light-blue) 100%
  );
  overflow: hidden;
}

.hero-curve-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  animation: slow-move 20s infinite alternate; /* حركة خلفية بسيطة */
}

.hero-content {
  z-index: 10;
  max-width: 900px;
  animation: fadeIn 1.5s ease-out forwards;
}

.hero-content h1 {
  font-size: 64px;
  color: var(--text-color);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
}

.hero-content p {
  font-size: 24px;
  color: #555;
  margin-bottom: 40px;
}

.cta-button {
  display: inline-block;
  padding: 15px 40px;
  background-color: var(--primary-blue);
  color: var(--background-white);
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 15px rgba(0, 122, 255, 0.4);
}

.cta-button:hover {
  background-color: #0056b3;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 122, 255, 0.6);
}

.hero-visual {
  position: absolute;
  bottom: 50px;
  left: 10%;
  width: 250px;
  height: 250px;
  z-index: 5;
  animation: slideUpFadeIn 2s ease-out 0.5s forwards;
}

.flutter-svg {
  width: 100%;
  height: 100%;
  animation: pulse 4s infinite ease-in-out; /* حركة نبض بسيطة */
}

/* فاصل منحني */
.curved-divider {
  width: 100%;
  line-height: 0;
}
.curved-divider svg {
  display: block;
  width: 100%;
  height: auto;
}

/* --- 2. من نحن (About Us) --- */
.about-section {
  background-color: var(--background-white);
  text-align: center;
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-content p {
  font-size: 20px;
  line-height: 1.8;
  margin-bottom: 40px;
}

.values-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-blue);
}

/* --- 3. الخدمات (Our Services) --- */

.services-section {
  background-color: var(--light-blue);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.service-card {
  background-color: var(--background-white);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(0, 122, 255, 0.1);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 122, 255, 0.2);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
}

.service-card h3 {
  color: var(--primary-blue);
  margin-bottom: 10px;
  font-size: 22px;
}

.service-card p {
  color: #666;
}

/* --- 4. نموذج طلب الخدمات (Request Form) --- */

.form-section {
  background-color: var(--background-white);
  padding: 80px 5%;
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--light-blue); /* خلفية زرقاء فاتحة للنموذج */
  padding: 40px;
  border-radius: 20px; /* منحنيات */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--primary-blue);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: var(--font-family);
  font-size: 16px;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary-blue);
  outline: none;
  box-shadow: 0 0 5px rgba(0, 122, 255, 0.3);
}

.submit-button {
  width: 100%;
  margin-top: 20px;
  border: none;
}

/* --- 5. التواصل والتذييل (Contact & Footer) --- */

.footer {
  background-color: var(--dark-footer);
  color: var(--background-white);
  padding: 40px 5%;
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto 20px;
}

.contact-info h3 {
  margin-bottom: 15px;
  color: var(--light-blue);
}

.contact-info p {
  margin: 5px 0;
}

.social-links a {
  display: inline-block;
  color: var(--background-white);
  text-decoration: none;
  margin: 0 10px;
  font-size: 20px;
  border: 2px solid var(--background-white);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  line-height: 38px;
  transition: background-color 0.3s;
}

.social-links a:hover {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
}

.copyright {
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 10px;
  font-size: 14px;
}

/* --- حركات الانيميشن (Keyframes) --- */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUpFadeIn {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
  100% {
    transform: scale(1);
  }
}

@keyframes slow-move {
  0% {
    transform: translateY(0px);
  }
  100% {
    transform: translateY(-10px);
  }
}

/* --- استجابة الهواتف (Media Query) --- */
@media (max-width: 768px) {
  .navbar nav {
    display: none; /* إخفاء القائمة واستبدالها بقائمة همبرغر في الإنتاج */
  }
  .hero-content h1 {
    font-size: 40px;
  }
  .hero-content p {
    font-size: 18px;
  }
  .hero-visual {
    display: none;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .footer-content {
    flex-direction: column;
    gap: 20px;
  }
}
