/* Base styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  background-color: #f5f7fa;
}

a {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.main-container {
  display: flex;
  flex-direction: row;
  background: whitesmoke;
  margin: 40px auto;
  box-shadow: 6px 6px 20px rgba(0, 0, 0, 0.1);
  width: 1200px;
  max-width: calc(100% - 40px);
}

/* Main contant section */
.main-contant-section {
  display: flex;
  flex-direction: row;
  width: 100%;
}

.main-contant-title {
  font-style: normal;
  font-weight: bold;
  font-size: 22px;
  line-height: 27px;
  margin-bottom: 10px;
}

.my-education-name {
  font-style: normal;
  font-weight: bold;
  font-size: 14px;
  line-height: 17px;
}

/* About me section */
.about-me {
  margin-top: 50px;
}

.about-me-section {
  margin-bottom: 40px;
  margin-right: 80px;
  margin-left: 50px;
}

.about-me-profession {
  font-style: normal;
  font-weight: bold;
  font-size: 14px;
  line-height: 17px;
  margin-bottom: 20px;
}

.my-name {
  font-style: normal;
  font-weight: bold;
  font-size: 45px;
  line-height: 55px;
  color: #000;
  margin-bottom: 25px;
}

.about-me-description {
  max-width: 410px;
  width: 100%;
  font-style: normal;
  font-weight: normal;
  font-size: 14px;
  line-height: 24px;
  color: #595959;
  margin-bottom: 45px;
}

/* My projects section */
.my-projects-section {
  max-width: 450px;
  width: 100%;
  margin-bottom: 50px;
}

.my-projects-list {
  padding: 0 0 0 22px;
}

.my-projects-item {
  font-style: normal;
  font-weight: bold;
  font-size: 14px;
  line-height: 24px;
}

.my-projects-text {
  color: #595959;
  font-style: normal;
  font-weight: normal;
  font-size: 14px;
  line-height: 24px;
  margin-left: 9px;
}

.my-projects-link {
  padding: 5px;
  color: #595959;
  background-color: transparent;
  font-style: normal;
  font-weight: normal;
  font-size: 14px;
  line-height: 24px;
}

.my-projects-link:hover,
.my-projects-link:focus {
  background-color: #909090;
  color: whitesmoke;
  transition: background-color 500ms cubic-bezier(0.075, 0.82, 0.165, 1),
    color 250ms cubic-bezier(0.075, 0.82, 0.165, 1) 100ms;
}

.my-projects-bracket {
  display: inline-flex;
  flex-direction: row;
  justify-content: flex-end;
  color: #000;
  font-style: normal;
  font-weight: bold;
  font-size: 14px;
  line-height: 24px;
}

/* My work experience */
.my-work-experience-name {
  font-style: normal;
  font-weight: bold;
  font-size: 16px;
  line-height: 20px;
  color: #000;
  margin: 0 0 6px 0;
}

.my-work-experience-company {
  font-style: normal;
  font-weight: bold;
  font-size: 16px;
  line-height: 20px;
  color: #fb6d3a;
}

.my-work-experience-date {
  color: #64646497;
  font-style: inherit;
  font-weight: normal;
  line-height: 15px;
  margin: 0 0 10px 0;
}

.my-work-experience-divider {
  font-style: normal;
  font-weight: normal;
  font-size: 15px;
  color: #000000;
}

.my-work-experience-duties {
  padding: 0 0 0 18px;
  font-style: normal;
  font-weight: bold;
  font-size: 14px;
  line-height: 24px;
  color: #595959;
}

.my-work-experience-duty {
  font-style: normal;
  font-weight: normal;
  font-size: 14px;
  line-height: 24px;
  color: #595959;
  margin-right: 150px;
}

.my-work-experience-company-block {
  margin: 0 0 15px 0;
}

/* My education */
.my-education-section {
  max-width: 400px;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.my-education {
  font-style: normal;
  font-weight: bold;
  font-size: 22px;
  line-height: 27px;
  padding-bottom: 10px;
}

.my-education-company {
  font-style: normal;
  font-weight: bold;
  font-size: 16px;
  line-height: 20px;
  color: #fb6d3a;
}

.my-education-name {
  font-style: normal;
  font-weight: bold;
  font-size: 14px;
  line-height: 17px;
  padding-bottom: 10px;
}

/* Sidebar section */
.sidebar-section {
  width: 350px;
  min-width: 350px;
  display: inline-block;
  flex-direction: column;
  background: rgba(58, 41, 15, 0.5);
  color: #fff;
  padding: 70px 50px;
}

.span-number {
  margin-bottom: 30px;
}

.sidebar-img {
  scale: 1.2;
  border-radius: 50%;
  border: 1px solid whitesmoke;
}

.sidebar-cont {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Contacts */
.contacts-section {
  padding-top: 50px;
}

.sidebar-title {
  font-style: normal;
  font-weight: bold;
  font-size: 22px;
  line-height: 27px;
  margin-bottom: 10px;
}

.contacts-section-type {
  font-weight: bold;
  font-size: 14px;
  line-height: 24px;
  margin-right: 7px;
  margin-left: 10px;
}

.contacts-section-link {
  font-weight: bold;
  font-size: 14px;
  line-height: 24px;
  margin-right: 7px;
  margin-left: 10px;
}

.contacts-section-typ {
  display: inline-block;
  padding: 3px 15px;
  color: #ffffffb8;
  background-color: transparent;
  font-weight: normal;
  font-size: 14px;
  line-height: 24px;
  transition: background-color 500ms cubic-bezier(0.075, 0.82, 0.165, 1),
    color 250ms cubic-bezier(0.075, 0.82, 0.165, 1) 100ms;
}

.contacts-section-typ:hover,
.contacts-section-typ:focus {
  background-color: #626262;
  color: whitesmoke;
}

.contacts-section-lnk {
  display: inline-block;
  padding: 3px 15px;
  color: #ffffffb8;
  background-color: transparent;
  font-weight: normal;
  font-size: 14px;
  line-height: 24px;
  transition: background-color 500ms cubic-bezier(0.075, 0.82, 0.165, 1),
    color 250ms cubic-bezier(0.075, 0.82, 0.165, 1) 100ms;
}

.contacts-section-lnk:hover,
.contacts-section-lnk:focus {
  background-color: #626262;
  color: whitesmoke;
}

.tech-skills-list {
  padding: 0 0 0 17px;
  margin-left: 10px;
  padding-bottom: 40px;
}

.tech-skills-item {
  color: whitesmoke;
}

.tech-skills-item-text {
  font-weight: normal;
  font-style: normal;
  font-size: 14px;
  line-height: 24px;
  color: #ffffffb8;
}

.soft-skills-list {
  padding: 0 0 0 17px;
  margin-left: 10px;
  margin-top: 10px;
}

.soft-skills-item {
  color: whitesmoke;
}

.soft-item-text {
  font-weight: normal;
  font-style: normal;
  font-size: 14px;
  line-height: 24px;
  color: #ffffffb8;
}

.about-me-contact {
  max-width: 410px;
  width: 100%;
  font-style: normal;
  font-weight: normal;
  font-size: 14px;
  line-height: 24px;
  color: #595959;
  margin-bottom: 45px;
}

.my-language {
  color: white;
}

.code-part {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  color: #000;
  font-weight: 900;
  transition: all 250ms linear;
  width: 100px;
  border: 1px solid black;
  box-shadow: inset 12px 2px 15px rgba(0, 0, 255, 0.2);
}

.code-part:hover,
.code-part:focus {
  color: #00656e;
  background-color: rgba(0, 0, 255, 0.2);
  opacity: 0.85;
}

/* ========================= */
/* Large tablets / small laptops */
/* ========================= */
@media screen and (max-width: 1199px) {
  .main-container {
    width: 100%;
    max-width: calc(100% - 30px);
    margin: 20px auto;
  }

  .sidebar-section {
    width: 320px;
    min-width: 320px;
    padding: 50px 30px;
  }

  .about-me-section {
    margin-right: 40px;
    margin-left: 30px;
  }

  .my-name {
    font-size: 38px;
    line-height: 46px;
  }

  .about-me-description,
  .my-projects-section,
  .my-education-section {
    max-width: 100%;
  }
}

/* ========================= */
/* Tablets */
/* ========================= */
@media screen and (max-width: 991px) {
  .main-container {
    flex-direction: column;
    max-width: calc(100% - 20px);
    margin: 10px auto;
  }

  .sidebar-section {
    width: 100%;
    min-width: auto;
    padding: 40px 30px;
  }

  .main-contant-section {
    display: block;
    width: 100%;
  }

  .about-me {
    margin-top: 20px;
  }

  .about-me-section {
    margin: 0;
    padding: 35px 30px 20px;
  }

  .sidebar-img {
    scale: 1;
    width: 220px;
  }

  .contacts-section {
    padding-top: 30px;
  }

  .my-projects-section,
  .my-education-section {
    max-width: 100%;
    width: 100%;
  }

  .my-work-experience-duty {
    margin-right: 0;
  }
}

/* ========================= */
/* Mobile */
/* ========================= */
@media screen and (max-width: 767px) {
  .main-container {
    max-width: 100%;
    margin: 0;
    box-shadow: none;
  }

  .sidebar-section {
    padding: 25px 20px;
  }

  .about-me-section {
    padding: 25px 20px;
  }

  .sidebar-title,
  .my-education,
  .main-contant-title {
    font-size: 20px;
    line-height: 24px;
  }

  .my-name {
    font-size: 30px;
    line-height: 36px;
    margin-bottom: 15px;
  }

  .about-me-profession {
    font-size: 13px;
    line-height: 16px;
    margin-bottom: 12px;
  }

  .about-me-description,
  .my-projects-text,
  .my-projects-item,
  .tech-skills-item-text,
  .soft-item-text,
  .contacts-section-typ,
  .contacts-section-lnk,
  .my-work-experience-date {
    font-size: 13px;
    line-height: 22px;
  }

  .my-projects-list {
    padding-left: 18px;
  }

  .my-projects-bracket {
    display: inline;
  }

  .code-part {
    width: auto;
    min-width: 90px;
    padding: 4px 8px;
    margin-top: 6px;
  }

  .tech-skills-list {
    padding-bottom: 20px;
  }
}

/* ========================= */
/* Small mobile */
/* ========================= */
@media screen and (max-width: 479px) {
  .sidebar-section {
    padding: 20px 15px;
  }

  .about-me-section {
    padding: 20px 15px;
  }

  .sidebar-img {
    width: 170px;
  }

  .my-name {
    font-size: 24px;
    line-height: 30px;
  }

  .about-me-description {
    line-height: 20px;
  }

  .contacts-section-typ,
  .contacts-section-lnk {
    padding: 3px 8px;
    word-break: break-word;
  }

  .my-projects-text {
    margin-left: 0;
  }

  .my-projects-item span {
    word-break: break-word;
  }

  .code-part {
    display: inline-flex;
    margin-left: 0;
  }
}