@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Archivo:ital,wght@0,100..900;1,100..900&family=Public+Sans:ital,wght@0,100..900;1,100..900&family=Unbounded:wght@200..900&display=swap');

:root {
    /* --main-color: orange;
    --hover-color: orange; */
    --text-color: #000; 
    --border-thickness: 3px;
    --box-shadow-offset: -3px;
    --header-font: 'Unbounded', serif;
    --body-font:'Archivo', sans-serif;
}

* {
    box-sizing: border-box;
}

body,
html {
    margin: 0;
    padding: 0;
    font-family: var(--body-font);
    background-color: #fff /* #fcf6ec */;
    color: #000;
}

.nav-bar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #fff/* #fcf6ec */;
    padding: 15px;
    border-bottom: 3px solid #000;
    z-index: 100;
    font-family: var(--header-font);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

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

/* Section Titles */
.section-title {
    font-family: var(--header-font);
    font-size: 1.8em;
    color: var(--main-color);
    margin-bottom: 20px;
}

.section-title.decorated-title::after {
    content: "";
    display: block;
    margin-top: 10px;
    width: 60px;
    height: 4px;
    background-color: var(--main-color);
    animation: slide-in 0.5s ease;
}

.game-mechanics p,
.game-mechanics li {
    font-size: 1em;
    line-height: 1.6;
    color: #333;
}

.game-mechanics ul {
    padding-left: 20px;
    margin: 0;
}

.game-mechanics li {
    margin-bottom: 8px;
}


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

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

.home-link {
    font-size: 24px;
    text-decoration: none;
    color: #000;
    transition: color 0.3s ease;
}

.home-link:hover {
    color: var(--main-color);
}

.project-nav {
    display: flex;
    gap: 15px;
}


.project-nav a {
    text-decoration: none;
    color: #000;
    padding: 5px 10px;
    transition: all 0.3s ease;
}

/* Hide hamburger icon*/ 
.project-nav .icon {
    display: none;
    cursor: pointer;
}

/*.project-nav a:hover {
    background-color: var(--main-color);
    transform: scaleX(1.025);
}*/

.project-link:active {
    text-decoration: underline;
}

.about:hover {
    background-color: #ff6b6b;
    transform: scaleX(1.025);
}

.project1:hover {
    background-color: #FF9F63;
    transform: scaleX(1.025);
}

.project2:hover {
    background-color: #f3769a;
    transform: scaleX(1.025);
}

.project3:hover {
    background-color:#783ddf;
    transform: scaleX(1.025);
        color: #fff;
}

.project4:hover {
    background-color: #1dd1a1;
    transform: scaleX(1.025);
}

.project5:hover {
    background-color: #54a0ff;
    transform: scaleX(1.025);
}

.project-link:hover {
    transform: translate(calc(var(--box-shadow-offset) * -1), calc(var(--box-shadow-offset) * -1));
    box-shadow: var(--box-shadow-offset) var(--box-shadow-offset) 0 #000;
}

.project-link {
    border: #000 solid 3px;
}

.main-content {
    max-width: 1200px;
    margin: 100px auto 50px;
    padding: 0 20px;
}

.project-header {
    font-family: var(--header-font);
    margin-bottom: 40px;
    background-color: var(--main-color);
    padding: 40px;
    border: #000 solid;
    box-shadow: -4px -4px 0px #000;
}

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

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

.project-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}


.outgoing-link {
    color: var(--main-color);
    font-weight: 900;
    text-decoration: none;
    background-color: rgb(95, 39, 205, 0.15);
}


.outgoing-link:hover {
    color: var(--main-color);
    font-weight: 900;
    text-decoration: underline;
    text-decoration-thickness: 3px;
}

/* Info Cards UPDATE*/
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

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

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

.info-meta {
    font-family: var(--header-font);
    font-size: 0.95em;
    color: #fff;
    background-color: var(--main-color);
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.info-card p,
.info-card li {
    font-size: 1em;
    line-height: 1.6;
    color: #333;
}

.info-card ul {
    padding-left: 20px;
    margin: 0;
}

.info-card li {
    margin-bottom: 8px;
}

.section-intro {
    font-size: 1.1em;
    color: #444;
    max-width: 700px;
    margin-bottom: 40px;
}

blockquote {
    background-color: #fff;
    border-left: 5px solid var(--main-color);
    padding: 20px;
    margin: 30px 0;
    font-style: italic;
    font-size: 1.1em;
    color: #333;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.gallery-image {
    width: 100%;
    object-fit: cover;
    border: 2px solid #000;
    transition: transform 0.3s ease;
        /*transform: translateX(10px);
            box-shadow: -3px -3px 0px #000;*/
}

img {
    width: 100%;
    height: 100%;
}

.gallery-image:hover {
    transform: scale(1.02);
}

.project-description {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 40px;
}

.project-description h2 {
    color: var(--main-color);
    font-family: var(--header-font);
    /* border-bottom: 3px solid var(--main-color); */
    padding-bottom: 10px;
    margin-top: 40px;
    
}

/* Back to top button */
#backToTop {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    border: none;
    outline: none;
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    cursor: pointer;
    width: 50px;
    height: 50px;
    font-size: 18px;
    transition: opacity 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

#backToTop:hover {
    background-color: black;
    transform: scale(1.1);
    transition: color 0.3s ease;
}

.footer {
    font-family: var(--body-font);
    background-color: var(--main-color);
    padding: 15px;
    border-top: 3px solid #000;
}

.footer p{
    text-align: center;
    line-height: 1.5em;
    color: var(--text-color);
}

.footer .links {
    text-align: center;
    margin: 0 auto;
    font-size: 1.40em;
}

a {
    text-decoration: none;
}

a i {
    display: block;
    /* or inline-block */
}

.links a {
    color: var(--text-color);
    padding: 0 10px;
}

.links a:hover {
    color: #fff;
}

/* .lg-backdrop {
    background-color: rgba(0, 0, 0, 0.8) !important;
} */

@media (max-width: 768px) {
    .nav-bar {
        margin-right:auto;
    }nav
    
    .nav-content {
        flex-direction: column;
        margin: auto;
        gap: 15px;
    }

    .lightbox img {
        max-width: auto;
        max-height: auto;
        object-fit: cover;
        overflow: hidden;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    }

    .project-nav {
        margin-left: auto;
        margin-right: auto;
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-content {
        margin-top: 100px;
    }

    .project-title {
        font-size: 2em;
    }

    .project-subtitle {
        font-size: 1.2em;
    }
}

@media screen and (max-width: 600px) {

    /* Base styles for mobile nav */
    .nav-content {
        flex-direction: column;
        align-items: flex-start;
        margin-right: 20px;
    }

    /* Hide all nav links except home and hamburger icon */

    .project-nav a:not(.icon) {
        display: none;
    }


    .project-nav .icon {
        display: block; /* Show on mobile */
        position: absolute;
        right: 65px;
        top: 10px;
        font-size: 24px;
        z-index: 100;
    }


  /* When menu is opened */
    .nav-content.responsive .project-nav a:not(.icon) {
    display: block;
    }

    /* Styles when nav is expanded */
    /*.nav-content.responsive {
        position: relative;
    }*/

    .nav-content.responsive .project-nav {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        padding-top: 15px;
    }
}