/* Games.css */
.games-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.games-heading {
    margin-bottom: 50px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.games-title {
    font-size: 3rem;
    color: #4a9eff;
    margin-bottom: 15px;
    text-shadow: 0 0 5px #fff,
    0 0 10px rgba(255,255,255,0.8),
    0 0 20px rgba(74, 158, 255, 0.8),
    0 0 30px rgba(74, 158, 255, 0.6);
    font-family: 'Rajdhani', 'Montserrat', sans-serif;
    letter-spacing: 0.2rem;
    user-select: none;
    position: relative;
    display: inline-block;
    padding: 0 20px;
    animation: titleFloat 4s ease-in-out infinite, titleGlow 3s ease-in-out infinite;
}

.games-subtitle {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 0;
    user-select: none;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
    font-weight: 500;
    letter-spacing: 1px;
    background: rgba(74, 158, 255, 0.15);
    padding: 10px 20px;
    border-radius: 30px;
    display: inline-block;
    border: 1px solid rgba(255,255,255,0.2);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    justify-items: center;
    padding: 0 20px;
}

.game-card {
    width: 100%;
    max-width: 300px;
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(74, 158, 255, 0.3);
}

.game-link {
    text-decoration: none;
    display: block;
    height: 100%;
}

.game-image-container {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 aspect ratio */
    overflow: hidden;
}

.game-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 40%);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.game-card:hover .game-overlay {
    opacity: 0.4;
}

.game-card:hover .game-image {
    transform: scale(1.1);
}

.game-title {
    color: #fff;
    font-size: 1.3rem;
    margin: 15px 0;
    padding: 0 15px;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    transition: color 0.3s ease;
}

.game-card:hover .game-title {
    color: #4a9eff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .games-title {
        font-size: 2.2rem;
    }

    .games-subtitle {
        font-size: 1rem;
    }

    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .games-title {
        font-size: 1.8rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }
}