:root {
    --bg-color: #0f1115;
    --card-bg: #1a1d23;
    --header-bg: #16191e;
    --text-color: #e0e0e0;
    --accent-color: #4a90e2;
    --accent-hover: #357abd;
    --muted-text: #a0a0a0;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--header-bg);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.logo img {
    height: 40px;
    width: auto;
    border-radius: 4px;
}

.logo span {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 400;
    font-size: 0.95rem;
    transition: var(--transition);
}

nav a:hover {
    color: var(--accent-color);
}

/* Main Content */
main {
    padding: 40px 0;
    min-height: calc(100vh - 160px);
}

.page-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.page-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Home Section */
.hero {
    text-align: center;
    padding: 60px 0;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #4a90e2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.1rem;
    color: var(--muted-text);
    max-width: 700px;
    margin: 0 auto;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.game-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.05);
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-color: var(--accent-color);
}

.card-image {
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.game-card:hover .card-image img {
    scale: 1.05;
}

.card-info {
    padding: 20px;
}

.card-info h3 {
    margin-bottom: 8px;
    font-size: 1.4rem;
}

.card-info p {
    color: var(--muted-text);
    font-size: 0.9rem;
}

/* Game Detail */
.game-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

.game-icon {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.game-title-area h1 {
    font-size: 2.5rem;
}

.tagline {
    color: var(--accent-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.game-description {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 40px;
}

.game-description p {
    margin-bottom: 20px;
}

.game-description h3 {
    margin: 20px 0 10px;
    color: #fff;
}

.game-description ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.action-buttons {
    margin-top: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent-color);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--accent-hover);
}

.btn.disabled {
    background-color: #333;
    color: #666;
    cursor: not-allowed;
}

/* Gallery */
.gallery h2 {
    margin-bottom: 25px;
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.screenshot-grid img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.1);
}

.screenshot-grid img:hover {
    transform: scale(1.03);
    border-color: var(--accent-color);
}

/* Contact Section */
.contact-card {
    max-width: 600px;
    margin: 60px auto;
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
}

.contact-card h2 {
    margin-bottom: 15px;
}

.contact-info {
    margin-top: 30px;
    font-size: 1.1rem;
}

.contact-info a {
    color: var(--accent-color);
    text-decoration: none;
}

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    color: var(--muted-text);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    border-radius: 8px;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .game-header {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        gap: 15px;
    }
}
