/* Projeler — filtre + ızgara + cam overlay */
.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 1.25rem;
}
.project-filters button {
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.45rem 0.95rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.project-filters button:hover {
  border-color: rgba(94, 234, 212, 0.45);
  color: #fff;
}
.project-filters button.is-active {
  background: rgba(15, 118, 110, 0.35);
  border-color: rgba(94, 234, 212, 0.55);
  color: #ecfdf5;
}

/* Düzgün ızgara: satırlar hizalı (masonry sütunları yerine grid) */
.project-masonry {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}
@media (min-width: 640px) {
  .project-masonry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .project-masonry {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.project-masonry-card {
  opacity: 1;
  transition: opacity 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}
.project-masonry-card.is-hidden {
  display: none;
}

a.project-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
a.project-card-link:focus-visible {
  outline: 2px solid var(--c-primary, #0f766e);
  outline-offset: 3px;
  border-radius: 1rem;
}
a.project-card-link:hover .project-card__title {
  color: #5eead4;
}

.project-card--portfolio {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-radius: 1rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.project-card--portfolio .project-card__img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}
.project-card--portfolio .project-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.project-card--portfolio:hover .project-card__img img {
  transform: scale(1.08);
}
.project-card__glass {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem 1.1rem;
  background: linear-gradient(
    to top,
    rgba(12, 25, 41, 0.92) 0%,
    rgba(12, 25, 41, 0.35) 45%,
    transparent 72%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.project-card--portfolio:hover .project-card__glass {
  opacity: 1;
}
.project-card__glass-inner {
  transform: translateY(6px);
  transition: transform 0.35s ease;
}
.project-card--portfolio:hover .project-card__glass-inner {
  transform: translateY(0);
}
.project-card__glass .project-card__city {
  margin-bottom: 0.2rem;
}
.project-card__glass .project-card__title {
  font-size: 1.05rem;
}
.project-card__meta {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 0.35rem;
}
.project-card--portfolio .project-card__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 1rem 1.1rem 1.2rem;
  min-height: 0;
}
.project-card__cat-pill {
  display: inline-block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5eead4;
  margin-bottom: 0.35rem;
}
