.projects-page {
  padding: var(--section-padding);
  min-height: 100vh;
}

.projects__header-page {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 32px;
}

.projects__header-page h1 {
  font-family: var(--third-family);
  font-weight: 500;
  font-size: var(--section-title-size);
  line-height: 100%;
  color: #fff;
  margin: 0;
}

.projects__header-page .filter {
  position: relative;
  display: inline-block;

  /* styles for text */
  font-family: var(--second-family);
  font-weight: 600;
  line-height: 100%;
  color: #fff;
  perspective: 900px;

  z-index: 50;

}
.filter-selected {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 8px;
  padding: 12px 16px;
  width: 170px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(130, 113, 243, 0.464) 0%, rgba(215, 215, 215, 0.432) 100%);
  border: 1px solid #8371F3;
  backdrop-filter: blur(16px);
  transform: translateZ(0);

  font-size: 15px;
  transition: 0.25s ease;
  border-radius: 20px;
  color: #fff;

  cursor: pointer;
  z-index: 50;
}
.filter-options {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  
  width: 170px;
  padding: 8px;
  border-radius: 12px;
  background: #9e9e9e5b;
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow: 0 14px 40px rgba(0,0,0,0.15);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: 50;

  transform-origin: top center;
  transform: rotateX(-20deg) translateY(-10px) scale(0.9);

  transition: 
    opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.filter-options.open {
  opacity: 1;
  pointer-events: auto;
  transform: rotateX(0deg) translateY(0) scale(1);
}
.filter-option {
  margin-bottom: 5px;

  padding: 12px 14px;
  cursor: pointer;
  font-size: 15px;
  transform: translateZ(0);
  transition: 0.3s;
  border-radius: 8px;
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 15px;
  line-height: 100%;
  color: #fff;
}
.filter-option:hover {
  background: #ffffff41;
  backdrop-filter: blur(10px);
}
/* .projects__header-page .filters {
  position: relative;
  display: inline-flex;
  gap: 8px;
  border-radius: 100px;
  padding: 4px;
  cursor: pointer;
  user-select: none;
  background:  #15171e;
} */

/* .filters .filter {
  font-family: var(--second-family);
  font-weight: 600;
  font-size: 14px;
  line-height: 100%;
  color: #fff;

  border-radius: 100px;
  padding: 12px 16px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  transition: background 0.5s step-start;
  gap: 4px;
} */


.projects__container-page {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 32px;
}

.project-page {
  max-width: 710px;
}
.project-page img {
  width: 100%;
  border-radius: 32px;
  overflow: hidden;
  margin-bottom: 16px;
}
.project__info-page h2 {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: var(--card-title-size);
  line-height: 100%;
  color: #fff;
  margin-bottom: 8px;
}
.project__info-page p {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: var(--section-description-size);
  line-height: 100%;
  color: #b3b3b3;
  margin-bottom: 16px;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.project__info-page a {
 font-family: var(--font-family);
  font-weight: 400;
  font-size: var(--section-description-size);
  line-height: 100%;
  color: #fff;

  display: flex;
  align-items: center;
  gap: 4px;
  transition: 0.3s ease;
  display: inline-flex;
}
.project__info-page a:hover {
  gap: 8px;
}

@media (max-width: 500px) {
  .projects__container-page {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  }
  .projects__header-page h1 {
    padding-top: 10px;
  }
  .projects__header-page {
    align-items: flex-start;
  }
}



