@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    0% {
        transform: translateY(100%);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes cloudDrift {
    from {
        transform: translateX(-5%);
    }
    to {
        transform: translateX(5%);
    }
}

@keyframes fadeInSlowly {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    30% {
        opacity: 0.3;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cloudScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes floatUpDown {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.clouds {
    animation: fadeIn 1s ease-in-out;
}

.game-card {
    transition: transform 0.3s ease;
}

.game-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.game-card img {
    transition: opacity 0.3s ease;
}

.game-card:hover img {
    opacity: 0.7;
}

.atmosphere-layer {
    animation: slideIn 1s ease-in-out forwards;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

@media (max-width: 768px) {
    .game-card {
        margin: 10px;
    }
}

header, .game-cards, footer, .about-section, .team-section, .contact-section {
    opacity: 0;
    animation: fadeIn 1.5s ease-out forwards;
}

.delayed-section {
    animation-delay: 2s;
}

.card {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
    animation-delay: calc(var(--i, 0) * 0.2s + 3s);
}

.team-member {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
    animation-delay: calc(var(--i, 0) * 0.2s);
}

.clouds-bg {
    /* animation: cloudScroll 60s linear infinite; */
    opacity: 0.8;
}

.logo {
    animation: float 3s ease-in-out infinite;
}

.intro-text {
    opacity: 0;
    animation: fadeInSlowly 3s ease-in-out forwards;
}

.scroll-down {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 2rem;
    color: var(--primary-color);
    animation: bounce 2s infinite;
    z-index: 100;
    cursor: pointer;
}

.games-title {
    animation: floatUpDown 3s ease-in-out infinite;
}

.about-section, .team-section, .contact-section {
    animation-play-state: paused;
}

.about-section.visible, .team-section.visible, .contact-section.visible {
    animation-play-state: running;
}

/* Body için yumuşak renk geçişi */
body {
    transition: background-color 0.5s ease-in-out;
}
