/* ==========================================================================
   navbar.css — ScaleWthUs
   Styles for the top navigation bar and mobile hamburger menu
   ========================================================================== */

/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: var(--transition);
}
#navbar.scrolled {
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
body.light-theme #navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
}

/* ===== NAV INNER LAYOUT ===== */
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ===== LOGO ===== */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
}
.logo-mark {
  width: 36px; height: 36px;
  background: var(--blue);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800; color: white;
}
.logo span { color: var(--blue); }

/* ===== NAV LINKS ===== */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-2);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--white); }

/* ===== NAV CTA ===== */
.nav-cta {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* ===== HAMBURGER BUTTON ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* ===== HAMBURGER ACTIVE STATE ===== */
.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== MOBILE MENU OVERLAY ===== */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 24px;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--white);
  transition: var(--transition);
}
.mobile-menu a:hover { color: var(--blue); }

/* ===== MOBILE CLOSE BUTTON ===== */
.mobile-close {
  position: absolute;
  top: 24px; right: 24px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 28px;
  cursor: pointer;
  transition: var(--transition);
}
.mobile-close:hover { color: var(--blue); }
.navbar-logo{
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.navbar-logo img{
    height: 48px;
    width: auto;
    display: block;
    object-fit: contain;
    filter:
        drop-shadow(0 0 8px rgba(31,94,255,.25))
        drop-shadow(0 0 20px rgba(31,94,255,.15));
    transition: all 0.3s ease;
}

.navbar-logo:hover img{
    transform: scale(1.05);
    filter:
        drop-shadow(0 0 12px rgba(31,94,255,.5))
        drop-shadow(0 0 30px rgba(31,94,255,.3));
}