/* Modern Minimalist Loader */
:root {
    --primary-color: #333333;
    --bg-color: #ffffff;
    --text-color: #333333;
}

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.loader-spinner {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    transform: translate3d(0, 0, 0);
    will-change: transform, opacity;
}

.spinner-circle {
    position: absolute;
    border-radius: 50%;
    border-style: solid;
    border-width: 3px;
    border-color: transparent;
    animation: rotate 4s cubic-bezier(0.65, 0, 0.35, 1) infinite;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    will-change: transform, border-color;
}

.spinner-circle:nth-child(1) {
    width: 60%;
    height: 60%;
    animation-duration: 3s;
    border-top-color: rgba(255, 107, 157, 0.8);
    border-right-color: rgba(255, 107, 157, 0.3);
    filter: drop-shadow(0 0 8px rgba(255, 107, 157, 0.2));
}

.spinner-circle:nth-child(2) {
    width: 80%;
    height: 80%;
    animation-duration: 4s;
    border-top-color: rgba(255, 138, 174, 0.6);
    border-right-color: rgba(255, 138, 174, 0.2);
    animation-direction: reverse;
    filter: drop-shadow(0 0 10px rgba(255, 138, 174, 0.15));
}

.spinner-circle:nth-child(3) {
    width: 100%;
    height: 100%;
    animation-duration: 5s;
    border-top-color: rgba(255, 169, 196, 0.4);
    border-right-color: rgba(255, 169, 196, 0.1);
    filter: drop-shadow(0 0 12px rgba(255, 169, 196, 0.1));
}

/* Loading Text Styles */
.loading-text {
    font-family: 'Arial', sans-serif;
    color: #333333;
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: lowercase;
    display: flex;
    gap: 3px;
    height: 2.5em;
    align-items: center;
    justify-content: center;
    width: 100%;
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

.text-char {
    display: inline-block;
    opacity: 1;
    transform: translate3d(0, 0, 0);
    animation: wave 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    animation-delay: calc(0.08s * var(--char-index));
    will-change: transform, color;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

@keyframes wave {
    0%, 100% { 
        transform: translate3d(0, 0, 0) scale(1);
        color: #ff8fa8; /* Lighter pink */
        text-shadow: 0 0 10px rgba(255, 143, 168, 0.3);
    }
    25% { 
        transform: translate3d(0, -10px, 0) scale(1.05);
        color: #ff6b9d; /* Main pink */
        text-shadow: 0 5px 15px rgba(255, 107, 157, 0.4);
    }
    50% { 
        transform: translate3d(0, -5px, 0) scale(1.1);
        color: #ff3366; /* Brighter pink */
        text-shadow: 0 8px 20px rgba(255, 51, 102, 0.5);
    }
    75% { 
        transform: translate3d(0, -10px, 0) scale(1.05);
        color: #ff6b9d; /* Main pink */
        text-shadow: 0 5px 15px rgba(255, 107, 157, 0.4);
    }
}

@keyframes rotate {
    0% { 
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(90deg);
    }
    50% {
        transform: rotate(180deg);
    }
    75% {
        transform: rotate(270deg);
    }
    100% { 
        transform: rotate(360deg);
    }
}
