@import url('https://fonts.googleapis.com/css2?family=Overpass:wght@300;600&family=Ubuntu:wght@400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

a {
    all: unset;
}

header {
    background-image: url("./images/bg-pattern-intro-desktop.svg"), linear-gradient(135deg, #ff8f70, #ff3d54);
    background-color: hsl(355, 100%, 74%);
    background-repeat: no-repeat;
    background-position: center left 25%;
    background-size: auto;
    padding: 3% 10%;
    color: #fff;
    height: 80vh;
    border-bottom-left-radius: 74px;
    display: flex;
    flex-direction: column;
}

header img {
    float: left;
}

.arrow {
    border: solid hsl(0, 0%, 90%);
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 2px;
    margin-left: 8px;
    transform: rotate(45deg);
    transition: 500ms;
}

nav {
    font-family: 'Ubuntu', sans-serif;
    display: flex;
    align-items: center;
}

nav .nav-menu {
    list-style: none;
    font-weight: 600;
    color: hsl(0, 0%, 90%);
    margin-left: 3rem;
    display: flex;
    gap: 2rem;
}

nav .nav-menu li {
    position: relative;
    padding: 1rem;
}

nav .nav-menu li:hover {
    text-decoration: underline;
    cursor: pointer;
    display: block;
}

.nav-menu li:hover .arrow {
    transform: rotate(-135deg);
}

.nav-menu li:hover>ul {
    display: block;
}

nav .dropdown {
    list-style: none;
    position: absolute;
    background-color: white;
    display: none;
    font-weight: 300;
    font-size: 16px;
    border-radius: 5px;
    padding: 1rem 0;
    width: 10rem;
    margin-left: -1rem;
    margin-top: 1rem;
}

.dropdown li {
    color: hsl(0, 0%, 20%);
}

.dropdown li:hover {
    text-decoration: none;
    color: hsl(0, 0%, 0%);
    font-weight: 600;
}

nav .nav-btn {
    display: inline-flex;
    margin-left: auto;
    font-weight: 600;
}

.nav-btn .login {
    padding: 0.8rem 1rem;
    color: hsl(0, 0%, 90%);
    margin-right: 1rem;
}

.nav-btn .login:hover {
    cursor: pointer;
    color: hsl(0, 0%, 80%);
    text-decoration: underline;
}

.nav-btn .sign-up {
    padding: 0.8rem 2rem;
    background-color: #fff;
    color: hsl(356, 100%, 66%);
    border-radius: 32px;
}

.nav-btn .sign-up:hover {
    background-color: hsl(355, 100%, 74%);
    color: #fff;
    cursor: pointer;
}

.mobile-nav {
    display: none;
}

.hero-text-container {
    display: flex;
    flex-direction: column;
    margin: auto;
    gap: 1rem;
    margin-bottom: auto;
    font-weight: 300;
    font-size: 1rem;
}

.hero-text-container p, h1 {
    font-family: 'Overpass', sans-serif;
    text-align: center;
}

.hero-text-container h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-top: auto;
}

/* .hero-text-container {
    margin-bottom: auto;
    font-weight: 300;
    font-size: 1rem;
} */

.hero-btn-container {
    text-align: center;
    margin-top: 1.5rem;
}

.hero-btn-container button {
    font-family: 'Ubuntu', sans-serif;
    padding: 0.8rem 1rem;
    border-radius: 32px;
    border: none;
    font-weight: 700;
}

.hero-btn-container button:first-child {
    color: hsl(356, 100%, 66%);
    margin-right: 1rem;
}

.hero-btn-container button:first-child:hover {
    cursor: pointer;
    background-color: hsl(355, 100%, 74%);
    color: #fff;
}

.hero-btn-container button:last-child {
    color: #fff;
    background-color: transparent;
    border: 1px solid #fff;
    transition: 200ms;
}

.hero-btn-container button:last-child:hover {
    cursor: pointer;
    color: hsl(356, 100%, 66%);
    background-color: #fff;
}

.mobile-navbar-btn {
    display: none;
}

/* Section Start */
.section-start {
    font-family: 'Overpass', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-start h2 {
    position: absolute;
    color: hsl(208, 49%, 24%);
    margin-top: 8%;
    font-size: 2.5rem;
}

.section-content {
    display: flex;
    overflow: hidden;
    flex-direction: row-reverse;
    align-items: center;
    min-height: 110vh;
}

.section-img {
    position: absolute;
    max-width: 65%;
    margin-left: 15%;
    object-fit: fill;
    object-position: right;
    max-width: 55%;
}

.mobile-section-img {
    display: none;
}

.section-text-container {
    position: static;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    margin-left: 12%;
    margin-right: 50%;
}

.section-text-container h3 {
    color: hsl(208, 49%, 24%);
    font-weight: 700;
    font-size: 1.8rem;
}

.section-text-container p {
    font-weight: 500;
    font-size: 1rem;
    color: hsl(207, 13%, 34%);
    line-height: 1.7;
    margin-top: 0.8rem;
}

.section-text-container div:first-of-type {
    margin-bottom: 10%;
}

/* Section Mid */

.section-mid-content {
    display: flex;
    align-items: center;
    background-image: url("./images/bg-pattern-circles.svg");
    background-position: bottom 17% left -203px;
    background-size: 60rem;
    background-repeat: no-repeat;
    background-color: hsl(237, 17%, 21%);
    justify-content: start;
    border-radius: 0 74px;
    height: 54vh;
    margin-bottom: 74px;
}

.section-mid img {
    position: absolute;
    padding-top: 3%;
    left: 5%;
}

.section-mid-text-container {
    position: relative;
    font-family: 'Overpass', sans-serif;
    width: 31%;
    color: #fff;
    margin: 0 1rem 0 43rem;
}

.section-mid-text-container h3 {
    font-size: 2rem;
    margin-bottom: 3%;
}

.section-mid-text-container p {
    line-height: 1.7;
    font-size: 0.925rem;
}

/* Section End */

.section-end {
    font-family: 'Overpass', sans-serif;
    color: hsl(208, 49%, 24%);
    height: 100vh;
}

.section-end-content {
    display: flex;
    overflow: hidden;
    flex-direction: row;
    align-items: center;
}

.img-content {
    overflow: hidden;
    max-width: fit-content;
}

.section-end-img {
    position: relative;
    left: -16.5rem;
    height: 100vh;
}

.mobile-section-end-img {
    display: none;
}

.section-end-text-container {
    max-width: 30%;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    margin-right: 5%;
}

.section-end-text-container h3 {
    font-weight: 700;
    font-size: 1.8rem;
}

.section-end-text-container p {
    font-weight: 500;
    font-size: 1rem;
    color: hsl(207, 13%, 34%);
    line-height: 1.7;
    margin-top: 0.8rem;
}

/* Footer */

footer {
    font-family: 'Ubuntu', sans-serif;
    background-color: hsl(240, 10%, 16%);
    border-top-right-radius: 74px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    color: #fff;
    height: 50vh;
}

.footer-logo {
    align-self: center;
    margin: 0 0 12rem 10%; 
}

footer ul {
    list-style: none;
}

.menu-item:hover {
    cursor: pointer;
    color: hsl(240, 10%, 40%);
    text-decoration: underline;
}

.footer-menu {
    display: inline-flex;
    flex-direction: row;
    justify-content: space-evenly;
    width: 100%;
}

.menu {
    margin-top: 2rem;
    line-height: 2.2;
    font-size: 500;
    color: gray;
}

.hidden {
    display: none;
}

.attribution {
    font-size: 11px;
    text-align: center;
}

.attribution a {
    color: hsl(228, 45%, 44%);
}

@media (max-width:980px) {

    header {
        background-image: url("./images/bg-pattern-intro-mobile.svg"), linear-gradient(135deg, #ff8f70, #ff3d54);
    }

    .mobile-navbar-btn {
        display: block;
        margin-left: auto;
        padding: 4px;
    }

    nav .nav-btn,
    nav .nav-menu {
        display: none;
    }

    .mobile-nav {
        font-family: 'Ubuntu', sans-serif;
        font-weight: 500;
        display: flex;
        position: absolute;
        top: 78px;
        width: 80%;
        flex-direction: column;
        align-items: center;
        color: hsl(237, 17%, 21%);
        background-color: #fff;
        padding: 1rem;
        margin-top: 0.5rem;
        transform: translateX(120%);
        transition: 500ms;
    }

    .show {
        transform: translateX(0);
    }

    .nav-menu,
    .nav-btn {
        display: flex;
        flex-direction: column;
        margin-left: 0;
        padding: 0;
    }

    .nav-btn {
        display: flex;
        align-items: center;
        width: 100%;
    }

    .nav-menu {
        list-style: none;
        width: 100%;
        text-align: center;
    }

    .nav-menu li {
        padding: 0.8rem;
        width: 100%;
    }

    .arrow {
        border-color: #ff3d54;
    }

    .mobile-nav .dropdown {
        list-style: none;
        background-color: hsl(0, 0%, 90%);
        display: none;
        font-weight: 500;
        font-size: 16px;
        border-radius: 5px;
        padding: 1rem 0;
        width: 100%;
        margin-top: 1rem;
    }

    hr {
        height: 1px;
        width: 100%;
        margin-top: 8px;
    }

    .mobile-nav .login {
        color: hsl(237, 17%, 21%);
        margin-right: 0;
    }

    .nav-btn .sign-up {
        display: flex;
        align-items: center;
        background-color: #ff3d54;
        color: #fff;
    }

    .hero-text-container h1 {
        font-size: 2.1rem;
        font-weight: 500;
    }

    /* Section Start  */

    .section-start {
        font-family: 'Overpass', sans-serif;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .section-start h2 {
        position: relative;
        color: hsl(208, 49%, 24%);
        margin-top: 15%;
        font-size: 2.5rem;
    }

    .section-content {
        display: flex;
        overflow: auto;
        flex-direction: column;
        align-items: center;
        min-height: 0;
        max-width: 100%;
        padding: 16px 12px 150px;
    }

    .section-img {
        display: none;
    }

    .mobile-section-img {
        display: block;
        position: relative;
        margin-left: 0;
        width: 100%;
        object-fit: fill;
        object-position: center;
        max-width: inherit;
        margin-bottom: 4%;
    }

    .section-text-container {
        position: static;
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        width: 90%;
        margin: 0%;
    }

    .section-text-container div:first-of-type {
        margin-bottom: 2rem;
    }

    /* Section Mid  */

    .section-mid {
        margin-top: 25%;
    }

    .section-mid-content {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: end;
        flex-direction: column;
        background-image: url("./images/bg-pattern-circles.svg");
        background-position: bottom 12rem center;
        background-size: cover;
        background-repeat: no-repeat;
        background-color: hsl(237, 17%, 21%);
        border-radius: 0 74px;
        height: 40rem;
        max-height: 640px;
        margin-bottom: 0;
    }

    .section-mid img {
        position: absolute;
        padding-top: 0;
        left: auto;
        bottom: 20.5rem;
        width: 100%;
        max-width: 552px;
        background-position: top;
    }

    .section-mid-text-container {
        position: relative;
        font-family: 'Overpass', sans-serif;
        width: 80%;
        max-width: 40rem;
        color: #fff;
        text-align: center;
        margin: 0 0 112px 0;
    }

    .section-mid-text-container h3 {
        font-size: 2rem;
        margin-bottom: 3%;
    }

    .section-mid-text-container p {
        line-height: 1.7;
        font-size: 0.925rem;
    }

    /* Section End */

    .section-end {
        height: auto;
        margin-top: 9%;
    }
    
    .section-end-content {
        display: flex;
        overflow: auto;
        flex-direction: column;
        align-items: center;
    }
    
    .img-content {
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: clip;
        max-width: 700px;
        width: 100%;
    }
    
    .section-end-img {
        display: none;
    }

    .mobile-section-end-img {
        display: inline-block;
        width: inherit;
        min-width: 535.550px;
    }
    
    .section-end-text-container {
        max-width: 80%;
        display: flex;
        flex-direction: column;
        text-align: center;
        margin-right: 0;
        margin-bottom: 3rem;
        margin-top: 1rem;
        gap: 2rem;
    }
    
    .section-end-text-container h3 {
        font-weight: 700;
        font-size: 1.8rem;
    }
    
    .section-end-text-container p {
        font-weight: 500;
        font-size: 1rem;
        color: hsl(207, 13%, 34%);
        line-height: 1.7;
        margin-top: 0.8rem;
    }

    /* Footer  */

    footer {
        font-family: 'Ubuntu', sans-serif;
        background-color: hsl(240, 10%, 16%);
        border-top-right-radius: 74px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-evenly;
        color: #fff;
        height: fit-content;
        padding: 5rem 4rem 1rem;
    }
    
    .footer-logo {
        align-self: center;
        margin: 0 0 3rem 0; 
    }
    
    footer ul {
        list-style: none;
        margin-bottom: 2rem;
    }
    
    .footer-menu {
        display: inline-flex;
        flex-direction: column;
        text-align: center;
        justify-content: space-evenly;
        width: 100%;
    }
    
    .menu {
        margin-top: 1rem;
        line-height: 2.2;
        font-size: 500;
        color: gray;
    }

}