@import url("https://fonts.googleapis.com/css?family=Poppins:200,300,400,500,600,700,800,900&display=swap");
@import url("https://use.fontawesome.com/releases/v6.5.1/css/all.css");

body {
    margin: 0;
    font-family: "Poppins", sans-serif;
    scroll-behavior: smooth;
}

.loader-main {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000; /* Black background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Ensure loader is on top */
    transition: opacity 0.5s ease; /* Smooth fade-out when hiding */
}

.loader-main.hidden {
    opacity: 0;
}

.loader-main span {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 58px;
    color: #fff; /* White text */
    opacity: 0;
    animation: fadeIn 1s ease forwards; /* One-time fade-in, 1s duration */
}

.loader-main.out span {
    animation: fadeOut 1s ease forwards; /* One-time fade-out, 1s duration */
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .loader-main span{
        font-size: 25px !important;
    }
}