/*Filter Section Start*/

.filter-tabs-wrapper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 80px 0 50px;
  padding: 0 20px;
}

/* Running border animation */
@keyframes borderRun {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 300% 50%;
  }
}

/* White fill sliding in from left */
@keyframes fillLeft {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

.filter-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(11, 16, 48, 0.7);
  background: #fff;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 0;
  border: none;
  transition: color 0.3s ease;
  padding: 9px 21px;
  background-clip: padding-box;
}

.filter-tab::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50px;
  padding: 2px;
  background: linear-gradient(
    90deg,
    #00b4d8,
    #ffffff,
    #0077b6,
    #00b4d8,
    #ffffff,
    #0077b6
  );
  background-size: 300% 100%;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  pointer-events: none;
}

/* White fill sliding from left */
.filter-tab::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50px;
  background: #e0f7fa;
  transform: translateX(-100%);
  z-index: -1;
  pointer-events: none;
}

.filter-tab:hover::after {
  opacity: 1;
  animation: borderRun 2s linear infinite;
}

.filter-tab:hover::before {
  animation: fillLeft 0.4s ease forwards;
}

.filter-tab:hover {
  color: #0077b6;
}
.filter-tab:not(:hover):not(.active) {
  box-shadow: inset 0 0 0 1px rgba(11, 16, 48, 0.2);
}

.filter-tab.active {
  background: #00b4d8;
  color: #fff;
  box-shadow: none;
}

.filter-tab.active::before,
.filter-tab.active::after {
  display: none;
}

/*Gallary Section Start*/
.page-wrapper {
  max-width: 1320px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* Running border keyframe */
@keyframes borderRun {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 300% 50%;
  }
}

.gallery-item {
  border-radius: 14px;
  overflow: hidden;
  background: #e5e7eb;
  position: relative;
  transition: box-shadow 0.3s ease;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

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

/* Running border via ::after */
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  padding: 3px;
  background: linear-gradient(
    90deg,
    #00b4d8,
    #ffffff,
    #0077b6,
    #00b4d8,
    #ffffff,
    #0077b6
  );
  background-size: 300% 100%;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.gallery-item:hover::after {
  opacity: 1;
  animation: borderRun 2s linear infinite;
}

.gallery-item:hover {
  box-shadow: 0 20px 40px rgba(0, 188, 212, 0.2);
}
/*Gallary Section End*/

/*Media Queries Start*/

@media (max-width: 1200px) {
  .about-hero-left h1 {
    font-size: 46px;
  }
}

@media (max-width: 992px) {
  .about-hero-left h1 {
    font-size: 38px;
  }

  .page-wrapper {
    padding: 0 20px 60px;
  }

  .gallery-item {
    border-radius: 16px;
    overflow: hidden;
  }

  .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
}
@media (max-width: 768px) {
  .about-hero {
    padding: 60px 0;
  }

  .about-hero-wrap {
    flex-direction: column;
    text-align: center;
  }

  .about-hero-left h1 {
    font-size: 32px;
  }

  .filter-tabs-wrapper {
    margin: 50px 0 40px;
  }
}
@media (max-width: 576px) {
  .about-hero-left h1 {
    font-size: 26px;
  }

  .filter-tab {
    font-size: 13px;
    padding: 6px 16px;
  }

  .page-wrapper {
    padding: 0 16px 50px;
  }
}
@media (max-width: 320px) {
  .filter-tabs-wrapper {
    gap: 8px;
  }

  .filter-tab {
    font-size: 12px;
    padding: 5px 14px;
  }
}
/*Media Queries End

