* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

@font-face {
  font-family: 'Roboto';
  src: url("assets/fonts/Montserrat/Montserrat-Medium.ttf");
  font-weight: 100;
  font-weight: 500;
}

:root {
  --main-color: rgb(192, 18, 192);
  --text-color: #222;
  --white: #f7f7f7;
  --gray: #262a2b;
  --light-gray: #e1e1e1;
  --border-size: 3px;

}

h1 {
  font-size: 48px;
  margin: 20px 0 20px 0;
  font-weight: 100;
}

ul,
li>ul,
li {
  line-height: 20px;
}

li>ul {
  padding-top: 5px;
}

li {
  padding-bottom: 7px;
}

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-size: 14px;
  font-family: 'Montserrat', 'Roboto', 'Helvetica', sans-serif;
  color: var(--text-color);
  background: var(--white);
}

body header img {
  border-radius: 10px;
  margin-top: 0px;
  border: 1px solid var(--gray);
}

body aside img {
  border-radius: 10px;
  margin-top: 0px;
  border: 1px solid var(--gray);
  width: 100%;
  height: auto;
}

#code {
  padding-bottom: 3em;
}

#code pre {
  margin: 0;
}

code.hljs {
  background: #c6c6c6;
  border-radius: 10px;
  border: 1px solid var(--gray);
}

#code pre code.hljs {
  padding: 0 1em;
  line-height: 2em;
}

.code__title {
  line-height: 1.5em;
  font-style: italic;
}

.nav img {
  border-radius: 20px;
}

.nav .img {
  display: none;
}

.main .container {
  border-left: var(--border-size) solid var(--gray);
  border-right: var(--border-size) solid var(--gray);
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  list-style: none;
  flex-wrap: wrap;
  align-items: stretch;
  background: #c6c6c6;
}

.footer .container {
  justify-content: space-between;
  align-items: center;
  background: #c6c6c6;
  padding-top: 20px;
  border-radius: 0 0 10px 10px;
}

span.year {
  font-size: 18px;
}

span.year1 {
  font-size: 12px;
}

header .container {
  border: var(--border-size) solid var(--gray);
  border-bottom: 0px solid transparent;
  border-top: 0px solid transparent;
  background: #c6c6c6;
}

.main-container {
  display: flex;
  flex-direction: column;
  width: 65%;
  padding: 25px;
  background: #c6c6c6;
}

.projects-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr 1fr;
  z-index: 1;
  width: 100%;
  margin: 15px 0;
}

.projects-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

aside {
  display: flex;
  flex-direction: column;
  width: 35%;
  padding: 25px;
  color: #f7f7f7;
  background: #262a2b;
  border-radius: 0px 20px 20px 0px;
}

footer .container {
  border: var(--border-size) solid var(--gray);
  border-top: 0px solid transparent;
}

.nav-container {

  background: #262a2b;
  border-radius: 0px 0px 20px 20px;
  filter: drop-shadow(0px 0px 4px #262a2b);
}

#education .rSSchool {
  color: #509022;
}

.excerpt-hidden {
  height: 650px;
  overflow: hidden;
  position: relative;
  transition: 0.3s;
}

.excerpt-visible {
  height: 100%;
  overflow: auto;
}

.excerpt-hidden:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(to bottom, rgb(198 198 198 / 10%) 0%, #c6c6c6 100%);
}

.js-show-more {
  align-self: center;
}

/* hamburger */

.hamburger {
  display: none;
  z-index: 1;
  transition: 0.3s;
  margin-top: -90px;
  margin-bottom: 10px;

}

.hamburger .line {
  width: 50px;
  height: 3px;
  background-color: var(--white);
  display: block;
  margin: 8px auto;
  -webkit-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

.hamburger:hover {
  cursor: pointer;
}

#hamburger-1 .line:nth-child(2) {
  width: 35px;
}

#hamburger-1 .line:nth-child(3) {
  width: 20px;
}

.hamburger.is-active {
  margin-top: 0px;
}


#hamburger-1.is-active .line:nth-child(1) {
  -webkit-transform: translateY(25px) rotate(360deg);
  -ms-transform: translateY(25px) rotate(360deg);
  -o-transform: translateY(25px) rotate(360deg);
  transform: translateY(22px) rotate(360deg);

}

#hamburger-1.is-active .line:nth-child(2) {
  -webkit-transform: translateY(0px) rotate(360deg);
  -ms-transform: translateY(0px) rotate(360deg);
  -o-transform: translateY(0px) rotate(360deg);
  transform: translateY(0px) rotate(360deg);
}

#hamburger-1.is-active .line:nth-child(3) {

  -webkit-transform: translateY(-25px) rotate(360deg);
  -ms-transform: translateY(-25px) rotate(360deg);
  -o-transform: translateY(-25px) rotate(360deg);
  transform: translateY(-22px) rotate(360deg);
}



.nav-list {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  flex-wrap: wrap;
  padding: 0;
  margin: 10px 10px;
}

.nav-list a {
  text-decoration: none;
  color: #f7f7f7;
  font-weight: normal;
}

.nav-item {
  padding: 10px 20px;
  font-size: 16px;
}

.nav-link {
  padding: 5px 0px;
  border: 1px solid #262a2b;
  transition: .3s;
  white-space: nowrap;
}

.nav-link:hover {
  cursor: pointer;
  border-bottom: 1px solid #a4bc95;
}

.section {
  padding: 10px 0px;
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  /* min-width: 50%; */
  /* width: calc((30em - 100%) * 1000); */
  max-width: 100%;
  border-radius: 0px;

}

.section__footer {
  padding: 10px 0px;
  align-items: center;
  display: flex;
  flex-direction: column;
  min-width: 30%;
  width: calc((30em - 100%) * 1000);
  max-width: 33%;

}

.section#profile {
  width: 100%;
  padding-bottom: 40px;
  padding-top: 40px;
  text-align: center;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  /* background: #222 url(assets/img/matrix-code.jpg) repeat-x;
  
    background-size: 300px;*/
}

.profile__img {

  position: relative;
  left: 125px;

  -webkit-animation: profile__img 0.7s 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
  animation: profile__img 0.7s 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

@-webkit-keyframes profile__img {
  0% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }

  100% {
    -webkit-transform: translateX(-150px);
    transform: translateX(-150px);
  }
}


.profile__name {


  background-color: #262a2b;
  padding: 0px;
  border-radius: 10px;
  left: -125px;
  position: relative;
  border: 1px solid var(--gray);
  -webkit-animation: profile__name 0.7s 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
  animation: profile__name 0.7s 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

@keyframes profile__name {
  0% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }

  100% {
    -webkit-transform: translateX(150px);
    transform: translateX(150px);
  }
}

@-webkit-keyframes profile__name {
  0% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }

  100% {
    -webkit-transform: translateX(150px);
    transform: translateX(150px);
  }
}

/*
@media (max-width: 1000px){
  .section#profile .profile__img{
    
    
  
  }
  
  
  .profile__name {
   
  
    
  
  }

}*/



.profile__name_1 {
  position: relative;
  left: 170px;
  top: -200px;
  background-color: white;
  padding: 0px;
  border-radius: 10px;

}

a {
  color: #a4bc95;
}

.main-container a {
  color: #509022;
}

.profile__name__gh {
  padding: 0px 15px 15px 20px;

  /*-webkit-box-shadow: 4px 4px 5px 0px rgba(34, 60, 80, 0.2);
-moz-box-shadow: 4px 4px 5px 0px rgba(34, 60, 80, 0.2);
box-shadow: 4px 4px 5px 0px rgba(34, 60, 80, 0.2);*/
  background-color: #262a2b;
  border-radius: 10px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 248px;
  height: 248px;
  color: #a4bc95;
}



.section__pattern {
  display: flex;
  /* align-items: center;*/
  flex-direction: column;
  -webkit-transition: all 0.3s ease;
  ;
  -moz-transition: all 0.3s ease;
  ;
  -o-transition: all 0.3s ease;
  ;
  transition: all 0.3s ease;

}

/*
.section:hover .section__pattern{
  background-color: var(--light-gray);
  box-shadow: inset 0 0 0 13px var(--gray);
}*/
.skills {
  list-style: none;
  padding: 0;
}

.skill-bar {
  position: relative;
  margin: 0px 0 30px;
  font-size: 15px;
}

.skill-bar span,
.skill-bar::before {
  content: "";
  position: absolute;
  bottom: -10px;
  display: block;
  height: 4px;
  width: 100%;
  background-color: #6a6a6a;
}

.skill-bar span {
  bottom: -10px;
  height: 4px;
  background-color: #a4bc95;
}

code {
  font-size: 12px;
}

.btn {
  background: rgb(38 42 43);
  /* background: transparent; */
  border: 0;
  padding: 5px 15px;
  border-radius: 5px;
  color: #a4bc95;
  /* border: 1px solid #a4bc95; */
  margin-top: 10px;
  cursor: pointer;
  text-decoration: none;
}
a.btn {
  color: #a4bc95;
}

.btn:hover {
  background: rgb(38 42 43 / 90%);
}

.btn:active {
  background: rgb(38 42 43 / 80%);
}


#video iframe {
  width: 500px;
  height: 300px;
}

.lang__section {
  display: flex;
  flex-direction: column;
}

section#profile {
  order: 0;
}

section#summary {
  order: 1;
}

section#contacts {
  order: 2;

}

section#contacts li {
  white-space: nowrap;
}

section#projects {
  order: 6;
}

section#skills {
  order: 3;
}

section#code {
  order: 4;
}

section#exp {
  order: 5;
}

section#video {
  order: 7;
  overflow: hidden;
}

section#education {
  order: 6;
}

section#languages {
  order: 8;
}

.button-to-top {
  display: block;
  opacity: 0;
  background: url(assets/img/up-arrow.png) center no-repeat;
  height: 32px;
  width: 32px;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1;
  background-size: 32px 32px;
  transition: opacity 0.3s;
}

.projects-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

}

.projects-item img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 0px;
  border: 1px solid var(--gray);
  filter: brightness(0.7);
  transition: 0.3s;
}

.projects-grid .projects-item:hover a img {
  filter: brightness(0.3);
  transition: 0.3s;
}

.projects-item ul {
  display: flex;
  justify-content: center;
  /* gap: 30px; */
  margin: 0;
  padding: 0 0 0 0px;
  position: absolute;
  list-style: none;
  z-index: 2;
  /* background: #e1e1e1ad; */
  border-radius: 10px;
  opacity: 0;
  transition: 0.3s;
  color: var(--white);
  flex-direction: column;
  font-size: 120%;
  align-items: center;
}

.projects-item ul li::marker {
  color: #509022;

}

.projects-grid .projects-item:hover a ul {
  opacity: 1;

}

.projects-item-title {
  font-size: 115%;
  padding-bottom: 10px;
}

.youtube_player {
  border-radius: 10px;
  border: 1px solid rgb(39 39 39);
}

@media (max-width: 796px) {
  #video iframe {
    width: 350px;
    height: 240px;
  }

  section#contacts ul {
    padding-left: 20px;
  }

  .hamburger {
    display: block;
  }

  .nav {
    position: relative;
    top: -80px;
    transition: all 0.3s;
  }

  .nav.is-active {

    top: 0px;
  }

}

@media (max-width: 850px) {

  aside {
    width: 42%;
  }

  .main-container {
    width: 58%;
  }

  .youtube_player {
    width: 100%;
  }
}

@media (max-width: 768px) {

  aside {
    width: 50%;
  }

  .main-container {
    width: 50%;
  }

  .projects-grid {
    grid-template-columns: 1fr;

    justify-items: center;
  }


  .youtube_player {
    width: 100%;
  }
}

@media (max-width: 650px) {
  #video iframe {
    width: 500px;
    height: 300px;
  }

  .section {
    align-items: center;
  }

  .section-title {
    align-self: center;
  }

  aside {
    width: 100%;
    order: 2;
  }

  .main-container {
    width: 100%;
    order: 1;
  }

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

  .youtube_player {
    width: 100%;
  }

  .nav-container {
    position: fixed;
    z-index: 10;
  }

  .section#profile {
    margin-top: 45px;
    padding-bottom: 20px;
  }
}

@media (max-width: 600px) {

  ul,
  li>ul {
    padding-left: 30px;
  }

  #video iframe {
    width: 350px;
    height: 240px;
  }

  .profile__img {

    position: relative;
    top: 0px;
    left: 0px;
    -webkit-animation: profile__img 0.7s 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
    animation: profile__img 0.7s 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
  }

  @keyframes profile__img {
    0% {
      -webkit-transform: translateX(0);
      transform: translateX(0);
    }

    100% {
      -webkit-transform: translateX(0px);
      transform: translateX(0px);
    }
  }

  @-webkit-keyframes profile__img {
    0% {
      -webkit-transform: translateX(0);
      transform: translateX(0);
    }

    100% {
      -webkit-transform: translateX(0px);
      transform: translateX(0px);
    }
  }


  .profile__name {

    background-color: white;
    padding: 0px;
    border-radius: 10px;
    top: -254px;
    left: 0px;
    position: relative;
    border: 1px solid var(--gray);
    -webkit-animation: profile__name 0.7s 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
    animation: profile__name 0.7s 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
  }

  @keyframes profile__name {
    0% {
      -webkit-transform: translateX(0);
      transform: translateX(0);
    }

    100% {
      -webkit-transform: translateY(270px);
      transform: translateY(270px);
    }
  }

  @-webkit-keyframes profile__name {
    0% {
      -webkit-transform: translateX(0);
      transform: translateX(0);
    }

    100% {
      -webkit-transform: translateY(270px);
      transform: translateY(270px);
    }
  }


  section#summary {

    margin-top: -250px;
    -webkit-animation: summary 0.7s 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
    animation: summary 0.7s 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
  }

  @keyframes summary {
    0% {
      margin-top: -250px;
    }

    100% {
      margin-top: 0px;
    }
  }

  @-webkit-keyframes summary {
    0% {
      margin-top: -250px;
    }

    100% {
      margin-top: 0px;
    }
  }

  .section#profile {
    flex-direction: column;
    align-content: center;
  }

  .button-to-top {
    bottom: 35px !important;
    right: 10px !important;
  }

  .cap {
    bottom: 34px !important;
    right: 9px !important;
  }

  .youtube_player {
    width: 100%;
  }

  .projects-item {
    width: 100%;
  }

}

@media (max-width: 420px) {
  .nav {
    position: relative;
    top: -120px;
    transition: all 0.3s;
  }

  .hamburger {
    margin-top: -130px;
  }
}

@media (max-width: 450px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    justify-items: center;
  }

  #video iframe {
    width: 300px;
    height: 200px;
  }
}

@media (max-width: 312px) {
  .nav {
    position: relative;
    top: -160px;
    transition: all 0.3s;
  }

  .hamburger {
    margin-top: -170px;
  }

  #code p {
    text-align: center;
  }
}