/* Fan30Tech | Flat underline home section navigation | Version: v111 */

.home-v75 {
  --home-subnav-height: 56px;
}

/* Keep only the navigation bar itself; the detached inner capsule is removed. */
.home-v75 .home-section-nav {
  height: var(--home-subnav-height);
  min-height: var(--home-subnav-height);
  border-top: 0 !important;
  border-bottom: 1px solid rgba(129, 170, 201, 0.18) !important;
  background: rgba(5, 11, 20, 0.97) !important;
  -webkit-backdrop-filter: blur(18px) saturate(116%);
  backdrop-filter: blur(18px) saturate(116%);
}

.home-v75 .home-section-nav__inner {
  display: flex !important;
  height: 100%;
  min-height: 0;
  align-items: stretch;
  justify-content: center;
  gap: 0;
}

.home-v75 .home-section-nav__label {
  display: none !important;
}

.home-v75 .home-section-nav__scroller {
  width: auto;
  max-width: 100%;
  min-width: 0;
  height: 100%;
  overflow-x: visible;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-v75 .home-section-nav__links {
  display: flex;
  width: max-content;
  min-width: max-content;
  height: 100%;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  padding: 0;
}

/* Adjacent anchors form one continuous clickable row with no dead gaps. */
.home-v75 .home-section-nav__link {
  position: relative;
  display: inline-flex;
  min-width: max-content;
  min-height: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 0;
  border-radius: 0;
  color: #cbd5e1;
  background: transparent;
  box-shadow: none;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: color 180ms ease;
}

.home-v75 .home-section-nav__link::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px 999px 0 0;
  background: #d8ad55;
  box-shadow: 0 0 10px rgba(216, 173, 85, 0.24);
  transform: translateX(50%);
  transition: width 190ms ease, opacity 190ms ease;
  opacity: 0;
  pointer-events: none;
}

.home-v75 .home-section-nav__link > span,
.home-v75 .home-section-nav__link > svg {
  pointer-events: none;
}

.home-v75 .home-section-nav__link svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: #aebdcd;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: color 180ms ease;
}

.home-v75 .home-section-nav__link:hover {
  color: #fff1cf;
  background: transparent;
}

.home-v75 .home-section-nav__link:hover svg {
  color: #e2c476;
}

.home-v75 .home-section-nav__link:hover::after {
  width: 34%;
  opacity: 0.54;
}

.home-v75 .home-section-nav__link.is-active,
.home-v75 .home-section-nav__link[aria-current="location"] {
  color: #fff5dc;
  background: transparent;
  box-shadow: none;
}

.home-v75 .home-section-nav__link.is-active svg,
.home-v75 .home-section-nav__link[aria-current="location"] svg {
  color: #f0d48a;
}

.home-v75 .home-section-nav__link.is-active::after,
.home-v75 .home-section-nav__link[aria-current="location"]::after {
  width: calc(100% - 30px);
  opacity: 1;
}

.home-v75 .home-section-nav__project-link {
  color: #d9e2ec;
  font-weight: 500;
}

.home-v75 .home-section-nav__project-link svg {
  color: #d8b561;
}

/* Each target stops below the fixed header and this navigation row. */
.home-v75 main section[id] {
  scroll-margin-top: calc(var(--home-header-offset) + var(--home-subnav-height) + 18px) !important;
}

@media (min-width: 1021px) {
  .home-v75 {
    --home-subnav-height: 56px !important;
  }
}

@media (max-width: 1020px) {
  .home-v75 {
    --home-subnav-height: 56px;
  }

  .home-v75 .home-section-nav__inner {
    justify-content: flex-start;
  }

  .home-v75 .home-section-nav__scroller {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
    scroll-snap-type: inline proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .home-v75 .home-section-nav__scroller::-webkit-scrollbar {
    display: none;
  }

  .home-v75 .home-section-nav__links {
    justify-content: flex-start;
  }

  .home-v75 .home-section-nav__link {
    scroll-snap-align: center;
  }
}

@media (max-width: 640px) {
  .home-v75 .home-section-nav .container {
    width: 100%;
  }

  .home-v75 .home-section-nav__link {
    padding-inline: 15px;
    font-size: 0.78rem;
  }

  .home-v75 .home-section-nav__link svg {
    width: 17px;
    height: 17px;
    flex-basis: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-v75 .home-section-nav__scroller {
    scroll-behavior: auto;
  }

  .home-v75 .home-section-nav__link,
  .home-v75 .home-section-nav__link::after,
  .home-v75 .home-section-nav__link svg {
    transition: none;
  }
}
