/* Анимации частиц */
.particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
}

.particle-1 {
    width: 3px;
    height: 3px;
    background: rgba(76, 175, 80, 0.8);
    animation: float 15s infinite linear;
}

.particle-2 {
    width: 2px;
    height: 2px;
    background: rgba(224, 164, 58, 0.6);
    animation: float 20s infinite linear;
}

.particle-3 {
    width: 1px;
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
    animation: float 25s infinite linear;
}

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

/* Анимация волн в хедере */
.wave-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    overflow: hidden;
    transform: rotate(180deg);
}

.wave {
    animation: wave 7s linear infinite;
    transform: translate3d(0, 0, 0);
    position: relative;
    width: 142%;
    height: 100px;
    margin-left: -21%;
}

.wave:nth-of-type(1) {
    fill: rgba(255, 255, 255, 0.1);
    animation-delay: 0s;
}

.wave:nth-of-type(2) {
    fill: rgba(255, 255, 255, 0.2);
    animation-delay: -0.8s;
}

.wave:nth-of-type(3) {
    fill: rgba(255, 255, 255, 0.3);
    animation-delay: -1.6s;
}

@keyframes wave {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-500px);
    }
}

/* Анимация наведения на карточки */
.feature-card {
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Анимация плавного появления */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

div.fade-in-up {
    opacity: 0;
}

/* Анимация кнопок */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn:active::after {
    animation: ripple 0.6s linear;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 1;
    }
    20% {
        border-radius: 2px;
    }
    100% {
        transform: scale(50, 50);
        opacity: 0;
    }
}

/* Анимация загрузки */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #121212;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-animation {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.block {
    width: 20px;
    height: 20px;
    background: #4CAF50;
    animation: blockAnimation 1.5s infinite ease-in-out;
}

.block:nth-child(1) { animation-delay: 0s; }
.block:nth-child(2) { animation-delay: 0.2s; }
.block:nth-child(3) { animation-delay: 0.4s; }
.block:nth-child(4) { animation-delay: 0.6s; }

@keyframes blockAnimation {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}