.complex-loader {
    position: relative;
    width: 100px;
    height: 100px;
    perspective: 800px;
}

.circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation-duration: 2s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.circle-1 {
    left: 0;
    top: 0;
    border-bottom: 8px solid #f1c40f;
    animation-name: rotate1;
}

.circle-2 {
    left: 0;
    top: 0;
    border-right: 8px solid #e74c3c;
    animation-name: rotate2;
    animation-delay: 1s;
}

.circle-3 {
    left: 0;
    top: 0;
    border-left: 8px solid #3498db;
    animation-name: rotate3;
    animation-delay: 2s;
}

@keyframes rotate1 {
    0% { transform: rotateX(360deg); }
    100% { transform: rotateX(0deg); }
}

@keyframes rotate2 {
    0% { transform: rotateY(360deg); }
    100% { transform: rotateY(0deg); }
}

@keyframes rotate3 {
    0% { transform: rotateZ(360deg); }
    100% { transform: rotateZ(0deg); }
}
