/* --- Color Palette & Variables --- */
:root {
    --bg-dark: #121214;
    --card-bg: #1a1a1e;
    --accent-red: #da2c43;    /* Matches the Carnation Red */
    --accent-green: #3b7a3e;  /* Matches the Carnation Stem */
    --text-light: #eeeeee;
    --text-muted: #a0a0a5;
    --header-bg: #ffffff;    /* Matches the logo asset background */
}

/* --- Base Reset & Typography --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
}

/* --- Header & Branding --- */
header {
    background-color: var(--header-bg);
    border-bottom: 3px solid var(--accent-red);
    padding: 15px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.header-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.studio-logo {
    display: flex;
    align-items: center;
}

.studio-logo img {
    height: 60px; /* Scales the banner neatly in the header */
    width: auto;
    display: block;
}

/* --- Navigation --- */
nav a {
    color: #121214;
    text-decoration: none;
    font-weight: 600;
    margin-left: 25px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s ease;
}

nav a:hover {
    color: var(--accent-red);
}

/* --- Hero Section --- */
.hero {
    max-width: 800px;
    margin: 80px auto 60px auto;
    text-align: center;
    padding: 0 20px;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Main Layout Container --- */
.main-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.section-title {
    font-size: 2rem;
    margin-top: 40px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--card-bg);
    padding-bottom: 10px;
    letter-spacing: 0.03em;
}

/* --- Games Grid & Cards --- */
.games-grid {
    display: grid;
    /* Changed auto-fit to auto-fill and capped column width at 460px */
    grid-template-columns: repeat(auto-fill, minmax(320px, 460px)); 
    gap: 30px;
    margin-bottom: 60px;
}

.game-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    max-width: 460px; /* Keeps the card from getting wider than a standard capsule */
}

.game-img {
    width: 100%;
    height: auto; /* Changed from 200px fixed height so the image preserves its native ratio */
    background-color: #2a2a30;
    overflow: hidden;
}

.game-info {
    padding: 25px;
}

.game-info h3 {
    margin: 0 0 12px 0;
    font-size: 1.5rem;
}

.game-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
    min-height: 45px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    background-color: var(--accent-red);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    transition: background-color 0.2s ease;
}

.btn:hover {
    background-color: #b12033;
}

/* --- About & Contact Sections --- */
.about, #contact {
    margin-bottom: 60px;
    font-size: 1.1rem;
    color: #dcdcdc;
}

.about p, #contact p {
    margin-bottom: 15px;
}

.contact-details {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 6px;
    display: inline-block;
    margin-top: 10px;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--card-bg);
    margin-top: 40px;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    nav a {
        margin: 0 12px;
    }

    .hero h2 {
        font-size: 2.2rem;
    }
}