/*
 * Hover polish for the services section: service cards, the tech-stack
 * pills/icons, and their shine-sweep buttons. These classes are referenced
 * by inline `transition` properties in service.blade.php / services.blade.php
 * but need real `:hover` rules to actually animate, which is what this file
 * provides.
 */

/*
 * Font Awesome's JS bundle replaces <i class="fas fa-*"> tags with inline
 * SVGs asynchronously after the icon library finishes loading. Until then,
 * the <i> has no content and zero width, so any text sitting right next to
 * it (badge labels, button labels) renders flush against the icon's
 * position and then jumps once the SVG is inserted — a layout shift that
 * shows up as a ghosted double-image if a repaint is caught mid-shift.
 * Reserving the icon's width up front avoids the shift entirely. Most
 * pronounced on services.blade.php, which loads Font Awesome from an
 * external CDN rather than the local vendor bundle other pages use.
 */
.fas, .far, .fab, .fal, .fa {
  display: inline-block;
  min-width: 1em;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(37, 99, 235, 0.18);
}

.service-card:hover .service-card-bg {
  transform: scale(1.08);
}

.service-card:hover .icon-bg {
  transform: scale(1.08) rotate(-4deg);
}

.service-card:hover .service-btn .btn-shine {
  opacity: 1;
  top: -30%;
  left: 120%;
}

.tech-icon-item:hover,
.tech-pill:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.12);
}

/* New categorized tech-stack grid (homepage "Technologies We Work With") */
.tech-pill-grid {
  text-align: left;
}

.tech-pill-category + .tech-pill-category {
  margin-top: 1.75rem;
}

.tech-pill-category-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 0.9rem;
}

.tech-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 999px;
  padding: 0.55rem 1rem 0.55rem 0.65rem;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tech-pill svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.tech-pill-label {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1f2937;
  white-space: nowrap;
}
