/* Futuristic Animations */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: blur(5px);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* Staggered delays for children if needed */
.animate-stagger-1 {
    transition-delay: 0.1s;
}

.animate-stagger-2 {
    transition-delay: 0.2s;
}

.animate-stagger-3 {
    transition-delay: 0.3s;
}

/* Cyber Glow Hover Effect */
.glow-hover {
    position: relative;
    overflow: hidden;
}

.glow-hover::before {
    content: '';
    position: absolute;
    top: var(--mouse-y, 0);
    left: var(--mouse-x, 0);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.glow-hover:hover::before {
    opacity: 1;
}

/* New Safe Glow Effect for Cards */
.shadow-glow-cyan {
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3), 0 0 30px rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.5);
}

/* 3D Fold-In Scroll Reveal */
.reveal-3d {
    opacity: 0;
    transform: perspective(1000px) rotateX(20deg) translateY(40px) translateZ(-50px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform-style: preserve-3d;
}

.reveal-3d.visible {
    opacity: 1;
    transform: perspective(1000px) rotateX(0deg) translateY(0) translateZ(0);
}

/* ──────────────────────────────────────────────────────────────
   Hero section motion
   ────────────────────────────────────────────────────────────── */

/* One-shot entrance reveals. CSS-driven (not tied to the scroll
   observer) so the hero never stays hidden if scripts fail to run. */
@keyframes heroReveal {
    from {
        opacity: 0;
        transform: translateY(24px);
        filter: blur(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.hero-reveal {
    animation: heroReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Snapshot card eases in from the right alongside the headline */
@keyframes heroRevealRight {
    from {
        opacity: 0;
        transform: translateX(32px) translateY(12px);
        filter: blur(6px);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(0);
        filter: blur(0);
    }
}

.hero-reveal-right {
    animation: heroRevealRight 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Staggered start times for sequential reveal */
.hero-delay-1 { animation-delay: 0.08s; }
.hero-delay-2 { animation-delay: 0.16s; }
.hero-delay-3 { animation-delay: 0.24s; }
.hero-delay-4 { animation-delay: 0.32s; }
.hero-delay-5 { animation-delay: 0.40s; }

/* Gentle continuous float for the live snapshot card. Starts after the
   entrance settles so the two motions don't fight. */
@keyframes floatSoft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}

.animate-float-soft {
    animation: floatSoft 7s ease-in-out 0.9s infinite;
}

/* Slow ambient brightness pulse for the decorative background glows.
   Only opacity is animated so the Tailwind translate positioning is preserved. */
@keyframes glowPulse {
    0%, 100% { opacity: 0.45; }
    50% { opacity: 0.85; }
}

.animate-glow-pulse {
    animation: glowPulse 9s ease-in-out infinite;
}

.animate-glow-pulse-slow {
    animation: glowPulse 13s ease-in-out infinite;
}

/* Respect users who prefer reduced motion: show everything, animate nothing */
@media (prefers-reduced-motion: reduce) {

    .hero-reveal,
    .hero-reveal-right,
    .animate-float-soft,
    .animate-glow-pulse,
    .animate-glow-pulse-slow,
    .status-pulse {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }

    .animate-on-scroll,
    .reveal-3d {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }
}
