/* 
 * Floating Elements Animation Styles
 * Handles the gradient background and floating elements animation
 */

/* Gradient Background */
.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #030712 0%, #111827 100%);
    overflow: hidden;
}

/* Add a subtle dark overlay */
.gradient-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* Floating Elements */
.floating-element {
    position: absolute;
    width: var(--size, 100px);
    height: var(--size, 100px);
    left: var(--x, 50%);
    top: var(--y, 50%);
    opacity: var(--opacity, 0.3);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30, 41, 59, 0.3) 0%, rgba(15, 23, 42, 0) 70%);
    filter: blur(20px);
    animation: float var(--duration, 20s) infinite ease-in-out;
    animation-delay: var(--delay, 0s);
    will-change: transform;
    pointer-events: none;
}

/* Floating animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Optimizations for reduced motion */
@media (prefers-reduced-motion: reduce) {
    .floating-element {
        animation: none;
        opacity: 0.1;
    }
}

/* Focus styles for better accessibility */
.hero:focus {
    outline: none;
}

.hero:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 4px;
    border-radius: 4px;
}
