/* Floating, semi-opaque navbar with dropdown support */
body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: #fafbfc;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(35,39,47,0.92);
  box-shadow: 0 4px 20px 0 rgba(0,0,0,0.12);
  padding: 1rem 0;
}

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

nav li {
  margin: 0 1.5rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

nav a:hover {
  text-decoration: underline;
}

/* Dropdown container */
.dropdown {
  position: relative;
}

/* Dropdown content */
.dropdown-content {
  display: none;
  position: absolute;
  background: rgba(35,39,47,0.98);
  min-width: 180px;
  box-shadow: 0 8px 24px 0 rgba(0,0,0,0.15);
  border-radius: 6px;
  top: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1100;
  padding: 0.8rem 0;
}

/* Dropdown links */
.dropdown-content a {
  color: #fff;
  padding: 0.6rem 1.2rem;
  display: block;
  text-align: left;
  text-decoration: none;
  font-weight: 400;
  transition: background 0.15s;
}
.dropdown-content a:hover {
  background: #2c313a;
}

/* Show the dropdown on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

.nav-buffer {
  height: 4.5rem;
}
