/* ============================================
   NAVIGATION COMPONENT
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10001;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  transition: all var(--transition-base);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.98);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Logo */
.navbar-logo {
  display: flex;
  align-items: center;
}

.navbar-logo-img {
  height: 50px;
  width: auto;
  max-width: 200px;
  transition: transform var(--transition-base);
}

.navbar-logo-img:hover {
  transform: scale(1.05);
}

.navbar-logo-text {
  display: flex;
  flex-direction: column;
}

.navbar-logo-title {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
}

.navbar-logo-subtitle {
  font-size: var(--text-xs);
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Navigation Links */
.navbar-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gray-600);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--secondary-600);
  background: var(--secondary-50);
}

.nav-link.active {
  color: var(--secondary-700);
  background: var(--secondary-100);
  font-weight: 600;
}

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

/* CTA Button */
.navbar-cta {
  display: flex;
  align-items: center;
}

.navbar-cta .btn {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .navbar {
    border-radius: 0 0 8px 8px;
  }
  
  .navbar-container {
    flex-wrap: wrap;
  }
  
  .navbar-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--secondary-500);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    overflow: hidden;
    padding: 0;
  }
  
  .navbar-nav.active {
    display: flex;
  }
  
  .navbar-nav.mobile-open {
    border-radius: 8px 8px 0 0;
  }
  
  .nav-link {
    width: 100%;
    padding: 16px 24px;
    height: auto;
    color: white;
    font-size: 16px;
    font-weight: 500;
    border-radius: 0;
    transition: background 0.2s, color 0.2s;
    text-align: left;
    border: none;
  }
  
  .nav-link:hover {
    background: var(--secondary-600);
    color: white;
  }
  
  .nav-link.active {
    background: var(--secondary-500);
    color: white;
    font-weight: 600;
  }
  
  .navbar-cta {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
    background: var(--secondary-500);
    border: 2px solid var(--secondary-500);
    cursor: pointer;
    padding: 12px;
    margin-left: auto;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    z-index: 10000;
    position: relative;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
  }
  
  .mobile-menu-btn:hover {
    background: var(--secondary-600);
    border-color: var(--secondary-600);
  }
  
  .mobile-menu-btn span {
    display: block;
    background: white;
    transition: all 0.3s ease;
    width: 24px;
    height: 3px;
    border-radius: 2px;
    margin: 2px 0;
  }
  
  .navbar.mobile-open .mobile-menu-btn span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  
  .navbar.mobile-open .mobile-menu-btn span:nth-child(2) {
    opacity: 0;
  }
  
  .navbar.mobile-open .mobile-menu-btn span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}
