/* Scroll Animation Styles */

/* Base animation states */
[data-animate] {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-animate].animate-in {
    opacity: 1;
}

/* Fade Up Animation */
[data-animate="fade-up"] {
    transform: translateY(30px);
}

[data-animate="fade-up"].animate-in {
    transform: translateY(0);
}

/* Fade Down Animation */
[data-animate="fade-down"] {
    transform: translateY(-30px);
}

[data-animate="fade-down"].animate-in {
    transform: translateY(0);
}

/* Fade Left Animation */
[data-animate="fade-left"] {
    transform: translateX(30px);
}

[data-animate="fade-left"].animate-in {
    transform: translateX(0);
}

/* Fade Right Animation */
[data-animate="fade-right"] {
    transform: translateX(-30px);
}

[data-animate="fade-right"].animate-in {
    transform: translateX(0);
}

/* Scale Animation */
[data-animate="scale"] {
    transform: scale(0.9);
}

[data-animate="scale"].animate-in {
    transform: scale(1);
}

/* Stagger Items - only hide if inside a stagger container */
[data-stagger] [data-stagger-item] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

[data-stagger] [data-stagger-item].animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Counter Animation */
[data-counter] {
    font-variant-numeric: tabular-nums;
}

/* Hover Effects Enhancement */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Smooth transitions for all interactive elements */
a,
button,
.btn-primary,
.btn-outline {
    transition: all 0.3s ease;
}

/* Card hover effects */
.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

/* Image zoom on hover */
.image-zoom {
    overflow: hidden;
}

.image-zoom img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-zoom:hover img {
    transform: scale(1.1);
}

/* Gradient animation */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.gradient-animate {
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
}

/* Pulse animation for CTAs */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

.pulse-animate {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Slide in from sides */
@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;
    }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

/* Loading skeleton animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Smooth page transitions */
.page-transition {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}