/* See Our Products Button on Home Page */
.btn-see-products {
  display: inline-block;
  margin-top: 18px;
  background: linear-gradient(90deg, #004aad 60%, #aedce8 100%);
  color: #fff;
  padding: 12px 32px;
  border: none;
  border-radius: 8px;
  font-size: 20px;
  font-family: 'Poppins', 'Cairo', sans-serif;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(44,44,138,0.12);
  transition: background 0.3s, transform 0.2s;
  cursor: pointer;
}
.btn-see-products:hover {
  background: #2563eb;
  color: #aedce8;
  transform: scale(1.07);
}
/* Map Info Section Styling */
.map-info {
  font-family: 'Poppins', 'Cairo', sans-serif;
  font-size: 17px;
  background: linear-gradient(90deg, #eae9f9 60%, #aedce8 100%);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(44,44,138,0.08);
  padding: 18px 24px;
  margin-bottom: 18px;
}
.map-info h3 {
  color: #004aad;
  font-weight: 700;
  margin-bottom: 12px;
}
.map-box {
  background: #f5f7fa;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(44,44,138,0.06);
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.map-box iframe {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(44,44,138,0.12);
}
/* Contact Info Section Styling */
.contact-info {
  font-family: 'Poppins', 'Cairo', sans-serif;
  font-size: 17px;
  background: linear-gradient(90deg, #eae9f9 60%, #aedce8 100%);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(44,44,138,0.08);
  padding: 18px 24px;
  margin-bottom: 18px;
}
.contact-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f5f7fa;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 16px;
  font-family: 'Poppins', 'Cairo', sans-serif;
  box-shadow: 0 1px 6px rgba(44,44,138,0.06);
  transition: box-shadow 0.2s;
}
.contact-row:hover {
  box-shadow: 0 2px 12px rgba(44,44,138,0.12);
  background: #eae9f9;
}
.contact-label {
  font-weight: 600;
  color: #004aad;
}
.contact-value {
  font-weight: 500;
  color: #222;
}
.contact-person {
  font-style: italic;
  color: #2c2c8a;
}
.contact-role {
  background: #aedce8;
  color: #02285b;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 14px;
  margin-left: 6px;
}
.contact-address {
  margin-top: 10px;
  font-size: 16px;
  color: #004aad;
  font-weight: 500;
  background: #f5f7fa;
  border-radius: 6px;
  padding: 6px 12px;
  box-shadow: 0 1px 6px rgba(44,44,138,0.06);
}
/* Social Icons Enhanced */
.social-icons {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.social-title {
  font-size: 16px;
  color: #004aad;
  font-weight: 600;
  margin-right: 8px;
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  color: #fff;
  font-size: 22px;
  box-shadow: 0 2px 8px rgba(44,44,138,0.12);
  transition: background 0.3s, color 0.3s, transform 0.2s;
  border: none;
  text-decoration: none;
}
.social-link:hover {
  background: #c4302b;
  color: #fff;
  transform: scale(1.1);
}
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&family=Poppins:wght@400;600;700&display=swap');
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Cairo', sans-serif;
}

body {
  overflow-x: hidden;
}

/* Background Carousel */
.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.background img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.background img.active {
  opacity: 1;
}

/* Navbar */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 40px;
background: rgba(0, 0, 0, 0.7);
  color: white;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  box-shadow: 0 3px 10px rgba(0,0,0,0.7);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
  border: 2px solid #fff;
}

.logo-text {
  font-weight: bold;
  font-size: 20px;
  white-space: nowrap;
  font-family: cursive;
}

/* Links */
nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  transition: all 0.3s ease;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-size: 16px;
  transition: 0.3s;
  padding: 8px 12px;
  border-radius: 8px;
}

nav ul li a:hover {
  background: rgba(255, 255, 255, 0.4);
  color: #ffeb3b;
}

/* Hamburger (Mobile) */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 900px ) {
  nav ul {
    position: absolute;
    top: 70px;
    right: -100%;
    flex-direction: column;
    background: #004aad;
    width: 220px;
    padding: 20px;
    gap: 15px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  }

  nav ul.active {
    right: 0;
  }

  .menu-toggle {
    display: block;
  }
}


/* Hero Section */
.hero {
  position: relative;
    
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  overflow: hidden;

}

/* الخلفيات */
.hero .background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2; /* عشان يفضل تحت كل حاجة */
}

.hero .background img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.hero .background img.active {
  opacity: 1;
}

/* ✅ Overlay يغطي الخلفية بالكامل */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* أسود شفاف */
  z-index: -1; /* فوق الصور وتحت النص */
}

/* محتوى النص */
.hero-content {
  position: relative;
  z-index: 1; /* يطلع فوق الـ overlay */

  padding: 30px;
  border-radius: 10px;
  max-width: 800px;
}


.hero h1 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 20px;
  font-family: 'Cairo', sans-serif;
  background: linear-gradient(90deg, #004aad, #aedce8, #02285b);
  background-size: 200% auto;
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  animation: shine 4s linear infinite;
  text-transform: uppercase;
  letter-spacing: 2px;
  
}

@keyframes shine {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}


.hero p {
  font-size: 25px;
  margin-bottom: 50px;
  font-family: 'Poppins', sans-serif; /* English/Modern text */
  color: #ffffff;
  line-height: 1.8;
  font-family: serif;
  max-width: 650px;
  animation: fadeInUp 1.2s ease-in-out;
}

/* Animations */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-50px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

.hero button {
  background: #1e40af;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  transition: 0.3s;
}

.hero button:hover {
  background: #2563eb;
}

/* ==========================
   About Section Styles
   ========================== */
/* About Section */
.about {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 80px 10%;
  gap: 40px;
  flex-wrap: wrap;
  position: relative; /* needed for pseudo-elements */
}

/* Decorative shape before the about section */
.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 120px;
  height: 120px;
  background: #1e40af;
  opacity: 0.1;
  border-radius: 50%;
  z-index: 0;
}

/* Decorative shape after the about section */
.about::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: #2563eb;
  opacity: 0.1;
  border-radius: 50%;
  z-index: 0;
}

/* Make sure content is above pseudo-elements */
.about-text{
  position: relative;
  z-index: 1;
}
.about-img {
  width: 100%;
  height: 400px;          /* زيادة الارتفاع لجعل الصورة أكبر */
  overflow: hidden;
  text-align: center;
  background: #f9f9f9;
  border-radius: 10px;     /* optional: حواف مستديرة */
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;      /* يظهر كل محتوى الصورة */
  display: block;
}



.about-text {
  flex: 1 1 400px;
}

.about-text h2 {
  font-size: 28px;
  font-weight: bold;
  color: #1e40af;
  margin-bottom: 15px;
}

.about-text p {
  margin-bottom: 15px;
  font-size: 16px;
  line-height: 1.6; /* improves readability */
  color: #333; /* slightly softer than black */
}

.about-text .btn {
  display: inline-block;
  background: #1e40af;
  color: #fff;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s, transform 0.3s;
}

.about-text .btn:hover {
  background: #2563eb;
  transform: translateY(-2px); /* subtle hover effect */
}

.about-img {
  flex: 1 1 400px;
  background-color: #1e40af;
  padding: 20px; /* Optional: gives spacing around the image */
  border-radius: 8px; /* Matches the image's rounding */
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-img img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
  display: block;
}


.products {
  text-align: center;
  padding: 50px 20px;
  background: #f6f6ff;
  height: fit-content;
}

.products h2 {
  margin-bottom: 30px;
  color: #2c2c54;
}

/* swiper slides */
.swiper {
  width: 95%;
  max-width: 1200px;
  margin: auto;
}

.swiper-slide {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 30px;
}

.swiper-slide img {
  width: 100%;
  height: 250px;
  object-fit: contain;
  margin-bottom: 40px;
}



 .partners-section {
      text-align: center;
      padding: 50px 20px;
      background: #fff;
    }

    .partners-section h2 {
      font-size: 28px;
      font-weight: bold;
      margin-bottom: 40px;
      color: #2d2d7f;
      position: relative;
    }

    .partners-section h2::after {
      content: "";
      width: 60px;
      height: 3px;
      background: #2d2d7f;
      display: block;
      margin: 10px auto 0;
      border-radius: 2px;
    }

    .partners-logos {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 30px;
    }

    .partners-logos a {
      display: block;
      text-decoration: none;
    }

    .partners-logos img {
      width: 140px;
      height: 100px;
      object-fit: contain;
      border: 1px solid #ddd;
      padding: 15px;
      background: #fff;
      border-radius: 12px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.08);
      transition: transform 0.3s, box-shadow 0.3s;
    }

    .partners-logos img:hover {
      transform: scale(1.08);
      box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    }



    section.certificates {
      padding: 50px 10%;
      text-align: center;
    }

    section.certificates h2 {
      color: #3f2e96;
      font-size: 28px;
      margin-bottom: 15px;
    }

    section.certificates p {
      max-width: 800px;
      margin: 0 auto 40px;
      line-height: 1.6;
      color: #444;
    }

    .cert-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 30px;
      justify-content: center;
    }

    .cert-card {
      background: #fff;
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 5px 15px rgba(0,0,0,0.1);
      transition: transform 0.3s;
    }

    .cert-card:hover {
      transform: translateY(-8px);
    }

    .cert-card img {
      width: 100%;
      display: block;
    }

    .cert-content {
      padding: 15px;
      text-align: left;
    }

    .cert-content h3 {
      font-size: 18px;
      color: #3f2e96;
      margin-bottom: 8px;
    }

    .cert-content p {
      font-size: 14px;
      color: #777;
      margin: 0;
    }









.wave-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0; /* لإزالة أي فراغ عمودي */
}

.wave-divider img {
  display: block;
  width: 100%;  /* يجعل الصورة ممتدة بعرض الصفحة */
  height: auto; /* يحافظ على نسبة الأبعاد */
}


 
    footer {
      background: #eae9f9;
      padding: 40px 60px;
    }

    .footer-container {
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 40px;
    }

    .footer-section {
      flex: 1;
      min-width: 250px;
    }

    .footer-section h3 {
      color: #2c2c8a;
      margin-bottom: 15px;
    }

    .footer-section p {
      margin: 5px 0;
    }

    .social-icons {
      margin-top: 10px;
    }

    .social-icons a {
      display: inline-block;
      margin-right: 10px;
      text-decoration: none;
      font-size: 20px;
      color: #000;
      border: 1px solid #333;
      border-radius: 50%;
      padding: 6px 10px;
      transition: 0.3s;
    }

    .social-icons a:hover {
      background: #333;
      color: #fff;
    }

   .footer-logo {
  text-align: center;
  margin-bottom: 20px;
}

.footer-logo .logo-img {
  max-width: 200px;
  height: auto;
}


    .map iframe {
      width: 100%;
      max-width: 500px;
      height: 300px;
      border: 1px solid #ccc;
      border-radius: 8px;
      margin-right: 40px;
    }

    .copyright {
      text-align: center;
      padding: 15px;
      font-size: 14px;
      background: #f2f2fb;
      border-top: 1px solid #ccc;
    }

    .logo {
      text-align: center;
      margin-top: 10px;
    }

    .logo img {
      height: 40px;
    }

/* ========================================
   🔧 Mobile Horizontal Scroll Fixes
   ======================================== */

/* Prevent horizontal overflow globally */
html {
  overflow-x: hidden;
  width: 100%;
}

body {
  max-width: 100vw;
}

/* Ensure all major sections respect viewport */
nav, .hero, .about, .products, .partners-section, 
.certificates, footer, .footer-container {
  max-width: 100vw;
}

/* Mobile-specific fixes (tablets and below) */
@media (max-width: 768px) {
  /* Reduce navbar padding to prevent overflow */
  nav {
    padding: 12px 20px;
  }

  /* Reduce footer padding */
  footer {
    padding: 30px 20px;
  }

  /* Fix about section padding */
  .about {
    padding: 40px 5%;
  }

  /* Ensure swiper doesn't overflow */
  .swiper {
    width: 100%;
    max-width: 100%;
  }

  /* Fix contact info overflow */
  .contact-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .contact-role {
    margin-left: 0;
  }

  /* Ensure partners section doesn't overflow */
  .partners-section {
    padding: 40px 15px;
  }

  .partners-logos {
    gap: 20px;
  }
}

/* Extra small screens (phones) */
@media (max-width: 480px) {
  /* Tighter padding for very small screens */
  nav {
    padding: 10px 15px;
  }

  footer {
    padding: 25px 15px;
  }

  .hero-content {
    padding: 20px;
  }

  /* Make contact rows stack better */
  .contact-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 14px;
  }

  /* Reduce partner logo sizes */
  .partners-logos img {
    width: 100px;
    height: 80px;
  }

  /* Ensure product grid fits */
  .products-container {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    padding: 0 5px;
  }
}