/* NearFix Shared Animated Background */
/* Include this in all pages for a consistent look */

@keyframes bgShift {
    0% { background-position: 0% 50%; }
    25% { background-position: 100% 50%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
    100% { background-position: 0% 50%; }
}

@keyframes float1 { 
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-40px, 30px) scale(1.05); }
    66% { transform: translate(25px, -40px) scale(0.95); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, 40px) scale(1.08); }
    66% { transform: translate(-35px, -25px) scale(0.92); }
}

/* Base animated background */
.nf-bg {
    min-height: 100vh;
    background: linear-gradient(135deg, #0B0F19, #111827, #0F172A, #1E1B4B, #0B0F19);
    background-size: 400% 400%;
    animation: bgShift 20s ease infinite;
    color: #E2E8F0;
    position: relative;
    overflow-x: hidden;
}

/* Floating orbs */
.nf-bg::before,
.nf-bg::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(80px);
}

.nf-bg::before {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12), transparent 70%);
    top: -100px;
    right: -100px;
    animation: float1 15s ease-in-out infinite;
}

.nf-bg::after {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.10), transparent 70%);
    bottom: -80px;
    left: -80px;
    animation: float2 18s ease-in-out infinite;
}

/* Third floating orb via extra element */
.nf-orb {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    animation: float3 22s ease-in-out infinite;
}

/* Ensure content is above the orbs */
.nf-bg > *:not(.nf-orb) {
    position: relative;
    z-index: 1;
}

/* Subtle grid overlay for depth */
.nf-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}
