@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@1,900&display=swap');

.navbar {
  position: fixed;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  height: var(--nav-height);
  width: 90%;
  padding: 0 2rem;
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 1rem;
  border: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5rem;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar:hover {
  background: var(--surface-hover);
}

/* Logo (image) */
.logo {
  /* height: 100%; */
  display: flex;
  align-items: center;
}

.logo-img {
  height: 100%;
  max-height: 3rem;
  object-fit: contain;
  mix-blend-mode: normal;
  display: block;
}
.logo-typo{
  height: 30px;
  max-height: 3rem;
  object-fit: contain;
  mix-blend-mode: normal;
  display: block;
}

.logo-text {
  padding: 0 0.7rem;
  font-size: 1.5rem;
  /* font-weight: 600; */
  color: var(--text);
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
  font-style: italic;

}

/* Links */
.links {
  display: flex;
  gap: 2rem;
  height: 100%;
  align-items: center;
}

.link {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
}

.link:hover {
  color: var(--secondary);
}

.link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: all 0.3s ease;
}

.link:hover::after {
  width: 100%;
}

/* Mobile Menu Button */
.mobile-menu-button {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 0.75rem;
  font-size: 1.8rem;
  transition: color 0.3s ease;
}

.mobile-menu-button:hover {
  color: var(--secondary);
}

/* Responsive Rules */
@media (max-width: 768px) {
  .navbar {
    top: 1rem;
    width: min(90%, 1000px);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    justify-content: space-between;
  }
  .navbar-icons{
    display: none !important;
  }

  .logo img {
    max-height: 2.2rem;
  }

  .mobile-menu-button {
    display: block;
  }

  .links {
    position: fixed;
    top: calc(var(--nav-height) + 1rem);
    left: 50%;
    transform: translateX(-50%) translateY(-1rem);
    width: min(90%, 1000px);
    flex-direction: column;
    background: var(--surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 1rem;
    border: 1px solid var(--border);
    padding: 1rem;
    gap: 1rem;
    height: auto;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .links.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  .link {
    width: 100%;
    height: 3rem;
    justify-content: center;
  }

  .link::after {
    display: none;
  }
}

/* Extra Small Devices */
@media (max-width: 480px) {
  .navbar {
    gap: 1.5rem;
    padding: 0 1rem;
  }
  .navbar-icons{
    display: none;
  }

  .logo img {
    max-height: 1.8rem;
  }

  .link {
    font-size: 0.9rem;
  }
}