/* ==============================
   HOME.CSS (Optimized & Clean)
   ============================== */
body {
  font-family: 'Cairo', sans-serif;
  background: #f2f2f2;
  margin: 0;
  padding: 0;
}
/* 🌅 Hero Slider */
.hero-slider {
  position: relative;
  height: 90vh;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2.5s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.overlay {
  background: rgba(0, 0, 0, 0.5);
  text-align: center;
  color: #fff;
  padding: 40px;
  border-radius: 10px;
  animation: fadeIn 1.2s ease forwards;
}

.overlay h1 {
  font-size: 2.8rem;
  margin-bottom: 15px;
  color: #f8d75c;
}

.overlay p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.home .btn {
  background: #c49a6c;
  color: #fff;
  padding: 10px 25px;
  border-radius: 30px;
  text-decoration: none;
  transition: 0.3s;
  font-size: 16px;
}

.home .btn:hover {
  background: #fff;
  color: #c49a6c;
}

/* Slider Dots */
.slider-dots {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: 0.3s;
}

.dot.active {
  background: #c49a6c;
  transform: scale(1.2);
}

/* 🏭 About */
.about-company {
  max-width: 1100px;
  margin: 80px auto;
  padding: 20px;
  text-align: center;
}

.about-company h2 {
  color: #014292;
  margin-bottom: 15px;
  font-size: 2rem;
}

.about-company p {
  line-height: 1.8;
  color: #4e6683;
  font-size: 1.4rem;
}

/* 💡 Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1400px;
  margin: 60px auto;
  padding: 20px;
}

.feature-card {
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  transition: 0.4s ease;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 0; /* مهم */
}

/* المحتوى فوق الصورة */
.feature-content {
  position: relative;
  padding: 40px 20px;
  color: #fff;
  min-height: 200px;
  z-index: 2;
}

/* طبقة تعتيم */
.feature-content::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: -1;
}

.feature-card h3 {
  margin-bottom: 10px;
  color: #ffd86b; /* ذهبي */
  font-size: 22px;
}

.feature-card p {
  font-size: 16px;
  line-height: 1.6;
}

/* الزر تحت الصورة */
.feature-btn {
  display: block;
  width: fit-content;
  margin: 15px auto 20px;
  padding: 10px 20px;
  background: #0a7cff;
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  transition: .3s ease;
  text-decoration: none;
}

.feature-btn:hover {
  background: #5f0144;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* خلفيات */
.feature-card.mills {
  background-image: url('../images/mil1.jpg');
}
.feature-card.pasta {
  background-image: url('../images/pasta-2.png');
}
.feature-card.bags {
  background-image: url('../images/bags1.jpg');
}



/* 🏷️ Products */
/* ===========================
   Products Highlight Section
   =========================== */
.products-highlight {
  padding: 80px 20px;
  text-align: center;

  background-image: url('../images/pro-bg.png'); /* ← غيّر الصورة لو عايز */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  border-radius: 12px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

/* طبقة تعتيم بسيطة */
.products-highlight::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 0;
}

/* العنوان */
.products-highlight h2 {
  position: relative;
  z-index: 2;
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffdd75; /* ذهبي جميل */
  text-shadow: 0 3px 8px rgba(0,0,0,0.5);
  font-family: 'Cairo', sans-serif;
}


/* Swiper */
/* ضبط أبعاد السلايدر */
.lamatna-swiper {
  width: 100%;
  max-width: 600px;
  margin: 40px auto;
  padding: 20px 0;
}

/* wrapper (ياخد ارتفاع أعلى صورتين تقريبًا) */
.lamatna-swiper .swiper-wrapper {
  align-items: center;
}

/* =========================================
   سلايدر لمتنا – ضبط الطبقات والحجم
   ========================================= */

.lamatna-swiper {
  width: 100%;
  max-width: 600px;
  margin: 25px auto;
  padding: 25px 0;
}

/* السلايد الأساسي */
.lamatna-swiper .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  transform: scale(0.75);
  transition: 0.4s ease;
  z-index: 1;
}

/* الصورة داخل السلايد */
.lamatna-swiper .swiper-slide img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  transition: 0.4s ease;
}

/* السلايد اللي في النص */
.lamatna-swiper .swiper-slide-active {
  transform: scale(1.25);
  z-index: 5 !important;
}

/* الصورة اللي في النص */
.lamatna-swiper .swiper-slide-active img {
  width: 220px;
  height: 260px;
  transform: translateY(-8px);
  z-index: 10 !important;
  position: relative;
}

/* الصور الجانبية */
.lamatna-swiper .swiper-slide-prev,
.lamatna-swiper .swiper-slide-next {
  transform: scale(0.9);
  opacity: 0.8;
  z-index: 2;
}
/* زر المنتجات */

.btn-prod {
    display: inline-block;
    margin: 0 auto;
    padding: 12px 28px;
    background: #ffcc00; /* لون جميل */
    color: #5f0144;      /* لون النص */
    font-size: 18px;
    border-radius: 30px;
    text-decoration: none; /* بدون خط */
    transition: 0.3s ease;
    text-align: center;
}

.btn-prod:hover {
    background: #5f0144; /* لون الخلفية في الهوفر */
    color: #ffffff;      /* لون النص في الهوفر */
}

/* =========================================
   📱 موبايل
   ========================================= */
@media (max-width: 480px) {

  .lamatna-swiper {
    max-width: 100%;
    padding: 10px 0;
  }

  .lamatna-swiper .swiper-slide {
    transform: scale(0.8);
  }

  .lamatna-swiper .swiper-slide img {
    width: 120px;
    height: 120px;
  }

  .lamatna-swiper .swiper-slide-active img {
    width: 160px !important;
    height: 160px !important;
    transform: translateY(-5px);
  }
}




.lam-prev,
.lam-next {
  color: #333 !important;
  font-weight: bold;
}

/* ==============================
   🔹 Dual Lamatna Sliders Layout
   ============================== */
.lamatna-dual-wrapper {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.lamatna-dual-slider {
  flex: 1 1 400px;
  max-width: 500px;
  text-align: center;
}

.lamatna-dual-slider img {
  width: 100%;
  height: 300px; /* نفس ارتفاع الصور في السلايدر */
  object-fit: cover;
  border-radius: 12px;
  transition: 0.3s;
}
.slide-inner {
max-height: 200%;
width: auto;
}

.lamatna-dual-slider img:hover {
  transform: scale(1.25);
}

/* Responsive */
@media (max-width: 768px) {
  .overlay h1 { font-size: 2rem; }
  .about-company h2,
  .cta h2 { font-size: 1.6rem; }
  .lamatna-dual-wrapper {
    flex-direction: column;
    gap: 25px;
  }
}

@media (max-width: 768px) {

  /* خلي السلايدر ياخد العرض كامل */
  .lamatna-dual-slider {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto !important;
  }

  /* خلي السوايبر نفسه ياخد عرض الموبايل بالكامل */
  .lamatna-swiper {
    max-width: 100% !important;
    width: 100% !important;
  }

  /* علشان يمنع أي Scroll يمين */
  .lamatna-section,
  .lamatna-dual-wrapper {
    overflow: hidden !important;
  }
}


/* 🤝 Partners */
.partners {
  text-align: center;
  padding: 60px 20px;
}

.partners h2 {
  color: #0c2340;
  margin-bottom: 25px;
}

.partners-logos img {
  width: 180px;
  filter: grayscale(100%);
  transition: 0.3s;
}

.partners-logos img:hover {
  filter: grayscale(0);
}

/* CTA */
.cta {
  background: #0c2340;
  color: #fff;
  text-align: center;
  padding: 70px 20px;
}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.cta p {
  margin-bottom: 20px;
}

.cta .btn:hover {
  background: #fff;
  color: #0c2340;
}

/* Animations */
.fade-in,
.fade-content {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.8s ease;
}

.fade-in.show,
.fade-content.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 🌟 Star Products */
.star-products-section {
  text-align: center;
  padding: 80px 20px;
  background: #fafafa;
}

.star-products-section h2 {
  font-size: 28px;
  margin-bottom: 40px;
  color: #333;
  font-weight: bold;
}

.star-products {
  position: relative;
  width: 420px;
  height: 420px;
  margin: 0 auto;
  animation: rotateStar 20s linear infinite;
}

.product-star-item {
  position: absolute;
  top: 50%;
  left: 50%;
  text-align: center;
  transition: transform 0.4s, filter 0.3s;
  transform-origin: center;
}

.product-star-item img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  animation: spinSelf 5s linear infinite;
  backface-visibility: hidden;
}

.product-star-item span {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #444;
  display: block;
}

.product-star-item:hover {
  transform: scale(1.25);
  z-index: 10;
  filter: brightness(1.2);
}

.item-0 { transform: rotate(0deg) translate(170px) rotate(0deg); }
.item-1 { transform: rotate(72deg) translate(170px) rotate(-72deg); }
.item-2 { transform: rotate(144deg) translate(170px) rotate(-144deg); }
.item-3 { transform: rotate(216deg) translate(170px) rotate(-216deg); }
.item-4 { transform: rotate(288deg) translate(170px) rotate(-288deg); }

@keyframes rotateStar { to { transform: rotate(360deg); } }
@keyframes spinSelf { to { transform: rotateX(360deg); } }

/* Brand Block */
.brand-block {
  text-align: center;
  padding: 60px 20px;
  margin: 50px auto;
  background: #fff;
  border-radius: 15px;
  max-width: 600px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.brand-block h3 {
  font-size: 2rem;
  color: #c49a6c;
}

.brand-block p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 25px;
}

/* Brand Slider */
.brand-slider {
  overflow: hidden;
  width: 150%;
}

.brand-track {
  display: flex;
  gap: 20px;
  animation: brandMove 18s linear infinite;
}

.brand-item img {
  width: 160px;
  height: 160px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: 0.3s;
}

.brand-item img:hover {
  transform: scale(1.1);
}

@keyframes brandMove { to { transform: translateX(-50%); } }

/* Brand Images */
.brand-images {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 25px;
}

.brand-images img {
  width: 180px;
  height: 180px;
  border-radius: 12px;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: 0.3s;
}

.brand-images img:hover {
  transform: translateY(-10px);
}

