/* ========================================
   Header Styles - Bold Creative Design
   ======================================== */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 14, 39, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

header.scrolled {
  background: rgba(10, 14, 39, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-content {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 16px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  transition: all 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.logo-text {
  background: var(--gradient-orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Navigation */
.header-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--gradient-orange);
  transition: transform 0.3s ease;
}

.nav-menu a:hover {
  color: var(--orange-primary);
}

.nav-menu a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-menu a.active {
  background: rgba(255, 107, 53, 0.1);
  color: var(--orange-primary);
}

/* Language Toggle */
.lang-toggle {
  padding: 8px 16px;
  border-radius: 20px;
  border: 2px solid var(--teal-primary);
  background: transparent;
  color: var(--teal-primary);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-toggle:hover {
  background: var(--teal-primary);
  color: var(--bg-dark);
  transform: scale(1.05);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

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

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Overlay */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 14, 39, 0.98);
  backdrop-filter: blur(10px);
  z-index: 999;
  padding: 100px 40px 40px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-menu a {
  display: block;
  padding: 20px;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.mobile-nav-menu a:hover {
  background: rgba(255, 107, 53, 0.1);
  color: var(--orange-primary);
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    padding: 12px 20px;
  }
  
  .logo-text {
    display: none;
  }
  
  .logo-img {
    width: 40px;
    height: 40px;
  }
  
  .nav-menu {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .mobile-menu {
    display: block;
  }
}

/* ── Client Portal Login Button ───────────────────────────────── */
.header-portal-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  color: white;
  border-radius: 25px;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 3px 12px rgba(255, 107, 53, 0.35);
}

.header-portal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
  color: white;
}

.header-portal-btn svg {
  flex-shrink: 0;
}

/* Mobile portal login link */
.mobile-portal-btn {
  display: block;
  width: 100%;
  padding: 20px;
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  color: white !important;
  border-radius: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.mobile-portal-btn:hover {
  opacity: 0.9;
  color: white !important;
}

/* Hide desktop portal btn on mobile */
@media (max-width: 768px) {
  .header-portal-btn {
    display: none;
  }
}