

body {
  font-family: 'Tajawal', sans-serif;
  direction: rtl;
  
  color:#312f92;
 
}

h1, h2, h3, p {
  font-family: 'Tajawal', sans-serif;
}

/* تحسين الناف بار */
.navbar {
  background-color: #283883;
  padding: 0.5rem 1rem;
  transition: background-color 0.3s ease-in-out;
  
}

.nav-link {
  color: #ffffff !important;
  font-size: 1.1rem;
  margin-left: 1rem;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #ffcc00 !important;
}

.navbar-toggler-icon {
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.7), rgba(241, 241, 241, 0.7));
  padding: 0.35rem;
  width: 30px;
  height: 25px;
  border-radius: 5px;
}

.navbar-nav {
  display: flex;
  align-items: center;
}

@media (max-width: 992px) {
  .navbar-collapse {
    text-align: center;
  }
  .navbar-nav {
    flex-direction: column;
  }
}

/* تحسين البانر الرئيسي */
/* إلغاء أي background-image قد سبّب المشكلة */
.main-banner { background: none !important; width: 100%; position: relative; overflow: hidden; }

/* الصورة داخل picture */
.banner-img {
  display: block;
  width: 100%;
  height: 60vh;               /* ارتفاع الديسكتوب الافتراضي */
  max-height: 1000px;
  object-fit: cover;          /* يملأ المساحة مع الحفاظ على النِسب (قد يحصل قص إذا الصورة غير مناسبة) */
  object-position: center;    /* قابل للتعديل: center / center top / 50% 30% حسب النقطة المهمة */
}

/* محتوى البانر (نص/زر فوق الصورة) */
.banner-content {
  position: absolute;
  inset: 0; /* top:0; left:0; right:0; bottom:0; */
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none; /* منع تداخل مع الصورة، الأزرار داخل button-main يمكن تفعيلها */
}
.button-main { pointer-events: auto; }

/* تكييف للتابلت */
@media (max-width: 992px) {
  .banner-img { height: 50vh; object-position: center center; }
}

/* تكييف للجوال — هنا نستخدم ارتفاع أكبر ونقوم بتغيير نقطة التركيز */
@media (max-width: 480px) {
  .banner-img {
    height: 80vh;                 /* يعطي مساحة كافية لصورة الجوال */
    object-position: center top;  /* نُظهر الجزء العلوي — عدِّله إذا الجزء المهم في منتصف الصورة */
  }
}

/* خيار بديل لعرض الصورة كاملة بدون قص (يُظهر فراغات على الجوانب) */
/* استعمل هذا فقط إن أردت الصورة كاملة مهما كان، ضع الكلاس .full-visible على img */
.banner-img.full-visible {
  object-fit: contain;
  background-color: #ffffff; /* ملء الفراغ بلون الخلفية */
}


/* تأكد من أن الصورة موجودة في المسار الصحيح */




.display-4, .section-title {
  font-size: 2rem;
  font-weight: normal;
  font-family: 'Tajawal';
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 1px 1px 1px #312f92;
  padding: 10px;
  border-radius: 100px;
  transition: all 0.3s ease-in-out;
}

.display-4:hover, .section-title:hover {
  transform: scale(1.05);
  color: #312f92;
  text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.5);
}


.about-us {
  padding: 40px 20px;
  background: #f8f9fa;
}

.about-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap; /* يجعل المحتوى يتجاوب مع الشاشات الصغيرة */
}

.about-logo {
  max-width: 150px;
  height: auto;
}

.about-text {
  max-width: 600px;
  font-size: 20px;
  color: #333;
  line-height: 1.8;
  text-align: right; /* لأن النص عربي */
  font-family: 'Tajawal', sans-serif;
}


/* Styles for the features section */
.features-section {
  background-color: #f8f9fa;
  padding-top: 60px;
  padding-bottom: 60px;
}

.features-section .section-title {
  font-size: 36px;
  font-weight: 700;
  color: #312f92;
  margin-bottom: 40px;
}

.feature-item {
  background-color: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  padding: 15px; 
  border: none; 
  display: flex;
  flex-direction: column;
  justify-content: space-between; 
  text-align: center; 
}

.feature-item:hover {
  transform: translateY(-5px); 
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1); 
}

.feature-title {
  font-size: 18px; 
  font-weight: 600;
  color: #312f92;
  text-align: center;
  margin-top: 15px; 
}

.feature-icon {
  width: 100%;
  height: auto;
  max-height: 150px; 
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.feature-icon:hover {
  opacity: 0.8;
}


.features-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 20px;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

@media (max-width: 767px) {
  .features-section .section-title {
    font-size: 28px; 
  }
  .feature-title {
    font-size: 16px; 
  }
  .feature-item {
    padding: 10px; 
  }
}



  #services {
    background-color: #f8f9fa;
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .section-title {
    font-size: 36px;
    font-weight: 700;
    color: #312f92;
    margin-bottom: 40px;
    font-family: 'Tajawal', sans-serif;
  }

  .service-box {
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    padding: 15px;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    height: 100%;
  }

  .service-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  }

  .service-title {
    font-size: 18px;
    font-weight: 600;
    color: #312f92;
    margin-top: 15px;
    font-family: 'Tajawal', sans-serif;
  }

  .service-description {
    font-size: 15px;
    color: #555;
    margin-top: 10px;
    line-height: 1.6;
    font-family: 'Tajawal', sans-serif;
  }

  .service-box img {
    width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: cover;
    transition: opacity 0.3s ease;
  }

  .service-box img:hover {
    opacity: 0.8;
  }

  @media (max-width: 767px) {
    .section-title {
      font-size: 28px;
    }

    .service-title {
      font-size: 16px;
    }

    .service-description {
      font-size: 14px;
    }

    .service-box {
      padding: 12px;
    }
  }

#custom-image {
  background-color: #ffffff; /* أو لون خلفية حسب تصميمك */
  padding: 60px 20px;
}

.responsive-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 12px; /* اختياري: يعطي حواف ناعمة */
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1); /* ظل خفيف */
}


.clients-section {
  text-align: center;
  padding: 50px 20px;
  background: #f8f9fa;
  overflow: hidden;
}

.clients-wrapper {
  width: 100%;
  height: 100px;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
}

.clients-list {
  display: flex;
  align-items: center;
  transition: transform 0.1s linear;
}

.client {
  width: 100px;
  height: 100px;
  margin: 0 10px;
  flex-shrink: 0;
}

.client img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.products-section {
  padding: 50px 20px;
  background: #f8f9fa;
  text-align: center;
}

.products-section {
  padding: 50px 20px;
  background: #f8f9fa;
  text-align: center;
}

.products-section h1 {
  font-size: 2rem;
  color: #101738;
  margin-bottom: 10px;
}

.products-section p {
  color: #555;
  margin-bottom: 40px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover img {
  transform: scale(1.05);
}

.product-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(16, 23, 56, 0.8);
  color: white;
  padding: 15px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.product-card:hover .product-overlay {
  transform: translateY(0);
}


#services {
  background-color: #f8f9fa;
  padding-top: 60px;
  padding-bottom: 60px;
}

#services .section-title {
  font-size: 36px;
  font-weight: 700;
  color: #283883;
  margin-bottom: 40px;
}

.service-box {
  background-color: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional, remove shadow if not needed */
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  padding: 15px; 
  border: none; 
  display: flex;
  flex-direction: column;
  justify-content: space-between; 
}

.service-box:hover {
  transform: translateY(-5px); 
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1); 
}

.service-title {
  font-size: 18px; 
  font-weight: 600;
  color: #312f92;
  text-align: center;
  margin-top: 15px; 
}

.service-box img {
  width: 100%;
  height: auto; 
  max-height: 350px; 
  object-fit: cover; 
  transition: opacity 0.3s ease;
}

.service-box img:hover {
  opacity: 0.8;
}

@media (max-width: 767px) {
  #services .section-title {
    font-size: 28px;
  }
  .service-title {
    font-size: 16px;
  }
  .service-box {
    padding: 10px; 
  }
}


#company-location {
  background-color: #f8f9fa;
  color: #333;
}

#company-location .section-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.map-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}


#contact {
  background-color: #312f92;
  padding: 60px 0;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80vh;
}

#contact .container {
  max-width: 800px;
  text-align: center;
}

.form-control {
  border-radius: 10px;
  padding: 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  width: 100%;
}

.btn-primary {
  background-color: #fff;
  color:#312f92;
  padding: 12px 30px;
  font-size: 1.1rem;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color:#312f92;
  color: #fff;
}

@media (max-width: 767px) {
  #contact h2 {
    font-size: 2rem;
  }
  .form-control {
    font-size: 0.9rem;
    padding: 10px;
  }
  .btn-primary {
    font-size: 1rem;
    padding: 10px 20px;
  }
}

.whatsapp-float {
  position: fixed;      /* ثابت في الصفحة */
  bottom: 20px;         /* مسافة من أسفل الصفحة */
  right: 20px;          /* مسافة من اليمين */
  z-index: 9999;        /* فوق كل العناصر */
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #312f92; /* لون واتساب أخضر */
  border-radius: 50%;   /* دائرة */
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.whatsapp-float img {
  width: 35px;
  height: 35px;
}

.whatsapp-float:hover {
  transform: scale(1.1); /* تأثير تكبير عند المرور */
}


footer {
  background-color: #312f92;
  padding: 1rem 0;
}