body {
  font-family: "Inter", sans-serif;
  color: #cdd6f4;
  background-color: #11111b;
  margin: 0;
  padding: 0;
  /* overflow: hidden; */
}

#home {
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

h1 {
  text-align: center;
  font-size: 5rem;
  font-weight: bold;
}

.developer {
  color: #89b4fa;
  background-color: rgba(137, 180, 250, 0.1);
  padding-right: 1rem;
  padding-left: 1rem;
  padding-bottom: 0.75rem;
  border-radius: 1rem;
}

.typewriter {
  overflow: hidden;
  white-space: nowrap;
  letter-spacing: 0.05em;
  animation: typing 7s steps(100, end);
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

.wave-animation {
  font-size: 4.5rem;
  font-family: Noto Color Emoji, sans-serif;
  animation-name: wave-animation;
  animation-duration: 2.5s;
  animation-iteration-count: infinite;
  transform-origin: 70% 70%;
  display: inline-block;
}

@keyframes wave-animation {
  0% {
    transform: rotate(0deg);
  }
  10% {
    transform: rotate(14deg);
  }
  20% {
    transform: rotate(-8deg);
  }
  30% {
    transform: rotate(14deg);
  }
  40% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(10deg);
  }
  60% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

.social-btn-layout {
  display: flex;
  flex-direction: row;
  column-gap: 35px;
}

.social-btn {
  color: #a6adc8;
  background-color: #181825;
  font-size: 1rem;
  padding: 0.7em 1.5em;
  position: relative;
  display: flex;
  flex-direction: row;
  text-align: center;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-family: inherit;
  font-weight: bold;
  border-radius: 0.6em;
  overflow: hidden;
  transition: all 0.3s;
  line-height: 1.4em;
  box-shadow: rgba(0, 0, 0, 0.17) 0px -3px 5px 0px inset,
    rgba(0, 0, 0, 0.15) 0px -6px 5px 0px inset,
    rgba(0, 0, 0, 0.1) 0px -9px 30px 0px inset, rgba(0, 0, 0, 0.06) 0px 2px 1px,
    rgba(0, 0, 0, 0.09) 0px 4px 2px, rgba(0, 0, 0, 0.09) 0px 8px 4px,
    rgba(0, 0, 0, 0.09) 0px 6px 8px, rgba(0, 0, 0, 0.09) 0px 2px 6px;
}

.icon-img {
  width: 1em;
  height: 1em;
  margin-right: 5px;
  filter: invert(82%) sepia(27%) saturate(363%) hue-rotate(195deg)
    brightness(83%) contrast(87%);
}

.social-btn:hover,
.social-btn:focus {
  color: #cdd6f4;
  box-shadow: inset 0 0 10px rgba(16, 16, 22, 0.171),
    0 0 9px 3px rgba(7, 8, 22, 0.2);
}

.social-btn:hover .icon-img,
.social-btn:focus .icon-img {
  filter: invert(75%) sepia(13%) saturate(480%) hue-rotate(191deg)
    brightness(113%) contrast(91%);
}

.social-btn:before {
  content: "";
  position: absolute;
  left: -4em;
  width: 4em;
  height: 100%;
  top: 0;
  transition: transform 0.4s ease-in-out;
  background: linear-gradient(
    to right,
    transparent 1%,
    rgba(49, 50, 68, 0.1) 40%,
    rgba(49, 50, 68, 0.1) 60%,
    transparent 100%
  );
}

.social-btn:hover:before {
  transform: translateX(15em);
}

.link-btn {
  display: inline-block;
  color: #fab387;
  padding: 0.2rem;
  margin: -0.2rem;
  text-decoration: none;
  transition: 0.2s all;
}

.link-btn::after {
  display: block;
  content: "";
  border-bottom: #fab387 solid 0.15rem;
  transform-origin: 100%;
  transform: scaleX(0);
  transition: transform 500ms ease-in-out;
}

.link-btn:hover:after {
  transform: scaleX(1);
  transform-origin: 0%;
}

/* #cursor {
  position: fixed;
  top: -5px;
  left: -5px;
  width: 10px;
  height: 10px;
  background-color: rgb(250, 179, 135);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999;
}

#cursor-border {
  --size: 50px;
  position: fixed;
  top: calc(var(--size) / -2);
  left: calc(var(--size) / -2);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgb(250, 179, 135);
  pointer-events: none;
  transition: top 0.15s ease-out, left 0.15s ease-out, width 0.15s ease-out,
    height 0.15s ease-out, background-color 0.15s ease-out;
  z-index: 999;
} */

#preloader {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  background-color: #11111b;
  height: 100vh;
  width: 100vw;
  margin: 0;
  padding: 0;
  z-index: 100;
}

.loader {
  display: inline-block;
  width: 30px;
  height: 30px;
  position: relative;
  border: 4px solid #cdd6f4;
  animation: loader 2s infinite ease;
}

.loader-inner {
  vertical-align: top;
  display: inline-block;
  width: 100%;
  background-color: #cdd6f4;
  animation: loader-inner 2s infinite ease-in;
}

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

  25% {
    transform: rotate(180deg);
  }

  50% {
    transform: rotate(180deg);
  }

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

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

@keyframes loader-inner {
  0% {
    height: 0%;
  }

  25% {
    height: 0%;
  }

  50% {
    height: 100%;
  }

  75% {
    height: 100%;
  }

  100% {
    height: 0%;
  }
}

#projectsContainer {
  /* display: flex; */
  /* flex-wrap: wrap; */
  /* justify-content:space-evenly; */
  /* justify-content: center; */
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(25rem, 1fr));
  /* margin-bottom: 1rem; */
  margin: 1rem;
  /* background-color: #1e1e2e; */
}

.projectContent {
  display: flex;
  background-color: #181825;
  /* width: 40%; */
  border-radius: 1rem;
  word-wrap: break-word;
  box-shadow: rgba(0, 0, 0, 0.07) 0px -23px 60px 0px inset,
    rgba(0, 0, 0, 0.05) 0px -36px 70px 0px inset,
    rgba(0, 0, 0, 0.01) 0px -79px 80px 0px inset,
    rgba(0, 0, 0, 0.06) 0px 2px 1px, rgba(0, 0, 0, 0.09) 0px 4px 2px,
    rgba(0, 0, 0, 0.09) 0px 8px 4px, rgba(0, 0, 0, 0.09) 0px 16px 8px,
    rgba(0, 0, 0, 0.09) 0px 32px 16px;
  padding: 1rem;
  margin: 1rem;
  position: relative;
  top: 0;
  transition: top ease 0.3s;
}

.projectContent:hover {
  top: -5px;
}

.projectContent h3,
.projectContent p {
  margin-bottom: -0.1rem;
}

.projectContent a {
  text-decoration: none;
}

.projectLink {
  display: flex;
}

.projectLinkIcon {
  width: 2rem;
  height: 2rem;
  filter: invert(82%) sepia(27%) saturate(363%) hue-rotate(195deg)
    brightness(83%) contrast(87%);
}
.projectLink:hover .projectLinkIcon {
  filter: invert(75%) sepia(13%) saturate(480%) hue-rotate(191deg)
    brightness(113%) contrast(91%);
}

.project-preview {
  display: flex;
  margin-top: 1rem;
  width: 100%;
  font-size: 0.001px;
}

.projectToolsUsed {
  display: flex;
  text-align: center;
  justify-content: center;
  align-items: center;
  font-weight: 500;
  border-radius: 25px;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  background-color: #11111b;
}

.projectToolsUsed:hover {
  color: #a6adc8;
  background-color: #1e1e2e;
  animation: beatingHeart 1.5s infinite;
}

@keyframes beatingHeart {
  0% {
    transform: scale(1);
  }

  15% {
    transform: scale(1.05);
  }

  30% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.05);
  }

  60% {
    transform: scale(1);
  }
}

@media screen and (max-width: 800px) {
  h1 {
    font-size: 2.5rem;
  }
  #home h2,
  #error404 h2 {
    margin-top: 1vh !important;
    font-size: 0.9rem !important;
  }
  #error404 p {
    padding-top: 1rem;
    font-size: 0.75rem !important;
  }
  .wave-animation {
    font-size: 2.1rem;
  }
  .developer {
    padding-bottom: 0.5rem;
  }
  .social-btn-layout {
    flex-direction: column;
    margin-top: 5vh;
    row-gap: 15px;
    margin-bottom: -5vh;
  }
  #projectsContainer {
    grid-template-columns: repeat(auto-fill, minmax(18.75rem, 1fr));
  }
}
