body {
    margin: 0;
    font-family: Afacad, sans-serif;
    color: white;
  }
  
  /* Navigation Bar Styling */
  .navbar {
    display: flex;
    position: absolute;
    align-items: center;
    justify-content: space-between; 
    width: 100%;
    top: 0;
    flex-direction: row;
    color: white;
    padding: 10px 20px;
    z-index: 1000;
}
  
  /* Logo Styling */
  .nav-logo {
    font-family: 'Sarina';
    font-size: 25px;
    font-weight: bold;
    text-decoration: none;
    color: rgb(255, 255, 255);
    margin-right: 20px;
    text-shadow: 5px 5px 5px #000000;
    margin-left: 40px;
  }
  
  /* Navigation Links Styling */

  .nav-list {
    padding: 0;

    display: flex;
    list-style: none;
  }

.nav-list li {
    
    margin-right: 20px;
}

.nav-list li:last-child {
    margin-right: 0;
}

.nav-list li a {
    text-decoration: none;
    color: white;
    font-size: 18px;
    transition: color 0.3s ease-in-out;
}

.nav-list li a:hover {
    color: #ffd700;
    /* Change the color on hover */
}

  .nav-links {
    display: flex;
    align-items: center;
    gap: 50px;
    list-style: none;
    padding: 8px 40px;
    margin-right: 74px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 5px 4px 5px rgba(0, 0, 0, 0.51);
    transition: height 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s ease, transform 0.6s ease;
  }
  
  .nav-links a {
    align-items: center;
    text-decoration: none;
    color: white;
    font-size: 20px;
    padding: 2px 8px;
    border-radius: 20px;
    transition: background-color 0.3s;
  }
  
  .nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 25px;
  }
  
  /* Menu Toggle Button */
  .menu-toggle {
    display: none;
    width: 50px;
    background: none;
    border: none;
    border-radius: 25px;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    text-shadow: 5px 5px 5px #000000;
    z-index: 1000;
  }
  
  .menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 25px;
  }
  
  /* Search Button Styling */
  .search-button {
    position: relative;
  }
  
  .search-btn {
    background: none;
    width: 70px;
    border: none;
    border-radius: 25px;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    text-shadow: 5px 5px 5px #000000;
    margin-right: 30px;
  }
  
  .search-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 25px;
  }
  
  .search-btn.active {
    color: #d6d6d6;
    background-color: #444;
    border-radius: 25px;
  }
  
  /* Search Form Styling */
  .search-form {
    display: none;
    position: absolute;
    outline: none;
    top: 40px;
    right: 0;
    background: rgb(255, 255, 255);
    border-radius: 25px;
    margin-top: 20px;
    padding: 10px;
    z-index: 10;
  }
  
  .search-form.active {
    display: flex;
  }
  
  .search-input {
    width: 160px;
    padding: 5px;
    border: none;
    border-radius: 5px;
    margin-right: 5px;
    outline: none;
    transition: width 0.3s ease;
  }
  
  .search-submit {
    background-color: white;
    color: black;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
  }
  
  .search-submit:hover {
    background-color: #ddd;
    border-radius: 25px;
  }
  
  /* Responsive Design for Small Screens */
  @media (max-width: 768px) {
    .search-input {
      width: 60px;
      
      transition: all 0.2s ease;
    }
  }

  @media (max-width: 913px) {
    .nav-logo {
      margin-left: 0px;
    }
    .nav-links {
      display: flex;
      flex-direction: column;
      position: absolute;
      top: 60px;
      left: 0;
      width: 100%;
      background: rgba(0, 0, 0, 0.9);
      padding: 0;
      border-radius: 25px;
      max-height: 0;
      overflow: hidden;
      opacity: 0;
      transform: translateY(-10px);
      transition: height 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s ease, transform 0.5s ease;
    }
  
    .nav-links li {
      text-align: center;
      margin: 2px;
      padding: 2px 20px;
    }
  
    .nav-links.active {
      max-height: 300px;
      opacity: 1;
      transform: translateY(0);
    }
  
    .menu-toggle {
      display: block;
    }
  
    .search-button {
      margin-left: auto;
    }
  
    .nav-logo {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
    }
  }
  
