/* ====== Hirely-Inspired Header ====== */
.hirely-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  z-index: 1000;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.hirely-header.scrolled {
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.hirely-header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 50px;
  display: block;
}

/* ============= NAVIGATION ============= */
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  position: relative;
  z-index: 20;
}
.nav-links li {
  position: relative;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: #111;
  font-weight: 500;
  transition: color 0.25s ease;
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-links a:hover {
  color: #000;
}

/* Arrow icon */
.nav-links .submenu-arrow svg {
  transition: transform 0.25s ease;
}

/* ========= MEGA DROPDOWN STYLE ========= */
.nav-links .sub-menu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: max-height 0.3s ease, opacity 0.25s ease, transform 0.25s ease;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #000;
  color: #fff;
  padding: 20px 30px;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  width: 220px;
  pointer-events: none;
}
.nav-links .sub-menu.open {
  max-height: 500px; /* enough for your menu */
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.nav-links .sub-menu li {
  list-style: none;
}
.nav-links .sub-menu a {
  color: #bbb;
  font-size: 15px;
  padding: 8px 0;
  display: block;
  transition: color 0.2s ease;
}
.nav-links .sub-menu a:hover {
  color: #fff;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  position: relative;
}
.hamburger span {
  width: 25px;
  height: 3px;
  background: #000;
  border-radius: 2px;
  transition: all 0.25s ease;
}
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ======= RESPONSIVE ======= */
@media (max-width: 992px) {
  .hamburger {
    display: flex;
    position: absolute;
    right: 32px;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    background: #fff;
    position: fixed;
    right: 0;
    top: 0;
    width: 260px;
    height: 100%;
    padding: 80px 30px;
    box-shadow: -4px 0 10px rgba(0,0,0,0.1);
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links li {
    width: 100%;
  }
  .nav-links .sub-menu {
    position: static;
    width: 100%;
    background: none;
    box-shadow: none;
    border-radius: 0;
    color: #000;
    padding: 0;
    max-height: 0;
    opacity: 0;
    transform: translateY(0);
    transition: max-height 0.3s ease, opacity 0.25s ease;
    pointer-events: none;
  }
  .nav-links .sub-menu.open {
    max-height: 1000px;
    opacity: 1;
    pointer-events: all;
  }
  .nav-links .sub-menu a {
    color: #111;
  }
}
