/* Navigation Styles */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-height);
  display: grid;
  grid-template-columns: 180px minmax(300px, 1fr) 280px;
  align-items: center;
  gap: 15px;
}

/* Nav Left Section */
.nav-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 2px;
}

.logo-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-domain {
  color: var(--text-secondary);
  font-weight: 400;
}

/* Header Social Links */
.header-social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-social-link {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 16px;
  backdrop-filter: blur(10px);
}

.header-social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.header-social-link.linkedin:hover {
  background: rgba(10, 102, 194, 0.2);
  color: #0a66c2;
  border-color: #0a66c2;
  box-shadow: 0 4px 12px rgba(10, 102, 194, 0.3);
}

.header-social-link.discord:hover {
  background: rgba(88, 101, 242, 0.2);
  color: #5865f2;
  border-color: #5865f2;
  box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}

/* Navigation Jokes/Typing Effect */
.nav-jokes {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  min-width: 180px;
}

.typing-text {
  white-space: nowrap;
}

.typing-cursor {
  animation: blink 1s infinite;
  color: var(--primary);
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border-radius: 8px;
  position: relative;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--glass-bg);
}

.nav-link i {
  font-size: 14px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  position: relative;
}

.nav-toggle span {
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
@media (max-width: 1200px) {
  .nav-container {
    grid-template-columns: 180px minmax(180px, 1fr) 280px;
    gap: 15px;
  }
  
  .nav-left {
    gap: 16px;
  }
  
  .nav-jokes {
    font-size: 13px;
  }
  
  .header-social-links {
    gap: 10px;
  }
  
  .header-social-link {
    width: 38px;
    height: 38px;
    font-size: 15px;
  }
}

@media (max-width: 1024px) {
  .nav-container {
    grid-template-columns: 160px minmax(160px, 1fr) 250px;
    gap: 10px;
  }
  
  .nav-left {
    gap: 14px;
  }
  
  .nav-jokes {
    font-size: 12px;
    min-width: 140px;
  }
}

@media (max-width: 768px) {
  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .nav-left {
    display: flex;
    align-items: center;
    gap: 16px;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .header-social-links {
    gap: 12px;
  }
  
  .header-social-link {
    width: 44px;
    height: 44px;
    font-size: 18px;
    border-radius: 10px;
  }
  
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    flex-direction: column;
    padding: 20px 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-link {
    width: 100%;
    justify-content: center;
    padding: 16px;
    margin: 4px 0;
  }
  
  .nav-jokes {
    display: none;
  }
}

@media (max-width: 480px) {
  .header-social-links {
    gap: 10px;
  }
  
  .header-social-link {
    width: 40px;
    height: 40px;
    font-size: 16px;
    border-radius: 8px;
  }
  
  .logo {
    font-size: 24px;
  }
}
