#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.loader {
    position: relative;
    width: 80px;
    height: 80px;
    animation: rotate 3s linear infinite;
}

.circle {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    animation: circle-animation 2s ease-in-out infinite;
}

.circle:nth-child(1) {
    left: 0;
    top: 0;
    background: linear-gradient(135deg, #4e54c8, #8f94fb);
    animation-delay: 0s;
}

.circle:nth-child(2) {
    right: 0;
    top: 0;
    background: linear-gradient(135deg, #8f94fb, #4e54c8);
    animation-delay: 0.4s;
}

.circle:nth-child(3) {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea, #764ba2);
    animation-delay: 0.8s;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes circle-animation {
    0%, 100% {
        transform: scale(0.5);
        opacity: 0.7;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
}

.preloader-hidden {
    opacity: 0;
    visibility: hidden;
}
