/* ═══════════════════════════════════════════════════════════════════════════
   MAXZEETON.NG — HERO SECTION
   Full-viewport hero with robot background, text overlay (Unitree-inspired)
   ═══════════════════════════════════════════════════════════════════════════ */

.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-dark);  /* Override page bg - hero stays dark */
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04) translateX(1.5%);
  transition: opacity 1s ease, transform 1.4s ease;
  will-change: opacity, transform;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1) translateX(0);
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    rgba(5, 8, 16, 0.9) 0%,
    rgba(5, 8, 16, 0.4) 50%,
    rgba(5, 8, 16, 0.1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  width: 100%;
  margin: 0 0 2rem auto;
  padding: 85px 120px 0px 0px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero-text {
  max-width: 600px;
  text-align: right;
}

.hero.hero-align-left .hero-content {
  justify-content: flex-start;
  padding: 85px 0px 0px 120px;
}

.hero.hero-align-left .hero-text {
  text-align: left;
}

.hero.hero-align-left .hero-buttons {
  justify-content: flex-start;
}

.hero-text.compact-lines {
  max-width: 540px;
}

.hero-text.compact-lines h1 {
  font-size: clamp(1.3rem, 0vw, 2.6rem);
  line-height: 1.2;
  max-width: 28ch;
  margin: 0.8rem 0;
}

.hero-text .hero-tag,
.hero-text h1,
.hero-text .hero-description,
.hero-text .hero-buttons {
  opacity: 0;
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(5, 8, 16, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  padding: 8px 16px;
  border-radius: 6px;
  margin-bottom: 4px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.8vw, 2.65rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 8px;
  color: var(--text-white);
}

.hero h1 .highlight {
  color: var(--red);
}

.hero-description {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.7;
  color: #94a3b8;
  margin-bottom: 32px;
  text-shadow: 
    0 0 20px rgba(214,0,28,0.15),
    0 0 40px rgba(214,0,28,0.08),
    0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-description:empty {
  display: none;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}

.hero-btn {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 10px;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-btn.primary {
  background: var(--red);
  color: #ffffff;
}

.hero-btn.primary:hover {
  transform: translateY(-2px);
  background: var(--red-deep);
  box-shadow: 0 8px 24px var(--red-glow);
}

.hero-btn.ghost {
  background: transparent;
  color: var(--text-white);
  border: 1px solid rgba(214,0,28,0.3);
  box-shadow: 0 0 15px rgba(214,0,28,0.15);
}

.hero-btn.ghost:hover {
  border-color: var(--red);
  color: var(--red);
  box-shadow: 0 0 25px rgba(214,0,28,0.3), 0 0 40px rgba(214,0,28,0.15);
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(5, 8, 16, 0.35);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(6px);
}

.hero-nav:hover {
  background: rgba(214, 0, 28, 0.2);
  border-color: rgba(214, 0, 28, 0.5);
  color: #ffffff;
}

.hero-nav-prev {
  left: 16px;
}

.hero-nav-next {
  right: 16px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 86px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.35);
  transition: all 0.3s ease;
}

.hero-dot.active {
  width: 30px;
  background: var(--red);
}

@keyframes heroSlideIn {
  from {
    opacity: 0;
    transform: translateX(34px);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}

@keyframes heroPopIn {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes heroRiseIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-text.anim-slide.animate-seq .hero-tag {
  animation: heroSlideIn 0.55s ease 0.1s both;
}

.hero-text.anim-slide.animate-seq h1 {
  animation: heroSlideIn 0.65s ease 0.28s both;
}

.hero-text.anim-slide.animate-seq .hero-description {
  animation: heroSlideIn 0.6s ease 0.45s both;
}

.hero-text.anim-slide.animate-seq .hero-buttons {
  animation: heroSlideIn 0.55s ease 0.62s both;
}

.hero-text.anim-pop.animate-seq .hero-tag {
  animation: heroPopIn 0.45s ease 0.1s both;
}

.hero-text.anim-pop.animate-seq h1 {
  animation: heroPopIn 0.56s ease 0.26s both;
}

.hero-text.anim-pop.animate-seq .hero-description {
  animation: heroPopIn 0.5s ease 0.42s both;
}

.hero-text.anim-pop.animate-seq .hero-buttons {
  animation: heroPopIn 0.45s ease 0.58s both;
}

.hero-text.anim-rise.animate-seq .hero-tag {
  animation: heroRiseIn 0.5s ease 0.1s both;
}

.hero-text.anim-rise.animate-seq h1 {
  animation: heroRiseIn 0.6s ease 0.28s both;
}

.hero-text.anim-rise.animate-seq .hero-description {
  animation: heroRiseIn 0.55s ease 0.45s both;
}

.hero-text.anim-rise.animate-seq .hero-buttons {
  animation: heroRiseIn 0.5s ease 0.62s both;
}

/* Scroll Indicator */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--red);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
  cursor: pointer;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* Responsive */
@media (min-width: 641px) {
  .hero-text.compact-lines h1 {
    font-size: 2.3rem;
    line-height: 1.15;
    max-width: 28ch;
    margin: 0.8rem 0;
    font-weight: 800;
  }
}

@media (max-width: 1024px) {
  .hero-content {
    justify-content: center;
    padding: 0 32px;
  }

  .hero.hero-align-left .hero-content {
    justify-content: center;
    padding: 0 32px;
  }

  .hero-text {
    text-align: center;
  }

  .hero.hero-align-left .hero-text {
    text-align: left;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero.hero-align-left .hero-buttons {
    justify-content: flex-start;
  }

  .hero-overlay {
    background: rgba(5, 8, 16, 0.7);
  }

  .hero-nav {
    width: 44px;
    height: 44px;
  }

  .hero-dots {
    bottom: 74px;
  }
}

@media (max-width: 640px) {
  .hero-text,
  .hero.hero-align-left .hero-text {
    text-align: center;
  }

  .hero-content {
    padding: 0 24px;
  }

  .hero.hero-align-left .hero-content {
    padding: 0 24px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero.hero-align-left .hero-buttons {
    align-items: flex-start;
  }

  .hero-btn {
    width: 100%;
    justify-content: center;
  }

  .hero-nav {
    display: none;
  }

  .hero-dots {
    bottom: 66px;
    gap: 8px;
  }

  .hero-dot {
    width: 9px;
    height: 9px;
  }

  .hero-dot.active {
    width: 24px;
  }

  .hero-scroll {
    bottom: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-dot,
  .hero-nav,
  .hero-text .hero-tag,
  .hero-text h1,
  .hero-text .hero-description,
  .hero-text .hero-buttons {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
