/* assets/css/splash.css - Premium Charcoal Design */
:root {
    --splash-bg-start: #121214;
    --splash-bg-end: #1c1c1e;
    --splash-text: #f5f5f7;
    --splash-accent: #a855f7;
}

#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, var(--splash-bg-start) 0%, var(--splash-bg-end) 100%);
    z-index: 30000;
    /* Highest priority: Above everything during load */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
    /* Custom ease for curtain effect */
}

/* Background Ambient Glow - Static version */
#splash-screen::before {
    content: '';
    position: absolute;
    width: 150vw;
    height: 150vh;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
    /* Removed continuous animation for performance */
    z-index: -1;
}

/* Logo Container */
.splash-logo-container {
    position: relative;
    margin-bottom: 3rem;
    /* Increased spacing */
    opacity: 0;
    /* JS triggers fade in */
    transform: scale(0.8);
}

.splash-logo {
    width: 90%;
    /* Responsive width */
    max-width: 80px;
    /* Cap at the reduced size */
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 0 30px rgba(99, 102, 241, 0.5));
    /* Enhanced glow */
}

/* Animations */
@keyframes rotateLogo {
    from {
        transform: rotate(0deg) scale(1);
    }

    to {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes logoEnter {
    from {
        opacity: 0;
        transform: scale(0.6) rotate(-45deg);
    }

    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes pulseGlow {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes shimmer {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

/* Stable floating instead of bounce */
@keyframes floatLogo {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Animation Classes controlled by JS */
.animate-logo-enter {
    animation:
        logoEnter 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards,
        rotateLogo 3s linear infinite;
}


.splash-exit {
    transform: translateY(-100%);
}

@keyframes logoEnter {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}