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

.alt-section {
    background-color: #ffece0;
    padding: 60px 30px;
    border-top: 3px solid #000;
    margin-top: 60px;
}

.alt-section .section-intro {
    color: #000;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.case-study-header {
    background-color: var(--main-color);
    padding: 60px 40px;
    border: 3px solid #000;
    box-shadow: -6px -6px 0px #000;
    margin-bottom: 60px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.header-text {
    flex: 1;
    min-width: 300px;
}

.project-title {
    font-family: var(--header-font);
    font-size: 3em;
    color: var(--text-color);
    margin-bottom: 10px;
}

.project-subtitle {
    font-family: var(--header-font);
    font-size: 1.2em;
    color: var(--text-color);
    margin-bottom: 20px;
}

.header-description {
    font-family: var(--header-font);
    font-size: 1em;
    color: var(--text-color);
    max-width: 600px;
    font-style: italic;
}

.header-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    background-color: #fff;
    color: var(--main-color);
    font-family: var(--header-font);
    font-size: 1.1em;
    padding: 12px 25px;
    border: 3px solid #000;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: -3px -3px 0px #000;
}

.cta-button:hover {
    transform: translate(3px, 3px);
    box-shadow: -6px -6px 0px #000;
}

@keyframes slide-in {
    from {
        width: 0;
        opacity: 0;
    }

    to {
        width: 80px;
        opacity: 1;
    }
}
.project-description {
    color: #000
}

.demo-container {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.demo-text {
    flex: 1;
    min-width: 300px;
}

.demo-text p {
    font-size: 1.2em;
    line-height: 1.6em;
    margin-bottom: 20px;
}

.demo-features {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.demo-visual {
    /* 2 column design */
    position: relative;
    overflow: hidden;
    height: 350px;
    flex: 1;
    min-width: 300px;
    border: 3px solid #000;
    aspect-ratio: 16 / 9;
    width: 100%;
}

/* Design Process */
/* .timeline-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
    margin: o auto;
}

.timeline-images img {
    width: 250px;
    height: 100%;
    object-fit: contain;
    display: block;
    align-items: center;
} */

.design-timeline {
    display: flex;
    flex-direction: row;
    gap: 30px;
    margin-top: 50px;
}

.timeline-item {
    /* display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px; */
    padding: 30px;
    text-align: left;
    border: 3px solid #000;
    background-color: #fff;
    box-shadow: -3px -3px 0px #000;
    transition: transform 0.3s ease;
}

/* .timeline-item img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    display: block;
    margin: auto;
    padding: 40px;
} */

.timeline-item:hover {
    transform: translate(3px, 3px);
}

.version-number {
    font-size: 2em;
    background-color: var(--main-color);
    color: #fff;
    font-weight: bold;
    font-family: var(--header-font);
    font-size: 1.2em;
    flex-shrink: 0;
    width: 55px;
    text-align: center;
    padding: 10px;
}

.timeline-content h3 {
    font-family: var(--header-font);
    font-size: 1.4em;
    color: var(--text-color);
    margin-bottom: 15px;
}

.version-date {
    font-size: 1.2em;
    color: #000;
    margin-bottom: 15px;
    font-weight: 600;
}

.timeline-features {
    padding: 0;
}

.timeline-features li {
    padding: 5px 0;
    color: #333;
    font-size: 1em;
}

.timeline-image {
    max-width: 100%;
    height: 500px;
    object-fit: contain;
}

/* Testing Results */
.testing-section {
    background-color: #fff;
}

.test-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.test-card {
    background-color: #fff;
    border: 3px solid #000;
    box-shadow: -3px -3px 0px #000;
    padding: 25px;
    transition: transform 0.3s ease;
}

.test-card:hover {
    transform: translate(3px, 3px);
}

.test-label {
    font-family: var(--header-font);
    font-size: 1em;
    background-color: var(--main-color);
    color: #fff;
    padding: 6px 12px;
    display: inline-block;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.test-card h3 {
    font-family: var(--header-font);
    font-size: 1.2em;
    margin-bottom: 15px;
    color: var(--text-color);
}

.test-insights {
    list-style: none;
    padding: 0;
}

.test-insights li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    color: #333;
}

.test-insights li::before {
    content: "\279E";
    position: absolute;
    left: 0;
    color: var(--main-color);
    font-weight: bold;
}

/* Challenges Grid */
.challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.challenge-card {
    background-color: #fff;
    border: 3px solid #000;
    box-shadow: -3px -3px 0px #000;
    padding: 30px;
    transition: transform 0.3s ease;
}

.challenge-card:hover {
    transform: translate(3px, 3px);
}

.challenge-number {
    font-family: var(--header-font);
    font-size: 1.8em;
    color: var(--main-color);
    margin-bottom: 15px;
}

.challenge-card h3 {
    font-family: var(--header-font);
    font-size: 1.3em;
    margin-bottom: 15px;
    color: var(--text-color);
}

.solution-tag {

    background-color: var(--main-color);
    color: #fff;
    padding: 4px 10px;
    font-size: 0.8em;
    font-weight: 600;
    border: 2px solid var(--main-color);
    display: inline-block;
    margin-top: 15px;
    text-transform: uppercase;
}

/* Game Components */
.component-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.component-item {
    border: 3px solid #000;
    box-shadow: -3px -3px 0px #000;
    /* overflow: hidden; */
    transition: transform 0.3s ease;
}

.component-item:hover {
    transform: translate(3px, 3px);
}

.component-info {
    padding: 20px;
        background-color: #ffece0;
}

.component-info h4 {
    font-family: var(--header-font);
    font-size: 1.1em;
    margin-bottom: 10px;
    color: #000;
}

.component-image {
    height: auto;
    width: auto;
    max-width: 350px;
    padding: 5px;
    border-bottom: #000 solid 3px;
    /* border: 3px solid #000;
    box-shadow: -3px -3px 0px #000; */
    transition: transform 0.3s ease;
}

.component-image img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.component-info p {
    font-size: 0.95em;
    color: #555;
    
}

/* Component Gallery */
.gallery-wrap {
    padding: 0 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.gallery-grid a {
    display: block;
    overflow: hidden;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .25s ease;
}

.gallery-grid a:hover img {
    transform: scale(1.02);
}

/* Learning Points */
.learning-grid {
    display: flex;
        overflow-x: auto;
        gap: 30px;
        padding: 20px 0;
        scroll-behavior: smooth;
        scrollbar-color: #ff9f63 #fff;
}

::-webkit-scrollbar-thumb:hover {
    color: yellow;
}

.learning-card {
    min-width: 350px;
    background-color: #fff;
    border: 3px solid #000;
    box-shadow: -3px -3px 0px #000;
    padding: 30px;
    transition: transform 0.3s ease;
}

.learning-card:hover {
    transform: translate(3px, 3px);
}

.learning-icon {
    color: var(--main-color);
    margin: auto 0;
}

.learning-icon img {
    height: 15%;
    width: 15%;
}

.learning-card h3 {
    font-family: var(--header-font);
    font-size: 1.3em;
    margin-bottom: 15px;
    color: var(--text-color);
}

/* Team Collaboration */
/* .team-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 25px;
            margin-top: 40px;
        }

        .team-member {
            background-color: #fff;
            border: 3px solid #000;
            box-shadow: -3px -3px 0px #000;
            padding: 25px;
            text-align: center;
            transition: transform 0.3s ease;
        }

        .team-member:hover {
            transform: translate(3px, 3px);
        }

.member-name {
    font-family: var(--header-font);
    font-size: 1.2em;
    color: var(--main-color);
    margin-bottom: 15px;
}

.member-contributions {
    list-style: none;
    padding: 0;
    text-align: left;
}

.member-contributions li {
    padding: 5px 0;
    font-size: 0.9em;
    color: #555;
} */

/* Call to Action */
.cta-section {
    background-color: var(--main-color);
    color: var(--text-color);
    text-align: center;
    padding: 60px 40px;
    border: 3px solid #000;
    box-shadow: -3px -3px 0px #000;
    margin-top: 80px;
}

.cta-section h2 {
    font-family: var(--header-font);
    font-size: 2.2em;
    margin-bottom: 20px;
}

.cta-section .cta-button {
    background-color: #fff;
    color: var(--main-color);
    margin-top: 20px;
}

@media (max-width: 768px) {
    .project-title {
        font-size: 2.2em;
    }

    .header-content {
        flex-direction: column;
        text-align: left;
    }

    .timeline-item {
        flex-direction: column;
        text-align: left;
    }

    .demo-visual  {
        width: auto;
        height: auto;

    }
    .gallery-wrap {
    padding: 0;
}

    .gallery-grid {
    grid-template-columns: 1fr;
}

    .gallery-grid img {
    align-items: center;
    display: block;
    object-fit: cover;
    transition: transform .25s ease;
}

    .version-number {
        width: auto;
        margin-bottom: 20px;
    }

    .design-timeline {
        display: flex;
        flex-direction: column;
    }

    .overview-cards,
    .challenges-grid,
    .learning-grid {
        grid-template-columns: 1fr;
    }
}