/* =====================================================
   BLOB BACKGROUND - Animated Gradient Blobs
   ===================================================== */

#blob-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    transition: opacity 0.3s ease;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: blobFloat 20s ease-in-out infinite;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #6366f1, transparent 70%);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.blob-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #8b5cf6, transparent 70%);
    top: 50%;
    right: 10%;
    animation-delay: -5s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #ec4899, transparent 70%);
    bottom: 10%;
    left: 30%;
    animation-delay: -10s;
}

.blob-4 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, #3b82f6, transparent 70%);
    top: 30%;
    left: 60%;
    animation-delay: -15s;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.9); }
    75% { transform: translate(20px, 10px) scale(1.05); }
}

/* Grain overlay */
#blob-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    background-repeat: repeat;
    pointer-events: none;
    z-index: 1;
}

/* Ensure content is above blobs */
#header, main, .footer, .mobile-bottom-nav, .mobile-submenu-panel {
    position: relative;
    z-index: 2;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .blob {
        animation: none;
    }
}
