.carousel-section {
  margin-bottom: 60px;
}

.carousel-section:last-child {
  margin-bottom: 0;
}

.projects-carousel {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

.carousel-label {
  display: flex;
  justify-content: center;
}

.project-category-badge {
  background: var(--primary);
  color: white;
  padding: 10px 25px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-style: solid;
  border-width: 2px;
  border-color: white;
}

.carousel-container {
  overflow: hidden;
  border-radius: 10px;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-slide {
  min-width: 100%;
  box-sizing: border-box;
}

.project-image {
  width: 100%;
  height: 600px;
  overflow: hidden;
  border-radius: 20px;
  margin: 15px 0;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.project-image:hover img {
  transform: scale(1.08);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.3s ease;
  z-index: 10;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn i {
  color: inherit !important;
}

.carousel-btn:hover i {
  color: black !important;
}

.prev-btn {
  left: 20px;
}

.next-btn {
  right: 20px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s ease;
}

.dot.active {
  background: #fff;
}

/* Responsive Design */
@media (min-width: 768px) {
  .carousel-slide {
    min-width: 50%;
    padding: 0 15px;
  }

  .project-image {
    height: 550px;
  }
}

@media (min-width: 1024px) {
  .carousel-slide {
    min-width: 33.333%;
    padding: 0 20px;
  }

  .project-image {
    height: 500px;
  }
}

@media (min-width: 1200px) {
  .carousel-slide {
    min-width: 25%;
    padding: 0 20px;
  }

  .project-image {
    height: 450px;
  }
}

@media (max-width: 767px) {
  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .prev-btn {
    left: 10px;
  }

  .next-btn {
    right: 10px;
  }
}