/* Full-Screen Logo Preloader CSS */
#page-loader {
    position: fixed;
    z-index: 999999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--loader-bg, #000000);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Logo Container */
.logo-container {
    text-align: center;
    padding: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* LARGE Logo Image - Responsive */
.logo-image {
    width: var(--logo-size, min(600px, 80vw));
    height: var(--logo-size, min(600px, 80vw));
    max-width: 90vw;
    max-height: 90vh;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0 auto;
    animation: logo-pulse 2s ease-in-out infinite;
    filter: var(--logo-filter, none);
}

/* Logo Animation - Enhanced Pulse */
@keyframes logo-pulse {
    0% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.08);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.9;
    }
}

/* Alternative Animation - Bounce */
@keyframes logo-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Alternative Animation - Fade */
@keyframes logo-fade {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Alternative Animation - Rotate */
@keyframes logo-rotate {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.05);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* Loading Text - Larger & More Prominent */
.loading-text {
    margin-top: 40px;
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: var(--text-color, #ffffff);
    font-weight: 600;
    text-align: center;
    font-family: inherit;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

/* Loading Progress Bar - Larger */
.loading-progress {
    width: min(500px, 80vw);
    height: 10px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 5px;
    margin: 30px auto 0;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--progress-color, #007bff), var(--progress-color-2, #00bfff));
    transition: width 0.3s ease;
    border-radius: 5px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .logo-image {
        --logo-size: min(500px, 70vw);
    }
}

@media (max-width: 992px) {
    .logo-image {
        --logo-size: min(400px, 75vw);
    }
    
    .loading-text {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
    }
}

@media (max-width: 768px) {
    .logo-image {
        --logo-size: min(350px, 85vw);
        max-height: 60vh;
    }
    
    .loading-text {
        font-size: clamp(1.3rem, 6vw, 2rem);
        margin-top: 30px;
    }
    
    .loading-progress {
        width: min(400px, 85vw);
        height: 8px;
        margin: 25px auto 0;
    }
    
    .logo-container {
        padding: 10px;
    }
}

@media (max-width: 576px) {
    .logo-image {
        --logo-size: min(300px, 90vw);
        max-height: 50vh;
    }
    
    .loading-text {
        font-size: clamp(1.2rem, 7vw, 1.8rem);
        margin-top: 20px;
    }
    
    .loading-progress {
        width: min(300px, 90vw);
        height: 6px;
        margin: 20px auto 0;
    }
}

/* Landscape orientation optimization */
@media (max-height: 600px) and (orientation: landscape) {
    .logo-image {
        --logo-size: min(250px, 60vh);
        max-height: 50vh;
    }
    
    .loading-text {
        font-size: 1.5rem;
        margin-top: 15px;
    }
    
    .loading-progress {
        margin: 15px auto 0;
    }
    
    .logo-container {
        padding: 5px;
    }
}

/* Extra large screens */
@media (min-width: 1600px) {
    .logo-image {
        --logo-size: min(700px, 70vw);
    }
    
    .loading-text {
        font-size: 3.5rem;
    }
}