:root {
	--main-background: rgb(240, 235, 232);
    --secondary-color: rgb(114 100 92);
}

* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    display: flex;
    justify-content: center;
	background-color: var(--main-background);
    font-family: "Noticia Text", serif;
    font-weight: 400;
}

.container {
    display: flex;
    flex-direction: column;
    max-width: 768px;
    padding-right: 2rem;
    padding-left: 2rem;
}

ul {
    list-style: none;
}

.header {
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.header a {
    text-decoration: none;
    color: var(--secondary-color);
    position: relative;
}

.header a:after {
	display: block;
	position: absolute;
	left: 0;
	width: 0;
	height: 1.5px;
	background-color: var(--secondary-color);
	content: "";
	transition: width 0.3s ease-out;
}

main {
    margin-top: 20px;
}

article {
    padding-bottom: 3rem;
}

.about_me {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    border-bottom: 1px solid black;
    gap: 15px;
}

.about_me a {
    color: var(--secondary-color);
}

.about_me__contacts a {
    text-decoration: none;
}

.about_me__information {
    width: 80%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.about_me__information h1 {
    font-size: 2.5rem;
    letter-spacing: .1rem;
    margin-bottom: 0;
}

.about_me__information h2 {
    font-size: 2rem;
    letter-spacing: .1rem;
    margin-top: 0.5em;
}

.about_me__photo img {
    width: 250px;
    height: auto;
    border-radius: 2%;
}

.about_me__photo_contacts {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.education_list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.work_list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.certificates_list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.education_point {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}

.work_point {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}

.certificates_point {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}

.date {
    min-width: 170px;
}

.name {
    border-left: 1px solid black;
    padding: 0px 0px 0px 15px;
}

.certificates_point .name {
    border-left: none;
    padding: 0px;
}

.name ul {
    padding: 0px;
}

.name ul li {
    margin-bottom: 10px;
}

.specialization {
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: black;
}

.stack_list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.stack img {
    width: 60px;
}

.language {
    display: flex;
    flex-direction: row;
    gap: 50px;
    flex-wrap: wrap;
}

.dot {
    height: 25px;
    width: 25px;
    background-color: rgb(201, 197, 195);
    border-radius: 50%;
    display: inline-block;
}

.active {
    background-color: var(--secondary-color);
}

.projects {
    border-bottom: 1px solid black;
}

.projects_container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    cursor: pointer;
}

.project {
    display: flex;
    flex-direction: column;
    width: 300px;
}

.project a {
    text-decoration: none;
    color: black;
}

.project__img img {
    width: 100%;
    height: 160px;
    border-radius: 2%;
    filter: grayscale(100%);
}

.backend {
    display: flex;
    justify-content: center;
}

.backend img {
    width: 70px;
    height: 70px;
}

.project span {
    color: var(--secondary-color);
    font-weight: 400;
}

.github_project__link {
    text-decoration: underline;
}

.contacts_container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.contacts_information {
    font-size: 1.2rem;
}

.contacts_information a {
    color: black;
}

.contacts_links {
    display: flex;
    gap: 10px;
}

.contacts_links a {
    text-decoration: none;
}

@media screen and (max-width: 750px) {
    .container {
        max-width: 80%;
    }
    .about_me {
        flex-direction: column-reverse;
    }
    .about_me__information {
        width: 100%;
    }
    .about_me__information h1, h2 {
        text-align: center;
    }
 }

 @media screen and (max-width: 500px) {
    .education_point {
        flex-direction: column;
        align-items: flex-start;
    }
    .work_point {
        flex-direction: column;
        align-items: flex-start;
    }
    .name {
        border-left: none;
    }
 }

 @media (hover: hover) and (pointer: fine) {
    .header a:hover:after,
    .header a:focus:after {
        width: 100%;
    }
    .project:hover img {
        filter: grayscale(0%);
    }
}