/* Preloader Wrapper */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    /* White background */
    z-index: 9999;
    /* High z-index to stay on top */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

/* Preloader Content Container */
.loader-content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Logo Wrapper with Circular Loading Border */
.logo-circle-wrapper {
    position: relative;
    width: 140px;
    /* Logo width + padding */
    height: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    border-radius: 50%;
}

.logo-circle-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: #f57a00;
    /* Orange color */
    border-right-color: #f57a00;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

/* Logo Styling */
.preloader-logo {
    width: 110px;
    /* Slightly smaller than wrapper */
    height: 110px;
    object-fit: contain;
    border-radius: 50%;
    /* Ensure logo is circular if needed */
    animation: pulse 2s infinite ease-in-out;
}

/* Spinner Animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Welcome Text Styling */
.welcome-text {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 5px;
    opacity: 0;
    animation: fadeInUp 0.7s ease-out forwards;
    animation-delay: 0.3s;
}

.welcome-subtext {
    font-family: 'Lato', sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    color: #555;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInUp 0.7s ease-out forwards;
    animation-delay: 0.7s;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo Pulse Animation */
@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.8;
    }
}

/* Class to hide preloader */
#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}