/* Animações de Texto e Efeitos Especiais */

/* Efeito de digitação para o título principal */
.typing-effect {
    display: inline-block !important;
    overflow: visible !important;
    white-space: normal !important;
    border-right: 3px solid var(--accent-color);
    width: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    animation: blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--accent-color) }
}

/* Efeito de destaque para palavras-chave */
.highlight {
    position: relative;
    color: var(--primary-color);
    font-weight: 700;
}

/* Versão para fundos escuros */
.business-services .highlight {
    color: #ffcc00;
    font-weight: 700;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background-color: rgba(255, 153, 0, 0.3);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.5s ease;
}

.business-services .highlight::after {
    background-color: rgba(255, 204, 0, 0.3);
}

.highlight.animate::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Efeito de texto flutuante */
.float-text {
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Efeito de texto com gradiente animado */
.gradient-text {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
    animation: gradient-animation 4s ease infinite;
    font-weight: 600;
}

@keyframes gradient-animation {
    0% { background-position: 0% 50% }
    50% { background-position: 100% 50% }
    100% { background-position: 0% 50% }
}

/* Efeito de texto com sombra pulsante */
.shadow-pulse {
    text-shadow: 0 0 5px rgba(0, 102, 204, 0.5);
    animation: shadow-pulse 2s infinite;
}

/* Versão para fundos escuros */
.business-services .shadow-pulse {
    color: #ffffff;
    text-shadow: 0 0 5px rgba(255, 204, 0, 0.5);
    animation: shadow-pulse-light 2s infinite;
}

@keyframes shadow-pulse {
    0% {
        text-shadow: 0 0 5px rgba(0, 102, 204, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(0, 102, 204, 0.8);
    }
    100% {
        text-shadow: 0 0 5px rgba(0, 102, 204, 0.5);
    }
}

@keyframes shadow-pulse-light {
    0% {
        text-shadow: 0 0 5px rgba(255, 204, 0, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 204, 0, 0.8);
    }
    100% {
        text-shadow: 0 0 5px rgba(255, 204, 0, 0.5);
    }
}

/* Efeito de texto com revelação de letras */
.reveal-text {
    position: relative;
}

.reveal-text span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation-name: revealLetter;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes revealLetter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efeito de botão com brilho */
.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
    opacity: 0;
    transform: scale(0.5);
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.btn-glow:hover::before {
    opacity: 0.3;
    transform: scale(1);
    animation: rotate 2s linear infinite;
}

/* Efeito de texto com destaque especial (substituindo o glitch) */
.glitch-text {
    position: relative;
    color: var(--primary-color);
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.glitch-text:hover {
    text-shadow: 3px 3px 6px rgba(0, 102, 204, 0.4);
}

.glitch-text::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.5s ease;
}

.glitch-text:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}


/* Efeito de texto com contorno */
.outline-text {
    color: transparent;
    -webkit-text-stroke: 1px var(--primary-color);
    text-stroke: 1px var(--primary-color);
    transition: all 0.3s ease;
}

.outline-text:hover {
    color: var(--primary-color);
    -webkit-text-stroke: 0;
    text-stroke: 0;
}