html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a,
button,
input,
select,
textarea {
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease, transform 0.2s ease;
}

a:hover,
button:hover {
  transform: translateY(-1px);
}

a:active,
button:active {
  transform: translateY(0);
}

:focus-visible {
  outline: 2px solid rgba(50, 213, 255, 0.7);
  outline-offset: 3px;
}

.glass,
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass:hover,
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

img {
  transition: transform 0.4s ease, filter 0.4s ease;
}

img:hover {
  transform: scale(1.01);
}

.page-transition {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, rgba(18, 22, 30, 0.92), rgba(8, 10, 14, 0.95));
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
  z-index: 9998;
}

.js-page-transition .page-transition.is-active {
  opacity: 1;
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
