:root {
    --green: #54b192;
    --green-l: #a4cec0;
    --gray: #3f3d56;
    --smooth: 0.3s;
}

*,
*:before,
*:after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 100%;
    line-height: 1.6rem;
    font-family: 'Roboto', sans-serif;
}

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

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 10px;
}

button:hover {
    background-color: var(--green-l);
    transition: var(--smooth);
}

button {
    text-align: center;
    color: #fff;
    background-color: var(--gray);
    padding: .8rem 2.5rem;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: var(--smooth);
}


/* header */

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: 4;
    display: none;
}

#overlay.show {
    display: initial;
}

header {
    position: absolute;
    width: 100%;
}

.navbar {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    align-items: center;
}

.navbar__logo {
    display: block;
    width: 40px;
    height: 40px;
    object-fit: cover;
}

.navbar__popout {
    display: none;
}

.navbar__links {
    position: fixed;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background-color: var(--gray);
    z-index: 5;
    transition: var(--smooth);
    transform: translateX(-100%);
    opacity: 0;
}

.navbar__links.navbar__open {
    transform: translateX(0);
    opacity: 1;
    transition: var(--smooth);
}

.navbar__link {
    list-style: none;
    margin: 55px;
}

.navbar__link a {
    text-decoration: none;
    color: #fff;
    font-weight: 300;
    transition: var(--smooth);
}

.navbar__link a:hover {
    color: var(--green);
    transition: var(--smooth);
}

.navbar__btn {
    font-size: 1rem;
    background-color: var(--green);
    margin-left: 45px;
}

.navbar__icons {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    cursor: pointer;
    transition: var(--smooth);
    z-index: 6;
}

.navbar__icon {
    width: 45px;
    height: 6px;
    background-color: var(--gray);
    border-radius: 5px;
    transition: var(--smooth);
    position: relative;
}

.navbar__icon:before,
.navbar__icon:after {
    content: "";
    position: absolute;
    width: 45px;
    height: 6px;
    background-color: var(--gray);
    border-radius: 5px;
    transition: var(--smooth);
}

.navbar__icon:before {
    transform: translateY(-12px);
}

.navbar__icon:after {
    transform: translateY(12px);
}

.open .navbar__icon {
    transform: translateX(-50px);
    background: transparent;
}

.open .navbar__icon:before {
    transform: rotate(45deg) translate(35px, -35px);
}

.open .navbar__icon:after {
    transform: rotate(-45deg) translate(35px, 35px);
}

@media (min-width:62rem) {
    .navbar__logo {
        display: none;
    }
    .navbar__links {
        position: initial;
        font-size: 1.6rem;
        transform: translateX(0);
        opacity: 1;
        background-color: transparent;
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }
    .navbar__links a {
        color: var(--gray);
    }
    .navbar__icons {
        display: none;
    }
    .navbar__btn {
        background-color: var(--gray);
    }
}

#banner {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
}

.banner__img {
    position: absolute;
    top: 0;
    right: 0;
    z-index: -1;
    width: 90%;
}

.banner__heading {
    max-width: 300px;
    margin: 0 auto;
    text-align: center;
    color: var(--gray);
}

.banner__heading h1 {
    font-size: 2.25rem;
    padding-top: 12em;
    margin-bottom: 0.8em;
}

.banner__heading p {
    font-weight: 300;
    line-height: 2em;
    margin-bottom: 1.5em;
}

.banner__btn {
    font-size: 1rem;
}

.banner__socials {
    margin-top: 3em;
    display: flex;
    justify-content: space-around;
    font-size: 1.5rem;
}

.banner__social {
    color: var(--gray);
}

.banner__socials a:hover {
    color: var(--green-l);
    transition: var(--smooth);
}

#things {
    position: relative;
    overflow-x: hidden;
    margin-top: 15em;
}

#things h2 {
    text-align: center;
    color: var(--gray);
    margin-bottom: 3em;
}

.things__dec {
    position: absolute;
    top: 0;
    left: 0;
    transform: translateX(-60%);
    z-index: -1;
}

.things__dec:nth-child(2) {
    top: initial;
    left: initial;
    bottom: 15%;
    right: 0;
    transform: translateX(60%);
    z-index: -1;
}

.things__item {
    margin: 3em 0;
}

.things__item img {
    padding-bottom: 4em;
}

.things__item--heading {
    text-align: center;
    color: var(--gray);
}

.things__item--heading p {
    font-weight: 300;
    line-height: 2em;
    max-width: 300px;
    margin: 0 auto;
    padding-top: 1em;
}

#works {
    padding-top: 10em;
    position: relative;
    overflow-x: hidden;
}

#works h2 {
    text-align: center;
    color: var(--gray);
}

.works__img--single {
    margin: 2em 0;
}

.works__btn {
    text-align: center;
    margin-top: 8em;
}

.works__btn button {
    font-size: 1rem;
}

.works__img--single:nth-child(odd) {
    padding-top: 5em;
}

.works__img--single:nth-child(3) {
    margin-top: -5px;
}

.works__dec {
    position: absolute;
    top: 0;
    left: 0;
    transform: translateX(-60%);
    z-index: -1;
}

.works__dec:nth-child(2) {
    position: absolute;
    top: initial;
    left: initial;
    right: 0;
    bottom: 15%;
    transform: translateX(60%);
    z-index: -1;
}

#footer {
    overflow: hidden;
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
}

.footer__img {
    position: absolute;
    top: 0;
    right: 0;
    transform: translateX(25%) translateY(-18%);
    z-index: -1;
}

.footer__heading {
    max-width: 450px;
    margin: 0 auto;
    text-align: center;
    color: var(--gray);
}

.footer__heading h1 {
    line-height: 3rem;
}

.footer__contact {
    margin-top: 2em;
    display: flex;
    justify-content: space-evenly;
}

.footer__contact a {
    text-decoration: none;
    color: var(--gray);
}

.footer__dec {
    position: absolute;
    bottom: 0;
    left: 0;
    transform: translateX(-45%);
    z-index: -1;
}

@media (min-width:62em) {
    .navbar__popout {
        display: block;
        font-weight: 900;
        font-size: 80px;
        line-height: 1;
    }
    @-webkit-keyframes ani {
        0% {
            transform: translate3d(0, 0, 0);
            text-shadow: 0em 0em 0 lightblue;
            color: black;
        }
        30% {
            transform: translate3d(0, 0, 0);
            text-shadow: 0em 0em 0 lightblue;
            color: black;
        }
        70% {
            transform: translate3d(0.08em, -0.08em, 0);
            text-shadow: -0.08em 0.08em lightblue;
            color: black;
        }
        100% {
            transform: translate3d(0.08em, -0.08em, 0);
            text-shadow: -0.08em 0.08em lightblue;
            color: black;
        }
    }
    @keyframes ani {
        0% {
            transform: translate3d(0, 0, 0);
            text-shadow: 0em 0em 0 lightblue;
            color: black;
        }
        30% {
            transform: translate3d(0, 0, 0);
            text-shadow: 0em 0em 0 lightblue;
            color: black;
        }
        70% {
            transform: translate3d(0.08em, -0.08em, 0);
            text-shadow: -0.08em 0.08em lightblue;
            color: black;
        }
        100% {
            transform: translate3d(0.08em, -0.08em, 0);
            text-shadow: -0.08em 0.08em lightblue;
            color: black;
        }
    }
    .navbar__popout span {
        position: relative;
        display: inline-block;
        -webkit-animation: ani 1s infinite alternate cubic-bezier(0.86, 0, 0.07, 1);
        animation: ani 1s infinite alternate cubic-bezier(0.86, 0, 0.07, 1);
    }
    .navbar__popout span:nth-last-child(1n) {
        -webkit-animation-delay: -0.1666666667s;
        animation-delay: -0.1666666667s;
    }
    .navbar__popout span:nth-last-child(2n) {
        -webkit-animation-delay: -0.3333333333s;
        animation-delay: -0.3333333333s;
    }
    .navbar__popout span:nth-last-child(3n) {
        -webkit-animation-delay: -0.5s;
        animation-delay: -0.5s;
    }
    .banner__heading {
        text-align: initial;
        margin: 0;
        padding-top: 0;
    }
    .banner__socials {
        justify-content: flex-start;
    }
    .banner__socials a {
        margin-right: 45px;
    }
    .banner__img {
        width: 60%;
    }
    .things__item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin: 0;
    }
    .things__item img {
        width: 40%;
    }
    .things__item--heading {
        width: 45%;
        text-align: initial;
    }
    .things__item--heading p {
        max-width: 500px;
        margin: 0;
    }
    .things__item:nth-child(odd) img {
        order: 2;
        width: 40%;
        padding-bottom: 0;
    }
    .things__item--heading:nth-child(odd) {
        order: 1;
        width: 45%;
        text-align: initial;
    }
    #works h2 {
        margin-bottom: 3em;
    }
    .works__img {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .works__img--single {
        margin: 0 5em;
        width: 35%;
    }
    .works__img--single:nth-child(3) {
        margin-top: 0;
    }
    .footer__img {
        top: -15%;
        right: 0;
        transform: translateX(32%);
        width: 60%;
    }
    .footer__heading {
        text-align: initial;
        margin: 0;
        max-width: 300px;
    }
    .footer__contact {
        display: flex;
        justify-content: space-between;
    }
}