/* Custom Colors */
:root {
  --space-cadet: #2b2d42;
  --cool-gray: #8d99ae;
  --antiflash-white: #edf2f4;
  --red-pantone: #ef233c;
  --active-color: #ef233c; /* Active color (Red Pantone) */
}

/* Hover underline animation */
.nav-link {
  position: relative;
  display: inline-block;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background-color: var(--red-pantone);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--red-pantone);
}

.nav-link:hover::after {
  width: 100%;
}

/* Active state styling */
.nav-link.active {
  color: var(--active-color);
  font-weight: bold;
}

.nav-link.active::after {
  width: 100%;
}

/* Hamburger menu design */
.hamburger-line {
  height: 3px;
  border-radius: 1rem;
  margin: 6px 0;
  transition: transform 0.4s, width 0.4s;
}

.line1 {
  width: 25px;
  background-color: var(--red-pantone);
  margin-left: 10px;
}

.line2 {
  width: 30px;
  background-color: var(--space-cadet);
  margin-right: 10px;
}

.line3 {
  width: 25px;
  background-color: var(--red-pantone);
  margin-left: 10px;
}

/* When menu is open, rotate the lines into a cross */
.hamburger.active .line1 {
  transform: rotate(45deg) translate(5px, 5px);
  width: 30px;
  background-color: var(--space-cadet);
}

.hamburger.active .line2 {
  opacity: 0;
}

.hamburger.active .line3 {
  transform: rotate(-45deg) translate(5px, -5px);
  width: 30px;
}

/* Mobile menu slide-in */
.mobile-menu {
  transform: translateX(-100%);
  transition: transform 0.4s ease-in-out;
  background-color: var(--space-cadet); /* Solid background */
  color: var(--antiflash-white); /* Text color inside the menu */
  top: 4rem; /* Adjusted to start below the logo */
  padding-top: 1rem; /* Some padding for the links */
}

.mobile-menu.active {
  transform: translateX(0);
}

/* Padding to prevent content overlap with navbar */
.content {
  margin-top: 80px; /* Adjust this if your navbar height changes */
}

.header {
  background-color: #2b2d42;
}
