/* Welcome Splash Screen Styles - Engineer Edition */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;700&display=swap');

#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0f;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s;
}

#splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.splash-content {
    display: flex;
    align-items: center;
    position: relative;
    font-family: 'Fira Code', 'Courier New', monospace;
}

.terminal-prompt {
    font-size: 3rem;
    color: var(--color-primary);
    margin-right: 1.5rem;
    font-weight: 700;
}

.splash-text {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    overflow: hidden; /* For typewriter effect */
    white-space: nowrap;
    border-right: none;
    letter-spacing: 2px;
    width: 0;
    animation: typewriter 1.5s steps(20, end) forwards;
}

.terminal-cursor {
    width: 20px;
    height: 3.5rem;
    background: var(--color-primary);
    margin-left: 0.5rem;
    animation: blink 0.8s step-end infinite;
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 280px; } /* Adjust based on "Welcome" length */
}

@keyframes blink {
    from, to { background: transparent; }
    50% { background: var(--color-primary); }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .terminal-prompt { font-size: 2rem; margin-right: 0.8rem; }
    .splash-text { font-size: 2rem; }
    .terminal-cursor { height: 2.2rem; width: 12px; }
    @keyframes typewriter {
        from { width: 0; }
        to { width: 180px; }
    }
}
