.grid-bg {
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
}

.scroll-hover {
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
  will-change: transform;
}

.scroll-hover:hover,
.scroll-hover:focus-within,
.scroll-hover.is-visible {
  transform: translateY(-4px);
  border-color: rgba(68, 226, 205, 0.55) !important;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24), 0 0 0 1px rgba(68, 226, 205, 0.2) inset;
}

.mobile-nav a {
  min-height: 56px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: color 0.2s ease;
}

.mobile-nav svg {
  transition: transform 0.2s ease;
}

.mobile-nav a:active svg {
  transform: scale(0.9);
}

[data-lang-switch].active {
  color: #44e2cd;
  border-color: rgba(68, 226, 205, 0.7);
  background: rgba(68, 226, 205, 0.12);
}

.mobile-lang-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.mobile-lang-select {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(13, 28, 45, 0.9);
  color: #d4e4fa;
  border: 1px solid rgba(58, 72, 88, 0.8);
  border-radius: 8px;
  padding: 6px 24px 6px 10px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mobile-lang-wrap::after {
  content: "";
  position: absolute;
  right: 8px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid rgba(68, 226, 205, 0.85);
  pointer-events: none;
}

.mobile-lang-select:focus {
  outline: 2px solid rgba(68, 226, 205, 0.55);
  outline-offset: 1px;
  border-color: rgba(68, 226, 205, 0.6);
}

@media (prefers-reduced-motion: reduce) {
  .scroll-hover {
    transition: none;
  }

  .scroll-hover:hover,
  .scroll-hover:focus-within,
  .scroll-hover.is-visible {
    transform: none;
    box-shadow: none;
  }
}
