* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overscroll-behavior-block: none;
  scroll-behavior: smooth;
  scrollbar-width: none;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.transition {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #f2f2f200;
  opacity: 1;
  transition: all 0.5s ease;
  z-index: 400;
  pointer-events: none; /* Prevent clicks when not active */
}

.transition img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  opacity: 0;
  transition: all 0.5s ease;
}

.transition.active img {
  opacity: 1;
}

.transition.active {
  transition: all 0.5s ease;
  /* transition: backdrop-filter 0.1s ease, background-color 0.5s ease; */
  opacity: 1;
  background-color: #f2f2f2;
  backdrop-filter: blur(300px); /* Apply blur when active */
}

body {
  font-family: "Helvetica", sans-serif;
  background-color: #f2f2f2; /* Light background */
  color: #000000;
  overscroll-behavior-block: none;
  /* height: 200vh; */
}

nav {
  transform-origin: top center;
  position: fixed;
  display: flex;
  flex-direction: column;
  width: fit-content;
  padding: 10px;
  top: 0;
  left: 50%;
  transform: translate(-50%, 0);
  color: black;
  /* background: #000000; */
  mix-blend-mode: difference;
  z-index: 300;
}
nav h1 {
  color: white;
  font-size: 5rem;
  font-weight: 600;
  letter-spacing: 2px;
  font-family: "Times New Roman", Times, serif;
  text-wrap: nowrap;
  margin: 0;
}

nav ul {
  display: flex;
  justify-content: space-between;
  width: 100%;
  list-style: none;
  margin-top: 20px;
}

nav a {
  text-decoration: none;
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0 10px;
}

nav .selected {
  display: inline-block;
  position: relative;
  color: black;
  /* background: #eeb62a; */
  padding: 0 0.5em;
  border-radius: 3px;
  z-index: 1; /* Ensure the text stays above the background */
}

nav .selected::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #eeb62a;
  filter: blur(12px);
  z-index: -1;
  border-radius: 3px;
}

.selected {
  display: inline;
  position: relative;
  color: white;
  padding: 0 0.5em;
  border-radius: 3px;
  z-index: 1;
}

.selected::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgb(17, 73, 213);
  filter: blur(12px);
  backdrop-filter: blur(300px);
  z-index: -1;
  border-radius: 3px;
}
video,
img {
  border-radius: 5px;
}

.medium-element-spacer {
  padding-top: 50vh;
}

.large-element-spacer {
  padding-top: 75vh;
}

.extra-large-element-spacer {
  padding-top: 100vh;
}

.item-row {
  display: flex;
  flex-direction: row;
  /* justify-content: space-around; */
  align-items: center;
  z-index: 0;
  flex-wrap: wrap;
}

#model {
  --progress-bar-color: none;
  --progress-bar-height: 0px;
  height: 100%;
  width: 100%;
  min-height: 25vh;
  border-radius: 10px;
  /* padding: 0.2rem; */
  transition: all 0.5s ease;
  z-index: 75; /* Add z-index */
  pointer-events: auto; /* Enable interaction */
}

::selection {
  background-color: #000000;
  color: #ffffff;
  background: #000000;
  border-radius: 5px;
  -webkit-font-smoothing: antialiased;
  -webkit-text-fill-color: #ffffff;
}

.center {
  display: flex;
  flex-direction: row;
  position: absolute;
  width: 75%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.spacer {
  padding-inline: 4rem;
}

.large-spacer {
  padding-inline: 8rem;
}

.center p {
  margin: 1.5rem;
}

.center .right {
  text-align: right;
}

a {
  text-decoration: none;
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0 15px;
}

.lower-center {
  display: flex;
  flex-direction: row;
  position: absolute;
  width: fit-content;
  top: 65%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.higher {
  top: 45% !important;
}

.item {
  width: 20%;
  height: 50vh;
  object-fit: cover;
  border-radius: 10px;
  padding: 0.2rem;
  z-index: 0;
  transition: all 0.5s ease;
}

.image-fit img {
  object-fit: contain;
}

a video,
a img {
  position: absolute;
  inset: 0; /* Top, right, bottom, left all set to 0 */
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  z-index: -1; /* Ensure the image is behind the text */
}

.item a:hover {
  filter: brightness(1.1);
  /* background-color: #1149d5; */
}

.item a {
  user-select: none;
  margin: 0;
  position: relative; /* Ensure the parent is positioned for the child to be absolutely positioned */
  display: block; /* Ensures it fills the parent container */
  width: 100%;
  height: 100%;

  transition: all 0.5s ease;
}

.top-corner {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 200; /* Ensure header is visible */
  color: #000000; /* Ensure text is visible */
  pointer-events: auto; /* Enable interaction */
}

.heading {
  color: black;
  font-size: 5rem;
  font-weight: 600;
  letter-spacing: 2px;
  font-family: "Times New Roman", Times, serif;
  text-wrap: nowrap;
  margin: 0;
}

.split {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  height: 100vh;
  /* overflow-y: scroll; */
}

.description p {
  margin-bottom: 1.5rem;
  min-height: 2px;
}
.gallery video,
.gallery img {
  border-radius: 10px;
  width: 100%;
  max-width: 350px;
  height: auto;
  margin-bottom: 1rem;
}

.description .spacer {
  height: 50vh;
}

.description .spacer-large {
  height: 75vh;
}

.description {
  text-align: justify;
  padding-inline: 4rem;
  max-width: 50vw;
  position: relative; /* Add position relative */
  z-index: 100; /* Ensure text is above container */
  color: #000000; /* Ensure text is visible */
}

.fade {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 4rem;
  background: linear-gradient(
    0deg,
    #f7f7f7 0,
    hsla(0, 0%, 97%, 0.987) 11%,
    hsla(0, 0%, 97%, 0.951) 20.8%,
    hsla(0, 0%, 97%, 0.896) 29.6%,
    hsla(0, 0%, 97%, 0.825) 37.5%,
    hsla(0, 0%, 97%, 0.741) 44.6%,
    hsla(0, 0%, 97%, 0.648) 51%,
    hsla(0, 0%, 97%, 0.55) 57%,
    hsla(0, 0%, 97%, 0.45) 62.5%,
    hsla(0, 0%, 97%, 0.352) 67.7%,
    hsla(0, 0%, 97%, 0.259) 72.7%,
    hsla(0, 0%, 97%, 0.175) 77.8%,
    hsla(0, 0%, 97%, 0.104) 82.9%,
    hsla(0, 0%, 97%, 0.049) 88.2%,
    hsla(0, 0%, 97%, 0.013) 93.9%,
    hsla(0, 0%, 97%, 0)
  );
  z-index: 900;
}

.container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none; /* Disable pointer events on container */
  z-index: 100; /* Lower z-index so it doesn't block content */
}

.stack {
  position: relative;
  width: 350px;
  height: 450px;
  cursor: pointer;
  transform: translateX(25vw);
  transition: all 0.5s ease-in-out;
  pointer-events: auto; /* Re-enable pointer events for stack */
}

.card {
  position: absolute;
  width: 400px;
  height: 500px;
  background-color: #ffffff00;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transform-origin: center;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  pointer-events: auto; /* Re-enable pointer events for cards */
  /* transition: all 0.5s ease-in-out; */
}

.card img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.card video {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #f2f2f20a;
  backdrop-filter: blur(12px); /* Apply blur when active */
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  pointer-events: auto; /* Enable modal interaction */
}

.modal img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 10px;
}

.modal video {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 10px;
}

.stack.expanded {
  transform: translateX(0);
  transition: transform 0.5s ease-in-out;
}

/* Galaxy View Styles */
.galaxy-menu {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 200;
  pointer-events: auto;
}

.menu-circle {
  width: 150px;
  height: 150px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.view-toggle {
  background: #000;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
}

.filter-btn {
  background: none;
  border: 1px solid #000;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn.active {
  background: #000;
  color: white;
}

.orbit-paths {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 99;
  pointer-events: none;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit-1 {
  width: 300px;
  height: 300px;
}
.orbit-2 {
  width: 500px;
  height: 500px;
}
.orbit-3 {
  width: 700px;
  height: 700px;
}

.galaxy-active .item {
  position: absolute;
  transition: opacity 0.5s ease;
}

@media (max-width: 1024px) {
  .item {
    width: 50%;
  }
}
@media (max-width: 768px) {
  .item {
    width: 100%;
  }
  nav h1 {
    font-size: 3rem;
  }
  .card {
    width: 200px;
    height: 300px;
  }

  nav a {
    font-size: 1rem;
  }
  .heading {
    font-size: 2.5rem;
  }
  .split {
    flex-direction: column;
    height: auto;
  }
  .split-item {
    width: 100%;
    padding: 1rem;
    padding-top: 4rem;
  }
  .split-item p {
    margin-bottom: 0.5rem;
  }
}
