* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
  line-height: 1.6rem;
  word-spacing: 0.2rem;
  letter-spacing: 1px;
}
/* ------------------Preloader------------------------- */
.loaderholder {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-color: #162447;
  z-index: 10;
  opacity: 1;
  transition: opacity 1s;
}
.loader {
  position: absolute;
  top: calc(50% - 32px);
  left: calc(50% - 32px);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  perspective: 800px;
}

.inner {
  position: absolute;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.inner.one {
  left: 0%;
  top: 0%;
  animation: rotate-one 1s linear infinite;
  border-bottom: 3px solid #efeffa;
}

.inner.two {
  right: 0%;
  top: 0%;
  animation: rotate-two 1s linear infinite;
  border-right: 3px solid #efeffa;
}

.inner.three {
  right: 0%;
  bottom: 0%;
  animation: rotate-three 1s linear infinite;
  border-top: 3px solid #efeffa;
}

@keyframes rotate-one {
  0% {
    transform: rotateX(35deg) rotateY(-45deg) rotateZ(0deg);
  }
  100% {
    transform: rotateX(35deg) rotateY(-45deg) rotateZ(360deg);
  }
}

@keyframes rotate-two {
  0% {
    transform: rotateX(50deg) rotateY(10deg) rotateZ(0deg);
  }
  100% {
    transform: rotateX(50deg) rotateY(10deg) rotateZ(360deg);
  }
}

@keyframes rotate-three {
  0% {
    transform: rotateX(35deg) rotateY(55deg) rotateZ(0deg);
  }
  100% {
    transform: rotateX(35deg) rotateY(55deg) rotateZ(360deg);
  }
}
/*------------------ Navbar--------------------------- */

body {
  background-color: #162447;
  color: #fff;
}

.grey {
  color: rgb(209, 209, 209);
}
.blue {
  color: rgb(196, 196, 245);
}
.block {
  position: relative;
  width: 100%;
  height: 100%;
}

.scroll-stop {
  height: 100%;
  overflow: hidden;
}

.overlay {
  position: absolute;
  height: 0;
  width: 0;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.afterOverlay {
  width: 100%;
  height: 100%;
}

ul {
  list-style: none;
}

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

.navbar {
  position: fixed;
  z-index: 2;
  left: 0;
  top: 0;
  right: 0;
  opacity: 1;
  transition: top 0.5s, opacity 0.5s;
  background-color: #162447;
  box-shadow: 1px 1px 10px #03051e;
}

.container {
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  padding: 1rem;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.right ul {
  display: flex;
  align-items: center;
}

.right ul li {
  padding: 0.2rem 0.5rem;
  margin: 0 0.5rem;
}

.sidenav {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0px;
  height: 100%;
  overflow-x: hidden;
  background-color: #03051e;
  padding-top: 70px;
  transition: width 0.2s;
}

.sidenav ul {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sidenav ul li {
  padding: 2rem;
}

.left {
  position: relative;
}
.checkbox {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  cursor: pointer;
  opacity: 0;
}

.hamburger {
  position: relative;
  z-index: 1;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.child {
  position: relative;
  width: 100%;
  height: 2px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
}
.child::before,
.child::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: -10px;
  width: 100%;
  height: 2px;
  background: inherit;
}
.child::after {
  top: 10px;
}

.checkbox:checked + .hamburger > .child {
  transform: rotate(135deg);
}

.checkbox:checked + .hamburger > .child::before,
.checkbox:checked + .hamburger > .child::after {
  top: 0;
  transform: rotate(90deg);
}
.checkbox:checked + .hamburger > .child {
  transform: rotate(225deg);
}

/*------------------------- Header -------------------*/

.header {
  display: flex;
  height: 85vh;
  flex-direction: column;
  justify-content: center;
}

.button {
  display: inline-block;
  padding: 1rem 1.5rem;
  position: relative;
  background-color: transparent;
  border: 2px solid white;
  border-radius: 0.5rem;
  width: fit-content;
  transition: border 0.2s;
}

.button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #03051e;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s;
}

.button:hover::before {
  transform: scaleX(1);
}

.button:hover {
  border: 2px solid teal;
  color: rgb(20, 231, 231);
}

.resume {
  padding: 0.4rem 1.5rem;
}

/* ---------------------Aside------------------------------ */
aside {
  position: fixed;
  bottom: 0;
  right: 0.5rem;
}

aside a i {
  color: rgb(204, 199, 199);
  transition: all 0.3s;
}

aside a i:hover,
.links a :hover,
.last :hover {
  transform: scale(1.3);
  color: #03051e;
}

aside li {
  margin: 0.5rem;
  padding: 0.5rem;
}
.v-holder {
  display: flex;
  justify-content: center;
  margin-bottom: 0;
  padding: 0;
  margin: 0;
}
.v-holder .line {
  height: 7rem;
  width: 1px;
  background-color: white;
  margin-top: -0.5rem;
}
/* --------------------About-------------------------- */

.heading {
  display: flex;
}
.h-holder {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 0.5rem;
}
.h-holder .line {
  width: 20rem;
  height: 2px;
  background-color: white;
}
.gallery {
  justify-self: center;
  position: relative;
  width: 20rem;
  padding: 1rem;
  display: flex;
  align-self: start;
  justify-content: start;
}
.imgoverlay {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.4);
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  transition: background-color 0.3s;
}

.imgoverlay:hover {
  background-color: rgba(0, 0, 0, 0.2);
}
.gallery img {
  width: 100%;
  height: 100%;
}
.skills {
  display: flex;
  justify-content: space-between;
}
.skills ul:last-child {
  margin-left: 0.8rem;
}
.grid-2-about {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 2rem;
}

/* --------------------Work-------------------------- */
.btn {
  display: block;
  padding: 0.3rem 0.8rem;
}
.grid-2-work {
  display: grid;
  grid-template-columns: 1fr 2fr;
  grid-gap: 1rem;
  margin-bottom: 7rem;
}

.project-img img {
  width: 97%;
  height: 350px;
  border: 1px solid white;
}

.project-img img:hover {
  box-shadow: 1px 1px 10px rgb(138, 136, 136);
}
.project-data ul li {
  margin-bottom: 0.1rem;
}

.links {
  display: flex;
  justify-content: start;
  align-items: center;
}
.links a {
  margin-right: 3rem;
  color: rgb(194, 190, 190);
}
.links a i,
.last i {
  transition: transform 0.2s, color 0.2s;
}

/*------------------------------Footer--------------------- */
.footer {
  display: flex;
  flex-direction: column;
  height: 88vh;
  align-items: center;
  justify-content: space-between;
}

.copyright ul {
  display: flex;
  justify-content: space-between;
}
/* Achivements */
.box {
  display: flex;
}
.alt {
  width: 1rem;
  display: flex;
  align-items: flex-start;
}
@media (max-width: 850px) {
  .project-img img {
    height: 300px;
  }
  aside {
    display: none;
  }

  .button {
    padding: 0.5rem 0.7rem;
  }
}
@media (min-width: 850px) {
  .social-icons {
    display: none;
  }
}

@media (max-width: 768px) {
  .project-img img {
    height: 100%;
  }
  .grid-2-about {
    grid-template-columns: 1fr;
    grid-gap: 1rem;
  }
  .grid-2-work {
    margin-bottom: 2rem;
    grid-template-columns: 1fr;
  }
  .right ul {
    display: none;
  }
  .gallery {
    width: 15rem;
  }
  .h-holder .line {
    width: 15rem;
  }
  .project-img {
    margin-bottom: 5rem;
  }
}

@media (min-width: 768px) {
  .checkbox,
  .hamburger {
    display: none;
  }
}

@media (max-width: 450px) {
  .h-holder .line {
    width: 7rem;
  }
  .copyright {
    padding: 1rem;
  }
}
