/* Games Section Styles */
.games-section {
    padding: 60px 0;
    background-color: #1f1f1f;
}

.games-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #ffffff;
    font-size: 2.2rem;
}

.games-section h3 {
    text-align: center;
    margin: 50px 0 30px 0;
    color: #63cd42;
    font-size: 1.8rem;
    position: relative;
}

.games-section h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #63cd42;
    border-radius: 2px;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.games-grid.popular {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.games-grid.new {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Game Card */
.game-card {
    background: linear-gradient(145deg, #2a2a2a, #1e1e1e);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 205, 66, 0.1), transparent);
    transition: left 0.5s ease;
}

.game-card:hover::before {
    left: 100%;
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: #63cd42;
    box-shadow: 0 8px 25px rgba(99, 205, 66, 0.2);
}

.game-card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.game-card:hover img {
    transform: scale(1.05);
}

.game-card h4 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.3;
}

.game-card p {
    color: #cccccc;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.game-card .play-btn {
    background: linear-gradient(45deg, #63cd42, #52b838);
    color: #0e0d0e;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.game-card .play-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 ease;
}

.game-card .play-btn:hover::before {
    left: 100%;
}

.game-card .play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(99, 205, 66, 0.4);
    color: #0e0d0e;
    text-decoration: none;
}

.game-card .play-btn:active {
    transform: translateY(0);
}

/* Game Categories */
.game-category {
    margin-bottom: 60px;
}

.game-category h3 {
    text-align: center;
    margin: 40px 0 25px 0;
    color: #63cd42;
    font-size: 1.5rem;
    padding-left: 20px;
    position: relative;
}

/* Featured Games */
.featured-games {
    background: linear-gradient(135deg, #2a2a2a, #1e1e1e);
    border-radius: 15px;
    padding: 40px;
    margin: 40px 0;
    border: 1px solid #404040;
}

.featured-games h3 {
    text-align: center;
    margin-bottom: 30px;
    color: #ffffff;
    font-size: 1.8rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .games-grid.popular,
    .games-grid.new {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .game-card {
        padding: 15px;
    }
   
    
    .game-card h4 {
        font-size: 1.1rem;
    }
    
    .game-card p {
        font-size: 0.85rem;
    }
    
    .games-section h2 {
        font-size: 1.8rem;
    }
    
    .games-section h3 {
        font-size: 1.4rem;
    }
    
    .featured-games {
        padding: 20px;
        margin: 20px 0;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
    
    .games-grid.popular,
    .games-grid.new {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/* Animation for game cards on scroll */
.game-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.game-card.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Loading animation */
.game-card.loading {
    background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}


