/* ============================================================
   TK WEB SOLUTIONS — MASTER UNIFIED HEADER & NAVIGATION
   css/header.css  |  Version 1.0
   Single source of truth for global top navigation across all pages.
   ============================================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 5%;
  background: rgba(6, 13, 31, 0.92) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(26, 86, 255, 0.15) !important;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  background: rgba(3, 7, 18, 0.98) !important;
}

/* ── Brand / Logo ─────────────────────────────────────────── */
.navbar .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.navbar .logo img {
  height: 36px;
  width: 36px;
  object-fit: contain;
  border-radius: 8px;
}

.navbar .logo-text {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: #ffffff !important;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.navbar .logo-text span {
  color: #1a56ff !important;
}

.navbar .logo-badge {
  background: rgba(26, 86, 255, 0.25);
  border: 1px solid rgba(26, 86, 255, 0.45);
  color: #00e5ff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.navbar .logo-slogan {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  font-style: italic;
  margin-left: 6px;
}

@media (max-width: 1100px) {
  .navbar .logo-slogan { display: none; }
}

/* ── Menu Links ───────────────────────────────────────────── */
.navbar .nav-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar .nav-menu li a {
  color: rgba(255, 255, 255, 0.75) !important;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  position: relative;
  transition: color 0.2s ease;
  padding: 6px 0;
  white-space: nowrap;
}

.navbar .nav-menu li a:not(.nav-cta):hover,
.navbar .nav-menu li a.active {
  color: #00e5ff !important;
}

.navbar .nav-menu li a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #1a56ff, #00e5ff);
  transition: width 0.25s ease;
  border-radius: 2px;
}

.navbar .nav-menu li a:not(.nav-cta):hover::after,
.navbar .nav-menu li a.active::after {
  width: 100%;
}

/* ── Primary CTA ─────────────────────────────────────────── */
.navbar .nav-cta {
  background: linear-gradient(135deg, #1a56ff, #0052ff) !important;
  color: #ffffff !important;
  padding: 8px 18px !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  box-shadow: 0 4px 18px rgba(26, 86, 255, 0.35) !important;
  transition: all 0.25s ease !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.navbar .nav-cta:hover {
  background: linear-gradient(135deg, #0d3acc, #1a56ff) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(26, 86, 255, 0.5) !important;
  color: #fff !important;
}

.navbar .nav-cta::after {
  display: none !important;
}

/* ── Hamburger Toggle (Mobile) ────────────────────────────── */
.navbar .hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  z-index: 1001;
}

.navbar .hamburger span {
  width: 24px;
  height: 2.5px;
  background: #ffffff;
  border-radius: 2px;
  display: block;
  transition: all 0.3s ease;
}

/* ── Responsive Drawer (Mobile / Tablet) ──────────────────── */
@media (max-width: 980px) {
  .navbar .hamburger {
    display: flex;
  }
  
  .navbar .nav-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(6, 13, 31, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(26, 86, 255, 0.2);
    padding: 24px 6% 32px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  }
  
  .navbar .nav-menu.open {
    display: flex;
    animation: navDrawerFade 0.25s ease forwards;
  }

  .navbar .nav-menu li {
    width: 100%;
  }

  .navbar .nav-menu li a {
    display: block;
    width: 100%;
    padding: 10px 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .navbar .nav-menu li a.nav-cta {
    display: inline-flex !important;
    width: auto !important;
    margin-top: 10px;
    padding: 12px 24px !important;
  }
}

@keyframes navDrawerFade {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
