/* Modern Loader Styles */

.load-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #212121;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1s ease;
}

.loader-logo {
    width: clamp(200px, 30vw, 350px);
    height: auto;
    margin-bottom: 3rem;
    animation: fadeIn 1s ease;
}

/* Modern Spinner */
.lds-ring {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.lds-ring div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 64px;
    height: 64px;
    margin: 8px;
    border: 6px solid #fff;
    border-radius: 50%;
    animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: #fff transparent transparent transparent;
}

.lds-ring div:nth-child(1) {
    animation-delay: -0.45s;
}

.lds-ring div:nth-child(2) {
    animation-delay: -0.3s;
}

.lds-ring div:nth-child(3) {
    animation-delay: -0.15s;
}

@keyframes lds-ring {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Alternative modern loader option - Pulsing dots */
.lds-dots {
    display: none; /* Enable by replacing lds-ring in HTML */
    position: relative;
    width: 80px;
    height: 20px;
}

.lds-dots div {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    animation: lds-dots 1.2s cubic-bezier(0, 0.5, 0.5, 1) infinite;
}

.lds-dots div:nth-child(1) {
    left: 8px;
    animation-delay: -0.24s;
}

.lds-dots div:nth-child(2) {
    left: 32px;
    animation-delay: -0.12s;
}

.lds-dots div:nth-child(3) {
    left: 56px;
    animation-delay: 0;
}

@keyframes lds-dots {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .lds-ring {
        width: 60px;
        height: 60px;
    }

    .lds-ring div {
        width: 48px;
        height: 48px;
        margin: 6px;
        border-width: 4px;
    }
}
