/* Animation Styles for LudoCare */

/* Base Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.in-view {
    opacity: 1;
}

/* Fade In Animation */
[data-animation="fade-in"].animate-on-scroll {
    opacity: 0;
}

[data-animation="fade-in"].animate-on-scroll.in-view {
    opacity: 1;
}

/* Slide In From Bottom */
[data-animation="slide-up"].animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
}

[data-animation="slide-up"].animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Slide In From Left */
[data-animation="slide-right"].animate-on-scroll {
    opacity: 0;
    transform: translateX(-30px);
}

[data-animation="slide-right"].animate-on-scroll.in-view {
    opacity: 1;
    transform: translateX(0);
}

/* Slide In From Right */
[data-animation="slide-left"].animate-on-scroll {
    opacity: 0;
    transform: translateX(30px);
}

[data-animation="slide-left"].animate-on-scroll.in-view {
    opacity: 1;
    transform: translateX(0);
}

/* Zoom In Animation */
[data-animation="zoom-in"].animate-on-scroll {
    opacity: 0;
    transform: scale(0.9);
}

[data-animation="zoom-in"].animate-on-scroll.in-view {
    opacity: 1;
    transform: scale(1);
}

/* Zoom Out Animation */
[data-animation="zoom-out"].animate-on-scroll {
    opacity: 0;
    transform: scale(1.1);
}

[data-animation="zoom-out"].animate-on-scroll.in-view {
    opacity: 1;
    transform: scale(1);
}

/* Flip Animation */
[data-animation="flip"].animate-on-scroll {
    opacity: 0;
    transform: perspective(400px) rotateY(90deg);
}

[data-animation="flip"].animate-on-scroll.in-view {
    opacity: 1;
    transform: perspective(400px) rotateY(0deg);
}

/* Sequential Animation Container */
.sequential-container .animate-sequential {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.sequential-container .animate-sequential.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Count Up Animation */
.count-up {
    transition: color 0.3s ease;
}

.count-up.count-complete {
    color: var(--blue);
    text-shadow: 0 0 10px rgba(0, 109, 164, 0.3);
}

/* Particle Animations */
@keyframes float {
    0% {
        transform: translatey(0px);
    }
    50% {
        transform: translatey(-20px);
    }
    100% {
        transform: translatey(0px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 109, 164, 0.8) 0%, rgba(0, 153, 204, 0.3) 70%);
    box-shadow: 0 0 20px rgba(0, 109, 164, 0.4);
    animation: float 6s ease-in-out infinite;
}

.particle-1 {
    width: 100px;
    height: 100px;
    top: 10%;
    left: 10%;
    animation-duration: 9s;
}

.particle-2 {
    width: 150px;
    height: 150px;
    top: 20%;
    right: 15%;
    animation-duration: 7s;
    animation-delay: 1s;
}

.particle-3 {
    width: 80px;
    height: 80px;
    bottom: 15%;
    left: 15%;
    animation-duration: 8s;
    animation-delay: 2s;
}

/* Glow effect animation */
.glow-effect {
    animation: pulse 4s infinite ease-in-out;
}

/* Phone mockup animations */
.phone-mockup {
    position: relative;
    animation: float 6s infinite ease-in-out;
}

.app-screen {
    animation: pulse 5s infinite ease-in-out;
}

/* Card hover effects */
.visual-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.visual-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Button animations */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn:hover::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

/* SVG path animations */
.animate-svg path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: dash 3s linear forwards;
}

@keyframes dash {
    to {
        stroke-dashoffset: 0;
    }
}

/* Mobile menu animation */
.mobile-nav {
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.mobile-nav.active {
    transform: translateY(0);
    opacity: 1;
}

/* Burger menu animation */
.burger.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.burger.toggle .line2 {
    opacity: 0;
}

.burger.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Expandable content animation - movido para styles.css */

/* Mobile enhancements for animations */
@media (max-width: 767px) {
    [data-animation] {
        transition-duration: 0.4s !important; /* Speed up animations on mobile */
    }
    
    .animate-sequential {
        transition-delay: 0.1s !important; /* Shorter delays on mobile */
    }
}
