/* Micro-animações modernas para o site */

/* Animações de entrada */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Animações de hover */
@keyframes scaleUp {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Animações especiais */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(76, 175, 80, 0.8), 0 0 30px rgba(76, 175, 80, 0.6);
    }
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 30px rgba(255, 255, 255, 0.6);
    }
}

@keyframes borderGlow {
    0%, 100% {
        border-color: #4CAF50;
        box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
    }
    50% {
        border-color: #25D366;
        box-shadow: 0 0 20px rgba(37, 211, 102, 0.6);
    }
}

/* Classes de animação */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

.animate-slide-in-left {
    animation: slideInLeft 1s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 1s ease-out;
}

.animate-slide-in-up {
    animation: slideInUp 0.8s ease-out;
}

.animate-slide-in-down {
    animation: slideInDown 0.8s ease-out;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: glow 2s ease-in-out infinite;
}

.animate-text-glow {
    animation: textGlow 2s ease-in-out infinite;
}

/* Hover effects */
.hover-scale:hover {
    animation: scaleUp 0.3s ease forwards;
}

.hover-rotate:hover {
    animation: rotate 0.5s ease;
}

.hover-shake:hover {
    animation: shake 0.5s ease;
}

.hover-border-glow:hover {
    animation: borderGlow 1s ease-in-out infinite;
}

/* Micro-interações */
.btn-micro-interaction {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-micro-interaction:active {
    transform: scale(0.95);
    transition-duration: 0.1s;
}

.card-micro-interaction {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-micro-interaction:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Animações de loading */
@keyframes loadingDots {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.loading-dots span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4CAF50;
    animation: loadingDots 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

/* Animações de sucesso/erro */
@keyframes successCheck {
    0% {
        transform: scale(0) rotate(45deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(45deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(45deg);
        opacity: 1;
    }
}

@keyframes errorX {
    0% {
        transform: scale(0) rotate(45deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(45deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(45deg);
        opacity: 1;
    }
}

.success-animation {
    animation: successCheck 0.6s ease-out;
}

.error-animation {
    animation: errorX 0.6s ease-out;
}

/* Animações de scroll */
@keyframes scrollIndicator {
    0% { transform: translateY(0); }
    50% { transform: translateY(10px); }
    100% { transform: translateY(0); }
}

.scroll-indicator {
    animation: scrollIndicator 2s ease-in-out infinite;
}

/* Efeitos de foco para acessibilidade */
.focus-glow:focus {
    outline: none;
    animation: glow 1s ease-in-out infinite;
}

/* Animações de entrada em cascata */
.animate-cascade {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-cascade:nth-child(1) { animation-delay: 0.1s; }
.animate-cascade:nth-child(2) { animation-delay: 0.2s; }
.animate-cascade:nth-child(3) { animation-delay: 0.3s; }
.animate-cascade:nth-child(4) { animation-delay: 0.4s; }
.animate-cascade:nth-child(5) { animation-delay: 0.5s; }
.animate-cascade:nth-child(6) { animation-delay: 0.6s; }

/* Efeitos de parallax suaves */
.parallax-element {
    transition: transform 0.1s linear;
}

/* Animações de entrada no viewport */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Micro-animações para botões */
.btn-bounce {
    animation: bounce 2s infinite;
}

.btn-pulse {
    animation: pulse 2s infinite;
}

/* Efeitos de transição de página */
.page-transition {
    animation: fadeIn 0.5s ease-out;
}

/* Animações de emoji */
.emoji-bounce {
    display: inline-block;
    animation: bounce 1s infinite;
}

.emoji-spin {
    display: inline-block;
    animation: rotate 2s linear infinite;
}

.emoji-pulse {
    display: inline-block;
    animation: pulse 1.5s infinite;
}

/* Animações de gradiente */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.gradient-animate {
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}



