/* CSS for Splash Screen */

.splash-body {
    margin: 0;
    padding: 0;
    overflow: hidden !important;
    height: 100vh;
}

.splash-container {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--color-cta);
    z-index: 9000; /* Ensure it stays on top */
}

.splash-screen {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.splash-screen.active {
    opacity: 1;
}

/* Splash screen_Blank */
.splash-blank {
    background-color: var(--color-cta);
    /* In the mockup, it looks like it might have a slight gradient, let's add it */
    background: radial-gradient(circle at center, var(--color-cta-hover) 0%, var(--color-cta) 70%, var(--color-cta) 100%);
    opacity: 1; /* Blank is active initially */
}

/* Splash screen_with logo */
.splash-with-logo {
    background-color: transparent;
    z-index: 10;
}

.logo-wrapper {
    text-align: center;
}

.splash-with-logo.active .splash-logo {
    animation: logoIn 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.splash-logo {
    width: min(85vw, 440px);
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 12px 40px rgba(59, 26, 23, 0.2));
    opacity: 0;
}

.splash-with-logo.active .splash-tagline {
    animation: taglineIn 1s ease-out 0.8s forwards;
}

.splash-tagline {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-top: 1.2rem;
    opacity: 0;
    transform: translateY(10px);
    letter-spacing: 0.3px;
}

@keyframes logoIn {
    0% {
        opacity: 0;
        transform: scale(0.65) translateY(10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes taglineIn {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.splash-container.fade-out {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease-out;
}
