/* ===== AI CIRCUIT ANIMATION - MULTIPLE SECTIONS ===== */

.about,
.how-to-buy,
.roadmap,
.buy-section,
.ai-hub-section {
    position: relative;
    overflow: hidden;
}

/* AI Circuit Board Background */
.ai-circuit-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    opacity: 0.3;
}

/* Animated Grid Lines */
.grid-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(6, 182, 212, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridScroll 20s linear infinite;
}

@keyframes gridScroll {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* Flying Data Particles */
.data-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(6, 182, 212, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.8),
                0 0 20px rgba(6, 182, 212, 0.4);
    animation: particleFly 15s linear infinite;
}

.data-particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.data-particle:nth-child(2) { left: 20%; animation-delay: 2s; }
.data-particle:nth-child(3) { left: 30%; animation-delay: 4s; }
.data-particle:nth-child(4) { left: 40%; animation-delay: 6s; }
.data-particle:nth-child(5) { left: 50%; animation-delay: 8s; }
.data-particle:nth-child(6) { left: 60%; animation-delay: 10s; }
.data-particle:nth-child(7) { left: 70%; animation-delay: 12s; }
.data-particle:nth-child(8) { left: 80%; animation-delay: 14s; }
.data-particle:nth-child(9) { left: 90%; animation-delay: 3s; }
.data-particle:nth-child(10) { left: 15%; animation-delay: 7s; }

@keyframes particleFly {
    0% {
        transform: translateY(100vh) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(0.5);
        opacity: 0;
    }
}

/* Binary Code Rain */
.binary-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: rgba(6, 182, 212, 0.3);
    font-weight: bold;
    line-height: 20px;
}

.binary-column {
    position: absolute;
    top: -100%;
    white-space: nowrap;
    animation: binaryFall 12s linear infinite;
}

.binary-column:nth-child(1) { left: 5%; animation-delay: 0s; }
.binary-column:nth-child(2) { left: 15%; animation-delay: 2s; }
.binary-column:nth-child(3) { left: 25%; animation-delay: 4s; }
.binary-column:nth-child(4) { left: 35%; animation-delay: 1s; }
.binary-column:nth-child(5) { left: 45%; animation-delay: 3s; }
.binary-column:nth-child(6) { left: 55%; animation-delay: 5s; }
.binary-column:nth-child(7) { left: 65%; animation-delay: 2.5s; }
.binary-column:nth-child(8) { left: 75%; animation-delay: 4.5s; }
.binary-column:nth-child(9) { left: 85%; animation-delay: 1.5s; }
.binary-column:nth-child(10) { left: 95%; animation-delay: 3.5s; }

@keyframes binaryFall {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* Neural Network Lines */
.neural-network {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.neural-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent,
        rgba(6, 182, 212, 0.6),
        transparent
    );
    animation: neuralPulse 3s ease-in-out infinite;
}

.neural-line:nth-child(1) {
    top: 20%;
    left: 0;
    width: 60%;
    animation-delay: 0s;
}

.neural-line:nth-child(2) {
    top: 40%;
    right: 0;
    width: 50%;
    animation-delay: 0.5s;
}

.neural-line:nth-child(3) {
    top: 60%;
    left: 0;
    width: 70%;
    animation-delay: 1s;
}

.neural-line:nth-child(4) {
    top: 80%;
    right: 0;
    width: 55%;
    animation-delay: 1.5s;
}

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

/* Neural Nodes */
.neural-node {
    position: absolute;
    width: 12px;
    height: 12px;
    background: rgba(6, 182, 212, 0.8);
    border: 2px solid rgba(6, 182, 212, 1);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.8),
                0 0 40px rgba(6, 182, 212, 0.4);
    animation: nodePulse 2s ease-in-out infinite;
}

.neural-node:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.neural-node:nth-child(2) { top: 20%; right: 15%; animation-delay: 0.3s; }
.neural-node:nth-child(3) { top: 40%; left: 20%; animation-delay: 0.6s; }
.neural-node:nth-child(4) { top: 40%; right: 10%; animation-delay: 0.9s; }
.neural-node:nth-child(5) { top: 60%; left: 15%; animation-delay: 1.2s; }
.neural-node:nth-child(6) { top: 60%; right: 20%; animation-delay: 1.5s; }
.neural-node:nth-child(7) { top: 80%; left: 25%; animation-delay: 1.8s; }
.neural-node:nth-child(8) { top: 80%; right: 12%; animation-delay: 2.1s; }

@keyframes nodePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

/* Glowing Orbs */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.15;
    animation: orbFloat 20s ease-in-out infinite;
}

.glow-orb:nth-child(1) {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.6), transparent);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.glow-orb:nth-child(2) {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.4), transparent);
    top: 50%;
    right: 10%;
    animation-delay: 3s;
}

.glow-orb:nth-child(3) {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.5), transparent);
    bottom: 10%;
    left: 50%;
    animation-delay: 6s;
}

@keyframes orbFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(50px, -50px) scale(1.1);
    }
    50% {
        transform: translate(-30px, 30px) scale(0.9);
    }
    75% {
        transform: translate(40px, 20px) scale(1.05);
    }
}

/* Digital Data Stream */
.data-stream {
    position: absolute;
    width: 2px;
    height: 100px;
    background: linear-gradient(180deg, 
        transparent,
        rgba(6, 182, 212, 0.8),
        transparent
    );
    animation: streamFlow 4s linear infinite;
}

.data-stream:nth-child(1) { left: 25%; animation-delay: 0s; }
.data-stream:nth-child(2) { left: 50%; animation-delay: 1s; }
.data-stream:nth-child(3) { left: 75%; animation-delay: 2s; }

@keyframes streamFlow {
    0% {
        top: -100px;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

/* Circuit Board Paths */
.circuit-path {
    position: absolute;
    border: 2px solid rgba(6, 182, 212, 0.3);
    border-radius: 4px;
}

.circuit-path.horizontal {
    height: 2px;
    width: 200px;
}

.circuit-path.vertical {
    width: 2px;
    height: 150px;
}

.circuit-path:nth-child(1) {
    top: 15%;
    left: 10%;
    width: 150px;
}

.circuit-path:nth-child(2) {
    top: 35%;
    right: 15%;
    width: 180px;
}

.circuit-path:nth-child(3) {
    top: 25%;
    left: 20%;
    height: 100px;
}

.circuit-path:nth-child(4) {
    top: 55%;
    right: 25%;
    height: 120px;
}

/* Animated Circuit Energy */
.circuit-energy {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(6, 182, 212, 1);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(6, 182, 212, 1);
    animation: energyPulse 3s linear infinite;
}

.circuit-energy:nth-child(1) { top: 15%; left: 10%; }
.circuit-energy:nth-child(2) { top: 35%; right: 15%; animation-delay: 1s; }
.circuit-energy:nth-child(3) { top: 55%; left: 30%; animation-delay: 2s; }

@keyframes energyPulse {
    0%, 100% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

/* Make sure content is above animation */
.about .container,
.how-to-buy .container,
.roadmap .container,
.buy-section .container,
.ai-hub-section .container {
    position: relative;
    z-index: 2;
}

.about-content,
.steps-container,
.timeline-container,
.buy-content {
    position: relative;
    z-index: 2;
}

/* Responsive */
@media (max-width: 768px) {
    .ai-circuit-bg {
        opacity: 0.2;
    }
    
    .glow-orb {
        filter: blur(30px);
    }
    
    .binary-rain {
        font-size: 12px;
    }
}
