/* Premium Animated Header Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  height: 72px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.header.nav-scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12), 
              0 2px 8px rgba(139, 63, 168, 0.08),
              0 0 0 1px rgba(244, 118, 42, 0.05);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
}

.header__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 6%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
}

.header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.header__logo:hover {
  transform: scale(1.03);
}

.header__logo-img {
  max-height: 44px;
  width: auto;
  object-fit: contain;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  flex: 1;
  justify-content: center;
  padding-top: 2px;
}

.header__link {
  display: inline-flex;
  align-items: center;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  color: #2D2D3A;
  transition: color 0.25s ease;
  position: relative;
  padding-bottom: 2px;
}

.header__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #F4762A, #4BC8C0);
  border-radius: 2px;
  transition: width 0.3s ease, left 0.3s ease;
}

.header__link:hover {
  color: #F4762A;
}

.header__link:hover::after,
.header__link.nav-active::after {
  width: 100%;
  left: 0;
}

.header:not(.nav-scrolled) .header__link.nav-active::after {
  background: rgba(255, 255, 255, 0.8);
}

.header__link.nav-active {
  color: #F4762A;
}

.header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  min-height: 44px;
  background: linear-gradient(135deg, #F4762A, #F06420);
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 50px;
  border: none;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(244, 118, 42, 0.4);
  cursor: pointer;
  white-space: nowrap;
  will-change: transform;
}

.header__cta:hover {
  color: white;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 28px rgba(244, 118, 42, 0.5);
}

.header__cta:active {
  transform: translateY(0) scale(1);
}

.header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10001;
  border-radius: 8px;
}

.header__hamburger-line {
  width: 24px;
  height: 2px;
  background: #2D2D3A;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.76, 0, 0.24, 1);
}

.header__hamburger[aria-expanded="true"] .header__hamburger-line {
  background: var(--color-bg);
}

.header__hamburger[aria-expanded="true"] .header__hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.header__hamburger[aria-expanded="true"] .header__hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.header__hamburger[aria-expanded="true"] .header__hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.header__mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, #1a0b2e 0%, #2d1b4e 25%, #4a1d6f 50%, #6b2d8f 75%, #8b3fa8 100%);
  clip-path: circle(0% at calc(100% - 36px) 36px);
  transition: clip-path 0.5s cubic-bezier(0.65, 0, 0.35, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  will-change: clip-path;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.header__mobile-menu.active {
  clip-path: circle(150% at calc(100% - 36px) 36px);
}

.header__mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: var(--space-2xl) var(--space-lg);
  gap: var(--space-lg);
}

.header__mobile-link {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-bg);
  transition: color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  transform: translateY(20px) translateZ(0);
  will-change: transform, opacity;
}

.header__mobile-menu.active .header__mobile-link {
  opacity: 1;
  transform: translateY(0);
}

.header__mobile-menu.active .header__mobile-link:nth-child(1) {
  transition-delay: 0.05s;
}

.header__mobile-menu.active .header__mobile-link:nth-child(2) {
  transition-delay: 0.1s;
}

.header__mobile-menu.active .header__mobile-link:nth-child(3) {
  transition-delay: 0.15s;
}

.header__mobile-menu.active .header__mobile-link:nth-child(4) {
  transition-delay: 0.2s;
}

.header__mobile-menu.active .header__mobile-link:nth-child(5) {
  transition-delay: 0.25s;
}

.header__mobile-menu.active .header__mobile-link:nth-child(6) {
  transition-delay: 0.3s;
}

.header__mobile-menu.active .header__mobile-cta {
  transition-delay: 0.35s;
}

.header__mobile-link:hover,
.header__mobile-link.nav-active {
  color: var(--color-primary);
}

.header__mobile-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: linear-gradient(135deg, #F4762A, #FF8C42);
  color: white;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(244, 118, 42, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  opacity: 0;
  transform: translateY(20px) translateZ(0);
  will-change: transform, opacity;
}

.header__mobile-menu.active .header__mobile-cta {
  opacity: 1;
  transform: translateY(0);
}

.header__mobile-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(244, 118, 42, 0.35);
}

@media (max-width: 768px) {
  .header__nav,
  .header__cta {
    display: none;
  }
  
  .header__hamburger {
    display: flex;
  }
}

@media (min-width: 769px) {
  .header__mobile-menu {
    display: none;
  }
}
