/* ═══════════════════════════════════════════════
   MOQIU TECHNOLOGY — Custom CSS
   Supplement to Tailwind CDN
   ═══════════════════════════════════════════════ */

/* ── Smooth scroll behaviour ── */
html {
  scroll-behavior: smooth;
}

/* ── Selection colour ── */
::selection {
  background: rgba(255, 255, 255, 0.15);
  color: #fafafa;
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar              { width: 5px; }
::-webkit-scrollbar-track        { background: #0a0a0a; }
::-webkit-scrollbar-thumb        { background: #2a2a2a; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover  { background: #444; }

/* ── Hero grid overlay ── */
.hero-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* ── Text gradient (hero heading) ── */
.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #888888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Service card glow ── */
.card-glow {
  background: radial-gradient(
    ellipse at 50% 0%,
    rgba(255, 255, 255, 0.05) 0%,
    transparent 70%
  );
}

/* ── Language dropdown refined ── */
.lang-dropdown {
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.group:hover .lang-dropdown {
  transform: translateY(0);
}

/* ── Nav link underline effect ── */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #fafafa;
  transition: width 0.25s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* ── Remove outline on focused buttons for mouse users,
      keep it for keyboard users ── */
button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}

/* ── Respect reduced-motion preference ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}
