:root {
    --primary-color: #6c5ce7;
    --secondary-color: #00cec9;
    --accent-color: #fd79a8;
    --background-color: #0f0f1a;
    --card-bg-color: #1e1e30;
    --text-color: #f5f6fa;
    --text-secondary: #dfe6e9;
    --shadow-color: rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.logo h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo h1 span {
    font-weight: 400;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 1000;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

/* Navigation Menu */
.nav-menu ul {
    display: flex;
    list-style: none;
}

.nav-menu ul li {
    margin-left: 30px;
}

.nav-menu ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-menu ul li a:hover, .nav-menu ul li a.active {
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    height: 400px;
    background: linear-gradient(rgba(15, 15, 26, 0.7), rgba(15, 15, 26, 0.9)), url('https://images.unsplash.com/photo-1511512578047-dfb367046420?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 30px 0;
    border-radius: 15px;
    overflow: hidden;
}

.hero-content {
    max-width: 700px;
    padding: 0 20px;
}

.hero h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 42px;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

.cta-button {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--shadow-color);
}

/* Featured Games Section */
.featured-games {
    padding: 40px 0;
}

.featured-games h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Mobile game order */
@media (max-width: 768px) {
    .games-grid {
        display: flex;
        flex-direction: column;
    }
    
    .game-card.mobile-priority {
        order: -1; /* Ensure priority games come first */
    }
}

.game-card {
    background-color: var(--card-bg-color);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.game-card a {
    text-decoration: none;
    color: var(--text-color);
    display: block;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.game-image {
    display: block;
    max-width: 100%;
    height: 220px;
    object-fit: contain;
    background-color: #151525; /* Slightly lighter than card background for contrast */
    border-radius: 10px 10px 0 0;
    margin: 0 auto; /* Center the image */
}

@media (max-width: 768px) {
    .game-image {
        height: 240px; /* Even taller on mobile to ensure full visibility */
    }
}

.game-info {
    padding: 20px;
}

.game-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.game-info p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.play-button-link {
    display: block;
    width: 100%;
    text-decoration: none;
}

.play-button {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.play-button:hover, .play-button-link:hover .play-button {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.play-button-link:active .play-button {
    transform: scale(0.98);
}

/* Mobile-specific game card styles */
@media (max-width: 768px) {
    .games-grid {
        gap: 20px;
    }
    
    .game-card {
        margin-bottom: 10px;
    }
    
    .game-info {
        padding: 15px;
    }
    
    .game-info h3 {
        font-size: 18px;
    }
    
    .play-button {
        padding: 12px 20px; /* Taller button for easier tapping */
        font-size: 16px;
        margin-top: 10px;
    }
}

/* Footer Styles */
footer {
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.footer-logo h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-links ul {
    display: flex;
    list-style: none;
}

.footer-links ul li {
    margin-left: 20px;
}

.footer-links ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--secondary-color);
}

.copyright {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Mobile Menu Styles */
    .menu-toggle {
        display: block;
    }
    
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--card-bg-color);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        padding: 80px 20px 30px;
        transition: right 0.4s ease;
        z-index: 999;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        margin-top: 0;
    }
    
    .nav-menu ul li {
        margin: 0;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu ul li:last-child {
        border-bottom: none;
    }
    
    .nav-menu ul li a {
        display: block;
        font-size: 18px;
    }
    
    /* Overlay when menu is open */
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7);
        z-index: 998;
    }
    
    .menu-overlay.active {
        display: block;
    }
    
    /* Other responsive styles */
    header {
        flex-direction: row;
        align-items: center;
    }
    
    .hero h2 {
        font-size: 32px;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-links ul {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-links ul li {
        margin: 0 10px 10px;
    }
}