:root {
  --dark-green: #112a34;
  --green-color: #8e9c3a;
  --white-color: #fff;
  --secondary-color: #b8c467;
  --primary-color: #f2a30f;
  --back-ground-color: #e9e9e9;
}
.home-nav {
  padding: 0;
  margin: 0;
}

nav {
  width: 100%; /* Full width */
  height: 65px; /* Fixed height for the navbar */
  background-color: #d3d3d3; /* Light gray background color */
  backdrop-filter: blur(1px); /* Adds slight blur to the background */
  display: flex; /* Flex layout for easy alignment */
  justify-content: space-between; /* Space between left and right content */
  align-items: center; /* Center-align items vertically */
  padding: 0 4rem; /* Padding on left and right for spacing */
  z-index: 1000; /* Ensures the navbar appears above other elements */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Adds subtle shadow for depth */
  font-size: 1.2rem; /* Font size for links or text in the navbar */
  transition: top 0.3s ease; /* Smooth transition for styling changes */
  position: sticky;
}
nav.sticky {
  position: sticky; /* Keeps navbar sticky at the top */
  top: 0; /* Defines the sticky point */
}

nav.fixed {
  position: fixed; /* Fixes the navbar on scroll */
  top: 0; /* Sticks it to the top of the viewport */
  background-color: #c0c0c0; /* Slightly darker background when fixed */
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2); /* More pronounced shadow when fixed */
}

/* Style for the logo */
.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.Nav-brand-logo {
  width: 40px;
  height: auto;
  margin-right: 10px;
}

/* Style for the text */
.logo h4 {
  font-family: "Montserrat", "Dancing Script", cursive;
  font-size: 1.5rem;
  color: #000;
  font-weight: 500;
  transition: color 0.6s ease;
}

nav .logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

nav .logo .bar {
  font-size: 1.35rem;
  color: #000;
  cursor: pointer;
  display: none;
  transition: color 0.3s ease;
}

.Nav-brand-logo {
  height: 50px;
  width: auto;
}

nav .logo h3 {
  color: #000;
  font-weight: 400;
}

nav .menu .close {
  display: none;
}

nav .menu ul {
  display: flex;
  gap: 3rem;
  list-style: none;
}

nav .menu ul li a {
  color: #000;
  font-weight: 400;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease, transform 0.3s ease;
}

nav .menu ul li a:hover {
  color: var(--green-color);
  transform: scale(1.05);
}

nav .menu ul li a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background-color: var(--green-color);
  transition: width 0.3s ease;
}

nav .menu ul li a.active {
  color: var(--green-color);
}

nav .menu ul li a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background-color: var(--green-color);
}

nav .signup-login {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

nav .signup-login a {
  color: #000;
  padding: 0.3rem 1rem;
  border-radius: 2rem;
  transition: all 0.3s ease;
}

nav .signup-login a:first-child {
  color: #000;
  padding: 0.2rem 0.1rem;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease, transform 0.3s ease;
}
nav .signup-login a:first-child:hover {
  color: var(--green-color);
}

nav .signup-login a:first-child:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background-color: var(--green-color);
}

nav .signup-login a:last-child {
  background: var(--green-color);
  color: #fff;
  padding: 0.3rem 1rem;
  border-radius: 2rem;
  transition: all 0.3s ease;
}

nav .signup-login a:last-child:hover {
  background: #fab30f;
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0px 8px 15px rgba(250, 179, 15, 0.5);
}

.signup-login-mobile {
  display: none;
}

@media (max-width: 1020px) {
  html {
    font-size: 85%;
  }

  section {
    padding: 0 2rem;
  }
}

@media (max-width: 1024px) {
  nav {
    padding: 0 1rem;
  }

  nav .menu ul {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .heading {
    font-size: 2rem;
  }

  nav {
    padding: 0 2rem;
  }

  nav .menu {
    display: none;
  }

  nav .logo .bar {
    display: block;
  }

  nav .menu.active {
    display: flex;
    position: absolute;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.918);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    z-index: 1000;
  }

  nav .menu .close {
    display: block;
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    cursor: pointer;
    color: var(--white-color);
    font-size: 2rem;
  }

  nav .menu .close:hover {
    color: rgba(255, 255, 255, 0.4);
  }

  nav .menu ul {
    flex-direction: column;
    font-size: 1.2rem;
    gap: 1rem;
  }

  nav .menu ul li a {
    font-size: 1.5rem;
    text-align: center;
    color: var(--white-color);
  }

  nav .menu ul:hover li a {
    color: rgba(255, 255, 255, 0.4);
  }

  nav .menu ul li a:hover {
    color: var(--white-color);
  }
}

@media (max-width: 425px) {
  nav {
    display: block;
    padding: 5px 15px !important;
  }
  nav .logo {
    flex-direction: row-reverse;
    justify-content: space-between;
  }
  .signup-login {
    display: none !important;
  }
  .signup-login-mobile {
    display: block;
  }
}
