/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
}

/* Carousel Container */
#heroCarousel {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.carousel-inner {
  height: 100%;
}

.carousel-item {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Video Container */
.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.video-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Dark overlay for better text readability */
.carousel-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.2) 50%,
    rgba(0, 0, 0, 0.4) 100%
  );
  z-index: 1;
}

/* Carousel Caption */
.carousel-caption {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-caption h1 {
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.carousel-caption p {
  font-size: 1.25rem;
  font-weight: 300;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

/* Button Styles */
.btn {
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-primary {
  background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
}

.btn-info {
  background: linear-gradient(45deg, #36d1dc 0%, #5b86e5 100%);
}

.btn-success {
  background: linear-gradient(45deg, #11998e 0%, #38ef7d 100%);
}

/* Carousel Indicators */
.carousel-indicators {
  bottom: 30px;
  z-index: 3;
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background-color: transparent;
  transition: all 0.3s ease;
}

.carousel-indicators button.active {
  background-color: white;
  border-color: white;
  transform: scale(1.2);
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  z-index: 3;
  transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: rgba(0, 0, 0, 0.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 2rem;
  height: 2rem;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  padding: 0.5rem;
  transition: all 0.3s ease;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
  background-color: white;
  transform: scale(1.1);
}

/* Animation Classes */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideRight {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideLeft {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Animation Triggers */
.animate-slide-up {
  animation: slideUp 1s ease-out forwards;
  animation-delay: 0.5s;
  opacity: 0;
}

.animate-slide-right {
  animation: slideRight 1s ease-out forwards;
  animation-delay: 0.5s;
  opacity: 0;
}

.animate-slide-left {
  animation: slideLeft 1s ease-out forwards;
  animation-delay: 0.5s;
  opacity: 0;
}

.animate-fade-in {
  animation: fadeIn 1s ease-out forwards;
  animation-delay: 1s;
  opacity: 0;
}

.animate-bounce-in {
  animation: bounceIn 0.8s ease-out forwards;
  animation-delay: 1.5s;
  opacity: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .carousel-caption h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .carousel-caption p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
  }
  
  .btn {
    padding: 10px 25px;
    font-size: 0.9rem;
  }
  
  .carousel-control-prev,
  .carousel-control-next {
    width: 8%;
  }
  
  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 1.5rem;
    height: 1.5rem;
  }
  
  .carousel-indicators {
    bottom: 20px;
  }
  
  .carousel-indicators button {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 576px) {
  .carousel-caption h1 {
    font-size: 2rem;
  }
  
  .carousel-caption p {
    font-size: 0.9rem;
  }
  
  .btn {
    padding: 8px 20px;
    font-size: 0.8rem;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .animate-slide-up,
  .animate-slide-right,
  .animate-slide-left,
  .animate-fade-in,
  .animate-bounce-in {
    animation: none;
    opacity: 1;
  }
  
  .btn:hover {
    transform: none;
  }
  
  .carousel-control-prev-icon:hover,
  .carousel-control-next-icon:hover {
    transform: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .carousel-item::before {
    background: rgba(0, 0, 0, 0.7);
  }
  
  .carousel-caption {
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
  }
}