/* ============================================
   Animation Utilities & Keyframes
   ============================================ */

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }

    .glow-orb {
        animation: none !important;
    }

    .device-mockup {
        animation: none !important;
    }
}

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

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

/* --- Glow Pulse --- */
@keyframes glowPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

.glow-orb {
    animation: glowPulse 6s ease-in-out infinite;
}

.glow-orb-2 {
    animation-delay: -2s;
}

.glow-orb-3 {
    animation-delay: -4s;
}

/* --- Privacy Shield Pulse --- */
@keyframes shieldPulse {
    0%, 100% {
        box-shadow: 0 0 20px var(--accent-glow);
    }
    50% {
        box-shadow: 0 0 40px var(--accent-glow), 0 0 60px var(--accent-glow);
    }
}

.privacy-shield {
    animation: shieldPulse 3s ease-in-out infinite;
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    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 fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* --- SVG Line Draw --- */
@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

/* --- Blocked Flash --- */
@keyframes blockedFlash {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.blocked-indicator {
    animation: blockedFlash 2s ease-in-out infinite;
}

/* --- Stagger Helper Classes --- */
.stagger-1 { --stagger-delay: 0ms; }
.stagger-2 { --stagger-delay: 100ms; }
.stagger-3 { --stagger-delay: 200ms; }
.stagger-4 { --stagger-delay: 300ms; }
.stagger-5 { --stagger-delay: 400ms; }
.stagger-6 { --stagger-delay: 500ms; }

/* --- Platform Card 3D Tilt Reset --- */
.platform-card {
    transition: transform var(--motion-normal) var(--ease-smooth);
}
