body,
html {
    height: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
    font-family: 'Noto Sans', sans-serif;
}

h1 {
    font-size: 4rem;
    font-weight: 900;
    margin: 0;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

a {
    text-decoration: none;
}

.textWhite a:hover {
    color: white;
    transition: 0.4s;
}

.textBlack a:hover {
    color: black;
    transition: 0.4s;
}


p {
    font-size: 1.5rem;
}

.blackWrapper {
    background-color: #1A1A1A;
}

.textBlack {
    color: black;
}

.textWhite {
    color: white;
}

#tristanTextOGV,
#tristanScrollOGV,
#nasTrimOGV,
#savannahScrollOGV,
#nemaOGV {
    display: none;
}




/*
    HOMEPAGE
*/

.nav-straplines-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 2em 5vw;
    z-index: 1;
}



nav ul {
    display: flex;
    flex-direction: row;
    list-style: none;
    margin-top: -0.15rem;

}

nav li {
    margin-left: 2.5vw;
    font-size: 1.25rem;
}


.background-video {
    width: 100%;
    height: 100vh;
    position: absolute;
    object-fit: cover;
    z-index: -1;
    overflow: hidden;
}

#homeLink {
    color: black;
}

#homeLink:hover {
    color: black
}

#work-homeLink {
    color: white;
}

#work-homeLink:hover {
    color: white;
}



/*
    HOMEPAGE MAIN HEADER
*/


.homepageTitle-container {
    position: relative;
    height: 130vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.homepageTitle {
    width: 95vw;
    position: sticky;
    top: 25rem;
    margin-top: -15rem;
    animation: fadeIn 1 0.75s ease-in-out;
}




/*
    HOMEPAGE STRAPLINES
*/

.homepageStraplines {
    margin-top: -0.5rem;
}

.homepageStraplines h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0 0 -.5rem 0;
    opacity: 0;
}

.line1 {
    animation: fadeIn;
    animation-duration: 1s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    animation-delay: 0.25s
}

.line2 {
    animation: fadeIn;
    animation-duration: 1s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    animation-delay: 0.75s
}

.line3 {
    animation: fadeIn;
    animation-duration: 1s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    animation-delay: 1.25s
}

.line4 {
    animation: fadeIn;
    animation-duration: 1s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    animation-delay: 1.75s
}



@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}





/*
    HOMEPAGE - ABOUT SECTION
*/


.aboutSection {
    display: flex;
    align-items: flex-start;
    margin: 0em 0 0 5vw;
}

.aboutText-container>p {
    width: 50vw;
    font-size: 2rem;
}





/*  
    WHAT WE DO
*/

.whatWeDo-container {
    margin: 0 5vw 5em 5vw;
    display: flex;
    flex-direction: row;
    justify-content: center;
    justify-content: space-between;
}

.whatWeDo-header {
    margin-top: 5em;

    margin-left: 5vw;
}

.whatWeDo-subContainer {
    width: 25vw;
    display: flex;
    flex-direction: column;
    text-align: left;
}


.whatWeDo-image {
    width: 25vw;
}

.whatWeDo-text {
    margin-top: 0rem;
    font-size: 1.25rem;
}

.linkContainer {
    margin-top: 5em;
    display: flex;
    justify-content: center;
}




/*
    WHAT WE DO - ANIMATIONS
*/


.slideDown {
    opacity: 0;
    transform: translateY(-200px);
}


.showSlideDown {
    opacity: 1;
    transform: translateY(0);
}

.design {
    transition: 1.25s;
}

.development {
    transition: 1.75s;
}

.branding {
    transition: 2.25s;
}


.fadeIn {
    opacity: 0;
    transition: 2s;
}

.showFadeIn {
    opacity: 1;
}





/*
    WORK - INDIVIDUAL PAGES
*/

.workHeader-container {
    margin-top: 5rem;
    display: flex;
    justify-content: center;
    text-align: left;
}

.workHeader-subContainer {
    width: 40vw;
}

.workHeader-subContainer>h1 {
    margin-top: -1rem;
}

.media-Container {
    margin-top: 5em;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.nasVideo {
    width: 95vw;
    height: auto;
}

.mobilesImage {
    margin-top: 5em;
    width: 95vw;
    height: auto;
}

.videoContainer {
    margin-top: 10em;
    width: 67vw;
    border: 15px black solid;
    border-radius: 20px;
}

.tabletImage {
    margin-top: 10em;
    width: 95vw;
    height: auto;
}

.tristanHomepage {
    margin-top: 15em;
    margin-bottom: 5em;
    width: 35vw;
}

.nemaContainer {
    margin-top: 0em;
    margin-bottom: 5em;
}

.websiteLink {
    margin: 0 2em 5em 2em;
    font-size: 20px;
}



.nemaLink {
    color: #cccccc;
}




/*
    ANIMATIONS
*/

.firstLine {
    animation: slidingDown 1s 1;
    opacity: 0;
    animation-fill-mode: forwards;
}

.secondLine {
    animation: slidingDown 1s 1;
    opacity: 0;
    animation-fill-mode: forwards;
    animation-delay: 0.4s;
}

.thirdLine {
    animation: fadeIn 1.5s 1;
    opacity: 0;
    animation-fill-mode: forwards;
    animation-delay: 0.8s;
}

.fourthLine {
    animation: slidingLeft 1.5s 1;
    opacity: 0;
    animation-fill-mode: forwards;
    animation-delay: 1s;
}

@keyframes slidingDown {
    0% {
        transform: translateY(-30%);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slidingLeft {
    0% {
        transform: translateX(15%);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}




/* https://www.30secondsofcode.org/css/s/hover-underline-animation/ */

.hover-underline-animation {
    display: inline-block;
    position: relative;
}

.hover-underline-animation::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 1.5em;
    left: 0;
    transform-origin: bottom center;
    transition: transform 0.5s ease-out;
}

.navLink.hover-underline-animation::after,
.websiteLink.hover-underline-animation::after {
    bottom: -.15rem;
}

.textWhite.hover-underline-animation::after {
    background-color: white;
}

.textBlack.hover-underline-animation::after {
    background-color: black;
}

.hover-underline-animation:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}





/*
    WORK PAGE
*/


#backgroundPicture1, #backgroundPicture2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transition: 0.25s;
    z-index: -1;
    opacity: 0;
}


#backgroundPicture1 {
    background-image: url("Media/nemaMachine.webp");
}

#backgroundPicture2 {
    background-image: url("Media/livingRoom.webp");
}



#work-background-video {
    width: 100%;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
    z-index: -1;
    overflow: hidden;
    transition: 0.25s;
    z-index: -1;
}

.wholePage-container {
    height: 75vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.work-container {
    margin-top: 1em;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
}

.workTitle a {
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: white;
    color: transparent;
    transition: 0.5s;
}

.workTitle a:hover {
    color: white;
    transition: 0.5s;
}


.workTitle-Savannah {
    margin-right: 5em;
    cursor: pointer;
    transition: all 0.5s;
    z-index: 2;
}

.workTitle-Tristan {
    margin-right: 5em;
    cursor: pointer;
    transition: all 0.5s;
    z-index: 2;
}

.workTitle-NEMA {
    margin-left: 5em;
    cursor: pointer;
    transition: all 0.5s;
    z-index: 2;
}

.work-mobile-button {
    display: none;
}

.buttonAnimation {
    animation: buttonAnimation 1 .25s ease-in;
}

@keyframes buttonAnimation {
    0% {
        font-size: 0rem;
    }

    100% {
        font-size: 1.5rem;
    }
}






/*
    CONTACT PAGE
*/

.contact-page-container {
    height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-container {
    text-align: left;

}

.contact-text {
    opacity: 0;
    width: 40vw;
    font-weight: 400
}

.contact-container>h4 {
    opacity: 0;
    font-weight: 600;
}






/*
    MOBILE HAMBURGER/ NAV STYLING
*/



#nav-icon3 {
    width: 30px;
    height: 45px;
    position: relative;
    padding: 0;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .5s ease-in-out;
    -moz-transition: .5s ease-in-out;
    -o-transition: .5s ease-in-out;
    transition: .5s ease-in-out;
    cursor: pointer;
    z-index: 2;
}

#nav-icon3 span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    border-radius: 9px;
    opacity: 1;
    left: 0;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .35s ease-in-out;
    -moz-transition: .35s ease-in-out;
    -o-transition: .35s ease-in-out;
    transition: .35s ease-in-out;
}

.whiteHamburger span {
    background-color: white;
}

.blackHamburger span {
    background-color: black;
}

.whiteHamburger.open span {
    background-color: black;
}

.blackHamburger.open span,
.whiteHamburger.open.openWhite span {
    background-color: white;
}

/* Icon 3 */

#nav-icon3 span:nth-child(1) {
    top: 0px;
}

#nav-icon3 span:nth-child(2),
#nav-icon3 span:nth-child(3) {
    top: 10px;
}

#nav-icon3 span:nth-child(4) {
    top: 20px;
}

#nav-icon3.open span:nth-child(1) {

    top: 10px;
    width: 0%;
    left: 50%;
}

#nav-icon3.open span:nth-child(2) {
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
}

#nav-icon3.open span:nth-child(3) {
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

#nav-icon3.open span:nth-child(4) {
    top: 10px;
    width: 0%;
    left: 50%;
}


.mobileNav {
    position: fixed;
    margin: 0;
    padding: 0;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100vh;
    background-color: white;
    z-index: 1;
    transition: 0.6s;
}

.mobileNav>ul>li>a {
    font-size: 2rem;
}


.mobileNav.blackBackground {
    background-color: black;
}

.mobileNav.is-active {
    left: 0;
}

.mobileNav ul {
    padding: 0;
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.mobileNav li {
    list-style: none;
    padding: 1em 0;
}







/*
    MOBILE STYLING
*/

.mobile {
    display: none;
}

@media screen and (max-width: 675px) {

    body .mobile {
        display: block;
    }

    body .nonMobile {
        display: none;
    }

    body,
    html,
    * {
        font-size: 11px;
    }

    body h1 {
        font-size: 3em;
    }

    body a {
        font-size: 1em
    }

    body .mobileNav a {
        font-size: 4em;

    }

    body .homepageStraplines {
        margin-top: -0.75rem;
    }


    body .homepageTitle-container {
        height: 100vh;
    }

    body .homepageTitle {
        margin-top: -30rem;
        top: 20rem;
    }


    body .aboutSection {
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: left;
        margin: 0;
    }


    body .aboutText-container>p {
        width: 90vw;
    }

    body .whatWeDo-container {
        padding: 0 5vw 0em 5vw;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .whatWeDo-header {
        margin-top: 5em;
    }

    body .whatWeDo-subContainer {
        width: 90vw;
        display: flex;
        flex-direction: column;
        text-align: left;
    }

    body .whatWeDo-subContainer>h4 {
        font-size: 20px;
    }


    body .whatWeDo-image {
        width: 90vw;
    }

    body .whatWeDo-text {
        margin-top: 0em;
        margin-bottom: 5em;
        font-size: 16px;
    }

    body .design,
    body .development,
    body .branding {
        transition: 1s;
    }

    body .slideDown {
        transform: translateY(-100px);
    }

    body .showSlideDown {
        transform: translateY(0);
    }

    body .workHeader-subContainer {
        width: 90vw;
    }

    body .websiteLink {
        font-size: 16px;
        margin: 0 2rem 5rem 2rem;
        padding: .5em .75em;
        border: solid white 2px;
    }

    body .websiteLink:hover {
        background-color: white;
        color: black;
    }


    body .hover-underline-animation::after {
        display: none;
    }


    body .work-container {
        padding: 0 10vw;
        justify-content: none;
        align-items: none;
    }

    body #NEMAtitle,
    body #tristanTitle,
    body #savannahTitle {
        margin: 0;
        padding: 0;
    }

    body .wholePage-container {
        height: 60vh;
    }


    body .work-container.line1 {
        margin-bottom: 7vw;
        width: 55vw;
        align-self: flex-start;
    }

    body .work-container.line2 {
        margin-bottom: 7vw;
        width: 55vw;
        align-self: flex-end;
        text-align: right;
    }

    body .work-container.line3 {
        margin-bottom: 7vw;
        width: 55vw;
        align-self: flex-start;
    }

    body .workTitle>a {
        pointer-events: none;
        /* stops links from working on mobile */
    }

    body .work-mobile-button-container {
        margin-top: 2rem;
        display: flex;
        justify-content: center;
    }

    body #work-mobile-button {
        opacity: 0;
        padding: 0.75rem 1rem;
        border: 2px white solid;
        position: absolute;
        transition: all 0.5s;
    }

    body .work-mobile-button {
        color: white;
        margin: 0;
        display: block;
        font-size: 16px;
        font-weight: 600;
    }

    body .work-mobile-button-container:hover  {
        background-color: white;
        color: black;
    }
    

    body .videoContainer {
        margin: 0;
        width: 75vw;
        border: 3px black solid;
        border-radius: 7px;
    }

    body .nemaContainer {
        width: 86vw;
    }

    body .linkContainer {
        display: flex;
        flex-direction: row;
    }

    .media-Container {
        margin-top: 5rem;
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    body .nasVideo {
        width: 90vw;
    }

    body .mobilesImage {
        margin: 5rem 0;
        width: 90vw;
    }

    body .tabletImage {
        margin: 2rem 0;
        width: 106vw;
    }

    body .tristanHomepage {
        margin: 5rem 0;
        width: 50vw;
    }

    body .contact-text {
        width: 70vw;
    }

}