/* ===================================
   FLAREGUN AiR - ANIMATIONS
   =================================== */

/* Fade In Up Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

/* Scale In Animation */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.scale-in {
    animation: scaleIn 0.6s ease-out forwards;
}

/* Slide In From Left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

/* Slide In From Right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out forwards;
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Glow Animation */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(101, 146, 230, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(101, 146, 230, 0.8);
    }
}

.glow {
    animation: glow 2s ease-in-out infinite;
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.float {
    animation: float 3s ease-in-out infinite;
}

/* Reveal on Scroll - Enhanced with Modern Easing */
.reveal {
    opacity: 0 !important;
    transform: translateY(60px) scale(0.95) !important;
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1) !important,
                transform 0.9s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.reveal.active {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

/* Specific reveal animations for different element types */
.section-title.reveal {
    transform: translateY(40px) !important;
}

.section-title.reveal.active {
    transform: translateY(0) !important;
}

.section-subtitle.reveal {
    transform: translateY(30px) !important;
}

.section-subtitle.reveal.active {
    transform: translateY(0) !important;
}

.feature-title.reveal,
.tech-title.reveal,
.cta-title.reveal,
.quote-text.reveal {
    transform: translateY(35px) !important;
}

.feature-title.reveal.active,
.tech-title.reveal.active,
.cta-title.reveal.active,
.quote-text.reveal.active {
    transform: translateY(0) !important;
}

.feature-description.reveal,
.tech-description.reveal,
.about-description.reveal,
.cta-subtitle.reveal {
    transform: translateY(25px) !important;
}

.feature-description.reveal.active,
.tech-description.reveal.active,
.about-description.reveal.active,
.cta-subtitle.reveal.active {
    transform: translateY(0) !important;
}

.feature-card.reveal,
.tech-card.reveal {
    transform: translateY(50px) scale(0.95) !important;
}

.feature-card.reveal.active,
.tech-card.reveal.active {
    transform: translateY(0) scale(1) !important;
}

.video-card.reveal {
    transform: translateY(50px) scale(0.95) !important;
}

.video-card.reveal.active {
    transform: translateY(0) scale(1) !important;
}

/* Stagger animation delays for grouped elements */
.feature-card.reveal:nth-child(1) { transition-delay: 0s !important; }
.feature-card.reveal:nth-child(2) { transition-delay: 0.1s !important; }
.feature-card.reveal:nth-child(3) { transition-delay: 0.2s !important; }
.feature-card.reveal:nth-child(4) { transition-delay: 0.3s !important; }
.feature-card.reveal:nth-child(5) { transition-delay: 0.4s !important; }
.feature-card.reveal:nth-child(6) { transition-delay: 0.5s !important; }

.tech-card.reveal:nth-child(1) { transition-delay: 0s !important; }
.tech-card.reveal:nth-child(2) { transition-delay: 0.15s !important; }
.tech-card.reveal:nth-child(3) { transition-delay: 0.3s !important; }
.tech-card.reveal:nth-child(4) { transition-delay: 0.45s !important; }

/* Gradient Animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-animate {
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
}
