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

.loader-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.loader-logo {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: loaderPulse 2s infinite ease-in-out;
}

.loader-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(129, 68, 142, 0.1);
    border-top: 3px solid #81448e;
    border-radius: 50%;
    animation: loaderSpin 1s linear infinite;
}

@keyframes loaderSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes loaderPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}

/* Hide loader when page is loaded */
body.loaded #loading-screen {
    opacity: 0;
    visibility: hidden;
}