body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f9f9f9;
  color: #333;
}
/* Desktop styles */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 97%;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  color: white;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  z-index: 1000;
}

.logo-img {
  height: 40px;
  transition: height 0.3s ease;
}

.navbar.scrolled {
  background: #500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  padding: 0.75rem 2rem;
}

.navbar.scrolled .logo-img {
  height: 35px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  padding: 0.5rem;
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: white;
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: #fdd; /* optional subtle tint */
}

.nav-links a:hover::after {
  width: 100%;
}

/* Default: Submenus hidden */
.submenu {
  display: none;
  position: absolute;
  background: #222;
  top: 100%;
  left: 100;
  min-width: 150px;
  padding: 0.5rem;
  z-index: 999;
}

/* Submenu hover for desktop only */
@media (min-width: 769px) {
  .has-submenu:hover .submenu {
    display: block;
  }
}

.hero {
  padding: 3rem;
  text-align: center;
  background: #eee;
}

main {
 /* padding-top: 80px;  adjust based on your navbar height */
}

footer {
  text-align: center;
  padding: 1rem;
  background: #222;
  color: white;
}

/* Mobile styles */
.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    display: none;
    background: #500;
    padding: 1rem 0;
  }

  .nav-links.open {
    display: flex;
  }

  .has-submenu .submenu {
    position: static;
    display: none;
    background: #600;
  }

  .has-submenu.open .submenu {
    display: block;
  }
}