/* header-animations.css */
.header-cta {
  opacity: 0;
  animation: fadeIn 0.5s ease 1.2s forwards;
}

.btn-header-orcamento {
  transform: translateY(10px);
  animation: navItemReveal 0.5s ease 1.3s forwards;
}
/* Animações principais - sequência de entrada */
@keyframes headerContainerReveal {
  0% {
    transform: translateY(-20px);
    opacity: 0;
    box-shadow: none;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18),
      0 0 1px rgba(255, 255, 255, 0.1);
  }
}

@keyframes navItemReveal {
  0% {
    transform: translateY(-15px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes borderReveal {
  0% {
    width: 0;
    opacity: 0;
  }
  100% {
    width: 90%;
    opacity: 1;
  }
}

@keyframes headerGlow {
  0% {
    box-shadow: 0 0 0 rgba(84, 82, 254, 0);
  }
  50% {
    box-shadow: 0 0 15px rgba(84, 82, 254, 0.3);
  }
  100% {
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.18), 0 0 1px rgba(255, 255, 255, 0.1);
  }
}

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

/* Efeito de partículas flutuantes */
@keyframes particleFloat {
  0%,
  100% {
    transform: translateY(0) translateX(0);
    opacity: 0.6;
  }
  25% {
    transform: translateY(-10px) translateX(5px);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-5px) translateX(10px);
    opacity: 1;
  }
  75% {
    transform: translateY(5px) translateX(5px);
    opacity: 0.7;
  }
}

/* Efeito de destaque do container ao carregar */
@keyframes containerHighlight {
  0% {
    background: rgba(18, 18, 18, 0.4);
  }
  30% {
    background: rgba(84, 82, 254, 0.15);
  }
  100% {
    background: rgba(18, 18, 18, 0.6);
  }
}

/* Animações minimalistas para a logo */
@keyframes logoFadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes subtleGlow {
  0% {
    opacity: 0;
    filter: blur(8px);
  }
  100% {
    opacity: 0.3;
    filter: blur(6px);
  }
}

@keyframes textReveal {
  0% {
    opacity: 0;
    transform: translateX(-10px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Substituir as animações existentes da logo */
.logo-wrapper {
  animation: logoFadeIn 1s cubic-bezier(0.215, 0.61, 0.355, 1) 0.3s forwards;
  opacity: 0;
  transform-style: preserve-3d;
  position: relative;
}

.logo-image {
  opacity: 0;
  animation: logoFadeIn 1.2s cubic-bezier(0.215, 0.61, 0.355, 1) 0.4s forwards;
  filter: none;
  transform: none;
}

.logo-glow {
  position: absolute;
  inset: -5px;
  background: radial-gradient(
    circle at center,
    rgba(84, 82, 254, 0.4) 0%,
    transparent 70%
  );
  border-radius: 50%;
  opacity: 0;
  z-index: 1;
  animation: subtleGlow 1.5s ease 0.7s forwards;
}

.logo-text {
  opacity: 0;
  transform: translateX(-10px);
  animation: textReveal 1s cubic-bezier(0.215, 0.61, 0.355, 1) 0.6s forwards;
}

/* Remover animações de partículas e explosões */
.logo-particles {
  display: none;
}

/* Interação sutil ao hover */
.logo:hover .logo-wrapper {
  transform: translateY(-2px);
  transition: transform 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.logo:hover .logo-glow {
  opacity: 0.4;
  transition: opacity 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.logo:hover .logo-text {
  letter-spacing: 0.3px;
  transition: letter-spacing 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* Classes de inicialização - serão removidas via JS */
.header-container {
  animation: headerContainerReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards,
    containerHighlight 2s ease forwards;
  opacity: 0;
}

.header-container::before {
  animation: borderReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
  opacity: 0;
  width: 0;
}

.nav-menu li {
  opacity: 0;
}

.nav-menu li:nth-child(1) {
  animation: navItemReveal 0.5s ease 0.6s forwards;
}

.nav-menu li:nth-child(2) {
  animation: navItemReveal 0.5s ease 0.7s forwards;
}

.nav-menu li:nth-child(3) {
  animation: navItemReveal 0.5s ease 0.8s forwards;
}

.nav-menu li:nth-child(4) {
  animation: navItemReveal 0.5s ease 0.9s forwards;
}

.nav-menu li:nth-child(5) {
  animation: navItemReveal 0.5s ease 1s forwards;
}

.nav-link.active::before {
  animation: activeNavIndicator 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 1.2s
    forwards;
  opacity: 0;
  transform: scale(0);
}

/* Partículas ambientes - visible continuamente após entrada */
.header-ambient-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  animation: fadeIn 1s ease 1.5s forwards;
}

.header-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background-color: rgba(84, 82, 254, 0.3);
  border-radius: 50%;
  opacity: 0;
}

.header-particle:nth-child(1) {
  top: 20%;
  left: 10%;
  animation: particleFloat 8s ease-in-out infinite,
    fadeIn 0.5s ease 1.6s forwards;
}

.header-particle:nth-child(2) {
  top: 70%;
  left: 20%;
  animation: particleFloat 12s ease-in-out infinite,
    fadeIn 0.5s ease 1.7s forwards;
}

.header-particle:nth-child(3) {
  top: 40%;
  left: 80%;
  animation: particleFloat 10s ease-in-out infinite,
    fadeIn 0.5s ease 1.8s forwards;
}

.header-particle:nth-child(4) {
  top: 15%;
  left: 70%;
  animation: particleFloat 14s ease-in-out infinite,
    fadeIn 0.5s ease 1.9s forwards;
}

.header-particle:nth-child(5) {
  top: 60%;
  left: 90%;
  animation: particleFloat 11s ease-in-out 2s infinite,
    fadeIn 0.5s ease 2s forwards;
}

.header-particle:nth-child(6) {
  top: 50%;
  left: 30%;
  animation: particleFloat 9s ease-in-out 1s infinite,
    fadeIn 0.5s ease 2.1s forwards;
}

/* Efeito de brilho adicional durante carregamento */
.header-shine {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.08),
    transparent
  );
  transform: translateX(-100%);
  animation: shineEffect 2s ease 0.4s;
  pointer-events: none;
  z-index: 1;
}

@keyframes shineEffect {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

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

/* Menu mobile com animação coordenada */
.mobile-menu-toggle {
  opacity: 0;
  animation: fadeIn 0.5s ease 1.1s forwards;
}

@keyframes menuItemFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animar cada item do menu quando o menu está ativo */
.mobile-menu.active .mobile-nav-link {
  opacity: 0;
}

.mobile-menu.active .mobile-nav-menu li:nth-child(1) .mobile-nav-link {
  animation: menuItemFadeIn 0.4s ease 0.1s forwards;
}

.mobile-menu.active .mobile-nav-menu li:nth-child(2) .mobile-nav-link {
  animation: menuItemFadeIn 0.4s ease 0.2s forwards;
}

.mobile-menu.active .mobile-nav-menu li:nth-child(3) .mobile-nav-link {
  animation: menuItemFadeIn 0.4s ease 0.3s forwards;
}

.mobile-menu.active .mobile-nav-menu li:nth-child(4) .mobile-nav-link {
  animation: menuItemFadeIn 0.4s ease 0.4s forwards;
}

.mobile-menu.active .mobile-nav-menu li:nth-child(5) .mobile-nav-link {
  animation: menuItemFadeIn 0.4s ease 0.5s forwards;
}

.mobile-menu.active .mobile-nav-menu li:nth-child(6) .mobile-nav-link {
  animation: menuItemFadeIn 0.4s ease 0.6s forwards;
}

.mobile-menu.active .mobile-nav-cta {
  opacity: 0;
  animation: menuItemFadeIn 0.5s ease 0.7s forwards;
}

.mobile-menu.active .mobile-menu-header {
  opacity: 0;
  animation: menuItemFadeIn 0.5s ease 0.05s forwards;
}