.navbar {
    position: fixed;
    top: 25px;
    left: 0;
    right: 0;
    margin: 0 auto;
  
    width: min(1250px, calc(100% - 20px)); /* 750px max, but shrinks if screen is small */
    padding-top: -5px; /* no extra internal spacing — width handles it all */
  

    display: flex;
    align-items: center;
    justify-content: space-between;
  
    height: 55px;
    border-radius: 30px;
  
    background: linear-gradient(0deg, #1E293B 0%, #334155 50%, #1E293B 100%);
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.9);
    border: solid 1.5px #141c29;

    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1;

  }
  
  .nav-1 {
    position: relative;
    font-family: "Inter", sans-serif;
    font-weight: 800;
    font-style: normal;
    font-size: 20px;
    letter-spacing: 0.3px;
    align-items: center;
    justify-content: center;
    margin-top: -7px;
  }
  
  .nav-2 {
    position: relative;
    display: flex;
    gap: 30px;
    padding-right: 18px;
    font-weight: 300;
    font-size: 11px;
    margin-top: -3px;
  }
  
  .about, .contact, .logo, .product{
    cursor: pointer;
  }
  
  .about, .contact, .product {
    transition: all 0.1s ease-in-out;
    letter-spacing: -0.9px;
    font-size: 18px;
    color: #F9FAFB;
    font-weight: 400;
  }
  
  .about:hover, .contact:hover, .product:hover {
    color: #E5E7EB ;
  }
  
  .logo {
    width: 45px;
    height: 45px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    margin-left: 22px;
    margin-top: 3px;
    align-items: start;
  }
  
  .logo:hover {
    transform: scale(1.1);
    transition: all 0.3s ease-in-out;
  }
  
  /* Hamburger Icon (for small screens) */
  .hamburger {
    display: none;
    font-size: 20px;
    cursor: pointer;
    margin-right: 15px;
    margin-top: -5px;
  }
  
  /* Keyframe animation for fade-in effect */
  @keyframes fadeIn {
    0% {
      opacity: 0;
      transform: translateY(-10px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .navbar {
    animation: fadeIn 1.1s ease-out; /* Apply fade-in animation */
  }
  
  /* Underline hover effect */
  .about, .contact, .product {
    display: inline-block;
    padding: 4px 0;
    cursor: pointer;
    position: relative;
  }


.about::before, .contact::before, .product::before {
    content: "";
    position: absolute;
    bottom: 3px;
    left: 50%;  
    transform: translateX(-50%) scale(0);
    transition: transform 0.2s ease-in-out;
    height: 1px;   
    width: 100%;
    background-color: #E5E7EB; 
}

.about:hover::before, .contact:hover::before, .product:hover::before {
    transform: translateX(-50%) scale(1);
}
  
  /* Responsive Styles (Hamburger and collapsing menu) */
  @media (max-width: 500px) {
    .nav-2 {
      display: none;  /* Hide the menu by default */
      position: absolute;
      top: 55px;
      right: 5px;
      background-color: #404650;
      width: 100px;
      padding-left: 17px;
      padding-right: 17px;
      padding-top: 10px;
      padding-bottom: 15px;
      flex-direction: column;
      gap: 5px;
      border-radius: 8px;
      align-items: center;
      box-shadow: 0px 4px 5px rgba(128, 128, 128, 0.4);
      font-size: 10px;
    }
  
    .nav-2.show {
      display: flex; /* Show the menu when 'show' class is added */
    }
  
    /* Show the hamburger icon on small screens */
    .hamburger {
      display: block;
      margin-bottom: -5px;
      margin-top: -10px;
    }
  
    /* Style for the menu items inside the hamburger */
    .nav-2 a {
      color: white;
      font-size: 1rem;
      text-decoration: none;
      padding: 5px 0;
      top: 0;
      position: relative;
    }
  
    .nav-2 button {
      font-size: 16px;
      padding: 0px 0px 0px 0px;
      width: 80px;
    }
  }

  .hamburger-symbol{
    color: #F9FAFB;
    font-size: 30px;
    margin-right: 3px;
  }

/*Footer*/
.footer {
  display: flex;
  justify-content: center; /* center by default */
  align-items: center;
  background-color: #334155;
  padding: 20px 40px;
  position: relative;
  width: 100%;
}

.footer-text-2 {
  color: white;
  font-size: 13px;
  text-align: center;
  padding-top: 1%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

.footer-links {
  margin-left: auto;
  display: flex;
  gap: 30px;
}

.footer-link {
  color: #F9FAFB;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

.footer-link svg {
  margin-left: 4px;
  transition: all 0.3s ease-in-out;
  fill: white;
}

.footer-link:hover {
  color: #E6A919;
}

.footer-link:hover svg {
  fill: #E6A919;
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
  .footer {
    flex-direction: column;
    align-items: center;
    padding: 15px;
    gap: 10px;
  }

  .footer-text-2 {
    position: static;
    transform: none;
    font-size: 12px;
    text-align: center;
    white-space: normal;
  }

  .footer-links {
    margin-left: 0;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
  }

  .footer-link {
    font-size: 12px;
    text-align: center;
  }
}
