/*
 * Globals
 */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Links */
a,
a:focus,
a:hover {
  color: #fff;
  cursor: none;
}

/* Custom default button */
.btn-secondary,
.btn-secondary:hover,
.btn-secondary:focus {
  color: #333;
  text-shadow: none; /* Prevent inheritance from `body` */
  background-color: #fff;
  border: .05rem solid #fff;
}


/*
 * Base structure
 */

html,
body {
  height: 100%;
  cursor: none;
  scroll-behavior: smooth;

}

body {
  display: -ms-flexbox;
  display: flex;
  color: #202e3c;
  font-family: 'Montserrat', sans-serif;
  background-color: #fff;
  background: url(../svg/contact-back.svg) bottom no-repeat cover;
  transition: 0.2s ease all;
}

body.dark-version {
  color: #cfcfcf;
  background-color:#1a1a1a;
}

main {
  position: relative;
}

.cover-container {
  max-width: 1080px;
}

.small-width {
  width: 720px;
  margin: auto;
}

.copyright {
  color: #b3bacc;
}

.type-header-small {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -1px;
  display: block;
  text-align: center;
  padding-top: 150px;
  color: #f95858;
}
.type-header-big {
  font-size: 54px;
  line-height: 54px;
  letter-spacing: -5px;
  display: block;
  font-weight: 700;
  text-align: center;
  color: #202e3c;
  transition: 0.2s ease color;
}

body.dark-version .type-header-big {
  color: #cfcfcf;
}

.background-bot {
  right: 0;
  z-index: -10000;
  width: 300px;
  bottom: -100px;
}

.bd-placeholder-img {
  font-size: 1.125rem;
  text-anchor: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* width */
::-webkit-scrollbar {
  width: 5px;
  margin-right: 5px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #f95858;
  transition: 0.3s;
  border-radius: 4px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #e84040;
}

.start-arrow {
  margin-top: -100px;
}

.row-ab {
  margin-bottom:150px;
}

/*
 * Header
 */
.masthead {
  margin-bottom: 2rem;
}

.masthead-brand {
  margin-bottom: 0;
}

.nav-masthead .nav-link {
  padding: .75rem 25px;
  font-weight: 400;
  font-size: 12px;
  color: #202e3c;
  background-color: transparent;
  border-bottom: .25rem solid transparent;
  transition: 0.3s;
}

.nav-masthead .nav-link:hover,
.nav-masthead .nav-link:focus {
  border-bottom-color: rgba(255, 255, 255, .25);
}

.nav-masthead .nav-link + .nav-link {
  margin-left: 1rem;
}

.nav-masthead .active {
  color: #fff;
  border-bottom-color: #fff;
}

.mb-auto, .my-auto {
  margin-bottom: 150px!important;
  margin-top: 100px!important;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-masthead .nav-link:hover {
  color: #f95858;
  font-weight: 600;
}

.topnav-mobile {
  display: none;
}

@media (min-width: 48em) {
  .masthead-brand {
    float: left;
  }
  .nav-masthead {
    float: right;
  }
}

.topnav1 {
  overflow: hidden;
  position: relative;
  width: 100%;
  min-height: 50px;
  display: none;
  top: -50px;
}

.topnav1 #myLinks {
  display: none;
  margin-top: 65px;
  transition: display 1s;
}

.mobile-icon {
  color: #f95858;
}


.topnav1 .mobile-listing {
  color: #202e3c;
  text-decoration: none;
  height: 53px;
  display: block;
  padding:15px;
}

.topnav1 a.icon {
  display: block;
  position: absolute;
  padding: 15px;
  right: 0;
  top: 0;
  color: #202e3c;
  text-decoration: none;
  height: 53px;
}

.topnav1 a:hover {
  background-color: #ddd;
  color: black;
}

.active1 {
  background-color: #4CAF50;
  color: white;
}

 body.dark-version .header-logo,
 .header-logo.white-version {
  display: none;
}

body.dark-version .header-logo.white-version {
  display: inline-block;
}


/*
 * about me
 */
.cover {
  padding: 0 1.5rem;
}
.cover .btn-lg {
  padding: .75rem 1.25rem;
  font-weight: 700;
}
.cover-heading {
  text-align: left;
  font-weight: 700;
  font-size: 88px;
  line-height: 78px;
  float: right;
  letter-spacing: -5px;
}

.about-me-pic {
  width: 250px;
  height: 250px;
  float: left;
}

.about-me {
  align-items: center;
  padding-bottom: 100px;
}

.about-me-hi {
  font-size:54px;
  color: #f95858;
  font-weight: 700;
}

.about-text {
  text-align: left;
}

.about-me-text {
  font-size: 14px;
  line-height: 30px;
  color: #585b5e;
  font-weight: 200;
  transition: 0.2s ease color;
}

body.dark-version .about-me-text {
  color: #cfcfcf;
}

.point-1 {
  left: 19%;
}

.point-2 {
  padding-top: 27px;
}

.point-3 {
  right: 19%;
  margin-top: 92px;
}
.point-4 {
  right: 47%;
  margin-top: 90px;
}

.point-5 {
  right: 30%;
  margin-top: 0px;
}

.point-6 {
  left: 25%;
  top: auto!important;
  margin-top: -37px;
}

body.dark-version .point-1, 
body.dark-version .point-2,
body.dark-version .point-3,
body.dark-version .point-4,
body.dark-version .point-5,
body.dark-version .point-6 {
  filter: invert(1);
}

.box1 {
  left: 31%;
  margin-top: -69px;
}

.box2 {
  left: 20%;
  margin-top: 12px;
}
.box3 {
  left: 25%;
  margin-top: 70px;
}

.box4 {
  right: 20%;
  margin-top: 180px;
}

.box5 {
  right: 35%;
  margin-top: 80px;
}

body.dark-version .backdrop.rellax {
  filter: invert(0.7);
}

.tr1 {
  left: 15%;
  margin-top: 6px;
}

.tr2 {
  left: 20%;
  margin-top: 75px;
}

.tr3 {
  right: 15%;
  margin-top: 0px;
}

.tr4 {
  right: 20%;
  margin-top: 60px;
}

.backdrop {
  position: absolute;
}

/*
 * Services
 */

.services {
  text-align: center;
  margin-top: 50px;
}

.services-name {
  font-size: 20px;
  line-height: 24px;
  color: #202e3c;
  font-weight: 600;
  letter-spacing: -1px;
  padding: 20px 0;
  transition: 0.2s ease color;
}

body.dark-version .services-name {
  color: #cfcfcf;
}

.services-text {
  font-size: 14px;
  line-height: 28px;
  color: #9b9fa6;
}

.services-icon {
  height: 90px;

}

.services-boxes {
  padding: 35px 15px;
  transition: box-shadow 0.3s ease-in-out;
}

.services-boxes:hover {
  box-shadow: 0 10px 20px 6px rgb(32 46 60 / 10%);
}

/*
 * Skills
 */

 .skills-block {
  padding-bottom: 150px;
  background: #f0f3fc;
  width: 100vw;
  margin-left: calc(-50vw - 5px);
  position: relative;
  left: 50%;
  overflow: hidden;
  margin-top: 250px;
  transition: 0.2s ease background-color;
 }

 body.dark-version .skills-block {
  background-color: #252525;
 }

.skills {
  margin-top:50px;
}

.skills-title {
  font-size: 18px;
  line-height: 32px;
  color: #202e3c;
  font-weight: 600;
  letter-spacing: -1px;
  padding-top:25px;
  transition: 0.2s ease color;
}

body.dark-version .skills-title {
  color: #cfcfcf;
 }

/*
 * Portfolio
 */

.portfolio{
  margin-top: 50px;
}

.tabs-portfolio {
  margin: auto;
  color: #202e3c!important;
  padding-bottom: 20px;
}

.portfolio .nav-link {
  color: #202e3c!important;
  font-size: 14px!important;
}

.nav-pills .nav-link {
  transition: border-bottom 0.5s;
  border-bottom: 2px solid transparent
}

.nav-pills .nav-item {
  padding: 0 5px;
}

.nav-pills .nav-link.active, .nav-pills .show>.nav-link {
  color: #202e3c!important;
  background-color: rgb(255 255 255 / 0)!important;
  border-bottom: 2px solid #f95858;
  border-radius: 0px!important;
}

.nav-pills .nav-link:hover {
  color: #202e3c!important;
  background-color: rgb(255 255 255 / 0)!important;
  border-bottom: 2px solid #f95858;
  border-radius: 0px!important;
}

.carousel-control-next, .carousel-control-prev {
  opacity: 1;
}

.carousel-indicators li {
    cursor:none!important;
}

.carousel-caption {
  bottom: 0px;
  width: 100%;
  right: 0;
  left: 0;
}
.carousel-indicators {
  margin-bottom: 15px;
}

.carousel-caption h5 {
  font-size:18px;
  color: #202e3c;
  font-weight: 600;
}

.carousel-caption p {
  font-size:14px;
  margin-bottom: 30px;
  color: #697077;
}

.dark-portfolio h5, .dark-portfolio p {
  color: #fff;
}

.carousel {
  box-shadow: 0 10px 20px 6px rgb(32 46 60 / 5%);
}

.carousel-indicators li {
  background-color: #f95858;
}

.portfolio-link {
  color: #f95858;
  transition: color 0.2s ease-in-out;
  font-weight:600;
}

.portfolio-link:hover {
  color: #bb3838;
}

/*
 * Contacts
 */

.contacts-header {
  margin-top: 150px;
}

.contacts {
  margin-top:20px;
  text-align: left;
}

.contacts-small {
  font-size: 14px;
  font-weight: 600;
  color: #202e3c;
  margin-top: 30px;
  transition: 0.2s ease color;
}

body.dark-version .contacts-small {
  color: #cfcfcf;
}

.contacts-big {
  font-size: 36px;
  font-weight: 700;
  color: #202e3c;
  transition: 0.2s ease color;
}

body.dark-version .contacts-big {
  color: #cfcfcf;
}

.contacts-big a {
  font-size: 36px;
  font-weight: 700;
  color: #202e3c;
  padding-bottom: 5px;
  border-bottom: 2px solid transparent;
  transition: border-bottom 0.5s;
  transition: color 0.2s;
}

body.dark-version .contacts-big a {
  color: #cfcfcf;
}

.contacts-big a:hover {
  text-decoration: none;
  border-bottom: 2px solid #f95858;
  color: #f95858;
}

.contacts-icons {
  width: 50px;
  float:right;
  margin-top: 45px;
}

.contact-back {
  left:0;
  width:calc(100vw - 5px);
  z-index:-10000;
  margin-top: calc(-150px);
}

/*
 * Footer
 */
.mastfoot {
  color: rgba(255, 255, 255, .5);
}

.footer {
  font-size: 10px;
  margin-top: 150px;
  margin-bottom: 20px;
}

.footer-logo {
  height: 50px;
  margin-bottom: 15px;
}

body.dark-version .footer-logo,
.footer-logo.white-version {
  display: none;
}

body.dark-version .footer-logo.white-version {
  display: inline-block;
}


/*
 * Movement
 */

@keyframes arrowupdown {
  from{
    transform: translateY(0px);
    moz-transform: translateY(0px); //Firefox
    ms-transform: translateY(0px); //Microsoft Browsers
  }
  to{
    transform: translateY(50px);
    moz-transform: translateY(50px); //Firefox
    ms-transform: translateY(50px); //Microsoft Browsers
  }
}

@-webkit-keyframes arrowupdown {
  from{-webkit-transform: translateY(0px);
      }
  to{-webkit-transform: translateY(50px);
      }
}
.arrowMove {
  animation-name: arrowupdown;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-duration: 2s;
  animation-direction: alternate;
  -webkit-animation-name: arrowupdown;
  -webkit-animation-timing-function: ease-in-out;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-duration: 2s;
  -webkit-animation-direction: alternate;
}

@keyframes movearound {
  from{
    transform: translate(0px,0px);
    moz-transform: translate(0px,0px);
    ms-transform: translate(0px,0px);
  }

  to{
    transform: translate(5px,5px);
    moz-transform: translate(5px,5px);
    ms-transform: translate(5px,5px);
  }
}

@-webkit-keyframes movearound {
  from{-webkit-transform: translate(0px, 0px);
      }
  to{-webkit-transform: translate(5px,5px);
      }
}

.boxMove {
  animation-name: movearound;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-duration: 3s;
  animation-direction: alternate;
  -webkit-animation-name: movearound;
  -webkit-animation-timing-function: ease-in-out;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-duration: 3s;
  -webkit-animation-direction: alternate;
}

@keyframes movearound2 {
  from {
    transform: translate(0px,0px);
    moz-transform: translate(0px,0px);
    ms-transform: translate(0px,0px);
  }

  to {
    transform: translate(-5px,-5px);
    moz-transform: translate(-5px,-5px);
    ms-transform: translate(-5px,-5px);
  }
}

@-webkit-keyframes movearound2 {
  from{-webkit-transform: translate(0px, 0px);
      }
  to{-webkit-transform: translate(-5px,-5px);
      }
}

.boxMove2 {
  animation-name: movearound2;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-duration: 2s;
  animation-direction: alternate;
  -webkit-animation-name: movearound2;
  -webkit-animation-timing-function: ease-in-out;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-duration: 2s;
  -webkit-animation-direction: alternate;
}

/*
 * Bars
 */
.progress {
  width: 150px;
  height: 150px;
  line-height: 150px;
  background: none;
  margin: 0 auto;
  box-shadow: none;
  position: relative;
}
.progress:after {
  content: "";
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 5px solid #c6ccd6;
  position: absolute;
  top: 0;
  left: 0;
}

.progress > span {
  width: 50%;
  height: 100%;
  overflow: hidden;
  position: absolute;
  top: 0;
  z-index: 1;
}

.progress .progress-left {
  left: 0;
}

.progress .progress-bar {
  width: 100%;
  height: 100%;
  background: none;
  border-width: 5px;
  border-style: solid;
  position: absolute;
  top: 0;
}

.progress .progress-left .progress-bar {
  left: 100%;
  border-top-right-radius: 80px;
  border-bottom-right-radius: 80px;
  border-left: 0;
  -webkit-transform-origin: center left;
  transform-origin: center left;
}

.progress .progress-right {
  right: 0;
}

.progress .progress-right .progress-bar {
  left: -100%;
  border-top-left-radius: 80px;
  border-bottom-left-radius: 80px;
  border-right: 0;
  -webkit-transform-origin: center right;
  transform-origin: center right;
  animation: loading-1 1.8s linear forwards;
}

.progress .progress-value {
  width: 90%;
  height: 90%;
  border-radius: 50%;
  background: none;
  font-size: 24px;
  color: #000;
  line-height: 135px;
  text-align: center;
  position: absolute;
  font-weight: 700;
  top: 5%;
  left: 5%;
  transition: 0.2s ease color;
}

body.dark-version .progress .progress-value {
  color: #cfcfcf;
}

.progress.yellow .progress-bar {
  border-color: #f95858;
}

#bar1 {
  animation: loading-3 1s ease forwards 1.8s;
}

#bar2 {
  animation: loading-5 1s ease forwards 1.8s;
}

#bar3 {
  animation: loading-2 1s ease forwards 1.8s;
}

#bar4 {
  animation: loading-4 1s ease forwards 1.8s;
}

.design-switch {
  background: none;
  border: none;
}

.design-switch span {
  width: 40px;
  height: 40px;
  display: flex;
  background-size: contain;
  background-image: url('../svg/night.svg');
  transition: 0.2s all ease;
  outline: none;
}

.design-switch span:hover {
  opacity: 0.5;
}

.design-switch.dark-version span {
  background-image: url('../svg/day.svg');
}

@keyframes loading-1 {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
  }
}

@keyframes loading-2 {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(160deg);
    transform: rotate(160deg);
  }
}

@keyframes loading-3 {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(170deg);
    transform: rotate(170deg);
  }
}

@keyframes loading-4 {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(90deg);
    transform: rotate(90deg);
  }
}

@keyframes loading-5 {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(160deg);
    transform: rotate(160deg);
  }
}

@media only screen and (max-width: 990px) {
  .progress { margin-bottom: 15px; }
}

 /*
 Mobile
 */

@media only screen and (max-width: 767px) {
  .cover-heading {
    float: none;
    font-size: 74px;
    line-height: 68px;
    text-align: center;
    padding-bottom: 15px;
  }

  .about-me-pic {
    float: none;
  }

  .about-text {
    width:100vw;
  }

  .contacts-big {
    font-size: 20px;
  }

  .contacts-big a {
    font-size: 20px;
  }

  .small-width{
    width: auto;
  }

  .about-me {
    padding-bottom: 30px;
  }

  .caro-arrow{
    overflow: hidden;
  }

  .mb-auto, .my-auto {
    margin-bottom: 50px!important;
    margin-top: 0px!important;
  } 

  .point-1 {
    left: -18%;
    top: 32%;
    display: none;
  }

  .point-5 {
    right: 10%;
    margin-top: -200px;
  }

  .point-2 {
    padding: 27px 0;
  }

  .box3 {
    display: none;
  }

  .box2 {
    margin-top: 150px;
  }

  .box1 {
    margin-top: 80px;
  }

  .tr1 {
    margin-top: 290px;
  }

  .tr2 {
    margin-top: 540px;
  }

  .tr3 {
    right: 10%;
    margin-top: 870px;
  }

  .tr4 {
    right: 8%;
    margin-top: 240px;
  }

  .box4 {
    margin-top: 350px;
  }

  .box5 {
    display: none;
  }

  .skills-block {
    margin-left: calc(-51vw + 2px);
  }

  .start-arrow {
    display: none;
  }

  .row-ab {
    margin-bottom: 50px;
  }
  .services-boxes {
    padding-bottom: 40px;
  
  }
  .contact-back {
    width: calc(100vw - 5px);
    z-index: -10000;
    margin-top: calc(190% + 5px);
  }

  .contacts-header {
    margin-top: 50px;
  }

  .contacts-icons {
    width: 35px;
    margin-top: 42px;
  }

  .nav-masthead {
    display: none;
  }

  .topnav1 {
    display: block;
  }

  .masthead-brand {
    float: left;
  }

  .type-header-big {
    font-size: 48px;
    line-height: 48px;
  }

  .skills-title {
    padding-top: 0px;
  }

  .skills-bars {
    margin-bottom: 25px;
  }

  .background-bot {
    display: none;
  }

 .bd-placeholder-img-lg {
    font-size: 3.5rem;
  }
 }
