
.project-title-fixed {
  position: fixed;
  top: 40px;
  left: 40px;
  font-size: 28px;
  font-weight: 600;
  opacity: 0;
  transform: scale(1);
  transform-origin: top left;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1;
  color: white;
  will-change: transform, opacity;
}
.project-title-fixed.show {
  opacity: 1;
  transform: scale(2.5);
}
.work-section {
  padding: 150px 40px;
}
.work-section.blur .work-card:not(.hovered) {
  filter: blur(8px);
  transform: scale(0.97);
  opacity: 0.4;
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 100px;
}
.work-card {
  height: 500px;
  width: 100%;
  transition: transform 0.5s ease;
  cursor: pointer;
  border: 2.5px dotted #ffffff31;;
}
.work-card.hovered {
  z-index: 3;
}
.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.work-card .project-label {
  font-size: 14px;
  font-weight: 600;
  color: white;
  padding: 8px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}




.projects-filters-sticky {
    position: fixed;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 999px;
    border: 2.5px dotted #ffffff31;
}

.projects-filters-sticky button{
    border: 0;
    outline: none;
    border-radius: 999px;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    background: #fff;
    color: #000;
    font-weight: 600;
}
.projects-filters-sticky button.is-active{
    background: #000;
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35);
}

.pf-x{
  display: none;
  margin-left: 2px;
  font-size: 16px;
  line-height: 1;
  opacity: .9;
}

.pf-trigger.has-selection{
  background: #000;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35);
}
.pf-trigger.has-selection .pf-x{ display: inline; }

.pf-menu{
  position: absolute;
  left: 50%;
  bottom: calc(100% + -60px);
  transform: translateX(-50%);
  background: rgb(112 112 112 / 14%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid #9a9a9a7a;
  padding: 100px 50px 100px;
  border-radius: 14px;
  display: none;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  width: 900px;
  z-index: -1;
}

.pf-dd.is-open .pf-menu {
  display: flex;
}

.pf-item.is-selected{
  background: #000;
  color: #fff;
  border: 1px solid;
}

.pf-item:disabled{
  background: #bdbdbd;
  color: #000;
  opacity: 1;
  cursor: not-allowed;
}

#projectsGrid.is-loading::after{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(255,255,255,0.60);
  backdrop-filter: blur(2px);
  z-index: 10;
}

#projectsGrid.is-loading::before{
  content:"";
  position:absolute;
  width:42px;
  height:42px;
  left:50%;
  top:50%;
  transform: translate(-50%, -50%);
  border: 3px solid rgba(0,0,0,0.15);
  border-top-color: rgba(0,0,0,0.65);
  border-radius: 50%;
  animation: projectsSpin 0.8s linear infinite;
  z-index: 11;
}

.projects-loadmore{
  display:none;
  align-items:center;
  justify-content:center;
  padding: 18px 0 30px;
}

.projects-loadmore.is-visible{
  display:flex;
}

.projects-spinner{
  width:34px;
  height:34px;
  border: 3px solid #fff;
  border-top-color: rgba(0,0,0,0.65);
  border-radius: 50%;
  animation: projectsSpin 0.8s linear infinite;
  display: block;
}

@keyframes projectsSpin { to { transform: rotate(360deg); } }



/* Adjusting layout for the section */


@media (max-width: 1200px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .project-title-fixed {
    top: 45px;
    left: 45px;
    font-size: 20px;
  }
}
