@font-face {
  font-family: 'DINNextLTArabic';
  src: url('fonts/alfont_com_AlFont_com_DINNextLTArabic-Medium-2.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

body, html {
  margin: 0;
  padding: 0;
}

.body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  outline: 0;
}

@keyframes scaleUp { ... }
eUp {
  from {
    transform: scale(1); /* البداية بحجم طبيعي */
  }
  to {
    transform: scale(1.1); /* تكبير الصورة */
  }
}

/* حاوية الصورة */
.hero-container {
  position: relative;
  width: 100%;
  max-height: 90vh; /* الحد من ارتفاع الصورة */
  overflow: hidden; /* إخفاء أي جزء من الصورة يتجاوز المساحة المحددة */
  z-index: 1; /* تحديد ترتيب الطبقات */
}

.hero-container img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* لتغطية المساحة بشكل مثالي */
  display: block;
  transition: transform 2s ease-out;
}

/* تأثير التكبير عند التمرير */
.hero-container:hover img {
  transform: scale(1.1); /* تكبير الصورة */
}

/* الـ overlay */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* خلفية شفافة */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  animation: scaleUp 2s ease-out;
  z-index: 2; /* التأكد أن الـ overlay يظهر فوق الصورة */
}

/* النص العلوي (العنوان الرئيسي) */
.hero-text {
  color: white;
  font-size: 45px;
  font-weight: bold;
  text-align: center;
  padding: 20px;
  font-family: 'DINNextLTArabic', sans-serif;
  opacity: 0; /* نبدأ النص مخفي */
  animation: slideUp 2s ease-out 0.5s forwards; /* يبدأ بعد 0.5 ثانية */
  z-index: 3; /* التأكد من أن النص يظهر فوق الـ overlay */
}

/* النص الفرعي (العنوان الثاني) */
.sub-text {
  font-size: 30px;
  font-weight: normal;
  margin-top: 30px;
  font-family: 'DINNextLTArabic', sans-serif;
  opacity: 0; /* نبدأ النص مخفي */
  animation: slideUp 2s ease-out 1s forwards; /* يظهر بعد 1 ثانية */
  z-index: 3; /* التأكد من أن النص الفرعي يظهر فوق الـ overlay */
}

/* حركة النص */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px); /* يبدأ النص من أسفل */
  }
  to {
    opacity: 1;
    transform: translateY(0); /* يتحرك للنص في مكانه الطبيعي */
  }
}

/* الهيدر */
.base {
  background-color: rgb(237, 234, 234);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 50px;
  margin: 0;
  position: fixed; /* تغيير الـ position إلى fixed لجعل الهيدر ثابت */
  top: 0; /* يثبت الهيدر في أعلى الصفحة */
  left: 0;
  width: 100%; /* تأكد من أن الهيدر يغطي عرض الصفحة بالكامل */
  z-index: 10; /* تأكد من أن الهيدر يظهر فوق باقي العناصر */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* إضافة ظل أسفل الهيدر */
}

/* روابط الهيدر */
.header-links {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 35px;
}

.header-links a {
  color: black;
  text-decoration: none;
  font-family: 'DINNextLTArabic', sans-serif;
  font-size: 18px;
  padding: 4px 8px;
  border-radius: 6px;
  line-height: 1;
  transition: all 0.3s ease-in-out;
  display: inline-block;
}

.header-links a:hover {
  background-color: rgb(248, 251, 255);
  transform: translateY(-10px); /* يرتفع لأعلى */
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15); /* ظل أوضح */

}
التفسير:
/* سكشن الخدمات بعد الصورة */
.services-section {
  padding: 100px 20px 50px;
  background-color: #fff; /* لون خلفية أبيض نظيف */
  text-align: center;
}

.divider {
  width: 60%;
  margin: 0 auto 10px;
  border: none;
  height: 0px;
  background-color: #ccc; /* خط رفيع رمادي */
}

.services-title {
  font-family: 'DINNextLTArabic', sans-serif;
  font-size: 32px;
  color: #333;
  margin-top: 50px;
  margin-bottom: 90px;
  font-weight: normal; /* تعيين الخط إلى الوزن العادي (Regular) */
  text-align: center; /* تأكد من توسيط النص داخل العنصر */

}
/* الحاوية التي تحتوي على المستطيلات */
.services-rectangles {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 أعمدة */
  gap: 30px; /* تقليل المسافة بين المستطيلات */
  justify-items: center; /* لتوسيط المستطيلات داخل الأعمدة */
  margin-bottom: 20px; /* إضافة مسافة بيضاء تحت الحاوية */

}

/* المستطيلات */
.rectangle {
  width: 350px; /* تكبير عرض المستطيلات */
  height: 150px; /* تكبير ارتفاع المستطيلات */
  padding: 30px;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* الشادو الخفيف */
  border-radius: 5px;
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* حركة ناعمة */
}
.rectangle:hover {
  transform: translateY(-10px); /* يرتفع لأعلى */
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15); /* ظل أوضح */
}

/* العنوان داخل المستطيل */
.rectangle-title {
  font-family: 'DINNextLTArabic', sans-serif;
  font-size: 24px;
  color: #333;
  font-weight: bold;
  text-align: right;
  margin-bottom: 30px; /* مسافة بين العنوان والنص */
  margin-top: -55px;
}

/* النص داخل المستطيل */
.rectangle-description {
  font-family: 'DINNextLTArabic', sans-serif;
  font-size: 16px;
  color: #666;
  text-align: right;
}
/* الأيقونة داخل المستطيل */
.rectangle-icon {
  width: 50px; /* عرض الأيقونة */
  height: 50px;px; /* ارتفاع الأيقونة */
  margin-bottom: 3px; /* مسافة بين الأيقونة والعنوان */
  margin-top: 0px;
  margin-left: 30px
}
/* التأكد من أن .bottom-text يستخدم Flexbox */
.bottom-text {
  display: flex; /* لجعل العنصر يتصرف كـ Flexbox */
  justify-content: center; /* توسيط النص أفقيًا */
  align-items: center; /* توسيط النص عموديًا */
  height: 100px; /* تعيين ارتفاع العنصر */
  font-size: 25px; /* حجم الخط */
  color: #707070; /* لون النص */
  margin-top: 20px; /* المسافة بين العنصر السابق */
  width: 100%; /* لتأكيد أخذ العنصر العرض الكامل */
  text-align: center; /* توسيط النص داخل العنصر */
  font-family: 'DINNextLTArabic', sans-serif; /* استخدام الخط في العنصر */

}
/* تنسيق الحاوية الرئيسية للصور */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* تقسيم الصفحة إلى 4 أعمدة */
  gap: 110px; /* المسافة بين الصور (زيادة المسافة) */
  
  justify-items: center; /* توسيط الصور أفقيًا داخل الخلايا */
  align-items: center ; /* توسيط الصور عموديًا داخل الخلايا */padding: 20px; /* المسافة الداخلية */
  justify-items: center; /* توسيط الصور أفقيًا داخل الخلايا */
  width: 600%; /* تأكيد أن الحاوية تأخذ العرض الكامل */
  max-width: 900px; /* يمكنك تحديد عرض أقصى للحاوية */
  margin: 30 auto; /* توسيط الحاوية نفسها داخل الصفحة */
}

/* تنسيق كل صورة */
.image-item img {
  width: 170%; /* عرض الصورة 100% من حجم الخلية */
  height: auto; /* الحفاظ على التناسب بين العرض والارتفاع */
  max-width: 1000px; /* تعيين الحد الأقصى للعرض ليكون 300px */
  border-radius: 3px; /* حواف دائرية أكثر */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* تأثيرات الانتقال */
  margin-top: 30px;
  margin-bottom: -90px;
  margin-left: -40px;
}

/* تأثير عند المرور على الصورة */
.image-item img:hover {
  transform: scale(1.15); /* تكبير الصورة عند المرور */
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3); /* إضافة ظل للصورة */
}
.partners-section {
  text-align: center;
  font-family: 'DINNextLTArabic', sans-serif; /* استخدام الخط في العنصر */
  color: #707070; /* لون النص */
  font-weight: normal;

}
.partners-section {
  padding: 40px 20px;
}

.partners-section h2 {
  font-size: 28px;
  margin-bottom: 30px;
  margin-top: 110px; /* أو أقل حسب ما تحب */
  color: #333;
}

.logo-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.logos-wrapper {
  width: 600px; /* 3 لوجوهات × 200px */
  overflow: hidden;
  border: 2px solid #ddd;
  border-radius: 12px;
  background-color: #fff;
}

.logos-container {
  display: flex;
  transition: transform 0.4s ease;
}

.logos-container img {
  width: 200px;
  height: 100px;
  object-fit: contain;
  flex-shrink: 0;
  padding: 10px;
  box-sizing: border-box;
}

.arrow {
  background-color: #eee;
  border: none;
  padding: 10px 15px;
  font-size: 24px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.arrow:hover {
  background-color: #ccc;
}
.main-footer {
  background-color: #2c3e50; /* نفس لون الهيدر */
  color: white;
  padding: 40px 50px;
  direction: rtl;
  font-family: 'Arial', sans-serif;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}

.footer-contact {
  font-size: 16px;
  font-weight: bold;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social img {
  width: 66px;
  height: 66px;
  transition: transform 0.3s ease;
}

.footer-social img:hover {
  transform: scale(1.1);
}
.footer-rights {
  color: #ccc;
  text-align: center;
  padding: 10px;
  font-size: 14px;
  margin-top: 20px;
}

.about-section {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding: 120px 10% 80px;
  background-color: #f9f9f9;
  direction: rtl; /* الاتجاه العام */
}

.about-text {
  flex: 1;
  direction: rtl;
  margin-top: -60px; /* نزول الصورة لأسفل */

  
}

.about-text h1 {
  font-size: 32px;
  color: #0e4a7b;
  margin-bottom: 20px;
  text-align: right;
}

.about-text p {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #333;
  text-align: justify;
  direction: rtl;
}

.about-image {
  flex: 1;
  margin-top: 40px; /* نزول الصورة لأسفل */
  margin-left: -70px;


}

.about-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
body, h1, h2, h3, p, a {
  font-family: 'DINNextLTArabic', sans-serif;
}
.full-width-map {
  margin-top: 0px;
  padding: 0;
  width: 100%;
  text-align: center;
}

.full-width-map h3 {
  font-size: 22px;
  color: #0e4a7b;
  margin-bottom: 20px;
  font-family: 'DINNextLTArabic', sans-serif;
}

.full-width-map iframe {
  width: 100%;
  height: 400px;
  border: 0;
  display: block;
}
.contact-header {
  display: flex;
  flex-direction: row;
  justify-content: flex-start; /* خلى العناصر تبدأ جنب بعض */
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 40px;
  margin-top: 90px;
  margin-right: 50px;
  direction: rtl;
  flex-wrap: nowrap; /* مهم علشان يفضلوا جنب بعض */
}

.contact-title {
  font-size: 36px;
  color: #0e4a7b;
  font-weight: bold;
  margin: 0;
  font-family: 'DINNextLTArabic', sans-serif;
  text-align: left;
  width: auto; /* أزلنا min-width */
  white-space: nowrap; /* ما ينزلش لسطر تاني */
}

.contact-description {
  font-size: 18px;
  color: #333;
  line-height: 1.8;
  font-family: 'DINNextLTArabic', sans-serif;
  margin-right: 150px;
  text-align: right;
  max-width: 100%;
  width: 70%; /* اتحكم في عرضه */
}
.contact-form-full-width {
  width: 100vw; /* العرض الكامل للشاشة */
  padding: 0;
  margin: 0;
  margin-top: -20px;
  background-color: #fff;
  direction: ltr;
}

.english-contact-form-wide {
  width: 100%;
  padding: 40px 60px;
  box-sizing: border-box;
}

.english-contact-form-wide .row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: nowrap;
}

.english-contact-form-wide .form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.english-contact-form-wide .form-group-full {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.english-contact-form-wide input,
.english-contact-form-wide textarea {
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 16px;
}

.english-contact-form-wide button {
  width: 100%;
  padding: 12px;
  background-color: #0e4a7b;
  color: white;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.english-contact-form-wide button:hover {
  background-color: #093a61;
}
.work-section {
  padding: 40px 10px;
  background-color: #f9f9f9;
  text-align: center;
  font-weight: normal;
}

.section-heading {
  font-size: 24px;
  margin-bottom: 20px;
  color: #666565;
  font-weight: normal;
}

.work-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* تقسيم الصفحة إلى 4 أعمدة */
  column-gap: 20px; /* المسافة بين الأعمدة */
  row-gap: 30px; /* المسافة بين الصفوف */
  padding-inline: 100px; /* المسافة بين الصور من بداية ونهاية السطر */
  gap: 20px; /* المسافة بين الصور بشكل عام */
  padding-inline: 150px; /* زيادة المسافة بين الصور من الأطراف */
}

.work-item img {
  width: 100%; /* عرض الصورة يملأ الخلية */
  height: auto; /* الحفاظ على التناسب بين العرض والارتفاع */
  display: block;
  border-radius: 8px; /* حواف دائرية للصورة */
  transition: transform 0.3s ease-in-out; /* تأثير الانتقال عند التحويم */
}

.work-item img:hover {
  transform: scale(1.05); /* تكبير الصورة قليلاً عند التحويم */
}
.motion-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 30px;
  flex-wrap: wrap;
}

.motion-video {
  width: 600px;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.motion-description h2 {
  max-width: 500px;
  font-family: 'DINNextLTArabic';
  font-size: 20px !important;
  font-weight: 400 !important;
  color: #666565;
  line-height: 1.6;
  color: #716f6f;
  direction: rtl;
  text-align: right; /* ← دي بتخلي النص كله يمين */
  transform: translateY(-20px); /* يحرك النص للأعلى */
}
.work-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  padding: 10px;
}

.work-item {
  flex: 1 1 100%;
  max-width: 100%;
  text-align: center;
}

.work-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* تحسين العرض على الشاشات الأكبر */
@media (min-width: 600px) {
  .work-item {
    flex: 1 1 45%;
    max-width: 45%;
  }
}

@media (min-width: 900px) {
  .work-item {
    flex: 1 1 30%;
    max-width: 30%;
  }
}
@media (max-width: 991px) {
  .work-gallery {
    grid-template-columns: repeat(2, 1fr); /* عمودين على التابلت */
    padding-inline: 40px; /* تقليل المسافة الجانبية */
  }
}

@media (max-width: 600px) {
  .work-gallery {
    grid-template-columns: 1fr; /* عمود واحد على الموبايل */
    padding-inline: 20px; /* مسافة بسيطة على الأطراف */
  }
}
@media (max-width: 600px) {
  .base {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background-color: rgb(237, 234, 234);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  body {
    padding-top: 80px; /* علشان المحتوى ما يتغطاش بالهيدر */
  }

  .header-links {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .header-links a {
    font-size: 16px;
    padding: 5px 10px;
  }
}
@media (max-width: 991px) {
  .services-rectangles {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .rectangle {
    width: 100%;
  }

  .work-gallery {
    grid-template-columns: repeat(2, 1fr);
    padding-inline: 30px;
  }

  .image-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 10px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .image-item img {
    width: 100%;
    margin: 0;
  }
}

@media (max-width: 600px) {
  .services-rectangles {
    grid-template-columns: 1fr;
  }

  .work-gallery,
  .image-gallery {
    grid-template-columns: 1fr;
    padding-inline: 20px;
  }

  .header-links {
    flex-direction: column;
    gap: 10px;
  }

  .motion-section {
    flex-direction: column;
  }
}
/* زر القائمة (☰) يظهر فقط على الموبايل */
.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  position: absolute;
  right: 20px;
  top: 20px;
}

@media (max-width: 600px) {
  .menu-toggle {
    display: block;
  }

  .header-links {
    display: none;
    flex-direction: column;
    gap: 10px;
    background-color: #ffffff;
    position: absolute;
    top: 60px;
    right: 10px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    z-index: 1000;
  }

  .header-links.active {
    display: flex;
  }

  .header-links a {
    font-size: 16px;
    padding: 8px 12px;
    text-align: right;
    border-bottom: 1px solid #eee;
  }
}

@media (max-width: 600px) {
  /* قسم العنوان والوصف */
  .contact-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-right: 0;
    padding: 0 15px;
  }

  .contact-title,
  .contact-description {
    width: 100%;
    margin: 10px 0;
    text-align: center;
  }

  /* نموذج الاتصال */
  .english-contact-form-wide {
    padding: 20px 15px;
  }

  .english-contact-form-wide .row {
    flex-direction: column;
    gap: 15px;
  }

  /* الفوتر */
  .footer-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-location,
  .footer-contact {
    justify-content: center;
  }

  .main-footer {
    padding: 30px 20px;
  }

  /* الخريطة */
  .full-width-map iframe {
    height: 300px;
  }
}
/* تخصيص تنسيق قسم من نحن للموبايل */
@media (max-width: 600px) {
  .about-section {
    flex-direction: column;
    padding: 80px 20px;
    text-align: center;
  }

  .about-image {
    margin: 0 auto;
    width: 100%;
  }

  .about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
  }

  .about-text {
    margin-top: 30px;
    text-align: center;
  }

  .about-text h1 {
    font-size: 24px;
  }

  .about-text p {
    font-size: 16px;
    line-height: 1.7;
  }

  /* الهيدر والقائمة ☰ */
  .menu-toggle {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
  }

  .header-links {
    display: none;
    flex-direction: column;
    background-color: #ffffff;
    position: absolute;
    top: 70px;
    right: 10px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 10px;
    z-index: 1000;
  }

  .header-links.active {
    display: flex;
  }

  .header-links a {
    font-size: 16px;
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    text-align: right;
  }
}
