/*--------------------------------------------------------------
# Header & Navigation - Minimal Professional Design
--------------------------------------------------------------*/

/* Header Base */
#header {
  transition: all 0.4s ease;
  z-index: 997;
  padding: 18px 0;
  background: transparent;
}

#header.header-scrolled {
  background: rgba(255, 255, 255, 0.98);
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

/* Header Wrapper - 3 Column Layout */
.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo Styles */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 40px;
  width: auto;
  transition: all 0.3s ease;
}

#header.header-scrolled .logo-img {
  height: 36px;
}

/* Center Navigation */
.navbar {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 32px;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: #5a6f8c;
  text-decoration: none;
  padding: 8px 0;
  transition: color 0.3s ease;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #47b2e4;
  transition: width 0.3s ease;
}

.nav-menu a:hover {
  color: #37517e;
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-menu a.active {
  color: #47b2e4;
  font-weight: 600;
}

.nav-menu a.active::after {
  width: 100%;
}

/* Header CTA */
.header-cta {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background: #47b2e4;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(71, 178, 228, 0.25);
}

.btn-cta:hover {
  background: #3aa3d5;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(71, 178, 228, 0.35);
  color: #fff;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid rgba(55, 81, 126, 0.2);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
}

.mobile-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #37517e;
  border-radius: 1px;
  transition: all 0.3s ease;
}

.mobile-nav-toggle:hover {
  border-color: #47b2e4;
  background: rgba(71, 178, 228, 0.05);
}

.mobile-nav-toggle.active {
  background: #47b2e4;
  border-color: #47b2e4;
}

.mobile-nav-toggle.active span {
  background: #fff;
}

.mobile-nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Navigation Backdrop */
.navbar-mobile-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 995;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.navbar-mobile-backdrop.active {
  display: block;
  opacity: 1;
}

/*--------------------------------------------------------------
# Responsive Navigation
--------------------------------------------------------------*/

@media (max-width: 991px) {
  #header {
    padding: 12px 0;
  }

  .logo-img {
    height: 36px;
  }

  #header.header-scrolled .logo-img {
    height: 32px;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  .btn-cta {
    display: none;
  }

  /* Mobile Navigation Menu */
  .navbar {
    position: fixed;
    top: 0;
    right: -280px;
    left: auto;
    transform: none;
    width: 260px;
    height: 100vh;
    background: #fff;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    transition: right 0.35s ease;
    z-index: 998;
    padding: 80px 25px 30px;
    overflow-y: auto;
  }

  .navbar.navbar-mobile {
    right: 0;
  }

  .nav-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }

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

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

  .nav-menu a::after {
    display: none;
  }

  .nav-menu a.active {
    color: #47b2e4;
  }

  /* Mobile Menu Header */
  .navbar.navbar-mobile::before {
    content: 'Menu';
    position: absolute;
    top: 25px;
    left: 25px;
    font-size: 18px;
    font-weight: 600;
    color: #37517e;
  }
}

@media (max-width: 576px) {
  .logo-img {
    height: 32px;
  }

  #header.header-scrolled .logo-img {
    height: 28px;
  }

  .mobile-nav-toggle {
    width: 36px;
    height: 36px;
  }

  .navbar {
    width: 240px;
    right: -240px;
    padding: 75px 20px 25px;
  }
}

/* Large screens */
@media (min-width: 1200px) {
  .logo-img {
    height: 44px;
  }

  #header.header-scrolled .logo-img {
    height: 38px;
  }

  .nav-menu {
    gap: 40px;
  }

  .nav-menu a {
    font-size: 14px;
  }

  .btn-cta {
    padding: 11px 28px;
  }
}