/* New Loading Screen Styles */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2147483647 !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #0e1620; /* Dark background */
    overflow: hidden;
}

/* Tech Ring Animation */
.loader-container {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.loader-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #c00000; /* Primary Red */
    border-right-color: rgba(192, 0, 0, 0.2);
    animation: spin 1.5s linear infinite;
    box-shadow: 0 0 15px rgba(192, 0, 0, 0.2);
}

.loader-ring::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #ffffff;
    border-left-color: rgba(255, 255, 255, 0.2);
    animation: spin 2.5s linear infinite reverse;
}

.loader-ring::after {
    content: "";
    position: absolute;
    top: 25px;
    left: 25px;
    right: 25px;
    bottom: 25px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: #ff5a5a; /* Lighter Red */
    animation: spin 1s linear infinite;
}

/* Logo Text */
.loader-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.loader-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    background: linear-gradient(90deg, #fff, #ccc, #fff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% auto;
    animation: shine 3s linear infinite;
}

.loader-subtext {
    margin-top: 10px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 4px;
    text-transform: uppercase;
}

/* Particles / Tech Background Effect */
.loader-bg-particle {
    position: absolute;
    background: rgba(192, 0, 0, 0.1);
    border-radius: 50%;
    animation: floatParticle 8s infinite ease-in-out;
}

.p1 { width: 300px; height: 300px; top: -50px; left: -50px; animation-delay: 0s; }
.p2 { width: 200px; height: 200px; bottom: -30px; right: -30px; animation-delay: -2s; background: rgba(255, 255, 255, 0.03); }
.p3 { width: 150px; height: 150px; top: 40%; left: 80%; animation-delay: -4s; }

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes shine {
    to { background-position: 200% center; }
}

@keyframes floatParticle {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, 30px); }
}

/* Pulse effect for the central icon if we add one */
.loader-icon {
    width: 40px;
    height: 40px;
    background-color: #c00000;
    mask-image: url('../img/icon.png'); /* Fallback or shape */
    -webkit-mask-image: url('../img/icon.png');
    mask-size: contain;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-position: center;
}
