:root {
  --menu-light-bg: #ffffff;
  --menu-dark-text: #2d3748;
  --menu-border: #e2e8f0;
}

.fix-top {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  max-width: 100vw;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 1030;
  height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

.fix-top.scrolled {
  height: 70px;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Navbar Brand */
.navbar-brand {
  color: var(--menu-dark-text);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  transition: all 0.3s ease;
  margin-bottom: 4px;
  line-height: 1;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.fix-top.scrolled .navbar-brand {
  margin-bottom: 0;
  display: flex;
  align-items: center;
}

/* Navbar Nav */
.navbar-nav {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 6px;
  transition: all 0.4s ease;
  margin-top: 0;
  list-style: none;
  padding: 0;
}

.navbar-nav .nav-item {
  list-style: none;
  padding-bottom: 0;
}

.navbar-nav .nav-link {
  color: #475569;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  position: relative;
  letter-spacing: -0.01em;
}

.navbar-nav .nav-link:hover {
  color: #0f172a;
  background-color: rgba(0, 0, 0, 0.04);
}

/* Mobile Toggler */
.navbar-toggler {
  display: none;
  cursor: pointer;
  border: none;
  background: none;
  color: var(--menu-dark-text);
  z-index: 1031;
  padding: 8px;
  border-radius: 8px;
}

/* Dropdown */
.dropdown-container {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(10px) scale(0.95);
  background-color: #ffffff;
  box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1), 0 10px 20px -5px rgba(0, 0, 0, 0.04);
  z-index: 1000;
  list-style: none;
  padding: 8px;
  margin: 0;
  min-width: 260px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.nav-item.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
  pointer-events: auto;
}

.dropdown-item {
  color: #475569;
  padding: 10px 16px;
  text-decoration: none;
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background-color: #f1f5f9;
  color: #0f172a;
  transform: translateX(2px);
}

.nav-link .arrow {
  font-size: 0.6em;
  margin-left: 6px;
  opacity: 0.5;
  transition: transform 0.3s ease;
}

.nav-item.dropdown:hover .arrow {
  transform: rotate(180deg);
}

/* WhatsApp Button specific */
.whatsapp-link {
  background: #25D366 !important;
  color: white !important;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
}

.whatsapp-link:hover {
  background: #1da851 !important;
  box-shadow: 0 6px 15px rgba(37, 211, 102, 0.3);
  transform: translateY(-1px);
}

/* Mobile Responsive */
@media (max-width: 1035px) {
  .fix-top {
    flex-direction: row;
    justify-content: space-between;
    height: 70px;
    padding: 0 60px 0 20px; /* Adjusted padding to make space for the toggler */
    position: relative; /* Make fix-top a positioning context for absolute children */
  }

  .navbar-brand {
    margin-bottom: 0;
    font-size: 1.4rem;
  }

  .navbar-nav {
    flex-direction: column;
    width: 100%;
    height: 0;
    background-color: #ffffff;
    position: absolute;
    top: 70px;
    left: 0;
    overflow: hidden;
    transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid #f1f5f9;
    align-items: flex-start;
    padding: 0;
    gap: 0;
  }

  .navbar-nav.show {
    height: auto;
    padding: 20px 0;
    overflow-y: auto;
    max-height: calc(100vh - 70px);
  }

  .navbar-toggler {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute; /* Position absolute relative to fix-top */
    top: 50%;
    right: 20px;
    transform: translateY(-50%); /* Vertically center */
    z-index: 1031;
    padding: 8px;
    border: none; /* Ensure no border */
    background: none; /* Ensure no background */
    cursor: pointer;
    border-radius: 8px;
  }