.hero-bg {
    background: linear-gradient(to right, #0F4C81, #1E88E5);
    position: relative;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100"><path fill="none" stroke="%23ffffff" stroke-width="1" d="M50 0 L100 25 L100 75 L50 100 L0 75 L0 25 Z M0 25 L50 50 M100 25 L50 50 M0 75 L50 50 M100 75 L50 50 M50 0 L50 50 L50 100" /></svg>');
    background-size: 30px 30px;
    opacity: 0.05;
    z-index: 1;
    /* Ensure pattern is behind content but arguably above background color */
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
    /* Particles above pattern */
}

/* Ensure content is above particles */
.hero-bg>div.relative.z-10 {
    z-index: 10;
}

/* Entrance Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-fade-in-up {
    animation-name: fadeInUp;
    animation-duration: 0.8s;
    animation-fill-mode: both;
}

.animate-fade-in-down {
    animation-name: fadeInDown;
    animation-duration: 0.8s;
    animation-fill-mode: both;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

/* Floating Animations */
@keyframes float-y {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
    }

    50% {
        box-shadow: 0 0 25px rgba(0, 212, 255, 0.6);
    }
}

.animate-float-slow {
    animation: float-y 6s ease-in-out infinite;
}

.animate-float-medium {
    animation: float-y 5s ease-in-out infinite;
}

.animate-float-fast {
    animation: float-y 4s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 3s infinite;
}