:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --gray-bg: #333333; 
    --font-heading: 'Lora', serif;   
    --font-text: 'Poppins', sans-serif; 
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-text);
    line-height: 1.6;
}

h1, h2, h3, .logo {
    font-family: var(--font-heading);
    font-weight: 400;
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    color: #cccccc;
}

/* --- nav --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 50px;
}

.logo {
    font-size: 24px;
}

.navbar nav a {
    margin-left: 20px;
    font-size: 14px;
}

/* --- main --- */
.hero {
    text-align: center;
    padding: 100px 20px;
}

.hero h1 {
    font-size: 32px;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 10px 40px;
    border: 1px solid #fff;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 16px;
}

.btn:hover {
    background-color: #fff;
    color: #000;
}

.hero-buttons-bottom {
    display: flex;
    justify-content: center;
}

.btn-wide {
    padding: 10px 80px;
}

/* --- aboutme --- */
.about-section {
    background-color: var(--gray-bg);
    padding: 60px 20px;
    margin-top: 50px;
}

.about-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
}

.profile-image img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
}

.about-text p {
    font-size: 14px;
    margin-bottom: 30px;
    color: #e0e0e0;
}

.about-buttons {
    display: flex;
    gap: 15px;
}

.about-buttons .btn {
    font-size: 14px;
    padding: 8px 20px;
    border-color: #888;
    color: #ddd;
}

.about-buttons .btn:hover {
    background-color: #888;
    color: #000;
}

/* --- footer --- */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 50px;
    font-size: 12px;
    border-top: 1px solid #222;
}

.footer-center a {
    margin: 0 10px;
    font-size: 16px;
}

.footer-right a {
    text-decoration: underline;
}

/* --- resp --- */
@media (max-width: 768px) {
    .navbar, .footer {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }
    .about-container {
        flex-direction: column;
        text-align: center;
    }
    .about-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
}

.category-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 20px;
}

.games-section {
    background-color: var(--gray-bg);
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 80px; 
}

.games-section h2 {
    font-size: 32px;
    margin-bottom: 40px;
}

.project-card {
    display: inline-block;
    text-align: center;
    text-decoration: none;
    transition: transform 0.3s;
}

.project-card:hover {
    transform: scale(1.02);
}

.project-card img {
    width: 100%;
    max-width: 450px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.project-card h3 {
    margin-top: 15px;
    font-size: 24px;
    color: var(--text-color);
}

/* ---art --- */
.art-header {
    text-align: center;
    padding: 40px 20px 20px;
}

.art-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.art-subtitle {
    font-size: 12px;
    color: #aaaaaa;
    margin-bottom: 40px;
}

.art-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto 60px auto;
    padding: 0 20px;
}

.art-grid img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    background-color: var(--gray-bg); 
}

/* --- game --- */
.project-hero {
    text-align: center;
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
}

.project-hero h1 {
    font-size: 40px;
    margin-bottom: 30px;
}

.project-hero p {
    color: #dddddd;
    margin-bottom: 20px;
    font-size: 15px;
}

.bold-text {
    font-weight: bold;
    color: #ffffff;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    max-width: 100%;
    margin: 40px 0;
}

.project-gallery img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.about-project {
    text-align: center;
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
}

.about-project h2 {
    font-size: 36px;
    margin-bottom: 30px;
}

.about-project p {
    color: #dddddd;
    margin-bottom: 30px;
    font-size: 15px;
}

.play-link {
    font-family: var(--font-heading);
    color: #aaaaaa;
    text-decoration: underline;
    font-size: 18px;
}

.play-link:hover {
    color: #ffffff;
}

/* --- resp --- */
@media (max-width: 900px) {
    .art-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .project-gallery {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }
}

@media (max-width: 600px) {
    .category-buttons {
        flex-direction: column;
    }
    .art-grid {
        grid-template-columns: 1fr;
    }
}

/* --- other --- */
.other-projects {
    text-align: center;
    max-width: 1000px;
    margin: 80px auto;
    padding: 0 20px;
}

.other-project-card {
    margin-bottom: 60px;
    transition: transform 0.3s;
}

.other-project-card:hover {
    transform: scale(1.02);
}

.other-project-card img {
    width: 100%;
    height: auto;
    border: 1px solid #333; 
    margin-bottom: 20px;
}

.other-project-title {
    font-family: var(--font-heading);
    font-size: 24px;
    color: #aaaaaa;
    text-decoration: underline;
}

.other-project-title:hover {
    color: #ffffff;
}