/* ============================================
   Hero Slider - Premium Full-Width
   ============================================ */

.hero-slider {
  position: relative;
  min-height: clamp(24rem, 50vw, 42rem);
  overflow: hidden;
  isolation: isolate;
  perspective: 1400px;
  transform-style: preserve-3d;
}

.hero-slider * {
  transform-style: preserve-3d;
}

.hero-slider__slides {
  position: absolute;
  inset: 0;
}

.hero-slider__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 700ms var(--ease-smooth), visibility 700ms var(--ease-smooth);
  z-index: 0;
}

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

.hero-slider__slide::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hero-slider__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 8s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-slider__slide.is-active .hero-slider__image {
  transform: scale(1.1);
}

.hero-slider__content {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 4rem), var(--container-size));
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem);
  color: #fff;
  border-radius: clamp(1rem, 3vw, 2rem);
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.03));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 0.5rem 2rem rgba(0,0,0,0.08);
  overflow: hidden;
}

.hero-slider__slide.is-active .hero-slider__content {
  animation: slide-content-in 600ms var(--ease-smooth) both;
}

@keyframes slide-content-in {
  from {
    opacity: 0;
    transform: translateY(1.5rem) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-slider__slide.is-active .hero-slider__title {
  animation: slide-title-in 700ms var(--ease-smooth) 100ms both;
}

.hero-slider__slide.is-active .hero-slider__sub {
  animation: slide-sub-in 700ms var(--ease-smooth) 200ms both;
}

.hero-slider__slide.is-active .hero-slider__content .button {
  animation: slide-btn-in 700ms var(--ease-smooth) 300ms both;
}

@keyframes slide-title-in {
  from { opacity: 0; transform: translateY(1rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slide-sub-in {
  from { opacity: 0; transform: translateY(1rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slide-btn-in {
  from { opacity: 0; transform: translateY(1rem) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-slider__title {
  max-width: 40rem;
  margin: 0 0 0.75rem 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  line-height: 0.95;
  text-shadow: 0 2px 16px rgba(0,0,0,0.15);
}

.hero-slider__sub {
  max-width: 32rem;
  margin: 0 0 1.5rem 0;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  line-height: 1.6;
  opacity: 0.85;
  text-shadow: 0 1px 8px rgba(0,0,0,0.12);
}

.hero-slider__controls {
  position: absolute;
  right: 50%;
  bottom: 2rem;
  display: flex;
  gap: 0.5rem;
  z-index: 3;
  transform: translateX(50%);
}

.hero-slider__dot {
  width: 0.6rem;
  height: 0.6rem;
  background: rgba(255,255,255,0.35);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  transition: all 400ms var(--ease-smooth);
  position: relative;
}

.hero-slider__dot::before {
  content: '';
  position: absolute;
  inset: -0.3rem;
  border-radius: inherit;
  border: 2px solid transparent;
  transition: border-color 400ms var(--ease-smooth), transform 400ms var(--ease-smooth);
}

.hero-slider__dot:hover::before {
  border-color: rgba(255,255,255,0.3);
  transform: scale(1.2);
}

.hero-slider__dot.is-active {
  width: 2.5rem;
  background: var(--color-accent);
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.5), 0 0 30px rgba(0, 212, 255, 0.15);
}

.hero-slider__dot.is-active::before {
  border-color: var(--color-accent);
  opacity: 0.5;
}

/* Nav arrows */
.hero-slider__arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  color: white;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 300ms var(--ease-smooth);
  transform: translateY(-50%);
  font-size: 1.2rem;
  font-family: inherit;
}

.hero-slider__arrow:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.15);
}

.hero-slider__arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.hero-slider__arrow--prev {
  inset-inline-start: 1.5rem;
}

.hero-slider__arrow--next {
  inset-inline-end: 1.5rem;
}

/* ============================================
   Auto-generate gradient slides
   ============================================ */
@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.auto-slide-0 {
  background: linear-gradient(135deg, #0f5f59 0%, #0d4d48 30%, #0a3d38 70%, #062824 100%);
  background-size: 200% 200%;
  animation: gradient-shift 12s ease infinite;
}
.auto-slide-1 {
  background: linear-gradient(135deg, #1a3a34 0%, #0f5f59 30%, #1a6b5a 60%, #0d4d48 100%);
  background-size: 200% 200%;
  animation: gradient-shift 14s ease infinite;
}
.auto-slide-2 {
  background: linear-gradient(135deg, #0a2e28 0%, #1a4a40 25%, #2a5a50 50%, #0f5f59 100%);
  background-size: 200% 200%;
  animation: gradient-shift 16s ease infinite;
}

.auto-slide-0::after,
.auto-slide-1::after,
.auto-slide-2::after {
  background:
    radial-gradient(ellipse 80% 50% at 20% 80%, rgba(201,119,50,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 60%);
}

.auto-slide-0::before,
.auto-slide-1::before,
.auto-slide-2::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.03;
  background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.auto-slide-0 .hero-slider__content,
.auto-slide-1 .hero-slider__content,
.auto-slide-2 .hero-slider__content {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
}

/* garland */
@keyframes garland-twinkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}
@keyframes garland-twinkle-slow {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 0.2; transform: scale(0.6); }
}

.hero-garland {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  overflow: hidden;
}
.hero-garland__string {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.hero-garland__bulb {
  position: absolute;
  width: 10px;
  height: 14px;
  border-radius: 50% 50% 45% 45%;
  background: radial-gradient(circle at 35% 35%, #a8ffb0, #22c55e 40%, #15803d);
  box-shadow: 0 0 8px 3px rgba(34,197,94,0.7), 0 0 18px 6px rgba(34,197,94,0.3);
  animation: garland-twinkle 2.5s ease-in-out infinite;
}
.hero-garland__bulb::after {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 5px;
  background: rgba(255,255,255,0.5);
  border-radius: 2px;
}
.hero-garland__bulb--alt {
  background: radial-gradient(circle at 35% 35%, #bbf7d0, #4ade80 40%, #16a34a);
  box-shadow: 0 0 8px 3px rgba(74,222,128,0.7), 0 0 18px 6px rgba(74,222,128,0.3);
  animation: garland-twinkle-slow 3.2s ease-in-out infinite;
}
.hero-garland__bulb--dim {
  background: radial-gradient(circle at 35% 35%, #86efac, #16a34a 40%, #0f5f59);
  box-shadow: 0 0 5px 2px rgba(22,163,74,0.5);
  animation: garland-twinkle 4s ease-in-out infinite;
}
