/* === GLOBAL ANIMATED BACKGROUND (Mage Marketer Style) === */
.global-animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-body); /* Fallback */
    pointer-events: none;
}

/* Base shape styles */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.6;
    animation: floatingMesh 20s infinite alternate ease-in-out;
    will-change: transform;
}

/* Colors matching the brand palette (Primary Blue & Secondary Orange) */
.bg-shape-1 {
    width: 600px;
    height: 600px;
    background: rgba(18, 59, 142, 0.4); /* Royal Blue */
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.bg-shape-2 {
    width: 500px;
    height: 500px;
    background: rgba(245, 130, 32, 0.3); /* Orange */
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
    animation-direction: alternate-reverse;
}

.bg-shape-3 {
    width: 400px;
    height: 400px;
    background: rgba(167, 139, 250, 0.3); /* Purple accent */
    top: 40%;
    left: 50%;
    animation-delay: -10s;
}

@keyframes floatingMesh {
    0% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(5%, 10%) scale(1.1);
    }
    66% {
        transform: translate(-10%, 5%) scale(0.9);
    }
    100% {
        transform: translate(0, -5%) scale(1.05);
    }
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .bg-shape {
        filter: blur(60px);
        opacity: 0.4; /* Slightly more transparent on small screens for better readability */
    }
    .bg-shape-1 {
        width: 300px;
        height: 300px;
    }
    .bg-shape-2 {
        width: 250px;
        height: 250px;
    }
    .bg-shape-3 {
        width: 200px;
        height: 200px;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .bg-shape {
        animation: none;
        opacity: 0.3;
    }
}
