/* Home Section */
@font-face {
  font-family: "AcuminExtraLight";
  src: url("/fonts/acumin-pro-extra-light.ttf") format("truetype");
  font-weight: 200;
  font-style: normal;
}

.section {
  padding: 10px 0;
  text-align: center;
  font-family: "Acumin", sans-serif; /* تعيين خط أكومين للنص */
}

.section-title {
  font-size: 2rem;
  margin-bottom: 30px;
  margin-bottom: 0.5rem;
  background: linear-gradient(to right, #459e55, #dab03d);
  -webkit-background-clip: text;
  color: transparent;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 10px;
}

.image-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.image-container img {
  width: 100%;
  height: auto;
  display: block;
}

.project-info {
  padding-bottom: 0.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-info {
  text-align: center;
}

.project-info p {
  font-family: "AcuminExtraLight", sans-serif;
  font-size: 1.1rem;
  line-height: 24px;
  margin: 10px 0;
  text-align: center;
}

.btn-primary {
  font-style: italic;
  /* margin: 10px 0 0; */
  padding: 10px 20px;
  font-size: 1rem;
  color: #0e9646;
  background: linear-gradient(white, white) padding-box,
    linear-gradient(to left, #459e55, #dab03d) border-box;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.3s;
  width: 50%;
  display: flex;
  justify-content: center;
  align-self: center;
  text-decoration: none;
}

.btn-primary:hover {
  background-color: #1b893e;
}

/* About Section */
/* البداية: إضافة بعض التنسيقات الأساسية */

.about-head {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  opacity: 0; /* يجعل العنصر غير مرئي في البداية */
  transform: translateX(50px); /* تحريك العنصر إلى اليمين */
  transition: opacity 1s ease, transform 1s ease; /* إضافة تأثير الحركة */
}

hr {
  width: 20%; /* عرض الخط */
  margin: 1rem auto; /* مساحة حول الخط */
  border: 0.5px solid #12b355; /* اللون والسمك */
  transform-origin: center; /* نقطة الأصل للحركة */
  opacity: 0; /* الخط غير مرئي افتراضيًا */
  transform: scaleX(0); /* تصغير الخط افتراضيًا */
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

/* الفئة المفعلة */
hr.animate {
  opacity: 1; /* إظهار الخط */
  transform: scaleX(1); /* عرض الخط بالكامل */
}

hr.visible {
  opacity: 1; /* إظهار الخط */
  transform: scaleX(1); /* استعادة العرض الكامل */
}

.about-head img {
  width: 40px;
  height: 40px;
}

.about-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0; /* جعل العناصر غير مرئية في البداية */
  transform: translateY(50px); /* تحريك العناصر من الأسفل */
  transition: opacity 1s ease, transform 1s ease; /* إضافة تأثير الحركة */
}

.about-card {
  background-color: white;
  padding: 1rem;
  border-radius: 0.5rem;
  opacity: 0; /* إخفاء العنصر */
  transform: translateX(-50px); /* تحريك العنصر إلى اليسار */
  transition: opacity 1s ease, transform 1s ease;
}

.about-card h3 {
  color: rgb(24, 156, 57);
  font-size: 2rem;
  font-weight: 900;
  font-family: "Acumin", sans-serif;
  opacity: 0; /* إخفاء النص */
  transform: translateX(50px); /* تحريك النص إلى اليمين */
  transition: opacity 2s ease-in-out, transform 2s ease-in-out;
}

.about-card::after {
  content: "";
  position: absolute;
  height: 4px;
  width: 0%;
  background-color: rgb(24, 156, 57);
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  transition: width 0.5s ease-in-out;
}

/* تفعيل التأثيرات عند ظهور العناصر */
.about-head.visible,
.about-grid.visible,
.about-card.visible,
.about-card h3.visible {
  opacity: 1;
  transform: translateX(0); /* إلغاء التحريك عند التفعيل */
}

.product-slider {
  display: flex;
  justify-content: center;
  margin: 0 auto;
  align-items: center;
  align-content: center;
  align-self: center;
  width: 100%;
}

/* إعدادات البطاقة (Card) */
.product-card {
  background-color: white;
  border-radius: 0.5rem;
  overflow: hidden;
}

/* الصورة داخل البطاقة */
.product-card img {
  width: 100%;
  padding: 1rem;
}

.swiper-wrapper {
  padding: 0 !important;
}
.swiper-slide {
  padding: 0 !important;
  box-sizing: border-box;
}

.swiper-slide img {
  width: 100%;
  display: block;
}

/* الوصف داخل البطاقة */

/* تفعيل التأثير عند ظهور العنصر */
.product-grid.visible,
.product-card.visible {
  opacity: 1;
  transform: translateY(0); /* إلغاء التحريك عند التفعيل */
}

/* Contact Section */
.contact-wrapper {
  position: relative;
  text-align: center;
}

.contact-wrapper img {
  width: 100%;
  object-fit: cover;
}

.btn-secondry {
  font-style: italic;
  margin: 10px 0 0;
  padding: 15px 20px;
  font-size: 1rem;
  color: #0e9646;
  cursor: pointer;
  background-color: #fff;
  border: none;
  border-radius: 0; /* يلغي الزوايا */
  -webkit-appearance: none; /* يلغي شكل الزر الافتراضي في Safari */
  appearance: none;
}

.contact-wrapper p {
  position: absolute;
  font-size: 3rem;
  color: #fff;
  font-weight: 900;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@media (max-width: 768px) {
  .contact-wrapper p {
    font-size: 1rem;
    font-weight: 900;
  }

  .about-card h3 {
    color: rgb(24, 156, 57);
    font-size: 1.5rem;
    font-weight: 900;
  }

  .about-card p {
    font-size: 12px;
    text-align: center;
    text-wrap: balance;
  }
}

.contact-wrapper .btn-secondry {
  position: absolute;
  background-color: #fff;
  border: none;
  top: 60%;
  font-size: 20px;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 0; /* يلغي الزوايا */
  -webkit-appearance: none; /* يلغي شكل الزر الافتراضي في Safari */
  appearance: none;
}

@media (max-width: 768px) {
  .contact-wrapper .btn-secondry {
    position: absolute;
    top: 60%;
    font-size: 14px;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .btn-secondry {
    font-style: italic;
    margin: 10px 0 0;
    padding: 5px 10px;
    font-size: 1rem;
    color: #0e9646;
    cursor: pointer;
  }
}

/* Footer */
.footer {
  background-image: url(/images/footer.png);
  color: #ffffff;
  padding: 1rem 1rem 1rem;
}

.footer h2 {
  text-align: center;
  padding: 1rem;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  font-size: 1.2rem;
  text-align: left;
  margin-top: -1.2rem;
}

.footer-section {
  width: 100%;
  gap: 1rem;
}

.footer-logo {
  width: 100%;
  margin-top: -2.5rem;
}

.footer-logo img {
  height: 50px;
}

.footer-section p {
  display: flex;
  margin-bottom: 10px;
}

.footer-section i {
  height: 4px;
  margin-right: 10px; /* مسافة بين الأيقونة والنص */
  color: #ebf0eb; /* لون الأيقونات */
}

.social-links {
  display: flex;
  justify-content: center;
  text-align: center;
  margin-top: -0.5rem;
  gap: 0.5rem;
}

.social-links a {
  text-align: center;
  color: white;
  text-decoration: none;
}

.footer-bottom {
  text-align: center;
  padding: 1rem;
  background-color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: black;
}

.footer-mobile {
  display: none;
}

@media (max-width: 768px) {
  .btn-primary {
    width: 40%;
  }
  .image-container {
    box-shadow: none;
  }
  .image-container img {
    height: auto;
  }

  .product-card img {
    padding-inline: 1rem;
  }

  .footer-content {
    flex-direction: column;
    margin-bottom: 0;
  }

  .footer {
    background-image: url(/images/Footer\ bg.png);
  }

  .footer p {
    text-align: center;
  }
  .desk {
    display: none;
  }

  .footer-mobile {
    display: block;
  }

  .footer-mobile i {
    text-align: center;
  }

  .footer-section h3 {
    text-align: center;
  }

  .footer-section p {
    display: block;
    font-size: 12px;
  }

  .footer h2 {
    display: none;
  }

  .footer-logo {
    width: 100%;
    margin-top: 5px;
    text-align: center;
  }
}

@media (min-width: 1440px) {
  .contact-wrapper img {
    width: 80%;
  }
}

@media (min-width: 1920px) {
  .contact-wrapper .btn-secondry {
    position: absolute;
    top: 60%;
    font-size: 20px;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .contact-wrapper img {
    width: 50%;
  }

  .btn-secondry {
    font-style: italic;
    margin: 10px 0 0;
    padding: 10px 25px;
    font-size: 1rem;
    color: #0e9646;
    cursor: pointer;
  }
}
