/* Premium Glass Navbar - Enhanced Responsive Design */
.ms-navbar{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 24px;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), padding 0.4s ease;
  pointer-events: none; /* Let clicks pass through around the pill */
}

.ms-navbar.is-hidden {
  transform: translateY(-120%);
}

.ms-navbar.is-scrolled {
  padding-top: 10px;
}

.ms-nav-inner{
  pointer-events: auto;
  width: min(1120px, 100%);
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  /* Rounded floating glass bar - more transparent to show hero */
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 
    0 10px 30px -10px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.1);
  padding: 0 8px 0 24px;
  position: relative;
  transition: all 0.3s ease;
}

.ms-navbar.is-scrolled .ms-nav-inner {
  background: rgba(12, 11, 9, 0.6);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.6);
}

/* Brand */
.ms-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.ms-brand__link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.ms-logo{
  height: 32px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.ms-brand:hover .ms-logo{ 
  transform: scale(1.05); 
}

/* Desktop links - Enhanced */
.ms-links{
  display: flex;
  gap: 4px;
  align-items: center;
}

.ms-link{
  position: relative;
  padding: 8px 16px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.65);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.ms-link:hover{
  color: #fff;
  background: rgba(255,255,255,0.06);
}

.ms-link.is-active {
  color: #fff;
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.1);
}

.ms-link--cta{
  background: #fff;
  color: #000;
  font-weight: 600;
  margin-left: 8px;
  padding: 8px 20px;
}

.ms-link--cta:hover{
  background: #f0f0f0;
  color: #000;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,255,255,0.2);
}

.ms-link--cta.is-active {
  background: #fff;
  color: #000;
  border-color: transparent;
}

/* Toggle button */
.ms-menu-btn{
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #fff;
  display: none; /* Hidden on desktop */
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.ms-menu-btn:hover{
  background: rgba(255,255,255,0.1);
}

/* Overlay */
.ms-nav-overlay{
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.ms-nav-overlay.open{
  opacity: 1;
  pointer-events: auto;
}

/* Mobile panel */
.ms-mobile-menu{
  position: absolute;
  top: 80px;
  right: 16px;
  left: 16px;
  max-width: 400px;
  margin: 0 auto;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  transform: translateY(-10px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
  z-index: 101;
}

.ms-mobile-menu.open{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.ms-mobile-links{
  display: flex;
  flex-direction: column;
  padding: 6px;
  gap: 4px;
}

.ms-m-link{
  padding: 14px 20px;
  border-radius: 16px;
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ms-m-link:hover,
.ms-m-link.is-active {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.ms-m-link--cta {
  background: rgba(255, 184, 0, 0.15);
  color: #ffb800;
  margin-top: 8px;
  justify-content: center;
  font-weight: 700;
}

.ms-m-link--cta:hover {
  background: rgba(255, 184, 0, 0.25);
  color: #ffb800;
}

/* Responsive */
@media (max-width: 768px){
  .ms-navbar { padding: 12px 16px; }
  .ms-nav-inner { padding: 0 6px 0 20px; height: 60px; }
  .ms-links { display: none; }
  .ms-menu-btn { display: flex; }
}
