nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: white;
    padding: 10px;
    /* border-bottom: 1px solid; */
    -webkit-box-shadow: 1px 5px 5px -2px rgba(169, 168, 168, 0.75);
    -moz-box-shadow: 1px 5px 5px -2px rgba(169, 168, 168, 0.75);
    box-shadow: 1px 5px 5px -2px rgba(169, 168, 168, 0.75);;
  }

  nav a {
    color: black;
    text-decoration: none;
    padding: 10px;
    transition: background-color 0.3s;
  }

  nav a:hover {
    background-color: #f5f4f4;
  }

  .menu-icon{
    display: none;
  }
  
  .menu-items a:last-child {
    border-radius: 5px;
  }

  .img-logo {
    display: flex;
    justify-content: space-around;
    width: 20rem;
    height: 6rem;
    /* border: 1px solid red; */
    /* padding: 10rem; */
    margin-left: -10rem;
  }

  .logo-navbar {
    width: 150%;
  height: 6rem;
  }

  /* Media queries for responsive design */
  @media (max-width: 768px) {
    nav {
        display: flex;
      flex-direction: column;
      align-items: center;
      /* padding-left: -10rem; */
      /* border: 1px red solid; */
      position: relative;
    }

    .img-logo {
        /* border: 1px red solid; */
        margin-right: auto;
        margin-left: -1.5rem;
        margin-top: -1.5rem;
        width: 15rem;
        height: 6rem;
    }

    .logo-navbar {
        width: 80%;
      height: 5rem;
      /* object-fit: cover; */
      }

    .menu-icon {
        /* border: 1px solid red; */
    position: sticky;
      display: block;
      cursor: pointer;
      left: 100rem;
      margin-right: 1.5rem;
      /* padding-right: -10rem ; */
      top: 2.8rem;
      /* left: 0; */
      /* bottom: 10rem; */
      z-index: 1000;
      /* width: 2.5rem; */
      font-size: 1.8rem;
    }

    .menu-items {
      display: none;
      text-align: center;
    }

    .menu-items.show {
      display: flex;
      flex-direction: column;
    }
  }

  .menu-items a {
    position: relative;
    text-decoration: none;
    color: #000; /* Link color */
    font-weight: bold;
    font-size: 16px;
  }
  
  /* Underline animation */
  .menu-items a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px; /* Adjust the thickness of the underline */
    bottom: 0;
    left: 0;
    background-color: #2200cc; /* Underline color */
    transform: scaleX(0); /* Initially, set the underline to be invisible */
    transform-origin: bottom right;
    transition: transform 0.3s ease-out; /* Animation duration and easing */
  }
  
  /* Hover effect to reveal the underline */
  .menu-items a:hover::before {
    transform: scaleX(1);
    transform-origin: bottom left;
  }