/* Mobile Navigation Menu */
.mobile-nav-container {
  display: none; /* Hidden by default, shown on mobile */
}

/* Overlay (background) */
.overlay {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  background-color: var(--bg-color);
  overflow-x: hidden;
  transition: 0.4s;
  opacity: 0.98;
}

.light-mode .overlay {
  background-color: var(--light-bg-color);
}

/* Position the content inside the overlay */
.overlay-content {
  position: relative;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* The navigation links inside the overlay */
.overlay a {
  padding: 15px;
  text-decoration: none;
  font-size: 1.5rem;
  color: var(--text-color);
  display: block;
  transition: 0.3s;
  font-weight: 300;
  letter-spacing: 1px;
}

.light-mode .overlay a {
  color: var(--light-text-color);
}

/* When you mouse over the navigation links, change their color */
.overlay a:hover, .overlay a:focus {
  color: var(--accent-color);
}

.light-mode .overlay a:hover, .light-mode .overlay a:focus {
  color: var(--light-accent-color);
}

/* Hamburger menu container */
.hamburger-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001; /* Above the overlay */
  display: none;
  -webkit-tap-highlight-color: transparent;
}

/* Theme toggle in mobile nav */
.mobile-theme-toggle {
  margin-top: 10px;
  -webkit-tap-highlight-color: transparent;
}

.mobile-theme-toggle .themeToggle svg {
  width: 24px;
  height: 24px;
}

.mobile-theme-toggle .themeToggle {
  transform: scale(1.5);
  margin: 15px;
}

/* Hamburger Menu Styles */
.hamburger {
  cursor: pointer;
}

.hamburger input {
  display: none;
}

.hamburger svg {
  /* The size of the SVG defines the overall size */
  height: 3em;
  /* Define the transition for transforming the SVG */
  transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.line {
  fill: none;
  stroke: white;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1;
  /* Define the transition for transforming the Stroke */
  transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
              stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.light-mode .line {
  stroke: var(--light-text-color);
}

.line-top-bottom {
  stroke-dasharray: 12 63;
}

.hamburger input:checked + svg {
  transform: rotate(-45deg);
}

.hamburger input:checked + svg .line-top-bottom {
  stroke-dasharray: 20 300;
  stroke-dashoffset: -32.42;
}

/* Media query for mobile devices */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  
  .hamburger-container {
    display: block;
  }
  
  .mobile-nav-container {
    display: block;
  }
  
  /* Animation for links */
  .overlay a {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
  }
  
  .overlay.open a {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Staggered animation for links */
  .overlay a:nth-child(1) { transition-delay: 0.1s; }
  .overlay a:nth-child(2) { transition-delay: 0.2s; }
  .overlay a:nth-child(3) { transition-delay: 0.3s; }
  .overlay a:nth-child(4) { transition-delay: 0.4s; }
} 