@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wdth,wght@0,75..100,300..800;1,75..100,300..800&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

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

:root {
    --Very_Dark_Blue: hsl(243, 87%, 12%);
    --Desaturated_Blue: hsl(238, 22%, 44%);
    --Bright_Blue: hsl(224, 93%, 58%);
    --Moderate_Cyan: hsl(170, 45%, 43%);
    --Light_Grayish_Blue: hsl(240, 75%, 98%);
    --Light_Gray: hsl(0, 0%, 75%);
}

body {
    font-size: 16px;
    font-weight: 400;
    font-family: "Open Sans", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

.a1rs {
    width: 500px;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 50px;
}


nav,
header,
footer {
    padding: 40px 60px;
}

.nl {
    display: flex;
    gap: 40px;
}

.nl>a {
    color: var(--Very_Dark_Blue);
    text-decoration: none;
}

.cmnart {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.a1ls {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 550px;
}

.a1lsht {
    font-size: 35px;
}

.a1lsst {
    font-weight: 500;
}

.a1frm {
    display: flex;
    gap: 10px;
}

.mailbox {
    width: 350px;
    height: 40px;
    padding: 10px;
    font-family: "Open Sans", sans-serif;
    font-optical-sizing: auto;
    font-variation-settings: "wdth" 100;
}

.mailbox::placeholder {
    color: var(--Light_Gray);
}

.error-message {
    display: block;
    visibility: hidden;
    color: #d32f2f;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

input[type="text"]:invalid:not(:placeholder-shown) {
    border-color: #d32f2f;
}

input[type="text"]:invalid:not(:placeholder-shown)+.error-message {
    visibility: visible;
}


.afbtn {
    padding: 0 35px;
    background-color: var(--Bright_Blue);
    border: 0;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease-in-out;
    box-shadow: 4px 4px 10px 0px rgba(0, 0, 0, .3);
}

.afbtn:hover {
    background-color: hsl(221, 100%, 71%);
    cursor: pointer;
}

.art2 {
    background-image: url(./images/bg-curve-desktop.svg);
    background-repeat: no-repeat;
    background-position: center top;
    background-size: auto 80%;
    margin-top: 100px;
}

.cont {
    margin-top: 120px;
    display: flex;
    background-color: hsl(240, 75%, 98%);
    justify-content: space-between;
    width: 100%;
    padding: 40px 60px;
    padding-bottom: 100px;
}

.a2ls {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    gap: 20px;
}

.a2lsst {
    width: 550px;
}

.a2ls>a {
    color: var(--Moderate_Cyan);
    text-underline-offset: 6px;
}

.a2frm {
    background-color: white;
    padding: 30px 40px;
    margin-top: 20px;
    width: 425px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px 0px rgba(0, 0, 0, .3);
}

.prson {
    width: 40px;
    border-radius: 100%;
}

.intro {
    display: flex;
    gap: 10px;
    align-items: center;
}

.introtxt {
    font-size: 64%;
}

.art3 {
    padding: 70px 60px;
    background-color: var(--Desaturated_Blue);
    color: var(--Light_Grayish_Blue);
    justify-content: space-between;
}

.a3frm {
    flex-direction: column;
}

.a3frm>button {
    padding: 10px;
    font-weight: 600;
    max-width: 200px;
}

.a3frm>input {
    height: 40px;
    width: 400px;
}

.a3ls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 500px;
}

.a3lsst {
    font-weight: 300;
}

footer {
    background-color: var(--Very_Dark_Blue);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 100px;
}

.contact {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.link {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    margin-top: 150px;
    text-decoration: none;
}

.link2 {
    display: flex;
    justify-content: space-around;
    gap: 20px;

}

.fl {
    text-decoration: none;
    color: white;
    transition: all 0.3s ease-in-out;
}

.fl:hover {
    color: var(--Bright_Blue);
}

.social {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
}

.fs {
    color: white;
    transition: all 0.3s ease-in-out;
}

.fs:hover {
    color: var(--Bright_Blue);
}

.fs>i {
    border: 1px solid white;
    border-radius: 100%;
    width: 100%;
    height: 100%;
    padding: 10px 10px;
    transition: all 0.3s ease-in-out;
}

.fs>i:hover {

    border-color: var(--Bright_Blue);
}

@media screen and (max-width:1120px) {

    .art1,
    .cont {
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        flex-direction: column-reverse;
        gap: 20px;
        text-align: center;
    }

    .a1rs {
        width: 80%;
    }
}

/* Tablet (768px - 1199px) */
@media screen and (max-width: 1199px) {

    .art1,
    .cont {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }

    .a1ls,
    .a2ls {
        max-width: 100%;
        justify-content: center;
        align-items: center;
    }

    .a1rs,
    .a2rs {
        width: 80%;
    }

    .a1frm {
        justify-content: center;
    }

    .a2frm {
        max-width: 100%;
    }

    .art3 {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }

    .a3ls {
        max-width: 100%;
    }

    .a3frm>input {
        max-width: 100%;
    }
}

/* Mobile (below 768px) */
@media screen and (max-width: 767px) {
    nav {
        gap: 1rem;
        padding: 1rem 5%;
    }

    .nl {
        align-items: center;
        gap: 1rem;
    }

    .art2 {
        background-image: url(./images/bg-curve-mobile.svg);
    }

    .a1lsht {
        font-size: 1.8rem;
    }

    .a2lsst {
        text-wrap: wrap;
        width: auto;
    }

    .a1frm {
        flex-direction: column;
        align-items: center;
    }

    .afbtn {
        width: 100%;
        height: 50px;
    }

    .a1rs,
    .a2rs {
        width: 100%;
    }

    .cont {
        padding: 2rem 5%;
    }

    .a2frm {
        padding: 1.5rem;
    }

    .a3frm {
        align-items: center;
    }

    .a3frm>button {
        width: 100%;
        max-width: 100%;
    }

    footer {
        flex-direction: column;
        align-items: flex-start;
        padding: 3rem 10%;
    }

    .link,
    .link2 {
        margin-top: 2rem;
    }

    .social {
        display: flex;
        text-align: center;
        align-items: center;
        justify-content: center;
        padding-top: 10%;
        padding-left: 30%;
    }
}

/* Small mobile (below 400px) */
@media screen and (max-width: 400px) {
    .a1lsht {
        font-size: 1.5rem;
    }

    .ni {
        width: 25%;
    }

    .nl>a {
        font-size: 90%;
        text-wrap: nowrap;
    }

    .a1lsst,
    .a2lsst,
    .a3lsst {
        font-size: 0.9rem;
    }

    .mailbox {
        width: 100%;
    }

    .afbtn {
        width: 100%;
        max-width: 20rem;
    }

    .a2frm {
        padding: 1rem;
    }

    .a3frm>input,
    button {
        width: auto;
    }

    nav>svg {
        width: 100px;
        height: 100px;
    }
}