/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f0f2f5 0%, #e0e5ec 100%);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header styles */
header {
    background-color: #1a1a1a;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo a {
    font-size: 1.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    color: #ff5722;
    transition: all 0.3s ease;
}

.logo a:hover {
    transform: scale(1.05);
}

.search-container {
    flex: 0 0 40%;
}

.search-container form {
    display: flex;
}

.search-container input {
    flex: 1;
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 4px 0 0 4px;
    transition: all 0.3s ease;
}

.search-container input:focus {
    outline: none;
    box-shadow: 0 0 8px rgba(255, 87, 34, 0.5);
}

.search-container button {
    padding: 0.6rem 1rem;
    background-color: #ff5722;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-container button:hover {
    background-color: #e64a19;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    transition: all 0.3s ease;
    color: #ccc;
}

nav ul li a:hover {
    color: #ff5722;
}

/* Hero section */
.hero {
    background: linear-gradient(rgba(26, 26, 26, 0.8), rgba(26, 26, 26, 0.8));
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
    animation: fadeIn 1s ease;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.cta-button {
    padding: 1rem 2rem;
    background-color: #ff5722;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.cta-button:hover {
    background-color: #e64a19;
    transform: scale(1.05);
}

/* Section header */
.section-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem 1rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.section-header h2 {
    margin-bottom: 0.5rem;
    color: #1a1a1a;
    font-size: 2rem;
}

.section-header p {
    color: #666;
}

/* Categories section */
.categories {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.category-slider {
    position: relative;
    overflow: hidden;
    padding: 1rem 0;
}

.category-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    transition: transform 0.3s ease;
}

.category-card {
    flex: 0 0 auto;
    width: 150px;
    height: 150px;
    background-color: #ff5722;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Featured games section */
.featured-games {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.game-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
}

.game-image {
    height: 180px;
    background-color: #ff5722;
    background-size: cover;
    background-position: center;
    transition: all 0.3s ease;
}

.game-card:hover .game-image {
    transform: scale(1.05);
}

.game-info {
    padding: 1rem;
}

.game-info h3 {
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.game-info p {
    color: #666;
    margin-bottom: 0.5rem;
}

.game-rating {
    color: #ff5722;
    font-weight: bold;
}

/* Community section */
.community {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.community-content {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.community-card {
    flex: 0 0 auto;
    width: 300px;
    padding: 2rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.community-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
}

.community-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ff5722;
}

.community-card h3 {
    margin-bottom: 1rem;
    color: #1a1a1a;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: white;
    padding: 3rem 1rem 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 2rem;
}

.footer-logo {
    flex: 0 0 30%;
}

.footer-logo a {
    font-size: 1.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    color: #ff5722;
}

.footer-links {
    flex: 0 0 30%;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-social {
    flex: 0 0 30%;
}

.footer-social p {
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px);
    color: #ff5722;
}

.copyright {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive styles */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-logo, .footer-links, .footer-social {
        flex: 0 0 100%;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        padding: 1rem;
    }

    .logo {
        margin-bottom: 1rem;
    }

    .search-container {
        width: 100%;
        margin: 1rem 0;
    }

    nav ul {
        justify-content: center;
        margin-top: 1rem;
    }

    .hero {
        height: 60vh;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .category-container {
        flex-wrap: wrap;
    }

    .category-card {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 50vh;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .game-grid {
        grid-template-columns: 1fr;
    }

    .community-content {
        flex-direction: column;
        align-items: center;
    }

    .community-card {
        width: 100%;
        max-width: 300px;
    }
}