/* ===== НОВА АБСТРАКТНА АНІМАЦІЯ "МУЗИЧНА ПУЛЬСАЦІЯ" (ТІЛЬКИ ДЛЯ ГОЛОВНОЇ) ===== */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: linear-gradient(135deg, #f6f9fc 0%, #f1f5f9 100%);
}

/* Головний контейнер для абстрактних елементів */
.music-abstract {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.5;
}

/* Абстрактні кола, що пульсують */
.abstract-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple), var(--primary-pink));
    filter: blur(60px);
    opacity: 0.2;
    animation: abstractFloat 15s ease-in-out infinite;
}

.abstract-circle:nth-child(1) {
    width: 400px;
    height: 400px;
    top: -100px;
    left: -100px;
    animation-duration: 18s;
}

.abstract-circle:nth-child(2) {
    width: 600px;
    height: 600px;
    bottom: -200px;
    right: -200px;
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-orange), var(--primary-gold));
    animation-duration: 22s;
    animation-delay: -3s;
}

.abstract-circle:nth-child(3) {
    width: 300px;
    height: 300px;
    top: 30%;
    right: 10%;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-pink));
    animation-duration: 14s;
    animation-delay: -5s;
}

.abstract-circle:nth-child(4) {
    width: 500px;
    height: 500px;
    bottom: 10%;
    left: 5%;
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-orange));
    animation-duration: 25s;
    animation-delay: -7s;
}

/* Музичні ноти, що літають */
.floating-note-abstract {
    position: absolute;
    font-size: 3rem;
    color: var(--primary-blue);
    opacity: 0.1;
    filter: blur(1px);
    animation: noteFloatAbstract 20s linear infinite;
    transform-origin: center;
}

.floating-note-abstract:nth-child(5) {
    top: 20%;
    left: 15%;
    animation-duration: 18s;
    font-size: 4rem;
    color: var(--primary-purple);
}

.floating-note-abstract:nth-child(6) {
    top: 60%;
    right: 20%;
    animation-duration: 22s;
    font-size: 5rem;
    color: var(--primary-pink);
    animation-delay: -4s;
}

.floating-note-abstract:nth-child(7) {
    bottom: 15%;
    left: 30%;
    animation-duration: 25s;
    font-size: 3.5rem;
    color: var(--primary-gold);
    animation-delay: -8s;
}

.floating-note-abstract:nth-child(8) {
    top: 40%;
    left: 40%;
    animation-duration: 30s;
    font-size: 4.5rem;
    color: var(--primary-orange);
    animation-delay: -12s;
}

/* Лінії, що рухаються (як музичний стан) */
.music-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-blue), var(--primary-purple), var(--primary-pink), transparent);
    opacity: 0.1;
    animation: lineMove 8s linear infinite;
}

.music-line:nth-child(9) {
    top: 25%;
    animation-duration: 10s;
    opacity: 0.15;
}

.music-line:nth-child(10) {
    top: 45%;
    animation-duration: 14s;
    animation-delay: -3s;
    background: linear-gradient(90deg, transparent, var(--primary-pink), var(--primary-orange), transparent);
}

.music-line:nth-child(11) {
    top: 65%;
    animation-duration: 18s;
    animation-delay: -6s;
    background: linear-gradient(90deg, transparent, var(--primary-purple), var(--primary-gold), transparent);
}

.music-line:nth-child(12) {
    top: 85%;
    animation-duration: 12s;
    animation-delay: -2s;
    background: linear-gradient(90deg, transparent, var(--primary-orange), var(--primary-pink), transparent);
}

/* Точки, що пульсують (як звукові хвилі) */
.sound-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--primary-blue);
    opacity: 0.2;
    animation: dotPulse 3s ease-in-out infinite;
}

/* Генеруємо багато точок через nth-child */
.sound-dot:nth-child(13) { top: 30%; left: 20%; animation-delay: 0s; }
.sound-dot:nth-child(14) { top: 50%; left: 30%; animation-delay: 0.5s; background: var(--primary-pink); }
.sound-dot:nth-child(15) { top: 70%; left: 40%; animation-delay: 1s; background: var(--primary-purple); }
.sound-dot:nth-child(16) { top: 40%; left: 60%; animation-delay: 1.5s; background: var(--primary-orange); }
.sound-dot:nth-child(17) { top: 60%; left: 70%; animation-delay: 2s; background: var(--primary-gold); }
.sound-dot:nth-child(18) { top: 20%; left: 80%; animation-delay: 2.5s; background: var(--primary-blue); }
.sound-dot:nth-child(19) { top: 80%; left: 15%; animation-delay: 3s; background: var(--primary-pink); }
.sound-dot:nth-child(20) { top: 15%; left: 45%; animation-delay: 3.5s; background: var(--primary-purple); }
.sound-dot:nth-child(21) { top: 90%; left: 55%; animation-delay: 4s; background: var(--primary-orange); }
.sound-dot:nth-child(22) { top: 45%; left: 85%; animation-delay: 4.5s; background: var(--primary-gold); }
.sound-dot:nth-child(23) { top: 55%; left: 5%; animation-delay: 5s; background: var(--primary-blue); }
.sound-dot:nth-child(24) { top: 75%; left: 95%; animation-delay: 5.5s; background: var(--primary-pink); }

/* Ключові кадри для анімацій */
@keyframes abstractFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(5%, 5%) scale(1.1); }
    50% { transform: translate(10%, -5%) scale(0.95); }
    75% { transform: translate(-5%, 10%) scale(1.05); }
}

@keyframes noteFloatAbstract {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 0.1; }
    25% { transform: translate(5%, -5%) rotate(5deg) scale(1.1); opacity: 0.15; }
    50% { transform: translate(10%, 5%) rotate(10deg) scale(1.2); opacity: 0.2; }
    75% { transform: translate(5%, 10%) rotate(5deg) scale(1.1); opacity: 0.15; }
    100% { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 0.1; }
}

@keyframes lineMove {
    0% { transform: translateX(-100%); opacity: 0.1; }
    50% { opacity: 0.2; }
    100% { transform: translateX(100%); opacity: 0.1; }
}

@keyframes dotPulse {
    0%, 100% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(2); opacity: 0.4; }
}

/* ===== НОВА АНІМАЦІЯ ДЛЯ HERO SECTION ===== */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    opacity: 0.3;
    animation: particleFloat 10s linear infinite;
}

.particle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { top: 30%; left: 30%; animation-delay: 1s; }
.particle:nth-child(3) { top: 40%; left: 50%; animation-delay: 2s; }
.particle:nth-child(4) { top: 50%; left: 70%; animation-delay: 3s; }
.particle:nth-child(5) { top: 60%; left: 90%; animation-delay: 4s; }
.particle:nth-child(6) { top: 70%; left: 20%; animation-delay: 5s; }
.particle:nth-child(7) { top: 80%; left: 40%; animation-delay: 6s; }
.particle:nth-child(8) { top: 90%; left: 60%; animation-delay: 7s; }
.particle:nth-child(9) { top: 15%; left: 80%; animation-delay: 8s; }
.particle:nth-child(10) { top: 85%; left: 15%; animation-delay: 9s; }

@keyframes particleFloat {
    0% { transform: translate(0, 0) scale(1); opacity: 0.3; }
    25% { transform: translate(20px, -20px) scale(1.5); opacity: 0.5; }
    50% { transform: translate(40px, 0) scale(2); opacity: 0.7; background: linear-gradient(135deg, var(--primary-pink), var(--primary-orange)); }
    75% { transform: translate(20px, 20px) scale(1.5); opacity: 0.5; }
    100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
}

/* Анімоване кільце */
.hero-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border: 2px solid rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    animation: ringPulse 8s ease-out infinite;
    z-index: 1;
}

.hero-ring::before,
.hero-ring::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border: 2px solid rgba(139, 92, 246, 0.1);
    border-radius: 50%;
    animation: ringPulse 8s ease-out infinite;
    animation-delay: -2s;
}

.hero-ring::after {
    border-color: rgba(236, 72, 153, 0.1);
    animation-delay: -4s;
}

@keyframes ringPulse {
    0% { width: 200px; height: 200px; opacity: 1; }
    100% { width: 600px; height: 600px; opacity: 0; }
}