/* Animation Keyframes */
@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

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

.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

.scroll-indicator {
    animation: bounce 2s infinite;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.plugin-card {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.plugin-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.plugin-card:nth-child(even) .plugin-content {
    direction: rtl;
}

.plugin-card:nth-child(even) .plugin-info {
    direction: ltr;
}

.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.plugin-visual {
    transition: all 0.3s ease;
}

.plugin-visual:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(255, 105, 180, 0.3);
}

.changelog-version {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.changelog-version.visible {
    opacity: 1;
    transform: translateY(0);
}

.plugin-card:nth-child(1) {
    animation-delay: 0.1s;
}

.plugin-card:nth-child(2) {
    animation-delay: 0.2s;
}

.plugin-card:nth-child(3) {
    animation-delay: 0.3s;
}

.changelog-version:nth-child(1) {
    animation-delay: 0.1s;
}

.changelog-version:nth-child(2) {
    animation-delay: 0.2s;
}

.changelog-version:nth-child(3) {
    animation-delay: 0.3s;
}

html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}