/* ===============================
MODERN NAVBAR DESIGN - VIGEO Health
=============================== */

/* Reset and Base Styles */
.main-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Navbar States */
.main-navbar.scrolled {
  height: 68px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.main-navbar.transparent {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.main-navbar.hidden {
  transform: translateY(-100%);
  opacity: 0;
}

/* Inner Container */
.navbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Brand/Logo */
.navbar-brand {
  display: flex;
  align-items: center;
  height: 100%;
  transition: transform 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.02);
}

.navbar-brand img {
  height: 48px;
  width: auto;
  transition: all 0.3s ease;
}

.main-navbar.scrolled .navbar-brand img {
  height: 44px;
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1rem;
}

.desktop-nav li {
  position: relative;
}

/* Modern Nav Links */
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  color: #333;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.3px;
  border-radius: 8px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--brand-red);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--brand-red);
  background: rgba(175, 45, 44, 0.05);
}

.nav-link:hover::before {
  width: calc(100% - 40px);
}

/* Services Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown .nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-dropdown .nav-link::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-link::after {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: calc(100% - 5px); /* Reduced gap to make hover transition smoother */
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 280px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  transition-delay: 0s;
  pointer-events: none;
}

/* Add invisible bridge to prevent gap */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
  background: transparent;
}

.nav-dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(5px);
  pointer-events: auto;
  transition-delay: 0.1s; /* Small delay when showing */
}

/* Keep dropdown visible when hovering over it */
.nav-dropdown .dropdown-menu:hover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.dropdown-item {
  display: flex;
  align-items: center;
  padding: 12px 24px;
  color: #555;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  position: relative;
}

.dropdown-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 0;
  background: var(--brand-red);
  transform: translateY(-50%);
  transition: height 0.3s ease;
}

.dropdown-item:hover {
  background: rgba(175, 45, 44, 0.05);
  color: var(--brand-red);
  padding-left: 28px;
}

.dropdown-item:hover::before {
  height: 70%;
}

.dropdown-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 8px 0;
}

/* CTA Button */
.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: 2rem;
}

.cta-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.cta-phone:hover {
  color: var(--brand-red);
}

.cta-phone svg {
  width: 16px;
  height: 16px;
}

.nav-phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--brand-red);
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(175, 45, 44, 0.15);
}

.nav-phone-btn:hover {
  background: #9a2625;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(175, 45, 44, 0.3);
  color: white;
}

.nav-phone-btn svg {
  width: 18px;
  height: 18px;
}

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--brand-red);
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(175, 45, 44, 0.2);
}

.nav-cta-btn:hover {
  background: #9a2625;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(175, 45, 44, 0.3);
}

.nav-cta-btn svg {
  width: 18px;
  height: 18px;
}

/* Provider Portal Link */
.provider-portal-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid rgba(175, 45, 44, 0.3);
  border-radius: 6px;
  color: var(--brand-red);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.provider-portal-link:hover {
  background: rgba(175, 45, 44, 0.05);
  border-color: var(--brand-red);
  transform: translateY(-1px);
}

.provider-portal-link svg {
  width: 18px;
  height: 18px;
}

/* Mobile Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #333;
  margin: 3px 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: white;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  display: none;
  overflow-y: auto;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-content {
  padding: 100px 30px 30px;
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu li {
  margin-bottom: 8px;
  opacity: 0;
  animation: slideInRight 0.4s ease forwards;
  animation-delay: var(--item-delay, 0.1s);
}

.mobile-menu li:nth-child(1) { --item-delay: 0.1s; }
.mobile-menu li:nth-child(2) { --item-delay: 0.15s; }
.mobile-menu li:nth-child(3) { --item-delay: 0.2s; }
.mobile-menu li:nth-child(4) { --item-delay: 0.25s; }

.mobile-menu a {
  display: block;
  padding: 16px 0;
  color: #333;
  font-size: 1.125rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.3s ease;
  position: relative;
}

.mobile-menu a::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--brand-red);
  transition: width 0.3s ease;
}

.mobile-menu a:hover {
  color: var(--brand-red);
  padding-left: 10px;
}

.mobile-menu a:hover::before {
  width: 40px;
}

/* Mobile Services Submenu */
.mobile-submenu {
  padding-left: 20px;
  margin-top: 8px;
}

.mobile-submenu a {
  font-size: 1rem;
  padding: 12px 0;
  border-bottom: 1px solid #f8f8f8;
}

/* Mobile CTA */
.mobile-cta {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 2px solid #f0f0f0;
}

.mobile-cta-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  background: rgba(175, 45, 44, 0.05);
  border-radius: 12px;
  color: var(--brand-red);
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.mobile-cta-phone:hover {
  background: var(--brand-red);
  color: white;
}

.mobile-cta-btn {
  display: block;
  text-align: center;
  padding: 16px;
  background: var(--brand-red);
  color: white;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.mobile-cta-btn:hover {
  background: #9a2625;
}

/* Animations */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive Design */

