/* --- Existing Styles (additions/modifications commented) --- */
header {
  min-height: 10vh;
  width: 100%;
  background: white;
  color: white;
  z-index: 2;
  position: relative; /* Added for mobile menu positioning */
}

.mainbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 80px;
  padding-right: 80px;
  padding-top: 10px;
  padding-bottom: 10px;
  background: linear-gradient(to right, #9d17eb, #11005a);
  border-radius: 70px;
  margin-right: 10px;
  margin-left: 10px
}

.mainbar img {
  height: 85px;
  width: auto;
  display: block;
}

.header-nav ul {
  list-style: none;
  font-size: 1.5vw;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.header-nav a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  padding: 8px 12px;
  transition: 0.3s ease;
}

/* --- NEW Styles for Mobile Responsiveness --- */

/* Hamburger Menu Icon Styling */
.hamburger-menu {
  display: none; /* Hidden on desktop */
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  cursor: pointer;
}

.hamburger-menu span {
  width: 100%;
  height: 3px;
  background-color: white; /* White lines for visibility on dark background */
  border-radius: 5px;
}

/* Media Query for Mobile and Tablet Screens */
@media (max-width: 768px) {
  .mainbar {
    padding-left: 20px; /* Less padding on small screens */
    padding-right: 20px;
  }

  .mainbar img {
    height: 60px; /* Smaller logo */
  }

  .header-nav {
    display: none; /* Hide nav by default */
    position: absolute;
    top: 90px; /* Position below the mainbar */
    left: 0;
    width: 100%;
    /* Use the same dark gradient for the dropdown menu */
    background: linear-gradient(to right, #9d17eb, #11005a);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    z-index: 9999;
  }

  .header-nav.active {
    display: block; /* Show menu when JS adds 'active' class */
  }

  .header-nav ul {
    flex-direction: column; /* Stack links vertically */
    align-items: center;
    padding: 20px 0;
    gap: 15px;
    font-size: 18px; /* Fixed font size for mobile */
  }

  .hamburger-menu {
    display: flex; /* Show hamburger icon */
  }


}