/* Premium Preloader Styles with Smooth Transitions */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background:linear-gradient(135deg, #fafafa 0%, #195ca2 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 1;
    visibility: visible;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
}

.preloader-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    animation: preloaderContentReveal 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes preloaderContentReveal {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.preloader-logo {
    width: 250px;
    /* Increased from 120px */
    height: auto;
    object-fit: contain;
    animation: logoEntrance 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.4));
}

/* Industrial Rotating Arcs */
.preloader-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    /* Increased from 180px to accommodate larger logo */
    height: 320px;
    animation: ringsEnter 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes ringsEnter {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.ring {
    position: absolute;
    border: 2px solid transparent;
    border-radius: 50%;
    animation: rotate 2.5s linear infinite;
}

.ring-1 {
    width: 100%;
    height: 100%;
    border-top-color: rgba(255, 215, 0, 0.8);
    /* Brand Gold - enhanced */
    border-right-color: rgba(255, 215, 0, 0.4);
    animation-duration: 2s;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.ring-2 {
    width: 85%;
    height: 85%;
    top: 7.5%;
    left: 7.5%;
    border-bottom-color: rgba(255, 255, 255, 0.5);
    border-left-color: rgba(255, 255, 255, 0.2);
    animation-direction: reverse;
    animation-duration: 3s;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.1);
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.brand-text-loader {
    font-family: "Times New Roman", serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: #000000;
    letter-spacing: 2px;
    opacity: 0;
    animation: fadeInText 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards 0.6s;
}


@keyframes logoEntrance {
    0% {
        opacity: 0;
        transform: scale(0.7) translateY(-30px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes fadeInText {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeInText {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure no scroll during loading */
body.loading {
    overflow: hidden;
}