/* ==========================================================================
   StayMitra Technologies - Products & Portfolio Stylesheet (css/products.css)
   ========================================================================== */

/* ==========================================================================
   Our Products / Portfolio Section
   ========================================================================== */

.products-section {
  padding: 100px 0;
  background: var(--bg-soft);
  position: relative;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.product-card {
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid rgba(16, 27, 59, 0.08);
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(15, 33, 119, 0.05);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 50px -8px rgba(15, 33, 119, 0.14);
}

.product-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #f0f3fa;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-img {
  transform: scale(1.06);
}

.product-live-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: rgba(16, 185, 129, 0.92);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  border-radius: 9999px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  animation: livePulse 1.5s infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.product-info {
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-title);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.product-desc {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 18px;
  flex-grow: 1;
}

.product-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tech-pill {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(23, 50, 173, 0.06);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  border-radius: 9999px;
  border: 1px solid rgba(23, 50, 173, 0.12);
  letter-spacing: 0.2px;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--primary);
  padding: 10px 0;
  border-top: 1px solid rgba(16, 27, 59, 0.06);
  transition: all 0.25s ease;
}

.product-link svg {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-link:hover {
  color: var(--primary-dark);
}

.product-link:hover svg {
  transform: translate(4px, -4px);
}

