/* Анимированный абстрактный фон с красно-голубой палитрой */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(135deg, #ffe8e8 0%, #e8f4ff 50%, #fff0f0 100%);
}

/* Абстрактные элементы */
.bubble {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(255, 200, 200, 0.4), rgba(200, 220, 255, 0.5));
    box-shadow: 
        inset 0 0 30px rgba(255, 255, 255, 0.6),
        0 0 60px rgba(255, 200, 200, 0.3);
    animation: float 15s infinite linear;
    filter: blur(1px);
}

.bubble:nth-child(1) {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 5%;
    animation-duration: 18s;
    background: linear-gradient(45deg, rgba(255, 180, 180, 0.5), rgba(180, 210, 255, 0.6));
}

.bubble:nth-child(2) {
    width: 200px;
    height: 200px;
    top: 60%;
    left: 80%;
    animation-duration: 16s;
    animation-delay: -2s;
    background: linear-gradient(45deg, rgba(255, 190, 190, 0.5), rgba(190, 215, 255, 0.6));
}

.bubble:nth-child(3) {
    width: 400px;
    height: 400px;
    top: 30%;
    left: 60%;
    animation-duration: 22s;
    animation-delay: -4s;
    background: linear-gradient(45deg, rgba(255, 170, 170, 0.4), rgba(170, 200, 255, 0.5));
}

.bubble:nth-child(4) {
    width: 150px;
    height: 150px;
    top: 80%;
    left: 20%;
    animation-duration: 14s;
    animation-delay: -6s;
    background: linear-gradient(45deg, rgba(255, 200, 200, 0.6), rgba(200, 220, 255, 0.7));
}

.bubble:nth-child(5) {
    width: 250px;
    height: 250px;
    top: 15%;
    left: 70%;
    animation-duration: 20s;
    animation-delay: -8s;
    background: linear-gradient(45deg, rgba(255, 160, 160, 0.5), rgba(160, 200, 255, 0.6));
}

/* Волнообразные элементы */
.wave {
    position: absolute;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    background: linear-gradient(45deg, rgba(255, 180, 180, 0.4), rgba(180, 210, 255, 0.5));
    animation: morph 18s infinite linear;
    filter: blur(1px);
    box-shadow: 
        inset 0 0 20px rgba(255, 255, 255, 0.5),
        0 0 40px rgba(255, 200, 200, 0.3);
}

.wave:nth-child(6) {
    width: 350px;
    height: 350px;
    top: 50%;
    left: 10%;
    animation-duration: 16s;
    animation-delay: -3s;
}

.wave:nth-child(7) {
    width: 180px;
    height: 180px;
    top: 20%;
    left: 30%;
    animation-duration: 20s;
    animation-delay: -5s;
}

.wave:nth-child(8) {
    width: 280px;
    height: 280px;
    top: 70%;
    left: 50%;
    animation-duration: 22s;
    animation-delay: -7s;
}

/* Анимации */
@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(30px, 25px) rotate(5deg);
    }
    50% {
        transform: translate(20px, 40px) rotate(0deg);
    }
    75% {
        transform: translate(25px, 20px) rotate(-5deg);
    }
}

@keyframes morph {
    0%, 100% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
        transform: translate(25px, 30px) rotate(120deg);
    }
    66% {
        border-radius: 50% 50% 30% 70% / 60% 30% 70% 40%;
        transform: translate(20px, 25px) rotate(240deg);
    }
}

/* Эффект частиц */
.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 150, 150, 0.5);
    border-radius: 50%;
    animation: particle-float 12s infinite linear;
    box-shadow: 0 0 10px rgba(255, 150, 150, 0.5);
}

.particle:nth-child(odd) {
    background: rgba(150, 180, 255, 0.5);
    box-shadow: 0 0 10px rgba(150, 180, 255, 0.5);
}

/* Создаем частицы через JS, но на случай отключения JS добавим несколько статических */
.particle:nth-child(9) {
    top: 25%;
    left: 15%;
    animation-delay: 0s;
}

.particle:nth-child(10) {
    top: 65%;
    left: 85%;
    animation-delay: -3s;
}

.particle:nth-child(11) {
    top: 40%;
    left: 45%;
    animation-delay: -6s;
}

.particle:nth-child(12) {
    top: 75%;
    left: 65%;
    animation-delay: -9s;
}

@keyframes particle-float {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0.5;
    }
    25% {
        transform: translate(40px, -25px);
        opacity: 0.8;
    }
    50% {
        transform: translate(20px, -40px);
        opacity: 0.6;
    }
    75% {
        transform: translate(30px, -20px);
        opacity: 0.9;
    }
}

/* Дополнительные акцентные элементы */
.accent {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 150, 150, 0.3) 0%, transparent 70%);
    animation: pulse 8s infinite ease-in-out;
}

.accent:nth-child(13) {
    width: 500px;
    height: 500px;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.accent:nth-child(14) {
    width: 400px;
    height: 400px;
    bottom: -150px;
    right: -100px;
    animation-delay: -4s;
    background: radial-gradient(circle, rgba(150, 180, 255, 0.3) 0%, transparent 70%);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .bubble, .wave, .accent {
        transform: scale(0.6);
    }
}