/* Custom Modern Preloader */

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #0d1b32;
    /* Deep brand blue */
    z-index: 99999;
    /* Ensure it's on top */
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-content {
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Rotating Ring */
.loader-ring {
    width: 80px;
    height: 80px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    border-right-color: var(--tertiary-color);
    /* Orange accent */
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Brand Text */
.loader-text {
    font-family: 'Red Hat Display', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeIntext 1s ease-out forwards;
    animation-delay: 0.2s;
}

.loader-text span {
    color: var(--primary-color);
}

@keyframes fadeIntext {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pulsing Logo Effect (Optional if using image) */
.loader-logo {
    width: 60px;
    margin-bottom: 20px;
    animation: pulse-logo 2s infinite;
}

@keyframes pulse-logo {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}