#projects-gallery .filters {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  text-align: center;
  margin: auto;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

#projects-gallery .filters span {
  font-size: 13px;
  font-weight: 600;
  background-color: rgb(var(--theme-background));
  padding: 0.5rem 1rem;
  border: 1px solid rgb(var(--theme-text), 0.1);
  border-radius: 99px;
  cursor: pointer;
}

#projects-gallery .filters span:hover {
  background-color: rgb(var(--theme-text), 0.1);
}

#projects-gallery .filters span.active {
  background-color: rgb(var(--color-primary));
}

#projects-gallery .filters span.active:hover {
  background-color: rgb(var(--color-primary));
  color: #fff;
}

#projects-gallery .projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 280px;
  gap: 10px;
  width: 100%;
}
#projects-gallery .projects .project {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgb(var(--theme-text), 0.1);
  cursor: pointer;
}

#projects-gallery .projects .project img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#projects-gallery .projects .project img:hover {
  scale: 1.1;
}

#projects-gallery .projects .project > div {
  position: absolute;
}

#projects-gallery .projects .project .tags {
  display: flex;
  gap: 8px;
  padding: 0.5rem;
}

#projects-gallery .projects .project .tags .tag {
  background-color: rgb(var(--theme-background));
  padding: 3px 14px;
  border-radius: 50px;
  font-size: 10px;
  font-weight: 700;
}

#projects-gallery .projects .project .description {
  bottom: 0;
  padding: 1rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: rgb(0 0 0 / 61%) 0px -115px 36px -28px inset;
  pointer-events: none;
}

#projects-gallery .projects .project .description h2 {
  font-weight: 600;
  color: #fff;
  margin-bottom: 5px;
}

#projects-gallery .projects .project .description p {
  font-size: 14px;
  color: #fff;
}

#projects-gallery .projects .project .description span {
  color: #fff;
}

#projects-gallery .projects .project .description .tags {
  font-size: 12px;
  margin-top: 10px;
}

#projects-gallery .projects .project .description .tags span {
  margin-right: 5px;
  background-color: rgba(255, 242, 222, 0.149);
  padding: 0.25rem 0.5rem;
  border-radius: 99px;
}

#projects-gallery .projects .project .toggle-details {
  display: none;
  right: 10px;
  top: 10px;
  border-radius: 15px;
  padding: 0.35rem;
  background-color: rgb(var(--color-primary));
  box-shadow:
    rgba(0, 0, 0, 0.4) 0px 2px 4px,
    rgba(0, 0, 0, 0.3) 0px 7px 13px -3px,
    rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
}

#projects-gallery .projects .project:hover .toggle-details {
  display: flex;
}

/* aaaaaaaaaaa */

#pop-up {
  position: fixed;
  inset: 0;
  backdrop-filter: blur(64px);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

#pop-up .container {
  width: min(600px, 90%);
  border-radius: 99px;
  height: fit-content;
  gap: 0;
}

section#projects-gallery #pop-up .card-header {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

section#projects-gallery #pop-up .card-header img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

section#projects-gallery #pop-up .card-header .category-badge {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background-color: #22c55e;
  color: #000000;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  z-index: 2;
}

section#projects-gallery #pop-up .card-header .close-icon {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  backdrop-filter: blur(4px);
}
s section#projects-gallery #pop-up .container {
  width: max(440px, 25vw);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(218, 181, 181, 0.5);
  border: 1px solid hwb(38 43% 13% / 0.05);
}
section#projects-gallery #pop-up .card-image {
  width: 200px;
  height: 200px;
}
section#projects-gallery #pop-up .card-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  padding: 24px;
  background-color: rgb(var(--theme-background));
}

section#projects-gallery #pop-up .card-body .card-title {
  font-size: 24px;
  margin-bottom: 12px;
}

section#projects-gallery #pop-up .close-icon {
  position: relative;
}

section#projects-gallery #pop-up .card-body .card-description {
  font-size: 0.8rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

section#projects-gallery #pop-up .card-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

section#projects-gallery #pop-up .card-body .meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #22c55e;
  font-size: 13px;
}

section#projects-gallery #pop-up .card-body .card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}

section#projects-gallery #pop-up .card-body .tag-outline {
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #1e293b;
  padding: 5px 12px;
  border-radius: 10px;
  font-size: 12px;
}

section#projects-gallery #pop-up .card-body .tag-outline svg {
  fill: #f59e0b;
}

section#projects-gallery #pop-up .card-body .meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #22c55e;
  font-size: 14px;
  font-weight: 500;
}

section#projects-gallery #pop-up .meta-item svg {
  fill: green;
}

section#projects-gallery #pop-up .card-footer .btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #22c55e;
  color: #ffffff;
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 16px;
  transition:
    transform 0.2s,
    background-color 0.2s;
}

section#projects-gallery #pop-up .card-footer .btn-primary:hover {
  background-color: #16a34a;
  transform: translateY(-2px);
}

section#projects-gallery #pop-up .card-footer .btn-primary svg {
  fill: #ffffff;
}

@media (max-width: 1028px) {
  #projects-gallery .projects {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
  }

  #projects-gallery .projects .project {
    min-width: 100%;
    height: 350px;
    scroll-snap-align: start;
  }

  #projects-gallery .projects .project img:hover {
    scale: 1;
  }
}

@media (max-width: 720px) {
  #projects-gallery .filters {
    gap: 5px;
  }
  #projects-gallery .filters span {
    font-size: 11px;
  }
}
