/* General styles for the techno-themed loader */
#techno-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

/* Hide the loader when loaded */
#techno-loader.loader-hidden {
    opacity: 0;
    visibility: hidden;
}

/* Loader container */
.loader-content {
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Inner rotating circle with techno color */
.circle {
    position: absolute;
    border-radius: 50%;
    border: 4px solid transparent;
}

/* Outer Ring */
.circle:nth-child(1) {
    width: 100%;
    height: 100%;
    border-top: 4px solid #0ff;
    border-bottom: 4px solid #0ff;
    animation: rotate-cw 2s linear infinite;
    box-shadow: 0 0 10px #0ff, 0 0 20px #0ff inset;
}

/* Middle Ring */
.circle:nth-child(2) {
    width: 70%;
    height: 70%;
    border-left: 4px solid #f0f;
    border-right: 4px solid #f0f;
    animation: rotate-ccw 1.5s linear infinite;
    box-shadow: 0 0 10px #f0f, 0 0 20px #f0f inset;
}

/* Inner Ring */
.circle:nth-child(3) {
    width: 40%;
    height: 40%;
    border-top: 4px solid #0f0;
    border-bottom: 4px solid #0f0;
    animation: rotate-cw 1s linear infinite;
    box-shadow: 0 0 10px #0f0, 0 0 20px #0f0 inset;
}

/* Loading text */
.loading-text {
    position: absolute;
    bottom: -40px;
    color: #fff;
    font-family: 'Orbitron', 'Courier New', Courier, monospace;
    font-size: 1.2rem;
    letter-spacing: 2px;
    animation: blink 1s infinite alternate;
    text-shadow: 0 0 5px #0ff;
}

/* Animations */
@keyframes rotate-cw {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes rotate-ccw {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

@keyframes blink {
    from { opacity: 1; }
    to { opacity: 0.5; }
}
