@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
/* common tags */
html {
  font-size: 62.5%;
  cursor: default;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  padding: 0;
  font-family: 'Rubik', sans-serif;
}
/* end of common tags */

/* section-1 */
.section-1 {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
}
.background {
  width: 100%;
  height: 100%;
  overflow: hidden;
  margin-bottom: 0;
  background-image: radial-gradient(
    circle,
    hsl(141, 100%, 45%) 50%,
    hsl(140, 100%, 50%) 50%
  );
}
.overlay {
  width: 100%;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.3);
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  overflow: hidden;
  margin-bottom: 0;
}
.title {
  font-size: 5rem;
  word-spacing: 1rem;
  letter-spacing: 0.4rem;
  font-style: italic;
  font-weight: 800;
  padding: 0 2rem;
  transform-origin: top;
  color: black;
}
.overlay > img {
  border-radius: 50%;
  width: 23rem;
  background-color: white;
  border: 5px solid black;
}
.name {
  color: black;
  font-size: 2rem;
  padding: 0.5rem 2rem;
  transform-origin: top;
}
.overlay > a > button {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.1rem;
  padding: 0.5rem 1.2rem;
  border: 3px black solid;
  border-radius: 5px;
  cursor: pointer;
  background-color: transparent;
  transition: all 0.2s linear;
}
.overlay > a > button:hover {
  color: white;
  background-color: black;
}
/* end of section-1 */

/* navbar */
.navbar {
  width: 100%;
  height: 5vh;
  background-color: hsl(140, 100%, 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  margin-top: 0;
  z-index: 1000;
}
.fixed {
  top: 0;
  position: fixed;
}
.nav-links {
  outline: none;
  text-decoration: none;
  color: black;
  padding: 0.2rem 1rem;
  font-weight: 400;
  font-size: 1.6rem;
  cursor: pointer;
  transition: all 0.2s linear;
}
.nav-links:hover {
  color: hsl(141, 100%, 45%);
  border-bottom: 3px solid hsl(141, 100%, 45%);
}
.underline {
  color: hsl(141, 100%, 45%);
  border-bottom: 3px solid hsl(141, 100%, 45%);
}
/* end of navbar */

/* section-2 */
.section-2 {
  width: 100%;
  height: 100%;
  padding: 5rem 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10rem;
}
.heading {
  font-size: 5rem;
  text-shadow: 0.2rem 0.2rem 0.3rem rgba(0, 0, 0, 0.5);
  padding: 1rem 1rem;
  box-sizing: border-box;
  border-bottom: 4px solid black;
}
.known {
  width: 45%;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.html,
.java,
.sass,
.css,
.node,
.c,
.oop,
.os,
.dsa {
  width: 100%;
  height: 5.5vh;
  background-color: hsl(140, 100%, 90%);
  border-radius: 5px;
  position: relative;
}
.over {
  font-size: 1.5rem;
  width: 20%;
  height: 5.5vh;
  background-color: hsl(140, 100%, 50%);
  color: black;
  border-radius: 5px 0 0 5px;
  position: absolute;
  top: 0;
  left: 0;
  padding: 10px 0 0 10px;
  box-sizing: border-box;
  z-index: 100;
  word-spacing: 1.2rem;
  overflow: visible;
  transition: all 0.8s linear;
}
.htmlper {
  width: 94%;
}
.cssper {
  width: 95%;
}
.jsper {
  width: 90%;
}
.sassper {
  width: 90%;
}
.nodeper {
  width: 90%;
}
.cper {
  width: 97%;
}
.oopper {
  width: 92%;
}
.osper {
  width: 98%;
}
.dsaper {
  width: 80%;
}
.ability {
  width: 80%;
  height: 35vh;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.min-box {
  width: 18rem;
  height: 15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}
.ability > div:nth-child(2),
.ability > div:nth-child(3) {
  align-self: flex-end;
}
.icon {
  font-size: 8rem;
  color: gray;
  align-self: center;
  text-shadow: 0.3rem 0.3rem 0.4rem rgba(0, 0, 0, 0.5);
}
.abi-tag {
  font-size: 1.5rem;
  font-weight: 500;
  background-color: gray;
  text-align: center;
  color: white;
  padding: 2px;
  transform: skew(-10deg);
  box-shadow: 0.4rem 0.4rem 0.5rem rgba(0, 0, 0, 0.5);
}
/* end of section-2 */

/* section-3 */
.section-3 {
  background-color: hsl(141, 100%, 45%);
}
.project-div {
  width: 80%;
  height: 100%;
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
}
.project {
  width: 35rem;
  height: 20rem;
  border-radius: 0.5rem;
  box-shadow: 0.4rem 0.4rem 0.5rem rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  transition: all 0.6s linear;
}
.project-img {
  width: 100%;
  height: 100%;
  border-radius: 0.5rem;
}
.hover-project {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(38, 38, 38, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s linear;
}
.project-name {
  font-size: 2rem;
  font-weight: bold;
  word-spacing: 0.3rem;
  letter-spacing: 0.1rem;
  text-align: center;
  margin-bottom: 0;
  color: white;
}
.project-tools {
  margin-top: 5px;
  font-size: 1.5rem;
  color: white;
  text-align: center;
}
.project-link {
  text-decoration: none;
  color: black;
  font-size: 1.3rem;
  background-color: white;
  word-spacing: 1.4px;
  letter-spacing: 1px;
  padding: 5px 10px;
  /* border: 3px solid b; */
  transform: translateY(8rem);
  transition: all 0.2s linear 0.3s;
}
.hover-project > div {
  transform: translateY(-11rem);
  transition: all 0.2s linear 0.3s;
}
.project:hover .hover-project {
  opacity: 1;
}
.project:hover .hover-project > div {
  transform: translateY(0);
}
.project:hover .project-link {
  transform: translateY(0);
}
/* end of section-3 */

/* section-4 */
.section-4 {
  background-color: white;
}
.contact-heading {
  color: black;
  border-bottom: 4px solid black;
}
.contact-box {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  width: 50%;
  height: 45vh;
  display: flex;
  flex-direction: column;
}
.website {
  width: 90%;
  height: 6vh;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: hsl(141, 100%, 45%);
  padding: 0 1rem;
  box-sizing: border-box;
}
.website > p {
  font-size: 1.5rem;
}
.website > a {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.1rem;
  padding: 0.5rem 1.2rem;
  border: 3px black solid;
  border-radius: 5px;
  cursor: pointer;
  background-color: transparent;
  transition: all 0.2s linear;
  text-decoration: none;
  color: black;
}
.website > a:hover {
  color: white;
  background-color: black;
}
/* end of section-4 */

/* footer  */
.footer {
  width: 100%;
  height: 40vh;
  background-color: hsl(140, 100%, 50%);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.social-icon {
  width: 100%;
  height: 15vh;
  text-align: center;
}
.icons {
  font-size: 6em;
  color: white;
  padding: 5px;
  background-color: hsl(141, 100%, 45%);
  border-radius: 5px;
  margin: 0 50px;
  transition: all 0.3s linear;
}
.icons:hover {
  background-color: black;
}
.copy {
  color: black;
  text-align: center;
  font-size: 1.6rem;
}
/* end of footer  */

/* media query  */
@media screen and (max-width: 900px) {
  html {
    font-size: 50%;
  }
  .ability {
    height: 100%;
    align-items: center;
  }
  .ability > div:nth-child(2),
  .ability > div:nth-child(3) {
    align-self: inherit;
  }
}
@media screen and (max-width: 450px) {
  html {
    font-size: 35%;
  }
  .overlay {
    gap: 4rem;
  }
  .known {
    width: 85%;
  }
  .project {
    width: 100%;
    height: 40rem;
  }
  .project-link {
    transform: translateY(20rem);
  }
  .hover-project > div {
    transform: translateY(-23rem);
  }
  .contact-box {
    width: 95%;
  }
}
/* end of media query  */
