* {
  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-optical-sizing: auto;
  font-size: 18px;
  font-weight: 300px;
  font-style: normal;
  color: #0d32c5;
}

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

.header {
  background-color: #0d32c5;
}

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

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

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 0;
  height: 2px;
  background: #fafbfd;
  transition: 0.3s;
  transform: translateX(-50%);
}

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

.main {
  margin-bottom: auto;
}

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

.section {
  width: 50%;
  padding: 10px;
  padding-bottom: 35px;
  border-bottom: 2px solid #0d32c5;
}

.section-list {
  padding-left: 20px;
}

.section-profile-logo {
  width: 300px;
  height: 300px;
  object-fit: cover;
  margin-top: -100px;
}

.main-title {
  position: relative;
  padding: 0;
  margin-bottom: 20px;
  color: #0d32c5;
  font-size: 48px;
  line-height: 20px;
  word-spacing: 3px;
}

.section-subtitle {
  margin-top: 10px;
  color: #0d32c5;
  line-height: 20px;
  font-size: 26px;
  font-weight: 300;
}

.contacts-item a{
  text-decoration: none;
  color: inherit;
}

.contacts-item a:hover {
  text-decoration: none;
  color: #a6b6e4; 
}

.section-english, .section-education {
  border-bottom: 0;
}

.section-profile {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  padding: 30px;
  border-bottom: 2px solid #0d32c5;
}

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

.section-item a {
  text-decoration: none;
  color: inherit;
} 

.section-item a:hover {
  text-decoration: none;
  color: #a6b6e4; 
}

.footer {
  background-color: #0d32c5;
  padding: 20px;  
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  color: #e1e7fc;
}

.footer-container div .github {
  margin-left: 30px;
}

.github {
  display: inline-block;
  width: 30px;
  height: 30px;
  background-image: url("./assets/svg/github-svg.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.github:hover {
  transform: scale(1.2);
  transition: transform 0.3s;
}

.rss {
  color: #fafbff;
  width: 110px;
  height: 35px;
  background-image: url("./assets/svg/rss.svg");
  background-size: contain;
  background-repeat: no-repeat;
}