.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: #18192a;
  color: #fff;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 99999 !important;
  border-bottom: 2px solid #00fff7;
  box-shadow: 0 2px 16px #00fff744;
  margin-bottom: 10px;
}
.navbar-logo-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.logo {
  height: 48px;
  width: 48px;
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 0 16px #ff00cc, 0 0 32px #00fff7;
}
.site-title {
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: 2px;
  color: #ff00cc;
  text-shadow: 0 0 8px #ff00cc, 0 0 16px #00fff7;
  animation: cyberpunkFlicker 2.8s infinite both;
}

@keyframes cyberpunkFlicker {
  0%, 100% { opacity: 1; text-shadow: 0 0 8px #ff00cc, 0 0 16px #00fff7; }
  2% { opacity: 0.7; }
  4% { opacity: 0.4; }
  6% { opacity: 0.9; }
  8% { opacity: 0.5; }
  10% { opacity: 1; }
  11% { opacity: 0.6; }
  12% { opacity: 1; }
  14% { opacity: 0.8; }
  16% { opacity: 1; }
  18% { opacity: 0.7; }
  20% { opacity: 1; }
  22% { opacity: 0.5; }
  24% { opacity: 1; }
  28% { opacity: 0.8; }
  32% { opacity: 1; }
  36% { opacity: 0.6; }
  40% { opacity: 1; }
  100% { opacity: 1; }
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}
.nav-links a {
  color: #00fff7;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 1px;
  transition: color 0.2s, text-shadow 0.2s;
  text-shadow: 0 0 6px #00fff7, 0 0 12px #ff00cc44;
}
.nav-links a:hover, .nav-links a.active {
  color: #ff00cc;
  text-shadow: 0 0 12px #ff00cc, 0 0 24px #00fff7;
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10001;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background: #00fff7;
  border-radius: 2px;
  transition: all 0.3s ease;
  box-shadow: 0 0 8px #00fff7;
}

.mobile-menu-toggle:hover .hamburger-line {
  background: #ff00cc;
  box-shadow: 0 0 8px #ff00cc;
}

/* Mobile menu toggle animation */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile menu close button */
.mobile-menu-close {
  display: none; /* Hidden by default on desktop */
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: #00fff7;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10001;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 0 8px #00fff7;
}

.mobile-menu-close:hover {
  color: #ff00cc;
  box-shadow: 0 0 12px #ff00cc;
  transform: scale(1.1);
}

.close-icon {
  font-weight: bold;
  line-height: 1;
}

.highlight, .neon-keyword {
  color: #39ff14;
  text-shadow:
    0 0 2px #000,
    0 0 8px #ff00cc,
    0 0 16px #ff00cc;
  font-weight: 700;
}

/* Remove or override any other .highlight or .neon-keyword color or text-shadow rules below */

.back-to-top {
  position: fixed;
  right: 2rem;
  bottom: 4.5rem;
  z-index: 3100;
  background: linear-gradient(135deg, #00fff7 0%, #ff00cc 100%);
  color: #18192a;
  font-size: 2rem;
  border-radius: 50%;
  width: 3.2rem;
  height: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px #00fff7, 0 0 32px #ff00cc;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.back-to-top:hover, .back-to-top:focus {
  background: linear-gradient(135deg, #ff00cc 0%, #00fff7 100%);
  color: #fff;
  box-shadow: 0 0 32px #ff00cc, 0 0 64px #00fff7;
  transform: scale(1.12) translateY(-4px);
}


/* Mobile responsive styles */
@media (max-width: 768px) {
  
  .navbar {
    padding: 1rem;
  }
  
  .site-title {
    font-size: 1.5rem;
  }
  
  .logo {
    height: 40px;
    width: 40px;
  }
  
  /* Show mobile menu toggle */
  .mobile-menu-toggle {
    display: flex;
  }
  
  /* Hide desktop nav links */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(24, 25, 42, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right 0.3s ease;
    z-index: 10000;
    border-left: 2px solid #00fff7;
    box-shadow: -2px 0 16px #00fff744;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links li {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.3s ease;
  }
  
  .nav-links.active li {
    opacity: 1;
    transform: translateX(0);
  }
  
  .nav-links li:nth-child(1) { transition-delay: 0.1s; }
  .nav-links li:nth-child(2) { transition-delay: 0.2s; }
  .nav-links li:nth-child(3) { transition-delay: 0.3s; }
  .nav-links li:nth-child(4) { transition-delay: 0.4s; }
  .nav-links li:nth-child(5) { transition-delay: 0.5s; }
  
  .nav-links a {
    font-size: 1.5rem;
    padding: 1rem 2rem;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
  }
  
  .nav-links a:hover,
  .nav-links a.active {
    border-color: #00fff7;
    background: rgba(0, 255, 247, 0.1);
    transform: scale(1.05);
  }
  
  /* Show close button on mobile */
  .mobile-menu-close {
    display: flex;
  }
  
  /* Position back-to-top button on left for mobile */
  .back-to-top {
    left: 1rem;
    right: auto;
    bottom: 4.5rem;
  }
}

@media (max-width: 600px) {
  .back-to-top {
    left: 1rem;
    right: auto;
    bottom: 4.5rem;
  }
  
  .site-title {
    font-size: 1.2rem;
  }
  
  .logo {
    height: 36px;
    width: 36px;
  }
} 