/* ===================================================================
   FEATURES - Futuristic Hardware-Accelerated Animations
   Bottom-to-Top Binary Stream, Code Writer, Particle Flows
   =================================================================== */

/* Cursor blink for line-by-line code writing */
@keyframes cursorBlink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

/* Continuous Binary Stream: Moves Vertically from BOTTOM to TOP with medium speed */
@keyframes binaryScrollUp {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

/* Glowing border aura pulse */
@keyframes cyberGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(255, 107, 53, 0.2), inset 0 0 15px rgba(255, 107, 53, 0.1);
    }
    50% {
        box-shadow: 0 0 28px rgba(255, 107, 53, 0.45), inset 0 0 22px rgba(255, 107, 53, 0.2);
    }
}

/* Floating animation for hero tech icons and badges */
@keyframes floatGentle {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Radar scanner sweep for Security module */
@keyframes radarSweep {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Shimmer pulse for featured badge */
@keyframes shimmerPulse {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Neon Scanline effect */
@keyframes scanline {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(1000%);
    }
}

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

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

/* Scroll reveal classes handled by IntersectionObserver */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delay helpers for cards */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Interactive ripple effect when binary stream is clicked */
.binary-ripple {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.8) 0%, transparent 70%);
    transform: scale(0);
    animation: rippleAnim 0.6s linear forwards;
    pointer-events: none;
}

@keyframes rippleAnim {
    to {
        transform: scale(8);
        opacity: 0;
    }
}
