/* ==================== OPTIMIZED BACKGROUND SYSTEM ==================== */
/* Lightweight, performant background with minimal DOM elements */

/* Main Background Wrapper */
.bg-image-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

/* Base Layer - Solid Color */
.bg-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-dark);
}

/* Gradient Overlay Layer */
.bg-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle 600px at 20% 30%, rgba(102, 126, 234, 0.12) 0%, transparent 100%),
        radial-gradient(circle 500px at 80% 70%, rgba(118, 75, 162, 0.1) 0%, transparent 100%),
        radial-gradient(circle 400px at 50% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 100%);
    animation: subtleShift 30s ease-in-out infinite alternate;
}

/* Very Subtle Animation */
@keyframes subtleShift {
    0% {
        opacity: 0.8;
        transform: scale(1);
    }
    100% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Optional: Subtle Grid Pattern (Low Opacity) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.02;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.5) 1px, transparent 1px);
    background-size: 100px 100px;
    pointer-events: none;
}

/* Vignette Effect */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        rgba(0, 0, 0, 0.2) 100%
    );
}

/* Performance: Disable animations on low-end devices */
@media (prefers-reduced-motion: reduce) {
    .bg-image-wrapper::after {
        animation: none;
    }
}

/* Optional: Use actual background image if you have one */
/* Uncomment and add your image path below */
/*
.bg-image-wrapper::before {
    background-image: url('path-to-your-background-image.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
}
*/
