/* Microanimações e Transições Suaves */

/* Animações de Entrada */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Aplicar animações */
.animate-slide-up {
    animation: slideUp 0.6s ease-out;
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out 0.2s both;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out 0.4s both;
}

/* Animações de Hover nos Botões */
.btn-pulse {
    position: relative;
    overflow: hidden;
}

.btn-pulse::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-pulse:hover::before {
    width: 300px;
    height: 300px;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.btn-shake:hover {
    animation: shake 0.5s;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.btn-bounce:hover {
    animation: bounce 0.6s;
}

/* Animação do WhatsApp Flutuante */
@keyframes floatPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 16px 32px rgba(37, 211, 102, 0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    }
}

.whatsapp-float {
    animation: floatPulse 2s ease-in-out infinite;
}

/* Animação do Emoji no WhatsApp */
@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.whatsapp-float:hover .whatsapp-icon {
    animation: wiggle 0.5s ease-in-out;
}

/* Animação dos Cards de Serviço */
.service-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.service-item:nth-child(1) { animation-delay: 0.1s; }
.service-item:nth-child(2) { animation-delay: 0.2s; }
.service-item:nth-child(3) { animation-delay: 0.3s; }
.service-item:nth-child(4) { animation-delay: 0.4s; }
.service-item:nth-child(5) { animation-delay: 0.5s; }
.service-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efeito de Brilho nos Botões */
@keyframes shine {
    0% {
        left: -100%;
    }
    20%, 100% {
        left: 100%;
    }
}

.btn-inline {
    position: relative;
    overflow: hidden;
}

.btn-inline::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shine 3s infinite;
}

/* Transições Suaves para Links */
a {
    transition: all 0.3s ease;
}

/* Efeito Hover no Logo */
.logo-text {
    display: inline-block;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Animação de Carregamento da Página (Fade In Suave) */
body {
    animation: fadeIn 0.5s ease-in;
}

/* Efeito de Gradiente Animado no Header */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.header {
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

/* Efeito de Sombra Animada nos Cards */
.service-item {
    position: relative;
}

.service-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    box-shadow: 0 0 30px rgba(227, 30, 36, 0.3);
}

.service-item:hover::after {
    opacity: 1;
}

/* Transição Suave no Mapa */
.map-container {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-container:hover {
    transform: scale(1.01);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

/* Efeito nos Emojis */
.emoji {
    display: inline-block;
    transition: transform 0.3s ease;
}

.btn:hover .emoji {
    transform: scale(1.2) rotate(10deg);
}

/* Reduzir animações para usuários que preferem menos movimento */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}




