/* ==========================================================================
   Digital Background Animation - AI-Powered Visual Effect
   ========================================================================== */

/* Canvas container for the digital background */
.digital-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.digital-background canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Update hero section to position the background */
.hero {
    position: relative;
    overflow: hidden;
}

.hero-container {
    position: relative;
    z-index: 1;
}

/* Ensure content stays above background */
.hero-content,
.hero-visual {
    position: relative;
    z-index: 2;
}

/* Optional: Add slight backdrop blur to make content more readable */
.hero-content::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: rgba(248, 250, 252, 0.75);
    backdrop-filter: blur(2px);
    border-radius: 20px;
    z-index: -1;
}

.hero-visual::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: rgba(248, 250, 252, 0.75);
    backdrop-filter: blur(2px);
    border-radius: 20px;
    z-index: -1;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .digital-background canvas {
        opacity: 0.4; /* Reduce intensity on mobile for better readability */
    }
    
    .hero-content::before,
    .hero-visual::before {
        background: rgba(248, 250, 252, 0.85);
    }
}
