/**
 * Additional CSS for Advanced Animations
 */

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Pulse Effect */
.pulse-active {
    animation: pulse-animation 0.3s ease-in-out;
}

@keyframes pulse-animation {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

.loading-text {
    color: currentColor;
}

/* Sticky Elements */
.sticky-active {
    box-shadow: var(--shadow-lg);
    z-index: var(--z-sticky);
    transition: all 0.3s ease;
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    z-index: var(--z-tooltip);
    transition: width 0.1s ease;
}

/* 3D Hover Effects */
[data-hover-3d] {
    transition: transform 0.3s ease;
    transform-style: preserve-3d;
}

[data-tilt] {
    transition: transform 0.2s ease;
}

/* Click Feedback */
.click-feedback {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

/* Enhanced Counters */
.counter-enhanced {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.counter-enhanced.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Animation Utilities */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.zoom-in {
    animation: zoomIn 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .ripple,
    .pulse-active,
    .loading-spinner,
    [data-hover-3d],
    [data-tilt],
    .animate-on-scroll,
    .counter-enhanced {
        animation: none !important;
        transition: none !important;
    }
    
    .scroll-progress {
        display: none;
    }
}