/* style.css */

/* --- Google Font & Root Variables --- */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Rajdhani:wght@400;600&display=swap');

:root {
    --primary-color: #00f6ff;
    --background-color: #0a0a14;
    --surface-color: #1a1a2e;
    --text-color: #e0e0e0;
    --shadow-color: rgba(0, 246, 255, 0.4);
    --dark-shadow: rgba(0, 0, 0, 0.5);
}

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

body {
    font-family: 'Rajdhani', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* --- Header & Navigation --- */
.main-header {
    background-color: var(--surface-color);
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 2px 20px var(--shadow-color);
    padding: 0 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
}

.nav-logo a {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    text-transform: uppercase;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 10px 5px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--primary-color);
    font-weight: 700;
}

.nav-links a.active::after {
    width: 100%;
}

/* --- Hero Section (Home Page) --- */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 60vh;
    padding: 40px 20px;
    background: linear-gradient(rgba(10, 10, 20, 0.8), rgba(10, 10, 20, 1)), url(https://images.unsplash.com/photo-1542751371-adc38448a05e?q=80&w=2070) center/cover no-repeat;
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    margin-bottom: 10px;
    text-shadow: 0 0 15px var(--shadow-color);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    max-width: 600px;
}

.search-bar {
    width: 100%;
    max-width: 500px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 15px 20px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    color: var(--text-color);
    background-color: var(--surface-color);
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    outline: none;
    transition: box-shadow 0.3s ease;
}

.search-bar input:focus {
    box-shadow: 0 0 15px var(--shadow-color);
}

/* --- Main Content & Game Grid --- */
.main-content {
    padding: 50px 5%;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.game-card {
    background: var(--surface-color);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: 0 5px 15px var(--dark-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.game-card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.game-card-content {
    padding: 15px;
    flex-grow: 1;
}

.game-card-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 5px;
}

/* --- Footer --- */
.main-footer {
    background: var(--surface-color);
    text-align: center;
    padding: 20px;
    margin-top: 50px;
    border-top: 1px solid var(--primary-color);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 15px;
    }

    .nav-links {
        margin-top: 15px;
        gap: 15px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }
}