/* --- Existing Styles (additions/modifications commented) --- */
header {
  min-height: 10vh;
  width: 100%;
  background: linear-gradient(to right, #9d17eb, #11005a);
  color: white;
  z-index: 2;
  position: relative; /* Added for positioning the mobile menu */
}

.mainbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 80px;
  padding-right: 80px;
  padding-top: 5px;
  padding-bottom: 0px;
  background-color: white;
  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: black;
  font-weight: 500;
  padding: 8px 12px;
  transition: 0.3s ease;
}

.header-nav a:hover {
  background: white;
  border-radius: 5px;
  color: #000269;
}

/* --- NEW Styles for Mobile Responsiveness --- */

/* Hamburger Menu Icon Styling */
.hamburger-menu {
  display: none; /* Hidden by default on desktop */
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  cursor: pointer;
}

.hamburger-menu span {
  width: 100%;
  height: 3px;
  background-color: #333;
  border-radius: 5px;
}

/* Media Query for Mobile and Tablet Screens */
@media (max-width: 768px) {
  .mainbar {
    padding-left: 20px; /* Reduce padding for smaller screens */
    padding-right: 20px;
    padding-top:10px;
    padding-bottom: 10px;
  }
  
  .mainbar img {
    height: 60px; /* Make logo smaller on mobile */
  }

  .header-nav {
    display: none; /* Hide the desktop nav container */
    position: absolute;
    top: 90px; /* Position it below the mainbar */
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 50px;
  }
  
  .header-nav.active {
    display: block; /* Show menu when active class is added by JS */
  }

  .header-nav ul {
    flex-direction: column; /* Stack nav items vertically */
    align-items: center;
    padding: 20px 0;
    gap: 15px;
    font-size: 18px; /* Use fixed font size for readability */
  }

  .hamburger-menu {
    display: flex; /* Show the hamburger icon on mobile */
  }
}