/* src/css/loader.css - Enhanced Hero Loader */
#hero-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    opacity: 1;
}

#loader-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        var(--color-background) 0%, 
        var(--color-background) 50%,
        rgba(var(--color-accent-rgb-values), 0.05) 100%);
    opacity: 1;
    transition: opacity 0.8s ease-out;
}

body.dark-mode #loader-background {
    background: linear-gradient(135deg, 
        #1a1a1a 0%, 
        #2d2d2d 50%,
        rgba(76, 175, 80, 0.1) 100%);
}

#loader-content {
    position: relative;
    z-index: 1;
    width: 80vw;
    height: 80vh;
    max-width: 600px;
    max-height: 600px;
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

/* Mobile optimization */
@media (max-width: 768px) {
    #loader-content {
        width: 90vw;
        height: 70vh;
        max-width: 400px;
        max-height: 400px;
    }
}

#loader-content canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    border-radius: 20px;
}

/* Loading text animation */
.loader-text {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-accent-primary);
    text-align: center;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.05); }
}