/* ==============================
   PROJECT PAGE – HERO
================================= */

.project-hero {
    background-color: var(--about-background);
    color: black;
    text-align: center;
    padding: 80px 20px;
}

.project-hero h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

.project-hero p {
    font-size: 18px;
}

/* ==============================
   PROJECT PAGE – OVERVIEW
================================= */

.project-overview {
    background-color: var(--education-background);
    color: black;
    padding: 50px 10%;
    text-align: center;
}

.project-overview h2 {
    margin-bottom: 30px;
}

.overview-video {
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
    background-color: #333333;
    margin: 0 auto 30px;
}

.project-overview > p {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==============================
   PROJECT PAGE – ABOUT
================================= */

.project-about {
    background-color: var(--about-background);
    color: black;
    padding: 50px 10%;
}

.project-about > h2 {
    text-align: center;
    margin-bottom: 40px;
}

.project-about-content {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.project-about-description {
    flex: 2;
}

.project-about-details {
    flex: 1;
}

.project-about-description h3 {
    margin-bottom: 10px;
}

.project-about-description p {
    line-height: 1.6;
    margin-bottom: 30px;
}

.project-detail {
    margin-bottom: 30px;
}

.project-detail h3 {
    margin-bottom: 8px;
}

.project-detail p {
    line-height: 1.5;
}

/* ==============================
   PROJECT PAGE – ITCH.IO
================================= */

.project-itch {
    background-color: var(--education-background);
    color: black;
    padding: 50px 10%;
    text-align: center;
}

.project-itch h2 {
    margin-bottom: 30px;
}

.itch-game-embed {
    width: 100%;
    max-width: 1152px;
    margin: 0 auto;
}

.itch-page-embed {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.itch-embed iframe {
    display: block;
    width: 100%;
    border: none;
}

/* ==============================
   PROJECT PAGE – DEVELOPMENT
================================= */

.project-development {
    background-color: var(--about-background);
    color: black;
    padding: 50px 10%;
}

.project-development > h2 {
    text-align: center;
    margin-bottom: 40px;
}

.development-section {
    margin-bottom: 45px;
}

.development-section h3 {
    margin-bottom: 15px;
}

.development-section p {
    line-height: 1.6;
    margin-bottom: 20px;
}

/* ==============================
   PROJECT PAGE – GALLERY
================================= */

.project-gallery {
    background-color: var(--education-background);
    color: black;
    padding: 50px 10%;
}

.project-gallery > h2 {
    text-align: center;
    margin-bottom: 40px;
}

.gallery-carousel {
    display: flex;
    align-items: center;
    gap: 20px;
}

.gallery-track {
    flex: 1;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 9;
}

.gallery-item {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #333333;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.gallery-item.active {
    opacity: 1;
    visibility: visible;
}

.gallery-item img,
.gallery-item iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
}

.gallery-item img {
    object-fit: contain;
}

.gallery-arrow {
    background-color: #4D4D4D;
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.gallery-arrow:hover {
    background-color: #333333;
}

/* ==============================
   PROJECT PAGE – REFLECTION
================================= */

.project-reflection {
    background-color: var(--about-background);
    color: black;
    padding: 50px 10%;
}

.project-reflection > h2 {
    text-align: center;
    margin-bottom: 30px;
}

.reflection-content {
    max-width: 1000px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ==============================
   PROJECT PAGE – MOBILE LAYOUT
================================= */

@media (max-width: 700px) {
    .project-about-content {
        flex-direction: column;
        gap: 20px;
    }

    .project-about-description,
    .project-about-details {
        width: 100%;
    }

    .gallery-carousel {
        gap: 8px;
    }

    .gallery-arrow {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}