/* ============================================
   SIGA Landing Page - Animations
   Advanced keyframes and scroll animations
   ============================================ */

/* === Entrance Animations === */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* === Glow Effects === */
@keyframes glowPulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(0, 245, 255, 0.6);
    }
}

@keyframes textGlow {

    0%,
    100% {
        text-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
    }

    50% {
        text-shadow: 0 0 30px rgba(0, 245, 255, 0.8), 0 0 60px rgba(0, 245, 255, 0.4);
    }
}

@keyframes borderGlow {

    0%,
    100% {
        border-color: rgba(0, 245, 255, 0.3);
    }

    50% {
        border-color: rgba(0, 245, 255, 0.8);
    }
}

/* === Floating Animations === */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes floatRotate {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-10px) rotate(2deg);
    }

    75% {
        transform: translateY(-5px) rotate(-2deg);
    }
}

@keyframes floatSlow {

    0%,
    100% {
        transform: translateY(0) translateX(0);
    }

    25% {
        transform: translateY(-8px) translateX(4px);
    }

    50% {
        transform: translateY(-12px) translateX(0);
    }

    75% {
        transform: translateY(-8px) translateX(-4px);
    }
}

/* === Pulse Animations === */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes pulseScale {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes pulseDot {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* === Spin & Rotate === */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes spinSlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes orbitSlow {
    from {
        transform: rotate(0deg) translateX(100px) rotate(0deg);
    }

    to {
        transform: rotate(360deg) translateX(100px) rotate(-360deg);
    }
}

/* === Data Flow Animation (for IoT theme) === */
@keyframes dataFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes streamLine {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* === Typing Effect === */
@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink {

    0%,
    100% {
        border-color: transparent;
    }

    50% {
        border-color: var(--color-cyan);
    }
}

/* === Counter Animation Helpers === */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Shimmer Effect === */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.shimmer {
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.05) 50%,
            transparent 100%);
    background-size: 200% 100%;
    animation: shimmer 2s ease-in-out infinite;
}

/* === Gradient Animation === */
@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

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

/* === Lines/Connections (IoT Visual) === */
@keyframes connectionPulse {

    0%,
    100% {
        stroke-opacity: 0.2;
        stroke-width: 1;
    }

    50% {
        stroke-opacity: 0.8;
        stroke-width: 2;
    }
}

@keyframes nodeGlow {

    0%,
    100% {
        r: 4;
        fill-opacity: 0.6;
    }

    50% {
        r: 6;
        fill-opacity: 1;
    }
}

/* === Reveal Animation Classes === */
.anim-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.anim-fade-up {
    animation: fadeInUp 0.8s ease forwards;
}

.anim-fade-down {
    animation: fadeInDown 0.8s ease forwards;
}

.anim-fade-left {
    animation: fadeInLeft 0.8s ease forwards;
}

.anim-fade-right {
    animation: fadeInRight 0.8s ease forwards;
}

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

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

.anim-glow {
    animation: glowPulse 3s ease-in-out infinite;
}

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

.anim-spin {
    animation: spin 1s linear infinite;
}

.anim-spin-slow {
    animation: spinSlow 20s linear infinite;
}

/* === Stagger Delay Utilities === */
.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

.delay-400 {
    animation-delay: 400ms;
}

.delay-500 {
    animation-delay: 500ms;
}

.delay-600 {
    animation-delay: 600ms;
}

.delay-700 {
    animation-delay: 700ms;
}

.delay-800 {
    animation-delay: 800ms;
}

.delay-900 {
    animation-delay: 900ms;
}

.delay-1000 {
    animation-delay: 1000ms;
}

/* === Performance Optimizations === */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .testimonials-track {
        animation: none;
    }
}