header {
  width: 100%;
  margin-bottom: 50px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  background-color: #1f2937;
  box-shadow: var(--shadow); /* Adds your standard shadow */
  position: sticky;
  top: 0;
  z-index: 100;
}

/* ==================================== */
/* Navigation Bar Styling */
/* ==================================== */

a {
  text-decoration: none;
  color: var(--color-link);
}

.navbar {
  /* Uses a deep dark color for the background, similar to your body_bg */
  background-color: #1f2937;

  /* Display properties */
  display: flex;
  justify-content: space-between; /* Pushes Logo, Links, and Social to the edges */
  align-items: center; /* Vertically centers all content */

  /* Sizing and spacing */
  width: 1000px;
  padding: 8px 0px; /* Padding on top/bottom and sides */
}

/* --- Logo Section --- */
.navbar__logo {
  display: flex;
  align-items: center;
  font-family: var(--h-font);
  color: var(--color-heading);
  font-size: 1.5rem; /* Larger size for prominence */
  font-weight: 800;
}

.logo__icon {
  width: 25px;
  height: 25px;
  background-image: url("/Images/other/JakkenBlue_Icon_white.svg"); /* Path to your SVG file */
  margin-right: 8px;
  background-repeat: no-repeat;
}

/* --- Main Navigation Links (Home, About...) --- */

.navbar__menu {
  display: flex;
  gap: 3rem;
  flex-direction: row;
}

.navbar__links {
  display: flex;
  gap: 25px; /* Spacing between menu items */
}

.navbar__links li a {
  /* Inherits styling for links */
  text-decoration: none;
  font-family: var(--h-font); /* Uses your paragraph font for navigation */
  color: var(--color-heading);
  font-weight: 400;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.navbar__links li a:hover {
  /* Subtle hover effect */
  color: var(--color-text); /* Changes to your light gray text color */
}

.navbar__links li,
.navbar__social li {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* --- Social Icons Section --- */
.social__image_icon {
  object-fit: cover;
  width: 30px;
  height: 100%;
}

.navbar__social {
  display: flex;
  gap: 15px; /* Spacing between social icons */
}

.navbar__social li a {
  /* Styling for the icons/text */
  text-decoration: none;
  color: var(--color-heading);
  font-size: 1.2rem;
  padding: 5px; /* Adds clickable area */
  transition: transform 0.2s ease;
}

.navbar__social li a:hover {
  /* Hover effect */
  transform: scale(1.1);
}

/* --- Optional: Bottom Divider Line --- */

.navbar::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  /* Creates a thin line at the bottom, matching the border in the image */
  height: 1px;
  background-color: #43556e; /* Uses your border color from .container_color */
}

/* Mobile Hamburger */
.navbar__toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.navbar__toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: white;
  border-radius: 2px;
}

/* Mobile overlay */
#mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
  opacity: 0; /* Start hidden */
  pointer-events: none; /* Don't block clicks when hidden */
  transition: opacity 0.3s ease;
  z-index: 998; /* Just below the menu (menu is 999) */
}

/* Mobile styles */
@media screen and (max-width: 768px) {
  .navbar__links {
    width: 200px;
    flex-direction: column;
  }
  .navbar {
    justify-content: space-between;
    width: 100%;
    padding: 10px 20px;
  }

  /* The new wrapper for links + social icons */
  .navbar__menu {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100%;
    width: 70%;
    background-color: #303d50;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    transition: right 0.3s ease;
    border-left: 1px solid #43556e;
    z-index: 999;
  }

  .navbar__social {
    display: grid;
    grid-template-columns: auto auto auto;
    gap: 2rem;
  }

  .navbar__menu li a {
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
  }

  .navbar__toggle {
    display: flex;
    z-index: 1000;
  }

  /* Show menu when active */
  .navbar__menu.active {
    right: 0;
  }

  .navbar__links li {
    justify-content: start;
  }
}
