@font-face {
  font-family: crock;
  src: url('../fonts/crock.ttf') format('truetype');
}

.navbar {
  font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: bold;
  z-index: 1000;
  box-sizing: border-box;
}

.hamburger {
  font-size: 26px;
  cursor: pointer;
  color: white;
  display: none;
  z-index: 1100;
  position: fixed;
  top: 40px;
  right: 30px; 
}

.nav-toggle:checked + .hamburger {
  display: none;
}

.hamburger,
.close-icon {
  font-size: 28px;
  cursor: pointer;
  color: white;
  position: fixed;
  top: 20px;
  right: 30px;
  z-index: 1100;
  display: none;
}

.nav-toggle {
  display: none;
}

.nav-menu {
  position: fixed;
  top: 0;
  right: -250px;
  height: 100%;
  width: 250px;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 60px;
  transition: right 0.4s ease;
  z-index: 1000;
}

.nav-links {
  list-style: none;
  padding: 0 20px;
  margin: 0;
  width: 100%;
  text-align: left;
  flex-direction: column;
}

.nav-links li {
  margin-bottom: 20px;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-size: 20px;
  position: relative;
  padding-bottom: 5px;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: white;
  transition: width 0.3s ease;
}

.nav-links li a:hover::after {
  width: 100%;
}

@media screen and (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .close-icon {
    display: none;
  }

  .nav-toggle:checked + .hamburger {
    display: none;
  }

  .nav-toggle:checked ~ .close-icon {
    display: block;
  }

  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding-top: 80px;
    transition: right 0.4s ease;
  }

  .nav-toggle:checked ~ .nav-menu {
    right: 0;
  }

  .nav-links {
    flex-direction: column;
    padding-left: 20px;
  }
}

@media screen and (min-width: 769px) {
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 20px 60px;
    z-index: 1000;
    display: flex;
    justify-content: flex-end;
    background: transparent;
  }

  .nav-menu {
    position: static;
    height: auto;
    width: auto;
    background: none;
    display: flex;
    align-items: center;
    padding-top: 0;
    transition: none;
  }

  .nav-links {
    flex-direction: row;
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 0;
    text-align: right;
  }

  .nav-links li {
    margin: 0;
  }

  .hamburger {
    display: none;
  }
}
