main {
  position: relative;
}

main::before,
main::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1024px;
  background-size: cover;
  background-position-x: center;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: -1;
}

body[data-program="idd"] main::before {
  top: 0;
  height: 100%;
  background-image: url("../images/idd-details-top-light.webp");
}

body[data-program="idd"] main::after {
  bottom: -70px;
  background-image: url("../images/idd-details-bottom-light.webp");
}

body[data-program="fvp"] main::before {
  top: 0;
  height: 100%;
  background-image: url("../images/fvp-details-top-light.webp");
}

body[data-program="fvp"] main::after {
  bottom: -70px;
  background-image: url("../images/fvp-details-bottom-light.webp");
}

body[data-program="rtbn"] main::before {
  top: 0;
  height: 100%;
  background-image: url("../images/rtbn-details-top-light.webp");
}

body[data-program="rtbn"] main::after {
  bottom: -70px;
  background-image: url("../images/rtbn-details-bottom-light.webp");
}

@media screen and (max-width: 768px) {
  main::after,
  body[data-program="idd"] main::after,
  body[data-program="fvp"] main::after,
  body[data-program="rtbn"] main::after {
    bottom: -155px;
  }
}

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

.banner-section {
  padding-top: 160px;
  padding-bottom: 5rem;
}

.banner-section .container {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
}

.banner-section h1 {
  margin-bottom: 0;
  max-width: 800px;
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.header-tags {
  order: -1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.header-tags span {
  font-size: 1rem;
  line-height: 1.5;
  border: 1px solid var(--light);
  border-radius: 100px;
  background-color: var(--bg-color);
  padding: 4px 12px;
  backdrop-filter: blur(30px);
}

body[data-program="fvp"] .header-tags span {
  background: rgba(226, 27, 35, 0.15);
}

body[data-program="idd"] .header-tags span {
  background: rgba(0, 167, 224, 0.15);
}

body[data-program="rtbn"] .header-tags span {
  background: rgba(178, 73, 211, 0.15);
}

/* PROJECT DETAILS INFO */
.details-section {
  padding-bottom: 6rem;
}

.details-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  gap: 2.5rem;
}

.details-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: calc(30% - 1.25rem);
}

.details-right {
  width: calc(70% - 1.25rem);
}

.info-title {
  font-size: 0.875rem;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.details-right .info-title,
.details-right p + p {
  margin-bottom: 1.5rem;
}

.details-right .details-info:first-of-type {
  margin-bottom: 3rem;
}

.group-members p {
  margin-bottom: 1rem;
}

.project-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 6px 8px;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(40px);
  border-radius: 8px;
  border: 1px solid #ffffff1a;
  margin-bottom: 8px;
  transition: background-color 0.3s ease;
}

.project-links a svg {
  width: 1rem;
  height: 1rem;
}

.project-links a:hover {
  background: rgba(0, 167, 224, 0.1);
}

@media screen and (max-width: 768px) {
  .details-section {
    padding-bottom: 8rem;
  }

  .details-wrapper {
    flex-direction: column;
    max-width: 100%;
    gap: 5rem;
  }

  .details-left,
  .details-right {
    width: 100%;
  }
}

/* GALLERY */
.gallery-section {
  padding-bottom: 10rem;
}

.gallery-wrapper {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.gallery-swiper {
  overflow: hidden;
}

.gallery-swiper .swiper-slide {
  width: auto;
  height: 240px;
}

.gallery-slide {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  overflow: hidden;
}

.gallery-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.gallery-slide:hover img {
  transform: scale(1.04);
  opacity: 0.85;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.gallery-nav:hover {
  background: rgba(15, 23, 42, 1);
  border-color: rgba(148, 163, 184, 0.6);
}

.gallery-nav--prev {
  left: -4rem;
}

.gallery-nav--next {
  right: -4rem;
}

.gallery-nav.swiper-button-disabled {
  opacity: 0.3;
  pointer-events: none;
}

.gallery-nav.is-hidden {
  display: none;
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  /* background: rgba(0, 0, 0, 0.92); */
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 10;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.85);
  color: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lightbox__close:hover {
  background: rgba(15, 23, 42, 1);
}

.lightbox__content {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lightbox__nav:hover {
  background: rgba(15, 23, 42, 1);
}

.lightbox__nav--prev {
  left: 1.5rem;
}

.lightbox__nav--next {
  right: 1.5rem;
}

@media screen and (max-width: 1200px) {
  .gallery-section {
    padding-bottom: 8rem;
  }

  .gallery-nav--prev {
    top: -3rem;
    left: 0;
  }

  .gallery-nav--next {
    top: -3rem;
    right: 0;
  }
}

@media screen and (max-width: 768px) {
  .gallery-swiper .swiper-slide {
    height: 200px;
  }

  .lightbox__nav--prev {
    left: 0.75rem;
  }

  .lightbox__nav--next {
    right: 0.75rem;
  }
}

/* ANIMATION */
@media (min-width: 1025px) and (prefers-reduced-motion: no-preference) {
  .banner-section.animated h1 {
    animation: 1s cubic-bezier(0.83, 0, 0.17, 1) fade-in-ttb both;
  }

  .banner-section.animated p {
    animation: 0.8s cubic-bezier(0.83, 0, 0.17, 1) fade-in both;
    animation-delay: 0.2s;
  }

  .banner-section.animated .header-tags {
    animation: 0.8s cubic-bezier(0.83, 0, 0.17, 1) fade-in both;
    animation-delay: 0.3s;
  }

  .banner-section.animated .header-image {
    animation: 0.8s cubic-bezier(0.83, 0, 0.17, 1) fade-in both;
    animation-delay: 0.4s;
  }

  .details-section.animated .details-left,
  .details-section.animated .details-right {
    animation: 0.8s cubic-bezier(0.83, 0, 0.17, 1) fade-in both;
  }

  .details-section.animated .details-right {
    animation-delay: 0.2s;
  }

  .gallery-section.animated {
    animation: 0.8s cubic-bezier(0.83, 0, 0.17, 1) fade-in both;
    animation-delay: 0.4s;
  }
}
