/* ===================================
   Project Navigation Bar Styles
   Left-aligned vertical navigation
   =================================== */

/* Main Navigation Container */
.project-nav {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 60px;

  background-color: #ffffff;
  border-right: 1px solid #e3e3e3;

  z-index: 1000;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;

  padding: 30px 0;

  /* Smooth transitions */
  transition: background-color 0.3s ease;
}

/* ===================================
   Home Icon (Top)
   =================================== */

.nav-home {
  width: 32px;
  height: 32px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #0d7e09; /* Matches project title green */
  text-decoration: none;

  transition: opacity 0.3s ease;
  flex-shrink: 0; /* Prevent shrinking */
}

.nav-home:hover {
  opacity: 0.7;
}

.home-icon {
  fill: currentColor;
  width: 24px;
  height: 24px;
}

/* ===================================
   Project Links Container (Middle)
   =================================== */

.nav-projects {
  flex: 1;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;

  overflow: hidden;
  width: 100%;

  padding: 20px 0;
}

/* ===================================
   Individual Project Link
   =================================== */

.nav-project-link {
  /* Vertical text orientation */
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg); /* Read from bottom to top */

  /* Typography */
  font-family: "Inter-Light", Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.5px;

  /* Colors */
  color: #666666;
  text-decoration: none;

  /* Layout */
  white-space: nowrap;
  padding: 8px 4px;

  /* Transitions */
  transition: color 0.3s ease, font-weight 0.3s ease;

  cursor: pointer;
}

.nav-project-link:hover:not(.disabled) {
  color: #0d7e09;
}

/* Active page highlighting */
.nav-project-link.active {
  color: #0d7e09;
  font-weight: 600;
  font-family: "Inter-SemiBold", "Inter", Helvetica, Arial, sans-serif;
}

/* Disabled links (no page yet) */
.nav-project-link.disabled {
  color: #cccccc;
  cursor: not-allowed;
  pointer-events: none;
}

/* ===================================
   Toggle Button (Bottom)
   =================================== */

.nav-toggle {
  width: 32px;
  height: 32px;

  border: none;
  background: transparent;

  color: #666666;
  font-size: 20px;
  font-weight: 600;

  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: color 0.3s ease;

  flex-shrink: 0; /* Prevent shrinking */
}

.nav-toggle:hover {
  color: #0d7e09;
}

.toggle-dots {
  line-height: 1;
  user-select: none;
}

/* ===================================
   Fade Animations for Group Switching
   =================================== */

.nav-projects.fade-out {
  animation: fadeOut 0.2s ease-out forwards;
}

.nav-projects.fade-in {
  animation: fadeIn 0.3s ease-in forwards;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================================
   Responsive Behavior
   =================================== */

/* Tablet and below: Hide navigation */
@media screen and (max-width: 768px) {
  .project-nav {
    display: none;
  }
}

/* Very small screens */
@media screen and (max-width: 480px) {
  .project-nav {
    display: none;
  }
}

/* ===================================
   Accessibility
   =================================== */

/* Focus styles for keyboard navigation */
.nav-home:focus,
.nav-project-link:focus,
.nav-toggle:focus {
  outline: 2px solid #0d7e09;
  outline-offset: 2px;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .project-nav,
  .nav-home,
  .nav-project-link,
  .nav-toggle {
    transition: none;
  }

  .nav-projects.fade-out,
  .nav-projects.fade-in {
    animation: none;
  }
}
