/* Mobile nav drawer */
#mobile-nav {
  position: fixed;
  top: 0;
  left: -100%;
  width: 75%;
  max-width: 300px;
  height: 100vh;
  background: rgba(82, 0, 0, 0.95); /* dark wine glass effect */
  backdrop-filter: blur(12px);
  color: #fff;
  padding: 20px;
  transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  box-shadow: 2px 0 15px rgba(0, 0, 0, 0.4);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

#mobile-nav.active {
  left: 0;
}

#mobile-nav .nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

#mobile-nav .logo a {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.5px;
  text-decoration: none;
}

#menu-close {
  cursor: pointer;
  font-size: 24px;
  color: #fff;
  transition: transform 0.2s ease;
}

#menu-close:hover {
  transform: rotate(90deg);
}

/* Nav links */
#mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#mobile-nav li {
  margin: 0;
  position: relative;
}

#mobile-nav a {
  color: #f9f9f9;
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  transition: color 0.2s ease;
}

#mobile-nav a:hover {
  color: #ffffff;
}

/* Dropdown */
#mobile-nav .dropdown {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  margin-left: 5px;
}

#mobile-nav .dropdown.open {
  max-height: 500px; /* enough space for items */
}

#mobile-nav .dropdown li a {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* keep icon + text together */
  gap: 8px; /* space between icon and text */
  font-size: 15px;
  padding: 8px 0;
  color: #ddd;
}


#mobile-nav .dropdown li a:hover {
  color: #fff;
}

/* Toggle icon animation */
.dropdown-toggle {
  font-size: 14px;
  margin-left: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.dropdown-toggle.rotated {
  transform: rotate(180deg);
}


/* Modern divider */
#mobile-nav > ul > li::after {
  content: "";
  display: block;
  height: 1px;
  background: rgb(255, 255, 255);
  margin-top: 5px;
}
