*,
html {
    padding: 0;
    margin: 0;
}

* {
    overflow-y: auto;
    scrollbar-color: #b4b4b4 #ffffff;
    scrollbar-width: thin;
}

*::-webkit-scrollbar {
    width: 5px;
    height: 5px;
    background-color: #e0e0e0;
}

*::-webkit-scrollbar-thumb {
    background-color: #b4b4b4;
}

body {
    background: #ffffff;
    font-family: 'Arial', sans-serif;
}

header {
    display: flex;
    flex-wrap: wrap;
    text-align: center;
    justify-content: center;
    align-items: center;
    position: relative;
    background-image: url("../images/header.jpg");
    height: 80vh;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 20px;
    color: #1a1a1a;
}

.header-content .title {
    text-align: right;
    margin-bottom: 20px;
    letter-spacing: 1px;
    color: #212121;
}

.header-content .title h1{
    font-size: 23px;
}

.header-content .title h2{
    font-size: 18px;
    margin-top: 10px;
}

.header-content .description {
    text-transform: uppercase;
    letter-spacing: 2px;
}

.header-content .description h1 {
    padding: 20px;
    border: 2px dashed #1a1a1a;
    margin-bottom: 20px;
    font-size: 35px;
    color: #323232;
}

.header-content .description p {
    line-height: 2;
    font-size: 20px;
}

.portfolio {
    background: #ffffff;
    color: #222222;
    margin-top: 30px;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    text-align: center;
    padding: 20px;
}

.portfolio-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 40px;
}

.portfolio-container-item {
    flex: 1 1 calc(100% / 3 - 2rem * 2);
    border: 2px dashed #5d5d5d;
}

.portfolio-container-item:hover {
    border-color: #d7d7d7;
}

.portfolio-container-item a img{
    width: 100%;
}

.contacts {
    background: #222222;
    color: #ffffff;
    letter-spacing: 2px;
    font-size: 12px;
    text-align: center;
    padding: 20px;
}

.contacts h1,
.contacts h2 {
    text-transform: uppercase;
}

.contacts-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 40px;
}

.contacts-container-item {
    flex: 0 1 calc(100% / 3 - 2rem * 2);
}

.contacts-container-item h2 {
    letter-spacing: 3px;
    font-size: 16px;
}

.contacts-container-item h3 {
    letter-spacing: 3px;
    font-size: 16px;
    margin-top: 10px;
}

@media screen and (max-width: 1064px) {
    .header-content .description h1 {
        font-size: 30px;
    }

    .portfolio-container {
        justify-content: left;
    }

    .portfolio-container-item {
        flex: 0 1 calc(100% / 2 - 2rem * 2);
    }
}

@media screen and (max-width: 935px) {
    header {
        height: 70vh;
    }

    .header-content .title h1{
        font-size: 20px;
    }

    .header-content .title h2{
        font-size: 17px;
        margin-top: 5px;
    }

    .header-content .description h1 {
        font-size: 25px;
    }

    .header-content .description p {
        line-height: 1.8;
        font-size: 18px;
    }

    .portfolio {
        font-size: 10px;
        margin-top: 15px;
        margin-bottom: 15px;
        padding: 15px;
    }

    .portfolio-container {
        margin-top: 20px;
    }

    .contacts {
        font-size: 10px;
        padding: 15px;
    }

    .contacts-container {
        margin-top: 20px;
    }

    .contacts-container-item h2 {
        font-size: 14px;
    }

    .contacts-container-item h3 {
        font-size: 14px;
        margin-top: 8px;
    }
}

@media screen and (max-width: 650px) {
    .portfolio-container-item {
        flex: 0 1 100%;
    }

    .contacts-container-item {
        flex: 0 1 100%;
        justify-content: right;
    }

    .contacts-container {
        text-align: left;
    }

    .contacts-container-item {
        flex: 0 1 100%;
    }
}