/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;600&display=swap');

/* General Styles */
body {
    font-family: 'Lexend', sans-serif;
    background: radial-gradient(circle, #141414 30%, #1e1e1e 70%);
    color: white;
    margin: 0;
    padding: 0;
    text-align: center;
}

/* Hero Section */
.hero {
    padding: 50px 20px;
    background: linear-gradient(135deg, #00A2FF 30%, #0077CC 100%);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 162, 255, 0.5);
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem;
}

/* Button */
.btn {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 20px;
    background: white;
    color: #0077CC;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s ease-in-out, transform 0.2s;
}

.btn:hover {
    background: #f0f0f0;
    transform: scale(1.05);
}

/* Stats Section */
.stats {
    margin: 30px auto;
    padding: 20px;
}

.stats-grid {
    display: flex;
    flex-wrap: wrap; /* Allows items to wrap on smaller screens */
    justify-content: center;
    gap: 20px;
}

.stat {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 162, 255, 0.3);
    width: 250px; /* Ensures stats resize properly */
}

/* Recent Achievements & Featured Games */
.achievements-grid, .games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Auto adjusts based on screen size */
    gap: 20px;
    margin: 20px auto;
    padding: 20px;
}

/* Navigation Buttons */
.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap; /* Allows buttons to wrap if needed */
}

/* Button Images */
.nav-button {
    width: 80px;
    height: auto;
    transition: transform 0.3s ease-in-out;
}

.nav-button:hover {
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .stats-grid {
        flex-direction: column; /* Stack stats vertically */
        align-items: center;
    }

    .achievements-grid, .games-grid {
        grid-template-columns: 1fr; /* Single column on small screens */
    }

    .nav-buttons {
        flex-direction: column; /* Stack buttons vertically */
        align-items: center;
    }

    .nav-button {
        width: 60px; /* Reduce button size for smaller screens */
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1e1e1e;
}

::-webkit-scrollbar-thumb {
    background: #00A2FF;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0077CC;
}
