@import url("https://fonts.googleapis.com/css2?family=Poppins: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");

* {
  margin: 0%;
  padding: 0%;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  scroll-behavior: smooth;
  font-family: "Poppins", sans-serif;
}

:root {
  --bg-color: #081b29;
  --second-bg-color: #112e42;
  --text-color: #ededed;
  --main-color: #00abf0;
}

html {
  /* font-size: 20px; */
  overflow-x: hidden;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
}

header {
  position: fixed;
  top: 0%;
  left: 0%;
  width: 100%;
  padding: 15px 30px;
  /* background-color: yellowgreen; */
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
}
.navbar{
  padding: 10px 15px;
  /*background-color: var(--bg-color);*/
  box-shadow: 0 0 0.2 var(--second-bg-color);
  transition: 0.5s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
  /* transition-delay: 0.2s; */
}
.brand {
  font-size: 36px;
  color: var(--text-color);
  font-weight: bold;
}

nav a {
  color: var(--text-color);
  font-size: 18px;
  font-weight: 400;
  margin-left: 50px;
  transition: 0.3s;
}



nav a:hover {
  color: var(--main-color);
}


#menu {
  font-size: 40px;
  color: var(--text-color);
  cursor: pointer;
  display: none;
}
section {
  padding: 100px 60px;
  /*background-color: red; */
  overflow: hidden;
  display: flex;
  /*align-items: center;*/
  /* margin: auto; */
}

.home-content {
  width: 100%;
  /*background-color: pink;*/
  /*margin: auto;*/
  /* padding: 10px; */
  /* background-color: #00abf0; */
}
.home-content h1 {
  margin-top: 80px;
  font-size: 46px;
  font-weight: 700;
  line-height: 1.3;
}

.home-content p {
  font-size: 16px !important;
  margin: 15px 0;
  /*width: 300px;*/
  width: 60%;
}

.socials {
  margin-top: 80px;
  width: 25%;
  display: flex;
  justify-content: flex-start;
  gap: 30px;
  /* background-color: #00abf0; */
}

.socials a {
  padding: 10px;
  color: var(--main-color);
  font-size: 25px;
  border: 1px solid var(--main-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.5s;
}

.socials a:hover {
  background-color: var(--main-color);
  color: var(--bg-color);
}
.btn-box {
  /*position: relative;*/
  display: flex;
  justify-content: flex-start;
  gap: 15px;
  width: 40%;
}

.btn-box .btn:nth-child(2) {
  background: transparent;
  color: var(--main-color);
}

.btn-box .btn:nth-child(2)::before {
  background: var(--main-color);
}

.btn-box .btn:nth-child(2):hover {
  color: var(--bg-color);
}

.btn-box .btn:nth-child(2)::before {
  background: var(--main-color);
}

.btn {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 150px;
  height: 100%;
  background-color: var(--main-color);
  border: 1px solid var(--main-color);
  border-radius: 10px;
  padding: 15px;
  color: var(--bg-color);
  font-size: 17px;
  letter-spacing: 0.8px;
  font-weight: 600;
  z-index: 1;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--bg-color);
  z-index: -1;
  transition: 0.5s;
}

.btn:hover {
  color: var(--main-color);
}

.btn:hover::before {
  width: 100%;
}


header{
  justify-content: space-between;
}





.animated-text {
  position: relative;
  width: fit-content;
  /*background-color: pink;*/
}

.animated-text h3 {
  font-size: 35px;
  font-weight: 500;
  color: transparent;
  -webkit-text-stroke: 1px var(--main-color);
  background-image: linear-gradient(var(--main-color), var(--main-color));
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: none;
  background-position: 0 0;
  animation: homeBgText 6s linear infinite;
  /* animation-delay: 0.5s; */
}

@keyframes homeBgText {
  0%, 10%, 100%{
    background-position: -30rem 0;
  }

  65%, 85% {
    background-position: 0 0;
  }
}

@keyframes homeCursorText {
  0%, 20%, 100%{
    width: 0;
  }

  65%, 78%, 85% {
    width: 100%;
    opacity: 1;
  }

  75%, 85% {
    opacity: 0;
  }
}

.animated-text h3::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  border-right: 2px solid var(--main-color);
  z-index: -1;
  animation: homeCursorText 6s linear infinite;
  /* animation-delay: 2s; */
  
}

.home-content p {
  font-size: 20px;
  margin: 15px 0;
}





.about {
  margin: auto;
  width: 100%;
  overflow: hidden;  
  background-color: var(--second-bg-color);
  padding: 30px;
}

.img-and-content {
  display: flex;
  flex-direction: row;
  width: 100%;
  padding: 10px 20px;
}
.about-img {
  width: 40%;
   display: flex;
   justify-content: center;
   padding: 0px 10px;
   align-items: center; 
}

.about-content {
  overflow: hidden;
  width: 60%;
  padding: 20px;
}

.about-img img{
  border-radius: 20px;
  box-shadow: 0px 0px 10px var(--main-color);
  height: auto;
  width: 100%;
}


.about > .heading {
  font-size: 45px;
  text-align: center;
  margin-top: 30px;
  /* margin-bottom: 15px; */
}

.about > .heading span {
  color: var(--main-color);
}





.about-content p {
  font-size: 16px;
}

.about-content ul {
  list-style: none;
  font-size: 16px;
}

.education {
  width: 100%;
  margin: auto;
  padding: 50px;
}

.education > .heading {
  font-size: 45px;
  text-align: center;
  margin-bottom: 15px;
  margin-top: 20px;
}

.education > .heading span {
  color: var(--main-color);
}

.education-block {
  width: 100%;
}

.education-block .education-row {
  box-shadow: 0px 0px 10px var(--main-color);
  border-radius: 10px;
  padding: 20px;
  margin: 20px auto;
  width: 60%; 
  cursor: pointer;
}

.education-row h3 {
  color: var(--main-color);
  font-size: 17px;
}

.education-row p:nth-child(2) {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 5px;
}

.education-block .education-row:hover {
  transition: 0.5s;
  background: var(--main-color);
  /*border: 1px solid var(--second-bg-color);*/
  box-shadow: 0px 0px 10px var(--main-color);
  color: var(--bg-color);
  /*transform: translateY(-10px);*/
  transform: scale(1.1);
}
.education-block .education-row:hover h3{
  color: var(--bg-color);
}
.skills {
  width: 100%;
  margin: auto;
  background-color: var(--second-bg-color);
  padding: 50px 150px;
}

.skills > .heading {
  font-size: 45px;
  text-align: center;
  margin-bottom: 15px;
  margin-top: 20px;
}

.skills > .heading span {
  color: var(--main-color);
}

.skills .skills-block {
  width: 80%;
  margin: auto;
}

.skill {
  border-radius: 5px;
  padding: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--main-color);
  margin-bottom: 15px;
}

.html,
.express,
.mongo,
.js {
  width: 90%;
  height: 100%;
  background-color: var(--main-color);
  color: var(--bg-color);
  padding: 4px;
}

.java,
.node {
  width: 80%;
  height: 100%;
  background-color: var(--main-color);
  color: var(--bg-color);
  padding: 4px;
}

.py {
  width: 70%;
  height: 100%;
  color: var(--bg-color);
  background-color: var(--main-color);
  padding: 4px;
}

.office {
  width: 95%;
  height: 100%;
  color: var(--bg-color);
  background-color: var(--main-color);
  padding: 4px;
}

.css {
  width: 85%;
  height: 100%;
  color: var(--bg-color);
  background-color: var(--main-color);
  padding: 4px;
}

.react {
  width: 60%;
  height: 100%;
  color: var(--bg-color);
  background-color: var(--main-color);
  padding: 4px;
}

.contact {
  width: 100%;
  margin: auto;
  /* background-color: #00abf0; */
  padding: 50px;
}

.contact > .heading {
  font-size: 45px;
  text-align: center;
  margin-bottom: 15px;
  margin-top: 30px;
}

.contact > .heading span {
  color: var(--main-color);
}

form{
      width: 70%;
      margin: 0px auto;
      padding: 50px !important;
      border: 1px solid var(--main-color);
}

form .name>input{
      border: 1px solid var(--main-color);
      padding: 15px;
      border-radius: 5px;
      background-color: var(--second-bg-color);
      width: 49%;
      color: var(--text-color);
}

form .name{
      display: flex;
      justify-content: space-between;
      align-items: center;
}

form .email>input, .phone>input{
      margin-top: 30px;
      border: 1px solid var(--main-color);
      padding: 15px;
      border-radius: 5px;
      background-color: var(--second-bg-color);
      width: 100%;
      color: var(--text-color);
}

form .message>textarea{
      margin-top: 30px;
      border: 1px solid var(--main-color);
      padding: 15px;
      border-radius: 5px;
      background-color: var(--second-bg-color);
      width: 100%;
      color: var(--text-color);
}

form .submit{
      margin-top: 5px;
      text-align: center;
}

footer{
      width: 100%;
      background-color: var(--second-bg-color);
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      color: var(--text-color);
      padding: 10px;
}

.backtoUp{
      position: relative;
      top: 0px;
      right: 10px;
      bottom: 0px;
      display: flex;
      justify-content: end;
      align-items: center;
}

.backtoUp a{
      text-decoration: none;
      color: var(--text-color);
      font-size: 25px;
      cursor: pointer;
}



  @keyframes homeCursorText {
    0%, 33%, 100%{
      width: 0;
    }
  
    65%, 78%, 85% {
      width: 100%;
      opacity: 1;
    }
  
    75%, 85% {
      opacity: 0;
    }
  }

  
    .animated-text h3 {
      font-size: 25px;
      font-weight: 500;
      color: transparent;
      -webkit-text-stroke: 1px var(--main-color);
    }
    
    
   
   

@media (max-width: 780px){
  #menu{
      display: block;
  }

  .skills{
    padding: 10%;
  }

  .navbar{
      position: absolute;
      top: 100%;
      left: -100%;
      width: 100%;
      height: 90vh;
      background-color: var(--bg-color);
      box-shadow: 0 0 0.2 var(--second-bg-color);
      transition: 0.5s ease-in-out;
      display: flex;
      flex-direction: column;
    }

    .navbar a{
      margin-bottom: 15px;
      margin-left: 0px;
    }

    .navbar.short-nav{
      left: 0%;
      display: flex;
      justify-content: center !important;
      align-items: center !important;
    }
    section {
      padding: 100px 30px;
    }
    .home{
      height: 60vh;
    }
    .home-content{
      text-align: center;   
    }
    .home-content h1{
      font-size: 36px;
    }
    .home-content p{
      width: 100%;
    }
    .animated-text{
      text-align: center !important;
      display: flex;
      justify-content: center;
      align-items: center;
      width: 100% !important;
    }
    .btn-box{
      display: flex;
      justify-content: center;
      gap: 15px;
      align-items: center;
      width: 100%;
    }
    .socials{
      width: 100%;
      margin-top: 40px;
      display: flex;
      gap: 10px;
      justify-content: center;
    }
    .img-and-content{
      flex-direction: column;
    }
    .about-img{
      width: 100%;
    }
    .about-img img {
      width: 90%;
      margin: 0px auto;
    }
    .about-content{
      width: 100%;
      padding: 10px; 
    }
    .education-block .education-row{
      width: 100%;
      margin: 20px auto;
      padding: 15px;
    }
    .education-row h3 {
      color: var(--main-color);
      font-size: 15px !important;
    }

    .education-row p{
      font-size: 14px !important;
    }
    .contact{
      padding: 10px 30px;
    }
    form{
      display: flex;
      flex-direction: column !important;
      width: 100% !important;
      padding: 25px !important;
    }
    form .name{
      flex-direction: column;
      gap: 25px;
    }
    form .name>input{
      border: 1px solid var(--main-color);
      padding: 15px;
      border-radius: 5px;
      background-color: var(--second-bg-color);
      width: 100%;
      color: var(--text-color);
}
}


@media (max-width: 570px){
  .navbar{
    top: 100%;
    left: -180%;
    width: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .home{
    height: 65vh;
  }
  .home-content h1{
      font-size: 28px;
  }
  .socials{
    margin-top: 50px;
  }
  .skills{
    padding: 10px 5px;
  }
  
}

@media (max-width: 400px) {
  .home{
    height: 110vh;
  }
  .about{
    padding: 10px;
  }
  footer{
    text-align: center;
  }
}

::-webkit-scrollbar{
  width: 10px;
}

::-webkit-scrollbar-track{
  background-color: var(--second-bg-color);
}

::-webkit-scrollbar-thumb{
  background-color: var(--main-color);
  height: 50px;
  border-radius: 50px;
}