:root {
    --primary-color: #7b2cbf;
    --secondary-color: #3a86ff;
    --accent-color: #00e5ff;
    --dark-bg: #121212;
    --darker-bg: #0a0a0a;
    --card-bg: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --gradient: linear-gradient(to bottom, #7b2cbf, #00e5ff);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 800 800'%3E%3Cg fill='none' stroke='%23320A5A' stroke-width='1'%3E%3Cpath d='M769 229L1037 260.9M927 880L731 737 520 660 309 538 40 599 295 764 126.5 879.5 40 599-197 493 102 382-31 229 126.5 79.5-69-63'/%3E%3Cpath d='M-31 229L237 261 390 382 603 493 308.5 537.5 101.5 381.5M370 905L295 764'/%3E%3Cpath d='M520 660L578 842 731 737 840 599 603 493 520 660 295 764 309 538 390 382 539 269 769 229 577.5 41.5 370 105 295 -36 126.5 79.5 237 261 102 382 40 599 -69 737 127 880'/%3E%3Cpath d='M520-140L578.5 42.5 731-63M603 493L539 269 237 261 370 105M902 382L539 269M390 382L102 382'/%3E%3Cpath d='M-222 42L126.5 79.5 370 105 539 269 577.5 41.5 927 80 769 229 902 382 603 493 731 737M295-36L577.5 41.5M578 842L295 764M40-201L127 80M102 382L-261 269'/%3E%3C/g%3E%3Cg fill='%2301AECF'%3E%3Ccircle cx='769' cy='229' r='5'/%3E%3Ccircle cx='539' cy='269' r='5'/%3E%3Ccircle cx='603' cy='493' r='5'/%3E%3Ccircle cx='731' cy='737' r='5'/%3E%3Ccircle cx='520' cy='660' r='5'/%3E%3Ccircle cx='309' cy='538' r='5'/%3E%3Ccircle cx='295' cy='764' r='5'/%3E%3Ccircle cx='40' cy='599' r='5'/%3E%3Ccircle cx='102' cy='382' r='5'/%3E%3Ccircle cx='127' cy='80' r='5'/%3E%3Ccircle cx='370' cy='105' r='5'/%3E%3Ccircle cx='578' cy='42' r='5'/%3E%3Ccircle cx='237' cy='261' r='5'/%3E%3Ccircle cx='390' cy='382' r='5'/%3E%3C/g%3E%3C/svg%3E"),
                radial-gradient(circle at 80% 40%, rgba(123, 44, 191, 0.15), transparent 40%),
                radial-gradient(circle at 20% 70%, rgba(0, 229, 255, 0.12), transparent 30%);
    background-repeat: repeat, no-repeat, no-repeat;
    background-size: 800px 800px, 100% 100%, 100% 100%;
    background-position: 0 0, center center, center center;
    z-index: -10;
    animation: space-bg 60s linear infinite;
}

@keyframes space-bg {
    0% {
        background-position: 0 0, center center, center center;
    }
    100% {
        background-position: 800px 800px, center center, center center;
    }
}

/* Remove animated stars */
@keyframes twinkle {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

.stars {
    display: none; /* Hide the stars */
}

.star {
    display: none; /* Hide the stars */
}

/* Add moving dots styles */
.dots-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -5;
    overflow: hidden;
}

.moving-dot {
    position: absolute;
    background-color: #fff;
    border-radius: 50%;
    opacity: 0.6;
}

/* Header Styles */
header {
    background-color: var(--darker-bg);
    padding: 1rem 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

.domain {
    font-size: 0.75em;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 400;
    font-size: 1rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s;
}

nav a:hover, nav a.active {
    color: var(--text-primary);
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient);
    border-radius: 3px;
}

/* Main Content Styles */
main {
    flex: 1;
    padding: 2rem 5%;
}

/* Section Styles */
.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    font-family: 'Orbitron', sans-serif;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

/* Game Grid Styles */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

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

.game-thumbnail {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.game-card h3 {
    margin: 1rem 1.5rem 0.5rem 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.game-description {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    line-height: 1.4;
}

.game-meta {
    display: flex;
    flex-direction: column;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 0 1.5rem 1.5rem;
}

/* Categories Section */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.category-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    background: linear-gradient(145deg, #242424, #1a1a1a);
}

.category-card i {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.category-card h3 {
    margin-bottom: 0.5rem;
}

.category-card span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    nav ul {
        gap: 1rem;
    }
    
    .search-bar {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    nav ul {
        gap: 0.7rem;
        font-size: 0.9rem;
    }
    
    .game-grid, .category-grid {
        grid-template-columns: 1fr;
    }
}