/* contact-animations.css */

/* ===== ANIMAÇÕES DE ENTRADA PRINCIPAL ===== */

/* Animação para o container da seção */
@keyframes contactSectionReveal {
    0% {
      opacity: 0;
      transform: translateY(30px);
      filter: blur(5px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
      filter: blur(0);
    }
  }
  
  /* Animação de morphing para as formas de blur */
  @keyframes blurMorph {
    0%, 100% {
      border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
      transform: scale(1);
    }
    25% {
      border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
      transform: scale(1.05);
    }
    50% {
      border-radius: 40% 60% 30% 70% / 60% 40% 60% 30%;
      transform: scale(0.95);
    }
    75% {
      border-radius: 60% 40% 70% 30% / 40% 50% 60% 50%;
      transform: scale(1.05);
    }
  }
  
  /* Animação para o degradê de fundo */
  @keyframes gradientFlow {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
  }
  
  /* Animação de padrão de pontos */
  @keyframes dotsReveal {
    0% {
      opacity: 0;
      transform: scale(1.1);
    }
    100% {
      opacity: 0.3;
      transform: scale(1);
    }
  }
  
  /* Animação para o título principal */
  @keyframes titleReveal {
    0% {
      opacity: 0;
      transform: translateY(20px);
      filter: blur(4px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
      filter: blur(0);
    }
  }
  
  @keyframes charReveal {
    0% {
      opacity: 0;
      transform: translateY(30px) scale(0.8);
      filter: blur(3px);
    }
    100% {
      opacity: 1;
      transform: translateY(0) scale(1);
      filter: blur(0);
    }
  }
  
  /* Animação para o highlight */
  @keyframes highlightGlow {
    0%, 100% {
      text-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
    }
    50% {
      text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    }
  }
  
  /* Animação de digitação para o subtítulo */
  @keyframes typewriter {
    from {
      width: 0;
    }
    to {
      width: 100%;
    }
  }
  
  @keyframes cursorBlink {
    0%, 100% {
      opacity: 1;
    }
    50% {
      opacity: 0;
    }
  }
  
  /* Animação para áreas de serviço */
  @keyframes serviceReveal {
    0% {
      opacity: 0;
      transform: translateX(-20px);
    }
    100% {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  /* Animação para o botão de contato */
  @keyframes buttonRise {
    0% {
      opacity: 0;
      transform: translateY(20px) scale(0.95);
    }
    100% {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
  
  /* Efeito de onda para o botão */
  @keyframes buttonWave {
    0% {
      transform: scale(0);
      opacity: 0.5;
    }
    100% {
      transform: scale(2);
      opacity: 0;
    }
  }
  
  /* Animação para a imagem */
  @keyframes imageSlideIn {
    0% {
      opacity: 0;
      transform: translateX(40px) scale(0.9) rotateY(-10deg);
    }
    100% {
      opacity: 1;
      transform: translateX(0) scale(1) rotateY(0);
    }
  }
  
  /* Animação para os cards de contato */
  @keyframes cardRise {
    0% {
      opacity: 0;
      transform: translateY(40px) scale(0.9);
      filter: blur(5px);
    }
    100% {
      opacity: 1;
      transform: translateY(0) scale(1);
      filter: blur(0);
    }
  }
  
  /* ===== APLICAÇÃO DE ANIMAÇÕES ===== */
  
  /* Seção principal */
  .contact-vibrant {
    opacity: 0;
  }
  
  .contact-vibrant.animate-in {
    animation: contactSectionReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  
  /* Elementos de fundo */
  .gradient-overlay {
    background-size: 400% 400%;
    animation: gradientFlow 15s ease infinite;
    animation-play-state: paused;
    opacity: 0;
  }
  
  .contact-vibrant.animate-in .gradient-overlay {
    opacity: 0.85;
    animation-play-state: running;
  }
  
  
  /* Conteúdo principal */
  .contact-main {
    opacity: 0;
  }
  
  .contact-vibrant.animate-in .contact-main {
    animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
  }
  
  /* Título com caracteres animados individualmente */
  .contact-title {
    opacity: 0;
    position: relative;
  }
  
  .contact-vibrant.animate-in .contact-title {
    animation: titleReveal 1s cubic-bezier(0.22, 1, 0.36, 1) 0.7s forwards;
  }
  
  .contact-title .title-char {
    display: inline-block;
    opacity: 0;
  }
  
  .contact-vibrant.animate-in .contact-title .title-char {
    animation: charReveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  
  /* Tratamento especial para o highlight */
  .highlight-contact {
    position: relative;
  }
  
  .contact-vibrant.animate-in .highlight-contact {
    animation: highlightGlow 3s ease-in-out infinite;
  }
  
  /* Efeito de digitação para o subtítulo */
  .subtitle-wrapper {
    position: relative;
    width: fit-content;
    margin: 0 auto;
    max-width: 100%;
  }

  .highlight-contact .title-char {
    display: inline-block;
    opacity: 0;
    background: inherit; /* Herda o gradiente do pai */
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
  }

  .contact-vibrant.animate-in .highlight-contact .title-char {
    animation: charReveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  
  .subtitle-inner {
    white-space: nowrap;
    overflow: hidden;
    width: 0;
  }
  
  .contact-vibrant.animate-in .subtitle-inner {
    animation: typewriter 3s steps(40, end) 1s forwards;
  }
  
  .subtitle-wrapper::after {
    content: '|';
    position: absolute;
    right: -2px;
    top: 0;
    color: var(--accent-pink, #FF3E8F);
    animation: cursorBlink 0.8s infinite;
    opacity: 0;
  }
  
  .contact-vibrant.animate-in .subtitle-wrapper::after {
    opacity: 1;
  }
  
  /* Áreas de serviço */
  .service-area h3 {
    opacity: 0;
    transform: translateX(-20px);
  }
  
  .contact-vibrant.animate-in .service-area h3:nth-child(1) {
    animation: serviceReveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) 1.2s forwards;
  }
  
  .contact-vibrant.animate-in .service-area h3:nth-child(2) {
    animation: serviceReveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) 1.3s forwards;
  }
  
  .contact-vibrant.animate-in .service-area h3:nth-child(3) {
    animation: serviceReveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) 1.4s forwards;
  }
  
  .contact-vibrant.animate-in .service-area h3:nth-child(4) {
    animation: serviceReveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) 1.5s forwards;
  }
  
  .contact-vibrant.animate-in .service-area h3:nth-child(5) {
    animation: serviceReveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) 1.6s forwards;
  }
  
  /* Botão de contato */
  .btn-contact {
    opacity: 0;
    position: relative;
    overflow: hidden;
  }
  
  .contact-vibrant.animate-in .btn-contact {
    animation: buttonRise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1.8s forwards;
  }
  
  .btn-contact-wave {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    transform: translate(-50%, -50%) scale(0);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
  }
  
  .contact-vibrant.animate-in .btn-contact-wave {
    animation: buttonWave 2s cubic-bezier(0.22, 1, 0.36, 1) 2s forwards;
  }
  
  /* Imagem ilustrativa */
  .contact-image {
    opacity: 0;
    transform: translateX(40px);
  }
  
  .contact-vibrant.animate-in .contact-image {
    animation: imageSlideIn 1s cubic-bezier(0.22, 1, 0.36, 1) 1s forwards;
  }
  
  .image-glow {
    opacity: 0;
  }
  
  .contact-vibrant.animate-in .image-glow {
    animation: fadeIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) 1.3s forwards;
  }
  
  /* Cards de contato */
  .contact-methods {
    opacity: 0;
  }
  
  .contact-vibrant.animate-in .contact-methods {
    animation: fadeIn 1s cubic-bezier(0.22, 1, 0.36, 1) 1.5s forwards;
  }
  
  .contact-card {
    opacity: 0;
    transform: translateY(40px);
  }
  
  .contact-vibrant.animate-in .contact-card:nth-child(1) {
    animation: cardRise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1.6s forwards;
  }
  
  .contact-vibrant.animate-in .contact-card:nth-child(2) {
    animation: cardRise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1.8s forwards;
  }
  
  .contact-vibrant.animate-in .contact-card:nth-child(3) {
    animation: cardRise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 2s forwards;
  }
  
  /* Efeitos adicionais para os cards */
  .card-shine {
    opacity: 0;
  }
  
  .contact-vibrant.animate-in .card-shine {
    animation: fadeIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  
  .contact-vibrant.animate-in .contact-card:nth-child(1) .card-shine {
    animation-delay: 2.1s;
  }
  
  .contact-vibrant.animate-in .contact-card:nth-child(2) .card-shine {
    animation-delay: 2.2s;
  }
  
  .contact-vibrant.animate-in .contact-card:nth-child(3) .card-shine {
    animation-delay: 2.3s;
  }
  
  /* Partículas decorativas */
  
  /* Preferências de movimento reduzido */
  @media (prefers-reduced-motion: reduce) {
    * {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }
  
  /* Animação básica de fade-in para compatibilidade */
  @keyframes fadeIn {
    0% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }