/* ========================================
   Hero Section - Slider
   ======================================== */

.hero {
  position: relative;
  overflow: hidden;
  overflow-x: hidden;
  min-height: 100vh;
  max-width: 100vw;
}

/* --- Orange glow --- */
.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 107, 43, 0.25) 0%, transparent 70%);
  pointer-events: none;
  animation: glow-pulse 4s ease-in-out infinite;
}

/* --- Slider --- */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
  position: relative;
}

.hero-slide .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* --- Content animations per slide --- */
.hero-slide .hero-content {
  animation: none;
}

.hero-slide.active .hero-content {
  animation: fadeInUp 0.8s ease forwards;
}

.hero-slide .hero-visual {
  opacity: 0;
}

.hero-slide.active .hero-visual {
  animation: fadeInUp 1s ease 0.2s forwards;
}

/* --- Badge --- */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 107, 43, 0.08);
  border: none;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 28px;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
  animation: glow-pulse 4s ease-in-out infinite;
}

/* --- Title --- */
.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 24px;
}

.hero-title .highlight {
  color: var(--primary);
}

.hero-title .en-line {
  font-family: var(--font-en);
  display: block;
  direction: ltr;
  text-align: right;
}

/* --- Description --- */
.hero-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 36px;
  max-width: 480px;
}

/* --- Buttons --- */
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Stats --- */
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.hero-stat-num {
  font-family: var(--font-en);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.hero-stat-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* --- Visual --- */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-visual img {
  width: 85%;
  max-width: 480px;
  animation: float 5s ease-in-out infinite;
  filter: drop-shadow(0 30px 60px rgba(255, 107, 43, 0.15));
}

/* --- Slider Controls --- */
.hero-slider-controls {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 32px;
  z-index: 10;
}

.hero-dots {
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: background var(--transition), width var(--transition), border-radius var(--transition);
  padding: 0;
}

.hero-dot.active {
  background: var(--primary);
  width: 36px;
  border-radius: 6px;
}

.hero-arrows {
  display: flex;
  gap: 8px;
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}

.hero-arrow:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* --- Slide Counter --- */
.hero-counter {
  position: absolute;
  top: 50%;
  right: 40px;
  transform: translateY(-50%);
  font-family: var(--font-en);
  font-size: 0.85rem;
  color: var(--text-secondary);
  z-index: 10;
  writing-mode: vertical-lr;
  letter-spacing: 4px;
}

.hero-counter-current {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.2rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero-slide {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .hero-slide .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-desc {
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-visual img {
    width: 70%;
    max-width: 320px;
  }

  .hero-title .en-line {
    text-align: center;
  }

  .hero-slider-controls {
    bottom: 20px;
  }

  .hero-counter {
    display: none;
  }

  .hero-arrow {
    width: 36px;
    height: 36px;
  }
}

/* Fix orange line bug */
.hero-title span,
.hero-title .en-line,
.hero-title .highlight,
.hero-title .fa-line,
.hero-content,
.hero-content * {
    border: none !important;
    outline: none !important;
    text-decoration: none !important;
    box-shadow: none !important;
    caret-color: transparent !important;
}
.hero-content::before,
.hero-content::after,
.hero-title::before,
.hero-title::after,
.hero-title span::before,
.hero-title span::after {
    display: none !important;
}
