/* Global Background Animation Styles */
.neural-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: url('../images/assets/neural-network-bg.svg') no-repeat center center;
    background-size: cover;
    opacity: 0.6;
}

.node-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: rgba(58, 134, 255, 0.6);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(58, 134, 255, 0.4);
    animation: float-particle 15s infinite linear;
}

.node-particle::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 1px;
    background: linear-gradient(90deg, rgba(58, 134, 255, 0.5), transparent);
    transform-origin: left center;
}

.node-particle:nth-child(even)::after {
    background: linear-gradient(90deg, rgba(131, 56, 236, 0.5), transparent);
}

.connection-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, rgba(58, 134, 255, 0.3), rgba(131, 56, 236, 0.3));
    transform-origin: left center;
    opacity: 0.3;
    animation: pulse-line 4s infinite alternate;
}

@keyframes float-particle {
    0% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(20px, 30px);
    }
    50% {
        transform: translate(40px, 0);
    }
    75% {
        transform: translate(20px, -30px);
    }
    100% {
        transform: translate(0, 0);
    }
}

@keyframes pulse-line {
    0% {
        opacity: 0.15;
    }
    100% {
        opacity: 0.35;
    }
}

/* Digital circuit overlay like in image 1 */
.circuit-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 30%;
    height: 100%;
    background: url('../images/assets/circuit-board.svg') no-repeat right center;
    background-size: cover;
    opacity: 0.2;
    mix-blend-mode: lighten;
    pointer-events: none;
    z-index: -1;
}

/* Global feature buttons like in image 1 */
.feature-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 30px 0;
}

.feature-button {
    display: flex;
    align-items: center;
    background: rgba(10, 25, 47, 0.6);
    border: 1px solid rgba(58, 134, 255, 0.3);
    border-radius: 30px;
    padding: 12px 25px;
    color: var(--light);
    transition: all 0.3s ease;
    text-decoration: none;
    backdrop-filter: blur(5px);
}

.feature-button:hover {
    background: rgba(58, 134, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(58, 134, 255, 0.3);
    border-color: rgba(58, 134, 255, 0.6);
}

.feature-button i {
    color: var(--primary);
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Orbit animation like in image 2 */
.orbit-animation {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    height: 200px;
    pointer-events: none;
}

.orbit-circle {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 30px rgba(58, 134, 255, 0.6);
}

.orbit-ring {
    position: absolute;
    width: 180px;
    height: 180px;
    border: 1px solid rgba(58, 134, 255, 0.3);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: rotate-orbit 20s linear infinite;
}

.orbit-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--secondary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--secondary);
}

.dot1 { top: -6px; left: 50%; transform: translateX(-50%); }
.dot2 { bottom: -6px; left: 50%; transform: translateX(-50%); }
.dot3 { left: -6px; top: 50%; transform: translateY(-50%); }
.dot4 { right: -6px; top: 50%; transform: translateY(-50%); }

@keyframes rotate-orbit {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* For sections with dark backgrounds */
section {
    position: relative;
    overflow: hidden;
}

/* Dark overlay to make content more readable over animations */
section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(10, 25, 47, 0.8) 0%, 
        rgba(10, 25, 47, 0.7) 100%);
    z-index: -1;
}
