@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&display=swap");

* {
  margin: 0;
  padding: 0;
}

body {
  background-color: #1f1f1f;
  overflow: hidden;
}

.col-12 {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ---------------------- */
/* first screen --- about */
/* ---------------------- */

.first-screen {
  height: 100vh;
}

.sidebar {
  float: left;
  width: 445px;
  background-color: #2c2c2c;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sidebar-content {
  padding: 0 15px;
  text-align: center;
}

.sidebar-content_image {
  background-color: #fff;
  display: inline-block;
  line-height: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 115px;
  height: 115px;
  margin: 0 auto;
  margin-bottom: 30px;
}

.sidebar-content_image img {
  max-width: 110px;
  border-radius: 50%;
}

.sidebar-content_headline {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 700;
  font-size: 30px;
  line-height: 37px;
  margin-bottom: 8px;

  color: #ffffff;
}

.sidebar-content_about {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 400;
  font-size: 18px;
  line-height: 22px;
  margin-bottom: 30px;

  color: #cfcfcf;
}

.sidebar-content_socials img {
  max-width: 36px;
  margin: 0 10px;
}

.skills {
  width: 570px;
  display: flex;
  justify-content: center;
  align-items: center;
  float: right;
  height: 100%;
}

.skills-content {
  position: relative;
}

.skills-content_headline {
  font-family: Montserrat;
  font-style: normal;
  font-weight: bold;
  font-size: 156px;
  line-height: 190px;
  text-align: right;
  white-space: nowrap;
  right: 30px;
  position: absolute;
  z-index: -1;

  color: rgba(255, 255, 255, 0.15);
}

.skills-content-blocks {
  margin-top: 220px;
}

.skills-content-blocks div {
  background: #3d3d3d;
  border-radius: 11px;
  padding: 10px 20px;
  display: inline-block;
  margin: 0 15px 15px 0;

  font-family: Montserrat;
  font-style: normal;
  font-weight: bold;
  font-size: 1 px;
  line-height: 22px;

  color: #ffffff;
  cursor: pointer;
  transition: box-shadow 0.5s;
}

.skills-content-blocks div:hover {
  box-shadow: 0px 0px 16px rgba(147, 147, 147, 0.25);
}

.skills-content_info {
  max-width: 324px;

  font-family: Montserrat;
  font-style: normal;
  font-weight: normal;
  font-size: 18px;
  line-height: 22px;
  margin-top: 10px;

  color: #cfcfcf;
}

@media all and (max-width: 1160px) {
  .sidebar {
    float: none;
    width: 100%;
    height: auto;
    padding: 60px 0;
  }

  .first-screen {
    height: auto;
  }

  .skills {
    width: auto;
    float: none;
    height: auto;
    background-color: #2c2c2c;
    padding: 0 15px 60px 15px;
  }

  .skills-content_headline {
    font-size: 60px;
    line-height: normal;
    text-align: center;
    white-space: normal;
    right: 0px;
    position: initial;
    z-index: auto;

    color: rgba(255, 255, 255, 0.8);
  }

  .skills-content-blocks {
    margin-top: 30px;
    max-width: 500px;
    text-align: center;
  }

  .skills-content-blocks div {
    margin: 7px;
  }

  .skills-content_info {
    margin: 20px auto 0 auto;
    text-align: center;
  }
}

@media all and (max-width: 460px) {
  .col-12 {
    padding: 0;
  }

  .skills-content_headline {
    font-size: 40px;
  }
}

/* ----------------------- */
/* second screen --- works */
/* ----------------------- */

.works-item {
  width: 439px;
  height: 292px;

  background: #3d3d3d;
  border: 5px solid #cfcfcf;
  box-sizing: border-box;
  border-radius: 33px;
  margin-bottom: 64px;

  background-size: cover;
  background-position: center;
}

.works-item_wrapper {
  width: 100%;
  height: 100%;
  border-radius: 33px;
  opacity: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000000 100%);
  transition: all 0.8s;

  display: flex;
  justify-content: flex-end;
  flex-direction: column;
  overflow: hidden;
}

.works-item_wrapper img {
  width: 60px;
  height: 60px;
}

.works-item_wrapper a {
  margin: 0 auto 30px auto;
}

.works-item:hover .works-item_wrapper,
.works-item:hover .works-item_wrapper p,
.works-item:hover .works-item_wrapper a {
  opacity: 1;
  transform: translate(0, 0);
}

.works-item:hover .works-item_wrapper p,
.works-item:hover .works-item_wrapper a {
  transition-delay: 0.2s;
}

.works-item_wrapper p {
  padding: 0 40px;
}

.works-item_wrapper p,
.works-item_wrapper a {
  transform: translate(0, 200px);
  opacity: 0;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.sidebar-content_works {
  margin-top: 80px;
}

.second-screen {
  position: relative;
}

.sidebar_works {
  float: none;
  align-items: flex-start;
}

.works {
  position: absolute;
  top: 200px;
  left: 50%;
  width: 80%;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  transform: translate(-50%, 0);
}

.second-screen_wrapper {
  height: 100%;
}

/* ------ */
/* footer */
/* ------ */

.sidebar-footer {
  overflow: hidden;
}

.sidebar-footer img {
  margin: 80px 0 80px 0;
  cursor: pointer;
}

@media all and (max-width: 1160px) {
  .sidebar-content_works {
    margin-top: 0;
  }

  .second-screen_wrapper {
    background-color: #2c2c2c;
  }

  .works {
    width: 100%;
    justify-content: space-around;
    top: 180px;
  }

  .sidebar-content_works p:first-child {
    color: rgba(255, 255, 255, 0.8);
  }

  .works-item {
    margin: 0 15px 64px 15px;
  }

  .sidebar-footer {
    padding-top: 0;
  }

  .sidebar-footer img {
    margin: 0 !important;
  }
}

@media all and (max-width: 948px) {
  .works-item {
    width: 400px;
    height: 260px;

    margin-bottom: 44px;
  }
}

@media all and (max-width: 460px) {
  .works-item {
    margin: 0 20px 44px 20px;
  }
}

/* ------- */
/* animate */
/* ------- */

.animate {
  opacity: 0;
}

.animate-up {
  transition: opacity 0.6s ease-in, transform 0.6s ease-in;
  transform: translate(0, 100px);
}

.animate-right {
  transition: opacity 0.6s ease-in, transform 0.6s ease-in;
  transform: translate(100px, 0);
}

.animate-left {
  transition: opacity 0.6s ease-in, transform 0.6s ease-in;
  transform: translate(-100px, 0);
}

.animate.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* -------- */
/* preoader */
/* -------- */

.sidebar-footer img {
  margin: 80px 0 80px 0;
  cursor: pointer;
}

.preloader {
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;

  visibility: visible;

  width: 100%;
  height: 100%;

  -webkit-transition: all 1s;
  -o-transition: all 1s;
  transition: all 1s;

  opacity: 1;
  background: #222;
}

.preloader-wrapper {
  position: absolute;
  position: absolute;
  top: 50%;
  left: 50%;

  display: inline-block;

  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  -o-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

.sk-spinner-pulse {
  width: 4em;
  height: 4em;
  margin: auto;

  -webkit-animation: sk-spinner-pulse 1s infinite ease-in-out;
  animation: sk-spinner-pulse 1s infinite ease-in-out;

  border-radius: 100%;
  background-color: #7e7e7e;
}

.preloader-done {
  visibility: hidden;

  opacity: 0;
}

@-webkit-keyframes sk-spinner-pulse {
  0% {
    -webkit-transform: scale(0);
    transform: scale(0);
  }
  100% {
    -webkit-transform: scale(1);
    transform: scale(1);

    opacity: 0;
  }
}

@keyframes sk-spinner-pulse {
  0% {
    -webkit-transform: scale(0);
    transform: scale(0);
  }
  100% {
    -webkit-transform: scale(1);
    transform: scale(1);

    opacity: 0;
  }
}
