:root {
  --primary-color: #5aec73;
  --dark: #1b1b22;
  --dark-2: #08080c;
  --dark-light: #32323b;
  --dark-light-2: #41414c;
  --white: #fdfdfd;
  --white-light: #c9c9c9;
  --white-glass: #c9c9c921;
  --dark-light-glass: #32323b46;
}
* :not(path) {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  transition: all 0.3s ease;
}
::before,
::after {
  box-sizing: border-box;
}
body {
  font-size: 20px;
  line-height: 1.5;
  color: var(--white-light);
  background-color: var(--dark-2);
  overflow-x: hidden;
  font-family: "Source Code Pro", monospace;
  font-weight: 300;
  height: 100%;
  width: 100%;
}
.bt {
  border-radius: 5px;
  font-size: 16px;
  padding: 10px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  text-decoration: none;
  color: var(--white);
}
.util-button {
  position: relative;
  background-color: var(--primary-color);
  padding: 9px 25px;
  margin: 2% auto;
  font-size: 16px;
  color: var(--white);
  text-transform: capitalize;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  border: none;
  /* border-radius: 25px; */
}
.util-button::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  border: 1px solid var(--white);
  /* border-radius: 25px; */
  transform: translate(4px, 4px);
  transition: transform 0.3s ease;
  pointer-events: none;
}
.light-glass::before {
  content: "";
  position: absolute;
  width: 100%;
  border-radius: 5px;
  top: 0;
  height: 0;
  backdrop-filter: blur(2px);
  background-color: var(--dark-light-glass);
  height: 100%;
  z-index: -1;
}
.util-button:hover::before {
  transform: translate(0, 0);
}
input:-webkit-autofill {
  transition: background-color 5000s ease-in-out 0s;
}
*:-webkit-autofill,
*:-webkit-autofill:hover,
*:-webkit-autofill:focus,
*:-webkit-autofill:active {
  /* use animation hack, if you have hard styled input */
  transition: all 5000s ease-in-out 0s;
  transition-property: background-color, color;
  /* if input has one color, and didn't have bg-image use shadow */
  -webkit-box-shadow: 0 0 0px 1000px rgb(20, 20, 25) inset;
  /* text color */
  -webkit-text-fill-color: #fff;
  /* font weigth */
  font-weight: 300 !important;
}
.container {
  width: 100%;
  max-width: 1100px;
  margin: 15vh auto;
}
section {
  display: none;
}
.active-section {
  display: flex;
}
/*--------------------overlay effect--------------------*/
.overlaying-effect {
  position: fixed;
  top: 12vh;
  width: 100%;
  display: none;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.overlaying-item {
  width: 0;
  height: 13vh;
  background-color: var(--dark-light);
}
.overlaying-effect :nth-child(odd) {
  align-self: flex-end;
}
.overlaying-effect :nth-child(even) {
  align-self: flex-start;
}
.overlay-active:nth-child(1) {
  animation: show-overlay 0.5s ease;
}
.overlay-active:nth-child(2) {
  animation: show-overlay 0.7s ease;
}
.overlay-active:nth-child(3) {
  animation: show-overlay 0.8s ease;
}
.overlay-active:nth-child(4) {
  animation: show-overlay 0.9s ease;
}
.overlay-active:nth-child(5) {
  animation: show-overlay 1s ease;
}
.overlay-active:nth-child(6) {
  animation: show-overlay 1.1s ease;
}
.overlay-active:nth-child(7) {
  animation: show-overlay 1.2s ease;
}
@keyframes show-overlay {
  0% {
    width: 0%;
  }
  50% {
    width: 100%;
  }
  100% {
    width: 0%;
    display: none;
  }
}
/*--------------------PAGE LOADER--------------------*/
#page-loader {
  z-index: 2;
  position: fixed;
  font-size: 24px;
  height: 100vh;
  width: 100vw;
  top: 0;
  background-color: var(--dark-light);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 1.7s ease 0.4s;
}
.page-loader-content {
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.4s ease;
}
.slide-out .page-loader-content {
  opacity: 0;
}
#page-loader .circle {
  margin: 5px;
  width: 30px;
  height: 30px;
  background-color: var(--dark-light);
  border-radius: 50%;
  border: 5px solid var(--white);
  border-top-color: var(--primary-color);
  display: inline-block;
  animation: rotateloader 1s ease infinite;
}
@keyframes rotateloader {
  from {
    transform: rotate(0turn);
  }
  to {
    transform: rotate(1turn);
  }
}
.slide-out {
  transform: translateX(180%);
}
/*--------------------background animation--------------------*/
.bg-animation {
  position: fixed;
  display: grid;
  grid-template-columns: repeat(12, 115px);
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  align-content: space-evenly;

  z-index: -1;
}
.bg-animation i {
  height: 4px;
  width: 4px;
  background-color: var(--dark-light);
  display: block;
  border-radius: 50%;
}
.bg-animation i[data-i="1"] {
  animation: slide 8s linear infinite;
}
.bg-animation i[data-i="2"] {
  animation: slide-reverse 7s linear infinite;
}
@keyframes slide-reverse {
  0% {
    transform: translate(0);
  }
  100% {
    transform: translate(-114px, 0);
  }
}
@keyframes slide {
  0% {
    transform: translate(0);
  }
  100% {
    transform: translate(114px, 0);
  }
}

/*--------------------header--------------------*/
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 2;
}
.header {
  transition: all 0.2s ease 0.3s;
  display: grid;
  grid-template-columns: auto 60px;
  margin-left: 5%;
  width: 90%;
  align-items: center;
  border-radius: 0px 0px 100px 100px;
}
.glass {
  background-color: var(--white-glass);
  backdrop-filter: blur(2px);
}
.header::before {
  content: "";
  z-index: -1;
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 0px 0px 100px 100px;
  background-color: transparent;
  transition: all 0.3s ease;
}
.glass::before {
  animation: border-light 0.7s ease 0.1s;
}
@keyframes border-light {
  0% {
    border: 1px solid transparent;
  }
  50% {
    border: 1px solid var(--white);
  }
  100% {
    border: 1px solid transparent;
  }
}
.links {
  display: flex;
  visibility: hidden;
  justify-content: center;
  align-items: center;
}
.links .bt {
  border: 1px solid transparent;
}
.links .bt:hover {
  border: 1px solid var(--primary-color);
}
.links .bt:focus {
  border: 1px solid var(--primary-color);
}
.show-header {
  visibility: visible;
}
.active-link-item {
  font-weight: bold;
  color: var(--primary-color);
}
/*--------------------HAMBURGER--------------------*/
.burger :is(.top, .bot, .mid) {
  height: 5px;
  fill: var(--white);
  transition: all 0.3s ease;
  transform-origin: center;
  /* transition: border-left 0.3s ease; */
}
.burger:hover :is(.top, .bot) {
  width: 100px;
  x: 0px;
}
.active-burger {
  animation: leftborderlight 0.3s ease;
  border-left: 1px solid var(--white-glass);
}
@keyframes leftborderlight {
  0% {
    border-left: 1px solid transparent;
  }
  50% {
    border-left: 1px solid var(--white);
  }
  100% {
    border-left: 1px solid var(--dark-light);
  }
}
.active-burger .mid {
  width: 0px;
}
.active-burger :is(.top, .bot) {
  width: 100px;
  x: 0px;
  y: 50px;
}

.active-burger:hover .top {
  transform: rotate(-45deg);
}
.active-burger:hover .bot {
  transform: rotate(45deg);
}

/*--------------------about page--------------------*/
section.active-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.content {
  display: flex;
  justify-content: center;
  align-items: center;
}

#blob2 {
  visibility: hidden;
}
#blob1 {
  fill: var(--primary-color);
}
.active-section h1 {
  margin: 2vh 13vw;
}
.active-section p {
  text-align: center;
  margin: auto 10% auto 15%;
  font-size: 18px;
  margin-block-start: 1em;
  margin-block-end: 1em;
  color: var(--white-light);
}
.active-section :is(h1, p, h2, h3) :is(span, a) {
  color: var(--primary-color);
  /* text-transform: capitalize; */
  font-weight: 600;
  position: relative;
  text-decoration: none;
}
.active-section p a::before {
  content: "";
  position: absolute;
  display: inline-block;
  left: 0;
  bottom: 0;
  height: 1%;
  width: 0%;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}
.active-section p a:hover:before {
  width: 100%;
}
.skills {
  margin: 10px auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.skills .skill-item {
  cursor: default;
  background-color: var(--dark-light);
  margin: 4px 2px 0;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 16px;
  text-transform: uppercase;
}

/*--------------------PORTFOLIO SECTION--------------------*/

.portfolio-section {
  margin: 1% 5%;
}
.work-container {
  position: relative;
  min-height: 80vh;
  width: 100%;
  /* border-radius: 25px; */
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: flex-start;
}
.work-container::before {
  animation: filldown 1s ease 0.2s forwards;
}
@keyframes filldown {
  0% {
    height: 1.5%;
    width: 0%;
  }
  40% {
    width: 100%;
    height: 1.5%;
  }
  100% {
    height: 100%;
  }
}
.work-item {
  /* font-size: 20px; */
  margin: 30px;
  color: var(--white);
  cursor: default;
  transform: scale(0);
  animation: scale-out 0.3s ease 1s forwards;
}
/* .work-container :nth-child(1) {
  animation: scale-out 0.3s ease 1s forwards;
}
.work-container :nth-child(2) {
  animation: scale-out 0.3s ease 1.2s forwards;
} */
@keyframes scale-out {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}
.work-item h3 {
  margin: 5px;
  text-align: center;
}
.work-thumbnail {
  position: relative;
  height: 140px;
  width: 300px;
  cursor: pointer;
}
.work-thumbnail::before,
.work-thumbnail::after {
  content: "";
  position: absolute;
  height: 4%;
  width: 0;
  opacity: 0.3;
  transition: width 0.3s ease;
  background-color: var(--white-light);
}
.work-thumbnail::before {
  left: 0;
  top: -4%;
}
.work-thumbnail::after {
  right: 0;
  bottom: 0;
}
.work-container img {
  object-fit: contain;
  width: 100%;
  height: 100%;
}
.work-thumbnail :is(.website-button, .repo-button) {
  position: absolute;
  top: 30%;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.work-thumbnail .website-button {
  transform: translateX(-80%);
  left: 5%;
}
.work-thumbnail .repo-button {
  transform: translateX(80%);
  right: 5%;
}

.work-thumbnail:hover:before,
.work-thumbnail:hover:after {
  width: 100%;
}
.work-thumbnail:hover :is(.website-button, .repo-button) {
  transform: translateX(0);
  visibility: visible;
  opacity: 1;
}

/*--------------------CONTACT SECTION--------------------*/
.form-container {
  position: relative;
  display: grid;
  width: 50vw;
}
.form-container input,
textarea {
  margin: auto 2rem;
}
.form-container input:first-child {
  margin-top: 2rem;
}
.form-container button:last-child {
  margin-bottom: 2rem;
}
input[type="text"],
input[type="email"],
textarea {
  font-size: medium;
  color: var(--white);
  border-bottom: 1px solid var(--white-light);
  background-color: transparent;
  padding: 1rem;
  width: 80%;
  resize: none;
}
input[type="text"]:focus,
input[type="email"]:focus {
  border-bottom: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 1.3rem 1rem;
}
textarea:focus {
  border-bottom: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 3rem 1rem;
}
.social-links {
  position: relative;
  margin-bottom: 1rem;
}
.social-links a {
  text-decoration: none;
  height: 45px;
  width: 45px;
  border: 1px solid var(--white);
  font-size: 28px;
  align-items: center;
  justify-content: center;
  color: var(--white);
  border-radius: 50%;
  display: inline-flex;
  transition: all 0.3s ease;
  margin: 1rem 1rem;
  transition: all 0s ease;
}
.social-links a:hover {
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}
/*--------------------CUSTOM SCROLLBAR--------------------*/
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background-color: var(--primary-color);
}
::-webkit-slider-thumb {
  color: var(--dark);
}

@media only screen and (max-width: 700px) {
  .form-container {
    width: 80vw;
  }
  .bt {
    font-size: 14px;
  }
}
