.handle-preloader {
    align-items: center;
    -webkit-align-items: center;
    display: flex;
    display: -ms-flexbox;
    height: 100%;
    justify-content: center;
    -webkit-justify-content: center;
    position: fixed;
    background: rgb(54,51,130);
    background: linear-gradient(90deg, rgba(54,51,130,1) 0%, rgba(238,89,43,1) 100%);    
    left: 0;
    top: 0;
    width: 100%;
    z-index: 9999999;
}





/* Background overlay for loader */
.loader-wrap {
    position: fixed;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, rgba(29, 161, 242, 0.8), rgba(91, 33, 182, 0.8));
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999999;
}

.preloader {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Spinner design */
.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid transparent;
    border-top: 6px solid #fff;
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Text animation and styling */
.txt-loading {
    display: flex;
    gap: 5px;
}

.letters-loading {
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    opacity: 0;
    animation: fadeInOut 1.5s ease-in-out infinite, pulse 1.5s infinite;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.7), 0 0 12px rgba(255, 255, 255, 0.5);
}

/* Staggered animation delays for each letter */
.letters-loading:nth-child(1) { animation-delay: 0s; }
.letters-loading:nth-child(2) { animation-delay: 0.1s; }
.letters-loading:nth-child(3) { animation-delay: 0.2s; }
.letters-loading:nth-child(4) { animation-delay: 0.3s; }
.letters-loading:nth-child(5) { animation-delay: 0.4s; }
.letters-loading.space { width: 15px; } /* Space between words */
.letters-loading:nth-child(7) { animation-delay: 0.5s; }
.letters-loading:nth-child(8) { animation-delay: 0.6s; }
.letters-loading:nth-child(9) { animation-delay: 0.7s; }
.letters-loading:nth-child(10) { animation-delay: 0.8s; }
.letters-loading:nth-child(11) { animation-delay: 0.9s; }
.letters-loading:nth-child(12) { animation-delay: 1s; }
.letters-loading:nth-child(13) { animation-delay: 1.1s; }
.letters-loading:nth-child(14) { animation-delay: 1.2s; }
.letters-loading:nth-child(15) { animation-delay: 1.3s; }
.letters-loading:nth-child(16) { animation-delay: 1.4s; }
.letters-loading:nth-child(17) { animation-delay: 1.5s; }

@keyframes fadeInOut {
    0%, 100% { opacity: 0; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

@keyframes pulse {
    0% { text-shadow: 0 0 8px rgba(255, 255, 255, 0.5), 0 0 12px rgba(255, 255, 255, 0.3); }
    50% { text-shadow: 0 0 20px rgba(255, 255, 255, 0.7), 0 0 24px rgba(255, 255, 255, 0.5); }
    100% { text-shadow: 0 0 8px rgba(255, 255, 255, 0.5), 0 0 12px rgba(255, 255, 255, 0.3); }
}






@media screen and (max-width: 768px) {
    .txt-loading {
        display: flex;
        flex-direction: column; /* Stack items vertically */
        align-items: center; /* Center align */
    }

    .line-1, .line-2 {
        display: flex; /* Display letters in a row */
        justify-content: center; /* Center align the text */
    }
}

/* Hide both loaders by default */
.txt-loading {
    display: none;
}

/* Desktop View Loader */
.desktop-view {
    display: block; /* Show the desktop loader by default */
}

/* Mobile View Loader */
.mobile-view {
    display: none; /* Hide the mobile loader by default */
}

/* Media query for mobile view */
@media screen and (max-width: 768px) {
    .desktop-view {
        display: none; /* Hide the desktop loader on mobile */
    }
    
    .mobile-view {
        display: block; /* Show the mobile loader on mobile */
    }
}


.handle-preloader .animation-preloader .txt-loading .letters-loading {
    font-family: 'Monda', sans-serif;
    font-weight: 500;
    letter-spacing: 15px;
    display: inline-block;
    position: relative;
    font-size: 45px;
    line-height: 70px;
    text-transform: uppercase;
}

/* Media query for mobile view */
@media screen and (max-width: 768px) {
    .handle-preloader .animation-preloader .txt-loading .letters-loading {
        font-family: 'Monda', sans-serif; /* You can change this if needed */
        font-weight: 400; /* Optionally adjust the weight */
        letter-spacing: 15px; /* Reduced letter spacing */
        font-size: 30px; /* Adjust font size for mobile */
        line-height: 40px; /* Adjust line height for mobile */
    }
}

.button-radius{
    border-radius: 5px;

}
