@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;
    scroll-behavior: smooth;
}

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

:root {
    --primary-color: #025951;
    --secondary-color: #012623;
    --dark-color: #404040;
    --light-color: #f2f2f2;
    --third-color: #04D99D;
    --fourth-color: #038C85;
}

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

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--light-color);
    color: var(--secondary-color);
    line-height: 1.6;
    cursor: url('../img/cursor-regular.png') 16 16, auto;
}

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

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

header nav.mobile {
   /*transition: 0.2s ;*/
}

header nav.mobile .hamburger {
    display: block;
    cursor: pointer;
    padding: 1rem;
    text-align: right;
    /*transition: 0.2s ease-in-out;*/
}

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(--primary-color);
    margin: 5px;
    border-radius: 2.5px;
    /*transition: 0.2s ease-in-out;*/
}

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

header nav.mobile.show {
    position: absolute;
    background: var(--light-color);
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    transition: 0.1s;
}


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(--primary-color);
    list-style: none;
    text-align: right;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 1rem;
    /*padding: 1rem;*/
    text-decoration: none;
    border-bottom: var(--light-color) 4px solid;
}

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

header nav.desktop {
    display: none;
}

section.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 15vw 10vw;
    background-image: url('../img/BG-ICON.svg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 75%;
    height: 67vh;
}

section.hero h1 {
    font-size: 2.25rem;
}

.scramble-container {
    display: grid;
    grid-template-columns: 1fr;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    height: auto;
  
}

.view-d {
    display: none;
}


.view-m {
    display: block;
    margin-bottom: -10rem;
}

.morph {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    overflow: hidden;
    padding: 0;
    width: 100%;
    border-radius: 8px;
    background-color: var(--secondary-color);
    width: fit-content;
    height: fit-content;
    display: flex;
    align-items: center;
    margin-top: -2rem;
    animation: swipe 10s ease-in-out infinite;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wordscramble {
    padding: 0.5rem;
    margin: 0;
    width: 100%;
    height: fit-content;
    opacity: 1;
    position: relative;
    color: var(--third-color);
    
}

section.hero h1.adjust{
    margin-top: -9.5rem;
}

.wordscramble:nth-child(1) { animation:word-animation 10.7s infinite 0s; color: var(--third-color); background-color: var(--secondary-color);}
.wordscramble:nth-child(2) { animation:word-animation 10.7s infinite 2.1s; color: var(--secondary-color); background-color: var(--third-color);}
.wordscramble:nth-child(3) { animation:word-animation 10.7s infinite 4.15s; color: var(--third-color); background-color: var(--secondary-color);}
.wordscramble:nth-child(4) { animation:word-animation 10.7s infinite 6.2s; color: var(--secondary-color); background-color: var(--third-color);}
.wordscramble:nth-child(5) { animation:word-animation 10.7s infinite 8.25s; color: var(--third-color); background-color: var(--secondary-color);}

@keyframes word-animation {
    0%, 5% { opacity: 0; }
    10%, 25% { opacity: 1; }
    30%, 100% { opacity: 0; }
  }

  @keyframes swipe {
    0% { top: 0.2rem; width: 0; }
    5% { width: 0; }
    10% { width: 100%; }
    20% { top: 0.2rem; width: 100%; }
    25% { top: 0.2rem; width: 0; }
    30% { top: 0.2rem; width: 0; }
    35% { top: 0.2rem; width: 100%; }
    45% { top: 0.2rem; width: 100%; }
    50% { top: 0.2rem; width: 0; }
    55% { top: 0.2rem; width: 0; }
    60% { top: 0.2rem; width: 100%; }
    70% { top: 0.2rem; width: 100%; }
    100% { top: 0.2rem; width: 0; }
    80% { top: 0.2rem; width: 100%; }
    90% { top: 0.2rem; width: 100%; }
    95% { top: 0.2rem; width: 0; }
    100% { top: 0.2rem; width: 0; }
  }

section.work {
    padding: 12vw 0;
    height: 45vh;
    background-color: var(--secondary-color);
}

section.work .project-scroll {
    overflow: auto;
    white-space: nowrap;
    height: 33vh;
    display: flex;
    align-items: center;
}

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

.scrolling-headline {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    padding: 1rem 0;
    color: var(--light-color);
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
   
}

.scrolling-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: scroll 20s linear infinite;
    margin-top: -2rem;
    margin-bottom: 0;
}

.scrolling-content img {
    width: 2.5%;
}

.scrolling-content h2,
.scrolling-content img {
    display: flex;
    align-items: center;
    margin-right: 2rem;
    /* Adjust spacing as needed */
}

@keyframes scroll {
    0% {
        transform: translateX(-56%);
    }

    100% {
        transform: translateX(0);
    }
}


section.work a article.project {
    position: relative;
    display: inline-block;
    width: 60vw;
    height: 25vh;
    margin-top: 10%;
    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;
}

.scroll-buttons {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.scroll-buttons button {
    background: none;
    border: none;
    font-size: 3rem;
    cursor: pointer;
    color: var(--light-color);
    margin: 0 1rem;
}

.scroll-buttons button:focus {
    outline: none;
}

.scroll-buttons i span {
    font-size: 3rem;
}

.scroll-buttons .scroll-left i span {
    transform: scaleX(-1);
    /* Flip the icon horizontally */
}


.material-icons .material-symbols-outlined {
    font-variation-settings:
        'FILL' 0,
        'wght' 300,
        'GRAD' 0,
        'opsz' 48
}


section.about {
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
}

section.about aside {
    padding: 0;
}

section.about article {
    padding: 2rem 3rem;
}

.flow-in {
    opacity: 1;
    display: inline-block;
}

.flow-in span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: flow-in 0.5s forwards;
}

@keyframes flow-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section.about h2 {
    font-size: 6rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 1rem;
}

section.about article p {
    font-size: 1rem;
    font-weight: 400;
    color: var(--secondary-color);
    /*padding-right: 2rem;*/
}

section.contact {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    background-color: var(--secondary-color);
    position: relative;
    height: auto;
    overflow: hidden;
}

section.contact article {
    padding: 4rem 3rem;
    z-index: 1;
}

section.contact article div.cbtn-wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1em;
}

section.contact a.cbtn-1 {
    font-family: 'Outfit', sans-serif;
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: var(--primary-color);
    color: var(--light-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
    border-radius: 0.75rem;
    text-align: center;
    transition: 0.2s ease-in-out;
}

section.contact a.cbtn-1:hover {
    background-color: var(--third-color);
    transition: 0.2s ease-in-out;
}

section.contact a.cbtn-2 {
    font-family: 'Outfit', sans-serif;
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: var(--primary-color);
    color: var(--light-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
    border-radius: 0.75rem;
    text-align: center;
    transition: 0.2s ease-in-out;
}

section.contact a.cbtn-2:hover {
    background-color: var(--third-color);
    transition: 0.2s ease-in-out;
}

section.contact article h2 {
    color: var(--light-color);
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 2rem;
}

section.contact aside {
    display: none;
    height: auto;
    margin-bottom: -2rem;
    position: absolute;
    bottom: 0;
}

section.contact aside img {
    object-fit: cover;
    bottom: 0;

}

span.no-nbsp {
    display: none;
}


@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;
        
        transition: 0.3s ease-in-out;
    }

    header nav.desktop ul li a {
        color: var(--primary-color);
        text-decoration: none;
        font-weight: 700;
        font-size: 1.25rem;
        margin: 1rem;
        /*padding: 1rem;*/
        padding-bottom: 0;
        border-bottom: var(--light-color) 4px solid;
    }

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

    section.hero {
        background-position: 67%;
    }

   

    section.hero h1 {
        font-size: 5rem;
    }

    .morph {
        font-size: 5rem;
    }

    .wordscramble {
        padding: 1rem;
    }

    section.work {
        height: 45vh;
    }

        section.work .project-scroll {
            height: 33vh;
        }

        .scrolling-content {
            margin-bottom: 3rem;
        }

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

    section.contact article h2 {
        font-size: 3rem;
    }

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

    section.contact aside {
        margin-bottom: 0;
    }
}

@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;
    }

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

    .view-d {
        display: block;
    }

    .view-m {
        display: none;
    }

    section.hero h1 {
        font-size: 7.5rem;
        /*margin-bottom: -10rem;*/
    }

        section.hero h1.adjust {
           margin-top: 0;
        }

    .morph {
        margin-left: 0;
        margin-top: 0;
        /*margin-bottom: -10rem;
        top: 0;
        left: 0;*/
        font-size: 7.5rem;
    }

    @keyframes swipe {
        0% { top: 0.2rem; width: 0; }
        5% { width: 0; }
        10% { width: 75%; }
        20% { top: 0.2rem; width: 75%; }
        25% { top: 0.2rem; width: 0; }
        30% { top: 0.2rem; width: 0; }
        35% { top: 0.2rem; width: 75%; }
        45% { top: 0.2rem; width: 75%; }
        50% { top: 0.2rem; width: 0; }
        55% { top: 0.2rem; width: 0; }
        60% { top: 0.2rem; width: 75%; }
        70% { top: 0.2rem; width: 75%; }
        75% { top: 0.2rem; width: 0; }
        80% { top: 0.2rem; width: 75%; }
        90% { top: 0.2rem; width: 75%; }
        95% { top: 0.2rem; width: 0; }
        100% { top: 0.2rem; width: 0; }
      }

    .mainbg {
        object-fit: cover;
    }

    section.work {
        padding: 8vw 0;
        background-color: var(--secondary-color);
        height: auto;
    }

    section.work .project-scroll {
            height: 50vh;
    }

    .scrolling-content {
        font-size: 3rem;
    }

    .scrolling-headline {
        font-size: 2.75rem;
    }


    section.work a article.project {
        position: relative;
        display: inline-block;
        width: 25vw;
        height: 40vh;
        margin-top: 0;
        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%;
       
        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;
    }

    section.about {
        display: grid;
        grid-template-columns: 2fr 3fr;
    }

    section.about aside {
        padding: 0;
    }

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

    section.about article {
        padding: 8rem 10rem 6rem 8rem;
    }

    section.about article h2 {
        font-size: 4.5rem;
        font-weight: 800;
        color: var(--primary-color);
        margin-bottom: 1.5rem;
    }

    section.about article p {
        font-size: 1.25rem;
        font-weight: 400;
        color: var(--secondary-color);
        /*padding-right: 2rem;*/
    }

    section.contact {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 0;
        background-color: var(--secondary-color);
        position: relative;
        height: 75vh;
        overflow: hidden;
    }

    section.contact article {
        padding: 8vw 0 8vw 8vw;
        z-index: 1;
    }

    section.contact article div.cbtn-wrap {
        display: inline-block;
    }

    section.contact article h2 {
        font-size: 3.5rem;
    }

    section.contact a.cbtn-1 {
        font-family: 'Outfit', sans-serif;
        display: inline-block;
        margin-right: 3rem;
        background-color: var(--secondary-color);
        color: var(--light-color);
        text-decoration: none;
        font-weight: 700;
        font-size: 1.67rem;
        border-bottom: var(--secondary-color) 4px solid;
        transition: 0.2s ease-in-out;
    }

    section.contact a.cbtn-1:hover {
        color: var(--third-color);
        border-bottom: var(--third-color) 4px solid;
        transition: 0.2s ease-in-out;
        background: none;
    }

    section.contact a.cbtn-2 {
        font-family: 'Outfit', sans-serif;
        display: inline-block;
        padding: 1rem 3rem;
        margin-left: 2rem;
        background-color: var(--primary-color);
        color: var(--light-color);
        text-decoration: none;
        font-weight: 700;
        font-size: 1.67rem;
        border-radius: 1.2rem;
        text-align: center;
        transition: 0.2s ease-in-out;
    }

    section.contact a.cbtn-2:hover {
        background-color: var(--third-color);
        transition: 0.2s ease-in-out;
    }

    span.no-nbsp {
        display: inline;
    }

    span.use-nbsp {
        display: none;
    }

    section.contact article h2 {
        color: var(--light-color);
        font-size: 5rem;
        line-height: 1.2;
        margin-bottom: 4rem;
    }

    section.contact aside {
        display: block;
        height:100%;
        position: absolute;
        top: 0;
        right: 0;
        margin-top: auto;
    }

    section.contact aside img {
        object-fit: cover;
        height: 100%;
        top: 0;
        right: 0;
    }
}

    
@media screen and (min-width: 1900px) {
    section.about article h2 {
        font-size: 6rem;
    }
}

    


/*header nav ul, ol {
    list-style: none;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

header nav ul li a {
    font-family: 'Outfit', sans-serif;
    text-decoration: none;
    color: var(--primary-color);
    text-align: center;
}*/

