@import url('https://fonts.googleapis.com/css2?family=Public+Sans:wght@300;400;700&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-size: 18px;
    font-family: 'public sans', sans-serrif;
}

body {
    position: relative;
    overflow-x: hidden;
}

header {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: baseline;
    padding: 20px 20px 20px 20px;
    position: absolute;
    z-index: 2;
    width: 100%;
    background-color: white;
}

header img {
    width: 10%;
    height: 10%;
}

.menu {
    display: none;
}

nav {
    display: flex;
    gap: 14px;
}

nav div {
    padding-bottom: 20px;
}

nav div:hover {
    border-bottom: 4px solid hsl(136, 65%, 51%);
}

nav a {
    text-decoration: none;
    color: hsl(233, 8%, 62%);
    font-size: 14px;
}

nav a:hover {
    color: black;
    font-weight: 500;
}

button {
    padding: 1vw;
    font-size: 14px;
    font-weight: 600;
    width: 9rem;
    color: white;
    border: none;
    border-radius: 20px;
    background-image: linear-gradient(to right, hsl(136, 65%, 51%), hsl(192, 70%, 51%));
}

button:hover {
    box-shadow: inset 0 0 100px 100px rgba(255, 255, 255, 0.3);
}

/* header style complete */

.first-cont {
    display: flex;
    background-image: url(../images/bg-intro-desktop.svg);
    background-repeat: no-repeat;
    background-position-y: -14vh;
    background-position-x: 157%;
    background-size: 69%;
    overflow-x: hidden;
    padding-left: 8em;
}

.text {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-self: center;
    width: 50%;
}

h1 {
    font-size: 54px;
    font-weight: 500;
    width: 76%;
    color: hsl(233, 26%, 24%);
}

p {
    font-size: 16px;
    color: grey;
    width: 66%;
}

.mockup {
    width: 50%;
}

.mockup img {
    width: 100%;
    position: relative;
    left: 78px;
}

/* .first-cont styled */
.mid-cont {
    background-color: hsl(220, 16%, 96%);
    padding: 93px 133px;
    position: relative;
    bottom: 133px;
    z-index: -1;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.reason {
    display: flex;
    flex-direction: column;
    gap: 27px;
}

.reason h2 {
    font-weight: 400;
    font-size: 40px;
    color: hsl(233, 26%, 24%);
}

.reason p {
    width: 53%;
    line-height: 1.5;
}

aside {
    display: flex;
}

aside>div {
    width: 50%;
    display: flex;
}

aside section {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
}

aside section p {
    width: 83%;
    font-size: 14px;
    line-height: 1.4;
}

aside img {
    width: 25%;
}

aside h3 {
    font-weight: 400;
    color: hsl(233, 26%, 24%);
}

/* .mid-cont styled */
.last-cont {
    display: flex;
    flex-direction: column;
    gap: 50px;
    position: relative;
    bottom: 67px;
    padding: 0 122px 50px 122px;
}

.last-cont h4 {
    font-size: 37px;
    font-weight: 500;
    color: hsl(233, 26%, 24%);
}

.art {
    display: flex;
    gap: 20px;
}

article {
    width: 25%;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    background-color: #fdfdfd;
}

article img {
    height: 100%;
    width: 100%;
    border-radius: 10px 10px 0 0;
}

.claire {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.athr {
    font-size: 11px;
}

.claire p {
    font-size: 14px;
    width: 100%;
}

.claire h5 {
    font-weight: 400;
    color: hsl(233, 26%, 24%);
}

.claire h5:hover {
    color: rgb(3, 206, 155);
}

/* end of main */
footer {
    background-color: hsl(233, 26%, 24%);
    padding: 5%;
    align-items: center;
    display: flex;
    justify-content: space-around;
    gap: 12em;
}

.jj {
    display: flex;
    gap: 8em;
}

.ft-one {
    display: flex;
    flex-direction: column;
    gap: 2em;
}

.logo_img {
    background-color: white;
}

i {
    color: white;
}

i:hover {
    color: hsl(136, 65%, 51%);
}

.contact,
.ca-po {
    display: flex;
    flex-direction: column;
    gap: 0.8em;
}

.contact a,
.ca-po a {
    color: white;
}

.contact :hover {
    color: hsl(136, 65%, 51%);
}

.ca-po :hover {
    color: hsl(136, 65%, 51%);
}

.last-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1em;
    color: hsl(233, 8%, 62%);
}

.last-btn p {
    font-size: 13px;
    width: 100%;
}




@media only screen and (max-width: 575px) {
    header {
        justify-content: flex-start;
        gap: 15em;
        align-items: center;
        width: 100vw;
        padding: 25px;
    }

    header img {
        width: 40%;
        text-align: left;
    }

    header nav,
    button {
        display: none;
    }

    .menu {
        display: flex;
    }

    .menu img {
        width: 7%;
        height: 23%;
        position: absolute;
        left: 88%;
        top: 37%;
    }

    .first-cont {
        display: flex;
        flex-direction: column-reverse;
        background-image: url(../images/bg-intro-mobile.svg);
        background-repeat: no-repeat;
        background-position: 0vw 12vh;
        background-size: 100%;
        overflow-x: hidden;
        overflow-y: hidden;
        gap: 2em;
        padding: 10px;
        margin-bottom: 36vh;

    }

    .mockup {
        width: 100%;
    }

    .mockup img {
        left: 0;
        margin-top: -53px;
    }

    .text {
        width: 100%;
        gap: 22px;
        align-items: center;
        text-align: center;
    }

    .text h1 {
        width: 100%;
        font-size: 34px;
    }

    .text p {
        width: 100%;
        font-size: 15px;
        line-height: 1.5;
    }

    .text button {
        display: block;
        width: 50%;
        padding: 3.5vw;
        border-radius: 30px;
    }

    .mid-cont {
        padding: 60px 15px;
        gap: 2em;
    }

    .reason {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
        width: 100%;
    }

    .reason h2 {
        font-size: 31px;
        width: 60%;
        text-align: center;
    }

    .reason p {
        width: 100%;
        text-align: center;
        font-size: 15px;
    }

    aside {
        flex-direction: column;
        align-items: center;
    }

    aside>div {
        width: 100%;
        flex-direction: column;
        gap: 2em;
    }

    aside section {
        width: 100%;
        align-items: center;
    }

    aside section h3 {
        font-weight: 400;
        color: hsl(233, 26%, 24%);
    }

    aside section p {
        width: 100%;
        text-align: center;
        font-size: 15px;
    }

    .last-cont {
        padding: 0 8%;
    }

    .last-cont h4 {
        text-align: center;
        font-size: 1.8em;
        font-weight: 500;
        color: hsl(233, 26%, 24%);
    }

    .art {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    article {
        width: 100%;
    }

    .claire {
        padding: 10%;
        width: 100%;
    }

    .claire p {
        font-size: 12px;
        width: 100%;
    }

    .claire h5 {
        font-weight: 400;
        font-size: 16px;
        width: 74vw;
    }

    footer {
        display: flex;
        flex-direction: column;
        gap: 2em;
    }

    .jj {
        display: flex;
        flex-direction: column;
        gap: 1em;
        text-align: center;
    }

    .ft-one {
        gap: 2em;
    }

    .contact,
    .ca-po {
        gap: 1em;
        color: aliceblue;
    }

    nav a {
        color: aliceblue;
    }

    .last-btn {
        align-items: center;
    }

    footer button {
        display: inline;
        width: 100%;
        border-radius: 30px;
        padding: 1em;
    }
}

/* end of mobile */
@media screen and (max-width: 996px) and (min-width: 576px) {

    header {
        padding: 14px;
        align-items: baseline;
    }

    header img {
        width: 15%;
    }

    button {
        width: 25%;
        padding: 1em;
        border-radius: 30px;
    }

    .first-cont {
        padding-left: 2em;
        gap: 1em;
    }

    .first-cont h1 {
        font-size: 40px;
        width: 100%;
    }

    .first-cont p {
        font-size: 14px;
        width: 100%;
    }

    .mid-cont {
        bottom: 73px;
        padding: 133px 0 133px 45px;
    }

    .text button {
        width: 50%;
    }

    .reason p {
        width: 60%;
    }

    aside {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3em;
    }

    aside section {
        width: 25%;
    }

    aside>div {
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 3em;
    }

    aside img {
        width: 50%;
    }

    aside section p {
        width: 100%;
        font-size: 14px;
    }

    .last-cont {
        position: relative;
        bottom: 48px;
        padding: 0 12px;
    }

    .art {
        gap: 10px;
    }

    .claire {
        padding: 19px;
    }

    .claire h5 {
        font-size: 11px;
        width: 100%;
        font-weight: 600;
    }

    .claire p {
        font-size: 10px;
    }

    footer {
        gap: 1em;
    }

    .jj {
        gap: 2em;
    }

    .last-btn {
        gap: 1em;
        font-size: 13px;
    }

    .last-btn button {
        width: 70%;
        padding: 6%;
    }
}