/* ═══════════════════════════════════════════
   TalentSync — Navbar (Dark Blue + Gold + White)
═══════════════════════════════════════════ */

.navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  height: 68px;
  background: linear-gradient(135deg, rgba(4, 10, 40, 0.97), rgba(6, 15, 60, 0.95));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(246, 211, 101, 0.15);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  z-index: 1000;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}

.nav-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(246, 211, 101, 0.3);
}

.nav-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav-title {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  border-left: 2px solid rgba(246, 211, 101, 0.4);
  padding-left: 10px;
}

.nav-title-main {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  color: #ffffff;
}

.nav-title-sub {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 0.68rem;
  color: rgba(246, 211, 101, 0.85);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  margin: 0;
  padding: 4px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(246, 211, 101, 0.1);
  border-radius: 999px;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 0.86rem;
  color: rgba(220, 230, 255, 0.85);
  text-decoration: none;
  white-space: nowrap;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.nav-links a:hover {
  color: #f6d365;
  background: rgba(246, 211, 101, 0.08);
  border-color: rgba(246, 211, 101, 0.2);
}

.active-link,
.nav-links a.active-link {
  color: #0b1640 !important;
  background: linear-gradient(135deg, #ffe27a 0%, #f6d365 50%, #d4a017 100%) !important;
  font-weight: 600 !important;
  border: 1px solid rgba(246, 211, 101, 0.5) !important;
  box-shadow: 0 2px 12px rgba(246, 211, 101, 0.3) !important;
  border-radius: 999px !important;
  padding: 0.42rem 0.95rem !important;
  text-decoration: none !important;
}

.active-link:hover,
.nav-links a.active-link:hover {
  color: #0b1640 !important;
  box-shadow: 0 4px 18px rgba(246, 211, 101, 0.45) !important;
}

.nav-contact-btn {
  padding: 0.52rem 1.4rem;
  background: linear-gradient(135deg, #f6d365 0%, #d4a017 100%);
  color: #0b1640;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.84rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(246, 211, 101, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(246, 211, 101, 0.45);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 60;
}

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

.hamburger span:nth-child(2) {
  width: 14px;
  background: rgba(246, 211, 101, 0.9);
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 7px); width: 22px; }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -7px); width: 22px; }

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 98;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-overlay.open,
.nav-overlay.active {
  opacity: 1;
  pointer-events: all;
}

@media (max-width: 1024px) {
  .navbar { padding: 0 2rem; }
  .nav-links a { font-size: 0.8rem; padding: 0.38rem 0.75rem; }
  .nav-contact-btn { padding: 0.45rem 1.1rem; font-size: 0.8rem; }
}

@media (max-width: 768px) {
  .navbar { padding: 0 1.5rem; height: 62px; }
  .hamburger { display: flex; }
  .nav-overlay { display: block; }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 72vw;
    max-width: 280px;
    height: 100vh;
    background: linear-gradient(160deg, #050d2e 0%, #0a1540 60%, #0d1e52 100%);
    border-left: 1px solid rgba(246, 211, 101, 0.15);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.5);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    padding: 5.5rem 1.6rem 2rem;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99;
    overflow-y: auto;
  }

  .nav-menu.open,
  .nav-menu.active { right: 0; }

  .nav-links {
    position: static;
    transform: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    background: transparent;
    border: none;
    padding: 0;
  }

  .nav-links li { width: 100%; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }

  .nav-links a {
    display: flex;
    padding: 0.9rem 0.6rem;
    font-size: 0.93rem;
    color: rgba(210, 220, 255, 0.85);
    border-radius: 0;
    border: none;
    background: transparent;
  }

  .nav-links a:hover {
    color: #f6d365;
    background: rgba(246, 211, 101, 0.06);
    border: none;
  }

  .active-link,
  .nav-links a.active-link {
    background: rgba(246, 211, 101, 0.1) !important;
    color: #f6d365 !important;
    border-left: 3px solid #f6d365 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding-left: 0.85rem !important;
  }

  .nav-contact-btn {
    width: 100%;
    margin-top: 1.5rem;
    padding: 0.8rem;
    font-size: 0.9rem;
    text-align: center;
    border-radius: 10px;
  }
}

@media (max-width: 480px) {
  .navbar { padding: 0 1rem; height: 58px; }
  .nav-logo { width: 34px; height: 34px; }
  .nav-title-main { font-size: 0.88rem; }
  .nav-title-sub { font-size: 0.62rem; }
}
