/* Header */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

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

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

.header-cta {
    margin: 20px 0;
}

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

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

.play-icon {
    margin-left: 10px;
    font-size: 0.9em;
}

.project-info-alt {
    padding: 60px 30px;
}

/* .projecr-intro {
    color: aliceblue;
} */

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

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

    to {
        width: 60px;
        opacity: 1;
    }
}

/*Demo Video*/
.game-demo {
    margin: 60px 0;
}

.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-text p strong  {
    color: var(--main-color);
} */

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

.feature-tag {
    background-color: rgba(120, 61, 223, 0.1);
    color: var(--main-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    border: 3px solid var(--main-color);
}

.demo-cta {
    display: inline-block;
    background-color: var(--main-color);
    color: white;
    padding: 12px 25px;
    border: 3px solid #000;
    text-decoration: none;
    font-weight: bold;
    font-family: var(--header-font);
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: -3px -3px 0px #000;
}

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

.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%;
}

/* Video */
.video-js {
    width: 100%;
    height: 350px;
}

/* Main control bar background */
.vjs-control-bar {
    background-color: var(--main-color) !important;
}

/* Text/icons inside the control bar */
.vjs-control-bar .vjs-control {
    color: white !important;
}

/* Play button (in the middle before video starts) */
.video-js .vjs-big-play-button {
    background-color: var(--main-color) !important;
    border: 3px solid var(--main-color) !important;
    border-radius: 50%;
    font-size: 2em;
    width: 80px;
    height: 80px;
}

/* Play icon */
.video-js .vjs-big-play-button .vjs-icon-placeholder:before {
    color: #fff;
}

/* Version Comparison */
.version-evolution {
    padding: 60px 30px;
}

.placeholder-content img {
    width: 100%;
    height: 165px;
}

.version-block {
    flex: 0 0 45%;
    min-height: 490px;
    max-width: 30%;
    background-color: #fff;
    border: 3px solid #000;
    box-shadow: -3px -3px 0px #000;
    padding: 20px;
    text-align: left;
    transition: transform 0.3s ease;
}

.version-block:hover {
    transform: translate(3px, 3px);
}

.version-comparison-v2 {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 40px;
}

.version-meta h3 {
    font-family: var(--header-font);
    margin: 0;
    font-size: 1.4em;
    color: #000;
}

.version-tag {
    font-size: 0.9em;
    color: #fff;
    background-color: var(--main-color);
    display: inline-block;
    padding: 2px 10px;
    margin-top: 5px;
    font-weight: 600;
    text-transform: uppercase;
}

.version-img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    display: block;
}

.version-list {
    padding-left: 20px;
    font-size: 1em;
    line-height: 1.5em;
    color: #333;
}

.version-list li {
    margin-bottom: 8px;
}

.version-arrow {
    font-size: 4em;
    color: var(--main-color);
    font-family: var(--header-font);
    margin: 0 5px;
    align-self: center;
}

/* Swiper Styling */    
.mySwiper {
    max-width: 100%;
    width: 100%;
    margin: 20px auto;
    position: relative;
}  

.swiper {
    position: relative; width: 100%;
    height: 250px;
    --swiper-theme-color: var(--main-color);
    --swiper-pagination-progressbar-size: 4px;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0; 
    box-sizing: border-box;
    width: 100%;
}
.swiper-slide img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

    .swiper-button-next,
    .swiper-button-prev {
    position: absolute;
    top: 50%;
    width: auto;
    height: auto;
    margin-top: -20px;
    z-index: 10;
    color: #000;
}

.swiper-wrapper {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .swiper-button-prev {
    left: 10px;
}

    .swiper-button-next {
    right: 10px;
}

    .swiper-pagination-bullet-active {
    background-color: #000;
    }

/*Tech and Tools*/
.tech-stages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

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

.tech-step:hover {
    transform: translate(3px, 3px);
}

.tech-step h3 {
    font-family: var(--header-font);
    font-size: 1.2em;
    margin-top: 0;
    color: #000;
}

.tech-step p {
    font-size: 1em;
    line-height: 1.6em;
    color: #333;
}

/* Story Mapping */
.story-mapping {
    background-color: #fefefe;
}

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

.story-card {
    background-color: #fff;
    transition: transform 0.3s ease;
}

.art-placeholder{
    height: auto;
    width: auto;
    max-width: 350px;
    padding: 5px;
}


.art-placeholder img {
    /* margin: auto;
    margin-bottom: 20px;
    width: 100%;
    height: 100%;  */
    width: 100%;
    height: 200px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.story-img {
    width: 100%;
    height: 400px;
    border: 3px solid #000;
    box-shadow: -3px -3px 0px #000;
    transition: transform 0.3s ease;
    margin-bottom: 20px;
    object-fit: fill;
    /*     border-bottom: 2px solid #000;*/
}

.story-img:hover {
    transform: translate(3px, 3px);
}

.story-content {
    padding: 20px;
    background-color: #ebf4ff;
}

.story-content h3 {
    font-family: var(--header-font);
    color: var(--main-color);
    font-size: 1.2em;
    margin: 0 0 10px;
}

.story-content p {
    font-size: 1em;
    line-height: 1.6em;
    color: #333;
    min-height: 100px;
}

/* Development Process - Playtesting*/
.dev-process {
    padding: 60px 30px;
    margin-top: 60px;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}

.process-step {
    position: relative;
    border-left: 4px solid var(--main-color);
    padding-left: 20px;
    padding-bottom: 10px;
}

.step-indicator {
    font-family: var(--header-font);
    font-size: 0.9em;
    text-transform: uppercase;
    background-color: var(--main-color);
    color: #fff;
    display: inline-block;
    padding: 4px 10px;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

.step-content h3 {
    font-family: var(--header-font);
    font-size: 0.9em;
    text-transform: uppercase;
    background-color: var(--main-color);
    color: #fff;
    display: inline-block;
    padding: 4px 10px;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

.step-content ul {
    padding-left: 20px;
    margin-top: 10px;
    line-height: 1.5em;
}

.step-content li {
    margin-bottom: 8px;
    color: #333;
}

.step-content p {
    margin-top: 10px;
    font-size: 1em;
    line-height: 1.5em;
    color: #333;
}

/* Reflection */
.reflection {
    margin: 60px 0;
}

.reflection-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Decorated section title */
/* .decorated-title {
    position: relative;
    display: inline-block;
} */

/* Challenge items */
.challenge-timeline {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

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

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

.challenge-label {
    font-size: 1.25em;
    font-weight: 500;
    font-family: var(--header-font);
    color: var(--main-color);
    flex-shrink: 0;
    margin: auto;
    width: 20%;
    text-align: left;

    border-right: var(--main-color) 2px solid;
}

.challenge-body h3 {
    font-family: var(--header-font);
    margin: 0 0 10px;
    font-size: 1.2em;
    color: #000;
}

.challenge-body p {
    font-size: 1em;
    color: #333;
    line-height: 1.5em;
}

h2 {
    text-decoration: none;
}

/* Reflection */
.reflection {
    padding: 60px 30px;
    background-color: #fefefe;
}

.reflection-quote {
    max-width: 800px;
    margin: 0 auto 50px;
}

.learning-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

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

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

.learning-point h3 {
    font-family: var(--header-font);
    color: #000;
    font-size: 1.2em;
    margin-top: 0;
    margin-bottom: 10px;
}

.learning-point p {
    font-size: 1em;
    line-height: 1.6em;
    color: #333;
}

/* CTA */
.cta-banner {
    background-color: var(--main-color);
    color: #fff;
    text-align: center;
    padding: 60px 30px;
    margin-top: 60px;
    border-top: 3px solid #000;
    box-shadow: inset 0 5px 0 #000;
}

.cta-banner h2 {
    font-family: var(--header-font);
    font-size: 2em;
    margin-bottom: 20px;
    color: var(--text-color);
}

.cta-banner .demo-cta {
    background-color: #fff;
    color: var(--main-color);
    font-weight: bold;
    border: 3px solid #000;
    padding: 15px 25px;
    font-size: 1.2em;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease;
}

.cta-banner .demo-cta:hover {
    transform: translate(3px, 3px);
}


@media (max-width: 768px) {

    /* Responsive spacing */
    .info-meta {
        font-size: 0.85em;
    }

    /*Tech and Tools*/
    .tech-stages {
    grid-template-columns: 1fr;
}
    /* Versions */

    .version-comparison-v2 {
    flex-direction: column;
    flex-wrap: nowrap;
    width: auto;
    max-width: none;
    padding: 0 20px;
}

    .version-block {
    align-items: center;
    flex: 1 1 100%;
    max-width: 120%;
    padding: 30px;
}

.placeholder-content img {
    width: 100%;
    height: auto;
}
    .version-arrow {
    transform: rotate(90deg);
    margin: 20px 0;
    }

    /* Development Process*/
    .step-content h3 {
        font-size: 1.2em;
    }

    /* Challenges */
    .challenge-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .challenge-label {
        margin-bottom: 10px;
        padding: 15px;
        width: auto;
        border-bottom: var(--main-color) solid 3px ;
        border-right: none;
    }

    /* Reflection */
    .reflection-quote blockquote {
        font-size: 1.2em;
    }

    .learning-point h3 {
        font-size: 1.1em;
    }
}