/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
#hero {
  width: 100%;
  height: 92vh;
  position: relative;
  overflow: hidden;
  margin-top: 61px;
}

#hero .carousel-item {
  position:relative;
  width: 100%;
  height: 89vh;
  /* background-size: 100%; */
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1s ease-in-out, transform 1.2s ease-in-out;
  z-index: 0;
}

.hero-img {
  height: 89vh;
  width: 100%;
  object-fit: cover;
  object-position: center;
}
#hero .carousel-item.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

#hero .carousel-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.5));
  z-index: 1;
}

/* ========== Indicators ========== */
.carousel-indicators {
  position: absolute;
  bottom: 30px;
  right: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 16px;
  z-index: 10;
  margin: 0;
  padding: 10px;



}

.carousel-indicators li {
  position: relative;
  width: 50px;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);

  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s ease;
  list-style: none;
}

.carousel-indicators li::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--maincolor), var(--secondcolor));
  transition: width 4.8s ease-in-out;

}

.carousel-indicators li.active::before {
  width: 100%;
}

.carousel-indicators li.active {
  transform: scale(1.1);
  background-color: rgba(255, 255, 255, 0.1);
}

/* ========== Controls ========== */
.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 11;
  transition: background 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 5px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-50%) scale(1.05);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  font-size: 24px;
  color: white;
  background: none;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  #hero, #hero .carousel-item {
    height: 80vh;
  }

  .carousel-indicators li {
    width: 30px;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  #hero, #hero .carousel-item {
    height: 70vh;
  }

  .carousel-indicators li {
    width: 25px;
    height: 5px;
  }
}
