body,
html {
    /* Only apply preloader background color initially, scroll is locked by .preloading class */
    background-color: var(--primary-color, #4DA1A9);
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color, #4DA1A9);
    z-index: 9999;
}

.preloader-logo {
    width: 50px;
    height: 90px;
    transition: transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.preloader-logo.zoom-out {
    transform: scale(1.2);
}

#preloader-text,
#preloader-subtitle {
    background: linear-gradient(to top, 
        rgba(255, 255, 255, 1) var(--loading-progress, 0%), 
        rgba(255, 255, 255, 0.15) var(--loading-progress, 0%)
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.4);
}

.progress-container {
    width: 220px;
    text-align: center;
}

.progress-text {
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 1.6rem;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.progress-bar-bg {
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background-color: #ffffff;
    border-radius: 2px;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Lock page scroll during preloading */
.preloading {
    overflow: hidden !important;
    height: 100vh !important;
}