/* Critical CSS for first paint - UMS Website */
/* This file contains only the most essential styles for above-the-fold content */

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    background: #0a0a0a; 
    color: #cdd6f4; 
    font-family: 'Inter', sans-serif; 
    line-height: 1.6; 
    overflow-x: hidden; 
}

.hero { 
    position: relative; 
    height: 100vh; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    overflow: hidden; 
}

.hero-content { 
    position: relative; 
    text-align: center; 
    z-index: 20; 
    max-width: 800px; 
    padding: 0 2rem; 
}

.hero-title { 
    font-family: 'Orbitron', monospace; 
    font-weight: 900; 
    font-size: clamp(2.5rem, 8vw, 6rem); 
    line-height: 0.9; 
    margin-bottom: 2rem; 
    text-transform: uppercase; 
    letter-spacing: 3px; 
}

.hero-title .line-1 {
    display: block;
    color: #cdd6f4;
}

.hero-title .line-2 {
    display: block;
    color: #0080ff;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #89929b;
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: 1px;
}

.logo {
    margin-bottom: 3rem;
}

.logo img {
    height: 160px;
    filter: drop-shadow(0 0 20px #0080ff);
}

.preloader { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%); 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    z-index: 10000; 
    transition: opacity 0.8s ease, visibility 0.8s ease; 
}

.preloader.fade-out { 
    opacity: 0; 
    visibility: hidden; 
    pointer-events: none; 
}

.preloader-logo {
    margin-bottom: 2rem;
}

.preloader-logo img {
    height: 200px;
    filter: drop-shadow(0 0 30px #0080ff);
}

.preloader-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid transparent;
    border-top: 3px solid #0080ff;
    border-right: 3px solid #06b6d4;
    border-radius: 50%;
    animation: preloaderSpin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes preloaderSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.preloader-progress {
    width: 200px;
    margin: 1rem 0;
    text-align: center;
}

.preloader-progress .progress-bar {
    width: 100%;
    height: 4px;
    background: #111318;
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid rgba(0, 128, 255, 0.3);
    margin-bottom: 0.5rem;
    position: relative;
}

.preloader-progress .progress-bar::after {
    content: '';
    display: block;
    height: 100%;
    width: var(--progress, 0%);
    background: linear-gradient(90deg, #0080ff, #06b6d4);
    border-radius: 2px;
    transition: width 0.3s ease;
    position: relative;
}

.preloader-progress .progress-text {
    color: #06b6d4;
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.preloader-text {
    color: #89929b;
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 1rem;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .logo img {
        height: 120px;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: clamp(2rem, 12vw, 4rem);
        line-height: 1.1;
    }
    
    .preloader-logo img {
        height: 150px;
    }
    
    .preloader-spinner {
        width: 50px;
        height: 50px;
    }
}
