/* ==== HERO SECTION ==== */
.hero {
  padding: calc(80px + var(--spacing-3xl)) 0 var(--spacing-3xl);
  background: linear-gradient(
    246deg,
    #011626 10.91%,
    #04518c 28.28%,
    #011626 41.3%
  );
  position: relative;
  overflow: hidden;
  height: 100vh;
}

.hero::after {
  content: "";
  position: absolute;
  right: 0;
  width: 50%;
  height: 70vh;
  background: url(../img/logo-hero.svg);
  z-index: 1;
  bottom: 0;
  min-width: 592px;
  background-repeat: no-repeat;
}

.hero__container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  z-index: 2;
}

.hero__title {
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--spacing-xs);
  line-height: 1.2;
}

.hero__subtitle {
  font-size: var(--font-size-xl);
  color: var(--color-white);
  margin-bottom: var(--spacing-xl);
  padding-left: var(--spacing-xs);
  font-weight: 300;
}

.hero__cta {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.hero__cta :nth-child(2) {
  display: none;
}

@media (max-width: 968px) {
  .hero::after {
    content: "";
    height: 0;
  }
}

@media (max-width: 768px) {
  .hero__cta :nth-child(2) {
    display: block;
  }
}

/* ==== HERO ANIMATIONS ==== */

/* Definir os keyframes para as animações */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Aplicar animações aos elementos da hero section */
.hero {
  animation: fadeIn 0.8s ease-out;
}

.hero__title {
  opacity: 0;
  animation: fadeInLeft 1s ease-out 0.3s forwards;
}

.hero__subtitle {
  opacity: 0;
  animation: fadeInLeft 1s ease-out 0.6s forwards;
}

.hero__cta {
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.9s forwards;
}

.hero__cta .btn {
  transform: translateY(20px);
  opacity: 0;
}

.hero__cta .btn:nth-child(1) {
  animation: fadeInUp 0.8s ease-out 1.2s forwards;
}

.hero__cta .btn:nth-child(2) {
  animation: fadeInUp 0.8s ease-out 1.4s forwards;
}

/* Animação para a imagem de fundo */
.hero::after {
  opacity: 0;
  animation: slideInRight 1.2s ease-out 0.8s forwards;
}

/* Animação mais suave para dispositivos com preferência por movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  .hero,
  .hero__title,
  .hero__subtitle,
  .hero__cta,
  .hero__cta .btn,
  .hero::after {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* Ajustes responsivos para as animações */
@media (max-width: 768px) {
  .hero__title {
    animation: fadeInUp 1s ease-out 0.3s forwards;
  }

  .hero__subtitle {
    animation: fadeInUp 1s ease-out 0.6s forwards;
  }

  .hero::after {
    animation: none;
    opacity: 1;
  }
}

/* Animação adicional para hover nos botões */
.hero__cta .btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero__cta .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Animação de pulso sutil para o botão primário */
.btn--primary {
  position: relative;
  overflow: hidden;
}

.btn--primary::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn--primary:hover::before {
  width: 300px;
  height: 300px;
}

/* Adicionar uma animação de entrada mais dramática para telas grandes */
@media (min-width: 769px) {
  .hero__content {
    animation: scaleIn 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
    opacity: 0;
  }
}
