/* Software Theme Animation */
.software-hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: transparent;
    z-index: 1;
}

/* Digital Grid Background */
.software-hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(232, 206, 29, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(232, 206, 29, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    transform: perspective(500px) rotateX(20deg);
    transform-origin: center top;
    animation: gridScan 20s linear infinite;
    opacity: 0.6;
}

/* Flowing Code Streams */
.code-stream {
    position: absolute;
    top: -100px;
    width: 1px;
    height: 100vh;
    background: linear-gradient(to bottom,
            transparent,
            rgba(232, 206, 29, 0.1),
            rgba(94, 101, 11, 0.3),
            transparent);
    animation: dataFlow 8s ease-in infinite;
    opacity: 0;
}

.code-stream:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    height: 120vh;
}

.code-stream:nth-child(2) {
    left: 30%;
    animation-delay: 2s;
    height: 140vh;
}

.code-stream:nth-child(3) {
    left: 50%;
    animation-delay: 4s;
    height: 110vh;
}

.code-stream:nth-child(4) {
    left: 70%;
    animation-delay: 1s;
    height: 130vh;
}

.code-stream:nth-child(5) {
    left: 90%;
    animation-delay: 3s;
    height: 150vh;
}

/* Pulse Dots/Nodes */
.network-node {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary-gold);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-gold);
    animation: floatNodes 15s infinite ease-in-out;
    opacity: 0.15;
}

.network-node:nth-child(6) {
    left: 20%;
    top: 30%;
    animation-delay: 0s;
}

.network-node:nth-child(7) {
    left: 80%;
    top: 20%;
    animation-delay: 2s;
}

.network-node:nth-child(8) {
    left: 40%;
    top: 70%;
    animation-delay: 4s;
}

.network-node:nth-child(9) {
    left: 60%;
    top: 50%;
    animation-delay: 1s;
}

.network-node:nth-child(10) {
    left: 15%;
    top: 80%;
    animation-delay: 3s;
}

/* Connecting Lines (Simulated via SVG or huge pseudo elements, keeping simple here with faint lines) */
/* We will use a subtle scanning bar */
.scan-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(232, 206, 29, 0.02), transparent);
    animation: scanMove 8s linear infinite;
}

@keyframes gridScan {
    0% {
        transform: perspective(500px) rotateX(20deg) translateY(0);
    }

    100% {
        transform: perspective(500px) rotateX(20deg) translateY(40px);
    }
}

@keyframes dataFlow {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }

    20% {
        opacity: 0.2;
    }

    80% {
        opacity: 0.2;
    }

    100% {
        transform: translateY(100%);
        opacity: 0;
    }
}

@keyframes floatNodes {

    0%,
    100% {
        transform: translate(0, 0);
        opacity: 0.1;
    }

    50% {
        transform: translate(20px, -20px);
        opacity: 0.2;
    }
}

@keyframes scanMove {
    0% {
        top: -10%;
    }

    100% {
        top: 110%;
    }
}

/* Minimal Opacity Modifier */
.software-hero-bg.minimal-opacity {
    opacity: 0.3;
    /* Adjusted as per request */
}
