/* ====== Cards ====== */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.card {
  background: #fff;
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  flex: 1 1 calc(33% - 20px);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: calc(var(--card-index, 0) * 0.1s);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.card img {
  max-width: 80px;
  margin-bottom: 12px;
}

.card-img-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
}

.card h4 {
  margin-bottom: 8px;
  color: var(--primary-color);
}

.card p {
  font-size: 0.95rem;
  color: #555;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  padding: 32px 0;
}

.card img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: cover;
  border-radius: var(--border-radius);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 24px;
}

.service-card img {
  width: 100%;
  max-width: 240px; /* Increase this for larger images */
  height: auto;
  object-fit: contain;
  margin-bottom: 12px;
}
.service-card h4 {
  font-size: 1.125rem;
  margin-top: 0;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}
.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
  gap: 16px;
}

.service-card img {
  width: 100%;
  max-width: 320px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.service-card {
  flex-direction: column-reverse;
}
.service-card, .project-card {
  background-color: #fff;
  border: 1px solid #eee;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}
.service-card:hover, .project-card:hover {
  transform: translateY(-4px);
}
