/* Splash Screen Styles */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.1s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 0.1s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    font-family: 'Noto Sans', sans-serif;
}

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

.splash-content {
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.splash-logo {
    max-width: 220px;
    height: auto;
    animation: logoEntrance 0.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform-origin: center;
    opacity: 0;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.10));
    will-change: transform, opacity;
}

/* Loading text */
.splash-loading {
    margin-top: 1.5rem;
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeIn 0.6s ease-out 0.8s forwards;
}

/* Background animation elements */
.splash-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.splash-bg::before,
.splash-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.05), rgba(255, 255, 255, 0.1));
    animation: pulse 4s infinite ease-in-out;
    opacity: 0;
    will-change: transform, opacity;
}

.splash-bg::before {
    width: 120vmax;
    height: 120vmax;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    animation-delay: 0.3s;
    background: radial-gradient(circle, rgba(220, 53, 69, 0.04) 0%, rgba(255, 255, 255, 0) 70%);
}

.splash-bg::after {
    width: 90vmax;
    height: 90vmax;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    animation-delay: 0.6s;
    background: radial-gradient(circle, rgba(220, 53, 69, 0.03) 0%, rgba(255, 255, 255, 0) 60%);
}

/* Keyframe Animations */
@keyframes logoEntrance {
    0% {
        opacity: 0;
        transform: scale(0.98) translateY(2px) rotate(-1deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0) rotate(0deg);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    50% {
        opacity: 0.1;
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .splash-logo {
        max-width: 250px;
    }
    
    .splash-loading {
        font-size: 0.85rem;
    }
}

@media (max-width: 767.98px) {
    .splash-logo {
        max-width: 200px;
    }
    
    .splash-bg::before {
        width: 150vmax;
        height: 150vmax;
    }
    
    .splash-bg::after {
        width: 120vmax;
        height: 120vmax;
    }
}

@media (max-width: 480px) {
    .splash-logo {
        max-width: 180px;
    }
    
    .splash-loading {
        font-size: 0.8rem;
    }
}
