@import url('https://fonts.googleapis.com/css2?family=Montserrat+Alternates:wght@100;300;400;700;900&display=swap');

* {
  scroll-behavior: smooth;
  font-family: "Montserrat Alternates", sans-serif;
  font-style: normal;
  margin: 0;
  transition: all 0.5s ease;
}
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  background: #64bef1;
}

section {
  margin: 60px 0;
}

.container {
  width: 1140px;
  margin: 0 auto;
  color: white;
}

.title {
  font-size: 28px;
  line-height: 30px;
}

.fz24 {
  font-size: 24px;
  line-height: 26px;
}

.fz20 {
  font-size: 20px;
  line-height: 22px;
}

.fz18 {
  font-size: 18px;
  line-height: 18px;
}

header {
  min-height: 505px;
}

/*about*/
.about {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 30px;
}

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

.about_wrapper-right {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 30px;
}

.about_wrapper-right h2 {
  text-align: center;
}

.about_picture {
  height: 450px;
}

.about_picture img {
  height: 100%;
  border-radius: 0 10% 70% 10%;
}

.about_text h1 {
  font-size: 46px;
  line-height: 54px;
}

.about_title {
  text-align: center;
  padding-top: 20px;
}

.about_nav {
  display: block;
  width: 100%;
}

.menu_links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-content: center;
  gap: 30px;
  padding: 15px 50px;
  margin: 0;
  list-style-type: none;
  text-align: center;
}

.menu_links-item {
  border-right: 1px solid white;
}

.menu_links-item a {
  display: block;
  height: 100%;
  width: 100%;
  color: #fff;
  line-height: 20px;
  background: rgba(0, 0, 0, 0.0);
  font-weight: 300;
  text-decoration: none;
  transition: 0.5s;
}

.menu_links-item a:hover {
  cursor: pointer;
  color: #a3ffff;
}

.menu_links-item:last-child {
  border-right: none;
}

/*contacts*/
.contacts a {
  color: white;
  text-decoration: none;
  transition: 0.5s;
  cursor: pointer;
}

.contacts a:hover {
  color: #a3ffff;
  text-decoration: underline;
  cursor: pointer;
}

.contacts_wrapper {
  padding-left: 0;
}

.contacts_item {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding-top: 10px;
}

.icon {
  font-size: 24px;
  min-width: 30px;
  max-width: 30px;
}

.icon i {
  color: #ffffff;
}

.text {
  padding-left: 15px;
}

/*goals*/
.goals_list {
  padding-left: 15px;
}

.goals_item {
  padding-top: 10px;
  padding-left: 10px;
  list-style-type: ">";
}

.goals_item::marker {
  padding-left: 5px;
}

/*skills*/
.skills_title {
  text-align: center;
}

.skills_wrapper {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 30px;
  padding-top: 30px;
  justify-content: space-between;
}

.skills_wrapper > div {
  padding: 10px;
  border: 3px solid white;
  border-radius: 20px;
}

.hard_skills > ol, .soft_skills > ol {
  margin-top: 10px;
}

.hard_skills > h3, .soft_skills > h3 {
  text-align: center;
}

.skill {
  font-size: 16px;
}

.subskills {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-column-gap: 20px;
  padding-left: 10px;
}

.subskill {
  padding-left: 5px;
}

/*experience*/
.experience_block {
  padding: 20px 40px 40px 40px;
  background-color: white;
  border-radius: 20px;
  color: black;
}

.experience_title {
  text-align: center;
}

.experience_wrapper {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  row-gap: 30px;
}

.experience_wrapper > div {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  column-gap: 30px;
}

.experience_year {
  margin: 0 auto;
  width: min-content;
  padding: 2px;
  text-align: center;
  border: solid;
  border-image: linear-gradient(21deg, #cb14d1, #5a15f1) 1 / 2px;
}

.experience_text {
  text-indent: 30px;
}

/*programming*/
.programming_block {
  border-radius: 80px;
  padding: 40px 30px;
  min-height: 300px;
  background-image: url("https://images.yakovlevdev.com/rsschool-cv/code.png");
  background-size: 50px;
  background-attachment: fixed;
  background-repeat: repeat;
  background-position: center;
  z-index: -10;
}

.programming_title {
  position: relative;
  z-index: 10;
  text-align: center;
  line-height: 40px;
}

.programming_title:before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 230px;
  flex-shrink: 0;
  height: 40px;
  border-radius: 20px;
  background: linear-gradient(21deg, #cb14d1, #5a15f1);
  z-index: -1;
}

.programming_wrapper {
  padding: 30px 30px 0 30px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.programming_item {
  padding: 20px;
  width: 40%;
  border-radius: 20px;
  background: linear-gradient(21deg, #cb14d1, #5a15f1);
}

.programming_item > h3 {
  text-align: center;
}

.code {
  margin: 10px 20px;
}

.result {
  margin: 20px 20px;
}

.projects {
  margin: 30px 30px 0 30px;
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(21deg, #cb14d1, #5a15f1);
}

.projects_title {
  position: relative;
  text-align: center;
  line-height: 40px;
}

.projects_wrapper {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  column-gap: 15px;
}

.project_item {
  background-color: white;
  height: 100px;
  padding: 20px;
  cursor: pointer;
  transition: 0.5s;
}

.project_item:hover {
  scale: 1.05;
}

.git_links {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  column-gap: 15px;
}

.git_link {
  background-image: url("https://cdn-icons-png.flaticon.com/512/25/25231.png");
  background-size: 40px;
  background-repeat: no-repeat;
  background-position: center;
  background-color: white;
  height: 20px;
  padding: 20px;
  cursor: pointer;
  transition: 0.5s;
}

.git_link:hover {
  scale: 1.05;
}

.uber_git {
  border-radius: 0 0 0 20px;
}

.portfolio_git {
  border-radius: 0 0 20px 0;
}

.project_span {
  display: none;
}

/*project experience*/
.projects_experience {
  margin: 30px 30px 0 30px;
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(21deg, #cb14d1, #5a15f1);
}

.projects_experience_title {
  text-align: center;
}

.projects_experience_wrapper {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
}

.projects_experience_wrapper-item {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
}

.projects_experience_year {
  display: block;
  width: 50px;
  padding-right: 5px;
}

.projects_experience_year::after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 54px;
  transform: translateX(-50%);
  height: 100%;
  border: 3px solid #64bef1;
  border-radius: 4px;
}

.projects_experience_wrapper-item:first-child .projects_experience_year::after {
  top: calc(217px / 2 + 15px / 2 + 3px);
  height: calc(100% - (217px / 2 + 15px / 2 + 3px));
}

.projects_experience_wrapper-item:last-child .projects_experience_year::after {
  top: 0;
  height: calc(100% - (217px / 2 + 15px / 2 + 3px));
}

.projects_experience_wrapper-item:only-child .projects_experience_year::after {
  height: calc(100% - 2 * (217px / 2 + 15px / 2 + 3px));
}

.projects_experience_block {
  position: relative;
  margin: 10px 0 10px 70px;
  padding: 10px 10px 10px 20px;
  border: 2px solid #64bef1;
  border-bottom: none;
  border-right: none;
  border-radius: 30px;
  display: grid;
  align-items: center;
  grid-template-columns: 2fr 1fr;
  gap: 15px;
}

.projects_experience_block::before {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  left: -45px;
  transform: translateY(-50%);
  width: 45px;
  height: 3px;
  background: #64bef1;
  border-radius: 4px;
}

.projects_experience_block::after {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  left: -65px;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: #64bef1 3px solid;
}

.projects_experience_block_text {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.projects_experience_block_title {
  padding-bottom: 5px;
  position: relative;
}

.projects_experience_block_title:before {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: #64bef1;

}

.projects_experience_block_description {
  text-align: justify;
}

.projects_experience_block_tools {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  column-gap: 20px;
}

.projects_experience_block_links-wrapper {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.projects_experience_git_link {
  background-image: url("https://cdn-icons-png.flaticon.com/512/25/25231.png");
  background-size: 25px;
  background-repeat: no-repeat;
  background-position: center;
  background-color: white;
  height: 30px;
  cursor: pointer;
  transition: 0.5s;
  border-radius: 0 0 20px 20px;
}

.projects_experience_project_image {
  background-color: white;
  height: 160px;
  cursor: pointer;
  transition: 0.5s;
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: top;
  border-radius: 20px 20px 0 0;
}

.projects_experience_project_image:hover, .projects_experience_git_link:hover {
  scale: 1.05;
}

/*Education*/
.education {
  margin-top: 60px;
}

.education_title {
  text-align: center;
}

.education_wrapper {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 30px;
  padding-top: 30px;
  justify-content: space-between;
}

.education_wrapper > div {
  padding: 20px;
  border: 3px solid white;
  border-radius: 20px;
}

.education_wrapper > div > p {
  text-indent: 30px;
  margin-top: 10px;
}

.education_courses {
  margin-top: 30px;
  text-align: center;
}

.courses {
  margin-top: 15px;
  display: flex;
  justify-content: space-evenly;
  gap: 2rem;
  flex-wrap: wrap;
}

.courses > a {
  color: #fff;
  line-height: 20px;
  background: rgba(0, 0, 0, 0.0);
  font-weight: 300;
  text-decoration: none;
  transition: 0.5s;
}

.courses > a:hover {
  cursor: pointer;
  color: #a3ffff;
}

.education_certificates {
  text-align: center;
}


/*footer*/
.footer {
  margin-top: 60px;
  padding: 30px 50px 20px 50px;
  background-color: #ffffff;
  min-height: 50px;
  border-radius: 80px 80px 0 0;
}

.footer_wrapper {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer_rs_logo {
  height: 50px;
  transition: 0.5s;
}

.footer_rs_logo:hover {
  scale: 1.1;
  cursor: pointer;
}

.footer_span {
  display: none
}

.footer_rs_logo img {
  height: 100%;
}

.footer_copyright {
  position: absolute;
  text-align: center;
  font-weight: 300;
  color: black;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.footer_socials {
  height: 50px;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
}

.footer_socials i {
  color: #000000;
  transition: 0.5s;
}

.footer_socials i:hover {
  cursor: pointer;
}

.footer_telegram i:hover {
  font-size: 35px;
}

.footer_github i:hover {
  font-size: 55px;
}

.footer_telegram i {
  font-size: 30px;
  line-height: 30px;
}

.footer_github i {
  padding-left: 20px;
  font-size: 50px;
}

@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }

  .title {
    font-size: 26px;
    line-height: 28px;
  }

  .about_picture {
    height: 400px;
  }

  .menu_links {
    padding: 15px 20px;
  }

  .menu_links-item {
    padding-right: 20px;
  }

  .icon {
    font-size: 22px;
  }

  .projects_experience_year {
    padding: 5px;
    background: #64bef1;
    border-radius: 20px 0 0 20px;
  }
  .projects_experience_year:after {
    border: 2px solid #64bef1;
    left: 50px;
  }

  .projects_experience_block{
    margin: 10px 0 10px 40px;
  }
  .projects_experience_block:before {
    left: -25px;
    width: 25px;
  }
  .projects_experience_block:after {
    left: -40px;
  }
  }

@media (max-width: 992px) {
  .container {
    max-width: 720px;
  }

  .about_wrapper-left {
    justify-content: space-between;
  }

  .about_picture {
    height: 300px;
  }

  .about_title {
    padding-top: 10px;
  }

  .menu_links {
    padding: 5px;
  }

  .menu_links-item {
    padding-right: 10px;
  }

  .contacts {
    padding-top: 10px;
    padding-left: 15px;
  }

  .icon {
    font-size: 18px;
    width: 20px;
  }

  .goals {
    padding-left: 15px;
  }

  .goals_item {
    padding-left: 5px;
  }

  .hard_skills > ol, .soft_skills > ol {
    padding-left: 20px;
  }

  .projects_experience_block {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 540px;
  }

  .about {
    flex-direction: column;
  }

  .about_picture {
    height: 400px;
  }

  .menu_links {
    padding: 15px;
  }

  .menu_links-item {
    font-size: 20px;
    padding-right: 25px;
  }

  .contacts_wrapper {
    padding-left: 20px;
  }

  .goals_list {
    padding-left: 35px;
  }

  .skills_wrapper {
    grid-template-columns: none;
    column-gap: 0;
    grid-template-rows: 1fr 1fr;
    row-gap: 30px;
  }

  .subskills {
    grid-template-columns: 1fr 1fr;
  }

  .experience_block {
    padding: 20px;
  }

  .experience_text {
    text-indent: 20px;
    font-size: 16px;
    line-height: 16px;
  }

  .programming_block {
    border-radius: 40px;
    padding: 30px 20px;
  }

  .programming_wrapper {
    margin: 30px 30px 0 30px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    row-gap: 30px;
  }

  .programming_item {
    width: 100%;
  }

  .pulse {
    background-position: 30%;
  }

  .projects_experience {
    padding: 5px;
  }

  .education_wrapper {
    grid-template-columns: none;
    grid-template-rows: 1fr 1fr;
    column-gap: 0;
    row-gap: 30px;
  }

  .education_wrapper > div > h3 {
    text-align: center;
  }

  .footer {
    padding: 30px 30px 20px 30px;
    border-radius: 70px 70px 0 0;
  }

  .footer_rs_logo {
    height: 40px;
  }

  .footer_copyright > span {
    display: none;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 10px;
    max-width: 100%;
  }

  .about_picture {
    height: 250px;
  }

  .about_text h1 {
    font-size: 32px;
    line-height: 36px;
  }

  .about_title {
    display: none;
  }

  .about_wrapper-right > h2 {
    display: none;
  }

  .title {
    font-size: 22px;
    line-height: 26px;
    text-align: center;
  }

  .menu_links {
    padding: 5px;
  }

  .menu_links-item {
    font-size: 16px;
    padding-right: 10px;
  }

  .contacts {
    padding-top: 10px;
    padding-left: 0;
  }

  .contacts_wrapper {
    padding-left: 10px;
  }

  .text {
    font-size: 16px;
    padding-left: 10px;
  }

  .goals {
    padding-left: 0;
  }

  .goals_list {
    padding-left: 20px;
  }

  .goals_item {
    font-size: 16px;
    line-height: 18px;
  }

  .skills {
    padding-top: 30px;
  }

  .skills_wrapper {
    grid-template-rows: none;
  }

  .experience_block {
    padding: 10px;
  }

  .experience_wrapper > div {
    column-gap: 10px;
  }

  .experience_year {
    font-size: 16px;
  }

  .experience_text {
    font-size: 16px;
    line-height: 16px;
  }

  .programming {
    margin-top: 30px;
  }

  .programming_block {
    padding: 30px 5px;
    background-size: 35px;
  }

  .programming_wrapper {
    margin: 0;
  }

  .education {
    margin-top: 30px;
  }

  .courses {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    column-gap: 0;
    row-gap: 20px;
  }

  .courses > a {
    text-align: center;
  }

  .footer {
    padding: 20px 20px 10px 20px;
    border-radius: 50px 50px 0 0;
    min-height: 40px;
  }

  .footer_rs_logo {
    height: 20px;
  }

  .footer_copyright {
    font-size: 12px;
    line-height: 14px;
  }

  .footer_socials {
    height: 40px;
  }

  .footer_telegram i {
    font-size: 20px;
    line-height: 15px;
  }

  .footer_github i {
    padding-left: 10px;
    font-size: 40px;
  }

}

@media (max-width: 420px) {
  .projects_experience{
    margin: 0 auto;
  }
  .projects_experience_block {
    margin: 0 auto;
  }
  .projects_experience_wrapper-item{
    flex-direction: column;
  }
  .projects_experience_year {
    border-radius: 20px;
  }
  .projects_experience_year:after {
    content: unset;
  }
  .projects_experience_block:before {
    content: unset;
  }
  .projects_experience_block:after {
    content: unset;
  }
}
