html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: #2c3e6b;
  color: #fffdf7;
}

.underline-link {
  position: relative;
  display: inline-block;
  transition: color 0.2s ease;
}

.underline-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 0;
  height: 1.5px;
  background-color: #2c3e6b;
  transition: width 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.underline-link:hover::after {
  width: 100%;
  left: 0;
  right: auto;
}

.underline-link:hover {
  color: #2c3e6b;
}

.section-title {
  position: relative;
  display: inline-block;
}

.skill-pill {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  background-color: #e8ecf4;
  color: #2c3e6b;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.skill-pill:hover {
  background-color: #2c3e6b;
  color: #fffdf7;
}

.category-pill {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  background-color: #2c3e6b;
  color: #fffdf7;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.bubble-card:hover {
  transform: translateY(-3px);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.05s; }
.fade-in:nth-child(2) { animation-delay: 0.1s; }
.fade-in:nth-child(3) { animation-delay: 0.15s; }
.fade-in:nth-child(4) { animation-delay: 0.2s; }
.fade-in:nth-child(5) { animation-delay: 0.25s; }
.fade-in:nth-child(6) { animation-delay: 0.3s; }

@media (max-width: 768px) {
  header nav {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  header .flex.items-center.gap-6 {
    gap: 1rem;
  }
}
