.site-header {
  position: fixed;
  top: 0;
  z-index: 3000;

  width: 100%;
  height: 60px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 0 20px;

  background: var(--color-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 40px; 
  width: auto;
}

.brand-name {
  margin-left: 10px; 
  font-size: 24px; 
  font-family: Momo Trust Display, sans-serif; 
  font-weight: bold; color: #333; 
  align-items: middle;
}

#mainNav {
  font-family: Inter, sans-serif;
  font-size: 16px;
  color: #333;
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
  transition: none;
}

#mainNav > a { 
  align-items: center; 
  text-decoration: none; 
  color: #333; 
}

.nav-links {
  display: flex;
  flex-direction: row;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: center;
}

.nav-items {
  list-style: none;
  height: 100%;
  display: flex;
}


.nav-item > a {
  color: #333;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 15px;
}

.nav-item > a:hover {
  color: #00DDDD;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px; /* space between text and icon */
  text-decoration: none;
}

/* smooth animation */
.nav-link .material-icons {
  transition: transform 0.3s ease;
}

.nav-link:hover .material-icons {
  transform: rotate(180deg);
}


.dropdown-content a {
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  transition: none;
  animation: none;
  opacity: 1;
  border: none;
  box-shadow: none;
  transform: translateY(0px);
}

.dropdown {
  position: relative;
}

/* Hidden menu */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 180px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
  z-index: 1000;
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
}

/* Links inside dropdown */
.dropdown-content a {
  display: block;
  padding: 20px;
  color: #333;
}

.dropdown-content a:hover {
  background: #f5f5f5;
}

/* Show menu on hover */
.dropdown:hover .dropdown-content {
  display: block;
}


/* MOBILE DEFAULT (hidden menu) */
@media (max-width: 1024px) {

  /* =========================
     LAYERING FIX (IMPORTANT)
  ========================= */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 3000;
    background: white;
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }

  .hamburger {
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
  }

  #mainNav {
    z-index: 2000;
  }

  /* =========================
     HAMBURGER ICON
  ========================= */
  input[type="checkbox"] {
    width: 40px;
    height: 40px;
    opacity: 0;
    position: absolute;
  }

  .hamburger-icon {
    width: 40px;
    height: 4px;
    background: #333;
    position: relative;
    border-radius: 999px;
  }

  .hamburger-icon::before,
  .hamburger-icon::after {
    content: '';
    width: 40px;
    height: 4px;
    background: #333;
    position: absolute;
    transition: 0.3s ease;
    border-radius: 999px;
  }

  .hamburger-icon::before { top: -14px; }
  .hamburger-icon::after { top: 14px; }

  /* X animation */
  #toggle:checked ~ .hamburger-icon {
    background: transparent;
  }

  #toggle:checked ~ .hamburger-icon::before {
    transform: translateY(14px) rotate(45deg);
  }

  #toggle:checked ~ .hamburger-icon::after {
    transform: translateY(-14px) rotate(-45deg);
  }

  /* =========================
     FULL PAGE MENU OVERLAY
  ========================= */
  #mainNav {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);

    /* 🔥 TINT + BLUR */
    background: white;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  /* OPEN STATE */
  #mainNav.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* =========================
     NAV STRUCTURE
  ========================= */
  .nav-links {
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .nav-item {
    width: 100%;
  }

  .nav-item > a {
    display: block;
    width: 100%;
    padding: 16px;
    font-size: 18px;
    color: #333;
    text-decoration: none;
  }

  .nav-item > a:hover {
    color: #333;
  }

  /* =========================
     DROPDOWN
  ========================= */
  #mainNav .dropdown {
    width: 100%;
  }

  #mainNav .dropdown-content {
    position: static;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-shadow: none;
    background: transparent;
  }

  .dropdown-content a:hover {
    background: none;
  }

  .nav-link:hover .material-icons {
    transform: none;
  }

}
