.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #0A3D62;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  z-index: 1000;
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  position: relative;
  width: 100%;
}

.navbar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
  transition: transform .3s ease;
}

.navbar-brand:hover {
  transform: scale(1.2);
  text-decoration: none;
  color: white;
}

.brand-logo {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, .2);
  margin-right: 12px;
  object-fit: cover;
  transition: all .3s ease;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

.brand-logo:hover {
  border-color: rgba(255, 255, 255, .4);
  box-shadow: 0 8px 25px rgba(0, 0, 0, .3);
}

.brand-text {
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  margin-left: 10px;
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  position: absolute;
  right: 10px;
  transition: all .3s ease;
  overflow: hidden;
}

.navbar-toggle::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, .1);
  transform: translateX(-100%);
  transition: transform .3s ease;
}

.navbar-toggle:hover::before {
  transform: translateX(0);
}

.navbar-toggle:hover {
  background: rgba(255, 255, 255, .1);
  transform: scale(1.1);
}

.navbar-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  color: rgba(255, 255, 255, .9);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: .95rem;
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, .3), rgba(118, 75, 162, .3));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
  border-radius: 8px;
}

.nav-link:hover::before {
  transform: scaleX(1);
}

.nav-link:hover {
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, .2);
}

.nav-link i {
  margin-right: 6px;
  font-size: .9rem;
}

.btn-login {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border: none;
  color: white !important;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(102, 126, 234, .3);
}

.btn-login:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, .4);
}

.navbar-collapse {
  display: flex;
  align-items: center;
}

/* Desktop */
@media (min-width: 992px) {
  .navbar-collapse {
    position: static;
    margin-left: auto;
    margin-right: 10px;
  }

  .navbar-nav {
    flex-direction: row;
    gap: 4px;
  }
}

/* Mobile */
@media (max-width: 991px) {
  .navbar-toggle {
    display: block;
  }

  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 5px;
    background: rgba(60, 60, 60, .98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, .3);
    width: auto;
    min-width: 200px;
    max-width: calc(100vw - 20px);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
  }

  .navbar-collapse.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .navbar-nav {
    flex-direction: column;
    gap: 4px;
    width: 100%;
  }

  .nav-link {
    padding: 12px 16px;
    width: 100%;
    justify-content: flex-start;
    border-radius: 8px;
  }

  .nav-link:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, .2);
  }
}

/* Small screens */
@media (max-width: 576px) {
  .navbar-brand {
    font-size: 1rem;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
    margin-right: 8px;
    margin-left: 10px;
    font-size: 1.2rem;
  }

  .navbar-collapse {
    min-width: 200px;
  }

  .nav-link {
    font-size: .9rem;
    padding: 10px 14px;
  }
}