/* ===== TOPBAR ===== */
.topbar {
  background-color: #1a1a2e;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 10vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.topbar-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topbar-info a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

.topbar-info a:hover {
  color: var(--primary-color);
}

.topbar-info a i {
  color: var(--primary-color);
  font-size: 0.75rem;
}

.topbar-divider {
  color: rgba(255, 255, 255, 0.25);
  user-select: none;
}

.topbar-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.topbar-follow {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
  margin-right: 0.25rem;
}

.topbar-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.72rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.topbar-social a:hover {
  background: var(--primary-color);
  color: white;
}

@media (max-width: 768px) {
  .topbar-info span {
    display: none;
  }
  .topbar-follow {
    display: none;
  }
}

@media (max-width: 480px) {
  .topbar {
    display: none;
  }
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky !important;
  top: 0;
  left: 0;
  width: 100%;
  background-color: white;
  z-index: 100;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Bottom shadow effect */
}

.navbar .container {
  padding: 1rem 10vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
}

.navbar .container .logo img {
  height: 60px;
  object-fit: contain;
}

.navbar .container .menu {
  margin-left: auto;
}

.navbar .container .menu li {
  list-style: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.navbar .container .menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.navbar .container .menu li:hover {
  color: var(--primary-color);
}

.navbar .container .menu .active {
  color: var(--primary-color);
}

.navbar .container .actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.navbar .container .actions .btn {
  padding: 0.8rem 1rem;
  border: 1.6px solid var(--primary-color);
  font-weight: 500;
  transition: all 0.3s ease;
}

.navbar .container .actions .btn:hover {
  transform: scale(1.05);
}

.navbar .container .actions .primary {
  color: white;
  background-color: var(--primary-color);
}

.navbar .container .actions img {
  cursor: pointer;
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.navbar .container .mb-menu {
  display: none;
}

@media only screen and (max-width: 997px) {
  .navbar .container {
    position: relative;
  }

  .navbar .container .logo img {
    height: 100%;
    width: 170px;
    object-fit: cover;
  }

  .navbar .container .menu {
    display: none;
  }

  .navbar .container .show {
    display: flex;
    gap: 2rem;
    padding: 2rem 5vw;
    flex-direction: column;
    align-items: start;
    justify-content: flex-start;
    background-color: whitesmoke;
    width: min(82vw, 340px);
    max-height: calc(100vh - 7rem);
    height: auto;
    overflow-y: auto;
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    border: 2px solid rgba(190, 16, 3, 0.3);
    border-radius: 8px;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
  }

  .navbar .container .actions a {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
  }

  .navbar .container .menu .hidden {
    display: block;
  }

  .navbar .container .mb-menu {
    display: block;
    cursor: pointer;
  }

  .navbar .container .actions {
    margin-left: auto;
    margin-right: 10px;
  }
}

@media only screen and (max-width: 560px) {
  .navbar .container .logo img {
    height: 100%;
    width: 150px;
    object-fit: cover;
  }

  .navbar .container .show {
    width: min(90vw, 340px);
  }

  .navbar .container .actions {
    display: flex;
  }

  .navbar .container .actions .btn {
    display: none;
  }
}
