/* ==========================================
   DECORATIVE BACKGROUND ELEMENTS
   ========================================== */

/* Floating decorative boxes */
.section-decorative-bg {
    position: relative;
    overflow: hidden;
}

.section-decorative-bg::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(13, 148, 136, 0.05) 100%);
    border-radius: 50%;
    top: -100px;
    left: -100px;
    z-index: 0;
    animation: float 20s ease-in-out infinite;
}

.section-decorative-bg::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: linear-gradient(225deg, rgba(13, 148, 136, 0.05) 0%, rgba(37, 99, 235, 0.05) 100%);
    border-radius: 50%;
    bottom: -50px;
    right: -50px;
    z-index: 0;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(50px, -50px) rotate(5deg);
    }
    50% {
        transform: translate(-30px, 30px) rotate(-5deg);
    }
    75% {
        transform: translate(30px, 50px) rotate(3deg);
    }
}

/* Small geometric shapes */
.decorative-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.shape {
    position: absolute;
    opacity: 0.1;
}

.shape-square {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 8px;
    animation: rotate 20s linear infinite;
}

.shape-circle {
    width: 80px;
    height: 80px;
    background: var(--secondary-color);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid var(--accent-teal);
    animation: float 15s ease-in-out infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.15;
    }
}

/* Grid pattern overlay */
.grid-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: 
        linear-gradient(rgba(37, 99, 235, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

/* Dot pattern */
.dot-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: radial-gradient(circle, rgba(37, 99, 235, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: 0;
}

/* Ensure content is above decorative elements */
.section-decorative-bg .container {
    position: relative;
    z-index: 10;
}
