/* ══════════════════════════════════════════════════
   Page Loader — gdc_logo.png
   ══════════════════════════════════════════════════ */

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #142330;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.6s;
}
.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-logo {
    width: 120px;
    height: 120px;
    animation: loader-breathe 2s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(172,251,85,0.4));
}

@keyframes loader-breathe {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 30px rgba(172,251,85,0.4));
    }
    50% {
        transform: scale(1.08);
        filter: drop-shadow(0 0 50px rgba(248,254,97,0.6));
    }
}

/* Orbit rings around logo */
.loader-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
}
.loader-ring:nth-child(2) {
    width: 180px;
    height: 180px;
    border-top-color: rgba(248,254,97,0.4);
    border-right-color: rgba(248,254,97,0.1);
    animation: spin-cw 1.8s linear infinite;
}
.loader-ring:nth-child(3) {
    width: 220px;
    height: 220px;
    border-bottom-color: rgba(172,251,85,0.3);
    border-left-color: rgba(172,251,85,0.08);
    animation: spin-ccw 2.4s linear infinite;
}
.loader-ring:nth-child(4) {
    width: 260px;
    height: 260px;
    border-top-color: rgba(248,254,97,0.15);
    animation: spin-cw 3.5s linear infinite;
}

@keyframes spin-cw {
    to { transform: rotate(360deg); }
}
@keyframes spin-ccw {
    to { transform: rotate(-360deg); }
}

/* Progress bar */
.loader-progress {
    position: absolute;
    bottom: 20%;
    width: 160px;
    height: 3px;
    background: rgba(248,254,97,0.1);
    border-radius: 10px;
    overflow: hidden;
}
.loader-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--gradient-start, #f8fe61), var(--gradient-end, #acfb55));
    border-radius: 10px;
    transition: width 0.3s ease;
    animation: loader-fill 2s ease-in-out forwards;
}
@keyframes loader-fill {
    0%   { width: 0%; }
    30%  { width: 40%; }
    60%  { width: 70%; }
    90%  { width: 90%; }
    100% { width: 100%; }
}

.loader-text {
    position: absolute;
    bottom: calc(20% - 30px);
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(168,184,200,0.6);
    animation: loader-text-fade 1.5s ease-in-out infinite;
}
@keyframes loader-text-fade {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}
