/* AI Neural Network Animation Styles */
.ai-neural-network {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.neural-node {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(74, 144, 226, 0.8);
    border-radius: 50%;
    animation: pulse 2s infinite ease-in-out;
}

.neural-node.large {
    width: 6px;
    height: 6px;
    background: rgba(74, 144, 226, 1);
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.6);
}

.neural-node.ai-accent {
    background: rgba(138, 43, 226, 0.9);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.5);
}

.neural-connection {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, 
        rgba(74, 144, 226, 0.3) 0%, 
        rgba(74, 144, 226, 0.8) 50%, 
        rgba(74, 144, 226, 0.3) 100%);
    transform-origin: left center;
    animation: dataFlow 3s infinite linear;
}

.neural-connection.strong {
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(138, 43, 226, 0.4) 0%, 
        rgba(138, 43, 226, 1) 50%, 
        rgba(138, 43, 226, 0.4) 100%);
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
}

/* AI Data Particles */
.ai-data-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #4A90E2;
    border-radius: 50%;
    animation: floatData 8s infinite linear;
}

.ai-data-particle.binary {
    width: 1px;
    height: 8px;
    background: rgba(74, 144, 226, 0.6);
    border-radius: 1px;
    animation: binaryFlow 6s infinite linear;
}

/* Floating AI Icons */
.ai-icon-float {
    position: absolute;
    font-size: 24px;
    color: rgba(74, 144, 226, 0.4);
    animation: floatIcon 12s infinite ease-in-out;
    z-index: 2;
}

.ai-icon-float.brain {
    color: rgba(138, 43, 226, 0.5);
    animation-duration: 15s;
}

.ai-icon-float.robot {
    color: rgba(74, 144, 226, 0.6);
    animation-duration: 18s;
}

/* Circuit Pattern Background */
.circuit-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(74, 144, 226, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(138, 43, 226, 0.1) 1px, transparent 1px);
    background-size: 100px 100px, 150px 150px;
    animation: circuitShift 20s infinite linear;
    opacity: 0.3;
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

@keyframes dataFlow {
    0% {
        opacity: 0.3;
        transform: scaleX(0);
    }
    50% {
        opacity: 1;
        transform: scaleX(1);
    }
    100% {
        opacity: 0.3;
        transform: scaleX(0);
    }
}

@keyframes floatData {
    0% {
        transform: translateY(100vh) translateX(0px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0;
    }
}

@keyframes binaryFlow {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100px) rotate(180deg);
        opacity: 0;
    }
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-10px) rotate(-3deg);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-30px) rotate(8deg);
        opacity: 0.4;
    }
}

@keyframes circuitShift {
    0% {
        transform: translateX(0) translateY(0);
    }
    25% {
        transform: translateX(50px) translateY(-25px);
    }
    50% {
        transform: translateX(100px) translateY(0);
    }
    75% {
        transform: translateX(50px) translateY(25px);
    }
    100% {
        transform: translateX(0) translateY(0);
    }
}

/* AI Brain Scan Effect */
.ai-brain-scan {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(74, 144, 226, 0.3);
    border-radius: 50%;
    top: 20%;
    right: 10%;
    animation: brainScan 8s infinite ease-in-out;
}

.ai-brain-scan::before {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    border: 1px solid rgba(138, 43, 226, 0.4);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: brainScan 6s infinite ease-in-out reverse;
}

.ai-brain-scan::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    border: 1px solid rgba(74, 144, 226, 0.5);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: brainScan 4s infinite ease-in-out;
}

@keyframes brainScan {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1) rotate(180deg);
        opacity: 0.8;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ai-brain-scan {
        width: 120px;
        height: 120px;
        top: 15%;
        right: 5%;
    }
    
    .ai-brain-scan::before {
        width: 90px;
        height: 90px;
    }
    
    .ai-brain-scan::after {
        width: 60px;
        height: 60px;
    }
    
    .ai-icon-float {
        font-size: 18px;
    }
}

/* Performance optimizations */
.ai-neural-network * {
    will-change: transform, opacity;
    backface-visibility: hidden;
    perspective: 1000px;
}
