/* Clean Modern Hero Slider Styles */

.hero-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 29 / 24; /* 1920x1080 ratio */
  max-height: 90vh; /* Limit to 90% of viewport height (10% smaller) */
  overflow: hidden;
  background: #0f172a;
}

/* Fallback for older browsers */
@supports not (aspect-ratio: 16 / 9) {
  .hero-slider {
    height: 0;
    padding-bottom: 56.25%; /* 9/16 * 100 = 56.25% */
    max-height: 90vh; /* Limit to 90% of viewport height (10% smaller) */
  }

  .hero-slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
}

/* Additional constraint for very large screens */
@media (min-width: 1920px) {
  .hero-slider {
    max-height: 810px; /* 1080px * 0.9 = 972px, but let's use 810px for better proportion */
  }
}

.hero-slider-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-speed, 0.8s) cubic-bezier(0.4, 0, 0.2, 1),
    visibility var(--transition-speed, 0.8s) cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* Ensure content is always visible */
  overflow: visible;
  padding: clamp(1rem, 2vh, 2rem) clamp(0.5rem, 2vw, 1rem);
  box-sizing: border-box;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

/* No overlay - clean background only */

.hero-slide-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: clamp(1.5rem, 4vw, 4rem) clamp(1rem, 3vw, 3rem);
  max-width: min(1100px, 90vw);
  width: 100%;
  animation: fadeInUp 0.8s ease-out;
  /* Pure transparent glass effect - no color */
  background: transparent;
  -webkit-backdrop-filter: blur(8px) saturate(150%);
  backdrop-filter: blur(8px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.15);
  margin: 0 auto;
  /* Ensure content stays visible */
  box-sizing: border-box;
  overflow: visible;
}

@media (max-width: 768px) {
  .hero-slide-content {
    padding: clamp(1.25rem, 3vw, 2.5rem) clamp(1rem, 2.5vw, 2rem);
    margin: 0 clamp(0.5rem, 2vw, 1rem);
    border-radius: 0.75rem;
  }
}

/* Ensure content is visible on very wide screens */
@media (min-width: 1920px) {
  .hero-slide-content {
    padding: clamp(3rem, 2.5vw, 4rem) clamp(2rem, 2vw, 3rem);
  }
}

/* Ensure content is visible on very tall/narrow screens */
@media (max-height: 600px) and (orientation: landscape) {
  .hero-slide-content {
    padding: clamp(1rem, 2vh, 2rem) clamp(1rem, 2vw, 2rem);
  }

  .hero-slide-content h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 0.75rem;
  }

  .hero-slide-content p {
    font-size: clamp(0.875rem, 2vw, 1rem);
    margin-bottom: 1rem;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-slide-content h1 {
  font-size: clamp(1.75rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: clamp(0.75rem, 2vw, 1.25rem);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4), 0 1px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.03em;
  color: #ffffff;
  /* Prevent text overflow */
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Responsive font sizes handled by clamp() above */

.hero-slide-content p {
  font-size: clamp(0.875rem, 2.5vw, 1.125rem);
  line-height: 1.7;
  margin-bottom: clamp(1rem, 3vw, 2.5rem);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.25);
  max-width: min(680px, 85vw);
  margin-left: auto;
  margin-right: auto;
  color: #ffffff;
  font-weight: 400;
  /* Prevent text overflow */
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Responsive font sizes handled by clamp() above */

.hero-slide-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-slide-btn {
  padding: clamp(0.75rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2.25rem);
  font-size: clamp(0.875rem, 2vw, 1rem);
  font-weight: 600;
  border-radius: 0.625rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.15);
  letter-spacing: 0.01em;
  /* Ensure buttons stay visible */
  white-space: nowrap;
  flex-shrink: 0;
}

.hero-slide-btn-primary {
  /* Pure transparent glass button - no color */
  background: transparent;
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  backdrop-filter: blur(10px) saturate(150%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.2);
}

.hero-slide-btn-primary:hover {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.25);
}

.hero-slide-btn-secondary {
  /* Pure transparent glass button - no color */
  background: transparent;
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  backdrop-filter: blur(10px) saturate(150%);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.2);
}

.hero-slide-btn-secondary:hover {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.25);
}

/* Responsive button sizes handled by clamp() above */

/* Ensure buttons wrap on very small screens */
@media (max-width: 480px) {
  .hero-slide-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-slide-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

/* Navigation Arrows */
.hero-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  /* Ultra Transparent */
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  color: white;
  font-size: 1.125rem;
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.2);
}

.hero-slider-nav:hover {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.3);
}

.hero-slider-nav.prev {
  left: 1.5rem;
}

.hero-slider-nav.next {
  right: 1.5rem;
}

@media (max-width: 768px) {
  .hero-slider-nav {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .hero-slider-nav.prev {
    left: 1rem;
  }

  .hero-slider-nav.next {
    right: 1rem;
  }
}

/* Dots Navigation */
.hero-slider-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.625rem;
  align-items: center;
  /* Ultra Transparent Container */
  background: rgba(0, 0, 0, 0.1);
  border-radius: 1.5rem;
  padding: 0.625rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.2);
}

.hero-slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
}

.hero-slider-dot:hover {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.15);
}

.hero-slider-dot.active {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.9);
  width: 28px;
  border-radius: 5px;
  transform: scale(1);
}

@media (max-width: 768px) {
  .hero-slider-dots {
    bottom: 1.5rem;
  }

  .hero-slider-dot {
    width: 10px;
    height: 10px;
  }

  .hero-slider-dot.active {
    width: 24px;
  }
}

/* Auto-play indicator */
.hero-slider-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  width: 100%;
  z-index: 5;
}

.hero-slider-progress-bar {
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.3);
}

/* Pause on hover */
.hero-slider:hover .hero-slider-progress-bar {
  animation-play-state: paused;
}

/* Loading state */
.hero-slider.loading {
  opacity: 0.7;
}

.hero-slider.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 20;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
