/* Background Animations CSS - Reusable across pages */

/* Option 1: Floating Geometric Shapes */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    opacity: 0.1;
    animation: float 15s infinite linear;
}

.shape:nth-child(1) {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #3953A4, #5a7bc8);
    border-radius: 50%;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 20s;
}

.shape:nth-child(2) {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #3953A4, #4a6bb3);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: 70%;
    left: 80%;
    animation-delay: -5s;
    animation-duration: 25s;
}

.shape:nth-child(3) {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, #5a7bc8, #3953A4);
    border-radius: 20px;
    top: 20%;
    left: 70%;
    animation-delay: -10s;
    animation-duration: 30s;
    transform: rotate(45deg);
}

.shape:nth-child(4) {
    width: 70px;
    height: 70px;
    background: linear-gradient(45deg, #4a6bb3, #5a7bc8);
    border-radius: 50%;
    top: 60%;
    left: 20%;
    animation-delay: -15s;
    animation-duration: 18s;
}

.shape:nth-child(5) {
    width: 90px;
    height: 90px;
    background: linear-gradient(45deg, #3953A4, #6b8dd6);
    border-radius: 50% 20% 50% 20%;
    top: 40%;
    left: 50%;
    animation-delay: -8s;
    animation-duration: 22s;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.1;
    }
    33% {
        opacity: 0.3;
    }
    66% {
        opacity: 0.2;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0.1;
    }
}

/* Option 2: Gradient Wave Animation */
.gradient-waves {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(-45deg, #ffffff, #f8f9ff, #f0f4ff, #ffffff);
    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%;
    }
}

/* Option 3: Particle Dots */
.particle-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: rgba(57, 83, 164, 0.2);
    border-radius: 50%;
    animation: particleFloat 12s infinite linear;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 15s;
}

.particle:nth-child(2) {
    left: 20%;
    animation-delay: -2s;
    animation-duration: 18s;
}

.particle:nth-child(3) {
    left: 30%;
    animation-delay: -4s;
    animation-duration: 12s;
}

.particle:nth-child(4) {
    left: 40%;
    animation-delay: -6s;
    animation-duration: 20s;
}

.particle:nth-child(5) {
    left: 50%;
    animation-delay: -8s;
    animation-duration: 16s;
}

.particle:nth-child(6) {
    left: 60%;
    animation-delay: -10s;
    animation-duration: 14s;
}

.particle:nth-child(7) {
    left: 70%;
    animation-delay: -12s;
    animation-duration: 22s;
}

.particle:nth-child(8) {
    left: 80%;
    animation-delay: -14s;
    animation-duration: 11s;
}

.particle:nth-child(9) {
    left: 90%;
    animation-delay: -16s;
    animation-duration: 19s;
}

@keyframes particleFloat {
    0% {
        top: 110%;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        top: -10%;
        opacity: 0;
    }
}

/* Option 4: Subtle Pulse Background */
.pulse-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 30% 20%, rgba(57, 83, 164, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(57, 83, 164, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 20% 70%, rgba(90, 123, 200, 0.06) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .shape {
        opacity: 0.08;
    }
    
    .particle {
        opacity: 0.15;
    }
    
    .pulse-background {
        opacity: 0.6;
    }
}