/* Navigation Styles */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(28, 27, 31, 0.95);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
  max-width: 1300px;
  margin: 0 auto;
}

.logo-link {
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--terminal-text, #4cd964);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-link:hover {
  opacity: 0.9;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-item {
  list-style: none;
  position: relative;
}

.nav-link {
  color: var(--terminal-text, #4cd964);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background-color 0.3s, color 0.3s;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-link:hover {
  background-color: rgba(76, 217, 100, 0.1);
}

.nav-link .terminal-prompt {
  margin-right: 3px;
  color: var(--terminal-text, #4cd964);
  opacity: 0.8;
}

/* Hamburger Menu Button and Swipe Indicator */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

/* Traditional hamburger icon */
.menu-toggle:not(.swipe-indicator-btn) span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--terminal-text, #4cd964);
  transition: all 0.3s ease;
}

.menu-toggle:not(.swipe-indicator-btn).active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle:not(.swipe-indicator-btn).active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle:not(.swipe-indicator-btn).active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Swipe indicator button */
.swipe-indicator-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  padding: 6px 10px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.swipe-indicator-btn:hover {
  background-color: rgba(76, 217, 100, 0.1);
}

.swipe-icon-wrapper {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Tooltip styles */
.swipe-tooltip {
  animation: fadeInOut 0.3s forwards;
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translateY(5px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Active Link Styles */
.nav-link.active {
  background-color: rgba(76, 217, 100, 0.15);
  position: relative;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 2px;
  background-color: var(--terminal-text, #4cd964);
  animation: activeSlide 0.3s ease-out;
}

@keyframes activeSlide {
  from { width: 0; left: 50%; }
  to { width: 80%; left: 10%; }
}

/* Mobile Menu Animation */
@keyframes slideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-10px); }
}

/* Responsive Styles */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  
  .header-container {
    padding: 12px 20px;
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(28, 27, 31, 0.95);
    flex-direction: column;
    padding: 15px;
    gap: 10px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: slideIn 0.3s ease-out;
    transform-origin: top center;
  }
  
  .nav-menu.closing {
    animation: slideOut 0.3s ease-in;
  }
  
  .nav-item {
    width: 100%;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
  }
  
  .nav-link {
    width: 100%;
    padding: 10px 15px;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
  }
  
  .nav-link:hover,
  .nav-link:focus {
    border-left-color: var(--terminal-text, #4cd964);
    background-color: rgba(76, 217, 100, 0.1);
    padding-left: 20px;
  }
  
  @keyframes fadeIn {
    to { opacity: 1; }
  }
  
  /* Add delay to each menu item for staggered animation */
  .nav-item:nth-child(1) { animation-delay: 0.05s; }
  .nav-item:nth-child(2) { animation-delay: 0.1s; }
  .nav-item:nth-child(3) { animation-delay: 0.15s; }
  .nav-item:nth-child(4) { animation-delay: 0.2s; }
  .nav-item:nth-child(5) { animation-delay: 0.25s; }
  .nav-item:nth-child(6) { animation-delay: 0.3s; }
}

@media (max-width: 480px) {
  .header-container {
    padding: 10px 15px;
  }
  
  .logo-link {
    font-size: 1rem;
  }
  
  .nav-menu {
    padding: 10px;
  }
  
  .nav-link {
    font-size: 0.85rem;
    padding: 8px 12px;
  }
}
