/* ============================================
   LINKS
   ============================================ */
a {
  color: var(--text-main);
  text-decoration: none;
  position: relative;
  display: inline;
  overflow: hidden;
  transition: color 0.3s ease;
  z-index: 1;
}

a::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 100%;
  background-color: var(--accent-lime);
  transition: width 0.3s ease;
  z-index: -1;
}

/* ============================================
   BACK BUTTON
   ============================================ */
.text-box-back {
  position: fixed !important;
  top: calc(env(safe-area-inset-top) + 2vh) !important;
  left: 5vw !important;
  font-size: 2vh !important;
  font-weight: 300 !important;
  color: var(--text-main) !important;
  text-decoration: none !important;
  z-index: 99999 !important;
  cursor: pointer !important;
  display: flex !important;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  align-items: center;
  transition: opacity 0.3s ease, visibility 0.3s ease, color 0.3s ease !important;
  transform: translateZ(0);
}

.text-box-back::before {
  content: none !important;
}

.text-box.active .text-box-back,
.personal-works-box.active .text-box-back {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.text-box-back:hover {
  color: var(--accent-lime) !important;
}

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-menu-toggle {
  display: none;
}

/* ============================================
   UTILITIES
   ============================================ */
.active, .visible {
  z-index: 9999 !important;
}

/* ============================================
   MOBILE HEADER BLUR BAND
   ============================================ */
.header-blur-band {
  display: none;
}