/**
 * Header Styles
 * @package Karden_Avenir
 */

/*  HEADER  */
.header {
  height: var(--header-height);
  background: linear-gradient(90deg, #00000d 0%, #061226 8%, #274383 25%, #274383 50%, #274383 75%, #061226 92%, #00000d 100%);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: all var(--transition-base);
}

.header.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 13, 0.4);
  height: calc(var(--header-height) - 10px);
}

.header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(41, 199, 218, 0.3), transparent);
}

.header-container {
  max-width: 1400px;
  margin: auto;
  height: 100%;
  padding: 0 var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 52px;
  width: auto;
  transition: transform var(--transition-base);
  flex-shrink: 0;
}

.logo:hover {
  transform: scale(1.03);
}

/* Navigation Desktop */
.menu {
  display: flex;
  gap: 28px;
}

.menu a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  position: relative;
  padding: 8px 0;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: all var(--transition-base);
  transform: translateX(-50%);
  border-radius: 2px;
}

.menu a:hover::after,
.menu a.active::after {
  width: 100%;
}

.menu a:hover {
  color: var(--cyan);
}

.menu a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
  border-radius: 4px;
}

.right-header {
  display: flex;
  gap: 16px;
  align-items: center;
}

.btn-header-contact {
  padding: 9px 20px;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 500;
  transition: all var(--transition-base);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-header-contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn-header-contact:hover::before {
  left: 100%;
}

.btn-header-contact:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-cyan);
}

.btn-header-contact:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

/* Menu Burger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  cursor: pointer;
  padding: 0;
  z-index: 110;
  transition: all var(--transition-base);
}

.menu-toggle:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(41, 199, 218, 0.3);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition-base);
}

.menu-toggle span:nth-child(1) { margin-bottom: 5px; }
.menu-toggle span:nth-child(3) { margin-top: 5px; }

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) { opacity: 0; }

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-dark);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  padding: 90px 24px 40px;
  overflow-y: auto;
}

.mobile-nav::before {
  content: "";
  position: absolute;
  top: 20%;
  left: 10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(41, 199, 218, 0.1), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav a {
  color: #fff;
  text-decoration: none;
  font-size: clamp(15px, 3.5vw, 18px);
  font-weight: 500;
  padding: 11px 26px;
  border-radius: var(--radius-md);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  text-align: center;
  width: 100%;
  max-width: 240px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
}

.mobile-nav.open a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav.open a:nth-child(1) { transition-delay: 0.05s; }
.mobile-nav.open a:nth-child(2) { transition-delay: 0.1s; }
.mobile-nav.open a:nth-child(3) { transition-delay: 0.15s; }
.mobile-nav.open a:nth-child(4) { transition-delay: 0.2s; }
.mobile-nav.open a:nth-child(5) { transition-delay: 0.25s; }
.mobile-nav.open a:nth-child(6) { transition-delay: 0.3s; }
.mobile-nav.open a:nth-child(7) { transition-delay: 0.35s; }

.mobile-nav a:hover,
.mobile-nav a:focus,
.mobile-nav a.active {
  color: var(--cyan);
  background: rgba(41, 199, 218, 0.1);
  border-color: rgba(41, 199, 218, 0.2);
}