*{
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
}
:root{
  /* --primary-color:rebeccapurple; */
}

body{
  height: 100vh;
}

header{
  display: flex;
  justify-content: center;
  align-items: center;
}
header nav{
  /* box-shadow: 3px 3px 3px black; */
  background-color: black;
  margin: 20px;
  padding: 20px;
  border-radius: 20px;
}

nav ul{
  display: flex;
  gap: 20px;
  
}
ul li{
  display: flex;
  gap: 5px;
}

li a{
  text-decoration: none;
  color:white;
  font-size: 20px;
}
li img{
  height: 20px;
  background-color: white;
}
/* header ends */
/* banner starts */
#banner{
  display: flex;
  gap: 10px;
}
main{
  max-width: 1280px;
  margin: auto;
  flex: 1;
  
}
section{
 padding: 50px 0px;
}
a>img{
  height: 20px;
}
.rightbanner dotlottie-player{
  height: 400px;
  width: 400px;
}
.leftbanner{
  display: flex;
  flex-direction: column;
  /* justify-content: space-between; */
  gap: 20px;
}

.leftbanner h1{
  font-size: 42px;
}
.leftbanner span{
  color: orange;
}

.leftbanner p{
  font-size: 20px;
  text-align: justify;
}
.buttons>button{
  padding: 20px 30px;
  margin: 5px;
  border-radius: 20px;
  font-size: 20px;
  background-color: black;
  color: white;
}
.buttons>button:nth-child(2){
  color: orange;
  background-color: transparent;

}
.buttons>button:nth-child(2):hover{
  background-color: orange;
  color: white;
}
/* banner ends */

/*media queries*/
@media(max-width:580px){
    #banner{
      display: flex;
      flex-direction: column;
      padding: 0px 20px;

    }
    li a{
      font-size: 16px;
    }
    li img{
      height: 16px;
    }
    .buttons>button{
      font-size: 20px;
      padding: 16px;
    }

    .rightbanner dotlottie-player{
      height: 300px;
      width: 300px;
    }
    #projects{
      display: grid;
      grid-template-columns:repeat(1,1fr);
    }


    
}
@media(min-width:581px) and (max-width:1234px){
  #banner{
    display: flex;
    padding: 0px 20px;

  }
  li a{
    font-size: 16px;
  }
  li img{
    height: 16px;
  }
  .buttons>button{
    font-size: 20px;
    padding: 16px;
  }

  .rightbanner dotlottie-player{
    height: 300px;
    width: 300px;
  }
  #projects{
    display: grid;
    align-items: center;
    justify-content: center;
    gap: 6px;
    grid-template-columns:repeat(2,1fr);
  }

}
@media(min-width:1235px){
  #projects{
    display: grid;
    align-items: center;
    justify-content: center;
    gap: 15px;
    grid-template-columns:repeat(3,1fr);
  }
}
/* about starts */
/* .title{
  font-size: 48px;
  text-align: center;
} */
/* .about{
  display: flex;
  padding: 0px 20px;
} */
#details{
  display: flex;
  flex-direction: column;
  gap: 20px;
}
#details>p{
  font-size: 24px;
}

#image>img{
  border-radius: 50%;
  height: 300px;
  width: 400px;
  box-shadow: 10px 10px 20px;
}
.skill-grid{
  display: grid;
  grid-template-columns: repeat(3,auto);
  gap: 10px;
}
.skill-grid>img{
  height: 50px;
}
.skill-grid>img:hover{
  transform: scale(1.1);
}
main>h2{
    padding: 0px 20px;
}
#skills>p{
  font-size: 24px;
  font-weight: bolder;
}

/* about ends */
/* projects starts */

.project{
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 3px 3px 10px black;
  border-radius: 20px;  
  align-items: center;
  justify-content: center;
  padding: 10px;
  height: 400px;
  width: 400px;
}
.project:hover{
  transform: scale(1.02);
  transition: 0.8s;
}
.project>img{
  height: 200px;
  width: 350px;
  border: black 1px solid;
  border-radius: 20px;
}
.project>button{
  padding: 10px 20px;
  margin: 10px 20px;
  border-radius: 20px;
  border: black;
  background-color: black;
  color: white;
   
}
.all_projects{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.more-projects{
  text-align: center;
  margin-top: 20px;
}
.more-projects a {
  padding: 4px;
  margin-top: 2px;
  border: 1px solid black;
  border-radius: 5px;
  font: 20px;
  font-size: large;
  text-decoration: none;
  color: black;
  background-color: beige;
  transition: 0.3s ease;
  display: inline-block; /* enables scaling */
}
.more-projects a:hover {
  transform: scale(1.02);
}

/* projects ends */
/* contact starts */
#contact{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.form{
  display: flex;
  gap: 20px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* justify-items: center; */
  width: 50vw;
  height: 100vh;
}
input,textarea{
  width: 100%;
  height: 50px;
  border-radius: 20px;
}
textarea{
  height: 100px;
  resize: none;
}
form>button{
  padding: 10px 20px;
  background-color: black;
  color: white;
  border-radius: 20px;
}
input::placeholder,textarea::placeholder{
  padding: 5px;
}
.hidden{
  display: none;
}
form label{
  font-size: 20px;
  font-weight: bold;
  align-self: flex-start;
}
form input,form textarea{
  font-size: 18px;
  padding: 10px;
}

/* contact ends */
/*footer strats*/
footer{
  justify-content: center;
  
  padding: 0px 0px 0px 20px;
  /* position: absolute;
  bottom: 2px; */
  text-align: center;
}
.skip-link{
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus{
  position: static;
  width: auto;
  height: auto;
  padding: .5rem  1rem;
  overflow: visible;
  background-color: black;
  color:white;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
}
.nav-item.active a{
  font-weight: bold;
  text-decoration: blue underline;
  color: orange;
}
.nav-item a:hover{
  text-decoration: orange underline;
}
.nav-item a{
  text-decoration: none;
}
/* certifications */
#certifications{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.certs{
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
  gap: 20px;
  margin-top: 20px;

}

.cert{
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: auto;
  align-items: center;
  border-radius:12px;
  padding: 16px;
  border: black 2px solid;
  box-shadow: 3px 3px 10px black;

}

.cert:hover{
  transform: scale(1.02);
  transition: 0.8s;
}

.cert img{
  width: 350px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}
.cert>button{
  padding: 10px 20px;
  margin: 10px 20px;
  border-radius: 20px;
  border: black;
  background-color: black;
  color: white;
   
}

.cert_body h3{
  margin: 0 0 6px 0;
}
.cert_body p{
  margin:4px 0;
}

.more-certs{
  text-align: center;
  margin-top: 20px;
}
.more-certs a {
  padding: 4px;
  margin-top: 2px;
  border: 1px solid black;
  border-radius: 5px;
  font: 20px;
  font-size: large;
  text-decoration: none;
  color: black;
  background-color: beige;
  transition: 0.3s ease;
  display: inline-block; /* enables scaling */
}
.more-certs a:hover {
  transform: scale(1.02);
}