:root {
    --primary-color: #1a73e8;
    --bg-color: #f4f6f8;
    --card-bg: #fff;
    --text-color: #333;
    --section-gap: 40px;
    --border-radius: 12px;
    --shadow: 0 4px 12px rgba(0,0,0,0.05);
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

header {
    text-align: center;
    padding: 60px 20px 40px;
    background: var(--primary-color);
    color: #fff;
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
}

header h1 {
    margin: 0 0 10px;
    font-size: 2.5rem;
}

header p {
    margin: 5px 0;
    font-weight: 500;
}

.contact a {
    color: #fff;
    text-decoration: underline;
    transition: color 0.3s;
}

.contact a:hover {
    color: #ffd700;
}

main {
    max-width: 900px;
    margin: auto;
    padding: 40px 20px;
}

.section {
    margin-bottom: var(--section-gap);
    background: var(--card-bg);
    padding: 30px 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.section h2 {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

ul {
    padding-left: 20px;
    margin: 0;
}

li {
    margin-bottom: 12px;
}

.projects li {
    list-style: none;
    margin-bottom: 15px;
    background: #f0f4ff;
    padding: 15px 20px;
    border-radius: 8px;
    transition: background 0.3s;
}

.projects li:hover {
    background: #dbe5ff;
}

.projects a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.projects a:hover {
    text-decoration: underline;
}

.skills p {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skills span {
    background: var(--primary-color);
    color: #fff;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.skills span:hover {
    background: #155ab6;
}

@media (max-width: 600px) {
    header h1 {
        font-size: 2rem;
    }
    .section {
        padding: 25px 15px;
    }
}
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.game-header {
    background: var(--primary-color);
    color: white;
    padding: 40px 0;
}

.game-header h1 {
    margin: 0;
    font-size: 2.2rem;
}

.meta {
    opacity: 0.9;
    margin-top: 5px;
}

.links {
    margin-top: 15px;
    display: flex;
    gap: 15px;
}

.links a {
    color: white;
    text-decoration: underline;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.card {
    background: var(--card-bg);
    padding: 18px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.card h2 {
    margin-top: 0;
    font-size: 1.1rem;
}

.card ul {
    margin: 0;
    padding-left: 18px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags span {
    background: var(--primary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.85rem;
}

.wide {
    grid-column: 1 / -1;
}

.media {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.video, .screens {
    background: #f0f4ff;
    padding: 20px;
    border-radius: 8px;
    min-height: 150px;
}
.links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 10px;
}

.project-card {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 12px 14px;
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--shadow);

    text-decoration: none;
    color: var(--text-color);

    transition: 0.2s ease;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.project-card img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.project-card h3 {
    margin: 0;
    font-size: 1rem;
}

.project-card p {
    margin: 2px 0 0;
    font-size: 0.85rem;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.screenshots {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.screenshots img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .screenshots {
        grid-template-columns: 1fr;
    }
}

.links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 14px;
    border-radius: 10px;

    text-decoration: none;
    font-weight: 600;
    font-size: 14px;

    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);

    color: #fff;

    transition: 0.2s ease;
}

.links a:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.links a:active {
    transform: translateY(0px);
}

@media (max-width: 768px) {

    .game-header {
        padding: 25px 0;
        text-align: center;
    }

    .game-header h1 {
        font-size: 1.6rem;
    }

    .meta {
        font-size: 0.9rem;
    }

    .links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 14px;
    }

    .card h2 {
        font-size: 1rem;
    }

    .tags {
        gap: 6px;
    }

    .tags span {
        font-size: 0.8rem;
        padding: 4px 7px;
    }

    .media {
        grid-template-columns: 1fr;
    }
}