
/* .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
} */

/* main {
  margin-top: 0;
}

section {
  padding: 5rem 0;
} */

/* .hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 8rem 2rem 4rem;
} */

.project-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
}

.project-header .category {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 1.1rem;
  color: var(--surface-100);
  font-weight: 600;
  opacity: 0.9;
}

/* .project-header h1 {
  font-size: 4rem;
  margin: 1rem 0;
  line-height: 1.2;
} 

.project-header .subtitle {
  font-size: 1.5rem;
  opacity: 0.9;
}  */
  
#designs {
  background-color: var(--bg-oxford-blue-2);
}

#challenge {
  padding-top: 3.5rem; 
}

#solution {
  padding: 3.5rem 0;
}

#results {
  background-color: var(--bg-oxford-blue-2);
  padding-top: 4rem;
  padding-bottom: 1rem;
}

@media (max-width: 768px) {
  /* #challenge, #solution, #results {
    margin-top: 2rem;
  } */
}

.first-header {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 1.5rem;
  font-family: 'inter', sans-serif;
}

.project-image {
  max-width: 780px;
  margin: 0 auto;
  border-radius: 0.5rem;
  overflow: hidden;
  /* box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2); */
}

.project-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Carousel Styles */
.carousel-section {
  background: var(--gray-100);
  padding: 6rem 0;
}

.carousel {
  position: relative;
  max-width: 830px;
  margin: 0 auto;
  overflow: hidden;
}

.carousel-container {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  padding: 0 1rem;
  text-align: center;
}

.carousel-slide img {
  width: 100%;
  height: 500px;
  object-fit: 100%;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: var(--border-main);
}

.carousel-slide h3 {
  color: var(--primary-190);
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}

.carousel-slide p {
  color: var(--surface-100);
  font-size: 1rem;
}

.carousel-button {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  background: var(--primary-190);
  font-weight: 700;
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.carousel-button:hover {
  opacity: 1;
}

.carousel-button.prev {
  left: 20px;
}

.carousel-button.next {
  right: 20px;
}

.carousel-indicators {
  display: flex;
  justify-content: center;   /* center the dots */
  gap: 5px;
  margin-top: 1rem;        /* adds space above indicators */
  margin-bottom: 0.5rem;     /* optional: small bottom spacing */
  position: relative;        /* keeps it below the carousel */
}

.carousel-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: grey;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-indicator.active {
  background: var(--primary-200);
  border-radius: 7px;
  width: 30px;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
  color: var(--gray-900);
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.challenge-list {
  list-style: none;
  /* margin: 2rem 0; */
}

.challenge-list li {
  margin: 1rem 0;
  padding-left: 2rem;
  position: relative;
  color: var(--surface-100);
}

.challenge-list li::before {
  content: "•";
  color: var(--primary-190);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.stat-card {
  background: var(--bg-oxford-blue);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  border-radius: 0.5rem;
  text-align: center;
  /* font-family: 'inter', sans-serif; */
}

.stat-number {
  display: block;
  font-size: 3rem;
  font-weight: 500;
  color: var(--primary-190);
  line-height: 1;
}

.stat-number .sub-span {
  font-size: 2rem;
}

.stat-label {
  font-size: 1rem;
  color: var(--surface-100);
  margin-top: 0.5rem;
  display: block;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 2rem;
}

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

.solution-item img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

.solution-item h3 {
  color: var(--primary-190);
  margin-bottom: 1rem;
  font-family: 'inter', sans-serif;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1.5rem;
  margin-bottom: 3.5rem;
}

.result-card {
  text-align: center;
  padding: 2rem;
  background: var(--bg-oxford-blue);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  transition: transform 0.3s ease;
}

.result-card:hover {
  transform: translateY(-5px);
}

.result-number {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-190);
  margin-bottom: 1rem;
}

.testimonial {
  max-width: 800px;
  margin: 4rem auto;
  text-align: center;
}

blockquote {
  font-size: 1.5rem;
  font-style: italic;
  color: var(--surface-100);
  margin-bottom: 1.5rem;
}

cite {
  color: var(--surface-100);
  font-style: normal;
  opacity: 0.8;
  margin-top: 1.5rem !important;
}

#contact {
  background: var(--gray-900);
  color: var(--white);
  text-align: center;
}

.cta-button {
  margin-top: 2rem;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  background: var(--primary);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background: var(--primary-dark);
}

@media (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }

  .carousel-slide img {
    height: 400px;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 3rem 1rem;
  }

  .project-header {
    padding: 2rem 1rem;
  }

  blockquote {
    font-size: 1.25rem;
  }

  .carousel-button {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }

  .carousel-slide img {
    height: 300px;
  }

  .carousel-slide h3 {
    font-size: 1.25rem;
  }

  .carousel-slide p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  h1 {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1.25rem;
  }

  .carousel-slide img {
    height: 250px;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .result-number {
    font-size: 2.5rem;
  }
}