:root {
    --bg-dark: #0f0f15;
    --bg-medium: #1a1a25;
    --text-light: #e0e0e0;
    --neon-green: #39ff14;
    --neon-blue: #00e5ff;
    --card-hover-shadow: 0 0 15px rgba(57, 255, 20, 0.7), 0 0 30px rgba(0, 229, 255, 0.5);
}

/* Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Roboto Mono', monospace;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
}

a {
    /* Remove underlines from all links */
    text-decoration: none;
    color: inherit;
}

/* Three.js Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.8;
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.page-header {
    background: rgba(15, 15, 21, 0.7);
    backdrop-filter: blur(10px);
    padding: 2.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    color: var(--text-light);
    text-shadow: 0 0 10px var(--neon-green);
    letter-spacing: 2px;
    transition: transform 0.3s ease;
}

.site-logo:hover {
    transform: scale(1.05);
    text-shadow: 0 0 15px var(--neon-blue);
}

.search-container {
    position: relative;
}

.search-input {
    background: var(--bg-medium);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    padding: 0.8rem 1.2rem;
    border-radius: 5px;
    font-family: 'Roboto Mono', monospace;
    font-size: 1rem;
    width: 250px;
    outline: none;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--neon-green);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.5);
}

.search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    font-size: 1.2rem;
    transition: color 0.2s ease;
}

.search-btn:hover {
    color: var(--neon-blue);
}

/* Main Content */
.main-content {
    padding: 1rem 0.6rem;
    position: relative;
    z-index: 10;
}

/* Hero Section */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(26, 26, 37, 0.7);
    backdrop-filter: blur(5px);
    padding: 4rem 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    margin-bottom: 4rem;
}

.hero-section h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
    margin-bottom: 1rem;
}

.hero-section p {
    max-width: 800px;
    font-size: 1.2rem;
    color: #b0b0c0;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background: linear-gradient(45deg, var(--neon-green), var(--neon-blue));
    color: var(--bg-dark);
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 229, 255, 0.3);
    text-transform: uppercase;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
}

/* Categories Section */
.categories-section {
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: var(--text-light);
    text-shadow: 0 0 8px var(--neon-green);
    border-bottom: 2px solid var(--neon-green);
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
    display: inline-block;
}

.category-list {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
}

.category-list::-webkit-scrollbar {
    height: 8px;
}

.category-list::-webkit-scrollbar-thumb {
    background-color: var(--neon-blue);
    border-radius: 4px;
}

.category-list::-webkit-scrollbar-track {
    background-color: transparent;
}

.category-item {
    flex-shrink: 0;
    padding: 0.7rem 1.5rem;
    background: var(--bg-medium);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.category-item:hover {
    transform: translateY(-5px);
    background: linear-gradient(90deg, var(--neon-green), var(--neon-blue));
}

.category-item a {
    color: var(--text-light);
    font-weight: 700;
}

/* Game Grid */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.game-card {
    background: var(--bg-medium);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-hover-shadow);
}

.card-image-box {
    width: 100%;
    height: 200px;
    background-color: #2a2a47; /* Placeholder */
    overflow: hidden;
}

.card-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.game-card:hover .card-image-box img {
    transform: scale(1.1);
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--neon-green);
    margin-bottom: 0.5rem;
}

.card-content p {
    color: #b0b0c0;
}

/* Footer */
.page-footer {
    background: rgba(15, 15, 21, 0.7);
    backdrop-filter: blur(10px);
    padding: 2.5rem 0;
    text-align: center;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-nav a {
    color: var(--text-light);
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--neon-blue);
}

.footer-text {
    margin-top: 1rem;
    color: #777;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    .site-logo {
        font-size: 2rem;
    }
    .hero-section h2 {
        font-size: 2.5rem;
    }
    .hero-section p {
        font-size: 1rem;
    }
    .cta-button {
        padding: 0.8rem 2rem;
    }
    .search-container {
        width: 100%;
    }
    .search-input {
        width: 100%;
    }
}