/* Modern Hero Slider - Ultra Fast & Clean */
.hero-slider {
  position: relative;
  margin: 0 0 2rem;
  width: 100%;
  overflow: hidden;
}

.slides {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  aspect-ratio: 16/6;
  background: #000;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  display: block;
}

.slide {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.1) rotate(2deg);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.slide.active {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  position: relative;
}

.slide.prev {
  transform: scale(0.9) rotate(-2deg);
  opacity: 0;
}

.slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease-out;
  filter: brightness(0.95);
  border-radius: 0;
  display: block;
}

.slide.active img {
  transform: scale(1.02);
}

.slide:hover img {
  transform: scale(1.05);
  filter: brightness(1);
}

.caption {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  padding: 1.5rem 2rem;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: white;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  transform: translateY(30px) scale(0.95);
  opacity: 0;
  transition: all 0.4s ease 0.2s;
  max-width: 600px;
}

.slide.active .caption {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.slider-controls {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 10;
  padding: 0 1rem;
}

.slider-controls button {
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 0;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-controls button:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

.slider-controls button:active {
  transform: scale(0.95);
}

.dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 1rem;
  padding: 1rem;
}

.dots button {
  width: 40px;
  height: 4px;
  border: none;
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 0;
}

.dots button.active {
  background: var(--primary, #000);
  transform: scaleX(1.5);
}

.dots button:hover {
  background: rgba(0, 0, 0, 0.6);
  transform: scaleY(1.5);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .slides {
    aspect-ratio: 4/3;
  }
  
  .caption {
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
  
  .slider-controls {
    padding: 0 0.5rem;
  }
  
  .slider-controls button {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .dots button {
    width: 30px;
    height: 3px;
  }
}

@media (max-width: 480px) {
  .slides {
    aspect-ratio: 1/1;
  }
  
  .caption {
    font-size: 0.9rem;
    padding: 0.8rem 1rem;
  }
  
  .slider-controls button {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }
  
  .dots {
    gap: 6px;
  }
  
  .dots button {
    width: 25px;
  }
}

/* Smooth Performance */
.slide {
  will-change: transform, opacity;
}

.slide img {
  will-change: transform;
}

/* Focus States */
.slider-controls button:focus-visible,
.dots button:focus-visible {
  outline: 2px solid var(--primary, #000);
  outline-offset: 2px;
}

.slide:focus-visible {
  outline: 3px solid var(--primary, #000);
  outline-offset: 3px;
}

/* Loading State */
.hero-slider[data-loading] .slide {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 0.4; }
}

/* Ultra Modern Minimalist Variant */
.hero-slider.minimal .slides {
  box-shadow: none;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.hero-slider.minimal .caption {
  background: rgba(255, 255, 255, 0.95);
  color: #000;
  backdrop-filter: blur(10px);
}

.hero-slider.minimal .slider-controls button {
  background: rgba(255, 255, 255, 0.9);
  color: #000;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.hero-slider.minimal .dots button {
  background: rgba(0, 0, 0, 0.2);
}

.hero-slider.minimal .dots button.active {
  background: #000;
}