:root {
  --primary: #a8e6cf;
  --secondary: #dcedc1;
  --foreground: #1b5e20;
}

/* Nav start */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  padding: 0 4rem;
  box-shadow: 0 4px 4px 2px rgba(0, 0, 0, 0.5);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.navbar {
  width: 50%;
}

.navbar .nav-list {
  display: flex;
  justify-content: space-between;
  list-style-type: none;
  gap: 12px;
}

.navbar .nav-list .list-item a {
  text-decoration: none;
  color: var(--foreground);
  font-size: 18px;
  font-weight: 600;
  position: relative;
}

.navbar .nav-list .list-item a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: linear-gradient(to right, var(--foreground), var(--primary));
  transition: width 0.3s ease-in-out;
}

.navbar .nav-list .list-item:hover a::after {
  width: 100%;
}

.nav .logo {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  color: var(--foreground);
  text-decoration: none;
}

.nav .logo h1 {
  font-size: 24px;
  font-weight: 600;
}

.nav .logo img {
  width: 50px;
  border-radius: 4px;
}
/* Nav end */

/* Responsive layout */
@media (max-width: 720px) {
  .nav {
    padding: 0 1rem;
  }

  .navbar .nav-list {
    display: none;
  }

  .nav .logo h1 {
    font-size: 18px;
  }
}
