.hero-section.hero-carousel-section {
  --hero-accent: #00d6ff;
  --hero-accent-strong: #0a86ff;
  --hero-text: #f5fbff;
  --hero-overlay-left: rgba(3, 13, 24, 0.58);
  --hero-overlay-right: rgba(2, 10, 18, 0.28);
  --hero-glass-bg: linear-gradient(135deg, rgba(2, 18, 35, 0.66), rgba(5, 26, 50, 0.3));
  --hero-glass-border: rgba(125, 223, 255, 0.3);
  --hero-control-glow: rgba(51, 209, 255, 0.45);
  --hero-parallax-x: 0px;
  --hero-parallax-y: 0px;
  --hero-progress-duration: 6500ms;
  position: relative;
  display: block;
  width: 100%;
  min-height: min(92vh, 780px);
  margin: 0;
  overflow: hidden;
  background: #050f1d;
  isolation: isolate;
  perspective: 1000px;
}

/* Full-bleed hero even when Elementor wraps it in boxed containers */
body.home .hero-section.hero-carousel-section {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

.hero-section.hero-carousel-section::before,
.hero-section.hero-carousel-section::after {
  content: none !important;
  display: none !important;
}

.hero-carousel-track {
  position: relative;
  width: 100%;
  min-height: inherit;
}

.hero-carousel-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.03);
  transition: opacity 0.7s ease, transform 0.7s ease, visibility 0.7s ease;
}

.hero-carousel-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-bg-image);
  background-size: cover;
  background-position: calc(50% + var(--hero-parallax-x)) calc(50% + var(--hero-parallax-y));
  transform: scale(1);
  filter: saturate(1.06) contrast(1.04);
  transition: transform 8s ease, background-position 0.45s ease-out;
}

.hero-carousel-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 74% 12%, rgba(0, 214, 255, 0.24), transparent 46%),
    radial-gradient(circle at 18% 88%, rgba(8, 112, 255, 0.2), transparent 50%),
    linear-gradient(110deg, var(--hero-overlay-left) 11%, var(--hero-overlay-right) 58%, rgba(4, 10, 18, 0.34) 100%);
  animation: heroAuroraDrift 10s ease-in-out infinite alternate;
}

.hero-carousel-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
}

.hero-carousel-slide.is-active::before {
  transform: scale(1.07);
}

.hero-carousel-content {
  position: relative;
  z-index: 2;
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: clamp(6rem, 12vh, 8rem) clamp(1.25rem, 5vw, 3.25rem) clamp(8.2rem, 13vh, 9rem);
  color: var(--hero-text) !important;
  text-align: center;
  border-radius: clamp(1rem, 1.8vw, 1.7rem);
  border: 1px solid var(--hero-glass-border);
  background: var(--hero-glass-bg);
  box-shadow:
    0 28px 64px rgba(2, 12, 25, 0.54),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  overflow: hidden;
}

.hero-carousel-content::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(110, 231, 255, 0.16), rgba(110, 231, 255, 0) 28%),
    linear-gradient(300deg, rgba(42, 110, 255, 0.18), rgba(42, 110, 255, 0) 30%);
}

.hero-carousel-kicker {
  margin: 0 0 0.9rem;
  font-size: clamp(0.76rem, 0.65rem + 0.32vw, 0.96rem);
  letter-spacing: 0.2em;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9) !important;
  text-transform: uppercase;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.24);
}

.hero-carousel-title {
  margin: 0;
  font-family: "Noto Sans", "Segoe UI", sans-serif;
  font-size: clamp(2rem, 1.35rem + 2.8vw, 4.3rem);
  line-height: 1.04;
  letter-spacing: 0.02em;
  font-weight: 800;
  text-transform: uppercase;
  color: #2df3ff !important;
  background: none !important;
  -webkit-text-fill-color: #2df3ff !important;
  text-shadow: 0 12px 35px rgba(0, 0, 0, 0.42);
}

.hero-carousel-subtitle {
  margin: 1.4rem auto 0;
  max-width: 860px;
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.45rem);
  line-height: 1.6;
  color: rgba(236, 247, 255, 0.98) !important;
  text-shadow: 0 6px 22px rgba(0, 0, 0, 0.32);
  text-wrap: balance;
}

.hero-carousel-kicker,
.hero-carousel-title,
.hero-carousel-subtitle,
.hero-carousel-buttons {
  opacity: 0;
  transform: translateY(28px);
}

.hero-carousel-slide.is-active .hero-carousel-kicker {
  animation: heroContentReveal 0.55s cubic-bezier(0.2, 0.75, 0.2, 1) 0.08s forwards;
}

.hero-carousel-slide.is-active .hero-carousel-title {
  animation: heroContentReveal 0.62s cubic-bezier(0.2, 0.75, 0.2, 1) 0.16s forwards;
}

.hero-carousel-slide.is-active .hero-carousel-subtitle {
  animation: heroContentReveal 0.62s cubic-bezier(0.2, 0.75, 0.2, 1) 0.28s forwards;
}

.hero-carousel-slide.is-active .hero-carousel-buttons {
  animation: heroContentReveal 0.62s cubic-bezier(0.2, 0.75, 0.2, 1) 0.4s forwards;
}

.hero-carousel-buttons {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

.hero-carousel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  padding: 0.75rem 1.2rem;
  border-radius: 0.55rem;
  border: 1px solid transparent;
  font-family: "Noto Sans", "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  opacity: 1 !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.hero-carousel-btn::before {
  content: "";
  position: absolute;
  left: -130%;
  top: 0;
  width: 46%;
  height: 100%;
  pointer-events: none;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0));
  transition: left 0.45s ease;
}

.hero-carousel-btn:hover,
.hero-carousel-btn:focus-visible {
  transform: translateY(-2px);
}

.hero-carousel-btn:hover::before,
.hero-carousel-btn:focus-visible::before {
  left: 128%;
}

.hero-carousel-btn-primary {
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--hero-accent) 0%, var(--hero-accent-strong) 100%) !important;
  box-shadow:
    0 12px 30px rgba(10, 134, 255, 0.38),
    0 0 0 1px rgba(168, 236, 255, 0.18) inset;
}

.hero-carousel-btn-primary:hover,
.hero-carousel-btn-primary:focus-visible {
  box-shadow: 0 16px 36px rgba(6, 129, 226, 0.52);
}

.hero-carousel-btn-outline {
  color: #d2f4ff !important;
  border-color: rgba(58, 206, 255, 0.66) !important;
  background: rgba(2, 16, 30, 0.38) !important;
}

.hero-carousel-btn-outline:hover,
.hero-carousel-btn-outline:focus-visible {
  color: #001624;
  background: #8eeeff;
  border-color: #8eeeff;
}

.hero-carousel-controls {
  position: absolute;
  left: 50%;
  bottom: 1.2rem;
  z-index: 3;
  width: auto;
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.95rem;
  transform: translateX(-50%);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(2, 12, 24, 0.45);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(141, 227, 255, 0.26);
  box-shadow: 0 14px 32px rgba(2, 10, 22, 0.45), 0 0 28px rgba(38, 177, 255, 0.16);
}

.hero-carousel-arrow {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(139, 231, 255, 0.55);
  border-radius: 999px;
  background: rgba(3, 18, 34, 0.7);
  color: #e6faff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  box-shadow: 0 0 0 0 rgba(0, 214, 255, 0);
}

.hero-carousel-arrow:hover,
.hero-carousel-arrow:focus-visible {
  transform: translateY(-1px);
  border-color: #95ecff;
  background: rgba(7, 26, 44, 0.88);
  box-shadow: 0 0 0 3px rgba(63, 205, 255, 0.2), 0 0 18px var(--hero-control-glow);
}

.hero-carousel-dots {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.hero-carousel-dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(196, 231, 255, 0.38);
  cursor: pointer;
  transition: width 0.25s ease, background-color 0.25s ease;
}

.hero-carousel-dot.is-active {
  width: 28px;
  background: linear-gradient(135deg, #53f1ff 0%, #2398ff 100%);
  box-shadow: 0 0 14px rgba(51, 209, 255, 0.6);
}

.hero-carousel-progress {
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  height: 3px;
  background: rgba(208, 238, 255, 0.18);
}

.hero-carousel-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #65f6ff 0%, #2593ff 100%);
  box-shadow: 0 0 14px rgba(77, 220, 255, 0.45);
}

.hero-section.hero-carousel-section.is-playing .hero-carousel-progress span {
  animation: hero-carousel-progress var(--hero-progress-duration) linear infinite;
}

@keyframes hero-carousel-progress {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

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

@keyframes heroAuroraDrift {
  from {
    filter: hue-rotate(0deg);
  }
  to {
    filter: hue-rotate(14deg);
  }
}

.hero-section.hero-carousel-section.is-reduced-motion .hero-carousel-kicker,
.hero-section.hero-carousel-section.is-reduced-motion .hero-carousel-title,
.hero-section.hero-carousel-section.is-reduced-motion .hero-carousel-subtitle,
.hero-section.hero-carousel-section.is-reduced-motion .hero-carousel-buttons {
  animation: none !important;
  opacity: 1;
  transform: none;
}

@media (max-width: 992px) {
  .hero-section.hero-carousel-section {
    min-height: min(88vh, 720px);
  }

  .hero-carousel-content {
    padding-top: clamp(5.5rem, 11vh, 6.5rem);
    padding-bottom: clamp(7.1rem, 11vh, 7.7rem);
    border-radius: 1rem;
  }

  .hero-carousel-subtitle {
    max-width: 760px;
  }
}

@media (max-width: 767px) {
  .hero-section.hero-carousel-section {
    min-height: 640px;
  }

  .hero-carousel-content {
    padding: 5.4rem 1rem 7rem;
    border-radius: 0.85rem;
    backdrop-filter: blur(3px);
  }

  .hero-carousel-title {
    font-size: clamp(1.65rem, 6.6vw, 2.5rem);
    line-height: 1.11;
  }

  .hero-carousel-subtitle {
    margin-top: 1rem;
    font-size: 1rem;
    line-height: 1.45;
  }

  .hero-carousel-buttons {
    margin-top: 1.45rem;
    gap: 0.55rem;
  }

  .hero-carousel-btn {
    min-width: 110px;
    padding: 0.65rem 1rem;
    font-size: 0.93rem;
  }

  .hero-carousel-controls {
    bottom: 1rem;
    gap: 0.75rem;
    padding-inline: 0.45rem;
  }

  .hero-carousel-arrow {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  .hero-carousel-dot {
    width: 9px;
    height: 9px;
  }
}

/* Force wow overrides against legacy theme fixes */
.hero-section.hero-carousel-section {
  border-top: 1px solid rgba(88, 233, 255, 0.35) !important;
  box-shadow: inset 0 36px 80px rgba(5, 16, 30, 0.55) !important;
}

.hero-section.hero-carousel-section .hero-carousel-content {
  width: min(1020px, calc(100% - 2rem)) !important;
  background: linear-gradient(135deg, rgba(4, 19, 37, 0.72), rgba(2, 18, 34, 0.46)) !important;
  border: 1px solid rgba(119, 224, 255, 0.38) !important;
  box-shadow:
    0 24px 60px rgba(3, 13, 27, 0.56),
    0 0 42px rgba(47, 197, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
  backdrop-filter: blur(8px) !important;
}

@media (max-width: 767px) {
  .hero-section.hero-carousel-section .hero-carousel-content {
    width: min(100%, calc(100% - 1rem)) !important;
  }
}

.hero-section.hero-carousel-section .hero-carousel-controls {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.hero-section.hero-carousel-section .hero-carousel-arrow {
  display: inline-flex !important;
  opacity: 1 !important;
}

.hero-section.hero-carousel-section .hero-carousel-dot {
  opacity: 0.95 !important;
}

.hero-section.hero-carousel-section .hero-carousel-title {
  text-shadow:
    0 12px 35px rgba(0, 0, 0, 0.42),
    0 0 26px rgba(26, 239, 255, 0.45) !important;
}
