/* === Responsive Navbar CSS === */

/* Reset default margins/paddings */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  padding-top: 100px; /* adjust based on navbar height */
  transition: padding-top 0.4s ease; /* for future content shift feature */
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  background-color: #f9fafb;
  position: fixed;      /* fixed navbar */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Logo */
.navbar .logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar .logo img {
  height: 50px;
  width: auto;
}

.navbar .logo h1 {
  font-size: 1.5rem;
  white-space: nowrap;
}

/* Navbar links */
.navbar nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
}

.navbar nav ul li a {
  text-decoration: none;
  font-weight: 700;
  color: #000000;
  font-size: 15px;
  transition: all 0.3s ease;
  padding: 6px 10px;
  border-radius: 8px;
}

.navbar nav ul li a:hover {
  color: #007bff;
}

/* Hamburger menu (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  cursor: pointer;
  z-index: 1001; /* above menu */
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #333;
  border-radius: 2px;
  transition: all 0.3s;
}

/* Hamburger animation when active */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

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

/* ===== Mobile styles ===== */
@media (max-width: 992px) {
  .hamburger {
      display: flex;
  }

  /* Mobile menu hidden by default */
  #nav-menu {
      position: absolute;
      top: 100%; /* right below navbar */
      left: 0;
      width: 100%;
      background-color: #f9fafb;
      overflow: hidden;
      max-height: 0;
      transition: max-height 0.4s ease-in-out;
  }

  /* Show menu when open */
  #nav-menu.open {
      max-height: 1000px; /* adjust if you add more links */
  }

  #nav-menu ul {
      flex-direction: column;
      gap: 0;
      padding: 10px 0;
  }

  #nav-menu ul li {
      margin: 10px 0;
      text-align: center;
  }



  /* Adjust logo for smaller screens */
  .navbar .logo h1 {
      font-size: 1.25rem;
      font-weight: 700;
  }
}

@media (max-width: 576px) {
  .navbar .logo img {
      height: 40px;
  }
  .navbar .logo h1 {
      font-size: 0.5rem;
  }
}


