/**
 * GSAP Elementor Animations - Styles
 * Estilos de suporte para animações GSAP
 * 
 * @version 1.0.0
 */

/* ========================================
   ESTADOS INICIAIS
   Esconde elementos antes de animar
   ======================================== */

[data-animate] {
    /* opacity: 0; */
}

/* ========================================
   PERFORMANCE BOOST
   Prepara elementos para animações suaves
   ======================================== */

[data-animate] {
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   SUPORTE PARA ANIMAÇÕES ESPECÍFICAS
   ======================================== */

/* Clip Path - Garante que o elemento tenha overflow hidden */
[data-animate="clip"] {
    overflow: hidden;
}

/* Slide Up - Overflow hidden para efeito de deslize */
[data-animate="slide-up"] {
    overflow: hidden;
}


/* Splits - Overflow hidden para efeito de deslize */
[data-animate="splits"] {
    overflow: hidden;
}

/* Stagger containers - Garante que filhos sejam visíveis */
[data-animate="stagger"]>*,
[data-animate="stagger-fast"]>* {
    opacity: 0;
}

.split-line {
    overflow: hidden;
}

.split {
  opacity: 0;
  text-align:center;
  color: rgb(14, 16, 15);
  font-size: clamp(2rem, 5rem, 3vw);
  letter-spacing: 0.05rem;
  will-change: transform;
  color: #0e100f;
}

.split * {
  will-change: transform;
}

/* Remove will-change após animação para liberar recursos */
[data-animate].gsap-animated {
    will-change: auto;
    opacity: 1;
}

/* ========================================
   FALLBACK PARA NAVEGADORES SEM JS
   ======================================== */

/* Se JS não carregar, mostra elementos normalmente */
.no-js [data-animate] {
    opacity: 1 !important;
    transform: none !important;
}

/* ========================================
   UTILITÁRIOS
   ======================================== */

/* Desabilita animações em motion-reduce */
@media (prefers-reduced-motion: reduce) {
    [data-animate] {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ========================================
   AJUSTES RESPONSIVOS
   ======================================== */

/* Em mobile, reduz intensidade das animações */
@media (max-width: 768px) {
    [data-animate] {
        will-change: opacity;
    }
}

/* ========================================
   ANIMAÇÕES DE LOADING (OPCIONAL)
   Pulso suave enquanto carrega
   ======================================== */

@keyframes gsap-pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 0.7;
    }
}

[data-animate].gsap-loading {
    animation: gsap-pulse 1.5s ease-in-out infinite;
}

/* ========================================
   DEBUG MODE (Adicione .gsap-debug ao body)
   ======================================== */

.gsap-debug [data-animate] {
    outline: 2px dashed rgba(0, 255, 0, 0.3);
    position: relative;
}

.gsap-debug [data-animate]::before {
    content: attr(data-animate);
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.8);
    color: #0f0;
    padding: 2px 6px;
    font-size: 10px;
    font-family: monospace;
    z-index: 9999;
    pointer-events: none;
}