/**
 * Cinematic Preloader Styles
 * Premium Luxury Aesthetic
 */

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0a0a0a;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.preloader-logo {
    max-width: 300px;
    max-height: 300px;
    opacity: 0;
    filter: blur(20px);
    margin-bottom: 40px;
}

.preloader-counter {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.preloader-counter #load-count {
    font-size: 2rem;
    font-weight: 300;
    color: #ffffff;
    letter-spacing: 0.05em;
    opacity: 0;
}

.preloader-progress {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1px;
    overflow: hidden;
    opacity: 0;
}

.preloader-progress-bar {
    width: 0%;
    height: 100%;
    background: #ffffff;
    border-radius: 1px;
}

/* Site content initial state for reveal animation */
body.preloader-active .site-header,
body.preloader-active section,
body.preloader-active main,
body.preloader-active footer {
    opacity: 0;
    transform: translateY(50px);
}

@media (max-width: 768px) {
    .preloader {
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        max-height: 100vh;
    }

    .preloader-logo {
        max-width: 150px;
        max-height: 150px;
        margin-bottom: 30px;
    }

    .preloader-counter #load-count {
        font-size: 2rem;
    }

    .preloader-progress {
        width: 150px;
    }
}
