/* ==================== SPLASH SCREEN ==================== */

.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.splash-screen.active {
    opacity: 1;
    pointer-events: all;
}

.splash-content {
    text-align: center;
    padding: 20px;
    animation: splashFadeIn 0.8s ease-out;
}

.splash-logo {
    width: 180px;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    animation: splashBounce 1s ease-out;
    margin-bottom: 32px;
}

.splash-title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
    animation: splashSlideUp 0.8s ease-out 0.2s both;
}

.splash-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
    animation: splashSlideUp 0.8s ease-out 0.4s both;
}

.splash-loader {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
    animation: splashSlideUp 0.8s ease-out 0.6s both;
}

.loader-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-brown));
    border-radius: 2px;
    animation: loaderProgress 2s ease-out forwards;
}

/* ==================== ANIMATIONS ==================== */

@keyframes splashFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes splashBounce {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(-50px);
    }
    50% {
        transform: scale(1.05) translateY(0);
    }
    70% {
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes splashSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes loaderProgress {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

/* ==================== FADE OUT ==================== */

.splash-screen.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}
