/*==================== GOOGLE FONTS ====================*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

/*==================== VARIABLES CSS ====================*/
:root {
    --header-height: 3rem;
    --one-color: hsl(187, 77%, 41%);
    --two-color: hsl(0, 0%, 19%);
    --three-color: hsl(0, 0%, 42%);
    /*========== COLORS ==========*/
    --hue-color: 187;
    --first-color: hsl(var(--hue-color), 77%, 41%);
    --first-color-alt: hsl(var(--hue-color), 70%, 37%);
    --title-color: hsl(0, 0%, 19%);
    --text-color: hsl(0, 0%, 42%);
    --body-color: hsl(var(--hue-color), 60%, 99%);
    --container-color: white;
    --white-color: var(--container-color);
    --black-color: black;
    --scroll-bar-color: hsl(var(--hue-color), 12%, 90%);
    --scroll-bar-thumb-color: hsl(var(--hue-color), 12%, 80%);

    /*========== FONT & TYPORGRAPHY ==========*/
    --body-font: 'Poppins', sans-serif;

    --bigger-font-size: 2rem;
    --big-font-size: 2rem;
    --h1-font-size: 1.5rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1.125rem;
    --normal-font-size: .938rem;
    --small-font-size: .813rem;
    --smaller-font-size: .75rem;

    /*========== FONT WEIGHT ==========*/
    --font-500: 500;
    --font-600: 600;
    --font-700: 700;
    --font-800: 800;

    /*========== MARGINS ==========*/
    --mb-0-25: 0.25rem;
    --mb-0-5: 0.5rem;
    --mb-0-75: 0.75rem;
    --mb-1: 1rem;
    --mb-1-5: 1.5rem;
    --mb-2: 2rem;
    --mb-2-5: 2.5rem;
    --mb-3: 3rem;

    /*========== Z INDEX ==========*/
    --z-tooltip: 10;
    --z-fixed: 100;
    --z-modal: 1000;
}

/*========== FONT SIZE FOR LARGER SCREENS ==========*/
@media screen and (min-width: 968px) {
    :root {
        --bigger-font-size: 4rem;
        --big-font-size: 3rem;
        --h1-font-size: 2.25rem;
        --h2-font-size: 1.5rem;
        --h3-font-size: 1.25rem;
        --normal-font-size: 1rem;
        --small-font-size: .875rem;
        --smaller-font-size: .813rem;
    }
}

/*==================== BASE ====================*/
* {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

::selection {
    color: var(--white-color);
    background-color: var(--first-color);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: var(--header-height) 0 0 0;
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--body-color);
    color: var(--text-color);
    overflow-x: hidden;
    font-display: optional;
}

h1, h2, h3, h4 {
    color: var(--title-color);
    font-weight: var(--font-600);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/*==================== REUSABLE CSS CLASSES ====================*/
.section {
    padding: 4rem 0 2rem;
}

.section__title {
    font-size: var(--h1-font-size);
    margin-bottom: var(--mb-1);
}

.section__subtitle {
    display: block;
    font-size: var(--small-font-size);
    margin-bottom: var(--mb-3);
}

.section__title, .section__subtitle {
    text-align: center;
}

.button {
    display: inline-block;
    background-color: var(--first-color);
    color: #fff;
    padding: 1rem 2rem;
    font-weight: var(--font-600);
    transition: .3s;
    border-radius: 2rem 0;
    border: none;
    outline: none;
}

.button:hover {
    cursor: pointer;
    background-color: var(--first-color-alt);
}

.button-link {
    background: none;
    border: 2px solid var(--first-color);
    color: var(--first-color);
}

.button-link:hover {
    background-color: transparent;
    color: var(--first-color-alt);
}

/*==================== LAYOUT ====================*/
.container {
    max-width: 968px;
    width: calc(100% - 3rem);
    margin-left: var(--mb-1-5);
    margin-right: var(--mb-1-5);
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-fixed);
}

/*==================== NAV ====================*/
.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media screen and (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: -100%;
        left: 0;
        right: 0;
        width: 90%;
        margin: 0 auto;
        padding: 2.5rem 0 0;
        text-align: center;
        background-color: var(--body-color);
        transition: .4s;
        box-shadow: 0 0 4px rgba(0, 0, 0, .1);
        border-radius: 2rem;
        z-index: var(--z-fixed);
    }
}

.nav__item {
    margin-bottom: var(--mb-1-5);
}

.nav__link, .nav__logo, .nav__toggle {
    color: var(--title-color);
    font-weight: var(--font-600);
}

.nav__logo:hover {
    color: var(--first-color);
}

.nav__link {
    transition: .3s;
}

.nav__link:hover {
    color: var(--first-color);
}

.nav__toggle {
    font-size: 1.3rem;
    cursor: pointer;
}

/* Show menu */
.show-menu {
    top: calc(var(--header-height) + 1rem);
}

/* Active menu link */
.active-link {
    position: relative;
}

.active-link::before {
    content: '';
    position: absolute;
    bottom: -.75rem;
    left: 45%;
    width: 5px;
    height: 5px;
    background-color: var(--title-color);
    border-radius: 50%;
}

/* Change background header */
.scroll-header {
    background-color: var(--white-color);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .1);
}

/*==================== HOME ====================*/
.home__container {
    row-gap: .5rem;
}

.home__img img {
    position: absolute;
    z-index: -1;
    top: 0;
    right: -3rem;
    border-bottom-left-radius: 11rem;
    width: 280px;
}

.home__data {
    margin-top: 15rem;
}

.home__data span {
    color: #18A7B9;
}

.home__title {
    color: #313131;
    font-size: var(--big-font-size);
    font-weight: var(--font-700);
    line-height: 1.3;
    margin-bottom: var(--mb-1);
}

.home__description {
    margin-bottom: var(--mb-1-5);
    color: #6B6B6B;
}

.button__wrapper {
    display: grid;
    row-gap: var(--mb-1);
    text-align: center;
}

.home__info {
    margin-top: var(--mb-2);
    text-align: center;
}

.home__info-title {
    position: relative;
    font-size: var(--h2-font-size);
}

.home__info-title::before {
    content: '';
    position: absolute;
    top: -6px;
    width: 17px;
    height: 27px;
    border-radius: 1rem 0 0 1rem;
    z-index: -1;
    transform: rotate(45deg);
}

.home__info div:first-child .home__info-title::before {
    background: orange;
}

.home__info div:nth-child(2) .home__info-title::before {
    background: #18A7B9;
}

.home__info div:nth-child(3) .home__info-title::before {
    background: green;
}

/*==================== SPONSOR ====================*/
.sponser__container {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    row-gap: 5rem;
    justify-items: center;
    align-items: center;
}

.sponser__img {
    width: 90px;
}

/*==================== ABOUT ====================*/
.about {
    position: relative;
}

.about__header-description {
    padding: var(--mb-1);
    text-align: center;
}

.about__wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.about__button {
    margin-bottom: var(--mb-1-5);
}

.about__img img {
    position: absolute;
    z-index: -1;
    left: -6rem;
    margin-top: var(--mb-1-5);
    border-top-right-radius: 11rem;
    width: 280px;
    opacity: .5;
}

.about__card-title {
    position: relative;
    font-size: var(--big-font-size);
    margin-bottom: var(--mb-1);
    color: #313131;
}

.about__card-title::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: -10px;
    width: 35px;
    height: 35px;
    border-radius: 0 1rem;
    z-index: -1;
}

.about__card-container .about__card:first-child .about__card-title::before {
    background: orange;
}

.about__card-container .about__card:nth-child(2) .about__card-title::before {
    background: #18A7B9;
}

.about__card-container .about__card:nth-child(3) .about__card-title::before {
    background: green;
}

.about__card-description {
    color: #6B6B6B;
}

/*==================== ENGINEER ====================*/
.section__subtitle {
    padding: 0 var(--mb-1);
}

.engineer__container {
    justify-content: center;
    row-gap: var(--mb-3);
}

.engineer__card {
    max-width: 200px;
}

.engineer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.2rem;
}

.engineer__star {
    color: #F0BB00;
}

.engineer__icon {
    color: #313131;
}

.engineer__card-content {
    text-align: center;
    justify-content: center;
    row-gap: 0;
}

.engineer__img {
    margin: auto;
    display: block;
    width: 120px;
}

.engineer__img img {
    border-radius: 50%;
}

.engineer__title {
    color: #313131;
    font-weight: var(--font-500);
}

.engineer__subtitle {
    margin-bottom: var(--mb-0-75);
}

.engineer__subtitle,
.engineer__phone {
    color: #6B6B6B;
}

.engineer__email {
    color: #18A7B9;
}

/*==================== MESSAGE ====================*/
.message {
    background-image: linear-gradient(rgb(0 0 0 / 45%), rgb(0 0 0 / 45%)), url('https://source.unsplash.com/random/1000x500');
    background-repeat: no-repeat;
    background-size: cover;
    text-align: center;
    color: var(--white-color);
    margin-top: var(--mb-3);
}

.message .section__title {
    margin-bottom: var(--mb-3);
    color: var(--white-color);
}

.msg-1,
.msg-2 {
    position: relative;
}

.msg-1::before,
.msg-1::after {
    position: absolute;
    content: '';
    background: var(--white-color);
    inset: 0;
    top: -4.2rem;
    clip-path: polygon(23% 57%, 33% 57%, 21% 94%, 4% 93%);
    width: 91px;
    height: 64px;
    transform: scale(1.2);
}

.msg-1::after {
    left: 1.5rem;
}

.msg-2::before,
.msg-2::after {
    position: absolute;
    content: '';
    background: var(--white-color);
    inset: 1;
    bottom: -3rem;
    right: 0;
    clip-path: polygon(23% 57%, 33% 57%, 21% 94%, 4% 93%);
    width: 91px;
    height: 64px;
    transform: scale(1.2) scaleX(-1) scaleY(-1);
}

.msg-2::after {
    right: 1.5rem;
}

/*==================== CCONTACT ====================*/
.form {
    padding: 4rem 0;
    border-radius: 1rem;
    /* box-shadow: 0 10px 25px rgba(92, 99, 105, .2); */
    /* background: red; */
}

.form__title {
    font-weight: 400;
    margin-bottom: 3rem;
}

.form__div {
    position: relative;
    height: 48px;
    margin-bottom: 1.5rem;
    /* background-color: #dadada; */
}

.form__input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-size: var(--normal-font-size);
    border: 1px solid #6B6B6B;
    border-radius: .5rem;
    outline: none;
    padding: 1rem;
    background: none;
    z-index: 1;
}

.form__label {
    position: absolute;
    left: 1rem;
    top: .7rem;
    padding: 0 .25rem;
    color: #6B6B6B !important;
    color: var(--input-color);
    font-size: var(--normal-font-size);
    transition: .3s;
}

.contact__btn {
    font-family: var(--body-font);
    width: 100%;
    font-size: var(--normal-font-size);
    /* margin-top: 150px; */
}

.contact__btn:hover {
    box-shadow: 0 10px 36px rgba(0, 0, 0, .15);
}

/*Input focus move up label*/
.form__input:focus+.form__label {
    top: -.5rem;
    left: .8rem;
    font-size: var(--small-font-size);
    font-weight: 500;
    z-index: 10;
    background-color: var(--white-color);

}

/*Input focus sticky top label*/
.form__input:not(:placeholder-shown).form__input:not(:focus)+.form__label {
    top: -.5rem;
    left: .8rem;
    font-size: var(--small-font-size);
    font-weight: 500;
    z-index: 10;
    background-color: var(--white-color);
}

/*Input focus*/
.form__input:focus {
    border: 1.5px solid #313131;
}

textarea {
    font-family: var(--body-font);
    /* height: 200px !important; */
    resize: none;
}

/* ========== SCROLL-BAR (YouTube) ========== */

textarea::-webkit-scrollbar {
    width: 5px;
}

textarea::-webkit-scrollbar-thumb {
    background: #313131;
    border-radius: 10px;
}

textarea::-webkit-scrollbar-track {
    background: transparent;
}

textarea::-webkit-scrollbar-thumb:hover {
    background: #6B6B6B;
    cursor: grab !important;
}

/*==================== BLOGS ====================*/
.blogs__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem 1rem;
    color: var(--white-color);
    border-radius: .5rem;
    background-image: linear-gradient(rgba(138, 138, 138, 0.45), rgba(0, 0, 0, 0.45)), url('https://source.unsplash.com/random/250x250');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transition: all .3s ease-in-out;
}

.blogs__card:hover .blogs__btn {
    display: inline-block;
}

.blogs__title {
    margin-top: 7rem;
    color: var(--white-color) !important;
}

.blogs__btn {
    display: none;
    margin-top: var(--mb-1);
    background-color: transparent;
    color: var(--white-color);
    border: 1px solid var(--white-color);
    padding: 1rem 2rem;
    border-radius: 2rem 0;
    outline: none;
    transition: display .3s ease;
}

.blogs__btn:hover {
    background-color: var(--white-color);
    color: var(--black-color);
    border: 1px solid var(--white-color);
    transition: .3s all;
}

/*==================== NEWSLETTER ====================*/
.newsletter {
    text-align: center;
}

.newsletter__link {
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter__icon {
    font-size: 1.4rem;
}

/*==================== FOOTER ====================*/
.footer__container {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.footer__logo {
    color: var(--title-color);
}

.footer__title {
    margin-bottom: var(--mb-1);
}

.footer__logo, .footer__title {
    font-size: var(--h3-font-size);
}

.footer__link {
    display: inline-block;
    margin-bottom: .75rem;
    color: var(--text-color);
}

.footer__link:hover {
    color: var(--first-color);
}

.footer__social {
    font-size: 1.5rem;
    color: var(--title-color);
    margin-right: var(--mb-1-5);
}

.footer__social:hover {
    color: var(--first-color);
}

.footer__icons {
    margin-top: var(--mb-1);
}

.footer__icon {
    padding: .5rem;
    border-radius: .3rem;
    font-size: 1.4rem;
    background-color: #18a6b9;
    color: var(--white-color);
}

.footer__icon:hover {
    background-color: hsl(187, 77%, 31%);
}

.footer__copy {
    text-align: center;
    font-size: var(--small-font-size);
    color: var(--text-color-light);
    margin-top: 4rem;
}

.footer__description {
    text-align: center;
    margin-bottom: var(--mb-2);
}

.footer__direction {
    display: flex;
    justify-content: space-between;
    background-color: var(--white-color);
    padding: .5rem;
    border-radius: .5rem;
}

.footer__input {
    width: 70%;
    outline: none;
    border: none;
    font-size: var(--normal-font-size);
    font-family: var(--body-font);
}

.footer__input::placeholder {
    font-family: var(--body-font);
}

.footer__button {
    display: inline-block;
    background-color: var(--first-color);
    color: var(--white-color);
    padding: 1rem 1.5rem;
    border-radius: .5rem;
    font-weight: var(--font-semi-bold);
    transition: .3s;
}

.footer__button:hover {
    background-color: var(--first-color-alt);
}

/*==================== MEDA QURIES ====================*/
@media screen and (max-width: 359px) {
    .home__img {
        width: 100%;
    }
}

@media screen and (min-width: 576px) {
    .home__container {
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
    }

    .home__container {
        padding: 5rem 0 0;
    }

    .home__img {
        order: 1;
        width: 100%;
    }

    .home__img img {
        position: absolute;
        z-index: -1;
        top: 0;
        right: 0;
        border-bottom-left-radius: 11rem;
        /* width: 340px; */
        width: calc(52% - 3rem) !important;
    }

    .home__data {
        margin-top: 0;
    }

    .home__info {
        position: absolute;
        right: 4rem;
        top: 26rem;
    }

    .about__title-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }

    .about .section__title {
        order: 1;
    }

    .about__wrapper {
        align-items: flex-start;
    }

    .about .section__title,
    .about__header-description {
        text-align: initial;
    }

    .about__button {
        margin-left: 1rem;
    }

    .about__container {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 4rem;
    }

    .about__img img {
        position: absolute;
        z-index: initial;
        left: -8rem;
        margin-top: var(--mb-1-5);
        border-top-right-radius: 11rem;
        width: 400px;
        opacity: 1;
    }

    .about__card-container {
        margin-top: var(--mb-1);
    }

    .engineer__container,
    .blogs__container {
        grid-template-columns: repeat(2, 1fr);
    }

    .engineer__card {
        justify-self: center;
    }

    .footer__description {
        text-align: initial;
    }
}

@media screen and (min-width: 700px) {
    .home__img img {
        position: absolute;
        z-index: -1;
        top: 0;
        right: 0;
        border-bottom-left-radius: 11rem;
    }
}

@media screen and (min-width: 768px) {
    body {
        margin: 0;
    }

    .section {
        padding-top: 7rem;
    }

    .nav {
        height: calc(var(--header-height) + 1.5rem);
    }

    .nav__list {
        display: flex;
        align-items: center;
    }

    .nav__item {
        margin-left: var(--mb-2-5);
        margin-bottom: 0;
    }

    .nav__toggle {
        display: none !important;
    }

    .home__container {
        padding: 7rem 2rem 0;
    }

    .home__info {
        position: relative;
        right: 0;
        top: 0;
        grid-template-columns: repeat(3, 1fr);
    }

    .header {
        z-index: var(--z-modal);
    }

    .home__info {
        margin-top: var(--mb-3);
    }

    .home__data {
        margin-top: -8rem;
    }

    .button__wrapper {
        display: flex;
        flex-direction: row;
        align-items: center;
        column-gap: 2rem;
    }

    .about__img {
        position: relative;
    }

    .about__img img {
        top: -4rem;
        left: 0;
        border-radius: 1rem;
        border-top-right-radius: 11rem;
    }

    .message {
        padding: 8rem 4rem;

    }

    .msg-1::before,
    .msg-1::after {
        top: -4.5rem;
    }

    .engineer__container {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact .section__subtitle,
    .blogs .section__subtitle,
    .engineer .section__subtitle,
    .newsletter .newsletter__description,
    .newsletter__link {
        max-width: 50%;
        margin: auto;
    }

    .contact__container,
    .blogs__container,
    .engineer__container {
        margin-top: var(--mb-3);
    }

    .contact__container {
        grid-template-columns: .6fr 1fr;
    }

    .contact__form {
        order: -1;
    }
}

@media screen and (min-width: 968px) {
    .container {
        margin-left: auto;
        margin-right: auto;
    }

    .home__container {
        position: relative;
        column-gap: 3rem;
    }

    .button {
        padding: 1rem 3.2rem;
    }

    .blogs__container {
        align-items: center;
        justify-content: center;
        display: flex;
    }

    .blogs__card {
        max-width: 350px;
    }
}

@media screen and (min-width: 1024px) {
    .sponser__img {
        width: 100px;
    }

    /* .about__wrapper {
        margin-left: calc(20% + 13rem);
    } */

    .about__img img {
        top: -3rem;
        width: 394px;
    }

    .home__img img {
        width: 536px !important;
        top: -6.5rem;
        right: -5rem;
        border-radius: 1rem;
        border-bottom-left-radius: 11rem;
    }
}