/* ═══════════════════════════════════════
   MAGICAL VIBRANT PAGE LOADER - GLOBAL
═══════════════════════════════════════ */
#page-loader {
    position: fixed;
    inset: 0;
    z-index: 99999; /* Max z-index to stay on top of everything */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #0f172a; /* Base dark slate */
    overflow: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    pointer-events: auto;
}
#page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Magical Background Blobs */
.loader-bg-blob-1 {
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(99,102,241,0.4) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    animation: blobFloat1 12s ease-in-out infinite alternate;
}
.loader-bg-blob-2 {
    position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(236,72,153,0.3) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    animation: blobFloat2 10s ease-in-out infinite alternate;
}
@keyframes blobFloat1 {
    0% { transform: translate(-30%, -20%) scale(1); }
    100% { transform: translate(20%, 30%) scale(1.2); }
}
@keyframes blobFloat2 {
    0% { transform: translate(30%, 20%) scale(1); }
    100% { transform: translate(-20%, -30%) scale(1.3); }
}

/* Orbital ring wrapper */
.loader-ring-wrap {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Centre logo with glowing aura */
.loader-logo-wrap {
    position: absolute;
    width: 130px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 40px rgba(255,255,255,0.5), inset 0 0 20px rgba(230,230,230,0.8);
    animation: magicalPulse 2.5s ease-in-out infinite alternate;
    z-index: 10;
}
.loader-logo-wrap img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.2));
    animation: logoFloat 4s ease-in-out infinite;
}
@keyframes magicalPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 40px rgba(236,72,153,0.4), inset 0 0 20px rgba(255,255,255,0.8); }
    100% { transform: scale(1.05); box-shadow: 0 0 70px rgba(99,102,241,0.6), inset 0 0 30px rgba(255,255,255,1); }
}
@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* 3D Emojis Orbit */
.l-arm {
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    animation: armSpin 12s linear infinite;
}
@keyframes armSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.l-icon {
    position: absolute;
    top: -30px; left: -30px;
    width: 60px; height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 46px; 
    transform: translateX(160px);
    animation: iconCounter 12s linear infinite;
    filter: drop-shadow(0 8px 15px rgba(0,0,0,0.4));
}
.l-icon span {
    display: block;
    animation: emojiBounce 2s ease-in-out infinite alternate;
}

@keyframes iconCounter {
    from { transform: translateX(160px) rotate(0deg); }
    to   { transform: translateX(160px) rotate(-360deg); }
}
@keyframes emojiBounce {
    0% { transform: translateY(0px) scale(0.9) rotate(-10deg); }
    100% { transform: translateY(-15px) scale(1.1) rotate(10deg); }
}

/* Bouncy Text */
.loader-text-wrap {
    position: relative;
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}
.loader-pill {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 12px 32px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3), inset 0 2px 5px rgba(255,255,255,0.2);
    margin-bottom: 15px;
}
.loader-school-name {
    font-family: 'Newsreader', Georgia, serif;
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(90deg, #60a5fa, #f472b6, #fbbf24);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.05em;
    margin: 0;
}
.loader-subtitle {
    display: flex;
    gap: 4px;
    color: rgba(255,255,255,0.8);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
}
.wavy-char {
    display: inline-block;
    animation: waveText 1.5s ease-in-out infinite;
}
@keyframes waveText {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Star/sparkle particles */
.loader-particle {
    position: absolute;
    border-radius: 50%;
    animation: particleFade var(--pdur, 3s) ease-in-out infinite;
    animation-delay: var(--pdelay, 0s);
    z-index: 5;
}
@keyframes particleFade {
    0%, 100% { opacity: 0; transform: scale(0.3) translateY(0);   }
    50%       { opacity: 1; transform: scale(1)   translateY(-20px); box-shadow: 0 0 10px currentColor; }
}

/* ═══════════════════════════════════════
   BHATT SERVICES DESIGN TOKENS
   ═══════════════════════════════════════ */
:root {
    --bhatt-green: #22c55e;
    --bhatt-navy: #0f172a;
    --white: #ffffff;
    --space-8: 32px;
    --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
    --font-ui: 'Inter', system-ui, sans-serif;
}

.bhatt-signature-wrap {
    pointer-events: auto !important; /* Allow interaction with the link */
}

.bhatt-protected-logo {
    -webkit-user-drag: none;
    user-drag: none;
    -webkit-touch-callout: none;
    user-select: none;
    pointer-events: none;
}
