/* Animações CSS */

/* Definições de keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); }
    50% { transform: scale(1.02); box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15); }
    100% { transform: scale(1); box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Classes de animação */
.animate-on-load {
    opacity: 0;
}

.animate-on-load.animated {
    animation: fadeIn 0.6s ease forwards;
}

.animate-on-scroll {
    opacity: 0;
    transition: all 0.6s ease;
    transform: translateY(30px);
}

.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

.fade-up.animate-on-scroll {
    transform: translateY(30px);
}

.fade-down.animate-on-scroll {
    transform: translateY(-30px);
}

.fade-left.animate-on-scroll {
    transform: translateX(-30px);
}

.fade-right.animate-on-scroll {
    transform: translateX(30px);
}

.pulse-animation {
    animation: pulse 2s infinite ease-in-out;
}

.float-animation {
    animation: float 3s infinite ease-in-out;
}

.spin-animation {
    animation: spin 2s linear infinite;
}

/* Delay escalonado para elementos múltiplos */
.delay-1 { animation-delay: 0.1s; transition-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; transition-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; transition-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; transition-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; transition-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; transition-delay: 0.6s; }
.delay-7 { animation-delay: 0.7s; transition-delay: 0.7s; }
.delay-8 { animation-delay: 0.8s; transition-delay: 0.8s; }

/* Efeitos em hover */
.hover-zoom {
    transition: transform 0.3s ease;
}

.hover-zoom:hover {
    transform: scale(1.05);
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Efeito de brilho */
.card-shine {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 2;
    border-radius: inherit;
}

/* Efeito de loading shimmer */
.shimmer-effect {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        rgba(255, 255, 255, 0) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Animação do menu hambúrguer */
.mobile-menu-toggle {
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
    display: none;
}

.mobile-menu-toggle span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--color-text);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.mobile-menu-toggle span:nth-child(1) {
    top: 0px;
}

.mobile-menu-toggle span:nth-child(2),
.mobile-menu-toggle span:nth-child(3) {
    top: 10px;
}

.mobile-menu-toggle span:nth-child(4) {
    top: 20px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    top: 10px;
    width: 0%;
    left: 50%;
}

.mobile-menu-toggle.active span:nth-child(2) {
    transform: rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
}

.mobile-menu-toggle.active span:nth-child(4) {
    top: 10px;
    width: 0%;
    left: 50%;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
} 