@font-face {
  font-family: 'Avenir-Heavy';
  src: url(./../fonts/avenir-arabic-heavy.ttf) format('truetype');
}

@font-face {
  font-family: 'Avenir-Medium';
  src: url(./../fonts/AvenirArabic-Medium.ttf) format('truetype');
}

body {
  font-family: 'Avenir-Medium', serif !important;
  font-optical-sizing: auto;
  font-style: normal;
  font-variation-settings: 'slnt' 0;
  overflow-x: hidden;
  background-color: black !important;
}

a,
select,
input,
button {
  font-family: 'Avenir-Medium', serif !important;
}

.text-center {
  text-align: center;
}

.border-bottom-white::after {
  background-color: white !important;
}

.border-bottom-white,
.header,
.upper-footer h1 {
  font-weight: 700 !important;
  font-size: 2.5rem !important;
  margin-bottom: 1.5rem !important;
}

.border-bottom-white::after {
  content: '' !important;
  display: block !important;
  width: 80px !important;
  height: 2pt !important;
  margin: 0 auto !important;
  margin-top: 10px !important;
}

/* Regular text styling */
p {
  font-weight: 400 !important;
  font-size: 1rem !important;
  line-height: 1.6 !important;
}

.aboutText p,
.text-card p,
.overlay-text-bottom p {
  font-weight: 400 !important;
  font-size: 1rem !important;
  line-height: 1.6 !important;
}

/* Service headings */
.service h2 {
  font-weight: 600 !important;
  font-size: 1.3rem !important;
  line-height: 1.4 !important;
}

/* Main heading styles */
.overlay-text h1 {
  font-weight: 700 !important;
  font-size: 5vw !important;
}

/* Project card headings */
.cardproject h2 {
  font-weight: 700 !important;
  font-size: 1.8rem !important;
  margin-bottom: 0.8rem !important;
}

.dt-g-box {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

/* Stats box headings */
.dt-g-box h3 {
  font-weight: 700 !important;
  font-size: 1.5rem !important;
  margin-top: 10px !important;
  margin-bottom: 10px !important;
}

/* Stats box numbers */
.dt-g-box .number {
  font-weight: 900 !important;
  font-size: 3.5rem !important;
}

/* Footer styles */
.upper-footer h1 {
  font-size: 1.8rem !important;
  margin-bottom: 1rem !important;
}

.upper-footer p,
.upper-footer li,
.upper-footer a,
.footer p {
  font-weight: 400 !important;
  font-size: 1rem !important;
  line-height: 1.6 !important;
}

.upper-footer ul {
  list-style: none !important;
  padding-left: 0 !important;
  margin-top: 0.5rem !important;
}

.upper-footer li {
  margin-bottom: 0.5rem !important;
}

.upper-footer a {
  text-decoration: none !important;
  color: inherit !important;
}

.footer {
  background-color: transparent;
  text-align: inherit;
  border: none;
  padding: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid white;
}

.footer p {
  text-align: left;
  font-size: 0.9rem;
}

.footer a {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer > * {
  flex: 1 1 calc(50% - 10px);
  margin: 0 !important;
}

.footer .social-icons {
  display: flex !important;
  align-items: center !important;
  gap: 15px !important;
}

.footer .social-icons a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.footer .social-icons img {
  width: 30px !important;
  height: 30px !important;
  transition: transform 0.3s ease !important;
}

.footer .social-icons img:hover {
  transform: scale(1.1) !important;
}

#custom-btn {
  cursor: pointer;
  margin-top: 1em;
  margin-bottom: 1em;
  background-color: white;
  width: 190px;
  border: none;
  color: black;
  padding: 0.5em;
  border-radius: 5px;
  font-weight: 600;
  font-size: 16pt;
}

.services-container {
  width: 100%;
  padding-left: 15%;
  padding-right: 15%;
  margin-top: 0;
}

.services-container .service {
  background-color: white;
  color: black;
  height: auto;
  padding: 10px;
  border: 0;
}

.services-container .service h2 {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.services-container .service h2 img {
  margin-left: 10px;
  width: 25px;
  height: 25px;
}

.card-containerproject {
  /* background-color: white; */
  color: black;
  margin: 0;
  padding-top: 0;
  padding-bottom: 100px;
  max-width: 100%;
}

.logos {
  overflow: inherit;
  white-space: inherit;
  margin-bottom: 0;
  padding-bottom: 100px;
}

.logos::before,
.logos::after {
  content: none;
}

.logo_items {
  animation: null;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  flex-direction: row;
  align-items: center;
}

.logo_items img {
  object-fit: contain;
  border-radius: 5px;
}

.other-page {
}

.other-page h1 {
  font-size: 3rem;
}

.other-page p {
  font-size: 1.5rem;
}

.social-icons {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.social-icons a:last-child img {
  /* background-color: white; */
  border-radius: 5px;
}

.upper-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* background-color: transparent; */
  color: white;
  width: 100%;
  padding-left: 10%;
  padding-right: 10%;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 100px;
  padding-bottom: 100px;
}

.upper-footer .col1 img {
  width: 150px;
  height: 150px;
  object-fit: contain;
}

.boxes {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 60px;
}

.boxes .box {
  flex: 1 1 calc(20% - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column-reverse;
  height: 250px;
  border-radius: 10px;
  padding: 20px;
  box-sizing: border-box;
  background-color: transparent;
  color: white;
  gap: 5px;
  text-align: right;
  border: 5px solid white;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.boxes .box div {
  font-weight: bolder;
  font-size: 3rem;
  font-family: 'Avenir-Heavy';
}

.boxes .box h3 {
  font-weight: bolder;
  font-size: 2rem;
  min-height: 50px;
}

.boxes.services .box {
  flex: 1 1 calc(33.3% - 60px);
  flex-direction: column !important;
  height: 350px !important;
  justify-content: space-around !important;
  /* linear-gradient(0deg, rgba(0, 0, 0, 1) 50%, rgba(255, 255, 255, 1) 50%) */
  overflow: hidden;
}

.boxes.services .box::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(
    0deg,
    rgba(255, 255, 255, 1) 45%,
    rgba(0, 0, 0, 1) 55%
  );
  transform: translateY(100%);
  transition: transform 1.2s ease;
  z-index: 0;
}

.boxes.services .box.anim::before {
  transform: translateY(0%);
}

.boxes.services .box > * {
  position: relative;
  z-index: 1;
}

.boxes.services .box.anim h2,
.boxes.services .box.anim p {
  color: black;
}

.boxes.services img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  padding: 0 25px 25px 25px;
}

.boxes.services h2 {
  font-weight: bolder;
  font-size: 1rem;
  font-family: 'Avenir-Heavy';
  width: 100%;
  /* min-height: 100px; */
  text-align: center;
}

.boxes.services p {
  text-align: center;
  font-size: 0.6rem !important;
}

/* Desktop: 5 items per row */
@media (min-width: 1024px) {
  .logo_items img {
    flex: 1 1 calc(20% - 10px); /* 20% width per item (5 items per row) */
    max-width: calc(20% - 10px);
  }
  .services-container .service {
    flex: 1 1 calc(50% - 40px);
  }
  .upper-footer div {
    flex: 1 1 calc(25% - 20px);
  }
}

@media (max-width: 1024px) {
  .boxes .box {
    flex: 1 1 calc(50% - 60px) !important;
  }
  .boxes.services .box {
    height: 250px !important;
  }
  .boxes.services .box h2 {
    font-size: 1rem;
  }
}

/* Mobile: 2 items per row */
@media (max-width: 767px) {
  .logo_items img {
    flex: 1 1 calc(50% - 10px); /* 50% width per item (2 items per row) */
    max-width: calc(50% - 10px);
  }
  .services-container .service {
    flex: 1 1 calc(100% - 40px);
    font-size: 14px;
  }
  .upper-footer div {
    text-align: center;
    margin-bottom: 20px;
    min-width: 0;
  }

  .upper-footer div:nth-child(1) {
    flex: 1 1 100%; /* العنصر الأول يأخذ صفًا كاملًا */
  }

  .upper-footer div:nth-child(2) {
    flex: 1 1 calc(30% - 10px); /* العنصر الثاني والثالث يتقاسمان الصف */
  }

  .upper-footer div:nth-child(3) {
    flex: 1 1 calc(70% - 10px); /* العنصر الثاني والثالث يتقاسمان الصف */
  }

  .upper-footer div:nth-child(4) {
    flex: 1 1 100%; /* العنصر الرابع يأخذ صفًا كاملًا */
  }
  .upper-footer h1 {
    font-size: 1.2rem;
  }
  .upper-footer ul li,
  .upper-footer ul li p {
    list-style: none;
    font-size: 0.9rem;
    line-height: 25px;
  }

  .dt-g-box .number,
  .number {
    font-size: 2.5rem !important;
  }

  .dt-g-box h3 {
    font-size: 1.2rem !important;
  }

  .boxes .box {
    flex: 1 1 100% !important;
  }
  .boxes.services .box {
    height: 300px !important;
  }
  .boxes.services .box h2 {
    font-size: 1rem;
  }
  /*
  .boxes .box div {
    font-size: 2rem;
  } */
}

@media (max-width: 480px) {
  .border-bottom-white,
  .header {
    font-size: 1.5rem !important;
  }

  .upper-footer h1 {
    font-size: 1.3rem !important;
    margin-bottom: 0.6rem !important;
  }

  .upper-footer p,
  .upper-footer li,
  .upper-footer a,
  .footer p {
    font-size: 0.8rem !important;
  }

  .aboutText p,
  .text-card p,
  .overlay-text-bottom p {
    font-size: 0.8rem !important;
  }

  .cardproject h2 {
    font-size: 1.3rem !important;
  }

  .dt-g-box h3 {
    font-size: 1rem !important;
  }

  p {
    font-size: 0.8rem !important;
  }

  .footer .social-icons img {
    width: 25px !important;
    height: 25px !important;
  }
}

.mb-1 {
  margin-bottom: 1em;
}

.contact-us {
  color: white;
}
