/* ===================================
   NAV / PAW-TRAIL MENU
   DESKTOP + MOBILE SWIPER
=================================== */

/* Box sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ===================================
   MAIN MENU BAR
=================================== */
.main-menu {
  display: flex;
  width: 100%;
  max-width: 100%;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 220, 160, 0.08), transparent 120px),
    radial-gradient(circle at 80% 60%, rgba(255, 240, 190, 0.06), transparent 140px),
    rgba(12,16,30,0.70);
  backdrop-filter: blur(10px);
  box-shadow:
    0 8px 25px rgba(0,0,0,0.45),
    inset 0 0 30px rgba(255, 220, 160, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;

  height: 140px;
  padding: 0 20px;

  align-items: center;
  justify-content: center;

  border: 2px solid #c2a27c;

  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.main-menu::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 12% 38%, rgba(255, 215, 122, 0.35), transparent 14px),
    radial-gradient(circle at 33% 62%, rgba(255, 241, 193, 0.25), transparent 12px),
    radial-gradient(circle at 58% 24%, rgba(255, 215, 122, 0.30), transparent 10px),
    radial-gradient(circle at 77% 55%, rgba(255, 230, 180, 0.28), transparent 13px),
    radial-gradient(circle at 90% 32%, rgba(255, 241, 193, 0.22), transparent 9px);
  filter: blur(2px);
  opacity: 0.22;
  will-change: transform, opacity;
  animation: fireflyDriftA 22s linear infinite alternate;
}

@keyframes fireflyDriftA {
  0%   { transform: translate(-40px, 18px); opacity: 0.18; }
  33%  { transform: translate(20px, -12px); opacity: 0.26; }
  66%  { transform: translate(-10px, 10px); opacity: 0.20; }
  100% { transform: translate(40px, -18px); opacity: 0.24; }
}

@font-face {
  font-family: "Constantine";
  src:
    url("../fonts/Constantine.woff2") format("woff2"),
    url("../fonts/Constantine.woff") format("woff"),
    url("../fonts/Constantine.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ===================================
   MENU LIST (DESKTOP DEFAULT)
=================================== */
.menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;

  margin: 0;
  padding: 0 20px;
  gap: 24px;

  letter-spacing: 0.20em;
  position: relative;
  z-index: 1;

  width: 100%;
}

.menu-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  min-height: 44px;
  padding: 0.35rem 0.25rem;

  color: rgba(255, 236, 200, 0.92);
  text-shadow:
    0 0 6px rgba(255, 220, 160, 0.25),
    0 0 12px rgba(255, 220, 160, 0.15);

  text-decoration: none;
  line-height: 1.15;
}

/* Hover effect */
.menu-link:hover {
  color: #c8e1f5 !important;
  text-shadow: 0 0 12px rgba(109, 176, 243, 0.6);
  transition: color 0.8s ease, text-shadow 0.8s ease;
}

/* ===================================
   CURRENT PAGE HIGHLIGHT
=================================== */
.menu-item.active .menu-link {
  color: #f6910d !important;
  font-weight: 800 !important;
  text-shadow:
    0 0 8px rgba(255, 211, 155, 0.35),
    0 0 16px rgba(255, 211, 155, 0.18);
  transition: color 0.6s ease, text-shadow 0.6s ease;
}

.menu-item.active .menu-link:hover {
  color: #c8e1f5 !important;
  text-shadow: 0 0 12px rgba(109, 176, 243, 0.6);
}

/* ===================================
   MOBILE: SIDE-SWIPER VERSION
=================================== */
@media (max-width: 1024px) {

  .main-menu{
    height: 88px;
    padding: 0 8px;

    align-items: center;
    justify-content: center;

    overflow: hidden;

    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0,
      black 18px,
      black calc(100% - 18px),
      transparent 100%
    );
    mask-image: linear-gradient(
      to right,
      transparent 0,
      black 18px,
      black calc(100% - 18px),
      transparent 100%
    );
  }

  .menu-placeholder{
    height: 88px;
  }

  .menu{
    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0 6px;

    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;

    overflow-x: auto;
    overflow-y: hidden;

    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    touch-action: auto;
  }

  .menu::-webkit-scrollbar{
    height: 0;
  }

  .menu{
    scrollbar-width: none;
  }

  .menu-item,
  #start-paw,
  #end-paw{
    flex: 0 0 auto;
    min-width: 120px;
    height: 100%;
    margin: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    scroll-snap-align: center;
  }

  .menu-link{
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    width: 100%;
    min-height: 52px;
    max-width: 150px;

    margin: 0;
    padding: 0.45rem 0.55rem;

    font-size: 13px;
    letter-spacing: 0.08em;
    line-height: 1.15;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .paw-glow-wrapper{
    width: 92px;
    height: 84px;
    margin-top: 0;

    display: flex;
    align-items: center;
    justify-content: center;
  }

  .pawprint{
    width: 62px;
  }
}

/* ===================================
   EXTRA-SMALL PHONES
=================================== */
@media (max-width: 480px){

  .main-menu{
    height: 82px;
    padding: 0 6px;
  }

  .menu-placeholder{
    height: 82px;
  }

  .menu{
    gap: 8px;
    padding: 0 4px;
  }

  .menu-item,
  #start-paw,
  #end-paw{
    min-width: 112px;
  }

  .menu-link{
    min-height: 48px;
    max-width: 140px;
    padding: 0.38rem 0.45rem;
    font-size: 12px;
    letter-spacing: 0.06em;
  }
}
@media (max-width: 768px){

  .main-menu{
    height: 88px;
    padding: 0 8px;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    overflow-y: hidden;
  }

  .menu{
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0 6px;

    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;

    overflow-x: auto;
    overflow-y: hidden;

    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;

    scroll-snap-type: x proximity;

    touch-action: auto;
  }

  .menu::-webkit-scrollbar{
    height: 0;
  }
}