:root {
    --primary-blue: #00647d;
    --primary-green: #8abb2a;
    --light-blue: rgba(0, 100, 125, 0.1);
    --light-green: rgba(138, 187, 42, 0.1);
    --dark-blue: #004e61;
    --dark-green: #78a124;
  }

  .bsb-project-section {
    padding: 1rem 0;
    background-color: #f8f9fa;
  }

  .section-heading {
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 1rem;
  }

  .section-subheading {
    color: #555;
    margin-bottom: 1.5rem;
  }

  .divider {
    height: 4px;
    width: 60px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-green));
    border: none;
    margin: 0 auto 2rem;
    border-radius: 2px;
  }

  .filter-button-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
  }

  .filter-button {
    background-color: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 0.6rem 1.5rem;
    margin: 0.5rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
  }

  .filter-button:hover {
    background-color: var(--light-blue);
  }

  .filter-button.active {
    background-color: var(--primary-blue);
    color: white;
  }

  .gallery-container {
    position: relative;
    display: flex;
    flex-wrap: wrap;
  }

  .gallery-item {
    margin-bottom: 24px;
    position: relative;
 }

  .gallery-item figure {
    margin: 0;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #00647d;
  }

  .gallery-item figure:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  }

  .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    width: 100%; /* Ensures responsiveness */
    height: auto;
  }

  .gallery-item figure:hover img {
    transform: scale(1.05);
  }

  .gallery-item figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
  }

  .gallery-item figure:hover figcaption {
    opacity: 1;
    transform: translateY(0);
  }

  .gallery-item h3 {
    color: white;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1.25rem;
  }

  .gallery-item .category {
    color: var(--primary-green);
    font-size: 0.9rem;
    font-weight: 500;
  }

  .gallery-item .view-project {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--primary-green);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
  }

  .gallery-item figure:hover .view-project {
    opacity: 1;
    transform: translateY(0);
  }

  .view-project:hover {
    background-color: var(--dark-green);
  }

  @media (max-width: 768px) {
    .filter-button {
      padding: 0.5rem 1rem;
      font-size: 0.9rem;
    }
  }

  /* Customized isotope animations */
  .gallery-item.isotope-item {
    transition: transform 0.4s, opacity 0.4s;
  }