body, html {
  width: 100%;
  overflow-x: hidden; /* Prevent horizontal scrolling */
  scroll-behavior: smooth;
}
body {
  background-color: #f0f2f5; /* Light gray background */
  font-family: 'Open Sans', sans-serif;
  /* Other styles */
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 50px;
  background: linear-gradient(to bottom, #fff, #fff);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0;
}

.nav-left {
  display: flex;
  align-items: center;
}

.nav-left .logo {
  margin-left: 100px; /* Adjust as necessary for larger screens */
  height: 150px; /* Increased from 100px to make the logo larger */
  width: auto; /* Maintain aspect ratio */
}

.nav-right {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  position: relative; /* Add this to establish a new positioning context */
  justify-content: flex-end;
}
.close-icon {
  font-size: 30px; /* Adjust the size as needed */
  display: none; /* Hide by default */
  right: -50%;
  position: relative;
  top: 0;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
  color: #ffffff; /* or any contrasting color */
  z-index: 1001; /* higher than the dropdown menu */
}

/* This shows the close button when .dropdown-content is active */
.dropdown-content.active ~ .close-icon {
  display: block;
}

/* This hides the hamburger icon when .dropdown-content is active */
.dropdown-content.active ~ .hamburger-icon {
  display: none;
}

/* When the menu is active, show the close button and hide the hamburger */
.dropdown-content.active + .close-icon {
  display: block; /* Show the close button */
}

.dropdown-content.active + .close-icon + .hamburger-icon {
  display: none; /* Hide the hamburger icon */
}

.nav-link, .contact-link {
  color: #333333; /* Adjusted default text color for full screen to gray */
  background-color: transparent; /* No background for a plain text look */
  text-decoration: none;
  padding: 10px 15px;
  border: none; /* Removes border styles if any */
  transition: all 0.3s ease;
  font-family: 'Open Sans', sans-serif;
}

.nav-link:hover, .contact-link:hover {
  text-decoration: underline; /* Underline on hover for the links */
}

.nav-right a {
  text-decoration: none; /* Removes the underline from links */
  color: #333333; /* Set your default text color */
  padding: 10px 20px; /* Add some padding around the text */
  border-radius: 20px; /* Optional: rounds the corners of the button */
  transition: background-color 0.3s, color 0.3s; /* Smooth transition for the hover effect */
}

.nav-right a:hover {
  background-color: #009444; /* Darker shade on hover */
  color: #ffffff; /* Change text color on hover */
  border-radius: 20px;
}
.contact-link.contact-button {
  background-color: #009444; /* A bright color for the contact button */
  color: #ffffff; /* White text color */
  padding: 10px 20px;
  border-radius: 25px; /* Rounded corners for the button */
  font-weight: bold; /* Make the button text bold */
}

.contact-link.contact-button:hover {
  background-color: #026e0b; /* Darker shade on hover */
  text-decoration: none; /* No underline on hover for the button */
}

.hamburger-icon {
  display: none; /* Hidden by default; will be displayed on small screens */
  font-size: 24px;
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
  right: 0;
  margin-right: 0;
}

.dropdown-content {
  display: flex; /* Keep links inline */
  align-items: center;
  justify-content: flex-end;
  list-style-type: none; /* Remove bullet points */
  position: static; /* Default positioning */
  background-color: transparent; /* Assuming a transparent background for the nav bar */
  box-shadow: none; /* No shadow for inline display */
  z-index: auto; /* Reset z-index */
  color: #ffffff;
}

.dropdown-content a,
.dropdown-content .nav-link, /* Increased specificity for .nav-link */
.dropdown-content .contact-link { /* Increased specificity for .contact-link */
  padding: 15px 20px; /* Spacing around the text */
  text-decoration: none; /* No underline */
  display: block; /* Each link is a block for full-width interaction area */
  width: 100%; /* Full width for each link to align text properly */
  box-sizing: border-box; /* Ensure padding is included in width */
}

.hamburger-icon.active + .dropdown-content {
  display: flex; /* Display the dropdown when active */
}

.dropdown-content.active {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: fixed;
  margin-top: 0; /* Reset any top margin */
  padding-top: 0; /* Reset any top padding */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 1000; /* Ensure it's on top */
  width: 100vw; /* Cover full viewport width */
  height: 100vh; /* Cover full viewport height explicitly */
  overflow-y: auto; /* Allows scrolling if the content is taller than the screen */
}


@media (max-width: 768px) {
  .nav-link, .contact-link {
    color: white; /* Override text color for small screens to white */
  }

  .dropdown-content {
    display: none; /* Initially hidden */
    position: absolute; /* Adjusted if needed */
    top: 100%; /* Aligns directly below the nav */
    left: 0; /* Starts at the left edge */
    right: 0; /* Stretches to the right edge, ensuring full width */
    margin-left: 0; /* Resets any inherited margin */
    padding: 0; /* Resets any inherited padding */
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2); /* Optional: Adds shadow for depth */
    background-color: #ffffff; /* Adjust based on your design */
    width: 100vw; /* Uses the full viewport width */
    z-index: 1;
  }

  .hamburger-icon.active + .dropdown-content,
  .dropdown-content.active {
    display: flex; /* Shows the menu */
    flex-direction: column; /* Stacks items vertically */
  }

  .dropdown-content a,
  .dropdown-content .nav-link,
  .dropdown-content .contact-link {
    text-align: center; /* Centers the text */
    width: 100%; /* Each link fills the menu */
    padding: 10px 15px; /* Adjust padding as needed */
  }

  .dropdown-content.active {
    display: flex; /* Show dropdown when active */
    flex-direction: column; /* Stack links vertically */
  }

  .hamburger-icon {
    display: block; /* Ensure the hamburger icon is visible on small screens */
    position: relative; /* Position it absolutely within the nav-right container */
    right: -90px; /* Adjust this value to move closer to the right edge of the screen */
    top: 10px; /* Adjust this value to move vertically */
  }

  .nav-right {
    justify-content: flex-end;
    width: 100%;
  }
  header {
    padding: 10px 20px; /* Reduce padding on smaller screens */
  }

  .container {
    padding: 15px; /* Adjust padding for the content container */
  }

  /* Additional adjustments for nav elements */
  .nav-left .logo {
    margin-left: 0; /* Remove additional margin */
  }

  nav, .nav-right {
    padding: 0;
    margin: 0 auto; /* Center the navigation */
    width: auto; /* Override any fixed width */
  }

  .nav-right a {
    color: #FFFFFF; /* This sets the text color to white on small screens */
  }
}
