main {
  position: relative;
}

main::before,
main::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1024px;
  background-image: url("../images/showcase-light.png");
  background-size: cover;
  pointer-events: none;
  z-index: -1;
}

main::before {
  top: 0;
}

main::after {
  bottom: -70px;
  transform: rotate(-180deg);
}

@media screen and (max-width: 768px) {
  main::after {
    bottom: -155px;
  }
}

#particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 600px;
  pointer-events: none;
  z-index: -1;
}

.projects-section {
  padding-bottom: 10rem;
}

.projects-section p.no-projects {
  font-size: 1.25rem;
  color: rgba(148, 163, 184, 0.95);
  text-align: center;
  margin-top: 2rem;
}

.showcase-main {
  min-height: 100vh;
  padding-bottom: 6rem;
}

.showcase-hero {
  position: relative;
  padding-top: 10rem;
  padding-bottom: 3.5rem;
  overflow: hidden;
}

.showcase-hero__inner {
  position: relative;
  z-index: 1;
}

.showcase-hero__text {
  max-width: 40rem;
}

.showcase-hero__text h1 {
  margin-bottom: 1.25rem;
}

.showcase-hero__text p {
  max-width: 32rem;
  color: rgba(246, 243, 240, 0.8);
}

.showcase-hero__rays {
  position: absolute;
  inset: 0;
  background-image: url("../images/showcase-light.png");
  background-size: cover;
  background-position: center;
  opacity: 0.75;
  pointer-events: none;
  z-index: 0;
}

.showcase-layout {
  position: relative;
  padding-bottom: 4rem;
}

.showcase-layout__inner {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: flex-start;
}

.showcase-filter {
  position: relative;
  align-self: stretch;
}

.showcase-filter__panel {
  background: transparent;
  backdrop-filter: blur(19px);
  border-radius: 1rem;
  padding: 1.75rem 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(15, 23, 42, 0.9);
}

.showcase-filter__panel.is-sticky {
  position: sticky;
  top: 2rem;
}

.showcase-filter__item {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  background: none;
  border: 0;
  color: inherit;
  padding: 0.4rem 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.showcase-filter__item {
  padding-block: 0.3rem;
}

.showcase-filter__program {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.showcase-filter__accordion-toggle {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
    circle at top,
    rgba(15, 23, 42, 0.9),
    rgba(15, 23, 42, 0.7)
  );
  cursor: pointer;
  transition: all 0.3s ease;
}

.showcase-filter__accordion-toggle:hover {
  border: 1px solid rgba(204, 217, 234, 0.7);
}

.showcase-filter__icon {
  position: relative;
  width: 0.8rem;
  height: 0.8rem;
}

.showcase-filter__icon::before,
.showcase-filter__icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background-color: rgba(248, 250, 252, 0.9);
  border-radius: 999px;
}

.showcase-filter__icon::before {
  width: 100%;
  height: 0.1rem;
}

.showcase-filter__icon::after {
  width: 0.1rem;
  height: 100%;
}

.showcase-filter__accordion-toggle[aria-expanded="true"]
  .showcase-filter__icon::after {
  opacity: 0;
}

.showcase-filter__label {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.45rem;
}

.showcase-filter__dot {
  position: relative;
  top: 8px;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(248, 250, 252, 0.7);
  background: rgba(148, 163, 184, 0.05);
  transition: all 0.4s ease;
}

.showcase-filter__item.is-active .showcase-filter__dot {
  background: #f9fafb;
  border-color: #f9fafb;
}

.showcase-filter .showcase-filter__text {
  width: calc(100% - 0.45rem);
}

.showcase-filter__count {
  font-size: 0.85rem;
  color: rgba(148, 163, 184, 0.95);
}

.showcase-filter__section {
  margin-top: 1.75rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding-top: 1.25rem;
}

.showcase-filter__panel-body {
  margin-top: 0.75rem;
  display: none;
  gap: 0.15rem;
  padding-left: 1rem;
}

.showcase-filter__item:not(.is-active) .showcase-filter__label {
  opacity: 0.85;
}

.showcase-filter__item:hover .showcase-filter__label {
  opacity: 1;
}

.showcase-filter__item[data-filter-type="award"].is-active
  .showcase-filter__label {
  color: var(--blue-light);
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

/* PROJECTS */

.project-card {
  position: relative;
}

#showcase-results {
  scroll-behavior: smooth;
}

.project-card__link {
  display: block;
  position: relative;
  text-decoration: none;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.project-card__link:hover {
}

.project-card__media {
  position: relative;
  overflow: hidden;
}

.project-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 250px;
  aspect-ratio: 1/1;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.35s ease;
}

.project-card__link:hover .project-card__media img {
  transform: scale(1.06);
}

.project-details {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-top: 0.75rem;
  padding-right: 3.5rem;
}

.project-card__title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.project-card__author {
  font-size: 1rem;
}

.project-card__tag {
  position: absolute;
  right: 0;
  top: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  line-height: 1.5;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-color);
}

.project-card__tag.fvp {
  --border-color: var(--red-light);
  --bg-color: rgba(226, 27, 35, 0.3);
}

.project-card__tag.idd {
  --border-color: var(--blue-light);
  --bg-color: rgba(0, 167, 224, 0.3);
}

.project-card__tag.rtbn {
  --border-color: var(--purple-light);
  --bg-color: rgba(178, 73, 211, 0.3);
}

@media screen and (max-width: 1200px) {
  .showcase-layout__inner {
    grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
    gap: 2.5rem;
  }

  .showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 900px) {
  .showcase-layout__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .showcase-filter__panel.is-sticky {
    position: static;
  }

  .showcase-filter__panel {
    margin-bottom: 1.5rem;
  }
}

@media screen and (max-width: 640px) {
  .showcase-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
