/* ========================================
   Scroll Animations
   ======================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for children */
.row > .col-lg-3:nth-child(1) .animate-on-scroll,
.row > .col-md-3:nth-child(1) .animate-on-scroll,
.row > .col-lg-4:nth-child(1) .animate-on-scroll { transition-delay: 0.1s; }

.row > .col-lg-3:nth-child(2) .animate-on-scroll,
.row > .col-md-3:nth-child(2) .animate-on-scroll,
.row > .col-lg-4:nth-child(2) .animate-on-scroll { transition-delay: 0.2s; }

.row > .col-lg-3:nth-child(3) .animate-on-scroll,
.row > .col-md-3:nth-child(3) .animate-on-scroll,
.row > .col-lg-4:nth-child(3) .animate-on-scroll { transition-delay: 0.3s; }

.row > .col-lg-3:nth-child(4) .animate-on-scroll,
.row > .col-md-3:nth-child(4) .animate-on-scroll { transition-delay: 0.4s; }

.row > .col-lg-3:nth-child(5) .animate-on-scroll { transition-delay: 0.5s; }
.row > .col-lg-3:nth-child(6) .animate-on-scroll { transition-delay: 0.6s; }
.row > .col-lg-3:nth-child(7) .animate-on-scroll { transition-delay: 0.7s; }
.row > .col-lg-3:nth-child(8) .animate-on-scroll { transition-delay: 0.8s; }

/* Direct children animation delays */
.row > [class*="col-"]:nth-child(1) > .animate-on-scroll { transition-delay: 0.1s; }
.row > [class*="col-"]:nth-child(2) > .animate-on-scroll { transition-delay: 0.2s; }
.row > [class*="col-"]:nth-child(3) > .animate-on-scroll { transition-delay: 0.3s; }
.row > [class*="col-"]:nth-child(4) > .animate-on-scroll { transition-delay: 0.4s; }
.row > [class*="col-"]:nth-child(5) > .animate-on-scroll { transition-delay: 0.5s; }
.row > [class*="col-"]:nth-child(6) > .animate-on-scroll { transition-delay: 0.6s; }
.row > [class*="col-"]:nth-child(7) > .animate-on-scroll { transition-delay: 0.7s; }
.row > [class*="col-"]:nth-child(8) > .animate-on-scroll { transition-delay: 0.8s; }

/* ========================================
   Keyframe Animations
   ======================================== */
@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(10px); }
    60% { transform: translateY(5px); }
}

@keyframes floatParticle {
    0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.5; }
    50% { opacity: 0.3; }
    90% { opacity: 0.5; }
    100% { transform: translate(100px, -200px) rotate(360deg); opacity: 0; }
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(21, 101, 192, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(21, 101, 192, 0); }
    100% { box-shadow: 0 0 0 0 rgba(21, 101, 192, 0); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fadeInUp {
    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 scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Hero specific animations */
.hero-section .hero-title {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-section .hero-subtitle {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-section .hero-description {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-section .hero-buttons {
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.hero-section .hero-mockup {
    animation: fadeInRight 1s ease-out 0.5s both;
}
