@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap');

body {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: rgb(123, 157, 180);
    background: linear-gradient(to bottom, #1a1a1a, #2c3e50);
    min-height: 100vh;
}

a {
    color: rgb(161, 120, 206);
    text-decoration: underline;
}

header {
    text-align: center;
    padding: 0.3rem;
    background-color: rgba(0, 0, 0, 0.3);
}

header h1 {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    color: rgb(182, 137, 115);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
}

header .header-icon {
    width: 2.2rem;
    height: 2.2rem;
    max-width: 2.2rem;
    max-height: 2.2rem;
    object-fit: contain;
    box-sizing: border-box;
}

header p {
    color: rgb(150, 180, 200);
    font-size: 0.9rem;
    margin: 0.2rem 0 0;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-item {
    border: 1px solid rgba(123, 157, 180, 0.3);
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    overflow: visible;
    min-height: 350px;
}

.project-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(123, 157, 180, 0.3);
}

.project-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.play-itch-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.thumbnail {
    width: 100%;
    height: 225px;
    object-fit: cover;
    border-radius: 5px;
}

.project-item h2 {
    font-size: 1.5rem;
    margin: 0.5rem 0;
    color: rgb(170, 218, 250);
}

.project-item p {
    color: rgb(86, 127, 171);
    font-size: 1rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.5rem;
}

.tag {
    font-size: 0.8rem;
    color: rgb(150, 180, 200);
    background-color: rgba(123, 157, 180, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
}

.read-more {
    font-size: 0.8rem;
    color: rgb(200, 120, 160);
    text-decoration: underline;
    margin-top: 0.5rem;
}

.play-itch {
    font-size: 0.8rem;
    color: rgb(80, 200, 180);
    text-decoration: underline;
    margin-top: 0.5rem;
    display: block;
}

.project-details {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.project-details h2 {
    margin-bottom: 0.2rem;
}

.back-link {
    display: inline-block;
    margin: 0.2rem 0 1rem;
    color: rgb(123, 157, 180);
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
    color: rgb(150, 180, 200);
}

.project-image {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.video-container {
    margin-bottom: 1.5rem;
}

.video-container iframe {
    width: 100%;
    height: 600px;
    border-radius: 5px;
}

.video-container p {
    color: rgb(86, 127, 171);
    font-size: 1rem;
    margin: 0.5rem 0 0;
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.3);
    margin-top: 2rem;
}

.social-buttons {
    margin-top: 0.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-button {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    color: rgb(123, 157, 180);
    text-decoration: none;
    border: 1px solid rgba(123, 157, 180, 0.3);
    border-radius: 5px;
    transition: background-color 0.2s, color 0.2s;
}

.social-button:hover {
    background-color: rgba(123, 157, 180, 0.2);
    color: rgb(150, 180, 200);
}

.social-button i {
    margin-right: 0.5rem;
}

@media (max-width: 600px) {
    .project-grid {
        grid-template-columns: 1fr;
    }

    .project-item {
        min-height: 300px;
    }

    .social-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .video-container iframe {
        height: 300px;
    }

    .play-itch {
        margin-top: 0.3rem;
    }

    header h1 {
        font-size: 1.5rem;
    }

    header .header-icon {
        width: 1.8rem;
        height: 1.8rem;
        max-width: 1.8rem;
        max-height: 1.8rem;
    }
}