.hero.hero-portofolio {
  background: url('/assets/img/banner/banner-portofolio.webp?v=1.0.0') center/cover no-repeat !important;
}

.portfolio-filter-section {
  padding: 3rem 0;
  background-color: var(--bg-white);
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}

.filter-btn {
  padding: 0.625rem 1.5rem;
  border: 1px solid rgba(37, 99, 235, 0.2);
  background-color: var(--bg-white);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.filter-btn:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  background-color: rgba(37, 99, 235, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.filter-btn.active {
  background-color: var(--primary-blue);
  color: var(--bg-white);
  border-color: var(--primary-blue);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.filter-btn.active:hover {
  background-color: #1e40af;
  border-color: #1e40af;
}

.portfolio-projects-section {
  padding: 2rem 0;
  background-color: var(--bg-white);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

.portfolio-load-more {
  display: flex;
  justify-content: center;
  padding: 2rem 0;
  margin-top: 2rem;
}

#btn-load-more {
  padding: 0.75rem 2rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

#btn-load-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

#btn-load-more.hidden {
  display: none;
}

.portfolio-cta-section {
  padding: 4rem 1rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0.02));
  border-radius: 12px;
  text-align: center;
  margin: 3rem 0;
}

.portfolio-cta-section h2 {
  font-size: var(--judul-sedang);
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.portfolio-cta-section p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: var(--line-height-relaxed);
}

.bottom-cta-section {
  padding: 1rem 0 1.5rem 0;
}

.team-cta {
  text-align: left;
  padding: clamp(1.5rem, 3vw, 2rem) 2.5rem;
  background: var(--brand-base);
  border-radius: 16px;
  color: white;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.25);
}

.team-cta-content {
  flex: 1;
}

.team-cta h3,
.team-cta h2 {
  font-size: var(--judul-kecil);
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: white !important;
}

.team-cta p {
  font-size: var(--teks-kecil);
  opacity: 0.95;
  margin: 0;
  line-height: 1.5;
  color: white !important;
}

.team-cta .btn {
  margin: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 768px) {

  .hero.hero-home,
  .hero.hero-portofolio {
    padding: 2.25rem 0 !important;
  }

  .hero-content h1 {
    font-size: clamp(1.6rem, 6.5vw, 2.2rem) !important;
    line-height: 1.15 !important;
    margin-bottom: 0.75rem !important;
    letter-spacing: -0.02em !important;
  }

  .hero-content p {
    font-size: 0.938rem !important;
    line-height: 1.45 !important;
    margin-bottom: 1.25rem !important;
  }

  .hero-home .cta-buttons {
    gap: 0.75rem !important;
  }

  .hero-home .cta-buttons .btn {
    padding: 0.65rem 1.25rem !important;
    font-size: 0.938rem !important;
  }

  .portfolio-filter-section {
    padding: 1rem 0 !important;
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
  }

  .filter-buttons {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    justify-content: flex-start !important;
    padding: 0.25rem 1rem 0.5rem 1rem !important;
    gap: 0.375rem !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .filter-buttons::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    padding: 0.375rem 0.875rem !important;
    font-size: 0.844rem !important;
    font-weight: 600 !important;
  }

  .portfolio-projects-section {
    padding: 1rem 0 !important;
  }

  .portfolio-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
    margin-bottom: 1.5rem !important;
  }

  .portfolio-card {
    height: auto !important;
  }

  .portfolio-card-image {
    height: auto !important;
    aspect-ratio: 16/10 !important;
  }

  .portfolio-card-info {
    padding: 1rem !important;
  }

  .portfolio-card-info h3 {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.25rem !important;
  }

  .portfolio-type {
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.75rem !important;
  }

  .portfolio-meta {
    font-size: 0.8rem !important;
    margin-bottom: 1rem !important;
  }

  .feature-tag {
    font-size: 0.7rem !important;
    padding: 0.25rem 0.6rem !important;
  }

  .portfolio-load-more {
    padding: 1rem 0 !important;
    margin-top: 1rem !important;
  }

  #btn-load-more {
    padding: 0.625rem 1.5rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
  }

  .portfolio-cta-section {
    padding: 2rem 1rem !important;
    margin: 1.5rem 0 !important;
  }

  .portfolio-cta-section h2 {
    font-size: 1.375rem !important;
    line-height: 1.25 !important;
    margin-bottom: 0.5rem !important;
  }

  .portfolio-cta-section p {
    font-size: 0.875rem !important;
    line-height: 1.45 !important;
    margin-bottom: 1.25rem !important;
  }

  .portfolio-cta-section .cta-buttons .btn {
    width: 100% !important;
    min-width: unset !important;
    margin: 0 !important;
  }

  .bottom-cta-section {
    padding: 1rem 0 1.5rem 0 !important;
  }

  .team-cta {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-cyan) 100%) !important;
    color: white !important;
    border-radius: 16px !important;
    flex-direction: column !important;
    text-align: center !important;
    padding: 1.25rem 1rem !important;
    gap: 1.25rem !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    width: 100% !important;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.2) !important;
  }

  .team-cta-content {
    width: 100% !important;
  }

  .team-cta h3,
  .team-cta h2 {
    font-size: 1.1rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.5rem !important;
    color: white !important;
  }

  .team-cta p {
    font-size: 0.844rem !important;
    line-height: 1.45 !important;
    color: white !important;
  }

  .team-cta .cta-buttons {
    width: 100% !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    display: flex !important;
  }

  .team-cta .btn,
  .team-cta .cta-buttons .btn {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.938rem !important;
    white-space: normal !important;
    text-align: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    display: inline-flex !important;
  }
}