/* ================================================
   ANIMATIONS - SCROLL & ADVANCED EFFECTS
   ================================================ */

/* AOS Animations Override */
[data-aos] {
    opacity: 0;
}

[data-aos].aos-animate {
    opacity: 1;
}

/* Custom Scroll Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Glassmorphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
}

/* Glow Effect */
.glow {
    box-shadow: 0 0 20px rgba(0, 82, 204, 0.5);
}

/* 3D Transform */
.perspective {
    perspective: 1000px;
}

.rotate-3d {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.rotate-3d:hover {
    transform: rotateX(5deg) rotateY(5deg);
}

/* Hover Scale */
.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Stagger Animation */
.stagger-item {
    animation: slideInUp 0.5s ease-out forwards;
}

.stagger-item:nth-child(1) { animation-delay: 0s; }
.stagger-item:nth-child(2) { animation-delay: 0.1s; }
.stagger-item:nth-child(3) { animation-delay: 0.2s; }
.stagger-item:nth-child(4) { animation-delay: 0.3s; }
.stagger-item:nth-child(5) { animation-delay: 0.4s; }
.stagger-item:nth-child(6) { animation-delay: 0.5s; }
.stagger-item:nth-child(7) { animation-delay: 0.6s; }
.stagger-item:nth-child(8) { animation-delay: 0.7s; }
.stagger-item:nth-child(9) { animation-delay: 0.8s; }

/* Text Animation */
@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(0, 82, 204, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(0, 82, 204, 0.8);
    }
}

.text-glow {
    animation: textGlow 2s ease-in-out infinite;
}

/* Loading Animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    border: 4px solid rgba(0, 82, 204, 0.1);
    border-top: 4px solid #0052CC;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
}

/* Bounce Animation */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.bounce {
    animation: bounce 0.5s ease-in-out;
}

/* Underline Animation */
.underline-animation {
    position: relative;
    display: inline-block;
}

.underline-animation::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.underline-animation:hover::after {
    width: 100%;
}

/* Number Counter */
@keyframes countUp {
    from {
        counter-increment: none;
    }
    to {
        counter-increment: counter;
    }
}