.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 999;
  background: rgba(13, 13, 30, 0.8); /* Transparent for glass effect */
  backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(255, 174, 0, 0.303);
  padding: 10px 8%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}


/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-img {
  height: 38px;
  width: 38px;
}
.logo-text {
  font-size: 20px;
  font-weight: 700;
  color: #00ffff;
  letter-spacing: 1px;
}

/* Nav */
.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  text-decoration: none;
  font-weight: 500;
  color: #ffffff;
  position: relative;
  padding: 4px 0;
  transition: 0.3s ease;
}

.nav a:hover,
.nav a.active {
  color: #00ffff;
}

.nav a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  background: #00ffff;
  bottom: -4px;
  left: 0;
  transition: width 0.3s ease;
  box-shadow: 0 0 8px #00ffffaa;
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

/* Right Controls */
.right-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Theme Button */
.theme-toggle {
  background: transparent;
  border: 1px solid rgba(0, 255, 255, 0.5);
  color: #00ffff;
  padding: 7px 16px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: 0.3s ease;
}
.theme-toggle:hover {
  background: #00ffff;
  color: #000;
  box-shadow: 0 0 12px #00ffff99;
}

/* Hamburger Menu */
.menu-toggle {
  display: none;
  font-size: 26px;
  color: white;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(11, 28, 51, 0.95);
    padding: 20px;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 20px rgba(0, 255, 255, 0.15);
  }

  .nav.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}
