/* Preloader Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #5C191B;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease-out; /* Shorter fade-out duration for quicker transition */
}

.gold-circle {
    width: 70px;  /* Slightly smaller for faster loading feel */
    height: 70px;
    border: 4px solid #5C191B;
    border-top: 4px solid #FFD700;
    border-radius: 50%;
    position: relative;
    animation: spin 0.12s linear infinite; /* Faster spin duration */
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3); /* Slightly softer shadow for a more subtle effect */
}

.gold-circle::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: #FFD700;
    filter: drop-shadow(0 0 8px #FFD700); /* Softer glow */
    animation: spin 1.0s linear infinite; /* Slightly faster second spin */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.pulse-ring {
    position: absolute;
    width: 80px;  /* Slightly smaller ring */
    height: 80px;
    border: 2px solid #FFD700;
    border-radius: 50%;
    animation: pulse 0.6s ease-out infinite; /* Faster pulse duration */
    opacity: 0;
}

@keyframes pulse {
    0% {
        transform: scale(0.4);
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

.main-content {
    opacity: 0;
    transition: opacity 0.3s ease-in; /* Faster fade-in for content */
    z-index: 1; /* Ensure content appears above the preloader */
}

body.loaded .main-content {
    opacity: 1;
    transition: opacity 0.3s ease-in; /* Smooth fade-in of main content */
}
