:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --text-color: #333;
  --light-text: #f8fafc;
  --background: #ffffff;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.header {
  position: sticky;
  top: 0;
  padding: 10px;
  width: 100%;
  background-color: var(--background);
  box-shadow: var(--shadow);
  z-index: 1000;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  transition: all 0.3s ease;
}

.nav-link {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link.active {
  color: var(--primary-color);
  font-weight: 600;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

.register-btn {
  background-color: var(--primary-color);
  color: var(--light-text) !important;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: background-color 0.3s ease;
}

.register-btn:hover {
  background-color: var(--primary-hover);
}

/* Hamburger menu styles */
.menu-toggle {
  display: none;
}

.hamburger {
  display: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* Responsive styles */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--background);
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    gap: 2rem;
  }

  .menu-toggle:checked ~ .nav-links {
    left: 0;
  }

  .menu-toggle:checked + .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle:checked + .hamburger span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle:checked + .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
}

/*Dropdown menu*/
.dropdown {
  position: relative;
}
.dropdown-menu {
  position: absolute;
  background: white;
  list-style: none;
  padding: 10px;
  display: none;
  border: 1px solid #ddd;
}
.dropdown:hover .dropdown-menu {
  display: block;
}
