*{
    box-sizing: border-box;
}

html, 
body {
            --border-radius: 100px;
            --blue: #c7e4ef;
            --pink: #f9e3fa;            
            --green: #b4ccbc;
            --grey: #d0d3cf;
            --gutter: 3.125vw 6.25vh;

            margin: 0;
            padding: 0;
            background: #b4ccbc;
            color: #FFFFFF;
            font-size: 20px;
            font-family: 'Syne', sans-serif;
}

h1{
    font-size: 70px;
    line-height: 1em;
    margin: 0px;
}

h2{
    font-size: 60px;
    margin: 0px;
}

a{
    color:#FFFFFF;
    text-decoration: none;
}

section {
    position: relative;
    display: flex;
    width: 100%;
    height: calc(100vh - 100px);
    top: 100px;
    z-index: 2;
}

section.sticky {
    position: sticky;
    margin-top: 100px;
}

section.full-screen {
    height: 100vh;
    top: 0;
    margin-top: 0;
    z-index: 3;
}

/* NAVIGATION */

nav {
    position: fixed;
    width: 100%;
    height: 100px;
    top: 0;
    left:0;
    font-size: 20px;
    z-index: 1;
}

nav ul { 
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

nav ul li {
    list-style: none;
    margin-left: 45px;
}

nav ul a {
    color:#FFFFFF;
    font-family: 'Space Mono', monospace;
}

/* ABOUT SECTION*/

section.about .photo img {
    flex-basis: 37.5vw;
    background: var(--green);
    border-radius: var(--border-radius);
    transition: flex-basis 1s cubic-bezier(0,.9,.4,.99);
}


section.about article {
    flex: 1;
    display: flex;
    flex-direction: column;
}

section.about article .title {
    flex: 1;
    display: flex;
    align-items: flex-end;
    background: var(--blue);
    border-radius: var(--border-radius);
    padding: var(--gutter);
    transition: flex-basis 1s cubic-bezier(0,.9,.4,.99);
}

section.about article .description {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--pink);
    border-radius: var(--border-radius);
    padding: var(--gutter);
    color: #000000;
}

/* SERVICE SECTION */

section.service article {
    display: flex;
    width: 100%
}

section.service figure {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-basis: 56.25vw;
    margin: 0;
    background: var(--green);
    border-radius: var(--border-radius);
    max-width: 62.5vw;
    transition: flex-basis 1s cubic-bezier(0,.9,.4,.99);
}

section.service figure img {
    width: 40%;
}

section.service .text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    background: var(--blue);
    padding: var(--gutter);
    border-radius: var(--border-radius);
}

section.service .text a{
    font-family: 'Space Mono', monospace;
}

/* SERVICE SECTION ANIMATIONS */

section.about .photo img {
    animation-name: float;
    animation-duration: 1s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-timing-function: cubic-bezier(.77,.28,.42,.93);
}

section.service.service-web figure img {
    animation-name: rotate;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-timing-function: cubic-bezier(.77,.28,.42,.93);
}

@keyframes float {
    0% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(5px);
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0);
    }
    100% {
        transform: rotate(180deg);
    }
}

/* SERVICE SECTION OVERRIDES */

section.service.service-web figure {
    background: var(--pink);
}

section.service.service-web .text h2, section.service.service-web .text a {
    color: #FFFFFF
}


/* CONTACT SECTION */

section.contact {
    align-items: center;
    justify-content: center;
    background: var(--green);
    border-radius: var(--border-radius);
    mix-blend-mode:normal;
}

section.contact a {
    font-size: 100px;
    color: #000;
    font-weight: bold;
    transition: filter 2s cubic-bezier(.77,.28,.42,.93);
    will-change: filter;
}

section.contact a:hover {
    filter: blur(20px);
}

/* RESPONSIVE */

@media only screen and (max-width: 768px) {
    html, body {
        --border-radius: 50px;
        --gutter: 6.25vw;
    }

    h1 {
        font-size: 60px;
    }

    h1 {
        font-size: 40px;
    }

    nav ul li {
        margin-left: 25px;
    }

    section.service article {
        flex-direction: column;
    }

    section.service figure {
        flex-basis: 25vh;
    }

    section.service figure img {
        width: 20%;
    }

    section.contact a {
        font-size: 50px;
        transform: rotate(90deg);
    }

}
