/*-----------------------------------*\
 * splash.css - MINIMAL & CLEAN
\*-----------------------------------*/

.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s;
    overflow: hidden;
}

.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 1s ease 0.4s, visibility 1s;
    /* Background fades after logo starts zoom */
}

.splash-screen.hidden .splash-content {
    transform: scale(1.1);
    filter: blur(10px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.splash-screen.hidden .splash-logo {
    transform: scale(50) rotate(30deg);
    opacity: 0;
    filter: blur(4px);
    transition: transform 1.2s cubic-bezier(0.7, 0, 0.3, 1), opacity 0.8s ease, filter 0.8s;
}

.splash-screen.hidden .splash-loader {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    perspective: 1000px;
}

.splash-logo-wrapper {
    animation: logo-fade-in 1.2s ease forwards;
}

.splash-logo {
    width: 80px;
    height: auto;
    opacity: 1;
    transition: transform 0.5s ease;
    /* Default transition */
}

.splash-loader {
    width: 120px;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loader-line {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--color-secondary);
    animation: loading-minimal 2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes logo-fade-in {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes loading-minimal {
    0% {
        left: -100%;
        width: 20%;
    }

    50% {
        left: 0%;
        width: 60%;
    }

    100% {
        left: 100%;
        width: 20%;
    }
}

body.loading {
    overflow: hidden;
    height: 100vh;
}