/* 

### Primary

- Light red (CTA text): hsl(356, 100%, 66%)
- Very light red (CTA hover background): hsl(355, 100%, 74%)
- Very dark blue (headings): hsl(208, 49%, 24%)

### Neutral

- White (text): hsl(0, 0%, 100%)
- Grayish blue (footer text): hsl(240, 2%, 79%)
- Very dark grayish blue (body copy): hsl(207, 13%, 34%)
- Very dark black blue (footer background): hsl(240, 10%, 16%)

### Gradient

Background gradient - Intro/CTA mobile nav:

- Very light red: hsl(13, 100%, 72%)
- Light red: hsl(353, 100%, 62%)

Background gradient - body:

- Very dark gray blue: hsl(237, 17%, 21%)
- Very dark desaturated blue: hsl(237, 23%, 32%) */
* {
    margin: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Overpass', sans-serif;
}

a {
    text-decoration: none;
}

img {
    width: 100%;
}

::root {
    --clr-light-red: hsl(356, 100%, 66%);
    --clr-very-light-red: hsl(355, 100%, 74%);
    --clr-very-dark-blue: hsl(208, 49%, 24%);
    --clr-white: hsl(0, 0%, 100%);
    --clr-grayish-blue: hsl(240, 2%, 79%);
    --clr-very-dark-gray-blue: hsl(207, 13%, 34%);
    --clr-very-dark-black-blue: hsl(240, 10%, 16%);
    --clr-grad-very-light-red: hsl(13, 100%, 72%);
    --clr-grad-light-red: hsl(353, 100%, 62%);
    --clr-grad-very-dark-gray-blue: hsl(237, 17%, 21%);
    --clr-grad-very-dark-desat-blue: hsl(237, 23%, 32%);
}

header {
    padding: 3em 2em 8em;
    border-bottom-left-radius: 6rem;
    background: url(images/bg-pattern-intro-mobile.svg), linear-gradient(hsl(13, 100%, 72%), hsl(353, 100%, 62%));
    color: white;
    background-size: 150%;
    background-position: center left;
    background-repeat: no-repeat;
    position: relative;
    /* object-fit: cover; */
}

header img {
    width: auto;
}
.hidden-desktop{
    display: inline-block;
}
.hidden-mobile{
    display: none;
}
.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

#btn-toggle-nav {
    background: none;
    border: none;
    cursor: pointer;
    position: relative;

}

.menu-toggle {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
}

.menu-toggle {
    transition: all .5s;
    transform: rotate(-1.5turn);
}

.hidden-nav-btn {
    transform: rotate(0);
    opacity: 0;
}

.open-nav nav {
    max-height: 600px;
    opacity: 1;
}

nav {
    position: absolute;
    background-color: white;
    top: 8em;
    left: 1em;
    right: 1em;
    box-shadow: 6px 12px 16px rgba(126, 126, 126, .4), 3px 6px 8px rgba(126, 126, 126, .2);
    border-radius: .5rem;
    padding: 0 1em;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: all .5s;
}

nav a {
    color: hsl(208, 49%, 24%);
}

nav ul {
    padding: 0;
    list-style: none;
}

.nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nav-item,
.sub-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.sub-nav-item {
    width: 100%;
    margin-block: 1.5em;
}

.sub-nav-link {
    font-weight: 600;
}

.nav-link {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 1.5rem;
    min-width: 9rem;
}

.nav-link::after {
    content: url(/images/icon-arrow-dark.svg);
    margin-left: .5rem;
    scale: 1.2;
    display: inline-block;

}

.nav-link.opened::after {
    transform: rotate(.5turn);
}

nav .separator {
    background-color: hsl(240, 2%, 79%);
    height: 1px;
    border: none;
    margin-block: 1em;
}

.sub-nav.visible {
    /* padding: 1em; */
    max-height: 300px;

}

.sub-nav {
    background-color: hsl(240, 2%, 88%);
    border-radius: .5em;
    transition: max-height .5s;
    width: 100%;
    overflow: hidden;
    max-height: 0;
}

.auth-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
    padding: 1em;
    font-weight: 600;
}


.signup-btn {
    background: linear-gradient(to right, hsl(13, 100%, 72%), hsl(353, 100%, 62%));
    padding: .8em 2em;
    border-radius: 3em;
    color: white;
}

.header-content {
    margin-top: 6em;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.buttons-wrapper {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 3rem;
}

.start-free,
.learn-more {
    background-color: white;
    /* display: inline-block; */
    border-radius: 2rem;
    padding: .8rem 1rem;
    font-weight: bold;
    color: hsl(356, 100%, 66%);
}

.start-free:hover {
    background-color: hsl(356, 100%, 66%);
    color: white;
}

.learn-more:hover {
    background: white;
    color: hsl(356, 100%, 66%);
}

.learn-more {
    margin-left: 3rem;
    border: 1px solid white;
    color: white;
    background: transparent;
}

article h1 {
    color: hsl(208, 49%, 24%)
}

article {
    text-align: center;
    padding: 4rem 2rem 0;
}

.for-the-future {
    text-align: center;
    margin-top: 3rem;
    padding: 0 2rem;
    line-height: 1.6rem;
}

.for-the-future h1 {
    margin-bottom: 1rem;
}
.article-wrapper{
    overflow: hidden;
}
.for-the-future .code-editor.hidden-mobile{
    margin-right: -20%;
    width: 60%;
    height: auto;
}

.feature h3 {
    margin: 1.5rem 0;
}

.free-open-simple{
    display: flex;
    flex-direction: column;
}

.infrastructure {
    margin-top: 2rem;
    padding-top: 10rem;
    padding-left: 0;
    padding-right: 0;

}

.infrastructure .feature {
    background: url(images/bg-pattern-circles.svg), linear-gradient(hsl(237, 23%, 32%), hsl(237, 17%, 21%));
    background-position: center;
    border-top-right-radius: 6rem;
    border-bottom-left-radius: 6rem;
    padding: 15rem 2rem 6rem;
    text-align: center;
    color: white;
    line-height: 1.6rem;
    position: relative;
    background-size: 140%;
    background-repeat: no-repeat;
    background-position: center -10rem, top left;
}

.infrastructure .feature h1 {
    color: white;
    line-height: 1.6em;
    margin-bottom: 1rem;
}

.phones-illustration {
    position: absolute;
    top: -10%;
    left: 0;
    right: 0;
    height: 60%;
    width: auto;
    margin-left: auto;
    margin-right: auto;
}

footer {
    color: white;
    background-color: hsl(240, 10%, 16%);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 0;
    border-top-right-radius: 6rem;
    margin-top: 2rem;
}
.footer-sub-section{
    
    display: flex;
    flex-direction: column;
}

footer a {
    color: white;
    margin-bottom: 1rem;
}

footer h3 {
    margin-bottom: 1.5em;
    margin-top: 1.5em;
}

footer img {
    width: auto;
    margin-bottom: 4rem;
}


@media(min-width:800px) {
    .hidden-desktop{
        display: none;
    }
    .hidden-mobile{
        display: inline-block;
    }
    .nav-logo-wrapper {
        display: flex;
        min-width: 100%;
        align-items: center;
        justify-content: flex-start;
    }

    .nav-link::after {
        content: url(/images/icon-arrow-light.svg);

    }

    .menu-toggle {
        display: none;
    }

    nav {
        display: flex;
        overflow: visible;
        justify-content: space-between;
        align-items: center;
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        background: none;
        min-height: fit-content;

        box-shadow: none;
    }

    .nav-link {
        margin-top: 0;
    }

    nav a {
        color: white
    }

    .nav-list {
        position: relative;
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
    }

    .nav-item {

        min-width: 25%;
    }

    .sub-nav {
        position: absolute;
        top: 3rem;
        width: fit-content;
        background-color: white;
        padding-inline: 1rem;
        min-width: 10rem;
        box-shadow: 2px 12px 16px rgba(0, 0, 0, 0.4), 3px 6px 8px rgba(0, 0, 0, 0.2);

    }

    .sub-nav .sub-nav-link {
        color: hsl(240, 10%, 16%);
    }

    .separator {
        display: none;
    }

    .auth-buttons {
        flex-direction: row;
        margin: 0;
    }
    .signup-btn{
        background: white;
        color: hsl(353, 100%, 62%);
        cursor: pointer;
    }
    .signup-btn:hover{
        color: white;
        background-color: hsl(356, 100%, 66%);
    }
    body nav {
        max-height: fit-content;
        opacity: 1;
    }

    .article-wrapper {
        display: flex;
        flex-direction: row-reverse;
        align-items: center;
    }
    .laptop-illustration.hidden-mobile{
        width: 70%;
        height: auto;
        margin-left: -20%;
    }
    .infrastructure .feature {
        padding: 4rem 2rem;
        background-size: 70%, 100%;
        background-position: bottom 20% right 150%, 0% 0%;
        display: flex;
        align-items: center;
        justify-content: space-around;
        padding-block: 0;
        max-height: 400px;
    }
    .article-wrapper > div,
    .feature-text-wrapper,
    .features-wrapper{

        max-width: 30vw;
        line-height: 1.6rem;
    }
    .feature-text-wrapper,
    .features-wrapper{
        text-align: left;
    }
    .article-wrapper > div{
        margin-left: auto;
        margin-right: auto;
    }
    .feature-text-wrapper {
        margin-right: 10vw;
        margin-left: 4vw;
    }
    .features-wrapper{
        margin-left: auto;
        margin-right: auto;
    }


    .phones-illustration {
        height: 120%;
        width: auto;
        position: relative;
        top: 0;

    }
    .free-open-simple{
        display: flex;
        align-items: center;
        flex-direction: row;
    }
    footer{
        flex-direction: row;
        justify-content: space-between;
        padding-inline: 20%;
        align-items: flex-start;
    }
    footer h3{
        margin-top: 0;
    }
    /* .feature-text-wrapper{
        width: 50%;
    } */


}