* {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
}
body {
    overflow: hidden;
}
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #181818;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100; /* Ensure it stays above everything */
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.loader {
    text-align: center;
    display: flex;
    gap: 5px;
}
.loader span {
    font-size: 4.5rem;
    font-weight: 700;
    color: rgb(255, 255, 255);
    display: inline-block;
    animation: animate 1.5s ease-in-out infinite;
    text-shadow: 0px 5px 10px #000000;
}
.loader span:nth-child(1) { animation-delay: 0s; }
.loader span:nth-child(2) { animation-delay: 0.1s; }
.loader span:nth-child(3) { animation-delay: 0.2s; }
.loader span:nth-child(4) { animation-delay: 0.3s; }
.loader span:nth-child(5) { animation-delay: 0.4s; }
.loader span:nth-child(6) { animation-delay: 0.5s; }
.loader span:nth-child(7) { animation-delay: 0.6s; }
.loader span:nth-child(8) { animation-delay: 0.7s; }
.loader span:nth-child(9) { animation-delay: 0.8s; }

@keyframes animate {
    0% {
        color: #dfdfdf;
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(-25px);
        text-shadow: 0 10px 10px rgba(0, 0, 0, 0.555);
        opacity: 1;
    }
    100% {
        color: #c9ce01;
        transform: translateY(0);
        opacity: 1;
    }
}
/* Responsive Layout */
@media (max-width: 768px) {
    .loader {
        gap: 3px; /* Reduce gap between letters */
    }
    .loader span {
        font-size: 5rem; /* Smaller font size for very small screens */
    }
}

@media (max-width: 480px) {
    .preloader {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .loader span {
        font-size: 2rem; /* Smaller font size for very small screens */
    }
}