/* App Fonts */

@font-face {
    font-family: "TTNorms";
    src: url("../fonts/TTNorms-Regular.otf") format("opentype");
}

@font-face {
    font-family: "TTNorms Medium";
    src: url("../fonts/TTNorms-Medium.otf") format("openType");
}

@font-face {
    font-family: "TTNorms Light";
    src: url("../fonts/TTNorms-Light.otf") format("openType");
}

@font-face {
    font-family: "Times Roman Italic";
    src: url("../fonts/Times-new-roman-italic.ttf") format("truetype");
}

/* Normalize Css */

html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
}

main {
    display: block;
}

h1 {
    font-size: 2em;
    margin: 0.67em 0;
}

hr {
    box-sizing: content-box;
    height: 0;
    overflow: visible;
}

pre {
    font-family: monospace, monospace;
    font-size: 1em;
}

a {
    background-color: transparent;
}

abbr[title] {
    border-bottom: none;
    text-decoration: underline;
    text-decoration: underline dotted;
}

b,
strong {
    font-weight: bolder;
}

code,
kbd,
samp {
    font-family: monospace, monospace;
    font-size: 1em;
}

small {
    font-size: 80%;
}

sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

img {
    border-style: none;
}

button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
}

button,
input {
    overflow: visible;
}

button,
select {
    text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
    border-style: none;
    padding: 0;
}

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
    outline: 1px dotted ButtonText;
}

fieldset {
    padding: 0.35em 0.75em 0.625em;
}

legend {
    box-sizing: border-box;
    color: inherit;
    display: table;
    max-width: 100%;
    padding: 0;
    /* 3 */
    white-space: normal;
}

progress {
    vertical-align: baseline;
}

textarea {
    overflow: auto;
}

[type="checkbox"],
[type="radio"] {
    box-sizing: border-box;
    padding: 0;
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

[type="search"] {
    -webkit-appearance: textfield;
    outline-offset: -2px;
}

[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

::-webkit-file-upload-button {
    -webkit-appearance: button;
    font: inherit;
}

details {
    display: block;
}

summary {
    display: list-item;
}

template {
    display: none;
}

[hidden] {
    display: none;
}

/* Start Project */

html {
    font-size: 16px;
}

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

body {
    font-family: "TTNorms";
}

.container {
    width: 100%;
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;

}


/* Start Header Top */

.header-top__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.header-nav {
    display: flex;
}

.header-nav__logo {
    padding: 1rem 0;
}

.header-nav__menu {
    display: flex;
    align-items: center;

}

.header-nav__item {
    list-style-type: none;
    padding: 0 1rem;
}

.header-nav__link {
    text-decoration: none;
    color: rgb(44, 44, 44);
    margin-left: 2rem;

}

.btn-link {
    text-decoration: none;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 0.3rem;
    background-color: #0050c8;

}

.header-link {
    background-color: #0050c8;
    transition: 0.2s;

}

.header-link:hover {
    background-color: rgb(1, 1, 176);

}

.header-icon {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Start header Bottom */


.header-content {
    display: flex;
    align-items: center;
    margin-top: 6rem;
}

.header-content__wrapper {
    max-width: 28rem;
}

.header-content__left {
    flex-basis: 50%;
}

.header-content__title {
    font-family: "TTNorms Medium";
    font-weight: 300;
}

.header-content__text {
    line-height: 1.8rem;
    color: #6c7890;
}

.header-content__links {
    margin-top: 2rem;
}


.header-content__link {
    display: inline-block;
    max-width: 10rem;
    text-align: center;
    margin-right: 0.6rem;
}

.header-content__link:nth-child(1) {
    background-color: #87bc25;
}

.header-content__link:nth-child(1):hover {
    background-color: #74a121;

}

.header-content__link:nth-child(2):hover {
    background-color: rgb(1, 1, 176);
}

.header-content__right {
    flex-basis: 50%;
}

.header-content__img {
    max-width: 100%;
}

/* Start Main */

.main {
    padding-top: 5.5rem;
}

.works {
    text-align: center;
    margin-top: 4rem
}

.works-title {
    color: #6C7890;
    margin-bottom: 0.8rem;
}

.works-text {
    margin: 0.8rem 0;
}

.works-content {
    margin-top: 4rem;
    display: flex;
    justify-content: space-around;
}


.works-content__title {
    margin-bottom: 1.2rem;
}

.works-content__text {
    max-width: 16rem;
    line-height: 1.8rem;
    color: #6C7890;
}

.works-img {
    max-width: 31rem;
    margin: 0 auto;
    padding-bottom: 5rem;
    margin-top: 3rem;

}

.works-img__img {
    max-width: 100%;
}

/* Start Comments */

.person-comment {
    background-color: #2F5BEA;
    color: #fff;
    padding: 2rem 0;
}

.comment-title {
    padding-top: 6rem;
    text-align: center;
    font-size: 1.8rem;
    font-family: "TTNorms Medium";
    font-weight: 300;
}

.comment-text {
    margin: 2rem 0;
    max-width: 29rem;
    text-align: center;
    margin: 0 auto;
    margin-top: 1.5rem;
    line-height: 1.8rem;
    font-family: "TTNorms Light";
}

.comments-container {
    max-width: 63rem;
    margin: 0 auto;
}

.comments {
    display: flex;
    justify-content: center;
    gap: 1.8rem;
    color: #000;
    margin-top: 5rem;
}

.comment {
    background-color: #fff;
    border-radius: 0.3rem;
    min-height: 18rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
    flex-basis: 21rem;
}

.comment-body {
    max-width: 22.5rem;

}

.comment-body__text {
    font-family: "Times Roman Italic";
    color: #7E8085;
    line-height: 1.5;
}

.comment-info {
    display: flex;
    border-top: 1px solid #E8EBEF;
    align-items: center;
    padding-top: 0.8rem;

}

.comment-person__img {
    margin-right: 0.5rem;
}


.companies {
    display: flex;
    justify-content: space-between;
    margin: 6rem 0 3rem 0;
}

.companies-img {
    cursor: pointer;
}

/* Start Portfolio */

.portfolio {
    padding: 4.8rem 0;
    text-align: center;
}

.portfolio-title {
    color: #6C7890;
    text-transform: uppercase;
}

.portfolio-text {
    color: #081D43;
    margin: 1rem 0 3rem 0;
    font-size: 1.8rem;
    font-family: "TTNorms Medium";
    font-weight: normal;
}

.portfolio-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.portfolio-item {
    flex-basis: 23rem;
    margin-bottom: 2rem;
    position: relative;
    cursor: pointer;


}

.portfolio-img {
    width: 100%;
    height: 100%;
    border-radius: 0.4rem;
}

.portfolio-item::after {
    content: "";
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    border-radius: 0.4rem;
    transition: 0.3s;
}

.portfolio-item:hover::after {
    opacity: 1;

}

/* Start Footer Top */

.newsletter {
    background-color: #2C57E4;
    color: #ffffff;
    padding: 7rem 0;
}

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

.newsletter-title {
    font-weight: normal;
    font-size: 1.6rem;
}

.email-btn {
    width: 22rem;
    height: 3.5rem;
    position: relative;

}

.email-btn__input {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    padding: 0 6.2rem 0 1.5rem;
    border-radius: 0.3rem;
}

.email-btn__icon {
    padding: 0.8rem 1.4rem;
    border-radius: 0.3rem;
    position: absolute;
    background-color: #2F5BEA;
    right: 7px;
    top: 6px;
    cursor: pointer;
    transition: 0.3s;
}

.email-btn__icon:hover {
    background-color: #3563fd;
}

/* Start Footer Bottom */
.copy-right {
    color: #6C7890;
    padding: 2rem 0;
}


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


/* Project Responsive */

@media only screen and (max-width: 1200px) {
    .container {
        max-width: 960px;
    }

    .portfolio-item {
        flex-basis: 28rem;
    }

    .newsletter-title {
        max-width: 30rem;
    }
}

@media only screen and (max-width: 992px) {
    .container {
        max-width: 720px;
    }

    .header-link {
        display: none;
    }

    .header-nav__item {
        font-size: 0.9rem;
    }

    .header-nav__item {
        padding: 0 0.6rem;
    }

    .header-content {
        flex-direction: column-reverse;
        margin-top: 2rem;
    }

    .header-content__right {
        max-width: 65%;
    }

    .header-content__wrapper {
        max-width: 80%;
        margin: 0 auto;
        text-align: center;
    }

    .header-content__title {
        font-size: 1.7rem;
    }

    .header-content__links {
        margin-top: 1.5rem;
    }

    .comments {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .comment {
        flex-basis: 18rem;
    }

    .portfolio-item {
        flex-basis: 21rem;
    }

    .newsletter-title {
        max-width: 25rem;
    }

}

@media only screen and (max-width: 768px) {
    .container {
        max-width: 540px;
    }

    .header-nav__menu {
        position: fixed;
        top: 0;
        left: -256px;
        bottom: 0;
        background-color: #2f275f;
        width: 16rem;
        flex-direction: column;
        align-items: flex-start;
        padding: 0.5rem 0;
        transition: 0.3s;
        z-index: 1;
    }

    .header-icon {
        display: block;
    }

    .header-nav__item {
        padding: 1rem;
        font-size: 1.3rem;
        border-bottom: solid 1px rgba(255, 255, 255, 0.1);
        width: 100%;
    }

    .header-nav__link {
        color: #e9e8e8;
        margin-left: 0;
    }

    .header-nav__item:nth-child(1):before {
        font-family: "Font Awesome 6 Free";
        content: "\f015";
        font-weight: 900;
        margin-right: 0.5rem;
        color: #fff;

    }

    .header-nav__item:nth-child(2):before {
        font-family: "Font Awesome 6 Free";
        content: "\f2bb";
        font-weight: 900;
        margin-right: 0.5rem;
        color: #fff;

    }

    .header-nav__item:nth-child(3):before {
        font-family: "Font Awesome 6 Free";
        content: "\f05a";
        font-weight: 900;
        margin-right: 0.5rem;
        color: #fff;

    }

    .header-nav__item:nth-child(4):before {
        font-family: "Font Awesome 6 Free";
        content: "\f0c0";
        font-weight: 900;
        margin-right: 0.5rem;
        color: #fff;

    }

    .header-nav__item:nth-child(5):before {
        font-family: "Font Awesome 6 Free";
        content: "\f0b1";
        font-weight: 900;
        margin-right: 0.5rem;
        color: #fff;

    }

    .header-nav__link:hover {
        color: #fff;
    }

    .header-content {
        flex-direction: column-reverse;
        gap: 0.5rem;
        margin-top: 2rem;
    }

    .header-content__right {
        max-width: 75%;
    }

    .header-content__title {
        font-size: 1.7rem;
    }

    .header-content__wrapper {
        max-width: 32rem;
        text-align: center;
    }

    .header-content__links {
        display: flex;
        justify-content: center;
    }

    .works-content {
        flex-wrap: wrap;
    }

    .works-content__item {
        margin-bottom: 1.5rem;

    }

    .works-content__text {
        max-width: 20rem;
    }

    .comment {
        flex-basis: 23rem;
    }

    .companies {
        justify-content: center;
        flex-wrap: wrap;
    }

    .companies-img {
        margin: 0 1.5rem 1rem 0;
    }

    .portfolio-item {
        flex-basis: 100%;
    }

    .newsletter-wrapper {
        flex-direction: column;
    }

    .newsletter-title {
        max-width: 100%;
        margin-bottom: 2rem;
        text-align: center;
    }

    .email-btn {
        width: 100%;
    }
}

@media only screen and (max-width: 576px) {
    .container {
        max-width: 100%;
    }

    .header-content {
        flex-direction: column-reverse;
    }

    .header-content__right {
        max-width: 70%;
    }

    .header-content__left {
        max-width: 80%;
    }

    .header-content__title {
        max-width: 90%;
        margin: 1rem auto;
        line-height: 2.2rem;
    }

    .header-content__link {
        font-size: 0.8rem;
    }

    .works-img__img {
        max-width: 92%;
    }

    .companies {
        justify-content: center;
        flex-direction: column;
        margin-bottom: 2rem;
    }

    .companies-img {
        margin-bottom: 2rem;

    }

    .copy-right__wrapper {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }
}