/* 
 * Prolific Research - Light-Theme Animations & Motion Stylesheet
 * Custom CSS transitions, scroll keyframes, scanning lines, and floating animations.
 */

/* Background Floating Orbs */
@keyframes float-orb-1 {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes float-orb-2 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-40px, 40px) scale(1.15); }
    100% { transform: translate(0, 0) scale(1); }
}

.float-1 {
    animation: float-orb-1 12s infinite ease-in-out;
}

.float-2 {
    animation: float-orb-2 15s infinite ease-in-out;
}

/* Scroll Fade In & Up Trigger classes (handled by simple JS intersection observer) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Stagger delay classes */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Pulse animation for active network nodes */
@keyframes node-pulse {
    0% { transform: scale(0.95); opacity: 0.5; box-shadow: 0 0 0 0 rgba(0, 130, 200, 0.4); }
    70% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 10px rgba(0, 130, 200, 0); }
    100% { transform: scale(0.95); opacity: 0.5; box-shadow: 0 0 0 0 rgba(0, 130, 200, 0); }
}

.pulsing-node {
    animation: node-pulse 2s infinite;
}

/* AI Laser Scanner Effect for Light Mode */
@keyframes laser-scan {
    0% { top: 0%; opacity: 0; }
    5% { opacity: 1; }
    95% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.scanner-container {
    position: relative;
    overflow: hidden;
}

.scanner-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-green), var(--color-cyan), transparent);
    box-shadow: 0 0 8px rgba(0, 130, 200, 0.4);
    animation: laser-scan 4s infinite linear;
    pointer-events: none;
    z-index: 10;
}

/* Grid Glowing Line (Cyberpunk accent adapted to light backgrounds) */
.cyber-grid {
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(15, 23, 42, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 23, 42, 0.02) 1px, transparent 1px);
}

/* Interactive link transitions */
.underline-hover {
    position: relative;
}

.underline-hover::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: currentColor;
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.underline-hover:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}
