.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero-slider {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 1.2s ease-in-out,
    transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
  transform: scale(1.08);
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.hero-slide.prev {
  opacity: 0;
  transform: scale(0.95);
}

.hero-slide.next {
  opacity: 0;
  transform: scale(1.08);
}

.hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  z-index: 1;
  transition: transform 8s ease-out;
  transform: scale(1.1);
}

.active .hero-bg {
  transform: scale(1);
}

.hero-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(37, 32, 41, 0.8) 0%,
    rgba(37, 32, 41, 0.6) 50%,
    rgba(37, 32, 41, 0.4) 100%
  );
  z-index: 1;
  overflow: hidden;
}

/* Add elegant overlay pattern */
.hero-mask::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../../img/patterns/dot-pattern.png");
  background-size: 3px 3px;
  opacity: 0.1;
  pointer-events: none;
}

/* Add bottom gradient border */
.hero-mask::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color),
    var(--tertiary-color)
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 4;
  width: 100%;
  height: 100%;
  padding: 0;
  padding-top: 100px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hero-content-left {
  position: relative;
  width: 50%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 120px;
  color: var(--light-color);
  z-index: 5;
}

.hero-text {
  max-width: 650px;
  width: 100%;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out 0.3s, transform 0.8s ease-out 0.3s;
}

.active .hero-text {
  opacity: 1;
  transform: translateY(0);
}

.hero-title {
  position: relative;
  font-size: 4rem;
  font-weight: 300;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--light-color);
  line-height: 1.2;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out 0.5s, transform 0.8s ease-out 0.5s;
}

.hero-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -15px;
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  transition: width 0.5s ease;
}

.active .hero-title:hover::after {
  width: 120px;
}

.active .hero-title {
  opacity: 1;
  transform: translateY(0);
}

.hero-description {
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--secondary-light);
  max-width: 600px;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out 0.7s, transform 0.8s ease-out 0.7s;
}

.active .hero-description {
  opacity: 1;
  transform: translateY(0);
}

.hero-buttons {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out 0.9s, transform 0.8s ease-out 0.9s;
}

.active .hero-buttons {
  opacity: 1;
  transform: translateY(0);
}

.hero-btn {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.hero-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.2);
  transition: all 0.5s ease;
}

.hero-btn:hover {
  background-color: var(--primary-dark);
  box-shadow: 0 5px 15px var(--shadow-light);
  transform: translateY(-2px);
}

.hero-btn:hover::before {
  width: 100%;
}

/* Updated slider controls with modern design */
.hero-controls {
  position: absolute;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  justify-content: space-between;
  padding: 0 30px;
  pointer-events: none;
}

.hero-prev,
.hero-next {
  width: 60px;
  height: 60px;
  cursor: pointer;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 2px solid var(--secondary-color);
  color: var(--light-color);
  font-size: 20px;
  transition: all 0.3s ease;
}

.hero-prev:hover,
.hero-next:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-light);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px var(--shadow-light);
}

.hero-prev:active,
.hero-next:active {
  transform: scale(0.95);
}

/* Add indicators */
.hero-indicators {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 10;
}

.hero-indicator {
  width: 30px;
  height: 4px;
  background: var(--tertiary-color);
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.6;
}

.hero-indicator.active {
  background: var(--primary-color);
  width: 50px;
  opacity: 1;
}

/* Responsive styles */
@media (max-width: 1200px) {
  .hero-content-left {
    width: 60%;
    padding-left: 80px;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .hero-description {
    font-size: 1.2rem;
  }
}

@media (max-width: 992px) {
  .hero-content-left {
    width: 70%;
    padding-left: 60px;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-description {
    font-size: 1.1rem;
    max-width: 500px;
  }

  .hero-controls {
    bottom: 30px;
    top: auto;
    transform: none;
    width: auto;
    right: 30px;
    justify-content: flex-end;
    gap: 15px;
  }

  .hero-prev,
  .hero-next {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 768px) {
  .hero-content-left {
    width: 100%;
    padding-left: 40px;
    padding-right: 40px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .hero-controls {
    right: 20px;
    bottom: 20px;
  }

  .hero-prev,
  .hero-next {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .hero-mask {
    background: linear-gradient(
      90deg,
      rgba(37, 32, 41, 0.85) 0%,
      rgba(37, 32, 41, 0.7) 100%
    );
  }
}

@media (max-width: 576px) {
  .hero-content-left {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-title {
    font-size: 2rem;
    letter-spacing: 2px;
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .hero-btn {
    padding: 12px 25px;
    font-size: 0.95rem;
  }

  .hero-controls {
    right: 10px;
    bottom: 10px;
    gap: 10px;
  }

  .hero-prev,
  .hero-next {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  .hero {
    height: 100vh;
  }

  .hero-content-left {
    padding-top: 90px;
  }

  .hero-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }

  .hero-description {
    font-size: 0.9rem;
    margin-bottom: 15px;
  }
}
