.nav-item a, #team-name {
  position: relative; /* Ensure proper positioning for the pseudo-element */
  text-decoration: none; /* Remove the default underline */
  color: white !important; /* Keep text color white */
  font-family: var(--font-titles) !important;
  font-weight: bold;
  transition: color 0.3s ease; /* Smooth color transition on hover */
}

/* Pseudo-element for gradient underline */
.nav-item a::after, #team-name::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px; /* Slightly below the text */
  width: 0; /* Start with no underline */
  height: 3px; /* Thickness of the underline */
  background: linear-gradient(to right,     
    #f1ecfe 0%,     
    #eaacfb 10%,    
    #0936be 45%,     
    #000000 74% ); /* Gradient colors */
  transition: width 0.4s ease, background-position 0.4s ease; /* Animate width and gradient */
  background-size: 200%; /* Extend gradient for animation */
  background-position: 0%; /* Start at the beginning of the gradient */
}

/* Hover effect for the underline */
.nav-item a:hover::after, #team-name:hover::after {
  width: 100%; /* Fully extend the underline */
}


.navbar-nav.left-aligned {
  margin: auto;
  gap: 15px;
}

nav.navbar {
  background-color: black !important;
  height: 90px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 98;
}

.navbar-nav {
  margin-right: 50px !important;
}

.nav-item {
  list-style: none;
}

.nav-link {
  cursor: pointer;
}

.circle {
  position: relative;
  --radius: 70%;
  width: var(--radius);
  height: var(--radius);
  border-radius: 100%;
  border: 1px solid black;
  overflow: clip;
  background: var(--antigradient);
}

.segment {
  width: 1000%;
  position: absolute;
  height: 1000%;
  transform-origin: bottom right;
  right: 0;
  bottom: 0;
}

.segment:hover {
  scale: 1.1
}

.jarvis {
  --size: 500px;
  width: var(--size);
  height: var(--size);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  box-shadow: 0 0 80px black;
  border-radius: 50%;
  overflow: clip;
  backdrop-filter: blur(15px);
}

.circle .inner {
  --radius: 94%;
  width: var(--radius);
  height: var(--radius);
  background: black;
  border-radius: 50%;
  z-index: 99;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  color: white;
}

.circle .inner h1 {
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 7px;
  font-size: 1.7em;
}

.circle .inner button {
  background: white;
  border-radius: 50px;
  padding: 6px 20px;
  color: black;
  width: fit-content;
  text-transform: uppercase;
  font-family: monospace;
}

.segment-wrapper {
  position: absolute;
  height: 50%;
  width: 50%;
  transform-origin: bottom right;
}

.circle .inner img {
  width: 70%;
}

.circular-text {
  color: white;
  font-size: 0.2em;
  background: white;
  text-transform: uppercase;
  font-family: monospace;
  letter-spacing: 1px;
}

 svg {
  position: absolute;
  border-radius: 50%;
}

.circled-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.parallax {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: fixed;
  top: 0px; 
  left: 0px;
  z-index: 99;
  transition: all 200ms ease-in-out;
  background: linear-gradient(to top, #f1ecfe 0%, #f1ecfe 50%, black 50%,black 100%);
}

.parallax .liquid {
  position: absolute;
  width: 100%;
  height: 100%;
}

.parallax .liquid.background {
  top: -100px;
  left: -100px;
  width: calc(100% + 200px);
  height: calc(100% + 200px);
}

@media (prefers-reduced-motion: no-preference) {
  /* High-res animations for devices with high resolution and no reduced motion preference */

  .parallax .liquid.background {
    transform: rotateX(var(--rotate-x)) rotateY(var(--rotate-y)) translate(var(--translate-x), var(--translate-y));
    transform-style: preserve-3d;
    transition: transform 1.5s cubic-bezier(0.05, 0.5, 0, 1);
    will-change: transform;
  }
  
}

.bracket {
  --border-width: 3px;
  position: absolute;
  padding: 20px;
  display: flex;
  flex-direction: column;
  text-transform: uppercase;
  font-family: monospace;
  font-weight: bold;
  letter-spacing: 1px;
}

.bracket.top.left {
  top: 20px;
  left: 20px;
  color: white;
  border-left: var(--border-width) solid white;
  border-top: var(--border-width) solid white;
}

.bracket.bottom.right {
  bottom: 20px;
  right: 20px;
  color: black !important;
  border-right: var(--border-width) solid black !important;
  border-bottom: var(--border-width) solid black !important;
}

.parallax.hidden {
  display: flex;
  top: -100%;
}

.close-btn {
  position: absolute;
  top: 20px; 
  right: 50px;
  font-family: monospace;
  font-size: 2em;
  color: white;
  text-decoration: none;
}

.close-btn:hover {
  color: white;
  cursor: pointer;
}

.jarvis .segments {
  width: 100%;
  height: 100%;
  position: absolute;
  overflow: clip;
}

.jarvis .segments .segment {
  cursor: pointer;
}

#menu-link::before {
  content: "";
  display: block;
  background: white;
  border-radius: 50%;
  width: 13px;
  aspect-ratio: 1 / 1;
  position: relative;
  top: 18px;
  left: -21px;
  transition: all 200ms ease-in-out;
}

#menu-link:hover::before {
  scale: 0.7;
  background: var(--gradient);
}

.jarvis .circle > div > img {
  transition: all 200ms ease-in-out;
}