/* Base resets and custom utilities */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background-color: #0D1117;
  color: #C9D1D9;
}

/* Selection color */
::selection {
  background-color: #FF6B4A;
  color: #0D1117;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #161B22;
}
::-webkit-scrollbar-thumb {
  background: #30363D;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #FF6B4A;
}

/* Smooth image rendering */
img {
  -webkit-font-smoothing: antialiased;
}

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

/* Fade-in animations (progressive enhancement — content is visible without JS) */
@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
}
