/* Import Inter font for modern, clean appearance */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Splash Screen Styles */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

/* Hidden state */
#splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Logo container with icon and text */
.splash-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* Logo icon */
.splash-logo .splash-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    margin: 0;
    animation: logoGlow 2s ease-in-out infinite alternate;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

/* Logo title text */
.splash-logo .splash-title {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.02em;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    animation: logoGlow 2s ease-in-out infinite alternate;
}

/* Legacy SVG styling (keep for fallback) */
.splash-logo img:not(.splash-icon) {
    width: 80px;
    height: 80px;
    filter: invert(1);
    margin: 0;
    animation: logoGlow 2s ease-in-out infinite alternate;
}

/* Logo glow animation */
@keyframes logoGlow {
    from {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    }
    to {
        text-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
    }
}

/* Tagline container */
.splash-tagline {
    margin-bottom: 3rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tagline text with typewriter effect */
.splash-tagline p {
    font-size: 1.25rem;
    font-weight: 400;
    color: #e0e0e0;
    margin: 0;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid #ffffff;
    animation: typewriter 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

/* Typewriter animation */
@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* Blinking cursor animation */
@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: #ffffff;
    }
}

/* Progress bar container */
.splash-progress {
    width: 100%;
    max-width: 400px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 1px;
    overflow: hidden;
    position: relative;
}

/* Progress bar fill */
.splash-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ffffff 0%, #e0e0e0 100%);
    border-radius: 1px;
    width: 0%;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Progress bar glow effect */
.splash-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8));
    animation: progressGlow 2s ease-in-out infinite;
}

@keyframes progressGlow {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

/* Loading text */
.splash-loading {
    margin-top: 1.5rem;
    text-align: center;
}

.splash-loading p {
    font-size: 0.875rem;
    font-weight: 300;
    color: #a0a0a0;
    margin: 0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Responsive design */
@media (max-width: 768px) {
    .splash-logo h1 {
        font-size: 3rem;
    }
    
    .splash-tagline p {
        font-size: 1.1rem;
    }
    
    .splash-progress {
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .splash-logo h1 {
        font-size: 2.5rem;
    }
    
    .splash-tagline p {
        font-size: 1rem;
    }
    
    .splash-progress {
        max-width: 250px;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    #splash-screen,
    .splash-logo h1,
    .splash-tagline p,
    .splash-progress-bar {
        animation: none;
        transition: opacity 0.3s ease-out;
    }
    
    .splash-tagline p {
        border-right: none;
        width: auto;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    #splash-screen {
        background: #000000;
    }
    
    .splash-logo h1 {
        color: #ffffff;
        text-shadow: none;
    }
    
    .splash-tagline p {
        color: #ffffff;
    }
    
    .splash-progress {
        background-color: #333333;
    }
    
    .splash-progress-bar {
        background: #ffffff;
        box-shadow: none;
    }
}

/* Ensure splash screen is above Bootstrap modals */
#splash-screen {
    z-index: 10000;
}

/* Prevent body scroll when splash is active */
body.splash-active {
    overflow: hidden;
    height: 100vh;
}

/* Smooth transition for main content */
.main-content {
    opacity: 0;
    transition: opacity 0.6s ease-in;
}

.main-content.loaded {
    opacity: 1;
} 