.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    opacity: 0.15;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: float 25s infinite ease-in-out;
}

.shape-1 {
    width: 500px;
    height: 500px;
    top: 10%;
    left: 5%;
    background: linear-gradient(135deg, #7c3aed, transparent 70%);
    animation-delay: 0s;
}

.shape-2 {
    width: 350px;
    height: 350px;
    top: 60%;
    right: 10%;
    background: linear-gradient(135deg, #06b6d4, transparent 70%);
    animation-delay: 7s;
}

.shape-3 {
    width: 400px;
    height: 400px;
    bottom: 10%;
    left: 15%;
    background: linear-gradient(135deg, #ffd700, transparent 70%);
    animation-delay: 14s;
}

.shape-4 {
    width: 250px;
    height: 250px;
    top: 20%;
    right: 20%;
    background: linear-gradient(135deg, #ef4444, transparent 70%);
    animation-delay: 21s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    33% {
        transform: translateY(-40px) rotate(5deg) scale(1.05);
    }
    66% {
        transform: translateY(30px) rotate(-5deg) scale(0.95);
    }
}

/* Улучшенные звезды */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 4s infinite ease-in-out;
}

.star::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, white, transparent 70%);
    border-radius: 50%;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Улучшенные частицы с логотипами */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    animation: particle-float 15s infinite linear;
    background-size: cover;
    background-position: center;
    opacity: 0;
    filter: drop-shadow(0 0 20px currentColor) brightness(1.3);
}

.particle:nth-child(4n+1) {
    background-image: url('/res/va-bank_logo_mini.png');
    color: #a855f7;
    filter: drop-shadow(0 0 50px #a855f7) brightness(1.5);
}

.particle:nth-child(4n+2) {
    background-image: url('/res/va-bank_logo_mini.png');
    color: #06d6a0;
    filter: drop-shadow(0 0 50px #06d6a0) brightness(1.5);
}

.particle:nth-child(4n+3) {
    background-image: url('/res/va-bank_logo_mini.png');
    color: #ffd166;
    filter: drop-shadow(0 0 50px #ffd166) brightness(1.5);
}

.particle:nth-child(4n+4) {
    background-image: url('/res/va-bank_logo_mini.png');
    color: #ef476f;
    filter: drop-shadow(0 0 50px #ef476f) brightness(1.5);
}

@keyframes particle-float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-200vh) rotate(360deg);
        opacity: 1;
    }
}

/* Улучшенные метеориты */
.meteors {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.meteor {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 5px;
    opacity: 0;
    background-size: cover;
    background-position: center;
}

.meteor:nth-child(3n+1) {
    background-image: url('/res/va-bank_logo_mini.png');
}

.meteor:nth-child(3n+2) {
    background-image: url('/res/va-bank_logo_mini.png');
}

.meteor:nth-child(3n+3) {
    background-image: url('/res/va-bank_logo_mini.png');
}

.meteor::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 50px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), transparent);
}

.meteor::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 100, 100, 0), transparent);
}

@keyframes meteor {
    0% {
        opacity: 0;
        transform: translateX(0) translateY(0) rotate(-15deg);
    }
    5% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateX(-150vw) translateY(150vh) rotate(-15deg);
    }
}

@media (max-width: 768px) {
    .floating-shape {
        filter: blur(40px);
        opacity: 0.25;
        animation-duration: 40s;
    }

    .particles {
        opacity: 0.5;
    }

    .meteors {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .floating-shape,
    .star,
    .particle {
        animation: none !important;
    }

    .meteors {
        display: none;
    }
}
