/**
 * Harmonic Blob Background System
 * Soft, blurred gradient blobs with subtle grid overlay
 */

/* Background Container */
.global-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: #ffffff;
}

/* Grid Pattern Overlay */
.global-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.01) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.01) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
    z-index: 1;
}

/* Blob Container */
.background-blobs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Individual Blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    animation: float 20s ease-in-out infinite;
}

/* Blob 1 - Magenta Pink */
.blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.6) 0%, rgba(236, 72, 153, 0.2) 100%);
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

/* Blob 2 - Blue-Violet */
.blob-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.6) 0%, rgba(59, 130, 246, 0.2) 100%);
    top: 50%;
    right: 10%;
    animation-delay: -5s;
}

/* Blob 3 - Electric Purple */
.blob-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.6) 0%, rgba(139, 92, 246, 0.2) 100%);
    bottom: 15%;
    left: 15%;
    animation-delay: -10s;
}

/* Blob 4 - Light Pink (Secondary) */
.blob-4 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(252, 231, 243, 0.8) 0%, rgba(252, 231, 243, 0.3) 100%);
    top: 30%;
    left: 40%;
    animation-delay: -15s;
}

/* Blob 5 - Magenta Pink (Variant) */
.blob-5 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.5) 0%, rgba(139, 92, 246, 0.2) 100%);
    bottom: 25%;
    right: 20%;
    animation-delay: -7s;
}

/* Floating Animation */
@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -30px) scale(1.05);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    75% {
        transform: translate(20px, 30px) scale(1.02);
    }
}

/* Exclude from Hero Film Strip Block */
.wp-block-castellondigital-hero-film-strip .global-background,
.wp-block-castellondigital-hero-film-strip~.global-background {
    display: none !important;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .blob {
        filter: blur(80px);
        opacity: 0.12;
    }

    .blob-1,
    .blob-2,
    .blob-3,
    .blob-4,
    .blob-5 {
        width: 400px;
        height: 400px;
    }
}

@media (max-width: 768px) {
    .blob {
        filter: blur(60px);
        opacity: 0.1;
    }

    .blob-1,
    .blob-2,
    .blob-3,
    .blob-4,
    .blob-5 {
        width: 300px;
        height: 300px;
    }

    .global-background::before {
        background-size: 30px 30px;
        opacity: 0.2;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .blob {
        animation: none !important;
    }
}