



/* ===============================
            PREMIUM BACKGROUND SYSTEM
        ================================ */

.bgWrap {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
}

/* Soft animated glow blobs */
.bgGlow {
    position: absolute;
    width: 40vw;
    height: 40vw;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    animation: floatGlow 18s ease-in-out infinite;
}

.bgGlow.one {
    background: #ffffff;
    top: -20%;
    left: -20%;
}

.bgGlow.two {
    background: #ffffff;
    bottom: -25%;
    right: -25%;
    animation-delay: -9s;
}

@keyframes floatGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(6%, 4%) scale(1.08);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* Diagonal animated grid */
.bgGrid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(120deg,
            rgba(255, 255, 255, 0.04) 1px,
            transparent 1px);
    background-size: 140px 140px;
    animation: gridMove 30s linear infinite;
    opacity: 0.35;
}

@keyframes gridMove {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 140px 140px;
    }
}

/* Film grain / noise */
.bgNoise {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
}






































/* ===============================
   PRELOADER
================================ */

#preloader {
    position: fixed;
    inset: 0;
    background: #0b0d10;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loaderCard {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: fadeIn 0.6s ease forwards;
}

.loaderLogo img {
    width: 6rem;
    opacity: 0;
    animation: logoReveal 0.9s ease forwards;
}

@keyframes logoReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animated loading line */
.loaderLine {
    width: 6rem;
    height: 2px;
    background: rgba(255,255,255,0.1);
    overflow: hidden;
    border-radius: 999px;
}

.loaderLine span {
    display: block;
    width: 40%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.9),
        transparent
    );
    animation: loadingLine 1.4s ease-in-out infinite;
}

@keyframes loadingLine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(250%); }
}

.loaderText {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
}

/* Fade out */
#preloader.hide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
