/* Main settings */

@import url('./reset.css');

:root {
    --color-main: #212121;
    --color-button: #2196F3;
    --color-active: #006fca;
    --color-white: #FFFFFF;
    --color-text: #757575;
    --color-reserve: rgba(255, 255, 255, 0.6);
    --background-main: #2F303A;
    --background-secondary: #F5F4FA;
    --border-color-main: #ECECEC;
    --border-color-secondary: #EEEEEE;
    --font-family-main: 'Roboto';
    --timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.body {
    font-family: var(--font-family-main);
    color: var(--color-main);
    flex-basis: 1600px;
    margin: 0 auto;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Header styling */

.header {
    max-width: 1600px;
    height: 80px;
    border: 1px solid var(--border-color-main);
}

.header-container {
    display: flex;
    justify-content: space-between;
    flex-basis: 1200px;
    margin: 0 auto;
}

.header-navigation {
    justify-content: space-between;
    flex-basis: 900px;
}

.nav-title {
    margin: auto 20px;
    color: inherit;
}

.nav-title,
.nav-caption {
    text-decoration: none;
    font-family: 'Raleway';
    font-weight: 700;
    font-size: 26px;
    line-height: 1.2;
    letter-spacing: 0.03em;
}

.nav-caption {
    color: var(--color-active);
}

.nav-menu {
    flex-basis: 300px;
}

.nav-contacts {
    flex-basis: 350px;
    margin-right: 20px;
}

.nav-menu,
.nav-contacts {
    display: flex;
    justify-content: space-between;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.14;
    letter-spacing: 0.02em;
}

.nav-item {
    color: var(--color-main);
    position: relative;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.14;
    letter-spacing: 0.02em;
    transition: color 250ms var(--timing-function);
    flex-direction: column;
}

.nav-item:hover,
.nav-item:focus {
    color: var(--color-active);
}

.nav-item::after {
    content: '';
    position: absolute;
    display: block;
    width: 100%;
    height: 4px;
    left: 0;
    top: 45px;
    background-color: var(--color-active);
    border-radius: 2px;
    transition: opasity 250ms, cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    bottom: -34px;
}

.nav-item:hover::after {
    opacity: 1;
}

.icons {
    padding: 0 10px;
}

.contact {
    display: flex;
    align-items: center;
    color: var(--color-text);
}

.contact:hover,
.contact:focus {
    color: var(--color-active);
}

.header__burger {
    display: none;
}

.social-links {
    display: none;
}

@media (max-width: 991.98px) {
    .nav-contacts {
        flex-direction: column;
        align-items: end;
        justify-content: space-evenly;
        gap: 10px;
    }
}

@media (max-width: 767.98px) {
    .header-navigation {
        display: none;
    }
    .lock {
        overflow: hidden;
    }
    .header__burger {
        display: block;
        position: relative;
        width: 30px;
        height: 20px;
        right: 20px;
        z-index: 3;
    }
    .header__burger:hover {
        cursor: pointer;
        color: var(--color-active);
    }
    .header__burger span {
        position: absolute;
        background-color: var(--color-main);
        left: 0;
        width: 100%;
        height: 4px;
        border-radius: 2px;
        top: 8px;
        transition: all 0.3s ease 0s;
    }
    .header__burger:before,
    .header__burger:after {
        content: '';
        background-color: var(--color-main);
        position: absolute;
        width: 100%;
        height: 4px;
        border-radius: 2px;
        left: 0;
        transition: all 0.3s ease 0s;
    }
    .header__burger:before {
        top: 0;
    }
    .header__burger:after {
        bottom: 0;
    }
    .header__burger.active span {
        transform: scale(0);
    }
    .header__burger.active:hover:after,
    .header__burger.active:hover:before{
        background-color: var(--color-active);
    }
    .header__burger.active:before {
        transform:rotate(45deg);
        top: 8px;
    }
    .header__burger.active:after {
        transform:rotate(-45deg);
        bottom: 8px;
    }
    .header__menu {
        display: flex;
        flex-direction: column;
        align-items: start;
        justify-content: space-between;
        position: fixed;
        top: -100%;
        left: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        transition: all 0.3s ease 0s;
        background-color: var(--color-white);
        padding: 70px 10px 20px 10px;
        z-index: 2;
    }
    .header__menu.active {
        justify-content: flex-start;
        top: 0;
        height: 100vh;
    }

    .header__menu.active .nav-menu {
        flex-basis: 200px;
        padding-bottom: 100px;
    }

    .header__menu.active .nav-contacts {
        justify-content: start;
        flex-basis: 100px;
        padding-bottom: 50px;
    }

    .nav-menu {
        flex-direction: column;
        justify-content: flex-start;
    }

    .nav-contacts {
        flex-direction: column-reverse;
        justify-content: end;
        align-items: start;
    }
    .contact-blue {
        color: var(--color-button);
    }

    .header-navigation {
        padding-left: 40px;
    }

    .contact img {
        display: none;
    }

    .nav-item {
        display: block;
        font-size: 40px;
        font-weight: 500;
        letter-spacing: 0.8px;
        margin-bottom: 30px;
    }

    .nav-item:hover::after {
        opacity: 0;
    }

    .contact {
        font-size: 34px;
        font-weight: 500;
        letter-spacing: 0.68px;
        margin-bottom: 30px;
    }

    .social-links {
        display: flex;
        justify-content: start;
        margin-bottom: 45px;
    }

    .social-link {
        position: relative;
        color: var(--color-button);
        font-size: 18px;
        font-weight: 500;
        line-height: 1.22;
        letter-spacing: 0.36px;
        padding-right: 5px;
    }
    
    .social-links li:not(:last-child):after {
        content: '|';
        color: var(--color-button);
        padding-right: 5px;
    }
}

@media (max-width: 575.98px) {
    .nav-item {
        font-size: 34px;
    }
    .contact {
        font-size: 30px;
    }
    .social-link {
        font-size: 14px;
    }
    .header-navigation {
        padding-left: 25px;
    }
    .header__menu.active {
        height: 100vh;
    }
}

.nav-title,
.footer-logo {
    text-transform: uppercase;
}


/* Section Hero */
.hero {
    position: relative;
    width: auto;
    height: 600px;
    margin: 0 auto;
}

.hero__img {
    height: 600px;
}

.hero__content {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    width: 700px;
    text-align: center;
    font-weight: 900;
    font-size: 44px;
    line-height: 1.364;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-white);
}

.hero-button {
    cursor: pointer;
    width: 220px;
    height: 50px;
    color: var(--color-white);
    transition: background-color 500ms;
    background-color: var(--color-button);
    border: 1px solid var(--color-active);
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.875;
    letter-spacing: 0.06em;
    margin-top: 30px;
}

.hero-button:hover,
.hero-button:focus {
    background: var(--color-active);
    border: 1px solid var(--color-button);
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.5);
}

.popup {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 5vh;
    left: 50%;
    transform: translate(-50%, 0%);
    width: 530px;
    height: 580px;
    background-color: var(--color-white);
    border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    z-index: 3;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.hero-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
}

.hero-form--title {
    color: var(--color-main);
    margin-bottom:  12px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.6px;
}

.hero-form label {
    color: var(--color-text);
    font-size: 12px;
    letter-spacing: 0.12px;
}

.hero-form a {
    color: var(--color-active);
}

.input {
    padding: 10px;
    width: 450px;
    height: 40px;
    border-radius: 4px;
    border: 1px solid rgba(33, 33, 33, 0.20);
}

.input-item {
    margin-top: 4px;
    margin-bottom: 10px;
}

.textarea {
    padding: 10px;
    margin-bottom: 20px;
    width: 448px;
    height: 120px;
    border-radius: 4px;
    border: 1px solid rgba(33, 33, 33, 0.20);
}

.check {
    display: flex;
}

.check p {
    padding-left: 10px;
}

.form-button {
    margin-top: 20px;
    align-self: center;
}

.close-btn {
    cursor: pointer;
    width: 30px;
    height: 30px;
    border: 1px solid #0000001a;
    border-radius: 50%;
    position: fixed;
    top: 10px;
    right: 10px;
}

.close-btn:before,
.close-btn:after {
    content: '';
    background-color: var(--color-main);
    position: absolute;
    width: 15px;
    height: 2px;
    top: 13px;
    left: 7px;
}

.close-btn:hover:before,
.close-btn:hover:after {
    background-color: var(--color-active);
}

.close-btn::before {
    transform:rotate(45deg);
}

.close-btn::after {
    transform:rotate(-45deg);
}


@media (max-width: 991.98px) {
    .hero {
        width: 768px;
        height: 400px;
    }
    .hero__img {
        height: 400px;
    }
    .header-container {
        max-width: 768px;
    }
    .hero-title {
        font-size: 26px;
        width: 360px;
    }
}

@media (max-width: 767.98px) {
    .hero {
        width: 576px;
        height: 400px;
    }
    .hero__img {
        height: 400px;
    }
    .header-container {
        max-width: 576px;
    }
    .hero-title {
        font-size: 26px;
        width: 360px;
    }
    .hero-button {
        width: 200px;
        height: 45px;
    }
}

@media (max-width: 575.98px) {
    .hero {
        height: 300px;
        width: 100vw;
        background-image: url('../images/people_s.png');
        background-repeat: no-repeat;
        background-size: cover;
    }
    .hero-title {
        font-size: 22px;
    }
    .hero__img {
        display: none;
    }
    .header-container {
        max-width: 480px;
    }
    .hero-button {
        width: 170px;
        height: 40px;
        font-size: 14px;
    }
    .popup {
        width: 380px;
    }
    .hero-form {
        padding: 0 30px;
    }
    .hero-form--title {
        font-size: 16px;
    }
    .check p {
        font-size: 12px;
    }
    .input,
    .textarea {
        width: 350px;
    }
    .textarea::placeholder {
        font-size: 12px;
    }
}


/* Section Advantages */

.our-advantages {
    margin-top: 90px;
    margin-bottom: 90px;
}

.advantages {
    max-width: 1200px;
    display: flex;
    justify-content: center;
    align-items: first baseline;
    padding: 0 20px;
    margin: 0 auto;
    gap: 30px;
}

.advantages-bg {
    height: 120px;
    background-color: #F5F4FA;
    border-radius: 5px;
    /* background-size: cover;
    background-image: url('../images/Rectangle.png'); */
}

.advantages-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.42px;
    text-transform: uppercase;
    margin-top: 30px;
}

.advantages-text {
    color: #757575;
    font-size: 14px;
    line-height: 1.7;
    letter-spacing: 0.42px;
    margin-top: 10px;
}

@media (max-width: 991.98px) {
    .advantages {
        gap: 10px;
    }
    .advantages-item {
        min-width: 180px;
    }
}

@media (max-width: 767.98px) {
    .advantages {
        flex-wrap: wrap;
        gap: 30px;
    }
    .advantages-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        
    }
    .advantages-bg {
        width: 576px;
        margin: auto 20px;
    }
    .advantages-text {
        text-align: center;
    }
    .our-advantages {
        margin-top: 60px;
        margin-bottom: 60px;
    }
    .activity {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .advantages-bg {
        width: 380px;
    }
}

/* Section What we doing */

.activity {
    margin-bottom: 90px;
}

.activity-title {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 50px;
}

.activity-items {
    flex-wrap: wrap;
    max-width: 1200px;
    gap: 30px;
}

.activity-item {
    position: relative;
}

.activity-img {
    min-width: 200px;
}

.activity-box {
    position: absolute;
    bottom: 0;
    /* max-width: 370px; */
    width: 370px;
    height: 70px;
    background: rgba(47,48,58,0.8);
}

.activity-text {
    position: absolute;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.15;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--color-white);
    padding: auto;
}

/* Section Our team */

.team {
    flex-basis: 1600px;
    background-color: var(--background-secondary);
    padding-bottom: 90px;
}

.team-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 1px;
    padding-top: 90px;
    padding-bottom: 50px;
}
.team-members {
    display: flex;
    margin: 0 auto;
    gap: 30px;
    flex-wrap: wrap;
}
.team-member {
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.12), 0px 1px 1px rgba(0, 0, 0, 0.14), 0px 2px 1px rgba(0, 0, 0, 0.2);
    border-radius: 0px 0px 4px 4px;
}

.team-person {
    font-weight: 500;
    font-size: 16px;
    line-height: 1.187;
    text-align: center;
    letter-spacing: 0.03em;
    padding-top: 30px;
}
.team-profession {
    font-size: 16px;
    line-height: 1.187;
    text-align: center;
    letter-spacing: 0.03em;
    color: var(--color-text);
    padding-top: 10px;
}

.team-icons {
    margin-top: 15px;
    margin-bottom: 30px;
}

.btn-icon:not(:last-child) {
    margin-right:10px
}

.button-social {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: background-color 500ms var(--timing-function)
}

.button-social:hover,
.button-social:focus {
    background-color: var(--color-button);
}

@media (max-width: 767.98px) {
    .team-member > img {
        width: 380px;
        height: auto;
    }
    .team-members {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}

.clients {
    flex-basis: 1600px;
    margin: 60px auto;
}

.clients-title {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 1px;
}

.clients-list {
    gap: 30px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.client-item {
    width: 170px;
    height: 90px;
    flex-shrink: 0;
    border-radius: 4px;
    border: 1px solid #AFB1B8;
}

.client-item:hover {
    background-color: var(--color-button);
    transition: background-color 1000ms;
}

/* ------------------------------    Portfolio    --------------------------------------- */

/* Portfolio buttons */

.buttons {
    margin-bottom: 50px;
    gap: 10px;
}


.btn {
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.625;
    text-align: center;
    letter-spacing: 0.03em;
    background-color: var(--background-secondary);
    border: transparent;
    border-radius: 4px;
    padding: 8px 22px;
}

.btn:hover,
.btn:focus {
    color: var(--color-white);
    background-color: var(--color-button);
    transition: background-color 800ms;
    box-shadow: 0px 3px 1px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.08), 0px 2px 2px rgba(0, 0, 0, 0.12);
}

@media (max-width: 767.98px) {
    .buttons {
        flex-direction: column;
        margin: 30px auto;
    }
    .btn {
        width: 370px;
    }
}

/* Projects */

.project-list {
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.projects {
    margin: 90px auto;
    max-width: 1200px;
}

.project {
    width: 370px;
    height: 404px;
    border: 1px solid var(--border-color-secondary);
}

.project-link{
    position: relative;
    display: block;
    transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1)
}

.project-link:hover,
.project-link:focus{
    box-shadow: 0px 1px 1px rgba(0,0,0,0.12),0px 4px 4px rgba(0,0,0,0.06),1px 4px 6px rgba(0,0,0,0.16);
}

.project-link:hover .project-text,
.project-link:focus .project-text{
    transform: translateY(0%);
}

.project-overlay{
    position: relative;
    overflow: hidden;
}

.project-text{
    position: absolute;
    color: var(--color-white);
    background-color: rgba(33,150,243,0.9);
    font-size: 18px;
    line-height: 1.5;
    padding: 40px 25px 80px;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transform: translateY(100%);
    transition: transform 500ms;
}

.project-title {
    padding-top: 20px;
    padding-left: 24px;
    font-weight: 700;
    font-size: 18px;
    line-height: 2;
    letter-spacing: 0.06em;
}

.project-product {
    padding-left: 24px;
    padding-bottom: 22px;
    font-size: 16px;
    line-height: 1.875;
    letter-spacing: 0.03em;
    color: var(--color-text);
}

@media (max-width: 767.98px) {
    .projects {
        margin: 0;
    }
}

/* Footer */

.footer-link {
    font-size: 14px;
    line-height: 1.7;
    letter-spacing: 0.03em;
    color: rgba(255,255,255,0.6);
    transform: rgba(255,255,255,0.6) 250ms;
}

.footer-link:hover {
    color: var(--color-active);
}

.footer {
    position: relative;
    padding-top: 60px;
    background-color: #2f303a;
}

@media screen and (min-width: 480px) and (max-width: 1199px) {
    .footer {
        padding-bottom: 60px;
    }
}

.subscribe-footer {
    color: var(--color-white);
    font-weight: 700;
    font-size: 14px;
    line-height: 1.14;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.subscribe-button {
    display: inline-block;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 50px;
    margin: 0;
    margin-left: 12px;
    background-color: var(--color-button);
    color: var(--color-white);
    border-color:var(--color-button);
    box-shadow: 0px 4px 4px rgba(0,0,0,0.15);
    border-radius:4px;
    cursor: pointer;
}

.subscribe-button:hover,
.subscribe-button:focus {
    background: var(--color-active);
    border: 1px solid var(--color-button);
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    transition: background-color 500ms;
}

.subscribe-label {
    font-weight: 700;
    font-size: 16px;
    line-height:30px;
    letter-spacing: 0.06em;
    color: var(--color-white);
}

.subscribe-input {
    outline: none;
    background-color: inherit;
    color: var(--color-white);
}

.form {
    font-weight: 700;
    font-size: 14px;
    line-height: 1.14;
    text-transform: uppercase;
}

@media screen and (max-width: 1199px) {
    .form {
        text-align: center;
    }
}

@media screen and (min-width: 1200px) {
    .form {
        margin-left: 90px;
    }
}

.form-field {
    display: flex;
    justify-content: first baseline;
}

@media screen and (min-width: 1199px) {
    .form-field {
        display: inline-block;
        flex-direction: row;
    }
}

.form-field input {
    width: 450px;
    height: 50px;
    padding: 15px 16px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
}

@media screen and (min-width: 1200px) {
    .form-field input {
        width: 360px;
    }
}

.form-field input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.footer-logo {
    font-family: "Raleway";
    display: block;
    margin-bottom: 30px;
    font-size: 26px;
    letter-spacing: 0.03em;
    color: var(--color-button);
}

.logo-pre {
    color: var(--color-white);
}

.footer-item {
    margin-bottom: 10px;
}

.footer-li:not(:last-child) {
    margin-right:10px
}

.footer-adress-link {
    font-size: 14px;
    line-height: 1.7;
    letter-spacing: 0.03em;
    color: var(--color-white);
}

.footer-list {
    display: flex;
    align-items: baseline;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.14;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--color-white);
}

.footer-join {
    display: inline-block;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.14;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--color-white);
}

.subscribe-icon {
    margin-left: 10px;
    background-image: url(../icons/send.png);
    background-repeat: no-repeat;
    background-size: contain;
    cursor: pointer;
}

.footer-box {
    display: block;
    align-items: baseline;
}

@media screen and (max-width: 768px) {
    .footer-box {
        display: block;
        text-align: center;
        justify-content: center;
    }
    .form-field input {
        width: 400px;
    }
}

@media screen and (max-width: 575.98px) {
    .form-field input {
        width: 300px;
    }
}

@media screen and (min-width: 768px) {
    .footer-box .footer-tablet{
        display: flex;
        justify-content: space-around;
        text-align: center;
        align-items: baseline;
    }
    .form-field {
        flex-direction: column;
        align-items: center;
    }
    .subscribe-input {
        margin-top: 30px;
        margin-bottom: 30px;
    }
}

@media screen and (min-width: 1200px) {
    .footer-box .footer-tablet {
        text-align: left;
    }
}

@media screen and (min-width: 1200px) {
    .footer-box {
        display: flex;
        align-items: baseline;
    }
}

.footer-join__title {
    font-family: 'Roboto';
    margin-bottom: 30px;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.14;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--color-white);
}

.footer-join__link {
    padding: 0;
    border: none;
    width: 44px;
    height: 44px;
    fill: var(--color-white);
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 500ms;
}

.footer-join__icon {
    height: 20px;
    width: 20px
}

.footer-join__link:hover,
.footer-join__link:focus {
    background-color: var(--color-active);
    transition: color 500ms;
}

.footer-container-ul {
    display: block;
}

@media screen and (min-width: 0px) and (max-width: 768px) {
    .footer-container-ul {
        padding-bottom: 60px;
    }
    .subscribe-button {
        margin-bottom: 50px;
    }
}

@media screen and (min-width: 1200px) {
    .footer-container-ul {
        margin-right: 70px;
    }
}

@media screen and (max-width: 768px) {
    .footer-list-conteiner {
        margin-bottom: 60px;
    }
    .form-field {
        flex-direction: column;
        align-items: center;
    }
    .subscribe-input {
        margin-top: 30px;
        margin-bottom: 30px;
    }
}

.footer-tablet {
    margin-bottom: 60px;
}