/**
 * GREEN STEP ENVIRO SOLUTIONS PVT. LTD.
 * Cinematic Image-Only Hero Slider
 * NO OVERLAY TEXT - 100% Focused on Cinematic Environmental & Infrastructure Visuals
 */

.hero-slider-wrapper {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 560px;
  max-height: 860px;
  overflow: hidden;
  background-color: var(--color-primary-deep);
  display: block;
}

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

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.2s;
  z-index: 1;
  overflow: hidden;
}

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

.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1);
  will-change: transform;
}

/* Premium Ken Burns Animation on Active Slide */
.hero-slide.is-active .hero-slide-img {
  animation: kenBurnsZoom 7s ease-out forwards;
}

@keyframes kenBurnsZoom {
  0% {
    transform: scale(1.0);
  }
  100% {
    transform: scale(1.065);
  }
}

/* Subtle Gradient Veil to blend naturally with header and bottom trust strip */
.hero-slider-overlay-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 140px;
  background: linear-gradient(180deg, rgba(14, 36, 21, 0.65) 0%, rgba(14, 36, 21, 0) 100%);
  z-index: 3;
  pointer-events: none;
}

.hero-slider-overlay-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 90px;
  background: linear-gradient(0deg, rgba(14, 36, 21, 0.45) 0%, rgba(14, 36, 21, 0) 100%);
  z-index: 3;
  pointer-events: none;
}

/* Slider Controls & Navigation */
.hero-slider-controls {
  position: absolute;
  bottom: 24px;
  right: 40px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 5;
  background: rgba(15, 37, 22, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-md);
}

.hero-slider-nav-btn {
  background: transparent;
  border: none;
  color: #FFFFFF;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  padding: 0;
}

.hero-slider-nav-btn:hover {
  background: var(--color-accent);
  color: var(--color-primary-deep);
}

.hero-slider-nav-btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.hero-slider-counter {
  font-family: var(--font-primary);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 1px;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 4px;
}

.hero-slider-counter .current-slide {
  color: var(--color-accent);
  font-size: var(--fs-sm);
}

.hero-slider-counter .total-slides {
  opacity: 0.6;
}

/* Slider Progress Bar */
.hero-slider-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  z-index: 6;
}

.hero-slider-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--color-accent);
  transition: width 0.1s linear;
}

/* Dots Indicator */
.hero-slider-dots {
  position: absolute;
  bottom: 24px;
  left: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 5;
}

.hero-dot {
  width: 32px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.4s ease;
}

.hero-dot.is-active {
  background: var(--color-accent);
  width: 48px;
}

.hero-dot:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.7);
}

/* Responsive Heights */
@media (max-width: 1024px) {
  .hero-slider-wrapper {
    height: 65vh;
    min-height: 480px;
  }
  .hero-slider-controls {
    right: 20px;
    bottom: 16px;
  }
  .hero-slider-dots {
    left: 20px;
    bottom: 16px;
  }
}

@media (max-width: 768px) {
  .hero-slider-wrapper {
    height: 60vh;
    min-height: 420px;
  }
  .hero-slider-dots {
    display: none;
  }
  .hero-slider-controls {
    right: 16px;
    bottom: 12px;
    padding: 6px 12px;
  }
  .hero-slider-nav-btn {
    width: 28px;
    height: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide.is-active .hero-slide-img {
    animation: none;
  }
  .hero-slide {
    transition: opacity 0.3s ease;
  }
}
