/* Preloader Overrides */
.preloader {
    background: #000; /* Start black */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: none; /* JS handles transition */
}

.preloader-content {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 2;
    transition: opacity 0.5s ease;
}

.preloader__pct {
    color: #fff; /* White text */
    display: none; /* Hide counter */
}

.preloader-logo {
    width: 14vw; /* Same as mask size ideally, or slightly smaller */
    max-width: 120px;
    height: auto;
}


/* Zoom-out White Circle Animation */
.preloader.zoom-out {
    /* Use a pseudo-element for the expanding white circle */
    overflow: hidden;
}

.preloader.zoom-out::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14vw; 
    height: 14vw;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: zoomOutWhite 1.2s cubic-bezier(0.7, 0, 0.3, 1) forwards;
    z-index: 1;
}

@keyframes zoomOutWhite {
    0% { transform: translate(-50%, -50%) scale(1); }
    100% { transform: translate(-50%, -50%) scale(30); /* Scale huge to cover screen */ }
}

.preloader.fade-out-content .preloader-content {
    opacity: 0;
}

/* Ensure Preloader sits on top of everything until done */
.preloader {
    z-index: 9999;
}

