* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.logo {
  font-size: 1.6rem;
  font-weight: 600;
  color: #333;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-size: 1rem;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  background: #0078ff;
  left: 0;
  bottom: 0;
  transition: 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Mobile */
.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
}

#menu-toggle {
  display: none;
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    background: #fff;
    width: 200px;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateX(100%);
    transition: 0.3s ease;
  }

  #menu-toggle:checked ~ .nav-links {
    transform: translateX(0);
  }
}
