:root {
    --color-bg: #0a0a0a;
    --color-surface: #141414;
    --color-primary: #00f0ff;
    /* Cyan neon */
    --color-secondary: #ff0055;
    /* Pink/Red neon */
    --color-accent-yellow: #FFD700;
    --color-accent-green: #00FF00;
    --color-text: #ffffff;
    --color-text-dim: #888888;
    --font-main: 'Inter', sans-serif;
    --font-display: 'Orbitron', sans-serif;
    --grid-color: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Grid Background */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.8rem;
    color: var(--color-accent-yellow);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 05px 0px 3px rgba(255, 215, 0, 0.5);
    text-decoration: none;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.main-nav a {
    color: var(--color-text);
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--color-accent-yellow);
}

.header-actions {
    display: flex;
    gap: 1rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-text);
}

/* Buttons */
.btn-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--color-text);
    background: transparent;
    border: 1px solid var(--color-text);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.btn-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-custom:hover::before {
    left: 100%;
}

.btn-custom.primary {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #000;
}

.btn-custom.primary:hover {
    background: var(--color-accent-yellow);
    border-color: var(--color-accent-yellow);
    color: #000;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

/* Specific override for Explore Games button in Hero */
.hero-actions .btn-custom.primary {
    background-color: var(--color-accent-yellow);
    border-color: var(--color-accent-yellow);
    color: #000;
}

.hero-actions .btn-custom.primary:hover {
    background-color: #fff;
    border-color: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.btn-custom.small {
    padding: 0.5rem 2rem;
    font-size: 0.8rem;
}

.btn-custom.large {
    padding: 0.7rem 2.5rem;
    font-size: 1.0rem;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: url('assets/hero_background.png') no-repeat center center/cover;
    margin-top: -80px;
    /* Offset header height */
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.3), var(--color-bg));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(0, 240, 255, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--color-text-dim);
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Games Section */
.games-section {
    padding: 8rem 0;
}

.section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.header-line {
    width: 60px;
    height: 4px;
    background: var(--color-secondary);
    margin: 0 auto;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

@media (max-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .games-grid {
        grid-template-columns: 1fr;
    }
}

.game-card {
    position: relative;
    background: var(--color-surface);
    border: 1px solid var(--card-border);
    padding: 1rem;
    transition: transform 0.3s, border-color 0.3s;
}

.game-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-primary);
}

.card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    margin-bottom: 1rem;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.game-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card-content p {
    color: var(--color-text-dim);
    margin-bottom: 1.5rem;
}

/* Fancy Corners */
.card-corner {
    position: absolute;
    width: 25px;
    height: 25px;
    border: 3px solid var(--color-primary);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0.6;
    z-index: 10;
    pointer-events: none;
}

.game-card:hover .card-corner {
    opacity: 1;
    width: 40px;
    height: 40px;
    border-color: var(--color-accent-yellow);
    filter: drop-shadow(0 0 5px var(--color-accent-yellow)) drop-shadow(0 0 10px var(--color-accent-yellow));
    box-shadow: none;
}

.card-corner.top-left {
    top: -6px;
    left: -6px;
    border-right: none;
    border-bottom: none;
}

.card-corner.bottom-right {
    bottom: -6px;
    right: -6px;
    border-left: none;
    border-top: none;
}

/* Store Badges */
.store-badges {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.store-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s;
    color: var(--color-text);
}

.store-link:hover {
    background: var(--color-accent-yellow);
    color: #000;
    transform: scale(1.1);
}

.store-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Footer */
footer {
    background: #000;
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--color-accent-yellow);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    display: block;
    text-decoration: none;
}

.footer-col h4 {
    font-family: var(--font-display);
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    color: var(--color-text-dim);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--color-primary);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {

    .main-nav,
    .header-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Game Category Tags */
.game-meta span {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--card-border);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--color-text);
    transition: all 0.3s ease;
}

.game-meta span:hover {
    background: var(--color-primary);
    color: #000;
    border-color: var(--color-primary);
    transform: translateY(-2px);
}