/* Base Styles */
:root {
  --primary-color: #1E3A8A;
  --secondary-color: #f8f9fa;
  --accent-color: #1E3A8A;
  --text-light: #ffffff;
  --text-dark: #000000;
  --overlay-color: rgba(200, 220, 255, 0.50); /* Very light blue tint */
  --transition-speed: 0.5s;
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  overflow-x: hidden;
  color: var(--text-light);
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity var(--transition-speed) ease-in-out;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay-color);
  z-index: 1;
}

.carousel-slide.active {
  opacity: 1;
}

.slide-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  padding: 0 40px;
  transform: translateY(-50px);
  opacity: 0;
  transition: all var(--transition-speed) ease;
}

.carousel-slide.active .slide-content {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0.3s;
}

.slide-content h2 {
  font-size: clamp(1.5rem, 5vw, 4.1rem);
  margin-bottom: 0.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.1;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.slide-content h5 {
  font-size: clamp(1.1rem, 3vw, 2.1rem);
  margin-bottom: 2rem;
  font-weight: 300;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  color: #000000;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.btn {
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  font-size: clamp(0.8rem, 1.2vw, 1rem);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-learn {
  background-color: var(--text-light);
  color: var(--primary-color);
  border: 2px solid var(--text-light);
}

.btn-learn:hover {
  background-color: transparent;
  color: var(--text-light);
  transform: translateY(-3px);
}

.btn-contact {
  background-color: var(--accent-color);
  color: var(--text-light);
  border: 2px solid var(--accent-color);
}

.btn-contact:hover {
  background-color: transparent;
  color: var(--text-light);
  transform: translateY(-3px);
}

/* Navigation buttons */
.carousel-navigation {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 3;
  pointer-events: none;
}

.carousel-prev, .carousel-next {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  padding: 15px;
  cursor: pointer;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  border-radius: 50%;
  margin: 0 30px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.carousel-prev:hover, .carousel-next:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

/* Indicators */
.carousel-indicators {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 3;
}

.carousel-indicators span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.carousel-indicators span.active {
  background: var(--accent-color);
  transform: scale(1.2);
  border-color: var(--text-light);
}

/* Progress Bar */
.carousel-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 3;
  text-align: center;
}

.progress-bar {
  height: 100%;
  width: 0;
  background: var(--accent-color);
  transition: width linear;
}

/* Animation Effects */
@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(30px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .carousel-prev, .carousel-next {
      margin: 0 20px;
      width: 50px;
      height: 50px;
  }
  
  .carousel-indicators {
      bottom: 30px;
  }
}

@media (max-width: 768px) {
  .carousel-slide {
      background-position: 60% center;
  }
  
  .slide-content {
      padding: 0 30px;
  }
  
  .carousel-prev, .carousel-next {
      margin: 0 15px;
      width: 45px;
      height: 45px;
      font-size: 1.2rem;
  }
  
  .btn {
      padding: 12px 25px;
  }
}

@media (max-width: 576px) {
  .carousel-container {
      height: 90vh;
  }
  
  .slide-content {
      padding: 0 20px;
  }
  
  .carousel-prev, .carousel-next {
      margin: 0 10px;
      width: 40px;
      height: 40px;
  }
  
  .carousel-indicators {
      bottom: 20px;
  }
  
  .carousel-indicators span {
      width: 10px;
      height: 10px;
  }
  
  .cta-buttons {
      flex-direction: column;
      gap: 15px;
      margin-top: 30px;
  }
  
  .btn {
      width: 100%;
      max-width: 250px;
      margin: 0 auto;
  }
}

/* Special Effects for Desktop */
@media (min-width: 992px) {
  .carousel-slide.active .slide-content h1 {
      animation: fadeInUp 0.8s ease-out forwards;
  }
  
  .carousel-slide.active .slide-content h2 {
      animation: fadeInUp 0.8s ease-out 0.2s forwards;
  }
  
  .carousel-slide.active .cta-buttons {
      animation: fadeInUp 0.8s ease-out 0.4s forwards;
  }
}