@media (min-width: 768px) {
  .custom-mobile-navbar {
    display: none !important;
  }
}

.custom-mobile-navbar {
  position: fixed;
  bottom: 24px;
  left: 16px;
  right: 16px;
  background: #0f2c68; /* Deep navy with transparency */
  border-radius: 24px;
  padding: 14px 20px;
  box-shadow:
    0 0 8px rgba(15, 44, 104, 0.7),
    0 8px 16px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  overflow-x: auto;
  scrollbar-width: none;
  display: flex;
  justify-content: center;
  gap: 24px;
}

.custom-mobile-navbar::-webkit-scrollbar {
  display: none;
}

.custom-navbar-menu {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 24px;
}

.custom-navbar-menu li {
  flex: 0 0 auto;
  text-align: center;
  position: relative;
}

.custom-navbar-menu li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #b0b8d6;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.4s ease;
  padding: 6px 8px;
  user-select: none;
  border-radius: 12px;
  /* subtle background on active to highlight */
}

.menu-icon-wrapper {
  width: 23px;
  height: 23px;
  margin-bottom: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-svg-icon,
.custom-navbar-menu li a i {
  height: 23px;
  font-size: 23px;
  color: inherit;
  transition: color 0.4s ease;
}

/* Active state styles */
.custom-navbar-menu li.current-menu-item a {
  color: #f5f7ff; /* bright light */
  /*background-color: rgba(255 255 255 / 0.15);
  box-shadow: 0 4px 12px rgba(255 255 255 / 0.2);*/
}

.custom-navbar-menu li.current-menu-item .menu-icon-wrapper {
  transform: scale(1.25);
  animation: subtleBounce 0.5s ease;
}

/* Animated underline */
.custom-navbar-menu li.current-menu-item::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 28%;
  height: 3px;
  background-color: #62a1ff; /* soft blue accent */
  border-radius: 3px;
  opacity: 0;
  animation: fadeInUnderline 0.4s forwards;
}

/* Bounce keyframe */
@keyframes subtleBounce {
  0%, 100% {
    transform: scale(1.25);
  }
  50% {
    transform: scale(1.35);
  }
}

/* Underline fade-in */
@keyframes fadeInUnderline {
  to {
    opacity: 1;
  }
}
