.loading-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(to bottom, #1f348d 0%, #3059c3 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    animation: fadeOut 1s ease-in-out 3s forwards;
}

/* ===== Inner Content ===== */
.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #fff;
    font-family: "Poppins", sans-serif;
    padding: 0 20px;
}

.main-image {
    width: 85%;
    max-width: 400px;
    height: auto;
    margin-bottom: 25px;
    animation: float 3s ease-in-out infinite;
}

.loading-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 40px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.logo {
    width: 130px;
    height: auto;
}

/* ===== Animations ===== */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .main-image {
        width: 90%;
        max-width: 320px;
    }

    .loading-text {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .logo {
        width: 110px;
    }
}

@media (max-width: 480px) {
    .main-image {
        width: 95%;
        max-width: 270px;
    }

    .loading-text {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }

    .logo {
        width: 95px;
    }
}