/* =========================
 *  *    TOP BAR
 *   *    ========================= */

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  display: flex;
  justify-content: flex-start;
  gap: 20px;
  align-items: center;
  padding: 0 20px;
  background: rgba(0, 0, 0, 0.7);
  border-bottom: 1px solid #222;
  z-index: 9000;
  backdrop-filter: blur(6px);
}

/* =========================
 *  *    LOGO
 *   *    ========================= */

.logo-container,
.logo-link,
.logo {
  pointer-events: auto !important;
}

.logo-link {
  display: inline-block;
  line-height: 0;
}

.logo {
  display: block;
  height: 35px;
  max-width: 100%;
  object-fit: contain;
  transition: height 0.3s ease, transform 0.3s ease;
}

.logo-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 8999;
  text-align: center;
}

/* =========================
 *  *    NAV
 *   *    ========================= */

.header-nav {
  margin-right: 2%;
  margin-left: auto;
  display: flex;
  gap: 20px;
}

.header-nav a {
  color: #E0E0E0;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.3s, text-shadow 0.3s;
}

.header-nav a:hover,
.header-nav a.active {
  text-shadow: 0 0 10px rgba(255, 255, 240, 0.6);
  color: #fff;
}

/* =========================
 *  *    BURGER
 *   *    ========================= */

.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  cursor: pointer;
  z-index: 13000;
}

.burger-menu span {
  display: block;
  height: 3px;
  width: 100%;
  background: #E0E0E0;
  border-radius: 3px;
  transition: all 0.35s ease;
}

.burger-menu.active span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
  background: #bb86fc;
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
}

.burger-menu.active span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
  background: #bb86fc;
}

/* =========================
 *  *    MOBILE NAV
 *   *    ========================= */

.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 97vh;
  background: rgba(10, 10, 10, 1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;

  transition: transform 0.45s ease, opacity 0.45s ease;
  z-index: 12000;
}

.mobile-nav.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.mobile-nav a {
  color: #E0E0E0;
  font-size: 1.6rem;
  font-weight: 600;
  text-decoration: none;
  margin: 20px 0;
}

.mobile-nav a:hover {
  color: #bb86fc;
}

/* =========================
 *  *    RESPONSIVE
 *   *    ========================= */

@media (max-width: 768px) {
  .header-nav {
    display: none;
  }

  .burger-menu {
    display: flex;
    margin-left: auto;
  }
}

@font-face {
    font-family: 'Montserrat';
    src: url('/fonts/montserrat-v31-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/fonts/montserrat-v31-latin-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
