/* Loader styling */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #121212;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.page-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 120px;
    height: 120px;
    position: relative;
}

.loader-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Open Sans', sans-serif;
    font-weight: bold;
    font-size: 18px;
    color: white;
}

.loader-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top-color: #0077C8;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

.loader-circle:nth-child(2) {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-top-color: transparent;
    border-right-color: #00A651;
    animation-duration: 1.8s;
}

.loader-circle:nth-child(3) {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    border-top-color: transparent;
    border-right-color: transparent;
    border-bottom-color: #FF9E1B;
    animation-duration: 2s;
}

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

/* SMOO logo animation */
.smoo-logo {
    font-family: 'Arial', sans-serif;
    font-weight: 900;
    font-size: 36px;
    color: white;
    letter-spacing: 2px;
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.smoo-logo span {
    display: inline-block;
    animation: logoFade 1.5s infinite alternate;
}

.smoo-logo span:nth-child(1) {
    animation-delay: 0s;
    color: #0077C8;
}

.smoo-logo span:nth-child(2) {
    animation-delay: 0.2s;
    color: #00A651;
}

.smoo-logo span:nth-child(3) {
    animation-delay: 0.4s;
    color: #FF9E1B;
}

.smoo-logo span:nth-child(4) {
    animation-delay: 0.6s;
    color: #DE0039;
}

@keyframes logoFade {
    0% {
        opacity: 0.6;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1.05);
    }
}
