/* Custom styles complementing Tailwind utilities (see index.html <script> for theme config) */

::selection {
  background-color: #22d3ee;
  color: #0a0e14;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #0a0e14;
}

/* Subtle dot-grid background used behind the hero section */
.bg-grid {
  background-image: radial-gradient(circle, #1c2431 1px, transparent 1px);
  background-size: 28px 28px;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #0a0e14;
}
::-webkit-scrollbar-thumb {
  background: #1c2431;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #22d3ee;
}

/* Fade-up entrance animation, respects reduced-motion */
@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Active nav link underline */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background-color: #22d3ee;
  transition: width 0.2s ease;
}
.nav-link:hover::after,
.nav-link.is-active::after {
  width: 100%;
}
