/* ---------- reset css styles ------------ */
*{padding: 0;margin: 0;border: 0;}
*,*:before,*:after{-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;}
:focus,:active{outline: none;}
a:focus,a:active{outline: none;}
nav,footer,header,aside{display: block;}
html,body{
  height:100%;width:100%;
  font-size:100%;line-height:1;font-size:14px;-ms-text-size-adjust:100%;-moz-text-size-adjust:100%;-webkit-text-size-adjust:100%;}
input,button,textarea{font-family:inherit;}
input::-ms-clear{display: none;}
button{cursor: pointer;}
button::-moz-focus-inner{padding:0;border:0;}
a,a:visited{text-decoration: none;}
a:hover{text-decoration: none;}
ul li{list-style: none;}
img{vertical-align: top;}
h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight: inherit;}
a{color:inherit;}
/* --------------- fonts ------------------ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
/* ------------- css styles --------------- */

body{
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background-color: #cecdcd;
}

.container {
  width: 1440px;
  background-color: #D7D7D7;
  font-family: "Montserrat", sans-serif;
  font-weight: bold;
}

.header {
    background: linear-gradient(
      105deg, 
      #D7D7D7 39.5%,
      black 40.5%);
}

.navbar {
  padding: 50px 50px 0px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo{
  height: 50px;
  width: 50px;
}

.nav-elements{
  display: flex;
  column-gap: 10px;
  color: #fff;
}

.nav-element {
  font-size: 16px;
  height: 50px;
  width: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.3s;
}

.nav-element:hover {
  color: #000;
  background-color: #D7D7D7;
  border-radius: 50px;
}

.header-content{
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 100px;
  padding: 0px 50px;  
}

.content-hello{
  font-size: 40px;
  margin-bottom: 20px;
}

.content-title{
  max-width: 400px;
  font-size: 80px;
  margin-bottom: 10px;
}

.content-subtitle{
  font-size: 25px;
  color: #909090;
  margin-bottom: 80px;
}

.header-links{
  display: flex;
  column-gap: 15px;
}

.header-link{
  border-radius: 5px;
  background: #C4C4C4;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}


.header-link:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.384);
}

.header-link > a > img{
  width: 40px;                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 
}


.my-photo {
  width: 700px;
}
.aboutme{
  background-color: #1D1D1D;
  color: #fff;
}

.about-title{
  font-size: 30px;
  letter-spacing: 18.54%;
  margin-bottom: 30px;
}

.about-subtitle-text{
  font-size: 15px;
  max-width: 800px;
  font-weight: 400;
  text-align: justify;
  line-height: 138%;
}

.aboutme{
  display: flex;
  padding: 50px 100px;
  column-gap: 150px;
}

.about-subtitle-img{
  max-height: 300px;
  transform: rotate(30deg);
}

.code-example{
  display: block;
  align-items: center;
  justify-content: center;
}

.code-block {
    padding: 1.5rem;
    margin: 2rem auto;
    max-width: 940px;
    background:#fafafa;
    border-radius:.75rem;
    box-shadow:0 4px 12px rgba(0,0,0,.1);
    font-family:"Fira Code", "Consolas", monospace;
    font-size:1rem;
    line-height:1.5;
    color:#333;
}

.h2-title{
  margin: 4rem auto;
  max-width: 400px;
  min-height: 100px;
  font-size: 30px;
  line-height: 127.9%;
  letter-spacing: 35.54%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 8px solid #000;
}

.skill-block-title{
  text-transform: uppercase;
  font-size: 30px;
  letter-spacing: 18.54%;
  margin-bottom: 40px;
}

.skills-block{
  max-width: 900px;
  justify-content: center;
  margin: auto;
  padding-bottom: 50px;
}

.skills-list{
  display: flex;
  flex-wrap: wrap;
  column-gap: 30px;
}
.skills-item{
  width: 150px;
  height: 150px;
  gap: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.skills-item-text{
  font-weight: 300;
  font-size: 24px;
  letter-spacing: 13.54%;
}

.skills-item-img-lang{
  width: 100px;
  height: 100px;
}

.skills-item-text-lang{
  font-weight: 300;
  font-size: 16px;
  letter-spacing: 13.54%;
  line-height: 2rem;
}

.portfolio{ 
  padding-top: 20px;
  background-image: url('../img/bg-porfolio.jpg');
  background-position: center;
}

.portfolio-content{
  display: flex;
  padding-bottom: 50px;
  flex-wrap: wrap;
  justify-content: center;
  background-color: #1D1D1D;
}

.portfolio-lists-title{
  display: inline-block;
  color: #fafafa;
  padding: 35px;
  font-size: 24px;
}

.portfolio-lists{
  display: grid;
  gap: 50px;
  align-items: center;
  grid-template-columns: repeat(3, 1fr);
}

.portfolio-img{
  width: 400px;
  height: 250px;
}

.portfolio-items{
  max-width: 400px;
  transition: 0.3s;
}

.portfolio-items:hover {
  box-shadow:0 4px 12px rgb(241, 238, 238);;
}

.footer{
  background: #000;
  color: #fafafa;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 50px;
}

.footer-rsimg{
  display: flex;
  height: 50px;
  width: 135px;
}

.footer-git{
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 10px;
  font-size: 20px;
  transition: 0.3s;
}

.footer-git-img{
  width: 50px;
}