/* Hero section */
.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
  background: #000;
}
.hero-bg {
  background: #000;
}

.hero-container {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 50px;
  position: relative;
  z-index: 2;
  align-items: center;
}
.hero-left {
  padding-right: 60px;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(255, 102, 0, 0.08);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 30px;
  animation: slideInLeft 1s ease;
  position: relative;
  overflow: hidden;
}
.hero-badge::before {
  content: "";
  position: absolute;
  width: 30px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 102, 0, 0.45), transparent);
  left: -30px;
  animation: shimmer 3s ease infinite;
}

@keyframes shimmer {
  0% {
    left: -30px;
  }
  100% {
    left: calc(100% + 30px);
  }
}

.hero-title {
  font-size: clamp(50px, 7vw, 90px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 25px;
  position: relative;
}
.hero-title .highlight {
  color: #ff7b00;
}
.hero-title .line {
  display: block;
  overflow: hidden;
}
.hero-title .line span {
  display: inline-block;
  animation: slideUp 1s ease backwards;
}
.hero-title .line:nth-child(1) span {
  animation-delay: 0.2s;
}
.hero-title .line:nth-child(2) span {
  animation-delay: 0.3s;
}
.hero-title .line:nth-child(3) span {
  animation-delay: 0.4s;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes slideInLeft {
  from {
    transform: translateX(-50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.hero-description {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 40px;
  animation: fadeIn 1s ease 0.6s backwards;
}
.hero-stats {
  display: flex;
  gap: 50px;
  margin-bottom: 50px;
  animation: fadeIn 1s ease 0.8s backwards;
}
.stat-number {
  font-size: 36px;
  font-weight: 900;
  color: var(--accent);
  display: block;
  margin-bottom: 5px;
}
.stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.cta-group {
  display: flex;
  gap: 20px;
  animation: fadeIn 1s ease 1s backwards;
}
.cta-button {
  padding: 18px 40px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  font-size: 13px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  display: inline-block;
}
.cta-button.primary {
  background: var(--accent);
  color: white;
}
.cta-button.primary::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}
.cta-button.primary:hover::before {
  width: 300px;
  height: 300px;
}
.cta-button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(255, 102, 0, 0.3);
}
.cta-button.outline {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}
.cta-button.outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.hero-right {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 600px;
}
.hero-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out;
  transform: scale(1.1);
}
.carousel-slide.active {
  opacity: 1;
  transform: scale(1);
  animation: kenburns 12s ease-out;
}
@keyframes kenburns {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.05);
  }
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.indicator {
  width: 40px;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 3px;
}
.indicator.active {
  background: var(--accent);
  width: 60px;
}

.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.2) 0%, transparent 50%, rgba(0, 0, 0, 0.3) 100%);
  pointer-events: none;
}
.floating-tags {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.tag {
  position: absolute;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: white;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: fadeInScale 1s ease backwards;
}
@keyframes fadeInScale {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s ease infinite;
  z-index: 3;
}
.scroll-indicator span {
  display: block;
  width: 30px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 25px;
  position: relative;
}
.scroll-indicator span::after {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 10px;
  animation: scrollDot 2s ease infinite;
}
@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(10px);
  }
}
@keyframes scrollDot {
  0% {
    top: 10px;
    opacity: 1;
  }
  50% {
    top: 30px;
    opacity: 0.5;
  }
  100% {
    top: 10px;
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 120px;
  }

  .hero-left {
    padding-right: 0;
    max-width: 600px;
    margin: 0 auto; /* ✅ Garante que o bloco 'hero-left' esteja centralizado */
  }

  /* Adição principal: Centraliza blocos com largura definida/limitada */
  .hero-description {
    /* Como a descrição tem uma largura natural, 
       ela pode precisar de margens automáticas se for um bloco */
    margin-left: auto;
    margin-right: auto;
    /* Além disso, certifique-se de que o texto interno seja centralizado */
    text-align: center;
  }

  /* Ajuste para centralizar o conteúdo FLEX (stats e botões) */
  .hero-stats {
    /* Sendo um contêiner flex, justify-content centraliza o conteúdo */
    justify-content: center;
    /* E margin auto centraliza o bloco 'hero-stats' em relação ao 'hero-left' */
    margin-left: auto;
    margin-right: auto;
    /* Aumente o gap para telas menores, se necessário */
    gap: 30px;
  }

  .cta-group {
    /* Sendo um contêiner flex, justify-content centraliza os botões */
    justify-content: center;
    /* E margin auto centraliza o bloco 'cta-group' em relação ao 'hero-left' */
    margin-left: auto;
    margin-right: auto;
  }

  .hero-right {
    display: none;
  }
}
