/* Smooth scroll */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

/* Scroll-triggered animations */
.animate-on-scroll.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Navbar shadow on scroll */
#navbar.scrolled {
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.05), 0 1px 2px -1px rgb(0 0 0 / 0.05);
}

/* Active nav link */
.nav-link.active {
  color: #0f172a;
  font-weight: 500;
}

/* Scroll-to-top visible state */
#scroll-top.visible {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Skill badge hover */
.skill-badge {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.skill-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.06);
}

/* Selection color */
::selection {
  background-color: #3b82f6;
  color: white;
}
