.hero {
  position: relative;
  width: 100%;
  height: calc(100vh + 6rem);
  max-height: 60rem;
  display: flex;
  overflow: visible !important;
  margin-top: 0;
  margin-bottom: 8rem;
  padding-top: 1rem;
  background-color: var(--color-black);
}

.panel-right {
  margin-top: 4rem;
  width: calc(100% - 4rem);
  height: calc(100vh - 6rem);
  overflow: hidden;
  z-index: 5;
  position: absolute;
  top: 0;
  left: 2rem;
  right: 0;
  transform: translateZ(0);
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  perspective: 1000;
  max-height: 60rem;
  min-height: 40rem;
}

.hero-slider-container {
  width: 100%;
  height: 100%;
  transform: translateZ(0);
  will-change: transform;
  position: relative;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  overflow: hidden;
}

.hero-slider-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-black);
  z-index: 0;
}

.hero-bg-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: calc(100vh + 2rem);
  z-index: 1;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  pointer-events: none;
  opacity: 1;
  transition: opacity 1s ease-in-out;
  max-height: 72rem;
}

.hero-bg-slider::-webkit-scrollbar {
  display: none;
}

.hero-bg-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  position: relative;
}

.hero-bg-slide-image {
  width: 87%;
  height: 68%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0px;
  left: 0px;
  right: 0px;
  bottom: 0px;
  filter: blur(50px) brightness(1.2) contrast(1.3) saturate(1.2);
  border-radius: 0;
  margin: auto;
}

.hero-slider {
  width: 100%;
  height: 100%;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  z-index: 2;
  position: relative;
}

.hero-slider::-webkit-scrollbar {
  display: none;
}

.hero-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  position: relative;
}

.hero-slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform, scale;
  transform-origin: center center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 0 !important;
}

.hero-text-overlay {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: 6;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.75) 50%,
    rgba(0, 0, 0, 0) 100%
  );
}

.hero-content {
  color: var(--color-white);
  text-align: left;
  width: 100%;
  max-width: 830px;
  min-width: 470px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 0 0 2.5rem;
  position: relative;
}

.hero-heading-wrapper {
  position: relative;
  padding: 0;
  margin: 0 0 1.25rem;
}

.hero-corner {
  position: absolute;
  width: 25px;
  height: 25px;
  opacity: 0;
  background: transparent;
}

.hero-corner-tl {
  top: 0;
  left: -15px;
  border-top: 3px solid var(--color-accent-main);
  border-left: 3px solid var(--color-accent-main);
}

.hero-corner-tr {
  top: 0;
  right: 40px;
  border-top: 3px solid rgba(126, 228, 179, 0.8);
  border-right: 3px solid rgba(126, 228, 179, 0.8);
}

.hero-corner-bl {
  bottom: -1.25rem;
  left: -8px;
  width: 16px;
  height: 16px;
  border-bottom: 3px solid rgba(126, 228, 179, 0.6);
  border-left: 3px solid rgba(126, 228, 179, 0.6);
}

.hero-corner-br {
  bottom: 0;
  right: 40px;
  border-bottom: 3px solid rgba(126, 228, 179, 0.4);
  border-right: 3px solid rgba(126, 228, 179, 0.4);
}

.hero-header-tag {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-accent-main);
  text-align: left;
  margin-bottom: 0.5rem;
  transform: translateY(20px);
  will-change: opacity, transform;
}

.hero h1 {
  display: flex;
  flex-direction: column;
  font-size: var(--section-header-size);
  font-weight: 400;
  line-height: 1.125;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--color-white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  align-self: flex-start;
}

.hero h1 .word {
  display: block;
  margin-bottom: 0.25rem;
}

#first-header .word {
  opacity: 0;
}

.hero-header-tag {
  opacity: 0;
}

.hero-slide:not([data-slide='0']) .hero-header-tag {
  opacity: 1;
  transform: translateY(0);
}

.hero h1 .word-3 {
  font-weight: 400;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  background-image: linear-gradient(
    to top,
    var(--color-accent-main) 0%,
    var(--color-accent-main) 70%,
    var(--color-white) 100%
  );
  background-size: 100% 100%;
  will-change: opacity, transform;
  text-shadow: none;
}

.hero-subheading-container {
  position: relative;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  padding-left: 1.25rem;
  width: 65%;
}

.hero-subheading-bar {
  position: absolute;
  top: 0.5rem;
  left: -0.5rem;
  width: 4px;
  height: calc(100% - 0.5rem);
  background: linear-gradient(
    135deg,
    var(--color-accent-main) 0%,
    rgba(126, 228, 179, 0.6) 100%
  );
  opacity: 0;
  transform: scaleY(0);
  transform-origin: top;
}

.hero-subheading {
  font-size: 1.4rem;
  line-height: 1.4;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.7);
  margin: 0;
  padding: 0.4rem 0;
  opacity: 0;
  will-change: transform, opacity, scale;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-origin: center center;
}

.carousel-nav {
  position: absolute;
  bottom: 1.25rem;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  z-index: 10;
  pointer-events: none;
}

.carousel-nav::before {
  content: '';
  position: absolute;
  height: 1.75rem;
  padding: 0;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 1rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: -1;
  left: 50%;
  transform: translateX(-50%);
  top: -0.625rem;
  bottom: -0.625rem;
  width: calc(
    (var(--dot-count, 3) * 0.5rem) + 0.75rem +
      ((var(--dot-count, 3) - 1) * 0.75rem + 1.5rem)
  );
}

.carousel-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 5rem;
  background-color: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.15s ease-out;
  pointer-events: auto;
  z-index: 2;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.carousel-dot::before {
  content: '';
  position: absolute;
  width: 2rem;
  height: 2rem;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
}

:root {
  --dot-inactive-alpha: 1;
  --dot-active-alpha: 0.35;
  --dot-split: 0%;
  --dot-progress: 0%;
}

.carousel-dot.active {
  background-image: linear-gradient(
    to right,
    rgba(255, 255, 255, var(--dot-inactive-alpha)) 0%,
    rgba(255, 255, 255, var(--dot-inactive-alpha)) var(--dot-split),
    rgba(255, 255, 255, var(--dot-active-alpha)) var(--dot-split),
    rgba(255, 255, 255, var(--dot-active-alpha)) 100%
  );
  width: 1.75rem;
  border-radius: 5rem;
  transition: all 0.1s ease-out;
  position: relative;
  overflow: hidden;
}

.carousel-dot.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 255, 255, 0.8) var(--dot-progress),
    transparent var(--dot-progress),
    transparent 100%
  );
  border-radius: inherit;
  transform-origin: left center;
  will-change: transform;
  transition: none;
}

.carousel-dot:hover:not(.active) {
  background-color: rgba(255, 255, 255, 0.6);
}

.panel-middle,
.hero::after,
.panel-left::before,
.panel-middle::before {
  content: none;
  display: none;
}

/* between 1048 amd 768m we need 1rem padding top on the hero sldier. */
@media (max-width: 1048px) {
  .hero {
    margin-top: 2rem;
  }

  .hero-bg-slide-image {
    width: 85%;
    height: 72%;
    filter: blur(20px) brightness(1.2) contrast(1.3) saturate(1.2);
  }
}

@media (max-width: 768px) {
  .hero {
    height: auto;
    min-height: 50rem;
    display: flex;
    flex-direction: column;
    padding-top: 1rem;
    padding-bottom: 8rem;
    overflow: visible;
  }

  .hero-bg-slider {
    opacity: 0.3;
    overflow: hidden;
    top: -8vh;
    left: 0;
    min-height: 74rem;
  }

  .panel-right {
    position: relative !important;
    margin: 4rem auto 6rem;
    width: calc(100% - 2rem);
    height: auto;
    border-radius: 24px;
    overflow: visible;
    left: 0;
  }

  .hero-slider-container {
    position: relative;
    width: 100%;
    height: 100svh;
    max-height: 43rem;
    border-radius: 32px;
    margin: 0 auto;
    overflow: hidden;
    min-height: 55rem;
  }

  .hero-text-overlay {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.85) 0%,
      rgba(0, 0, 0, 0.7) 20%,
      rgba(0, 0, 0, 0.6) 40%,
      rgba(0, 0, 0, 0.5) 90%,
      rgba(0, 0, 0, 0.3) 100%
    );
  }

  .hero-content {
    justify-content: flex-start;
    width: 100%;
    max-width: 410px;
    min-width: 330px;
    padding: 4rem 1rem;
    border-radius: 32px;
  }

  .hero-slide-image {
    border-radius: 32px;
  }

  .hero h1 {
    font-size: var(--section-header-size);
    padding-top: 0rem;
  }

  .hero h1 .word {
    margin-bottom: 0.5rem;
  }

  html,
  body {
    height: 100vh;
    height: 100svh;
    min-height: 100vh;
    min-height: 100svh;
  }

  .hero-corner {
    display: none;
  }

  .hero-subheading-container {
    font-size: 1.5rem;
    width: calc(100% - 2rem);
    margin-bottom: 0;
  }

  .hero-subheading {
    padding: 0;
    margin: 0;
  }

  .hero-subheading-bar {
    left: -0;
  }

  .hero-slide-image {
    border-radius: 3rem;
  }
}
