@import url('https://fonts.googleapis.com/css2?family=Allura&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fira+Code&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bangers&display=swap');


/* //@ Global */
html,
body {
  padding: 0;
  margin: 0;
  font-family: 'Fira Code', monospace;
  background-color: #151616;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

a {
  color: inherit;
  text-decoration: none;
}

* {
  box-sizing: border-box;
}

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

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

/* Handle */
::-webkit-scrollbar-thumb {
  background: rgb(165, 165, 165);
  border-radius: 9999999px;
}
/* //@Navbar */
.navbar {
  background-color: #1e2222;
  box-shadow: 3px 3px 3px #111;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px;
  position: sticky;
  top: 0px;
  z-index:10;
  height: 80px;
}

.title {
  text-decoration: none;
  padding: 0px 20px;
}


.titleText{
  font-family: 'Allura', cursive;
  font-size: 3rem;
  background: linear-gradient(to right, #845ec2,
      #d65db1,
      #ff6f91,
      #ff9671,
      #ffc75f,
      #f9f871);

  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 400%;
  animation: bg-animate 10s infinite alternate;
  cursor: pointer;
}

@keyframes bg-animate {
  0% {
    background-position: left;
  }

  100% {
    background-position: right;
  }
}

.resume {
  letter-spacing: 0.5px;
  background: linear-gradient(to left, rgb(134, 69, 62), rgb(36, 55, 90));
  width: 100px;
  padding: 5px 10px;
  color: rgb(190, 190, 190);
  text-decoration: none;
  border-radius: 999999999px;
  font-family: 'Bangers', cursive;
  font-size: 16px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 3px 3px 3px rgb(19, 18, 18);
}

.resume img{
  width: 20px;
}

.resume:hover {
  background: linear-gradient(to left, rgb(155, 81, 72), rgb(41, 61, 99));
}

.resume:active{
  box-shadow: none;
}

.burger {
  width: 30px;
  height: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  cursor: pointer;
}


.line {
  width: 20px;
  height: 2px;
  background-color: whitesmoke;
  margin: auto;
}

.navlinks{
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex: 1;
}

.navlink{
  color: rgb(200, 200, 200);
  font-family: "Fira Code";
}

.navlink:hover{
  color: #fff;
}



/* //@Home */
.home {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 120px 10px;
  height: calc(100vh - 80px);
}

.image {
  flex: 2;
}

.image img {
  display: block;
  width: 80%;
  margin: auto;
}
.homeTextContainer{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.homeText {
  font-family: 'Allura', cursive;
  flex: 1;
  height: 100%;
  text-align: center;
  color: whitesmoke;
  font-size: clamp(40px, 6vw + 2rem, 100px);
  font-weight: 500;
  display: flex;
  justify-content: center;
  align-items: center;
}

.actionbtn{
  background: linear-gradient(to left, rgb(134, 69, 62), rgb(36, 55, 90));
  padding: 10px 20px ;
  color: rgb(216, 216, 216);
  text-decoration: none;
  border-radius: 999999999px;
  font-family: "Fira Code";
  font-size: 16px;
  box-shadow: 3px 3px 3px rgb(19, 18, 18);
  display: flex;
  justify-content: center;
  align-items: center;
}

.actionbtn:hover {
  background: linear-gradient(to left, rgb(155, 81, 72), rgb(41, 61, 99));
}

.actionbtn:active {
  box-shadow: none;
}

.actionbtnimg{
  width: 20px;
}

.actionbtntext{
   margin-left: 10px;
   color: black;
  font-family: 'Bangers', cursive;
  letter-spacing: 0.5px;
}



/* //@ About component */
.aboutTitle {
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  padding: 10px 10px 5px;
  margin: 10px 0px 20px;
  color: whitesmoke;
  font-family: "Fira Code";
}

.aboutDescription {
  width: 80%;
  margin: auto;
  padding: 20px;
  border: 5px solid #1e2222;
  box-shadow: 3px 2px 2px #111;
  font-size: 16px;
  font-family: "Fira Code";
  border-radius: 5px;
}

.aboutDescription p {
  text-indent: 20px;
  padding: 20px;
  color: rgb(187, 183, 183);
  font-family: "Fira Code";
}


/* //@ Skills */
.skillTitle {
  font-size: 32px;
  margin: 0px 0px 20px;
  text-align: center;
  padding: 25px 25px 10px;
  font-weight: bold;
  color: whitesmoke;
  font-family: "Fira Code";
}

.skillsContainer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  width: 80%;
  margin: 0px auto 10px;
  gap: 20px;
}

.skillImage {
  width: 70px;
  height: auto;
  display: block;
  margin: auto;
}

.skillName {
  font-size: 18px;
  text-align: center;
  font-family: "Fira Code";
  color: whitesmoke;
}

.skill {
  box-shadow: 3px 3px 3px #111;
  padding: 20px;
  border-radius: 5px;
  border: 5px solid #1e2222;
}

/* //@ Projects */
.projectsTitle {
  font-size: 32px;
  margin: 0px 0px 20px;
  padding: 25px 25px 10px;
  text-align: center;
  font-weight: bold;
  color: whitesmoke;
  font-family: "Fira Code";
}

.projectsContainer {
  width: 80%;
  margin: auto;
  display: grid;
  grid-template-columns:repeat(auto-fit,minmax(400px,1fr));
  gap: 15px;
}

.projectName {
  font-size: 30px;
  padding: 5px;
  margin: 10px;
  text-align: center;
  font-family: "Fira Code";
  color: #88a5ee;
  font-weight: bold;
}

.project {
  border: 5px solid #1e2222;
  box-shadow: 3px 3px 3px #111;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}


.projectImage{
  object-fit: cover;
  width: 100%;
}


.projectInfo{
  padding: 10px;
}

.projectLinks {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.projectLink{
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  width: 100px;
  font-family: "Fira Code";
  font-size: 14px;
  padding: 4px 10px;
  color: rgb(182, 182, 182);
  box-shadow: 3px 3px 3px rgb(19, 18, 18);

  border: 2px solid #1e2222;
  margin: 5px;
  border-radius: 99999999px;
}

.projectLinks img {
  width: 25px;
  height: 25px;
}

.techUsed {
  font-family: "Fira Code";
  font-weight: bold;
  text-align: center;
  color: #88a5ee;
  margin: 10px 0px;
  font-size: 20px;
}

.techs {
  border-radius: 5px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.tech {
  font-family: "Fira Code";
  font-size: 14px;
  padding: 4px 10px;
  color: rgb(182, 182, 182);
  box-shadow: 3px 3px 3px rgb(19, 18, 18);
  border: 2px solid #1e2222;
  margin: 5px;
  border-radius: 99999999px;
}

.extraprojectinfo{
  margin-top: 20px;
}

.extraprojectinfotitle{
  text-align: center;
  color: #88a5ee;
  font-size: 20px;
  font-weight: bold;
}

.orderedlist li{
  color: rgb(173, 173, 173);
}

/* //@ Contact Form */
.formContainer{
  position: relative;
  overflow: hidden;
  box-shadow: 3px 3px 4px #222;
}

.formTitle {
  font-size: 32px;
  text-align: center;
  padding: 25px 25px 10px;
  font-weight: bold;
  margin: 0px 0px 20px;
  color: whitesmoke;
  font-family: "Fira Code";
}

.form {
  width: 80%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  margin: auto;
  height: 450px;
  background-color: #222;
  padding: 20px;
  border-radius: 10px;
}

.name,
.email {
  outline: none;
  border: none;
  padding: 10px;
  border-radius: 5px;
  font-family: 'Fira Code', monospace;
  background-color: #111;
  color: whitesmoke;
}

.subject,
.message {
  outline: none;
  background-color: #111;
  border: none;
  padding: 10px;
  border-radius: 5px;
  font-family: 'Fira Code', monospace;
  resize: none;
  color: whitesmoke;
}

.formsubmit {
  /* width: 100px; */
  height: 40px;
  outline: none;
  border: none;
  padding: 8px 10px;
  background: linear-gradient(to left, rgb(134, 69, 62), rgb(36, 55, 90));
  box-shadow: 3px 3px 4px #222;
  border-radius: 50px;
  color: white;
  font-family: 'Fira Code', monospace;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.formsubmit:active {
  box-shadow: none;
}

.formsubmit:hover {
  background: linear-gradient(to left, rgb(185, 97, 87), rgb(53, 81, 133));
}

.mediaLinks {
  width: 85%;
  margin: auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 20px;
}

.mediaLinks img {
  width: 30px;
}

.spinner {
  width: 25px;
}



.success,.error{
  background-color: #111;
  color: rgb(196, 196, 196);
  font-family: "Fira Code";
  padding: 10px;
  border-radius: 5px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: absolute;
  bottom: 10px;
  right: 10px;
  text-align: center;
  box-shadow: 3px 3px 5px #222;
  transform: translateX(200%);
  transition: transform 500ms ease-in-out;
}

.success{
  border: 2px solid rgb(35, 114, 88);
}

.error{
  border: 2px solid rgb(128, 47, 36);
}

.success img,.error img{
  width: 30px;
}

.msg{
  margin-left: 10px;
}

.displaymsg{
  transform: translateX(0%);
}

.loader {
  border: 2px solid #f3f3f3;
  border-top: 2px solid #3498db;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 2s linear infinite;
  display: none;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}


/* //@ Media Query */
@media screen and (min-width:900px) {
  .burger {
    display: none;
  }
}



@media screen and (max-width : 900px) {
  .navlinks {
    display: none;
    position: absolute;
    flex-direction: column;
    top: 80px;
    right: 10%;
    background-color: #111;
    padding: 10px 30px;
    height: 250px;
    border-radius: 0px 0px 5px 5px;
    border: 5px solid #222;
  }

  .showNav {
    display: flex;
  }
}


@media screen and (max-width:500px) {
  .aboutDescription {
    width: 95%;
  }

  .form {
    width: 95%;
  }

  .projectsContainer {
    width: 95%;
    display: block;
  }
  
  .project{
    margin: 15px auto;
  }
}