header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0.5rem 1rem;
  z-index: 1000;
  border-bottom: 2px solid #482d6358;
  background: rgba(21, 24, 33, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.logo-link {
  text-decoration: none;
  color: white;
  letter-spacing: 0.125rem;
  transition: text-shadow 0.3s ease, color 0.3s ease;
}

.logo-link:hover,
.logo-link:focus {
  color: #84fc9a;
  text-shadow: 0 0 10px #2df945, 0 0 20px #ffffff, 0 0 40px #9afc84;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}

nav ul li a {
  display: block;
  color: #fff;
  text-align: center;
  font-size: 1rem;
  font-weight: 200;
  padding: 0.5rem 0.875rem;
  text-decoration: none;
  border-radius: 0.75rem;
  transition: background-color 0.2s ease, text-shadow 0.3s ease;
}

nav ul li a.home {
  color: #ac00fb;
  font-weight: bold;
}

nav ul li a:hover {
  background-color: #3434345c;
  text-shadow: 0 0 10px #c084fc, 0 0 20px #c084fc, 0 0 40px #c084fc;
}

.nav-separator {
  width: 0.1rem;
  height: 1rem;
  background: rgba(255, 255, 255, 0.25);
  margin: 0rem 1rem;
  align-self: center;
  list-style: none;
}

nav ul li a svg {
  transform: translateY(0.1rem);
  display: block;
  margin: 0 auto;
}

.linkedin-nav-icon {
  display: block;
  transition: filter 0.3s ease, color 0.3s ease;
}
.github-nav-icon {
  display: block;
  transition: filter 0.3s ease, color 0.3s ease;
}
.resume-nav-icon {
  transform: translateY(2px);
  display: inline-block;
  transition: filter 0.3s ease, color 0.3s ease;
}

nav ul li a:hover .linkedin-nav-icon {
  filter: drop-shadow(0 0 2px #1087ff) drop-shadow(0 0 8px #0a66c2);
  color: #3499ff;
}
nav ul li a:hover .github-nav-icon {
  filter: drop-shadow(0 0 2px #7410ff) drop-shadow(0 0 8px #880ac2);
  color: #da34ff;
}
nav ul li a:hover .resume-nav-icon {
  filter: drop-shadow(0 0 2px #10ff4c) drop-shadow(0 0 8px #0ac213);
  color: #34ff7e;
}

.cv-button {
  background-color: #00c16a;
  padding: 0.4rem;
}

.cv-button:hover {
  text-shadow: 0 0 10px #84fc8e, 0 0 20px #84fca6, 0 0 40px #84fca2;
  background-color: #006c3c64;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
  transition: text-shadow 0.3s ease, color 0.3s ease;
}
.menu-toggle:hover {
  text-shadow: 0 0 10px #2df945, 0 0 20px #4be33d, 0 0 40px #9afc84;
}

@media (max-width: 768px) {
  nav {
    position: fixed;
    top: 3rem;
    left: 0;
    width: 100%;
    background: rgba(21, 24, 33, 0.95);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-20px);
    transition: max-height 0.4s ease, opacity 0.3s ease, transform 0.3s ease;
  }

  nav.open {
    max-height: 100vh;
    opacity: 1;
    transform: translateY(0);
  }

  .nav-separator {
    width: 1rem;
    height: 0.1rem;
    background: rgba(255, 255, 255, 0.25);
    margin: 1rem 0;
    align-self: center;
    list-style: none;
  }

  nav ul {
    flex-direction: column;
    text-align: center;
  }

  .menu-toggle {
    display: block;
  }
}
