/* Container styling - Dynamic height based on image aspect ratio */
.hero-container {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 50vh;
  overflow: hidden;
  /* Maintain 3:2 aspect ratio of your images (1365x910) */
  aspect-ratio: 3/2;
}

/* Slideshow styling */
.slideshow {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Slide styling */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 1;
  transition: opacity 1.5s ease-in-out;
  overflow: hidden;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slide.previous {
  opacity: 1;
  z-index: 1;
}

/* Image styling - Show full image without cropping */
.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Changed from 'cover' to 'contain' to show full image */
  object-position: center;
  transform: scale(1);
  transition: transform 10s ease-in-out;
  /* Ensure sharp image rendering */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  background-color: #000; /* Optional: add background color for letterboxing */
}

/* Zoom animation */
.slide.active img, .slide.previous img {
  transform: scale(1.1);
}

/* Text overlay styling */
.text-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  text-align: center;
  width: 100%;
  padding: 0 20px; /* Add padding for mobile */
}

.animated-text {
  font-size: 5rem;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 10px rgba(0, 150, 255, 0.8),
               0 0 20px rgba(0, 150, 255, 0.8),
               0 0 30px rgba(0, 150, 255, 0.8);
  opacity: 0;
  animation: textAnimate 6s infinite;
  line-height: 1.2; /* Better line spacing */
}

/* Text animation */
@keyframes textAnimate {
  0% {
    opacity: 0;
    filter: blur(5px);
    letter-spacing: 2px;
    transform: scale(0.9);
  }
  10% {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
  80% {
    opacity: 1;
    filter: blur(0);
    letter-spacing: normal;
    transform: scale(1);
  }
  90% {
    opacity: 0;
    filter: blur(5px);
    letter-spacing: 2px;
    transform: scale(0.9);
  }
  100% {
    opacity: 0;
  }
}

/* Responsive styling - Maintains aspect ratio */
@media (max-width: 1366px) {
  .hero-container {
    min-height: 45vh;
  }
  
  .animated-text {
    font-size: 4.5rem;
  }
}

@media (max-width: 1024px) {
  .hero-container {
    min-height: 40vh;
  }
  
  .animated-text {
    font-size: 4rem;
  }
}

@media (max-width: 768px) {
  .hero-container {
    min-height: 35vh;
  }
 
  .animated-text {
    font-size: 2.8rem;
  }
}

@media (max-width: 480px) {
  .hero-container {
    min-height: 30vh;
  }
  
  .animated-text {
    font-size: 2.2rem;
  }
  
  .text-overlay {
    padding: 0 15px;
  }
}

/* For very small screens */
@media (max-width: 320px) {
  .hero-container {
    min-height: 25vh;
  }
  
  .animated-text {
    font-size: 1.8rem;
  }
}