.portfolio-content {
  width: 100%;
  max-width: 1160px;
  padding: 2rem 1rem;
  box-sizing: border-box;
  text-align: center;
  color: white;
  z-index: 2;
}

.portfolio-title {
  font-size: clamp(1.1rem, 6vw, 2.5rem);
  font-family: var(--font_type_parta);
  letter-spacing: 1px;
}

.banner-text {
  font-family: var(--font_type_parta);
  line-height: 1.6;
  font-weight: 400;
  font-size: clamp(0.875rem, 4vw, 1.375rem);
  margin-top: 1.2rem;
  padding: 0 0.5rem;
}

.banner-portfolio {
  background-image: url("../assets/Portfolio\ Banner.png");
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  font-family: var(--font_type_parta);
  padding: 1rem;
}

.overlay-portfolio {
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(3px);
  background-color: rgba(0, 27, 1, 0.6);
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 1;
}

.portfolio-section {
  max-width: 1200px;
  margin: auto;
  padding: 0 1rem;
  font-family: var(--font_type_parta);
}

.filter-buttons {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.filter-btn {
  background-color: #e0f0e9;
  border: 2px solid #C3E2C5;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
  border: 2px solid #2E7D32;
  background-color: #f0f8f1;
  transition: 0.5s ease;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  min-height: 300px;
  justify-items: center;
}

.portfolio-card {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
  width: 100%;
  max-width: 350px;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.portfolio-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
}

.card-content {
  padding: 1rem;
}

.card-content h3 {
  font-size: 1.3rem;
  color: #2D5A3D;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.card-content .category {
  font-size: 0.9rem;
  font-weight: 400;
  color: #666;
  margin-bottom: 0.5rem;
  line-height: 1.4rem;
  letter-spacing: 1;
  text-transform: uppercase;
}

.card-content .description {
  font-size: 0.95rem;
  color: #777777;
  margin: 0.5rem 0 1rem;
  line-height: 1.5;
}

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

.tags span {
  background-color: #F0F7F3;
  color: #2D5A3D;
  font-size: 0.8rem;
  padding: 0.3rem 0.6rem;
  border-radius: 20px;
}

.view-all {
  text-align: center;
  margin-top: 2rem;
  transition: opacity 0.3s ease;
}

.view-all.hidden {
  opacity: 0;
  pointer-events: none;
  height: 0;
  overflow: hidden;
}

.view-all button {
  background-color: #e8f5e9;
  border: 2px solid #C3E2C5;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-size: 0.95rem;
  cursor: pointer;
  color: #2e7d32;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  font-weight: 500;
}

.view-all button:hover {
  background-color: #d4edda;
  border-color: #2E7D32;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.loading {
  text-align: center;
  padding: 2rem;
  color: #666;
  font-style: italic;
}

@media (max-width: 576px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .filter-buttons {
    flex-direction: column;
    gap: 0.6rem;
    align-items: center;
  }

  .filter-btn {
    width: 100%;
    max-width: 200px;
    text-align: center;
  }

  .view-all button {
    width: 100%;
    max-width: 200px;
  }

  .card-content {
    padding: 0.8rem;
  }

  .portfolio-card img {
    height: 200px;
  }

  .portfolio-card {
    max-width: none;
  }
}

.statistics-section {
  position: relative;
  isolation: isolate;
  width: 100%;
  background: url('../assets/portfolioStatic.png') no-repeat center center;
  background-size: cover;
  padding: 60px 20px;
  color: #ffffff;
  text-align: center;
  box-sizing: border-box;
  overflow: hidden;
}

.statistics-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 0;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(3px);
  background-color: rgba(0, 27, 1, 0.6)
}

.statistics-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  max-width: 1200px;
  margin: 0 auto;
  gap: 30px;
  position: relative;
  z-index: 1;
}

.stat-item {
  flex: 1;
  min-width: 200px;
  padding: 20px;

}

.stat-number {
  font-size: 3.5em;
  font-weight: 400;
  margin-bottom: 5px;
  line-height: 1.2;
  font-family: var(--font_type_parta);
}

.stat-description {
  font-size: 1em;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.8;
  font-family: var(--font_type_poppins);
}

@media (max-width: 992px) {
  .stat-item {
    min-width: 220px;
    flex-basis: 45%;
  }

  .stat-number {
    font-size: 2.4em;
  }

  .stat-description {
    font-size: 0.9em;
  }
}

@media (max-width: 768px) {
  .statistics-section {
    padding: 40px 15px;
  }

  .stat-item {
    flex-basis: 100%;
    min-width: unset;
    margin-bottom: 20px;
  }

  .stat-number {
    font-size: 2.4em;
  }

  .stat-description {
    font-size: 0.9em;
  }

  .statistics-container {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .stat-number {
    font-size: 2.2em;
  }

  .stat-description {
    font-size: 0.8em;
  }
}