/* ===== Sticky Nav Bar ===== */
.sticky-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #333;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  /* overflow stays visible so the Tools dropdown isn't clipped */
}

.sticky-nav .logo {
  color: #00ffcc;
  font-size: 1.5em;
  font-weight: bold;
  text-decoration: none;
  letter-spacing: -0.5px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.nav-logo,
.site-logo {
  height: 50px;
  max-height: 50px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-logo:hover,
.site-logo:hover {
  opacity: 0.8;
  transform: scale(1.05);
}

/* ===== Link Styles (shared) ===== */
.sticky-nav .nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s, text-shadow 0.2s;
}

.sticky-nav .nav-links a:hover {
  color: #00ffcc;
  text-shadow: 0 0 8px rgba(0, 255, 204, 0.5);
}

/* ===== Tools Dropdown ===== */
.sticky-nav .tools-link {
  position: relative;
}

.sticky-nav .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 10px 0;
  min-width: 180px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.sticky-nav .tools-link:hover .dropdown {
  display: block;
}

.sticky-nav .dropdown a {
  display: block;
  padding: 10px 20px;
  color: #ffffff;
  font-size: 0.95em;
}

.sticky-nav .dropdown a:hover {
  background: #252525;
  color: #00ffcc;
}

/* ===== DESKTOP (above 768px) ===== */
@media (min-width: 769px) {
  .hamburger {
    display: none !important;
  }

  .sticky-nav .nav-links {
    display: flex !important;
    align-items: center;
    gap: 30px;
    font-size: 1em;
    white-space: nowrap;
  }
}

/* ===== MOBILE (768px and below) ===== */
@media (max-width: 768px) {
  .nav-logo,
  .site-logo {
    height: 35px;
    max-height: 35px;
    max-width: 150px;
  }

  .hamburger {
    display: block !important;
    font-size: 2em;
    color: #00ffcc;
    cursor: pointer;
    user-select: none;
    position: relative;
    z-index: 10000;
    pointer-events: auto;
    margin-left: auto;
    flex-shrink: 0;
  }

  .sticky-nav .nav-links {
    display: none !important;
  }

  .sticky-nav.nav-open .nav-links {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #121212;
    padding: 20px;
    border-bottom: 1px solid #333;
    z-index: 9999;
  }

  .sticky-nav.nav-open .nav-links a {
    padding: 12px 0;
    font-size: 1.1em;
  }

  .sticky-nav.nav-open .dropdown {
    display: block;
    position: static;
    border: none;
    border-radius: 0;
    box-shadow: none;
    min-width: 0;
    padding: 0;
    background: transparent;
  }

  .sticky-nav.nav-open .dropdown a {
    padding: 10px 15px;
    font-size: 1em;
  }
}
