/* ============================================
   iOS-Inspired Portfolio Cards
   Mobile-first, elegant, minimal design
   ============================================ */

/* Portfolio Card Container - Entire card is clickable */
.portfolio-card {
  border-radius: 16px;
  background: #ffffff;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  height: 100%;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* Dark mode support */
[data-bs-theme="dark"] .portfolio-card {
  background: rgba(255, 255, 255, 0.05);
}

/* Hover state - subtle lift */
.portfolio-card:hover {
  transform: translateY(-2px);
}

[data-bs-theme="dark"] .portfolio-card:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Image container with iOS-style aspect ratio - Reduced height */
.portfolio-card-image {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #f5f5f7;
  border-radius: 16px 16px 0 0;
}

[data-bs-theme="dark"] .portfolio-card-image {
  background: rgba(255, 255, 255, 0.03);
}

.portfolio-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: 16px;
}

.portfolio-card:hover .portfolio-card-image img {
  transform: scale(1.03);
}

/* Card body - clean spacing */
.portfolio-card-body {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* Title - iOS SF Pro inspired */
.portfolio-card-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 8px;
  color: #1d1d1f;
  letter-spacing: -0.01em;
}

[data-bs-theme="dark"] .portfolio-card-title {
  color: #f5f5f7;
}

.portfolio-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.portfolio-card-title a:hover {
  color: #0071e3;
}

[data-bs-theme="dark"] .portfolio-card-title a:hover {
  color: #2997ff;
}

/* Description - subtle, readable */
.portfolio-card-description {
  font-size: 14px;
  line-height: 1.5;
  color: #6e6e73;
  margin-bottom: 16px;
  flex-grow: 1;
}

[data-bs-theme="dark"] .portfolio-card-description {
  color: #a1a1a6;
}

/* Service badges - minimal design */
.portfolio-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.portfolio-card-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.04);
  color: #6e6e73;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
}

[data-bs-theme="dark"] .portfolio-card-badge {
  background: rgba(255, 255, 255, 0.08);
  color: #a1a1a6;
  border-color: rgba(255, 255, 255, 0.1);
}

.portfolio-card-badge:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] .portfolio-card-badge:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Metrics - clean grid */
.portfolio-card-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

[data-bs-theme="dark"] .portfolio-card-metrics {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.portfolio-card-metric {
  display: flex;
  flex-direction: column;
}

.portfolio-card-metric-value {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  color: #0071e3;
  letter-spacing: -0.01em;
}

[data-bs-theme="dark"] .portfolio-card-metric-value {
  color: #2997ff;
}

.portfolio-card-metric-label {
  font-size: 12px;
  color: #6e6e73;
  margin-top: 2px;
}

[data-bs-theme="dark"] .portfolio-card-metric-label {
  color: #a1a1a6;
}

/* Remove CTA button - entire card is clickable */

/* Tablet breakpoint - adjust spacing */
@media (min-width: 768px) {
  .portfolio-card-image {
    height: 200px;
  }

  .portfolio-card-body {
    padding: 24px;
  }

  .portfolio-card-title {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .portfolio-card-description {
    font-size: 15px;
    margin-bottom: 18px;
  }

  .portfolio-card-metric-value {
    font-size: 22px;
  }
}

/* Desktop breakpoint - refined details */
@media (min-width: 992px) {
  .portfolio-card-image {
    height: 220px;
  }

  .portfolio-card:hover {
    transform: translateY(-2px);
  }

  .portfolio-card-body {
    padding: 28px;
  }
}

/* Large screens - maximize visual impact */
@media (min-width: 1200px) {
  .portfolio-card-image {
    height: 240px;
  }

  .portfolio-card-title {
    font-size: 21px;
  }

  .portfolio-card-description {
    font-size: 16px;
  }
}

/* Animation for card entrance */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.portfolio-card {
  animation: fadeInUp 0.5s ease-out;
}

/* Stagger animation delay for multiple cards */
.col:nth-child(1) .portfolio-card { animation-delay: 0.05s; }
.col:nth-child(2) .portfolio-card { animation-delay: 0.1s; }
.col:nth-child(3) .portfolio-card { animation-delay: 0.15s; }
.col:nth-child(4) .portfolio-card { animation-delay: 0.2s; }
.col:nth-child(5) .portfolio-card { animation-delay: 0.25s; }
.col:nth-child(6) .portfolio-card { animation-delay: 0.3s; }
