@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #1a0d2e;
  color: #ededed;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 10%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background-color: #1a0d2e;
}

.logo {
  position: relative;
  font-size: 25px;
  color: #ededed;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.logo::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: #1a0d2e;
  animation: showRight 1s ease forwards;
  animation-delay: 0.4s;
}

.navbar a {
  font-size: 18px;
  color: #ededed;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.navbar {
  position: relative;
  display: flex;
  justify-content: right;
  flex-wrap: wrap;
  row-gap: 12px;
  column-gap: 35px;
}

.navbar::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: #1a0d2e;
  animation: showRight 1s ease forwards;
  animation-delay: 0.8s;
  z-index: 1;
}

.navbar a:hover,
.navbar a.active {
  color: #883ffc;
}

.home {
  height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  justify-content: center;
}

.home-content h1 {
  position: relative;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.5;
  text-shadow: 5px 5px #883ffc;
  padding: 10px;
}

.home-content h1::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: #1a0d2e;
  animation: showRight 1s ease forwards;
  animation-delay: 1s;
}

.home-content h3 {
  position: relative;
  font-size: 32px;
  font-weight: 700;
}

.home-content h3::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: #1a0d2e;
  animation: showRight 1s ease forwards;
  animation-delay: 1.3s;
}

.home-content h4 {
  position: relative;
  font-size: 24px;
  margin: 15px 0 40px;
}

.home-content h4::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: #1a0d2e;
  animation: showRight 1s ease forwards;
  animation-delay: 1.6s;
}

@keyframes showRight {
  100% {
    width: 0%;
  }
}

.proj-drop {
  position: relative;
  display: inline-block;
}

.proj-items {
  padding: 6px;
  border-radius: 5px;
  background-color: #2b1057;
}

.proj-item {
  white-space: nowrap;
}

.drop-area {
  position: absolute;
  display: none;
}

.proj-drop:hover .drop-area {
  display: block;
  padding-top: 6px;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: #ededed;
  -webkit-transition: all 0.3 ease-in-out;
  transition: all 0.3 ease-in-out;
}

@media (max-width: 900px) {
  .hamburger {
    display: block;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hamburger::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #1a0d2e;
    animation: showRight 2s ease forwards;
  }
  .navbar {
    position: fixed;
    left: -100%;
    top: 70px;
    gap: 0;
    flex-direction: column;
    background-color: #1a0d2e;
    width: 100%;
    text-align: center;
    transition: 0.3s;
  }

  .nav-item {
    margin: 16px 0;
  }

  .navbar.active {
    left: 0;
  }

  .proj-drop:hover .drop-area {
    display: block;
  }

  .drop-area {
    position: absolute;
    display: none;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    padding-top: 6px;
    background-color: #1a0d2e;
  }

  .proj-items {
    padding: 6px;
    border-radius: 5px;
    background-color: #2b1057;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .proj-item {
    white-space: nowrap;
  }
}
