/* ===== FLOATING ANIMATIONS ===== */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

/* Коньки */
.floating-skate {
    position: absolute;
    color: var(--primary-light);
    font-size: 24px;
    opacity: 0.7;
    z-index: 2;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.3));
    animation: floatSkate 15s infinite linear;
}

.floating-skate-1 {
    top: 15%;
    left: 10%;
    font-size: 28px;
    animation-delay: 0s;
    animation-duration: 20s;
    color: var(--primary);
}

.floating-skate-2 {
    top: 70%;
    left: 85%;
    font-size: 22px;
    animation-delay: 5s;
    animation-duration: 18s;
    color: var(--accent);
    animation-name: floatSkateReverse;
}

.floating-skate-3 {
    top: 40%;
    left: 90%;
    font-size: 20px;
    animation-delay: 10s;
    animation-duration: 25s;
    color: var(--primary-light);
}

@keyframes floatSkate {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.7;
    }
    25% {
        transform: translate(100px, 50px) rotate(90deg);
        opacity: 0.9;
    }
    50% {
        transform: translate(200px, -30px) rotate(180deg);
        opacity: 0.7;
    }
    75% {
        transform: translate(100px, -80px) rotate(270deg);
        opacity: 0.5;
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
        opacity: 0.7;
    }
}

@keyframes floatSkateReverse {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.7;
    }
    25% {
        transform: translate(-80px, 60px) rotate(-90deg);
        opacity: 0.9;
    }
    50% {
        transform: translate(-150px, -20px) rotate(-180deg);
        opacity: 0.7;
    }
    75% {
        transform: translate(-60px, -70px) rotate(-270deg);
        opacity: 0.5;
    }
    100% {
        transform: translate(0, 0) rotate(-360deg);
        opacity: 0.7;
    }
}

/* Снежинки */
.floating-snowflake {
    position: absolute;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    opacity: 0.5;
    z-index: 1;
    animation: fall linear infinite;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.floating-snowflake-1 {
    left: 10%;
    animation-duration: 15s;
    animation-delay: 0s;
    font-size: 14px;
}

.floating-snowflake-2 {
    left: 25%;
    animation-duration: 12s;
    animation-delay: 2s;
    font-size: 18px;
}

.floating-snowflake-3 {
    left: 40%;
    animation-duration: 20s;
    animation-delay: 5s;
    font-size: 12px;
}

.floating-snowflake-4 {
    left: 60%;
    animation-duration: 18s;
    animation-delay: 3s;
    font-size: 16px;
}

.floating-snowflake-5 {
    left: 80%;
    animation-duration: 14s;
    animation-delay: 7s;
    font-size: 20px;
}

@keyframes fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Ледяные кристаллы */
.floating-crystal {
    position: absolute;
    opacity: 0.3;
    z-index: 1;
    animation: floatCrystal 20s infinite ease-in-out;
}

.crystal-shape {
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, rgba(139, 92, 246, 0.3), rgba(236, 72, 153, 0.3));
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    transform: rotate(45deg);
}

.floating-crystal-1 {
    top: 20%;
    left: 80%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.floating-crystal-2 {
    top: 60%;
    left: 15%;
    animation-delay: 8s;
    animation-duration: 30s;
}

.floating-crystal-3 {
    top: 80%;
    left: 70%;
    animation-delay: 15s;
    animation-duration: 22s;
}

@keyframes floatCrystal {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(30px, 20px) rotate(90deg) scale(1.1);
        opacity: 0.5;
    }
    50% {
        transform: translate(20px, -30px) rotate(180deg) scale(1);
        opacity: 0.3;
    }
    75% {
        transform: translate(-20px, -10px) rotate(270deg) scale(0.9);
        opacity: 0.2;
    }
}

/* Следы от коньков */
.skate-trail {
    position: absolute;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), transparent);
    border-radius: 2px;
    opacity: 0.5;
    z-index: 0;
    animation: trailFade 8s infinite linear;
}

.skate-trail-1 {
    top: 30%;
    left: 5%;
    transform: rotate(45deg);
    animation-delay: 0s;
}

.skate-trail-2 {
    top: 50%;
    left: 75%;
    transform: rotate(-30deg);
    animation-delay: 4s;
}

.skate-trail-3 {
    top: 80%;
    left: 25%;
    transform: rotate(15deg);
    animation-delay: 2s;
}

@keyframes trailFade {
    0%, 100% {
        opacity: 0;
        transform: scaleX(0.5);
    }
    50% {
        opacity: 0.5;
        transform: scaleX(1);
    }
}

/* Вращающиеся элементы */
.spinning-element {
    position: absolute;
    color: var(--accent);
    font-size: 18px;
    opacity: 0.4;
    z-index: 2;
    animation: spin 10s infinite linear;
}

.spinning-element-1 {
    top: 10%;
    left: 50%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.spinning-element-2 {
    top: 90%;
    left: 40%;
    animation-delay: 6s;
    animation-duration: 15s;
}

@keyframes spin {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.2);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* Пульсация для интерактивности */
@keyframes pulse-glow {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(139, 92, 246, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.6));
    }
}

/* Специальный эффект для мыши */
.mouse-follow {
    position: absolute;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s;
}

/* ===== ELEGANT SKATING ELEMENTS ===== */

/* Кастомные коньки SVG */
.custom-skate {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.5));
    animation: floatSkateSVG 15s infinite ease-in-out;
}

@keyframes floatSkateSVG {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.7;
    }
    25% {
        transform: translateY(-20px) rotate(10deg);
        opacity: 0.9;
    }
    50% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.7;
    }
    75% {
        transform: translateY(20px) rotate(-10deg);
        opacity: 0.5;
    }
}

/* Силуэт конька */
.skate-silhouette {
    width: 30px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    clip-path: polygon(40% 0%, 60% 0%, 70% 20%, 80% 40%, 70% 60%, 30% 60%, 20% 40%, 30% 20%);
    opacity: 0.6;
    animation: skateGlide 20s infinite linear;
}

@keyframes skateGlide {
    0% {
        transform: translateX(-100px) translateY(0) rotate(0deg);
    }
    25% {
        transform: translateX(25vw) translateY(-50px) rotate(90deg);
    }
    50% {
        transform: translateX(50vw) translateY(0) rotate(180deg);
    }
    75% {
        transform: translateX(75vw) translateY(50px) rotate(270deg);
    }
    100% {
        transform: translateX(100vw) translateY(0) rotate(360deg);
    }
}

/* Элементы фигурного катания */
.floating-element {
    position: absolute;
    z-index: 2;
}

/* Вращение (пируэт) */
.floating-spin {
    top: 30%;
    left: 20%;
}

.spinning-disk {
    width: 40px;
    height: 40px;
    border: 3px solid var(--primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 6s infinite linear;
}

@keyframes spin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

/* Прыжок (аксель) */
.floating-jump {
    top: 60%;
    left: 70%;
}

.jump-arc {
    width: 60px;
    height: 30px;
    border: 2px dashed var(--accent);
    border-top: none;
    border-radius: 50% 50% 0 0;
    opacity: 0.5;
    animation: jumpArc 8s infinite ease-in-out;
}

@keyframes jumpArc {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-30px) scale(1.2);
        opacity: 0.7;
    }
}

/* Спираль */
.floating-spiral {
    top: 40%;
    left: 80%;
}

.spiral-path {
    width: 50px;
    height: 50px;
    border: 2px solid var(--primary-light);
    border-radius: 50%;
    opacity: 0.4;
    animation: spiral 12s infinite linear;
}

.spiral-path::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: spiralDot 12s infinite linear;
}

@keyframes spiral {
    0% {
        transform: scale(1) rotate(0deg);
    }
    100% {
        transform: scale(0.5) rotate(360deg);
    }
}

@keyframes spiralDot {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) translateX(25px);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg) translateX(25px);
    }
}

/* Ледяные узоры */
.ice-pattern {
    position: absolute;
    opacity: 0.1;
    z-index: 1;
}

.pattern-1 {
    top: 20%;
    left: 15%;
    width: 100px;
    height: 100px;
    background: 
        radial-gradient(circle at 30% 30%, var(--primary) 2px, transparent 3px),
        radial-gradient(circle at 70% 70%, var(--accent) 2px, transparent 3px);
    background-size: 20px 20px;
    animation: patternFloat 25s infinite linear;
}

.pattern-2 {
    top: 70%;
    left: 60%;
    width: 150px;
    height: 150px;
    background: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, var(--primary-light) 10px, var(--primary-light) 20px);
    opacity: 0.05;
    animation: patternRotate 30s infinite linear;
}

.pattern-3 {
    top: 50%;
    left: 10%;
    width: 80px;
    height: 80px;
    background: 
        conic-gradient(from 0deg, var(--primary), var(--accent), var(--primary));
    border-radius: 50%;
    opacity: 0.05;
    animation: patternPulse 20s infinite alternate ease-in-out;
}

@keyframes patternFloat {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    100% {
        transform: translate(100px, 50px) rotate(360deg);
    }
}

@keyframes patternRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes patternPulse {
    0% {
        transform: scale(0.8);
        opacity: 0.03;
    }
    100% {
        transform: scale(1.2);
        opacity: 0.07;
    }
}

/* Блестки льда */
.ice-sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    filter: blur(1px);
    opacity: 0;
    animation: sparkleTwinkle 3s infinite ease-in-out;
}

.sparkle-1 {
    top: 25%;
    left: 40%;
    animation-delay: 0s;
}

.sparkle-2 {
    top: 65%;
    left: 30%;
    animation-delay: 1s;
}

.sparkle-3 {
    top: 45%;
    left: 80%;
    animation-delay: 2s;
}

@keyframes sparkleTwinkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
        filter: blur(1px) drop-shadow(0 0 8px white);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .custom-skate {
        width: 30px;
        height: 30px;
    }
    
    .skate-silhouette {
        width: 20px;
        height: 35px;
    }
    
    .spinning-disk {
        width: 30px;
        height: 30px;
    }
    
    .jump-arc {
        width: 40px;
        height: 20px;
    }
    
    .pattern-1, .pattern-2, .pattern-3 {
        display: none; /* Скрываем сложные узоры на мобильных */
    }
}

/* ===== ABSTRACT SKATING FORMS ===== */
.abstract-floating {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

/* Абстрактные следы коньков */
.skate-trace {
    position: absolute;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--primary), 
        var(--accent), 
        transparent);
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(2px);
    animation: traceAppear 6s infinite ease-in-out;
}

.trace-1 {
    top: 20%;
    left: 10%;
    transform: rotate(30deg);
    animation-delay: 0s;
}

.trace-2 {
    top: 50%;
    left: 60%;
    transform: rotate(-15deg);
    animation-delay: 2s;
}

.trace-3 {
    top: 80%;
    left: 30%;
    transform: rotate(45deg);
    animation-delay: 4s;
}

@keyframes traceAppear {
    0%, 100% {
        opacity: 0;
        transform: scaleX(0.1);
    }
    50% {
        opacity: 0.15;
        transform: scaleX(1);
    }
}

/* Круги на льду (следы от вращений) */
.ice-circle {
    position: absolute;
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: 50%;
    animation: circleExpand 10s infinite ease-out;
}

.circle-1 {
    top: 30%;
    left: 40%;
    width: 50px;
    height: 50px;
    animation-delay: 0s;
}

.circle-2 {
    top: 60%;
    left: 20%;
    width: 30px;
    height: 30px;
    animation-delay: 3s;
}

.circle-3 {
    top: 40%;
    left: 80%;
    width: 40px;
    height: 40px;
    animation-delay: 6s;
}

@keyframes circleExpand {
    0% {
        transform: scale(0);
        opacity: 0.5;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* Градиентные пятна */
.ice-blot {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, 
        rgba(139, 92, 246, 0.1) 0%, 
        rgba(236, 72, 153, 0.05) 50%, 
        transparent 70%);
    animation: blotFloat 25s infinite linear;
}

.blot-1 {
    top: 20%;
    left: 80%;
}

.blot-2 {
    top: 70%;
    left: 10%;
}

@keyframes blotFloat {
    0% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(100px, 50px);
    }
    50% {
        transform: translate(50px, -50px);
    }
    75% {
        transform: translate(-50px, -30px);
    }
    100% {
        transform: translate(0, 0);
    }
}