/* Page Loader */
.page-loader {
    position: fixed;
    inset: 0;
    background: #0a0a0a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 1;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.loader-logo {
    width: 120px;
    height: 120px;
    position: relative;
    animation: logoFloat 2s ease-in-out infinite;
}

.loader-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(220, 20, 60, 0.6));
    animation: logoGlow 2s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.05);
    }
}

@keyframes logoGlow {
    0%, 100% {
        filter: drop-shadow(0 0 30px rgba(220, 20, 60, 0.6));
    }
    50% {
        filter: drop-shadow(0 0 50px rgba(220, 20, 60, 0.9));
    }
}

.loader-text {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #93061d 0%, #93061d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    animation: textFadeIn 1s ease forwards 0.5s;
    position: relative;
}

.loader-text::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #93061d, transparent);
    animation: underlineExpand 1.5s ease forwards 1s;
}

@keyframes textFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
        letter-spacing: 8px;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        letter-spacing: 4px;
    }
}

@keyframes underlineExpand {
    from {
        width: 0;
        left: 50%;
    }
    to {
        width: 100%;
        left: 0;
    }
}

.loader-dots {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.loader-dot {
    width: 10px;
    height: 10px;
    background: #93061d;
    border-radius: 50%;
    animation: dotPulse 1.4s ease-in-out infinite;
}

.loader-dot:nth-child(1) {
    animation-delay: 0s;
}

.loader-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loader-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotPulse {
    0%, 60%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    30% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Prevent scrolling while loader is active */
body.loading {
    overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    .loader-logo {
        width: 100px;
        height: 100px;
    }
    
    .loader-text {
        font-size: 1.5rem;
        letter-spacing: 3px;
    }
}
