/* Header Styling */
header {
  background-color: #000; /* Solid black background */
  position: relative;
  opacity: 1;
  padding: 20px;
  width: 100%;
  box-sizing: border-box;
  z-index: 100; /* Ensure header stays above other sections */
  transition: background-color 0.3s ease-in-out; /* Smooth transition effect for background color */
  margin-bottom: 0; /* Remove any extra space below header */
}

/* Body and other styles remain the same */
body {
  font-family: Arial, sans-serif;
  font-weight: bold; /* Make all text bold */
  margin: 0; /* Reset body margin to ensure full page coverage */
  padding: 0; /* Reset body padding to ensure full page coverage */
  min-height: 100vh; /* Ensure the body takes the full height of the screen */
}

/* Container inside header to ensure proper alignment */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  z-index: 2; /* Ensure it’s on top of other content */
  transition: transform 0.3s ease-in-out; /* Smooth transition effect for header container */
}

/* Logo Styling */
.logo a {
  text-decoration: none; /* Removes the underline */
}

.logo {
  font-size: 30px; /* Increase logo size */
  font-weight: bold; /* Ensure logo text is bold */
  display: flex;
  gap: 5px;
  flex-direction: row;
  align-items: center;
}

.logo span:nth-child(1) {
  color: #e67e22; /* "H" color */
}

.logo span:nth-child(2) {
  color: #f1c40f; /* "ELP GROW" color */
}

/* Navigation Menu Styling */
nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
  padding: 0; /* Remove default padding */
  margin: 0; /* Remove any margin from nav list */
  transition: all 0.3s ease-in-out; /* Smooth transition effect for menu items */
}

nav ul li {
  margin: 0;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-size: 16px;
  padding: 10px 15px;
  border-radius: 5px;
  background-color: transparent; /* No background color for the navigation items */
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease; /* Added transitions for hover effects */
}

nav ul li a:hover,
nav ul li a.active {
  background-color: #f1c40f;
  color: #333;
  transform: translateY(-2px); /* Slight hover effect for button */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Added subtle shadow on hover */
}

/* Buttons (Login/Register) */
.buttons {
  display: flex;
  gap: 15px;
  align-items: flex-end;
}

/* Standard button styling */
button {
  padding: 12px 24px; /* Increased button size */
  font-size: 16px; /* Larger font size */
  border: none;
  border-radius: 8px; /* Added round edges */
  cursor: pointer;
  background-color: #f1c40f;
  color: black;
  font-weight: bold;
  transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s; /* Added transition for smooth hover effect */
}

button:hover {
  background-color: #e67e22;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow effect on hover */
  transform: translateY(-2px); /* Slight lift effect on hover */
}

/* Hamburger Menu (only visible on mobile) */
.hamburger {
  display: none; /* Hide by default */
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
  position: absolute;
  right: 15px; /* Move the hamburger 15px from the right edge */
  z-index: 101; /* Ensure hamburger is above navigation */
  transition: transform 0.3s ease-in-out; /* Smooth transition for hamburger */
}

.hamburger div {
  width: 100%;
  height: 4px;
  background-color: white;
  border-radius: 5px;
  transition: all 0.3s ease; /* Smooth transition for the lines */
}

/* When the menu is open, change the hamburger to a cross (X) */
.hamburger.active div:nth-child(1) {
  transform: translateY(8px) rotate(45deg); /* Move the top line down and rotate */
}

.hamburger.active div:nth-child(2) {
  opacity: 0; /* Hide the middle line */
}

.hamburger.active div:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg); /* Move the bottom line up and rotate */
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  /* Ensure the hamburger menu is visible on mobile */
  .hamburger {
    display: flex; /* Show hamburger only on mobile */
  }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  /* Ensure the hamburger menu is visible on mobile */
  .hamburger {
    display: flex; /* Show hamburger only on mobile */
  }

  /* Mobile navigation menu */
  nav ul {
    display: none;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.9); /* Transparent black background for menu */
    position: absolute;
    top: 100%; /* Start the menu right below the header */
    left: 0;
    width: 100%;
    text-align: center;
    padding: 20px 0;
    z-index: 100; /* Ensure it's below the hamburger */
    opacity: 0; /* Initially hidden with opacity */
    transform: translateY(-20px); /* Initially moved up */
    transition: all 0.3s ease-in-out; /* Smooth transition effect */
  }

  /* Show navigation menu when active */
  nav.active ul {
    display: flex;
    opacity: 1; /* Menu is visible when active */
    transform: translateY(0); /* Menu slides down smoothly */
  }

  /* Adjust the logo size and layout on mobile */
  .logo {
    font-size: 20px; /* Slightly smaller logo on mobile */
    display: flex;
    flex-direction: column; /* Stack the text vertically */
    align-items: center;
    gap: 1px; /* Small gap between "HLEP" and "GROW" */
  }

  .logo span:nth-child(1),
  .logo span:nth-child(2) {
    font-size: 22px; /* Consistent size for "HLEP" & "GROW" */
    font-weight: bold; /* Make both parts bold */
  }

  .logo span:nth-child(1) {
    color: #e67e22; /* "H" color */
  }

  .logo span:nth-child(2) {
    color: #f1c40f; /* "ELP GROW" color */
  }

  /* Adjust the button sizes on mobile */
  .buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    position: absolute;
    left: 68%; /* Move the buttons slightly to the right */
    transform: translateX(-50%); /* Keep them centered relative to their new position */
  }

  button {
    font-size: 16px; /* Slightly larger buttons on mobile */
    padding: 6px 10px; /* Larger padding for buttons */
  }

  /* Adjust header layout for mobile */
  .header-container {
    width: 100%;
    justify-content: space-between; /* Ensure logo, buttons, and hamburger are spaced evenly */
    align-items: center;
  }
}

/* For smaller mobile screens (extra small devices) */
@media (max-width: 480px) {
  header h1 {
    font-size: 1.8rem; /* Adjust the header font size for very small screens */
  }

  .logo {
    font-size: 10px; /* Further reduce logo size on small devices */
  }

  nav ul {
    padding: 10px 0;
  }

  .buttons button {
    font-size: 12px; /* Slightly smaller buttons on very small screens */
    gap: 6px;
    left: 80%; /* Move the buttons slightly to the right */
  }
}
