.top-nav {
  background-color: #2c2c2c;
  border-bottom: 1px solid #ddd;
  padding: 1.25rem 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid #444;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  padding: 0;
  margin: 0;
}

.nav-links li a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  font-size: 1.2rem;
  padding: 0.5rem;
  transition: color 0.2s ease;
  font-family:sans-serif;
}

.nav-links li a:hover {
  color: #007acc;
}

.nav-links li a.active {
  font-weight: 700;
  /* border-bottom: 2px solid #fff; */
}

/* -------------------------------------- */
/* Ensure nav-actions align correctly */
.header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Action buttons container */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-right: 0.5rem;
}

/* CV button style */
.cv-button {
  background-color: #007acc;
  color: white;
  padding: 0.5rem 1.5rem;
  font-weight: 500;
  font-size: 1rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

/* Hover state */
.cv-button:hover {
  background-color: #005a99;
  color: white;
}

/* Dark mode icon button */
#theme-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #fff;
  transition: transform 0.2s ease;
}

#theme-toggle:hover {
  transform: scale(1.1);
}


/* ---- */
/* Mobile hamburger toggle */
.hamburger {
  display: none;
  font-size: 1.9rem;
  color: #fff;
  cursor: pointer;
   padding: 0.25rem 0.75rem;
}

/* Hidden menu */
.mobile-menu {
  position: absolute;
  top: 100%;
  right: 1rem;
  width: auto;
  min-width: 100px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  /* display: none; */
  flex-direction: column;
  /* gap: 1rem; */
  background-color: #2c2c2c;
  padding: 1.0rem;
  /* margin-top: 1rem; */
}

.mobile-menu li a {
  font-size: 1.2rem;
  color: #fff;
  font-size: 1.2rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

/* Utility class */
.hidden {
  display: none !important;
}

/* Show hamburger and hide extra links on mobile */
@media (max-width: 768px) {
  .cv-button{
    display: none;
  }

  .nav-links {
    gap: 1rem;
  }

  .nav-links li:nth-child(n+3) {
    display: none; /* Hide everything after About */
  }

  .hamburger {
    display: block;
  }

  .mobile-menu {
    display: flex;
  }

  .container {
    max-width: 100%;
  }
}
