
.topnav {
  background-color: rgba(51, 51, 51, 0.85); /* Adjusted transparency */
  overflow: hidden;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 20px;
  position: fixed;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(8px); /* Frosted glass effect */
  -webkit-backdrop-filter: blur(8px); /* For Safari */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* Logo and brand name styling */
.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  height: 40px;
  width: auto;
  border-radius: 50%;
}

.brand-name {
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
}

/* Navigation links container */
.nav-links {
  display: flex;
  align-items: center;
  transition: max-height 0.3s ease;
}

/* Style the links inside the navigation bar */
.topnav a {
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
  transition: all 0.3s ease;
}

/* Change the color of links on hover */
.topnav a:hover {
  background-color: rgba(221, 221, 221, 0.2);
  color: white;
}

/* Add an active class to highlight the current page */
.topnav a.active {
  background-color: rgba(4, 170, 109, 0.8);
  color: white;
}

/* Login button styling */
.login-btn {
  background-color: rgba(74, 144, 226, 0.8);
  border-radius: 20px;
  margin-left: 10px;
  padding: 8px 20px !important;
}

.login-btn:hover {
  background-color: rgba(74, 144, 226, 1) !important;
  transform: translateY(-2px);
}

/* Hide the hamburger icon by default */
.topnav .icon {
  display: none;
  color: white;
  font-size: 20px;
  padding: 14px 16px;
  cursor: pointer;
}

/* Responsive styles - Mobile view */
@media screen and (max-width: 768px) {
  .topnav {
    flex-wrap: wrap;
    padding: 5px 10px;
  }
  
  .nav-links {
    flex-direction: column;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    align-items: flex-start;
  }
  
  .nav-links a {
    width: 100%;
    text-align: left;
    padding: 12px 16px !important;
    box-sizing: border-box;
  }
  
  .login-btn {
    margin: 10px 0 0 0 !important;
    width: 100%;
    text-align: center;
    border-radius: 4px;
  }
  
  .topnav .icon {
    display: block;
    position: absolute;
    right: 10px;
    top: 10px;
  }
  
  .topnav.responsive .nav-links {
    max-height: 500px; /* Adjust based on your content */
    padding: 10px 0;
  }
}
