:root {
    --bg-dark: #050505;
    --bg-card: #121212;
    --primary: #b026ff;
    /* Neon Purple */
    --primary-glow: rgba(176, 38, 255, 0.6);
    --secondary: #00f0ff;
    /* Cyan */
    --secondary-glow: rgba(0, 240, 255, 0.6);
    --accent: #ffd700;
    /* Gold */
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Custom Cursor Glow */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(176, 38, 255, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    mix-blend-mode: screen;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--text-main);
    text-shadow: 0 0 10px var(--primary-glow);
}

.highlight {
    color: var(--primary);
    text-shadow: 0 0 15px var(--primary);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-item {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
}

.nav-item:hover,
.nav-item.active {
    color: var(--text-main);
    text-shadow: 0 0 8px currentColor;
}

.nav-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--secondary);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
    box-shadow: 0 0 8px var(--secondary);
}

.nav-item:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary), #8a2be2);
    color: white;
    box-shadow: 0 0 20px rgba(176, 38, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(176, 38, 255, 0.6);
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-secondary:hover {
    border-color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    color: var(--text-main);
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 0 20px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: zoomIn 20s infinite alternate;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(5, 5, 5, 0.4) 0%, rgba(5, 5, 5, 0.95) 100%);
}

.hero-content {
    max-width: 800px;
    z-index: 1;
}

.hero h1 {
    font-size: 80px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    background: linear-gradient(to right, #fff, #ccc);
    -webkit-background-clip: text;
    background-clip: text;
    /* Basic fallback text color if gradient clip fails or just pure white */
    color: white;
}

.glitch {
    position: relative;
}

.hero p {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-large {
    padding: 16px 40px;
    font-size: 16px;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.btn-outline:hover {
    background: var(--secondary);
    color: #000;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.5);
}

/* Categories */
.categories {
    padding: 100px 50px;
    background: var(--bg-dark);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: 2px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.category-card {
    background: var(--bg-card);
    height: 300px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    /* Added */
    color: var(--text-main);
    /* Ensure text stays white */
}

/* ... */

.game-card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: var(--transition);
    background: var(--bg-card);
    display: block;
    /* Ensure anchor behaves like block */
    text-decoration: none;
    /* Added */
    color: var(--text-main);
    /* Added */
}

.category-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px -10px var(--primary-glow);
}

.d-icon {
    font-size: 60px;
    margin-bottom: 20px;
    color: var(--secondary);
    transition: var(--transition);
    filter: drop-shadow(0 0 10px var(--secondary-glow));
}

.category-card:hover .d-icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--primary);
    filter: drop-shadow(0 0 15px var(--primary-glow));
}

.category-card h3 {
    font-size: 24px;
    z-index: 1;
    margin-bottom: 10px;
}

.category-card p {
    color: var(--text-muted);
    font-size: 14px;
    z-index: 1;
}

/* Featured Games */
.featured-games {
    padding: 50px 50px 100px;
    background: var(--bg-dark);
}

.games-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.game-card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: var(--transition);
    background: var(--bg-card);
    display: block;
    text-decoration: none;
    color: var(--text-main);
}

.game-card:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.game-img {
    height: 250px;
    width: 100%;
    overflow: hidden;
}

.game-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.game-card:hover .game-img img {
    transform: scale(1.1);
}

.game-info {
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.game-info h4 {
    font-size: 20px;
    font-weight: 700;
}

.badge {
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 800;
    background: var(--primary);
    color: white;
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Footer */
.footer {
    background: #000;
    padding: 80px 50px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-brand h2 {
    font-size: 30px;
    margin-bottom: 10px;
}

.footer-brand p {
    color: var(--text-muted);
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 30px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    color: #444;
    font-size: 12px;
}

@keyframes zoomIn {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 50px;
    }

    .nav-links,
    .nav-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-btns {
        flex-direction: column;
    }

    .btn-large {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 15px 20px;
    }

    .logo {
        font-size: 22px;
    }

    .hero {
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero p {
        font-size: 16px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .categories,
    .featured-games {
        padding: 60px 20px;
    }

    /* Force single column for narrow screens to avoid horizontal scroll or squishing */
    .category-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .games-carousel {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer {
        padding: 50px 20px 20px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .footer-links a {
        margin-left: 0;
        display: block;
        padding: 10px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
    }
}