.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  transition: background var(--transition-normal), backdrop-filter var(--transition-normal);
}

.header.scrolled {
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-glass-border);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-link {
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

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

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: none;
  padding: 0.5rem;
}

.mobile-toggle span {
  width: 25px;
  height: 2px;
  background: var(--color-text);
  transition: all var(--transition-normal);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.98);
    flex-direction: column;
    justify-content: center;
    gap: 3rem;
    transform: translateX(100%);
    transition: transform var(--transition-slow);
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-link {
    font-size: 1.5rem;
  }
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: morph 8s ease-in-out infinite, gradient-shift 10s ease infinite;
  background-size: 200% 200%;
}

.hero-gradient-orb:nth-child(1) {
  width: 400px;
  height: 400px;
  background: var(--gradient-primary);
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.hero-gradient-orb:nth-child(2) {
  width: 300px;
  height: 300px;
  background: var(--gradient-secondary);
  bottom: 20%;
  right: 15%;
  animation-delay: -3s;
}

.hero-gradient-orb:nth-child(3) {
  width: 250px;
  height: 250px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
  top: 50%;
  left: 50%;
  animation-delay: -5s;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 2rem;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: var(--color-glass);
  border: 1px solid var(--color-glass-border);
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--color-primary);
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  position: relative;
}

.hero-title .gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradient-shift 5s ease infinite;
}

.hero-title .glitch-text {
  position: relative;
  display: inline-block;
}

.hero-title .glitch-text::before,
.hero-title .glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

.hero-title .glitch-text::before {
  color: var(--color-primary);
  animation: glitch 0.3s infinite;
  clip-path: inset(0 0 50% 0);
}

.hero-title .glitch-text::after {
  color: var(--color-accent);
  animation: glitch 0.3s infinite reverse;
  clip-path: inset(50% 0 0 0);
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--color-text-muted);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: bounce 2s infinite;
}

.scroll-indicator span {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.scroll-indicator .mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--color-text-muted);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator .mouse::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 2px;
  animation: scroll-wheel 1.5s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

@keyframes scroll-wheel {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

.floating-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.floating-shapes .shape {
  position: absolute;
  border: 1px solid var(--color-glass-border);
  animation: float 6s ease-in-out infinite;
}

.floating-shapes .shape:nth-child(1) {
  width: 60px;
  height: 60px;
  top: 20%;
  left: 10%;
  border-radius: var(--radius-sm);
  animation-delay: 0s;
}

.floating-shapes .shape:nth-child(2) {
  width: 40px;
  height: 40px;
  top: 60%;
  right: 15%;
  border-radius: 50%;
  animation-delay: -2s;
}

.floating-shapes .shape:nth-child(3) {
  width: 80px;
  height: 80px;
  bottom: 30%;
  left: 20%;
  border-radius: var(--radius-md);
  animation-delay: -4s;
}

.floating-shapes .shape:nth-child(4) {
  width: 50px;
  height: 50px;
  top: 30%;
  right: 25%;
  border-radius: 50%;
  animation-delay: -1s;
}

.floating-shapes .shape:nth-child(5) {
  width: 70px;
  height: 70px;
  bottom: 20%;
  right: 10%;
  border-radius: var(--radius-sm);
  animation-delay: -3s;
}
