/* Custom styles and animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Typing indicator for chat */
.typing-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #075E54;
    margin: 0 2px;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) {
    animation-delay: 0s;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingAnimation {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-5px);
    }
}

/* Custom scrollbar for chat */
#chatMessages::-webkit-scrollbar {
    width: 6px;
}

#chatMessages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#chatMessages::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

#chatMessages::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* custom.css - Atualizado */
/* Animações de fade in/out */
.fade-in-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-out-hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

/* Efeito de flutuação para o botão do WhatsApp */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

#chatWidget {
    animation: float 3s ease-in-out infinite;
}

/* Efeito de pulse para CTA principal */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* Menu Dinâmico */
.header-transparent {
    background-color: transparent !important;
    box-shadow: none !important;
}

.header-transparent .text-[#051a49] {
    color: white !important;
}

.header-transparent #mobileMenu {
    background-color: #051a49 !important;
}

.header-solid {
    background-color: white !important;
    transition: background-color 0.3s ease;
}

/* Use Cases Section */
.use-cases-section {
    background-image: url('../img/tech-bg.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.use-cases-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(11, 21, 46, 0.85);
}

.use-cases-section > * {
    position: relative;
    z-index: 1;
}

/* Estilos para o carrossel */
.testimonial-carousel {
    width: 100%;
    margin: 0 auto;
}

.glide__slide {
    transition: transform 0.3s ease;
}

.glide__slide--active {
    transform: scale(1.02);
}

.glide__arrows {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.glide__arrow {
    background: #051a49;
    color: white;
    border: none;
    border-radius: 0%;
    width: 40px;
    height: 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.glide__arrow:hover {
    background: #0c2d6e;
}

/* Chat Responsivo */
@media (max-width: 640px) {
    #chatContainer {
        width: 100%;
        right: 0;
        border-radius: 0;
        height: 70vh;
        bottom: 0;
    }
    
    #chatInput {
        width: calc(100% - 60px);
    }
    
    .chat-message {
        max-width: 80% !important;
    }
}
