/* Preloader Fullscreen Overlay */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.4s ease, visibility 0.4s;
}

/* Hide Preloader */
#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Elegant Gradient Circle Loader */
.loader-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #38b2ac, #06b6d4, #3b82f6);
    background-size: 200% 200%;
    animation: rotate 1s linear infinite, gradientShift 3s ease infinite;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Elegant Text */
.loader-text {
    margin-top: 15px;
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    letter-spacing: 0.5px;
    animation: fadeIn 1.2s ease-in-out infinite alternate;
}

/* Rotating Animation */
@keyframes rotate {
    to { transform: rotate(360deg); }
}

/* Smooth Gradient Shift */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Soft Fade In Text Animation */
@keyframes fadeIn {
    from { opacity: 0.4; }
    to { opacity: 1; }
}
