

.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f9f9f9;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-in-out;
}

.page-transition.fade-out {
    opacity: 0;
    pointer-events: none;
}

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

.loader-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 8px solid transparent;
    border-top-color: #6C63FF;
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
}

.loader-circle:nth-child(2) {
    border-top-color: transparent;
    border-right-color: #FF6B6B;
    animation-duration: 1s;
}

.loader-circle:nth-child(3) {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-top-color: transparent;
    border-left-color: #4CAF50;
    animation-duration: 0.8s;
    animation-direction: reverse;
}

.loader-text {
    margin-top: 24px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 18px;
    color: #333;
    text-align: center;
}

.loader-text .dots {
    display: inline-block;
    width: 24px;
    text-align: left;
}

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

@keyframes dots {
    0%, 20% {
        content: '.';
    }
    40% {
        content: '..';
    }
    60%, 100% {
        content: '...';
    }
}

.loader-text .dots::after {
    content: '';
    animation: dots 1.5s infinite;
}


@media (max-width: 768px) {
    .loader {
        width: 90px;
        height: 90px;
    }
    
    .loader-circle {
        border-width: 6px;
    }
    
    .loader-text {
        font-size: 16px;
    }
}
