/* Animated Background Styles */
.hero-bg-viz {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

/* Wave Layers - Ocean Effect */
.animated-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.animated-gradient::before,
.animated-gradient::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 100%;
    top: 0;
    left: -50%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(59, 130, 246, 0.4) 25%,
            rgba(139, 92, 246, 0.4) 50%,
            rgba(59, 130, 246, 0.4) 75%,
            transparent 100%);
    animation: wave 15s ease-in-out infinite;
}

.animated-gradient::after {
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(139, 92, 246, 0.3) 25%,
            rgba(59, 130, 246, 0.3) 50%,
            rgba(139, 92, 246, 0.3) 75%,
            transparent 100%);
    animation: wave 20s ease-in-out infinite reverse;
    animation-delay: -5s;
}

@keyframes wave {

    0%,
    100% {
        transform: translateX(0) translateY(0) skewY(0deg);
    }

    25% {
        transform: translateX(-25%) translateY(-5%) skewY(2deg);
    }

    50% {
        transform: translateX(-50%) translateY(0) skewY(-2deg);
    }

    75% {
        transform: translateX(-25%) translateY(5%) skewY(2deg);
    }
}

/* Floating Shapes - Bubbles in the ocean */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%,
            rgba(59, 130, 246, 0.5),
            rgba(139, 92, 246, 0.3));
    box-shadow:
        0 0 20px rgba(59, 130, 246, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 250px;
    height: 250px;
    top: 15%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 22s;
}

.shape-2 {
    width: 180px;
    height: 180px;
    top: 55%;
    left: 75%;
    animation-delay: -4s;
    animation-duration: 18s;
}

.shape-3 {
    width: 140px;
    height: 140px;
    top: 25%;
    left: 85%;
    animation-delay: -8s;
    animation-duration: 20s;
}

.shape-4 {
    width: 220px;
    height: 220px;
    top: 65%;
    left: 15%;
    animation-delay: -12s;
    animation-duration: 25s;
}

.shape-5 {
    width: 160px;
    height: 160px;
    top: 10%;
    left: 50%;
    animation-delay: -6s;
    animation-duration: 21s;
}

.shape-6 {
    width: 200px;
    height: 200px;
    top: 45%;
    left: 40%;
    animation-delay: -10s;
    animation-duration: 24s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 0.4;
    }

    25% {
        transform: translate(40px, -40px) scale(1.15) rotate(90deg);
        opacity: 0.6;
    }

    50% {
        transform: translate(-30px, 30px) scale(0.85) rotate(180deg);
        opacity: 0.5;
    }

    75% {
        transform: translate(30px, 40px) scale(1.1) rotate(270deg);
        opacity: 0.7;
    }
}

/* Ripple Effect Overlay */
.hero-bg-viz::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
    animation: ripple 10s ease-in-out infinite;
}

@keyframes ripple {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Dark mode adjustments - More intense */
[data-theme="dark"] .animated-gradient::before {
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(59, 130, 246, 0.5) 25%,
            rgba(139, 92, 246, 0.5) 50%,
            rgba(59, 130, 246, 0.5) 75%,
            transparent 100%);
}

[data-theme="dark"] .animated-gradient::after {
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(139, 92, 246, 0.4) 25%,
            rgba(59, 130, 246, 0.4) 50%,
            rgba(139, 92, 246, 0.4) 75%,
            transparent 100%);
}

[data-theme="dark"] .shape {
    background: radial-gradient(circle at 30% 30%,
            rgba(59, 130, 246, 0.6),
            rgba(139, 92, 246, 0.4));
    box-shadow:
        0 0 30px rgba(59, 130, 246, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .hero-bg-viz::before {
    background:
        radial-gradient(ellipse at 20% 30%, rgba(59, 130, 246, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(139, 92, 246, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 60%);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .shape {
        width: 80px !important;
        height: 80px !important;
    }

    @keyframes float {

        0%,
        100% {
            transform: translate(0, 0) scale(1);
            opacity: 0.4;
        }

        50% {
            transform: translate(20px, 20px) scale(1.1);
            opacity: 0.6;
        }
    }
}