/*==== HEADER ====*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(18px);
  transition: 0.35s;
}

.header.scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.navbar {
  height: 85px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo img {
  width: 170px;
}

/* Desktop Navigation */
.nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
}

.nav-links a {
  color: #16284c;
  font-size: 15px;
  font-weight: 600;
  position: relative;
  transition: 0.3s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 3px;
  background: #4f46e5;
  transition: 0.3s;
  border-radius: 50px;
}

.nav-links a:hover::after,
.nav-links .active::after {
  width: 100%;
}

.nav-links a:hover {
  color: #4f46e5;
}

/* Button */
.nav-btn {
  height: 50px;
  padding: 0 28px;
}

/* Hamburger */
.menu-toggle {
  width: 48px;
  height: 48px;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: none;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: #16284c;
  border-radius: 20px;
  transition: 0.3s;
}

/* Overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 9998;
}

.overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Sidebar */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -320px;
  width: 300px;
  height: 100%;
  background: #fff;
  z-index: 9999;
  transition: 0.35s;
  box-shadow: 10px 0 40px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
}

.mobile-menu.show {
  left: 0;
}

.mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px;
  border-bottom: 1px solid #eee;
}

.mobile-header img {
  width: 140px;
}

.mobile-header button {
  background: none;
  font-size: 28px;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.mobile-menu nav a {
  padding: 18px 0;
  color: #16284c;
  font-weight: 600;
  border-bottom: 1px solid #eee;
}

.mobile-menu .btn {
  margin-top: 30px;
}

/*==== RESPONSIVE NAVBAR ====*/
@media (max-width: 991px) {
  .nav-links {
    display: none;
  }

  .nav-btn {
    display: none;
  }

  .menu-toggle {
    display: flex;
    order: 1;
  }

  .logo {
    order: 2;
    margin-left: auto;
  }

  .logo img {
    width: 150px;
  }

  .navbar {
    height: 75px;
  }
}

@media (max-width: 480px) {
  .logo img {
    width: 135px;
  }

  .mobile-menu {
    width: 280px;
  }
}
