/* Instant Site Loader - CSS-only, no JS blocking */
.site-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
    /* Auto-hide after page loads */
    animation: fadeOutLoader 0.5s ease 0.2s forwards;
}

@keyframes fadeOutLoader {
    from {
        opacity: 1;
        visibility: visible;
    }
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.site-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Simplify loader animation */
.loader-mobile {
    position: relative;
    width: 80px;
    height: 80px;
}

.phone-frame {
    width: 100%;
    height: 100%;
    border: 3px solid var(--accent-primary);
    border-radius: 12px;
    position: relative;
    animation: pulse 1.5s ease-in-out infinite;
}

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

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 4px;
    background: var(--bg-primary);
    border-radius: 0 0 4px 4px;
}

/* Remove complex animations */
.phone-screen, .screen-glow, .code-lines {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .site-loader {
        animation: none !important;
        opacity: 0;
        visibility: hidden;
    }
    .phone-frame {
        animation: none !important;
    }
}
