@font-face {
    font-family: font1;
    src: url(./images/Open_Sans/OpenSans-VariableFont_wdth\,wght.ttf);
}

@font-face {
    font-family: font2;
    src: url(./images/Raleway/Raleway-VariableFont_wght.ttf);
}

body {
    font-family: font2;
}

h2,
h3,
h4 {
    font-family: font1;
}

p,
li {
    font-family: font2;
}

nav {
    display: flex;
}

nav ul li {
    list-style: none;
    display: inline-block;
}




.navInfo p {
    position: relative;
}

.navInfo p::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: hsl(243, 87%, 12%);
    visibility: hidden;
    transform: scaleX(0);
    transition: all 0.3s ease-in-out;
}

.navInfo p:hover::after {
    visibility: visible;
    transform: scaleX(1);
    height: 4px;
    width: 100%;

}





/* Mobile Phone */

@media (max-width:850px) {
    body {
        margin: 0;

    }


    .contentOne {
        padding: 20px;
    }

    nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    nav div {
        word-spacing: 5px;
        display: flex;
        text-align: center;
        width: 180px;
        justify-content: space-between;
        font-size: 14px;
    }

    nav img {
        width: 90px;
        margin-right: 5px;
    }

    .contentOne h2 {
        text-align: center;
    }

    .illustration2,
    .illustration1 {
        width: 330px;
    }

    .paragraphOne {
        text-align: center;
        font-weight: 500;
        margin-bottom: 30px;
    }

    .contentOne input {
        display: block;
        width: inherit;
        margin-inline: auto;
        width: 300px;
        padding: 10px;
        margin-bottom: 15px;
        border: 1px solid hsl(238, 22%, 44%);
        border-radius: 5px;
        font-family: font2;
    }

    input::placeholder {
        color: hsl(0, 0%, 75%);

    }

    .contentOne button {
        display: block;
        border-radius: 5px;
        width: 320px;
        padding: 13px;
        background-color: hsl(224, 93%, 58%);
        font-family: font2;
        font-weight: 600;
        border: 2px solid hsl(224, 93%, 58%);
        color: #fff;
        margin-inline: auto;
        cursor: pointer;
        margin-bottom: 120px;

    }

    h3 {
        text-align: center;
        font-size: 16px;
        color: hsl(243, 87%, 12%);
    }

    .contentTwo {
        padding: 24px;
        background-color: hsl(240, 75%, 98%);

    }

    .contentTwo .headingOne {
        margin-top: 70px;
        font-family: font2;
        font-weight: 700;
    }

    .contentTwo p {
        font-size: 14px;
        font-weight: 500;
        color: hsl(238, 22%, 44%);
    }

    .contentTwo .link {
        padding: 20px 0 50px 0;
        margin-inline: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 160px;
    }

    .link p {
        display: inline;

    }

    .link img {
        display: inline;
        position: relative;
        top: 4px;
    }

    hr {
        border: 1px solid hsl(170, 45%, 43%);
    }


    .link p {
        color: hsl(170, 45%, 43%);


    }

    .commentSection {
        text-align: left;
        padding: 20px;
        font-size: 0em;
        margin-bottom: 50px;
        box-shadow: 0 0 10px rgb(227, 223, 223);
        background: #fff;
        border-radius: 5px;
        width: 250px;
        margin-inline: auto;

    }

    .commentSection .quotes {
        width: 15px;
        border-radius: 0%;

    }

    .commentSection p {
        margin-top: 10px;
        margin-bottom: 0;
        font-size: 11px;
        font-weight: 500;
        color: hsl(238, 22%, 44%);
    }

    .commentSection img {
        width: 35px;
        border-radius: 100%;

    }

    .commentProfile {
        display: flex;
        align-items: center;
        margin-top: 18px;

    }

    .commentProfile div h3 {
        text-align: left;
        font-size: 13px;
    }

    .profile {
        line-height: 5px;
        margin-left: 10px;

    }

    .profile p {
        font-size: 9px;
        font-weight: 500;
    }

    .profile h3 {
        font-size: 16px;
        margin-top: 5px;
        padding: 0;
    }

    .contentThree {
        text-align: center;
        background: hsl(238, 22%, 44%);
        padding: 50px 27px 50px 27px;
        color: hsl(0, 4%, 90%);
        font-weight: 500;

    }

    .contentThree h3 {
        font-family: font2;
        font-weight: 700;
        font-size: 20px;
        color: hsl(240, 75%, 98%);
    }

    .contentThree p {
        line-height: 22px;
        color: hsl(0, 2%, 84%);
        font-weight: 500;
        font-family: font1;
    }

    .contentThree input {
        display: block;
        width: inherit;
        margin-inline: auto;
        width: 230px;
        padding: 10px;
        margin-bottom: 10px;
        border: 1px solid hsl(238, 22%, 44%);
        border-radius: 3px;
        font-family: font2;
    }

    .contentThree button {
        display: block;
        border-radius: 3px;
        width: 250px;
        padding: 12px;
        background-color: hsl(224, 93%, 58%);
        font-family: font2;
        font-weight: 650;
        border: 2px solid hsl(224, 93%, 58%);
        color: hsl(240, 75%, 98%);
        margin-inline: auto;
        margin-bottom: 25px;
    }

    .contentFour {
        background: hsl(243, 87%, 12%);
        padding: 50px 0px 40px 40px;
        color: #fff;
    }

    .contentFour .contact {
        display: flex;
        align-items: center;
        justify-items: center;

    }

    .contact p {
        font-family: font1;
    }

    .contact img {
        margin-right: 20px;
    }

    #footerimg {
        margin-bottom: 20px;
    }

    .footerInfo {
        padding: 20px 0 18px 0;
    }

    .footerInfo p {
        font-family: font1;

    }

    .footerIcon i {
        color: white;
        border: 1px solid white;
        padding: 15px;
        width: 10px;
        height: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 100%;
        margin-right: 15px;
    }

    .footerIcon {
        margin-top: 60px;
        display: flex;
        justify-content: center;

    }
}


/* for Desktop */

@media (min-width:850px) {

    body {
        background-color: hsl(240, 75%, 98%);
        padding: 0;
        margin: 0;

    }

    h2,
    h3 {
        font-family: font2;
    }

    h2 {
        font-size: 35px;
        color: hsl(243, 87%, 12%);
    }

    p {
        font-family: font1;
        font-weight: 500;

    }

    main {
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin: 0;
        padding: 40px;
    }


    .contentOne {
        margin-inline: auto;
        padding-right: 20px;

    }

    nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .navInfo {
        display: flex;
        align-items: center;
        justify-content: space-between;
        max-width: 400px;
        width: 250px;
        min-width: 200px;
    }

    .illustration1Container {
        display: flex;
        width: 500px;



    }

    .illustration1 {
        display: flex;
        width: inherit;
    }

    .flexDirectionOne {
        margin-top: 100px;
        display: flex;
        flex-direction: row-reverse;
        justify-content: space-evenly;
        padding-right: 20px;

    }

    .flexDirectionOne h2 {
        margin-top: 45px;
    }

    input {
        width: 240px;
        padding: 10px;
        font-family: font2;
        border: 1px solid hsl(238, 22%, 44%);
        background: hsl(240, 75%, 98%);
        border-radius: 3px;
    }

    input::placeholder {
        color: hsl(0, 0%, 75%);

    }


    button {
        width: 170px;
        padding: 10px;
        font-family: font2;
        font-weight: 600;
        background: hsl(224, 93%, 58%);
        color: hsl(240, 75%, 98%);
        border: hsl(224, 93%, 58%);
        border-radius: 3px;
        cursor: pointer;
    }

    .contentTwo {
        display: flex;
        flex-direction: row-reverse;
        margin-inline: auto;
    }

    .illustration2 {
        margin-top: 100px;
        width: inherit;
    }

    .illustration2Container {
        width: 400px;
    }

    .headingOne {
        font-size: 37px;
        font-weight: 700;
    }

    .contentTwo {
        color: hsl(243, 87%, 12%);
    }


    .contentTwoP {
        color: hsl(243, 87%, 12%);
        padding: 0 110px 0 0;

    }

    .contentTwo .link {
        width: 174px;
    }

    .link p {
        color: hsl(170, 45%, 43%);
        display: inline;
    }

    .link img {
        display: inline;
        position: relative;
        top: 4px;
        margin: 0 0 0 5px;

    }

    hr {
        border: 1px solid hsl(170, 45%, 43%);
    }

    /* comment section */

    .commentSection {
        text-align: left;
        padding: 20px;
        margin: 40px 40px 40px 0;
        box-shadow: 0 0 10px rgb(227, 223, 223);
        background: #fff;
        border-radius: 10px;
        width: 250px;


    }

    .commentSection .quotes {
        width: 15px;
        border-radius: 0%;

    }

    .commentSection p {
        margin-top: 10px;
        margin-bottom: 0;
        font-size: 11px;
        font-weight: 500;
        color: hsl(243, 87%, 12%);
    }

    .commentSection img {
        width: 35px;
        border-radius: 100%;

    }

    .commentProfile {
        display: flex;
        align-items: center;
        margin-top: 18px;

    }

    .commentProfile div h3 {
        text-align: left;
        font-size: 13px;
    }

    .profile {
        line-height: 5px;
        margin-left: 10px;

    }

    .profile p {
        font-size: 9px;
        font-weight: 500;
    }

    .profile h3 {
        font-size: 16px;
        margin-top: 5px;
        padding: 0;
    }

    .contentThree {
        background-color: hsl(238, 22%, 44%);
        margin: 0;
        padding: 45px;
        color: hsl(240, 75%, 98%);
        display: flex;

    }

    .contentThree h3 {
        font-size: 30px;
    }

    .contentThreeDetails {
        width: 500px;
        margin-inline: auto;

    }

    .emailform {
        margin: 0 0 0 200px;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        flex-direction: column;
        margin-inline: auto;

    }

    .buttomInput {
        width: 320px;
        margin-bottom: 15px;

    }

    .contentFour {
        background: hsl(243, 87%, 12%);
        padding: 60px 0 30px 50px;
        color: hsl(240, 75%, 98%);
        display: flex;
        justify-content: space-around;
    }

    .contact {
        display: flex;
        align-items: center;
    }

    .contact img {
        margin-right: 20px;
    }


    .footerInfo,
    .contactUs,
    .footerIcon {
        margin-top: 3.30rem;
    }

    .footerIcon {
        margin-right: 80px;
        padding-top: 13px;
    }

    .footerIcon i {
        color: white;
        border: 1px solid white;
        padding: 15px;
        width: 7px;
        height: 7px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 100%;
        margin-right: 15px;
    }

    .footerIcon {
        margin-top: 60px;
        display: flex;
        justify-content: center;

    }

}

/* hovers */
.navInfo p,
.headerLogo {
    cursor: pointer;
    color: hsl(243, 87%, 12%);
}

button {
    transition: .5s;
}

button:hover {
    background-color: hsl(224, 93%, 72%);
}

.hr {
    transition: .5s;
}

.hr:hover {
    cursor: pointer;
    filter: opacity(0.7);
}

.footerInfo p,
.contactUs p {
    transition: .3s;
    cursor: pointer;
}

.contactUs p:hover,
.footerInfo p:hover {
    color: hsl(224, 93%, 58%);
}

.footerIcon i {
    transition: .2s;
    cursor: pointer;
    text-rendering: optimizeSpeed;
    shape-rendering: optimizeSpeed;
}

.footerIcon i:hover {
    border: 1px solid hsl(224, 93%, 58%);
    color: hsl(224, 93%, 58%);
    transform: scale(1.2);

}

#insta:hover {
    color: #E4405F;
    border: 1px solid #E4405F;
}


.footerIcon i {
    transition: .2s;
    cursor: pointer;
    text-rendering: optimizeSpeed;
    shape-rendering: optimizeSpeed;
}

.footerIcon i:hover {
    border: 1px solid hsl(224, 93%, 58%);
    color: hsl(224, 93%, 58%);
    transform: scale(1.2);

}
