.header {
  background-color: rgba(83, 83, 82, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  transform: translateY(-100%);
  transition: transform 0.3s ease-in-out;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 0, 0, 0.05) 0%,
    rgba(139, 0, 0, 0.05) 25%,
    transparent 50%,
    rgba(139, 0, 0, 0.05) 75%,
    rgba(255, 0, 0, 0.05) 100%
  );
  animation: pulse-glow 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.6;
  }
}

.header.visible {
  transform: translateY(0);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
}

.logo-icon {
  width: 47px;
  height: 36px;
  flex-shrink: 0;
  animation: butterfly-float 4s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

@keyframes butterfly-float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-3px) rotate(-2deg);
  }
  50% {
    transform: translateY(0) rotate(0deg);
  }
  75% {
    transform: translateY(-3px) rotate(2deg);
  }
}

.logo-text {
  font-family: 'Avenir Next W1G', sans-serif;
  font-weight: 600;
  font-size: 32px;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3),
    0 0 20px rgba(255, 255, 255, 0.1);
  transition: text-shadow 0.3s ease;
}

.logo:hover .logo-text {
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.5),
    0 0 30px rgba(255, 255, 255, 0.2);
}

.navigation {
  margin-left: 75px;
  display: flex;
  gap: 28px;
  align-items: center;
}

.header-social-link {
  margin-left: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.header-social-link:hover {
  opacity: 0.7;
  transform: scale(1.05);
}

.header-x-logo {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.nav-link {
  font-family: 'Avenir Next W1G', sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: rgba(255, 251, 251, 0.5);
  text-decoration: none;
  transform: (3px);
  position: relative;
  padding: 5px 10px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: white;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.nav-link:hover::before {
  width: 100%;
}

.nav-link.active {
  color: white;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.nav-link.active::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  transform: translateX(-50%);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
  position: relative;
  width: 40px;
  height: 40px;
}

.mobile-menu-toggle span {
  width: 30px;
  height: 3px;
  background: #fff;
  transition: all 0.3s ease;
  border-radius: 2px;
  display: block;
  position: absolute;
}

.mobile-menu-toggle span:nth-child(1) {
  top: 10px;
}

.mobile-menu-toggle span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.mobile-menu-toggle span:nth-child(3) {
  bottom: 10px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

@media screen and (max-width: 1024px) {
  .header-container {
    padding: 10px 15px;
  }

  .navigation {
    margin-left: 40px;
    gap: 20px;
  }

  .nav-link {
    font-size: 18px;
  }

  .header-social-link {
    margin-left: 20px;
  }

  .header-x-logo {
    width: 28px;
    height: 28px;
  }

  .logo-text {
    font-size: 28px;
  }

  .logo-icon {
    width: 40px;
    height: 30px;
  }
}

@media screen and (max-width: 768px) {
  .header-container {
    justify-content: space-between;
    padding: 8px 15px;
  }

  .logo-text {
    font-size: 24px;
  }

  .logo-icon {
    width: 35px;
    height: 27px;
  }

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

  .navigation {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(28, 28, 28, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    margin-left: 0;
    padding: 80px 30px 30px;
    gap: 30px;
    transition: right 0.4s ease;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .navigation.active {
    right: 0;
  }

  .nav-link {
    font-size: 20px;
    padding: 10px 0;
    color: rgba(255, 251, 251, 0.8);
  }

  .header-social-link {
    margin-left: 0;
    margin-top: 0;
    padding: 10px 0;
    justify-content: flex-start;
  }

  .header-x-logo {
    width: 32px;
    height: 32px;
  }
}

@media screen and (max-width: 480px) {
  .logo-text {
    font-size: 20px;
  }

  .logo-icon {
    width: 30px;
    height: 23px;
  }

  .navigation {
    width: 250px;
    padding: 70px 20px 20px;
  }

  .nav-link {
    font-size: 18px;
  }
}
