/* Projects section */
.projects-section {
  padding: 1rem 0;
  background-color: var(--light-color);
  font-family: "Acumin", sans-serif; /* تعيين خط أكومين للنص */
}

.project-container {
  margin: 0 auto;
  padding: 2rem;
}

.project-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.project-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.project-item:last-child {
  margin-bottom: 0;
}

.project-item:nth-child(even) {
  direction: rtl;
}

.project-item:nth-child(even) .project-content {
  direction: ltr;
}

.project-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-item {
  align-items: start; /* يخلّي الصور والنص يبتدوا من نفس الخط */
}

.project-title {
  color: #459e55;
  font-size: 1.4rem;
  font-family: "Acumin", sans-serif; /* تعيين خط أكومين للنص */
  position: relative;
  font-weight: 900;
  margin-bottom: 1rem;
}

span {
  font-weight: 100;
}

.project-subtitle {
  color: #459e55;
  font-size: 2rem;
  font-weight: lighter;
}

.project-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.5rem;
  width: 80px;
  height: 3px;
  background-color: #459e55;
}

.project-description {
  color: var(--text-color);
}

.project-details {
  display: flex;
  flex-direction: column;
}

.project-details dt {
  color: black;
  font-weight: 600;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  align-self: center;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Lightbox styles */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
}

.lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
}

.lightbox-button {
  background-color: rgba(112, 245, 139, 0.707);
  color: rgb(81, 54, 11);
  border: none;
  padding: 1rem;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.lightbox-button:hover {
  background-color: rgba(80, 174, 97, 0.832);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: white;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  z-index: 1001;
}

@media (max-width: 768px) {
  .project-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .project-label {
    display: flex;

    flex-wrap: wrap;
  }

  dt {
    margin-right: 4px;
  }

  .project-item:nth-child(even) {
    direction: ltr;
  }

  .project-title {
    font-size: 2rem;
  }

  .project-gallery {
    order: 0;
  }

  .lightbox-content {
    width: 95%;
  }
}
@media (max-width: 1800px) {
  .clients-title h4 {
    font-size: 2rem;
  }
}

@media (max-width: 1024px) {
  .clients-title h4 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* Clients section */
.clients-section {
  text-align: center;
  padding: 2rem 0;
  background: #f8f9fa;
}

.clients-title {
  text-align: center;
  background: linear-gradient(
    to right,
    #459e55,
    #dab03d
  ); /* تدرج لوني من الأخضر الفاتح إلى الأخضر الداكن */
  color: transparent;
  -webkit-background-clip: text;
}

.client-logo {
  width: 100%;
  padding: 1rem;

  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.clients-section {
  padding: 50px 0;
  text-align: center;
}

.logoSlider-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.logoSlider-track {
  display: flex;
  width: 100%;
  animation: scroll 60s linear infinite;
}

.logoSlider-logo {
  width: 80px; /* Adjust the width as needed */
  padding: 10px;
  box-sizing: border-box;
}

@keyframes scroll {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}
