/* ========== UNIQUE CODE-EMITTING PAGE LOADER ========== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, hsl(229, 83%, 15%), hsl(229, 83%, 5%));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    overflow: hidden;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    position: relative;
    text-align: center;
    z-index: 2;
}

.loader-logo {
    width: 140px;
    height: 140px;
    margin: 0 auto 40px;
    background: linear-gradient(135deg, #003a8a, hsl(229, 83%, 70%));
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: logoFloat 3s ease-in-out infinite, logoPulse 2s ease-in-out infinite;
    box-shadow: 0 20px 80px rgba(67, 97, 238, 0.6),
                0 0 0 10px rgba(67, 97, 238, 0.1),
                0 0 0 20px rgba(67, 97, 238, 0.05);
    position: relative;
}

.loader-logo::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, hsl(229, 83%, 70%), #003a8a, hsl(229, 83%, 45%));
    border-radius: 30px;
    z-index: -1;
    animation: rotate 3s linear infinite;
}

.loader-logo-inner {
    font-family: 'Lastica', Arial, sans-serif;
    font-weight: bold;
    color: white;
    font-size: 26px;
    line-height:20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing:1.4px;
}
.smaller{
   font-size:15px;
   font-family: 'Garet', sans-serif;
   letter-spacing:0px;
}


.loader-text {
    color: white;
    font-family: 'Garet', sans-serif;
    font-size: 20px;
    margin-top: 30px;
    animation: textGlow 2s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(67, 97, 238, 0.8);
}

.code-particle-loader {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: hsl(229, 83%, 70%);
    font-size: 14px;
    pointer-events: none;
    text-shadow: 0 0 10px hsl(229, 83%, 80%),
                 0 0 20px hsl(229, 83%, 60%);
    animation: floatCode linear forwards;
    opacity: 0;
    z-index: 1;
}

@keyframes floatCode {
    0% {
        opacity: 0;
        transform: translate(0, 0) rotate(0deg) scale(0.8);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) rotate(var(--rotate)) scale(1.2);
    }
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

@keyframes logoPulse {
    0%, 100% { 
        box-shadow: 0 20px 80px rgba(67, 97, 238, 0.6), 
                    0 0 0 10px rgba(67, 97, 238, 0.1), 
                    0 0 0 20px rgba(67, 97, 238, 0.05); 
    }
    50% { 
        box-shadow: 0 20px 100px rgba(67, 97, 238, 0.8), 
                    0 0 0 15px rgba(67, 97, 238, 0.15), 
                    0 0 0 30px rgba(67, 97, 238, 0.08); 
    }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes textGlow {
    0%, 100% { text-shadow: 0 0 20px rgba(67, 97, 238, 0.8); }
    50% { text-shadow: 0 0 30px rgba(67, 97, 238, 1), 0 0 50px rgba(67, 97, 238, 0.6); }
}
