@font-face {
    font-family: "LeagueSpartan";
    src: url("/fonts/LeagueSpartan.ttf");
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, p {
    font-family: "LeagueSpartan", sans-serif;
    margin: 0em;
}

h1  {
    font-size: 64px;
    font-weight: 600;
    margin: 0.1em 0em;
}

h2 {
    font-size: 42px;
    font-weight: 550;
    margin: 0.1em 0em;
}

h3 {
    font-size: 34px;
    font-weight: 550;
    margin: 0.1em 0em;
}

h4 {
    font-size: 25px;
    font-weight: 550;
    margin: 0.1em 0em;
}

h5 {
    font-size: 21px;
    font-weight: 500;
    margin: 0.1em 0em;
}

p {
    font-size: 20px;
    margin: 0.1em 0em;
}

section {
    padding: 3em 2em;
}

nav {
    position: absolute;
    top: 1.5em;

    display: flex;
    justify-content: center;

    width: 100%;
}

nav>* {
    z-index: 2;
}

nav>div {
    display: flex;
}

nav>div>* {
    position: relative;
    margin: 0 1em;
}

nav a {
    color: black;
    text-decoration: none;
}

nav h4::before {
    position: absolute;
    bottom: 0;
    left: 0;

    width: 100%;
    height: 0.1em;
    
    content: '';
    border-radius: 4px;
    background-color: #18272F;

    transform: scaleX(0);
    transition: transform .3s ease-in-out;
    transform-origin: right;
  }

nav h4:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

#landingSection {
    background-image: linear-gradient(to right bottom, #faf79b 0%, #d3e19b, #fafaf9);
    background-size: cover;
    background-position: center center;

    height: 100vh; /* Fallback */
    padding: 0em 2em;
}

#landingSection>div {
    position: relative;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
    align-content: center;

    height: 100%;
    max-width: 100em;
    margin: auto;
}

#landingSection>div>* {
    margin: min(2em, 2%) min(1em, 1%);
    z-index: 2;
}

#portrait {
    height: 17em;
    border-radius: 50%;
}

#swapper-container {
    display: flex;
}

#swapper-container>*:first-child {
    padding: 0em 0.2em 0em 0em; /*top, right, bottom, and left*/
}

.swapper-content {
    transition: opacity 0.5s, transform 0.5s;
    padding: 0em 0em 0em 0.2em;
}

.swapper-content>* {
    padding: 0em 0em 0.2em 0em;
}

#sc1 {
    display: block;
}

#sc2 {
    display: none;
}

#sc3 {
    display: none;
}

.moveOut {
    transform: translate(0, -1em);
    opacity: 0;
}

.moveIn {
    animation: moveIn 0.5s;
}

@keyframes moveIn {
    0% {
        transform: translate(0, 1em);
        opacity: 0;
    }

    100% {
        transform: translate(0, 0em);
        opacity: 1;
    }
}

#scroll-down {
    display: flex;

    position: absolute;
    bottom: 1.5em;
    left: 0;
    right: 0;

    margin: 0 auto;
    z-index: 2;

    transition: transform 0.3s
}

#scroll-down>img {
    height: 0.8em;
    opacity: 0.9;
    margin: 0 auto;
}

#scroll-down:hover {
    transform: scale(118%);
}

/*Small phones*/
@media only screen and (max-width: 380px) {  
    #landingSection>div>* {
        margin: 0;
    }
}

/*Non-mobile by height*/
@media only screen and (min-height: 900px) {
    #portrait {
        height: 18em;
    }
    
    #scroll-down>img {
        height: 1.25em;
    }
}

/*Large Desktops*/
@media only screen and (min-width: 1200px) {
    #landingSection h1 {
        font-size: 70px;
        font-weight: 600;
    }

    #landingSection h2 {
        font-size: 50px;
        font-weight: 550;
    }

    h3 {
        font-size: 40px;
        font-weight: 550;
    }

    #portrait {
        height: 23em;
        border-radius: 50%;
    }
}


#latestWorkSection {
    background-image:  linear-gradient(to right bottom, #c3ffc3 0%, #d0fff0);

    /*min-height: 100vh;*/
}

#latestWorkSection>h3 {
    text-align: center;
    margin-bottom: 0.2em;
}

#latestWorkSection>div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#latestWorkSection>div>a {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;

    width: 80vw;
    max-width: 60em;
    margin: 1em 0em;

    color: black;
    text-decoration: none;

    background-size: cover;
    background-repeat: no-repeat;
    box-shadow: 0 20px 80px 0 rgba(0, 0, 0, 0.45);

    border-radius: 10px;
    aspect-ratio: 16 / 11;

    transition: transform 0.3s, font-size 0.3s;
}

#latestWorkSection a:hover {
    transform: translate(0, -1em);
}

.latestWorkContent {
    margin: 3em;
}

#aiplatformWork {
    background-image: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%), url("img/latestProjects/aiplatform.webp");
}

#lightPartyWork {
    background-image: linear-gradient(to bottom, rgba(255,255,255,0.4) 0%, rgba(255,255,255,1)), url("img/latestProjects/lightParty.webp");
}

#suspiciousDinnerWork {
    background-image: linear-gradient(to bottom, rgba(255,255,255,0.4) 0%, rgba(255,255,255,1)), url("img/latestProjects/suspicious-dinner.webp");
}

#airinfoPiWork {
    background-image: linear-gradient(to bottom, rgba(255,255,255,0.4) 0%, rgba(255,255,255,1)), url("img/latestProjects/airinfoPi.webp");
}

@media only screen and (min-width: 550px) {
    #latestWorkSection>div>a {
        width: 70vw;
    }

    #lightPartyWork {
        background-image: linear-gradient(to bottom, rgba(255,255,255,0) 20%, rgba(255,255,255,1)), url("img/latestProjects/lightParty.webp");
    }

    #suspiciousDinnerWork {
        background-image: linear-gradient(to bottom, rgba(255,255,255,0) 20%, rgba(255,255,255,1)), url("img/latestProjects/suspicious-dinner.webp");
    }
    
    #airinfoPiWork {
        background-image: linear-gradient(to bottom, rgba(255,255,255,0) 20%, rgba(255,255,255,1)), url("img/latestProjects/airinfoPi.webp");
    }
}

#contactSection {
    display: flex;
    flex-direction: column;
    align-items: center;

    background-image: linear-gradient(to right bottom, #d0fffd 0%, #d9f5d9);
}

#contactSection>p {
    margin: 1em 0em 0.2em 0em;
    text-align: center;
}

#contactSection a {
    color: black;
    text-decoration: underline #18272F;
    position: relative;
}

#contactSection a::before {
    position: absolute;
    bottom: 0;
    left: 0;

    width: 100%;
    height: 0.1em;
    
    content: '';
    border-radius: 4px;
    background-color: #18272F;

    transform: scaleX(0);
    transition: transform .3s ease-in-out;
    transform-origin: right;
  }

  #contactSection a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

footer {
    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 2em 2em;

    background-image: linear-gradient(to right bottom, #F5F4D9 0%, #E3FAD2);
}

footer>h4 {
    width: 100vw;
    text-align: center;
}

#legalnotice {
    margin-top: 1.5em;
    text-align: center;
}