/* --- CSS Variables --- */
:root {
    --bg-color: #0D0D12;
    --surface-color: #1A1A22;
    --text-primary: #EFEFEF;
    --text-secondary: #9E9EAE;
    --accent-purple: #6A0DAD;
    --accent-purple-light: #8034C7;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* --- Base Reset & Setup --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    font-family: var(--font-body);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
}

/* --- Reusable Components --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 120px 2rem;
    text-align: center; /* Center text for all sections */
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

h2 {
    font-size: clamp(2.2rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 3.5rem; /* Increased bottom margin */
}

.cta-button {
    display: inline-block;
    background-color: transparent;
    border: 2px solid var(--accent-purple);
    color: var(--accent-purple);
    padding: 12px 32px;
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-body);
    transition: background-color 0.3s ease, color 0.3s ease;
    text-transform: uppercase;
}

.cta-button:hover {
    background-color: var(--accent-purple);
    color: var(--text-primary);
}

/* --- Animation --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    z-index: 100;
    background: transparent;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: center;
}

.nav-content {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.75rem;
    text-decoration: none;
    color: var(--text-primary);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-purple);
}

/* --- Hero Section --- */
#home {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
    background: linear-gradient(rgba(13, 13, 18, 0.7), var(--bg-color)), url('https://source.unsplash.com/random/1920x1080/?blueprint,wireframe') no-repeat center center/cover;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    font-weight: 400;
    /* ** FIX **: This centers the paragraph block itself, not just the text inside it. */
    margin: 0 auto; 
}

/* --- Project Section (was Games) --- */
#project {
    background-color: var(--bg-color);
}

.game-card {
    background-color: var(--surface-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    max-width: 650px; /* Set a max-width for the single card */
    margin: 0 auto; /* Center the card */
    text-align: center;
}

.game-card img {
    width: 100%;
    height: auto; /* Allow image to scale proportionally */
    display: block;
    background-color: #2a2a33; 
}

.game-card-content {
    padding: 2.5rem;
}

.game-card h3 {
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.game-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.game-card .status {
    display: inline-block;
    border: 1px solid var(--text-secondary);
    color: var(--text-secondary);
    padding: 0.3rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* --- Philosophy Section --- */
#philosophy {
    background-color: var(--surface-color);
}

.philosophy-content {
    max-width: 700px; /* Constrain the width of this centered section */
    margin: 0 auto;
}

.philosophy-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.philosophy-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.philosophy-image img {
    width: 100%;
    max-width: 500px; /* Control max size of image */
    height: auto;
    opacity: 0.7;
    display: block;
    margin: 2rem auto 0 auto; /* Center the image */
}

/* --- Footer --- */
footer {
    padding: 4rem 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
}

.footer-link {
    color: var(--accent-purple-light);
    text-decoration: none;
    font-weight: 600;
}
.footer-link:hover {
    text-decoration: underline;
}

.copyright {
    margin-top: 1rem;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
}