/* Layout principal */
.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
  will-change: transform; /* Otimiza para animações */
}

.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

/* Vídeo de fundo */
.hero-background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center; /* Pode ajustar para 'center 30%' para focar mais acima/abaixo */
}

/* Overlay para escurecer e controlar o contraste */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(18, 18, 18, 0.65) 0%,
    rgba(18, 18, 18, 0.55) 100%
  );
  z-index: 1;
}

/* Background elements */
.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 70% 30%,
    rgba(84, 82, 254, 0.15) 0%,
    rgba(84, 82, 254, 0.05) 40%,
    rgba(18, 18, 18, 0) 70%
  );
  opacity: 0.8;
  transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-shape {
  position: absolute;
  filter: blur(80px);
  opacity: 0.15;
  will-change: transform;
  transition: transform 2s cubic-bezier(0.22, 1, 0.36, 1);
}
/* Badge de destaque */
.hero-badge {
  position: absolute;
  top: -15%;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 8px 16px 8px 16px;
  background: rgba(84, 82, 254, 0.08);
  backdrop-filter: blur(10px);
  border-radius: 30px 30px 30px 30px;
  border: 1px solid rgba(84, 82, 254, 0.1);
  transform: translateX(-100%);
  z-index: 5;
}

.badge-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-pulse {
  width: 10px;
  height: 10px;
  background-color: var(--primary);
  border-radius: 50%;
  margin-right: 8px;
  position: relative;
}

.badge-pulse::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background-color: var(--primary);
  opacity: 0.5;
  animation: pulse 2s infinite;
}

/* Hero container e content */
.hero-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  position: relative;
  z-index: 3;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  justify-content: center;
  position: relative;
  max-width: 900px;
  text-align: center;
  margin: 0 auto;
}

/* Typography e text elements */
.hero-headline {
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: fadeIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.title-line {
  display: block;
  transform: translateY(100%);
  opacity: 0;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  background-size: 200% 200%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: gradientShift 5s ease infinite;
}

.hero-description {
  font-size: var(--font-size-lg);
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 90%;
  opacity: 0;
  transform: translateY(20px);
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
}

/* Botões aprimorados */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-primary {
  background-color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  box-shadow: 0 8px 25px -5px rgba(84, 82, 254, 0.5);
  transform: translateY(-3px);
}

.btn-outline {
  border: 1.5px solid var(--primary);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-outline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: var(--primary);
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: -1;
}

.btn-outline:hover::before {
  width: 100%;
}

.btn-outline:hover {
  color: var(--text-light);
}

.btn-icon {
  transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
  transform: translateX(4px);
}

.btn-shine {
  position: relative;
  overflow: hidden;
}

.btn-shine::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(45deg);
  transition: all 0.6s ease;
  opacity: 0;
}

.btn-shine:hover::after {
  animation: shine-effect 1.5s ease;
  opacity: 1;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  cursor: pointer;
}

.scroll-indicator span {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.scroll-arrow {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  animation: bounce 2s infinite;
}

/* Mouse position tracker */
.mouse-position-tracker {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Custom animations */
@keyframes slideInBadge {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.5);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes revealText {
  0% {
    opacity: 0;
    transform: translateY(100%);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInElement {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@keyframes shine-effect {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Media queries */
@media (max-width: 991px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-description {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

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

@media (max-width: 768px) {
  .hero {
    min-height: 90vh; /* Reduzir altura mínima em mobile */
  }
  
  .hero-content {
    padding: 0 15px; /* Adicionar padding lateral */
  }
  
  .hero-title {
    font-size: 2rem; /* Tamanho menor para dispositivos menores */
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  
  .hero-description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  /* Melhorar espaçamento e legibilidade */
  .hero-title .title-line {
    margin-bottom: 0.5rem;
  }
  
  /* Garantir que o texto seja legível */
  .video-overlay {
    background: linear-gradient(
      135deg,
      rgba(18, 18, 18, 0.75) 0%,
      rgba(18, 18, 18, 0.65) 100%
    );
  }
}

@media (max-width: 400px){
    .hero {
    min-height: 90vh; /* Reduzir altura mínima em mobile */
  }
  
  .hero-content {
    padding: 0 10px; /* Adicionar padding lateral */
    padding-top: 1.2rem
  }
  
  .hero-title {
    font-size: 1.5rem; /* Tamanho menor para dispositivos menores */
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  
  .hero-description {
    font-size: 0.8rem;
    margin-bottom: 0.5;
  }
  
  /* Melhorar espaçamento e legibilidade */
  .hero-title .title-line {
    margin-bottom: 0.3rem;
  }

  .btn {
    padding: var(--spacing-xs) var(--spacing-sm);
  }
  
}

@media (max-width: 360px) {
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-badge {
    padding: 6px 12px;
  }
  
  .badge-text {
    font-size: 0.75rem;
  }
}

/* Modo de redução de movimento */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
