@font-face {
  font-family: "Montserrat";
  src: url("./assets/font/Montserrat-Regular.ttf");
  font-weight: 400;
}

@font-face {
  font-family: "Montserrat";
  src: url("./assets/font/Montserrat-Bold.ttf");
  font-weight: 700;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: #474e4f;
}

.general-container {
  margin: 10px auto;
  box-shadow: 10px 10px 20px -1px rgba(0, 0, 0, 0.15);
}

.header {
  padding: 5px;
  background: #76bbc4;
}

.container {
  max-width: 1440px;
  min-height: 50px;
  margin: 0 auto;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  list-style: none;
  padding: 0;
}

.nav-link {
  position: relative;
  padding: 0 20px;
  line-height: 50px;
  text-decoration: none;
  color: #fff;
  font-size: 22px;
}

.nav-link:after {
  display: block;
  position: absolute;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #fff;
  content: "";
  transition: width 0.3s ease-in-out;
}

.nav-link:hover:after,
.nav-link:focus:after {
  width: 100%;
}

.main {
  margin-bottom: auto;
}

.main-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.section {
  width: 47.5%;
  padding: 25px;
  border-bottom: 1px solid #a8aeae;
}

.non-border,
.non-border-education {
  border: none;
}

.profile {
  display: flex;
  justify-content: space-around;
  width: 100%;
  padding: 40px 30px 35px;
  border-bottom: 1px solid #a8aeae;
}

.my-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
}

.section-profile-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content: center;
  text-align: center;
}

.profile-title-h1 {
  margin-bottom: 0;
  font-size: 40px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 10px;
}

.profile-title-h2 {
  margin-top: 20px;
  font-size: 20px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 5px;
  color: #76bbc4;
}

.section-title {
  font-size: 20px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 5px;
  color: #76bbc4;
}

.link {
  text-decoration: none;
  color: #76bbc4;
  transition: color 0.5s;
}

.link:hover {
  text-shadow: 0 0 1px #76bbc4;
}

.list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.list-item,
.contacts-item {
  margin-bottom: 10px;
}

.section li img {
  width: 24px;
  height: 24px;
  vertical-align: text-bottom;
  margin-right: 15px;
}

.list-item::before {
  content: "⏣";
  color: #76bbc4;
  font-size: 18px;
  padding-right: 15px;
}

span {
  color: #76bbc4;
}

span.right {
  color: initial;
  margin-left: 26px;
}

.code {
  font-family: Montserrat, sans-serif;
}

.footer {
  padding: 20px;
  background: #76bbc4;
  font-size: 22px;
}

.flex-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 20px;
  color: #fff;
}

.footer-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
}

.github-icon {
  width: 24px;
  height: 24px;
  margin-right: 15px;
}

@media (max-width: 768px) {
  .section {
    width: 100%;
  }
  .non-border-education {
    border-bottom: 1px solid #a8aeae;
  }

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

  .github-icon-text {
    display: none;
  }
}

@media (max-width: 560px) {
  .profile-title-h1 {
    font-size: 32px;
  }
}
