/* ===== Header Styles ===== */
.glc-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #0b0f14;
  border-bottom: 1px solid rgba(91, 227, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.glc-header.scrolled {
  background: #080d14;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(91, 227, 255, 0.3);
}

.header-nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.2s ease;
}

.header-brand:hover {
  transform: translateY(-1px);
}

.header-logo-img {
  height: 48px;
  width: 48px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(91, 227, 255, 0.2);
  transition: all 0.3s ease;
}

.header-logo-img:hover {
  box-shadow: 0 6px 20px rgba(91, 227, 255, 0.4);
  transform: scale(1.05);
}

.header-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-primary {
  font-weight: 800;
  font-size: 1.4rem;
  color: #5be3ff;
  line-height: 1;
  text-shadow: 0 2px 4px rgba(91, 227, 255, 0.3);
}

.brand-secondary {
  font-weight: 500;
  font-size: 0.75rem;
  color: rgba(230, 242, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1;
}

.header-nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.header-nav-link {
  color: #e6f2ff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  position: relative;
  transition: all 0.3s ease;
  background: transparent;
  border: 1px solid transparent;
  white-space: nowrap;
}

.header-nav-link:hover {
  color: #5be3ff;
  background: rgba(91, 227, 255, 0.1);
  border-color: rgba(91, 227, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(91, 227, 255, 0.2);
}

.header-nav-link.active {
  color: #5be3ff;
  background: linear-gradient(
    135deg,
    rgba(91, 227, 255, 0.15),
    rgba(145, 247, 195, 0.15)
  );
  border-color: rgba(91, 227, 255, 0.3);
  box-shadow: 0 4px 12px rgba(91, 227, 255, 0.25);
}

/* ===== Hamburger Menu ===== */
.header-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #0b1522;
  border: 1px solid rgba(91, 227, 255, 0.4);
  border-radius: 12px;
  cursor: pointer;
  padding: 0.75rem;
  width: 48px;
  height: 48px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.header-mobile-toggle:hover {
  background: #0d1a2a;
  border-color: rgba(91, 227, 255, 0.6);
  box-shadow: 0 6px 16px rgba(91, 227, 255, 0.25);
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background: #5be3ff;
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.header-mobile-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
  background: #5be3ff;
  width: 24px;
}

.header-mobile-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.header-mobile-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  background: #5be3ff;
  width: 24px;
}

.header-mobile-overlay {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #0b0f14;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 999;
  box-shadow: 5px 0 25px rgba(0, 0, 0, 0.5);
  overflow-y: auto; /* Enable vertical scrolling */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.header-mobile-overlay.active {
  transform: translateX(0);
}

.header-mobile-menu {
  list-style: none;
  margin: 0;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto;
  max-height: 100%; /* Ensure it doesn't overflow the container */
  padding-bottom: 5rem; /* Add extra padding at bottom for better scrolling experience */
}

.header-mobile-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.25rem;
  padding: 1rem 1.5rem;
  border-radius: 16px;
  background: #0d1522;
  border: 1px solid #1a2a3a;
  transition: all 0.3s ease;
  text-align: center;
  display: block;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  margin-bottom: 0.75rem;
}

.header-mobile-link:hover,
.header-mobile-link.active {
  color: #5be3ff;
  background: #122035;
  border-color: #5be3ff;
  transform: translateX(8px);
  box-shadow: 0 8px 24px rgba(91, 227, 255, 0.2);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .header-nav-menu {
    display: none;
  }

  .header-mobile-toggle {
    display: flex;
  }

  .header-nav-container {
    padding: 1rem;
  }

  .header-logo-img {
    height: 40px;
    width: 40px;
  }

  /* Add space between GLC SEAS and the line below in mobile view */
  .header-brand-text {
    gap: 0.3rem;
  }
}
