:root {
  --primary-background-color: #ececec;
  --primary-color: #ffa200;
  --secondary-color: #192e4f;
  --dark-color: #212529;
  --light-color: #f8f9fa;
}

a {
  text-decoration: none;
}

body {
  font-family: "Almarai", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-size: 1rem;
  line-height: 1.8;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

h1 {
  font-size: 2rem;
  font-weight: bold;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  font-size: 1.125rem;
}

img {
  max-width: 100%;
}

.whats-app {
  position: relative;
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
  cursor: pointer;
  border-radius: 50%;
  height: 55px;
  width: 55px;
}

.whats-app {
  img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
  }
}

.scroll-up {
  width: 55px;
  height: 55px;
  background-color: #014c8c;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  cursor: pointer;
  position: fixed;
  bottom: -100px;
  right: 20px;
  z-index: 1000;
  transition: bottom 0.4s ease;
}

.scroll-up.show {
  bottom: 20px;
}

.scroll-up svg {
  font-size: 30px;
  color: #fff;
}

/* header section */

header {
  position: relative;
  background-color: var(--primary-background-color);
  font-size: 18px;
  color: var(--dark-color);
  svg {
    color: var(--primary-color);
  }
  height: 100px;
}

@media (max-width: 500px) {
  header {
    font-size: 12px !important;
    .social {
      display: none;
    }
    .working {
      :nth-child(2) {
        font-size: 12px;
      }
    }
  }
}
.working {
  :nth-child(2) {
    font-size: 16px;
  }
  :nth-child(1) {
    font-weight: bold;
  }
}
@media (max-width: 776px) {
  header {
    font-size: 14px;
    span {
      display: block;
    }
    .contact svg {
      display: flex;
      margin: 0 auto;
    }
  }
}

nav {
  background-color: white;
  width: 80%;
  transform: translate(-50%);
  left: 50%;
  top: 65%;
  position: absolute !important;
  border-radius: 7px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  .collapse {
    justify-content: space-evenly !important;
  }
}

.navbar-toggler:focus {
  text-decoration: none;
  outline: 0;
  box-shadow: none;
}

.nav-link {
  color: var(--dark-color);
  padding: 10px 20px;
  display: block;
  transition: background-color 0.3s ease;
  &:hover {
    background-color: #cbad8b44;
    color: var(--dark-color);
  }
}

@media (max-width: 430px) {
  nav img {
    width: 120px;
    height: 60px;
  }
}

@media (max-width: 776px) {
  .nav-link {
    font-size: 16px;
  }
  nav {
    top: 73%;
  }
}

@media (max-width: 330px) {
  .working {
    font-size: 10px;
  }
}

.nav-link.active {
  font-weight: bold;
}

/* landing section */

.landing {
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url(/images/360_F_408710918_Vz4Q4CAQekBWkjAbWmwDychvqDJlLtLh.webp)
      center/cover no-repeat;
  background-position: center;
  background-size: cover;
}

.landing .btn-custom {
  background-color: #d4b08c;
  color: #fff;
  font-weight: bold;
  padding: 10px 25px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.landing .btn-custom:hover {
  background-color: #b8906e; /* لون أغمق عند الهوفر */
  color: #fff;
}

/* about section */

.about-image {
  width: 300px;
}
.about img {
  animation: opacityAnimation 1s ease-in-out;
}

@media (max-width: 991px) {
  .image-about {
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

/* goals section */

.goals {
  background-color: var(--primary-background-color);
}
.custom-card {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  border-radius: 8px;
  height: 100%;
}
.card-title {
  font-weight: bold;
  color: #0d2345;
  border-bottom: 2px solid #c49a6c;
  display: inline-block;
  padding-bottom: 5px;
  margin-bottom: 15px;
}

.grid-template-columns-responsive {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.grid-template-columns-responsive-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* services section */

.services h2,
h5 {
  color: #014c8c;
}

.services h5 {
  margin-top: 15px;
  margin-bottom: 15px;
}
.services p {
  font-size: 14px;
}

/* footer section */

footer {
  background-color: var(--secondary-color);
  color: var(--light-color);
  padding: 20px 0;
  .row {
    div {
      text-align: right;
    }
  }
  li {
    font-size: 14px;
  }
  h5 {
    color: #4caf50;
  }
}

footer h5,
footer p,
footer li {
  margin-bottom: 20px;
}

@media (max-width: 767px) {
  footer {
    .row {
      div {
        text-align: center;
      }
    }
    li {
      font-size: 16px;
    }
  }
}

.feature {
  background-color: #014c8c;
  padding-top: 80px;
  padding-bottom: 80px;
}
.feature .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 80px;
  h5 {
    color: #e0e0e0;
  }
  .cards {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(241, 241, 241, 0.1);
    transition: 0.3s;
    color: #e0e0e0;
    span {
      font-size: 45px;
    }
  }
}

@media (max-width: 776px) {
  .feature .container {
    gap: calc(100% - 98%);
    span {
      font-size: 30px !important;
    }
    h5 {
      font-size: 18px !important;
    }
  }
}
@media (max-width: 440px) {
  .feature .container {
    span {
      font-size: 25px !important;
    }
    h5 {
      font-size: 16px !important;
    }
  }
}
@media (max-width: 313px) {
  .feature .container {
    span {
      font-size: 20px !important;
    }
    h5 {
      font-size: 14px !important;
    }
  }
}

.cards:hover {
  transform: scale(1.1);
}

.opacity-reveal {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.opacity-reveal.show {
  opacity: 1;
}

/* image slider */

.slider {
  width: 100%;
  height: var(--height);
  overflow: hidden;
  background-color: #f8f9fa;
  p {
    margin-top: 20px;
    text-align: center;
    font-size: 18px;
  }
}

.slider .list {
  display: flex;
  width: 100%;
  min-width: calc(var(--width) * var(--quantity));
  position: relative;
}

.slider .list .item {
  width: var(--width);
  height: var(--height);
  position: absolute;
  left: 100%;
  animation: autoRun 10s linear infinite;
  transition: filter 0.5s;
  animation-delay: calc(
    (10s / var(--quantity)) * (var(--position) - 1) - 10s
  ) !important;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.slider .list .item img {
  max-width: 200px;
  height: 80px;
  margin-left: 20px;
}

@keyframes autoRun {
  from {
    left: 100%;
  }

  to {
    left: calc(var(--width) * -1);
  }
}

.slider[reverse="true"] .item {
  animation: reversePlay 10s linear infinite;
}

@keyframes reversePlay {
  from {
    left: calc(var(--width) * -1);
  }

  to {
    left: 100%;
  }
}
