.portfolio-hero {
  padding: 4rem 0;
  background: var(--tiller-bg-dark, #1a1c1a);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--tiller-color-emerald, #10b981);
  margin-bottom: 1.5rem;
  text-shadow: 0 0 30px rgb(16 185 129 / 40%);
}

.section-summary {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--tiller-text-secondary, rgb(255 255 255 / 85%));
  margin-bottom: 1.5rem;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: #047857;
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 0 20px rgb(4 120 87 / 30%);
}

.portfolio-gallery {
  padding: 4rem 0;
  background: var(--tiller-bg-darker, #121414);
}

.ts-portfolio-tiled {
  background: transparent;
  padding: 0;
  gap: 2rem;
}

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 4rem;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  background: var(--tiller-bg-stone, #222524);
  border: 1px solid rgb(201 162 39 / 20%);
  border-radius: 4px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--tiller-text-primary, #ffffff);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--tiller-color-emerald, #10b981);
}

.filter-btn.active {
  background: #047857;
  border-color: #047857;
  box-shadow: 0 0 20px rgb(4 120 87 / 30%);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

@media (max-width: 1024px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

.project-card {
  background: var(--tiller-bg-stone, #222524);
  border: 1px solid rgb(201 162 39 / 20%);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.project-card.hidden {
  display: none;
}

.project-card:hover {
  border-color: var(--tiller-color-emerald, #10b981);
  transform: translateY(-4px);
  box-shadow:
    0 8px 24px rgb(0 0 0 / 40%),
    0 0 30px rgb(16 185 129 / 10%);
}

.project-image {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--tiller-bg-slate, #2a2d2c);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-content {
  padding: 2rem;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--tiller-color-emerald, #10b981);
  margin-bottom: 0.75rem;
  text-shadow: 0 0 15px rgb(16 185 129 / 30%);
}

.project-caption {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--tiller-text-secondary, rgb(255 255 255 / 85%));
  margin-bottom: 1.5rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--tiller-bg-slate, #2a2d2c);
  color: var(--tiller-text-muted, rgb(255 255 255 / 60%));
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 999px;
  border: 1px solid rgb(201 162 39 / 20%);
}

.portfolio-note {
  text-align: center;
  padding: 2rem;
  background: var(--tiller-bg-stone, #222524);
  border-radius: 8px;
  border-left: 4px solid var(--tiller-color-gold, #c9a227);
}

.portfolio-note p {
  font-size: 0.9375rem;
  color: var(--tiller-text-secondary, rgb(255 255 255 / 85%));
  margin: 0;
}

.portfolio-cta {
  padding: 4rem 0;
}

.bg-primary {
  background: var(--tiller-gradient-emerald-accessible, linear-gradient(135deg, #006c47, #047857));
  color: white;
}

.cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
}

.cta-summary {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #ffffff;
  margin-bottom: 2rem;
}

.cta-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.btn--large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn--white {
  background: var(--tiller-color-green, #1a3d2e);
  color: var(--tiller-color-gold, #c9a227);
  border: 2px solid var(--tiller-color-gold, #c9a227);
}

.btn--white:hover {
  background: var(--tiller-color-green-dark, #0f2a1f);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgb(0 0 0 / 30%);
}

.btn--outline-white {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.btn--outline-white:hover {
  background: #ffffff;
  color: var(--tiller-color-green, #1a3d2e);
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
