/* Layout Styles - Header, timeline structure, and main layout */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgb(0 0 0 / 95%);
  backdrop-filter: blur(15px);
  z-index: 1000;
  border-bottom: 2px solid #ff6b00;
  transform: translateY(0);
  transition: transform 0.3s ease-in-out;
}

.header.hidden {
  transform: translateY(-100%);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  max-width: 1400px;
  margin: 0 auto;
}

.header-left h1 {
  font-size: 1.4rem;
  margin: 0;
  color: #ff6b00;
  text-shadow: 1px 1px 2px rgb(0 0 0 / 70%);
  white-space: nowrap;
}

/* Hamburger Menu */
.hamburger-menu {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 32px;
  height: 32px;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background: #ff6b00;
  transition: all 0.3s ease;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgb(0 0 0 / 98%);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgb(255 107 0 / 30%);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-menu-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Hide header-right content on desktop */
.header-right {
  display: flex;
  align-items: center;
}

/* View Toggle Navigation */
.view-toggle {
  display: flex;
  background: rgb(255 107 0 / 10%);
  border-radius: 8px;
  padding: 4px;
  border: 1px solid rgb(255 107 0 / 30%);
  width: fit-content;
}

.view-link {
  padding: 5px 20px;
  color: #ccc;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 1rem;
  display: block;
  text-align: center;
}

.view-link:hover {
  color: #ff6b00;
  background: rgb(255 107 0 / 10%);
}

.view-link.active {
  background: #ff6b00;
  color: "black";
  font-weight: 600;
}

/* Header Controls */
.header-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

#filter-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  width: 100%;
}

/* Main Content Layout */
main {
  margin-top: 50px; /* Account for fixed header */
  min-height: calc(100vh - 125px); /* Ensure content fills viewport minus header */
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

/* Timeline Layout */
.timeline-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem;
  min-height: calc(100vh - 120px); /* Ensure enough height to push footer down */
  width: 100%;
  overflow-x: hidden;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, #ff6b00, #c50, #ff6b00);
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgb(255 107 0 / 50%);
}

.timeline-content {
  position: relative;
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Month Markers */
.month-marker {
  position: relative;
  width: 100%;
  text-align: center;
  margin: 1rem 0;
  clear: both;
  display: flow-root;
}

.month-marker h3 {
  color: #ff6b00;
  padding: 1rem 2rem;
  border-radius: 25px;
  font-size: 1.3rem;
  border: 2px solid #ff6b00;
  box-shadow: 0 4px 15px rgb(255 107 0 / 30%);
  backdrop-filter: blur(10px);
}

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem 1rem;
  background: rgb(0 0 0 / 20%);
  backdrop-filter: blur(5px);
  border-top: 1px solid rgb(255 107 0 / 20%);
  font-size: 0.9rem;
  color: #ccc;
}

footer p {
  margin: 0;
  opacity: 0.8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

footer em {
  color: #ff6b00;
  font-style: italic;
}

.github-link {
  color: #ccc;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
  margin-left: 4px;
  opacity: 0.8;
}

.github-link:hover {
  color: #ff6b00;
  opacity: 1;
  transform: translateY(-1px);
}

.github-icon {
  width: 18px;
  height: 18px;
  fill: currentcolor;
}
