/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.preloader-logo {
    width: 200px;
    height: auto;
    animation: logoFadeIn 1s ease;
}

@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loader Waves */
.loader-waves {
    position: relative;
    width: 80px;
    height: 80px;
}

.loader-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border: 3px solid var(--accent-red);
    border-radius: 50%;
    opacity: 0;
    animation: loaderWave 2s ease-out infinite;
}

.circle-1 {
    animation-delay: 0s;
}

.circle-2 {
    animation-delay: 0.6s;
}

.circle-3 {
    animation-delay: 1.2s;
}

@keyframes loaderWave {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .preloader-logo {
        width: 150px;
    }

    .loader-waves {
        width: 60px;
        height: 60px;
    }

    .loader-circle {
        width: 60px;
        height: 60px;
        border-width: 2px;
    }
}

@media (max-width: 480px) {
    .preloader-logo {
        width: 120px;
    }

    .preloader-content {
        gap: 30px;
    }

    .loader-waves {
        width: 50px;
        height: 50px;
    }

    .loader-circle {
        width: 50px;
        height: 50px;
    }
}