/* ===== NAVIGATION BAR (TechzyNerd) ===== */
.header {
  width: 100%;
  background: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(88, 166, 255, 0.2);
  height: 4.5rem; /* consistent header height */
}

/* Navigation container */
.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

/* Logo styling */
.logo {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
}

.logo span {
  color: #58a6ff;
}

/* Navigation links */
.nav-links {
  display: flex;
  gap: 2rem;
  transition: all 0.4s ease;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  font-size: 1em; /* Desktop font size */
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #58a6ff;
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: #58a6ff;
}

.nav-links a:hover::after {
  width: 100%;
}

/* ===== HAMBURGER MENU ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  width: 28px;
  height: 22px;
  z-index: 1100;
  transition: all 0.3s ease;
}

.hamburger div {
  background: #fff;
  height: 3px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

/* Active state (turns into "X") */
.hamburger.active div:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active div:nth-child(2) {
  opacity: 0;
}

.hamburger.active div:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== MOBILE MENU STYLES ===== */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: rgba(15, 15, 25, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: right 0.4s ease;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 3em; /* Bigger text on mobile */
  }

  .hamburger {
    display: flex;
  }
}
