/* Critical CSS that should load immediately */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

body.loaded #preloader {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #ddd;
    border-bottom-color: #666;
    border-radius: 50%;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hide content initially */
.content-container {
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.loaded .content-container {
    opacity: 1;
}