.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--shadow-color);
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out, transform 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(1.1);
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1.05);
  z-index: 10;
}

.hero-slide[data-slide="1"] .hero-background {
  background: linear-gradient(
      135deg,
      rgba(20, 20, 24, 0.4),
      rgba(20, 20, 24, 0.7)
    ),
    url("/assets/img/hero-slider-bg-1.webp") center/cover;
  animation: backgroundFloat 20s ease-in-out infinite;
}

.hero-slide[data-slide="2"] .hero-background {
  background: linear-gradient(
      135deg,
      rgba(238, 10, 16, 0.3),
      rgba(187, 0, 0, 0.6)
    ),
    url("/assets/img/hero-slider-bg-2.webp") center/cover;
  animation: backgroundFloat 25s ease-in-out infinite reverse;
}

.hero-slide[data-slide="3"] .hero-background {
  background: linear-gradient(
      135deg,
      rgba(169, 139, 104, 0.4),
      rgba(118, 88, 53, 0.7)
    ),
    url("/assets/img/hero-slider-bg-3.webp") center/cover;
  animation: backgroundFloat 22s ease-in-out infinite;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    ellipse at center,
    rgba(20, 20, 24, 0.4) 0%,
    rgba(20, 20, 24, 0.8) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 1480px;
  max-width: 100%;
}

.hero-title {
  font-size: 56px;
  font-weight: 300;
  color: var(--light-color);
  margin: 0 0 30px 0;
  max-width: 900px;
  line-height: 1.2;
  text-shadow: 2px 2px 8px rgba(20, 20, 24, 0.8);
  animation: titleGlow 3s ease-in-out infinite alternate;
}

.hero-subtitle {
  font-size: 24px;
  color: var(--light-color);
  margin: 0 0 50px 0;
  max-width: 700px;
  line-height: 1.4;
  opacity: 0.9;
  text-shadow: 1px 1px 4px rgba(20, 20, 24, 0.7);
  animation: subtitleFloat 4s ease-in-out infinite alternate;
}

.hero-cta {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-button {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px;
  width: 320px;
  background-color: var(--primary-color);
  color: var(--light-color);
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(238, 10, 16, 0.3);
  cursor: pointer;
}

.hero-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.6s ease;
}

.hero-button:hover {
  background-color: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(238, 10, 16, 0.5);
}

.hero-button:hover::before {
  left: 100%;
}

.hero-slide[data-slide="2"] .hero-button {
  background-color: var(--secondary-color);
  box-shadow: 0 8px 25px rgba(183, 150, 138, 0.3);
}

.hero-slide[data-slide="2"] .hero-button:hover {
  background-color: var(--secondary-dark);
  box-shadow: 0 12px 35px rgba(183, 150, 138, 0.5);
}

.hero-indicators {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 100;
}

.indicator {
  width: 12px;
  height: 12px;
  background-color: var(--light-color);
  opacity: 0.5;
  border: none;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
}

.indicator::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--primary-color);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.indicator.active {
  opacity: 1;
  background-color: var(--primary-color);
  transform: scale(1.3);
}

.indicator.active::after {
  opacity: 0.3;
}

.hero-navigation {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  z-index: 100;
}

.nav-arrow {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  background-color: var(--light-color);
  color: var(--text-color-main);
  border: none;
  font-size: 24px;
  cursor: pointer;
  opacity: 0.8;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  margin: 0 20px;
}

.nav-arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--primary-color);
  transition: all 0.4s ease;
  transform: translate(-50%, -50%);
}

.nav-arrow:hover {
  opacity: 1;
  color: var(--light-color);
  transform: scale(1.1);
}

.nav-arrow:hover::before {
  width: 100%;
  height: 100%;
}

.hero-slider.swiping .hero-slide {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Floating particles effect */
.hero-slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      2px 2px at 20px 30px,
      rgba(255, 255, 255, 0.3),
      transparent
    ),
    radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(
      1px 1px at 130px 80px,
      rgba(255, 255, 255, 0.3),
      transparent
    );
  background-repeat: repeat;
  background-size: 200px 100px;
  animation: particlesFloat 30s linear infinite;
  z-index: 2;
  pointer-events: none;
}

/* Background animations */
@keyframes backgroundFloat {
  0%,
  100% {
    transform: scale(1) translateX(0);
  }
  50% {
    transform: scale(1.02) translateX(-10px);
  }
}

@keyframes titleGlow {
  0% {
    text-shadow: 2px 2px 8px rgba(20, 20, 24, 0.8);
  }
  100% {
    text-shadow: 2px 2px 8px rgba(20, 20, 24, 0.8),
      0 0 20px rgba(243, 238, 239, 0.3);
  }
}

@keyframes subtitleFloat {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-5px);
  }
}

@keyframes particlesFloat {
  0% {
    transform: translateY(0) translateX(0);
  }
  100% {
    transform: translateY(-100px) translateX(50px);
  }
}

@media (max-width: 768px) {
  .hero {
    touch-action: pan-y;
  }

  .hero-navigation {
    display: none;
  }

  .hero-content {
    max-width: 95%;
  }

  .hero-slider {
    touch-action: pan-y;
  }

  .hero-slide {
    transition: opacity 0.5s ease-in-out,
      transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .hero-slide.active {
    opacity: 1;
    transform: translateX(0) scale(1);
  }

  .hero-slide:not(.active) {
    transform: translateX(100%) scale(0.95);
  }

  .hero-container {
    animation: slideInContent 0.8s ease-out;
  }

  .hero-title {
    font-size: 36px;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out 0.2s both;
  }

  .hero-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.4s both;
  }

  .hero-button {
    width: 280px;
    height: 50px;
    font-size: 16px;
    animation: fadeInUp 1s ease-out 0.6s both;
  }

  .hero-navigation {
    padding: 0;
  }

  .nav-arrow {
    width: 40px;
    height: 40px;
    font-size: 20px;
    opacity: 0.6;
    margin: 0 15px;
  }

  .hero-indicators {
    bottom: 30px;
  }

  .indicator {
    width: 10px;
    height: 10px;
  }
}

/* Mobile Animations */
@keyframes slideInContent {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Touch feedback */
@media (max-width: 768px) {
  .hero-button:active {
    transform: scale(0.96) translateY(-1px);
    transition: transform 0.1s ease;
  }

  .nav-arrow:active {
    transform: scale(0.9);
    transition: transform 0.1s ease;
  }

  .indicator:active {
    transform: scale(1.4);
    transition: transform 0.1s ease;
  }
}

/* Improved swipe indicators */
@media (max-width: 768px) {
  .hero-indicators {
    display: flex;
    gap: 12px;
    bottom: 25px;
  }

  .indicator {
    width: 8px;
    height: 8px;
    transition: all 0.4s ease;
  }

  .indicator.active {
    width: 24px;
    background-color: var(--primary-color);
  }
}

/* Enhanced slide transitions */
.hero-slide.slide-out-left {
  transform: translateX(-100%) scale(0.9);
  opacity: 0;
}

.hero-slide.slide-out-right {
  transform: translateX(100%) scale(0.9);
  opacity: 0;
}

.hero-slide.slide-in-left {
  transform: translateX(-100%) scale(0.9);
  opacity: 0;
}

.hero-slide.slide-in-right {
  transform: translateX(100%) scale(0.9);
  opacity: 0;
}
