/* ========================================
   Hero Section (Main Slider)
   ======================================== */

.hero {
  position: relative;
  background: linear-gradient(135deg, var(--color-gray-50) 0%, var(--color-gray-100) 100%);
  overflow: hidden;
}

.hero-slider {
  position: relative;
  width: 100%;
  min-height: 500px;
}

@media (min-width: 768px) {
  .hero-slider {
    min-height: 600px;
  }
}

@media (min-width: 1024px) {
  .hero-slider {
    min-height: 700px;
  }
}

/* Hero Slide */
.hero-slide {
  position: relative;
  display: flex;
  align-items: center;
  min-height: inherit;
  padding: var(--space-8) 0;
}

@media (min-width: 768px) {
  .hero-slide {
    padding: var(--space-12) 0;
  }
}

.hero-slide-inner {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: var(--space-8);
  width: 100%;
}

@media (min-width: 768px) {
  .hero-slide-inner {
    flex-direction: row;
    gap: var(--space-12);
  }
}

/* Hero Content */
.hero-content {
  flex: 1;
  text-align: center;
}

@media (min-width: 768px) {
  .hero-content {
    text-align: left;
    padding-right: var(--space-8);
  }
}

.hero-title {
  font-size: var(--text-2xl);
  font-weight: var(--font-extrabold);
  color: var(--color-primary);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-4);
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 0.8s ease forwards;
  animation-delay: 0.2s;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: var(--text-3xl);
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-5);
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: var(--text-5xl);
  }
}

.hero-subtitle {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--color-gray-700);
  margin-bottom: var(--space-4);
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 0.8s ease forwards;
  animation-delay: 0.4s;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: var(--text-xl);
    margin-bottom: var(--space-6);
  }
}

.hero-description {
  font-size: var(--text-base);
  color: var(--color-gray-600);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 0.8s ease forwards;
  animation-delay: 0.6s;
}

@media (min-width: 768px) {
  .hero-description {
    font-size: var(--text-lg);
    margin-bottom: var(--space-8);
  }
}

.hero-cta {
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 0.8s ease forwards;
  animation-delay: 0.8s;
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Image */
.hero-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 280px;
}

@media (min-width: 640px) {
  .hero-image {
    max-width: 350px;
  }
}

@media (min-width: 768px) {
  .hero-image {
    max-width: none;
    padding-left: var(--space-8);
  }
}

.hero-image img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(65, 22, 41, 0.15));
  animation: float 4s ease-in-out infinite;
}

@media (min-width: 768px) {
  .hero-image img {
    max-height: 500px;
  }
}

@media (min-width: 1024px) {
  .hero-image img {
    max-height: 550px;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* Hero Slider Navigation */
.hero-nav {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  z-index: 10;
}

@media (min-width: 768px) {
  .hero-nav {
    bottom: var(--space-10);
  }
}

.hero-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: var(--color-white);
  border: 2px solid var(--color-gray-200);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.hero-nav-btn:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.hero-nav-btn:hover svg {
  color: var(--color-white);
}

.hero-nav-btn svg {
  width: 20px;
  height: 20px;
  color: var(--color-gray-600);
  transition: color var(--transition-fast);
}

.hero-nav-btn.prev svg {
  transform: rotate(180deg);
}

/* Hero Pagination */
.hero-pagination {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.hero-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background-color: var(--color-gray-300);
  border-radius: var(--radius-full);
  opacity: 1;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.hero-pagination .swiper-pagination-bullet-active {
  width: 32px;
  background-color: var(--color-primary);
  border-radius: var(--radius-full);
}

/* Hero Social */
.hero-social {
  position: absolute;
  bottom: var(--space-8);
  left: var(--space-6);
  display: none;
  flex-direction: column;
  gap: var(--space-3);
  z-index: 10;
}

@media (min-width: 1024px) {
  .hero-social {
    display: flex;
  }
}

.hero-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--color-gray-600);
  background-color: var(--color-white);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
}

.hero-social-link:hover {
  color: var(--color-white);
  background-color: var(--color-primary);
  transform: translateY(-3px);
}

.hero-social-link svg {
  width: 20px;
  height: 20px;
}

/* Hero Background Pattern */
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(circle, rgba(65, 22, 41, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--color-gray-200) 50%, transparent 100%);
}

/* Swiper Overrides */
.hero-slider .swiper-slide {
  opacity: 0.4;
  transition: opacity var(--transition-base);
}

.hero-slider .swiper-slide-active {
  opacity: 1;
}

.hero-slider .swiper-slide-active .hero-title,
.hero-slider .swiper-slide-active .hero-subtitle,
.hero-slider .swiper-slide-active .hero-description,
.hero-slider .swiper-slide-active .hero-cta {
  animation-play-state: running;
}

.hero-slider .swiper-slide:not(.swiper-slide-active) .hero-title,
.hero-slider .swiper-slide:not(.swiper-slide-active) .hero-subtitle,
.hero-slider .swiper-slide:not(.swiper-slide-active) .hero-description,
.hero-slider .swiper-slide:not(.swiper-slide-active) .hero-cta {
  animation: none;
  opacity: 0;
}
