/* ============================================
   ANIMATED BACKGROUND EFFECTS
   Dynamic backgrounds for all sections
   ============================================ */

/* Animated Gradient Background */
.animated-bg-gradient {
    background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #4facfe);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating Bubbles Background */
.bubbles-bg {
    position: relative;
    overflow: hidden;
}

.bubbles-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 20%, rgba(240, 147, 251, 0.1) 0%, transparent 50%);
    animation: bubbleFloat 20s ease-in-out infinite;
}

@keyframes bubbleFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* Mesh Gradient Background */
.mesh-gradient-bg {
    background: 
        radial-gradient(at 40% 20%, rgba(102, 126, 234, 0.3) 0px, transparent 50%),
        radial-gradient(at 80% 0%, rgba(118, 75, 162, 0.3) 0px, transparent 50%),
        radial-gradient(at 0% 50%, rgba(240, 147, 251, 0.3) 0px, transparent 50%),
        radial-gradient(at 80% 50%, rgba(79, 172, 254, 0.3) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(102, 126, 234, 0.3) 0px, transparent 50%),
        radial-gradient(at 80% 100%, rgba(118, 75, 162, 0.3) 0px, transparent 50%);
    animation: meshMove 20s ease infinite;
}

@keyframes meshMove {
    0%, 100% { background-position: 0% 0%, 100% 0%, 0% 50%, 100% 50%, 0% 100%, 100% 100%; }
    50% { background-position: 100% 0%, 0% 0%, 100% 50%, 0% 50%, 100% 100%, 0% 100%; }
}

/* Animated Dots Pattern */
.dots-pattern-bg {
    position: relative;
    background-color: #f8f9fa;
}

.dots-pattern-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle, rgba(102, 126, 234, 0.15) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: dotsMove 20s linear infinite;
}

@keyframes dotsMove {
    0% { background-position: 0 0; }
    100% { background-position: 30px 30px; }
}

/* Wave Animation Background */
.wave-bg {
    position: relative;
    overflow: hidden;
}

.wave-bg::before,
.wave-bg::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    animation: waveRotate 30s linear infinite;
}

.wave-bg::after {
    background: radial-gradient(circle, rgba(118, 75, 162, 0.1) 0%, transparent 70%);
    animation-duration: 40s;
    animation-direction: reverse;
}

@keyframes waveRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Particle Network Background */
.particle-network-bg {
    position: relative;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.particle-network-bg canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Geometric Shapes Background */
.geometric-bg {
    position: relative;
    overflow: hidden;
}

.geometric-bg::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: 10%;
    left: 10%;
    animation: morphShape 15s ease-in-out infinite;
}

.geometric-bg::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.1), rgba(79, 172, 254, 0.1));
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    bottom: 10%;
    right: 10%;
    animation: morphShape 20s ease-in-out infinite reverse;
}

@keyframes morphShape {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: rotate(0deg) scale(1);
    }
    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
        transform: rotate(90deg) scale(1.1);
    }
    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
        transform: rotate(180deg) scale(0.9);
    }
    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
        transform: rotate(270deg) scale(1.05);
    }
}

/* Starfield Background */
.starfield-bg {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    overflow: hidden;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

/* Aurora Background */
.aurora-bg {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    overflow: hidden;
}

.aurora-bg::before,
.aurora-bg::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.aurora-bg::before {
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(102, 126, 234, 0.3) 25%, 
        rgba(118, 75, 162, 0.3) 50%, 
        rgba(240, 147, 251, 0.3) 75%, 
        transparent 100%);
    animation: auroraMove 15s ease-in-out infinite;
}

.aurora-bg::after {
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(79, 172, 254, 0.2) 25%, 
        rgba(102, 126, 234, 0.2) 50%, 
        rgba(118, 75, 162, 0.2) 75%, 
        transparent 100%);
    animation: auroraMove 20s ease-in-out infinite reverse;
}

@keyframes auroraMove {
    0%, 100% { transform: translateX(-100%) skewX(-10deg); }
    50% { transform: translateX(100%) skewX(10deg); }
}

/* Liquid Background */
.liquid-bg {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.liquid-bg::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: liquidMove 25s ease-in-out infinite;
}

@keyframes liquidMove {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(10%, -10%) rotate(120deg); }
    66% { transform: translate(-10%, 10%) rotate(240deg); }
}

/* Grid Background with Animation */
.grid-bg {
    position: relative;
    background-color: #f8f9fa;
}

.grid-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(102, 126, 234, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(102, 126, 234, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

/* Hexagon Pattern Background */
.hexagon-bg {
    position: relative;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.hexagon-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(60deg, rgba(102, 126, 234, 0.05) 0px, rgba(102, 126, 234, 0.05) 1px, transparent 1px, transparent 50px),
        repeating-linear-gradient(-60deg, rgba(118, 75, 162, 0.05) 0px, rgba(118, 75, 162, 0.05) 1px, transparent 1px, transparent 50px);
    animation: hexagonMove 30s linear infinite;
}

@keyframes hexagonMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(50px); }
}

/* Apply to sections */
.site-section.bg-animated {
    position: relative;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .geometric-bg::before,
    .geometric-bg::after {
        width: 150px;
        height: 150px;
    }
}

/* Performance optimization */
@media (prefers-reduced-motion: reduce) {
    .animated-bg-gradient,
    .bubbles-bg::before,
    .mesh-gradient-bg,
    .dots-pattern-bg::before,
    .wave-bg::before,
    .wave-bg::after,
    .geometric-bg::before,
    .geometric-bg::after,
    .aurora-bg::before,
    .aurora-bg::after,
    .liquid-bg::before,
    .grid-bg::before,
    .hexagon-bg::before {
        animation: none !important;
    }
}

/* Made with Bob */
