/* Page Loader - Simple 2 second display */

/* Loader Container */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Logo Animation */
.loader-logo-wrapper {
    text-align: center;
    animation: slideUp 0.8s ease-out;
}

.loader-logo {
    width: 280px;
    max-width: 70vw;
    height: auto;
    animation: logoPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.15));
}

/* Spinner Dots */
.loader-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
}

.spinner-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    animation: dotBounce 1.4s ease-in-out infinite;
    box-shadow: 0 4px 8px rgba(255, 0, 0, 0.3);
}

.spinner-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.spinner-dot:nth-child(2) {
    animation-delay: -0.16s;
}

/* Loading Text */
.loader-text {
    margin-top: 25px;
    font-size: 18px;
    color: #666;
    font-weight: 500;
    letter-spacing: 1px;
    animation: textFade 2s ease-in-out infinite;
}

/* Prevent body scroll during loading */
body.loading {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Keyframe Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

@keyframes dotBounce {
    0%, 80%, 100% {
        transform: scale(0) translateY(0);
        opacity: 0.4;
    }
    40% {
        transform: scale(1.2) translateY(-10px);
        opacity: 1;
    }
}

@keyframes textFade {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 1;
    }
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    .loader-logo {
        width: 220px;
    }
    
    .loader-text {
        font-size: 16px;
    }
    
    .spinner-dot {
        width: 12px;
        height: 12px;
        gap: 10px;
    }
    
    .loader-spinner {
        margin-top: 30px;
    }
}

@media screen and (max-width: 480px) {
    .loader-logo {
        width: 180px;
    }
    
    .loader-text {
        font-size: 14px;
    }
    
    .spinner-dot {
        width: 10px;
        height: 10px;
    }
    
    .loader-spinner {
        gap: 8px;
        margin-top: 25px;
    }
}
