/* Micro Animações e Efeitos Visuais Modernos */

/* Variáveis de animação */
:root {
  --animation-duration-fast: 0.2s;
  --animation-duration-normal: 0.3s;
  --animation-duration-slow: 0.6s;
  --easing: cubic-bezier(0.4, 0, 0.2, 1);
  --easing-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Animações de entrada */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes rotateIn {
  from {
    opacity: 0;
    transform: rotate(-10deg) scale(0.8);
  }
  to {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}

/* Animações de hover */
@keyframes hoverLift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-5px);
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
  }
  50% {
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.8);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Animações especiais */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

@keyframes typewriter {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink {
  0%, 50% {
    border-color: transparent;
  }
  51%, 100% {
    border-color: var(--primary-yellow);
  }
}

/* Efeitos de gradiente animado */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Aplicação das animações */

/* Header animations */
.logo::before {
  animation: float 3s ease-in-out infinite;
}

.logo:hover {
  animation: hoverLift 0.3s ease forwards;
}

/* Hero animations */
.hero h1 {
  animation: slideInUp var(--animation-duration-slow) var(--easing);
}

.hero p {
  animation: slideInUp var(--animation-duration-slow) var(--easing);
  animation-delay: 0.2s;
  animation-fill-mode: both;
}

.cta-button {
  animation: scaleIn var(--animation-duration-normal) var(--easing);
  animation-delay: 0.4s;
  animation-fill-mode: both;
}

.cta-button:hover {
  animation: pulse-glow 0.6s ease-in-out infinite;
}

/* WhatsApp button animations */
.whatsapp-float {
  animation: slideInRight var(--animation-duration-slow) var(--easing);
  animation-delay: 1s;
  animation-fill-mode: both;
}

.whatsapp-button:hover {
  animation: glow 1s ease-in-out infinite;
}

/* SEO content animations */
.seo-section {
  animation: slideInUp var(--animation-duration-slow) var(--easing);
  animation-fill-mode: both;
}

.seo-section:nth-child(1) { animation-delay: 0.1s; }
.seo-section:nth-child(2) { animation-delay: 0.2s; }
.seo-section:nth-child(3) { animation-delay: 0.3s; }
.seo-section:nth-child(4) { animation-delay: 0.4s; }
.seo-section:nth-child(5) { animation-delay: 0.5s; }
.seo-section:nth-child(6) { animation-delay: 0.6s; }

/* Business map animation */
.business-map {
  animation: slideInUp var(--animation-duration-slow) var(--easing);
  animation-delay: 0.2s;
  animation-fill-mode: both;
}

/* Footer animations */
footer {
  animation: slideInUp var(--animation-duration-slow) var(--easing);
  animation-delay: 0.1s;
  animation-fill-mode: both;
}

/* Micro interações */
.seo-section:hover h2::after {
  animation: gradientShift 2s ease infinite;
}

.footer-links a:hover {
  animation: hoverLift 0.2s ease forwards;
}

/* Loading animation para elementos dinâmicos */
.loading {
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Scroll-triggered animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s var(--easing);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Emoji animations */
.emoji-float {
  display: inline-block;
  animation: float 2s ease-in-out infinite;
}

.emoji-bounce {
  display: inline-block;
  animation: bounce 1s infinite;
}

.emoji-pulse {
  display: inline-block;
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Botão animado com ripple effect */
.cta-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.cta-button:active::after {
  width: 300px;
  height: 300px;
}

/* Efeitos de foco para acessibilidade */
.cta-button:focus,
.whatsapp-button:focus {
  outline: 3px solid var(--primary-yellow);
  outline-offset: 2px;
  animation: glow 1s ease-in-out infinite;
}

/* Animação de carregamento */
@keyframes loading-dots {
  0%, 20% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.loading-dots span {
  animation: loading-dots 1.4s infinite ease-in-out;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }
.loading-dots span:nth-child(3) { animation-delay: 0s; }

/* Efeitos especiais para dispositivos touch */
@media (hover: none) and (pointer: coarse) {
  .cta-button:hover,
  .whatsapp-button:hover {
    transform: none;
    animation: none;
  }

  .seo-section:hover {
    transform: none;
  }
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


