/* Clean & Simple Splash Screen */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #667eea 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.6s ease-out;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    padding: 20px;
    box-sizing: border-box;
}

.splash-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Logo Container */
.splash-logo {
    width: 140px;
    height: 140px;
    margin-bottom: 40px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.splash-logo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% { 
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 20px 50px rgba(255, 215, 0, 0.3);
        transform: scale(1.05);
    }
}

/* Title - Perfectly Centered */
.splash-title {
    color: white;
    font-size: 42px;
    font-weight: 900;
    margin: 0;
    text-align: center;
    letter-spacing: -1.5px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: titleSlideUp 1s ease-out 0.2s both;
    line-height: 1.1;
}

.splash-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 18px;
    font-weight: 600;
    margin: 12px 0 50px 0;
    text-align: center;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: titleSlideUp 1s ease-out 0.4s both;
}

@keyframes titleSlideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Section - Clean & Centered */
.splash-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: loadingFadeIn 1s ease-out 0.6s both;
}

@keyframes loadingFadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Loading Dots - Elegant */
.loading-dots {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    justify-content: center;
}

.loading-dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    animation: dotPulse 1.5s ease-in-out infinite both;
}

.loading-dot:nth-child(1) { animation-delay: -0.3s; }
.loading-dot:nth-child(2) { animation-delay: -0.15s; }
.loading-dot:nth-child(3) { animation-delay: 0s; }

@keyframes dotPulse {
    0%, 80%, 100% {
        transform: scale(0.7);
        opacity: 0.6;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Loading Text - Perfectly Centered */
.loading-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    animation: textGlow 2s ease-in-out infinite;
    letter-spacing: 0.5px;
}

@keyframes textGlow {
    0%, 100% { 
        opacity: 0.8; 
        text-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
    }
    50% { 
        opacity: 1; 
        text-shadow: 0 2px 15px rgba(255, 255, 255, 0.4);
    }
}

/* Mobile Responsive - Maintain Perfect Centering */
@media (max-width: 768px) {
    .splash-logo {
        width: 120px;
        height: 120px;
        margin-bottom: 35px;
    }
    
    .splash-title {
        font-size: 36px;
        letter-spacing: -1px;
    }
    
    .splash-subtitle {
        font-size: 16px;
        margin-bottom: 45px;
        letter-spacing: 2px;
    }
    
    .loading-text {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .splash-screen {
        padding: 15px;
    }
    
    .splash-logo {
        width: 100px;
        height: 100px;
        margin-bottom: 30px;
    }
    
    .splash-title {
        font-size: 32px;
        letter-spacing: -0.5px;
    }
    
    .splash-subtitle {
        font-size: 14px;
        margin-bottom: 40px;
        letter-spacing: 1.5px;
    }
    
    .loading-text {
        font-size: 14px;
    }
    
    .loading-dots {
        margin-bottom: 18px;
    }
    
    .loading-dot {
        width: 8px;
        height: 8px;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 600px) and (orientation: landscape) {
    .splash-logo {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
    }
    
    .splash-title {
        font-size: 28px;
        margin-bottom: 8px;
    }
    
    .splash-subtitle {
        font-size: 14px;
        margin-bottom: 25px;
    }
    
    .loading-text {
        font-size: 13px;
    }
}