* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: #000000;
    color: #ffffff;
    font-size: 30px;
    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 {
    display: flex;
    width: 100%;
    height: calc(100vh - 100px);
    top: 100px;
    z-index: 2;
}

section.sticky {
    position: sticky;
}

section.full-screen {
    height: 100vh;
    top: 0;
    margin-top: 0;
    z-index: 3;
}

/* menu nav */
nav {
    width: 100%;
    width: calc(100% - 40px);
    height: 100px;
    top: 0;
    left: 0;
    top: 20px;
    left: 20px;
    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 li a {
    color: #ffffff;
    font-family: "Space Mono", monospace;
}


/* about */
section.about .empty {
    flex-basis: 37.5vw;
    background: #e5e5e5;
    border-radius: 100px;
    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: #1c47ff;
    border-radius: 100px;
    padding: 3.125vw 6.25vw;
    transition: flex-basis 1s cubic-bezier(0,.9,.4,.99);

}

section.about article .description {
    flex: 1;
    display: flex;
    align-items: center;
    background: #d6a3fb;
    border-radius: 100px;
    color: #000000;
    padding: 3.125vw 6.25vw;}


/* service */
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: #d0ff94;
    border-radius: 100px;
    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: #1f1a1c;
    padding: 3.125vw;
    border-radius: 100px;
}

section.service .text a {
    font-family: "Space Mono", monospace;
}

/* service animation */
section.service.service-html figure 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-css figure 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-js figure img {
    animation-name: float;
    animation-duration: 1s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-timing-function: cubic-bezier(.77,.28,.42,.93);
}

@keyframes float {
    0% {
        transform: translateY(-5%);
    }
    100% {
        transform: translateY(5%); 
    }
}

/* service override */
section.service.service-html figure {
    background: #d0ff94;
}

section.service.service-html .text h2,
section.service.service-html .text a {
    color: #d6a3fb;
}

section.service.service-css figure {
    background: #1c47ff;
}

section.service.service-css .text
h2,
section.service.service-css .text a {
    color: #d0ff94;
}

section.service.service-js figure {
    background: #d6a3fb;
}

section.service.service-js .text h2,
section.service.service-js .text a {
    color: #1c47ff;
}

/* contact */
section.contact {
    position: relative;
    z-index: 10;
    align-items: center;
    justify-content: center;
    background: linear-gradient(#1c47ff, #d0ff94 60%, #d6a3fb 70%, #e5e5e5);
    border-radius: 100px;
}

section.contact a {
    font-size: 100px;
    color: #000000;
    font-weight: bold;
    transform: color;
    transition: color 2s;
}

section.contact a:hover {
    color: #ffffff;
}

/* responsive */
@media only screen and (max-width: 768px) {
   html, body {
    --border-radius: 50px;
    --padding: 6.25vw;
   }

   h1 {
    font-size: 60px;
   }

   h2 {
    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: 40px;
   }
}