.header-main {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 15, 35, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.header-main.scrolled {
  background: rgba(15, 15, 35, 0.98);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.nav-brand {
  display: flex;
  align-items: center;
  z-index: 10;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.brand-link:hover {
  transform: scale(1.05);
}

.brand-logo {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-image {
  width: 32px;
  height: 32px;
  object-fit: contain;
  position: relative;
  z-index: 2;
}

.logo-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.3) 0%, transparent 70%);
  animation: pulse 3s ease-in-out infinite;
}

.brand-text {
  display: flex;
  align-items: baseline;
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1;
}

.brand-name {
  color: var(--text-primary);
  line-height: 1.2;
  text-transform: uppercase;
}

.brand-accent {
 background: linear-gradient(90deg, #44b6fe 0%, #a048ff 100%);
 -webkit-text-fill-color: transparent;
 -webkit-background-clip: text;
 -webkit-text-fill-color: transparent;
 animation: shine 3s ease-in-out infinite alternate;
 background-clip: text;
 background-size: 300% 100%;
 margin-left: 2px;
 line-height: 1.2;
 text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.nav-link.active {
  color: #667eea;
  background: rgba(102, 126, 234, 0.1);
}

.nav-icon {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.nav-link:hover .nav-icon {
  transform: scale(1.1);
}

.nav-link-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.nav-link:hover .nav-link-glow {
  left: 100%;
}

.external-link::after {
  content: '';
  width: 4px;
  height: 4px;
  background: #667eea;
  border-radius: 50%;
  margin-left: 0.25rem;
}

.nav-cta {
  margin-left: 1rem;
}

.btn-nav {
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

.btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  50% { left: -100%; }
  100% { left: 100%; }
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger {
  width: 24px;
  height: 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.mobile-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(15, 15, 35, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 2rem;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.mobile-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-logo {
  width: 32px;
  height: 32px;
}

.mobile-brand-text {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.mobile-close {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.mobile-close:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.mobile-nav-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.mobile-nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(102, 126, 234, 0.3);
  transform: translateX(10px);
}

.mobile-nav-link i {
  font-size: 1.25rem;
  width: 24px;
  text-align: center;
}

.mobile-nav-cta {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.header-bg-effects {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.header-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200%;
  background: linear-gradient(180deg, rgba(102, 126, 234, 0.1) 0%, transparent 100%);
  opacity: 0.5;
}

.header-particles {
  position: absolute;
  width: 100%;
  height: 100%;
}

.header-particles .particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(102, 126, 234, 0.6);
  border-radius: 50%;
  animation: particleFloat 8s infinite linear;
}

.header-particles .particle:nth-child(1) {
  left: 20%;
  animation-delay: 0s;
}

.header-particles .particle:nth-child(2) {
  left: 50%;
  animation-delay: -3s;
}

.header-particles .particle:nth-child(3) {
  left: 80%;
  animation-delay: -6s;
}

@keyframes particleFloat {
  0% {
    transform: translateY(100px) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-20px) scale(1);
    opacity: 0;
  }
}

@media (max-width: 1024px) {
  .nav-links {
    gap: 1rem;
  }
  
  .nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }
  
  .nav-cta {
    margin-left: 0.5rem;
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0 1rem;
    height: 60px;
  }
  
  .nav-menu {
    display: none;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .brand-text {
    font-size: 1.25rem;
  }
  
  .brand-logo {
    width: 36px;
    height: 36px;
  }
  
  .logo-image {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0 0.75rem;
  }
  
  .mobile-menu-content {
    padding: 1.5rem;
  }
  
  .mobile-nav-link {
    padding: 0.75rem;
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-particles .particle {
    animation: none;
  }
  
  .logo-glow {
    animation: none;
  }
  
  .btn-shine {
    animation: none;
  }
}

@media (prefers-contrast: high) {
  .header-main {
    background: rgba(0, 0, 0, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.3);
  }
  
  .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
  }
}