@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400..700;1,400..700&family=Kumbh+Sans:wght,YOPQ@100..900,300&display=swap');

html, body {
  height: 100vh;
  width: 100vw;
  margin: 0px;
  padding: 0px;
  overflow: hidden;
  /*! cursor: url("/assets/images/cursor.svg"), default !important; */
}

:root {
  --background: linear-gradient(to right, #000);
  --theme-color: linear-gradient(to right, #D185FF, #51CBFF);
  /*cards*/
    --card-background: rgba(0, 0, 0, 0.2);
    --card-border: solid 2px rgba(0, 0, 0, 0.2);
    --card-spacing: 24px;
    --card-blur: 12px;
  /*context*/
    --context-background: rgba(0, 0, 0, 0.2);
    --context-border: solid 2px rgba(255, 255, 255, 0.1);
    --context-spacing: 18px;
    --context-blur: 2px;
    --navbar-glow-intensity: 4px;
  --navbar-glow-opacity: 0.5;
--background-blur: 0px;
  --navbar-safe-padding: 128px;
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    border: 3px solid transparent;
    background-clip: padding-box;
}

@keyframes backgroundMove {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 0%;
  }
  100% {
    background-position: 0% 0%;
  }
}


html {
  background-color: #000;      /* black fallback */
  background-image: var(--background); /* your gradient or URL */
  background-size: 120% 100%;
  background-repeat: repeat-x;
  background-position: 0% 0%;
  animation: backgroundMove 5s ease-in-out infinite;
}

html.custom-background {
  animation: none;
  background-size: 100% 100%;
}

body::before {
  content: "";
  display: block;
  z-index: -1;
  position: fixed;
  left: 0px;
  top: 0px;
  width: 100vw;
  height: 100vh;
  backdrop-filter: blur(var(--background-blur));
}

body {
  /*background: linear-gradient(
    to bottom,
    hsl(0, 0%, 0%) 0%,
    hsla(0, 0%, 0%, 0.995) 8.4%,
    hsla(0, 0%, 0%, 0.984) 17.2%,
    hsla(0, 0%, 0%, 0.967) 26.1%,
    hsla(0, 0%, 0%, 0.946) 35.2%,
    hsla(0, 0%, 0%, 0.921) 44.1%,
    hsla(0, 0%, 0%, 0.894) 52.9%,
    hsla(0, 0%, 0%, 0.864) 61.3%,
    hsla(0, 0%, 0%, 0.835) 69.3%,
    hsla(0, 0%, 0%, 0.805) 76.6%,
    hsla(0, 0%, 0%, 0.777) 83.2%,
    hsla(0, 0%, 0%, 0.751) 88.9%,
    hsla(0, 0%, 0%, 0.729) 93.5%,
    hsla(0, 0%, 0%, 0.71) 97%,
    hsla(0, 0%, 0%, 0.697) 99.2%,
    hsla(0, 0%, 0%, 0.69) 100%
  );*/
  background: linear-gradient(180deg, rgb(0% 0% 0%) 0%, rgb(0% 0% 0% / 0.999755859375) 6.25%, rgb(0% 0% 0% / 0.998046875) 12.5%, rgb(0% 0% 0% / 0.993408203125) 18.75%, rgb(0% 0% 0% / 0.984375) 25%, rgb(0% 0% 0% / 0.969482421875) 31.25%, rgb(0% 0% 0% / 0.947265625) 37.5%, rgb(0% 0% 0% / 0.916259765625) 43.75%, rgb(0% 0% 0% / 0.875) 50%, rgb(0% 0% 0% / 0.822021484375) 56.25%, rgb(0% 0% 0% / 0.755859375) 62.5%, rgb(0% 0% 0% / 0.675048828125) 68.75%, rgb(0% 0% 0% / 0.578125) 75%, rgb(0% 0% 0% / 0.463623046875) 81.25%, rgb(0% 0% 0% / 0.330078125) 87.5%, rgb(0% 0% 0% / 0.176025390625) 93.75%, rgb(0% 0% 0% / 0) 100% );
  display: flex;
  flex-direction: row;
  /*! padding-top: var(--navbar-safe-padding); */
}

* {
  color: #fff;
  font-family: -apple-system, "Instrument Sans", sans-serif;
  user-select: none;
  cursor: var(--cursor), auto !important;
}

#grain {
  display: none;
  width: 100vw;
  height: 100vh;
  background: url("/assets/images/backgrounds/grain.jpg");
  opacity: 0.3;
  mix-blend-mode: overlay;
  inset: 0;
  position: absolute;
  left: 0px;
  top: 0px;
  z-index: -1;
}

#effectCanvas {
  position: absolute;
  left: 0px;
  top: 0px;
  width: 100vw;
  height: 100vh;
  mix-blend-mode: normal;
  opacity: 0.8;
  pointer-events: none;
}

#navbar {
  position: fixed;
  left: 50vw;
  top: 24px; 
  width: fit-content;
  display: flex;
  flex-direction: row;
  gap: 24px;
  padding: 24px 48px 24px 36px;
  box-sizing: border-box;
  align-items: center;
  transform: translateX(-50%);
  border-radius: 9999px;
  /*! backdrop-filter: blur(3px); */
  overflow: hidden;
  /*! box-shadow: inset 0px 0px 12px #fff; */
  overflow: visible;
  z-index: 9999;
  --glass-frost: 3px;
  --glass-strength: 40;
}

.navbar-item {
  font-size: 24px;
  position: relative;
  cursor: pointer;
  width: fit-content;
  display: flex;
  flex-direction: row;
  text-wrap: nowrap;
  text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.navbar-dropdown {
  background: var(--context-background);
  border: var(--context-border);
  padding: calc(var(--context-spacing) / 2);
  border-radius: var(--context-spacing);
  gap: var(--context-spacing);
  position: absolute;
  left: calc(100% + var(--context-spacing) * 2);
  top: calc(100% + 36px);
  min-width: 6em;
  width: calc(fit-content + var(--context-spacing));
  backdrop-filter: blur(var(--context-blur));
  transform: scaleY(0) translateX(-100%);
  opacity: 0;
  transition: all 0.2s ease-in-out;
  transform-origin: top;
  gap: calc(var(--context-spacing) / 2);
  display: flex;
  flex-direction: column;
  overflow: visible;
  backdrop-filter: blur(12px);
  box-sizing: border-box;
}

.navbar-item:focus > .navbar-dropdown {
  transform: scaleY(1) translateX(-100%);
  opacity: 1;
}

.navbar-item:has(.navbar-dropdown)::after {
  content: "";
  background: url("/assets/images/icons/chevron-down.svg");
  height: 1.2em;
  aspect-ratio: 1 / 1;
  display: inline-block;
  background-size: cover;
  transform: rotate(0deg);
  transition: transform 0.2s ease-in-out;
}

.navbar-item:has(.navbar-dropdown):focus::after {
  transform: rotate(-90deg);
}


#navbar > .navbar-item::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.3em;
  transform: translateX(-50%);
  height: 0px;
  border: solid 2px #fff;
  border-radius: 9999px;
  width: 0px;
  opacity: 0;
  transition: all 0.2s ease-in-out;
}

#navbar > .navbar-item:has(.navbar-dropdown)::before {
  left: calc(50% - 0.6em);
}

#navbar > .navbar-item:hover::before {
  width: 1.5em;
  opacity: 1;
}

.navbar-dropdown .navbar-item {
  padding: calc(var(--context-spacing) / 2);
  border-radius: calc(var(--context-spacing) / 2);
  background: transparent;
  transition: all 0.2s ease-in-out;
  width: 100%;
  box-sizing: border-box;
  text-wrap: nowrap;
  word-wrap: none;
}


#navbar-clickout-area {
  position: absolute;
  left: 0px;
  top: 100%;
  height: 100vh;
  width: 100%;
}

.navbar-dropdown .navbar-item:hover {
  background: #fff;
  color: #000;
}

#navbar-logo {
  font-size: 2em;
  font-weight: 500;
  font-family: "Kumbh Sans", sans-serif;
  height: 1em;
  display: flex;
  align-content: center;
  flex-direction: row;
  line-height: 1em;
  background: var(--theme-color);
  background-clip: text;
  color: transparent;
  font-weight: 600;
  cursor: pointer;
  z-index: 1;
}

/*.navbar-dropdown::before {
  content: "";
  width: 97px;
  height: 15.5px;
  position: absolute;
  bottom: 100%;
  left: calc(var(--context-spacing));
  background: url("/assets/images/shapes/dropdown-notch.svg");
  background-size: cover;
  display: flex;
}*/

#navbar.legacy > .navbar-item:last-of-type img {
  content: "";
  height: 0.8em;
  aspect-ratio: 1 / 1;
  display: none;
  background-size: cover;
  transform: rotate(0deg);
  transition: transform 0.2s ease-in-out;
}
#navbar > .navbar-item:has(.navbar-dropdown):focus::before {
  width: 0px;
  opacity: 0;
}

#navbar.legacy > .navbar-item:last-of-type {
    background: #fff;
    color: #000;
    padding: 12px 24px;
    border-radius: 6px;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    transform: translateY(+0px);
    transition: transform 0.2s ease-in-out;
    line-height: 1em;
    justify-self: flex-end;
    position: absolute;
    right: 24px;
    top: 50%;
    align-self: bottom;
    margin-left: auto;
}

#navbar.legacy > .navbar-item:last-of-type::before {
  display: none;
}
#navbar.legacy > .navbar-item:last-of-type:hover {
  transform: translateY(-6px);
}

@media screen and (max-width: 1200px) {
  
  #navbar-glow {
    display: none !important;
  }
  #navbar {
    left: 0px !important;
    top: 0px !important;
    transform: none !important;
    overflow-x: scroll !important;
    width: 100vw !important;
    border-radius: 0px;
    overflow-y: hidden;
    backdrop-filter: none !important;
  }
  #navbar:has(.navbar-item:focus) {
    padding-bottom: 100vh;
  }
  #navbar::after {
    backdrop-filter: none !important;
  }
}

#navbar.legacy #navbar-glow {
  display: none !important;
}
#navbar.legacy {
  left: 0px !important;
  top: 0px !important;
  transform: none !important;
  overflow-x: auto !important;
  width: 100vw !important;
  border-radius: 0px;
  overflow-y: hidden;
  backdrop-filter: none !important;
}
#navbar.legacy:has(.navbar-item:focus) {
  padding-bottom: 100vh;
}
#navbar.legacy::after {
  backdrop-filter: none !important;
}




#navbar-glow::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(100% - var(--navbar-glow-intensity));
  height: calc(100% - var(--navbar-glow-intensity));
  background-color: #000;
  border-radius: 9999px;
  z-index: -1;
  transform: translate(-50%, -50%);
}
#navbar-glow {
  content: "";
  position: absolute;
  left: 0px;
  top: 0px;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--theme-color);
  z-index: 0;
  opacity: var(--navbar-glow-opacity);
  display: block;
  /* mix-blend-mode: lighten; */
  overflow: hidden;
  /*! backdrop-filter: blur(6px); */
}


#navbar-glow::before {
  content: "";
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  left: 0px;
  top: 0px;
  z-index: 2;
  backdrop-filter: blur(2px);
}

@keyframes rotateCentered {
  0% {
    transform: translate(-50%, -50%) rotate(+0deg) scaleX(var(--scale-x));
  }

  100% {

    transform: translate(-50%, -50%) rotate(+360deg) scaleX(var(--scale-x));
  }
}


#navbar-glow-shimmer {
  background: #fff;
  height: calc(150% - 48px);
  aspect-ratio: 2 / 1;
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  z-index: 1;
  --scale-x: 1;
  /* animation: rotateCentered 3s linear infinite; */
  will-change: transform, --angle;
  border-radius: 9999px;
  /*mix-blend-mode: luminosity saturation;*/
  opacity: 0.5;
  filter: blur(24px);
}


#navbar-shimmer-cover {
  /*! ontent: ""; */
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  background-color: #000;
  border-radius: 9999px;
  z-index: 1;
  --x: 0px;
  --y: 0px;
  transform: translate(-50%, -50%) translate(var(--x), var(--y));
}

.box {
  padding: 48px;
  background-color: rgba(0, 0, 0, 0.2);
  border: solid 2px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
  backdrop-filter: blur(12px);
  border-radius: 24px;
}


#navbar::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  z-index: -1;
  position: absolute;
  left: 0px;
  top: 0px;
  backdrop-filter: blur(3px);
  border-radius: 9999px;
}