/* project item header section */
.project-item-header {
  padding: 3rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.project-icon {
  font-size: 2.5rem;
  color: var(--Accent-Color);
  margin-bottom: 1rem;
}

.project-item-header h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--Text-Color);
}

.project-image {
  width: 100%;
  max-width: 700px;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.project-summary {
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--Text-Color);
  margin-top: 1rem;
}

/* project item body section */
.project-item-body {
  max-width: 900px;
  margin-top: 100px;
  margin-bottom: 100px;
  padding: 2.5rem 1.5rem;
}

.project-item-body h3 {
  font-size: 2.5rem;
  margin-bottom: 5rem;
  text-align: center;
  color: var(--Text-Color);
}

.project-section {
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2); 
  border-radius: 8px; 
}


.project-section h4 {
  font-size: 1.2rem;
  margin-bottom: 1.75rem;
  color: var(--Text-Color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-section p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--Text-Color);
  margin: 0;
}

/* benefits section */
.benefits-section {
  padding: 2.5rem 1.5rem;
  max-width: 900px;
  margin-top: 100px;
  margin-bottom: 100px;
  text-align: center;
}

.benefits-section h3 {
  font-size: 2.5rem;
  margin-bottom: 5rem;
  color: var(--Text-Color);
}

.benefits-list {
  display: flex;
  align-items: flex-start;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-direction: column;
}

.benefits-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  color: var(--Text-Color);
  justify-content: center;
  text-align: left;
}

.benefit-icon {
  font-size: 1.5rem;
  color: var(--Accent-Color);
  flex-shrink: 0;
}

/* Initial hidden state */
.slide-left,
.slide-right {
  opacity: 0;
  transform: translateX(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Reveal from left */
.slide-left.revealed {
  opacity: 1;
  transform: translateX(0);
  animation: slideInLeft 0.8s ease forwards;
}

/* Reveal from right */
.slide-right.revealed {
  opacity: 1;
  transform: translateX(0);
  animation: slideInRight 0.8s ease forwards;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* gallery section */

.gallery-section{
  display: flex;
    flex-direction: column;
    align-items: center;

}

#gallery-heading {
  padding: 2.5rem 1.5rem;
  max-width: 900px;
  margin-bottom: 50px;
  font-size: 2.5rem;
  text-align: center;
}

/* wrapper */
.wrapper {
  padding: 100px 0;
  width: 900px; /* bigger desktop */
  margin: 0 auto;
}

/* slider container */
.slider {
  position: relative;
  display: flex;
  justify-content: center; /* center content */
  align-items: center;
}

/* arrows */
.slider .arrow {
  cursor: pointer;
  width: 70px;
  position: relative;
  z-index: 2;
}
.slider .arrow.right {
  transform: rotate(180deg);
}
.slider .arrow:hover {
  opacity: 0.8;
}

/* base arrow color */
.slider .arrow svg path {
  fill: var(--Accent-Color); 
}




/* images */
.slider .container-images {
  position: relative;
  width: 650px;
  height: 400px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 14px 14px 55px -12px rgba(0, 0, 0, 0.6);
}

.slider .container-images img {
  position: absolute;
  top: 50%;
  left: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: translateY(-50%);
  opacity: 0;
  transition: left 0.5s ease, opacity 0.5s ease;
  z-index: 0;
}

/* active image */
.slider .container-images img.active {
  left: 0;
  opacity: 1;
  z-index: 1;
}

/* sliding out */
.slider .container-images img.to_left {
  left: -100%;
}
.slider .container-images img.to_right {
  left: 100%;
}



@media (max-width: 768px) {
  .wrapper {
    width: 100%;
    padding: 50px 0;
  }

  .slider {
    justify-content: center;
  }

  .slider .container-images {
    width: 90%;
    max-width: 500px;
    height: 280px;
  }

  /* position arrows to the sides of the image */
  .slider .arrow {
    width: 50px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }

  .slider .arrow.left {
    left: -20px;
  }

  .slider .arrow.right {
    right: -20px;
    transform: translateY(-50%) rotate(180deg);
  }
}



/* video styles */
.gallery-video video {
  margin-top: 50px;
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-video video:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}


/* team section */
.team-section {
  padding: 2.5rem 1.5rem;
  max-width: 800px;
  margin-top: 100px;
  margin-bottom: 100px;
  text-align: center;
}

.team-section h3 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--Text-Color);
}

.team-section p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--Text-Color);
}

.team-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.team-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  color: var(--Text-Color);
  text-align: left;
}

.team-icon {
  font-size: 1.6rem;
  color: var(--Accent-Color);
  flex-shrink: 0;
}


@media (max-width: 768px) {
  /* project item header section */
  .project-item-header {
    padding: 2rem 1rem;
    max-width: 100vw;
    text-align: center;
  }

  .project-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
  }

  .project-item-header h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .project-image {
    max-width: 100%;
    margin: 1rem auto;
    border-radius: 6px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  }

  .project-summary {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-top: 0.75rem;
    padding: 0 1rem;
  }


  /* project item body section */
  .project-item-body {
    max-width: 100vw;
    padding: 2rem 1rem;
  }

  .project-item-body h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
  }

  .project-section {
    padding: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
    border-radius: 6px;
  }

  .project-section h4 {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.4px;
  }

  .project-section p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  /* benefits section */
  .benefits-section {
    padding: 2rem 1rem;
    max-width: 100vw;
    text-align: center;
  }

  .benefits-section h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }

  .benefits-list {
    flex-direction: column;
    gap: 1rem;
  }

  .benefits-list li {
    flex-direction: row;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    padding: 0 1rem;
    justify-content: flex-start;
  }

  .benefit-icon {
    font-size: 1.3rem;
  }

  /* gallery section */
  .gallery-section {
    padding: 2rem 1rem;
    max-width: 100vw;
    text-align: center;
  }

  .gallery-section h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }

  .gallery-images {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .gallery-images img {
    border-radius: 6px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
  }

  .gallery-video video {
    max-width: 100%;
    border-radius: 6px;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.12);
  }

  /* team section */
  .team-section {
    padding: 2rem 1rem;
    max-width: 100vw;
    text-align: center;
  }

  .team-section h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .team-section p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .team-list li {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    padding: 0 1rem;
  }

  .team-icon {
    font-size: 1.4rem;
  }


}



