.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.28, 0.11, 0.32, 1);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.05), 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #1d1d1f;
  font-weight: 600;
  font-size: 17px;
  padding: 16px 20px;
  z-index: 1002;
  letter-spacing: -0.022em;
  transition: opacity 0.2s ease;
}

.navbar-brand:hover {
  opacity: 0.7;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
  font-size: 16px;
  box-shadow: 0 1px 3px rgba(0, 122, 255, 0.3);
}

.navbar-menu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  background: white;
  flex-direction: column;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.navbar-menu.active {
  display: flex;
  max-height: 300px;
}

.navbar-menu li {
  width: 100%;
}

.nav-link {
  display: block;
  padding: 16px 20px;
  color: #1d1d1f;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: all 0.2s cubic-bezier(0.28, 0.11, 0.32, 1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  letter-spacing: -0.016em;
}

.nav-link:hover,
.nav-link:active {
  background: rgba(0, 122, 255, 0.06);
  color: #007AFF;
}

.navbar-actions {
  position: fixed;
  top: 16px;
  right: 60px;
  z-index: 1002;
}

.btn-signin {
  padding: 8px 18px;
  background: #007AFF;
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.28, 0.11, 0.32, 1);
  box-shadow: 0 1px 3px rgba(0, 122, 255, 0.25);
  letter-spacing: -0.016em;
}

.btn-signin:hover {
  background: #0051D5;
  box-shadow: 0 2px 6px rgba(0, 122, 255, 0.35);
}

.btn-signin:active {
  transform: scale(0.96);
  background: #004BB8;
}

.mobile-menu-toggle {
  display: block;
  position: fixed;
  top: 14px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  cursor: pointer;
  z-index: 1002;
  padding: 0;
  transition: all 0.2s cubic-bezier(0.28, 0.11, 0.32, 1);
}

.mobile-menu-toggle:hover {
  background: rgba(245, 245, 247, 0.95);
}

.mobile-menu-toggle:active {
  transform: scale(0.94);
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.hamburger-line {
  width: 20px;
  height: 2px;
  background: #1d1d1f;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 768px) {
  .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
  }

  .navbar-brand {
    padding: 18px 0;
    font-size: 17px;
    position: static;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
  }

  .navbar-menu {
    display: flex;
    position: static;
    flex-direction: row;
    background: transparent;
    border: none;
    box-shadow: none;
    max-height: none;
    overflow: visible;
    flex: 1;
    justify-content: center;
    gap: 8px;
  }

  .navbar-menu.active {
    max-height: none;
  }

  .navbar-menu li {
    width: auto;
  }

  .nav-link {
    padding: 8px 16px;
    border-radius: 10px;
    border: none;
    font-size: 14px;
  }

  .navbar-actions {
    position: static;
  }

  .btn-signin {
    padding: 9px 22px;
    font-size: 14px;
  }

  .mobile-menu-toggle {
    display: none;
  }
}

@media (min-width: 1024px) {
  .navbar {
    padding: 0 60px;
  }

  .navbar-menu {
    gap: 12px;
  }

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