@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&display=swap');

* {
    margin: 0;
    padding: 0;
    
}

img {
    max-width: 100%;
    height: auto;
}

:root {
    --primary-color: #76384E;
    --secondary-color: #20161A;
    --dark-color: #1C1216;
    --light-color: #f2f2f2;
    --third-color: #00DE00;
    --fourth-color: #7DFFB7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Bricolage Grotesque', sans-serif;
}

h1 {
    font-size: 2.5rem;
    color: var(--third-color);
    margin-bottom: 0.1rem;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--light-color);
    color: var(--third-color);
    line-height: 1.6;
}

header {
    color: var(--third-color);
    background-color: var(--secondary-color);
    padding: 0 5vw;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    box-shadow: 0 6px 8px -8px var(--secondary-color);
}

header svg {
    width: 50%;
    height: auto;
}

header nav.mobile {
}

header nav.mobile .hamburger {
    display: block;
    cursor: pointer;
    padding: 1rem;
    text-align: right;
}

header nav.mobile .hamburger.active {
    margin-left: 80vw;
}

header nav.mobile .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

header nav.mobile .hamburger.active span:nth-child(2) {
    display: none;
}

header nav.mobile .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(2.5px, -2.5px);
}

header nav.mobile .hamburger span {
    display: block;
    width: 30px;
    height: 5px;
    background-color: var(--third-color);
    margin: 5px;
    border-radius: 2.5px;
    transition: 0.2s;
}

header nav.mobile ul {
    display: none;
    list-style-type: none;
}

header nav.mobile.show {
    position: absolute;
    background: var(--secondary-color);
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    transition: 0.2s;
}


header nav.mobile ul.show {
    display: initial;
    transition: 0.2s;
}

header nav.mobile ul li {
    text-align: right;
    margin: 0.75rem;
}

header nav.mobile ul li a{
    color: var(--third-color);
    list-style: none;
    text-align: right;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 1rem;
    text-decoration: none;
    border-bottom:var(--secondary-color) 4px solid;
    transition: 0.2s ease-in-out;
}

header nav ul li a:hover {
    border-bottom:var(--third-color) 4px solid;
    transition: 0.2s ease-in-out;
}

header nav.desktop {
    display: none;
}


section.hero {
    padding: 0 10vw;
    display: grid;
    grid-template-columns: 2fr 1fr;
    background-image: url('../img/BG-DATADASH.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 67%;
    height: 50vh;
}

section.extension {
    background-image: url('../img/finish-line.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 67%;
    background-color: var(--light-color);
    height: 20vh;
}

section.intro {
    padding: 6vw 12vw;
    display: grid;
    grid-template-columns: 1fr;
    background-color: var(--light-color);
}

section.intro h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1;
}

section.intro p {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

section.showcase {
    padding: 6vw 12vw;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.25rem;
    background-color: var(--secondary-color);
}

section.showcase div:nth-child(2) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem;
}

section.description {
    padding: 6vw 12vw;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    background-color: var(--primary-color);
}

section.description aside {
    order: 2;
}

section.description p {
    font-size: 1rem;
    color: var(--fourth-color);
    margin-bottom: 1rem;
}

section.result {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    background-color: var(--light-color);
}

section.result p {
    font-size: 1rem;
    color: var(--secondary-color);
    font-weight: 300;
}

section.result article {
    padding: 6vw 12vw;
}

section.result aside {
    padding: 0;
    max-height: 50vh;
    overflow: hidden;
}

section.result aside img {
    animation: slide 30s infinite linear;
}

section.conclusion {
    padding: 6vw 12vw;
    background-color: var(--secondary-color);
    position: relative;
}

section.conclusion img {
    position: absolute;
    top: -2.5rem;
    left: -1rem;
}

section.conclusion article:nth-child(2) {
    padding: 6vw 0;
}

section.conclusion article:nth-child(2) p{
   font-size: 1rem;
}

section.conclusion article:nth-child(3) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 2vw 0;
}

section.virus {
    height: 12vh;
    background-color: var(--secondary-color);
    overflow: hidden;
}

section.end {
    padding: 0 10vw;
    background-image: url('../img/gameoverscreen.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    height: 21vh;
}

section.work {
    padding: 8vw 0;
    background-color: var(--dark-color);
    overflow: auto;
    white-space: nowrap;
}

section.work::-webkit-scrollbar {
    display: none;
  }


section.work a article.project {
    position: relative;
    display: inline-block;
    width: 60vw;
    height: 25vh;
    background-image: url('../../../img/Saint-Pierre-Rebrand-Presentation-12.jpg'); 
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    overflow: hidden;
    margin-left: 2rem;
    transition: transform 0.3s ease-in-out;
}


section.work a {
    text-decoration: none;
}

section.work a.bg2 article.project{
    background-image: url('../../../img/startscreen.png');
}

section.work a.bg3 article.project {
    background-image: url('../../../img/VoyagesAT-Brand-Presentation.jpg');
}

section.work a.bg4 article.project {
    background-image: url('../../../img/juice-boxes-mockup.jpg');
}

section.work a article.project:hover {
    transform: scale(1.1);
    transition: 0.3s ease-in-out;
}

section.work article.project div.project-info {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding-bottom: 10px;
    color: var(--light-color);
    text-align: center;
}

section.work article.project div.info-wrapper {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 67%;
    background: linear-gradient(to top, rgba(0,0,0,1), transparent); 
}

section.work article.project div.info-wrapper:hover {
    height:100%;
    transition: 0.3s ease-in-out;
}

section.work article.project div.project-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
}

section.work article.project div.project-info p {
    font-size: 0.75rem;
    font-weight: 600;
}

@keyframes slide {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(calc(-100% + 50vh));
    }
}

@media screen and (min-width: 768px) {
    header {
        padding: 0 10vw;
    }

    header nav.mobile {
        display: none;
    }

    header nav.desktop {
        display: block;
    }

    header nav.desktop ul {
        display: inline-block;
    }

    header nav.desktop ul li {
        display: inline-block;
        
    }

    header nav ul li a:hover {
        border-bottom:var(--third-color) 4px solid;
        transition: 0.2s ease-in-out;
    }

    header nav.desktop ul li a {
        color: var(--third-color);
        text-decoration: none;
        font-weight: 700;
        font-size: 1.25rem;
        margin: 1rem;
        border-bottom:var(--secondary-color) 4px solid;
        transition: 0.2s ease-in-out;
    }

    section.work a article.project {
        width: 50vw;
        height: 33vh;
    }
}

@media screen and (min-width: 1025px) {
    header {
        padding: 1vw 10vw;
    }

    header svg {
        width: 75%;
        transition: 0.2s ease-in-out;
    }

    header svg:hover {
        transform: scale(1.1);
        transition: 0.2s ease-in-out;
    }

    header nav.desktop ul li a {
        font-size: 1.5rem;
        border-bottom:var(--secondary-color) 4px solid;
        transition: 0.2s ease-in-out;
    }

    header nav ul li a:hover {
        border-bottom:var(--third-color) 4px solid;
        transition: 0.2s ease-in-out;
    }

    section.hero {
        padding: 0 10vw;
        display: grid;
        grid-template-columns: 2fr 1fr;
        background-image: url('../img/BG-DATADASH.webp');
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        height: 75vh;
    }

    section.extension {
        background-image: url('../img/finish-line.png');
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        background-color: var(--light-color);
        height: 50vh;
    }

    section.intro {
        padding: 5vw 10vw;
        display: grid;
        grid-template-columns: 1fr 2fr;
        background-color: var(--light-color);
    }

    section.intro h2 {
        font-size: 3.5rem;
        color: var(--primary-color);
        font-weight: 700;
        line-height: 1.15;
    }

    section.intro p {
        font-size: 1.25rem;
        color: var(--secondary-color);
        font-weight: 300;
    }

    section.showcase {
        padding: 5vw 10vw;
        display: grid;
        grid-template-columns: 5fr 3fr;
        gap: 4rem;
        background-color: var(--secondary-color);
    }

    section.showcase div:nth-child(2) {
        display: block;
    }

    section.showcase div:nth-child(2) article:nth-child(1) {
        margin-bottom: 1rem;
    }

    section.showcase div:nth-child(1) article:nth-child(1) {
        height: 100%;
    }

    section.showcase div:nth-child(1) img{
        height: 100%;
        width: 100%;
        object-fit: cover;
    }

    section.description {
        padding: 5vw 10vw;
        display: grid;
        grid-template-columns: 3fr 5fr;
        gap: 4rem;
        background-color: var(--primary-color);
    }

    section.description article {
        order: 2;
    }

    section.description aside img {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }

    section.description p {
        font-size: 1.25rem;
        color: var(--fourth-color);
        font-weight: 300;
    }

    section.result {
        display: grid;
        grid-template-columns: 5fr 3fr;
        gap: 4rem;
        background-color: var(--light-color);
    }

    section.result p {
        font-size: 1.25rem;
        color: var(--secondary-color);
        font-weight: 300;
    }

    section.result article {
        padding: 5vw 0 10vw 10vw;
    }

    section.result aside {
        padding: 0;
        max-height: 85vh;
        overflow: hidden;
        object-fit: cover;
    }

    section.result aside img {
        animation: slide 30s infinite linear;
        animation-delay: 2s;
    }

    section.conclusion {
        padding: 5vw 10vw;
        background-color: var(--secondary-color);
        position: relative;
    }

    section.conclusion img {
        position: absolute;
        top: -6rem;
        left: -2rem;
        width: 67%;
    }

    section.conclusion article:nth-child(2) {
        padding: 2vw 0;
    }

    section.conclusion article:nth-child(2) p{
       font-size: 1.25rem;
    }

    section.conclusion article:nth-child(3) {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 4rem;
        padding: 2vw 0;
    }

    section.virus {
        height: 25vh;
        background-color: var(--secondary-color);
        overflow: hidden;
    }

    section.end {
        padding: 0 10vw;
        background-image: url('../img/gameoverscreen.png');
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        height: 67vh;
    }

    section.work {
        padding: 4vw 0;
        background-color: var(--dark-color);
        overflow: auto;
        white-space: nowrap;
    }

    section.work::-webkit-scrollbar {
        display: none;
      }


    section.work a article.project {
        position: relative;
        display: inline-block;
        width: 25vw;
        height: 40vh;
        background-image: url('../../../img/Saint-Pierre-Rebrand-Presentation-12.jpg'); 
        background-size: cover;
        background-position: center;
        border-radius: 12px;
        overflow: hidden;
        margin-left: 2rem;
        transition: transform 0.3s ease-in-out;
    }


    section.work a {
        text-decoration: none;
    }

    section.work a.bg2 article.project{
        background-image: url('../../../img/startscreen.png');
    }

    section.work a.bg3 article.project {
        background-image: url('../../../img/VoyagesAT-Brand-Presentation.jpg');
    }

    section.work a.bg4 article.project {
        background-image: url('../../../img/juice-boxes-mockup.jpg');
    }

   section.work a article.project:hover {
        transform: scale(1.1);
        transition: 0.3s ease-in-out;
   }

    section.work article.project div.project-info {
        position: absolute;
        bottom: 0;
        width: 100%;
       padding-bottom: 10px;
        color: var(--light-color);
        text-align: center;
    }

    section.work article.project div.info-wrapper {
        position: absolute;
        bottom: 0;
        width: 100%;
        height: 67%;
        background: linear-gradient(to top, rgba(0,0,0,1), transparent); 
    }

    section.work article.project div.info-wrapper:hover {
        height:100%;
        transition: 0.3s ease-in-out;
    }

    section.work article.project div.project-info h3 {
        font-size: 1.5rem;
        font-weight: 600;
        text-align: center;
    }

    section.work article.project div.project-info p {
        font-size: 0.9rem;
        font-weight: 600;
    }

    @keyframes slide {
        0% {
            transform: translateY(0);
        }
        100% {
            transform: translateY(calc(-100% + 85vh));
        }
    }

    h1 {
        font-size: 7.5rem;
    }

    .mainbg {
        object-fit: cover;
    }
}

@media screen and (min-width: 1750px) {
    section.conclusion img {
        position: absolute;
        top: -8rem;
        left: -2rem;
        width: 67%;
    }
}
    

