/* Enhanced Bootstrap Hero Slider Styles */

#heroCarousel {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
}

.hero-slide {
  height: 600px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  position: relative;
}

#heroCarousel .carousel-caption {
  position: absolute;
  bottom: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
  color: white;
  z-index: 2;
}

.slide-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.slide-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
  line-height: 1.2;
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.5px;
}

.slide-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: #f8f9fa;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
  line-height: 1.6;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-buttons .btn {
  padding: 12px 30px;
  font-size: 1.1rem;
  font-weight: 500;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.hero-buttons .btn-primary {
  background: linear-gradient(45deg, #007bff, #0056b3);
  border: none;
  color: white;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,123,255,0.3);
}

.hero-buttons .btn-primary:hover {
  background: linear-gradient(45deg, #0056b3, #004085);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,123,255,0.4);
}

.hero-buttons .btn-outline-light {
  border: 2px solid #ffffff;
  color: #ffffff;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.hero-buttons .btn-outline-light:hover {
  background: #ffffff;
  color: #007bff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,255,255,0.3);
}

/* Carousel Controls */
#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
  transition: all 0.3s ease;
}

#heroCarousel .carousel-control-prev:hover,
#heroCarousel .carousel-control-next:hover {
  background: rgba(255,255,255,0.2);
  opacity: 1;
}

#heroCarousel .carousel-control-prev-icon,
#heroCarousel .carousel-control-next-icon {
  width: 30px;
  height: 30px;
}

/* Carousel Indicators */
#heroCarousel .carousel-indicators {
  bottom: 30px;
  z-index: 2;
}

#heroCarousel .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.5);
  border: 2px solid white;
  margin: 0 8px;
  transition: all 0.3s ease;
}

#heroCarousel .carousel-indicators button.active {
  background-color: white;
  transform: scale(1.2);
}

#heroCarousel .carousel-indicators button:hover {
  background-color: rgba(255,255,255,0.8);
}

/* Responsive Design */
@media (max-width: 768px) {
  /* slide height mobile update */
  #heroCarousel, .hero-slide {
    height: 450px; 
  }

  /* slide height mobile update */
  #heroCarousel, .hero-slide {
    height: 220px; 
  } 
  
  .slide-content h1 {
    font-size: 2.2rem; /* minimum size fit screen */
    margin-bottom: 1rem;
  }
  
  .slide-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }



/* Responsive Design */
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-buttons .btn {
    width: 250px;
    margin-bottom: 10px;
  }
  
  #heroCarousel .carousel-control-prev,
  #heroCarousel .carousel-control-next {
    width: 40px;
    height: 40px;
  }
  
  #heroCarousel .carousel-control-prev-icon,
  #heroCarousel .carousel-control-next-icon {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 576px) {
  .slide-content h1 {
    font-size: 2rem;
  }
  
  .slide-content p {
    font-size: 1rem;
  }
  
  .hero-buttons .btn {
    width: 200px;
    padding: 10px 20px;
    font-size: 1rem;
  }
}

/* Fade Animation */
.carousel-fade .carousel-item {
  opacity: 0;
  transition-duration: 0.6s;
  transition-property: opacity;
}

.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-next.carousel-item-left,
.carousel-fade .carousel-item-prev.carousel-item-right {
  opacity: 1;
}

.carousel-fade .active.carousel-item-left,
.carousel-fade .active.carousel-item-right {
  opacity: 0;
}

.carousel-fade .carousel-item-next,
.carousel-fade .carousel-item-prev,
.carousel-fade .carousel-item.active.carousel-item-left,
.carousel-fade .carousel-item.active.carousel-item-prev {
  transform: translateX(0);
  transform: translate3d(0, 0, 0);
}
