/* =========================================
   NEURAL NEXUS LOADER (Coredge-Inspired)
   ========================================= */
.intro-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #0b0f19;
    /* Deep Tech Blue/Black */
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
}

.loader-center {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Central Core */
.nexus-core {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 30px var(--primary-color);
    z-index: 10;
    animation: pulseCore 2s ease-in-out infinite;
}

/* Orbital Rings */
.nexus-orbit {
    position: absolute;
    border: 1px solid rgba(0, 188, 212, 0.3);
    border-radius: 50%;
    animation: rotateOrbit 4s linear infinite;
}

.orbit-1 {
    width: 100px;
    height: 100px;
    border-top-color: var(--primary-color);
    animation-duration: 3s;
}

.orbit-2 {
    width: 160px;
    height: 160px;
    border-right-color: var(--secondary-color);
    animation-duration: 5s;
    animation-direction: reverse;
}

.orbit-3 {
    width: 220px;
    height: 220px;
    border-bottom-color: #fff;
    border-width: 1px;
    opacity: 0.1;
    animation-duration: 7s;
}

/* Satellite Nodes */
.orbit-1::before {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px white;
}

.orbit-2::before {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 6px;
    height: 6px;
    background: var(--secondary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--secondary-color);
}

/* Connecting LInes (Simulated) */
.nexus-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: spinLines 10s linear infinite;
}

.line {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 188, 212, 0.5));
    transform-origin: 0 0;
}

.line:nth-child(1) {
    transform: rotate(0deg);
}

.line:nth-child(2) {
    transform: rotate(120deg);
}

.line:nth-child(3) {
    transform: rotate(240deg);
}

.loader-text {
    position: absolute;
    bottom: -60px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    letter-spacing: 4px;
    color: white;
    font-size: 1rem;
    opacity: 0.8;
    text-transform: uppercase;
}

/* Animations */
@keyframes pulseCore {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 30px var(--primary-color);
    }

    50% {
        transform: scale(1.2);
        box-shadow: 0 0 50px var(--primary-color);
    }
}

@keyframes rotateOrbit {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes spinLines {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Done State */
.intro-loader.open {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.1);
    /* Slight zoom out effect on exit */
}