.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.98) 0%, rgba(20, 20, 30, 0.95) 100%);
  backdrop-filter: blur(15px) saturate(150%);
  border-bottom: 1px solid rgba(255, 0, 128, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  padding: 12px 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 0, 128, 0.03) 25%, 
    rgba(0, 255, 255, 0.03) 75%, 
    transparent 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.header:hover::before {
  opacity: 1;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  position: relative;
  z-index: 2;
}

.logo {
  position: absolute;
  left: 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo a{
  text-decoration: none;
  display: block;
  position: relative;
  z-index: 2;
}

.logo::after {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: radial-gradient(circle, rgba(255, 0, 128, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.25s ease;
}

.logo:hover {
  transform: scale(1.05) rotate(1deg);
}

.logo:hover::after {
  opacity: 1;
  transform: scale(1.1);
}

.logo-text {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 2px;
  background: linear-gradient(45deg, #ff0080, #00ffff, #ff0080);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.navigation {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 25px;
  margin: 0;
  padding: 6px 15px;
  background: rgba(255, 255, 255, 0.015);
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.nav-item {
  position: relative;
}

.nav-link {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  padding: 10px 16px;
  border-radius: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 0, 128, 0.15), transparent);
  transition: left 0.4s ease;
}

.nav-link:hover::before {
  left: 100%;
}

.nav-link:hover {
  color: var(--neon-pink);
  background: rgba(255, 0, 128, 0.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255, 0, 128, 0.2);
}

.nav-link.active {
  color: white;
  background: linear-gradient(135deg, rgba(255, 0, 128, 0.7), rgba(255, 0, 128, 0.5));
  box-shadow: 
    0 0 15px rgba(255, 0, 128, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(-0.5px);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--neon-pink);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--neon-pink);
}

.header-controls {
  position: absolute;
  right: 0;
  display: flex;
  align-items: center;
  gap: 20px;
}

.terms-link {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(0, 255, 255, 0.25);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.terms-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(0, 255, 255, 0.08), rgba(0, 255, 255, 0.04));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.terms-link:hover {
  border-color: var(--neon-blue);
  color: var(--neon-blue);
  box-shadow: 
    0 0 12px rgba(0, 255, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.terms-link:hover::before {
  opacity: 1;
}

.language-switcher {
  display: flex;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border-radius: 20px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 16px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.lang-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,  rgba(255, 0, 128, 0.123));
  opacity: 0;
  transition: opacity 0.25s ease;
  border-radius: 16px;
}

.lang-btn.active {
  color: white;
  transform: scale(1.03);
}

.lang-btn.active::before {
  opacity: 1;
}

.lang-btn:not(.active):hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.02);
}

.logo-image {
  height: 50px;
  width: auto;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 0 8px rgba(255, 0, 128, 0.25));
  border-radius: 12px;
}

.logo-image:hover {
  transform: scale(1.08) rotate(3deg);
  filter: 
    drop-shadow(0 0 15px rgba(255, 0, 128, 0.5))
    drop-shadow(0 0 25px rgba(0, 255, 255, 0.2))
    brightness(1.08)
    contrast(1.05);
}

/* Покращені анімації */
@keyframes subtlePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.01); }
}

.header-controls:hover .terms-link {
  animation: subtlePulse 3s infinite;
}

/* М'якші ефекти для активних елементів */
.nav-link.active {
  animation: softGlow 3s ease-in-out infinite alternate;
}

@keyframes softGlow {
  from {
    box-shadow: 
      0 0 15px rgba(255, 0, 128, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.15);
  }
  to {
    box-shadow: 
      0 0 20px rgba(255, 0, 128, 0.6),
      0 0 30px rgba(255, 0, 128, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
}

/* Бургер меню для мобільних пристроїв */
.burger-menu-button {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  cursor: pointer;
  position: absolute;
  right: 20px;
  z-index: 1001;
}

.burger-menu-button span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--neon-pink);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Анімація для кнопки бургер меню */
.burger-menu-button.active span:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}

.burger-menu-button.active span:nth-child(2) {
  opacity: 0;
}

.burger-menu-button.active span:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .header {
    padding: 10px 0;
  }
  
  .header-content {
    justify-content: space-between;
  }
  
  .burger-menu-button {
    display: flex;
  }
  
  .navigation {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.98) 0%, rgba(20, 20, 30, 0.95) 100%);
    backdrop-filter: blur(15px) saturate(150%);
    border-left: 1px solid rgba(255, 0, 128, 0.15);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    transition: right 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 80px;
  }
  
  .navigation.active {
    right: 0;
  }
  
  .nav-menu {
    flex-direction: column;
    width: 100%;
    padding: 20px;
    background: none;
    border: none;
  }
  
  .nav-item {
    width: 100%;
    margin-bottom: 15px;
  }
  
  .nav-link {
    display: block;
    width: 100%;
    text-align: center;
    padding: 15px;
    font-size: 0.85rem;
  }
  
  .logo {
    position: relative;
  }
  
  .logo-text {
    font-size: 1.4rem;
    letter-spacing: 1.5px;
  }
  
  .logo-image {
    height: 35px;
  }
  
  .header-controls {
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 8px 0;
  }
  
  .nav-link {
    font-size: 0.75rem;
    padding: 6px 10px;
  }
  
  .header-controls {
    gap: 12px;
  }
  
  .terms-link {
    padding: 6px 12px;
    font-size: 0.75rem;
  }
  
  .lang-btn {
    padding: 5px 10px;
    font-size: 0.75rem;
  }
  
  .logo-image {
    height: 30px;
  }
}