@font-face {
  font-family: "Bandeins-Strange";
  src: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/61488/BandeinsStrangeVariableGX.ttf")
    format("truetype");
  font-stretch: 100% 800%;
  font-weight: 200 800;
  font-display: block;
}

:root {
  --grey: #5e5d5e;
  --mid-grey: #3f3f3f;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

html,
body {
  width: 100%;
  margin: 0;
  padding: 0;
}

body {
  background-color: black;
  font-family: "Bandeins-Strange";
  color: white;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-size: 5vw 5vw;
  background-position: center;
  background-image: linear-gradient(
      to right,
      var(--mid-grey) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, var(--mid-grey) 1px, transparent 1px);
}

/* Home Section */
#Home {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.home-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 60vw;
  visibility: hidden;
}

.hi {
  position: relative;
  z-index: 1;
  font-size: clamp(40px, 10vw, 100px);
  font-stretch: 400%;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  text-align: center;
  transform-style: preserve-3d;
}

.hi__cuboid {
  position: relative;
  width: clamp(200px, 50vw, 500px);
  height: clamp(30px, 7vw, 70px);
  transform-style: preserve-3d;
  margin: clamp(10px, 3vw, 30px) 0;
}

.hi__cuboid .face {
  position: absolute;
  left: 0;
  top: 0;
  background-color: black;
}

.hi__cuboid .face--front {
  width: 100%;
  height: 100%;
  transform: translateZ(calc(clamp(30px, 7vw, 70px) / 2));
}

.hi__cuboid .face--back {
  width: 100%;
  height: 100%;
  transform: translateZ(calc(clamp(30px, 7vw, 70px) / 2 * -1)) rotateY(180deg)
    rotate(180deg);
}

.hi__cuboid .face--left {
  width: clamp(30px, 7vw, 70px);
  height: 100%;
  transform: translateX(calc(clamp(30px, 7vw, 70px) / 2 * -1)) rotateY(-90deg);
}

.hi__cuboid .face--right {
  width: clamp(30px, 7vw, 70px);
  height: 100%;
  transform: translateX(
      calc(clamp(200px, 50vw, 500px) - clamp(30px, 7vw, 70px) / 2)
    )
    rotateY(90deg);
}

.hi__cuboid .face--top {
  width: 100%;
  height: clamp(30px, 7vw, 70px);
  transform: translateY(calc(clamp(30px, 7vw, 70px) / 2 * -1)) rotateX(90deg);
}

.hi__cuboid .face--bottom {
  width: 100%;
  height: clamp(30px, 7vw, 70px);
  transform: translateY(
      calc(clamp(30px, 7vw, 70px) - clamp(30px, 7vw, 70px) / 2)
    )
    rotateX(-90deg);
}

.face {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.face.face--top,
.face.face--bottom {
  background: white;
  color: black;
}

.hi__word {
  margin: 0;
  transform: translateY(-5px);
}

.hi__base {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(300px, 75vw, 752px);
  height: clamp(100px, 25vw, 250px);
}

.hi__base-plate {
  width: 100%;
  height: 100%;
  background: black;
  border: 1px solid var(--grey);
}

.hi__location {
  position: absolute;
  margin: 0;
  font-size: clamp(12px, 2vw, 20px);
  font-stretch: 400%;
  font-weight: 400;
}

.hi__location--lat {
  top: 50%;
  left: 0;
  transform: rotate(-90deg) translateX(10px);
}

.hi__location--long {
  top: 50%;
  right: 0;
  transform: rotate(90deg) translateX(-10px);
}

/* About Section */
#About {
  width: 100%;
  height: 100vh;
  position: relative;
}

main {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
  background: rgb(14, 16, 15);
  position: relative;
}

canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.about-text {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 80%;
  padding: 20px;
  color: white;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 10px;
}

.about-text h1 {
  font-size: clamp(24px, 5vw, 48px);
  margin-bottom: 20px;
}

.about-text p {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.5;
}

/* Team Section */
#Team {
  width: 100%;
  height: 100vh;
  position: relative;
}

@layer reset, base, utilities, components, layout, overrides;

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@property --direction {
  syntax: "<number>";
  initial-value: 1;
  inherits: true;
}

@layer reset {
  *,
  ::before,
  ::after {
    box-sizing: border-box;
  }

  :where(:not(dialog)) {
    margin: 0;
  }

  :where(html) {
    -webkit-text-size-adjust: none;
  }
}

@layer base {
  html {
    --surface-1: oklch(20% 0.03 269);
    --surface-2: oklch(26% 0.04 269);
    --text-1: oklch(91% 0.03 61);
    --body: 400 1rem/1.5rem system-ui, sans-serif;
    --display: 400 3.562rem/4rem system-ui, sans-serif;
    --display-small: 400 2.25rem/2.75rem system-ui, sans-serif;
    --label: 500 0.875rem/1.25rem system-ui, sans-serif;
    --title: 400 1.375rem/1.75rem system-ui, sans-serif;
    color-scheme: dark;
  }

  .section {
    background-color: var(--surface-1);
    color: var(--text-1);
    font: var(--body);
  }
}

@layer layout {
  .section {
    display: grid;
    max-inline-size: 100%;
    min-block-size: 100svb;
    overflow-x: clip;
    padding-block: 80px;
    place-items: center;
  }

  .section-wrapper {
    display: grid;
    place-items: center;
  }

  .header {
    display: grid;
    place-items: center;
    gap: 16px;

    @media (width >=1024px) {
      grid-area: 1/1;
    }
  }

  .hgroup {
    display: grid;
    place-items: center;
    gap: 8px;
  }

  .headline {
    font: var(--display-small);
    @media (width >=1200px) {
      font: var(--display);
    }
  }

  .section-link {
    color: var(--text-1);
    text-decoration: underline;
    font: var(--label);
    @media (width < 1024px) {
      display: none;
    }
  }

  .cards {
    list-style: none;
    padding: 0;

    @media (width < 1024px) {
      display: grid;
      grid-auto-flow: column;
      gap: 32px;
      max-inline-size: 100%;
      overflow-x: scroll;
      padding-block: 32px;
      padding-inline: 32px;
    }

    @media (width >=1024px) {
      --avatar-opacity: 1;
      --avatar-img-scale: 1;
      --tooltip-visibility: hidden;
      --tooltip-opacity: 0;
      --animation-state: running;

      display: grid;
      grid-area: 1/1;
      min-block-size: 700px;
      place-items: center;

      &:has(.avatar-link-wrapper:is(:hover, :focus-visible, :active)) {
        --animation-state: paused;
        --avatar-opacity: 0.4;
      }
    }
  }

  .card {
    padding: 0;

    @media (width >=1024px) {
      --radius: min(620px, 40cqi);
      --offset-per-child: calc(360deg / (var(--nth-siblings) + 1));
      --angle-offset: calc(var(--nth-child) * var(--offset-per-child));
      --inline-ratio: 1/1;
      --block-ratio: 1/2;
      --direction: min(
        max(calc(cos((var(--angle) + var(--angle-offset))) * -100), -1),
        1
      );

      grid-area: 1/1;

      translate: calc(
          cos((var(--angle) + var(--angle-offset))) * var(--radius) *
            var(--inline-ratio)
        )
        calc(
          sin((var(--angle) + var(--angle-offset))) * var(--radius) *
            var(--block-ratio) * -1
        );

      animation: adjust-angle linear 40s infinite reverse var(--animation-state);
    }
  }

  @keyframes adjust-angle {
    to {
      --angle: 360deg;
    }
  }

  .avatar-link-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-1);

    &:is(:hover, :focus-visible, :active) {
      --avatar-img-scale: 1.1;
      --avatar-opacity: 1;
      --tooltip-opacity: 1;
      --tooltip-visibility: visible;
    }

    @media (width < 1024px) {
      flex-direction: column;
      gap: 16px;
    }
  }

  .visual {
    aspect-ratio: 1;
    border-radius: 1rem;
    box-shadow: 0 2px 4px 0 oklch(0 0 0 / 10%);
    inline-size: 240px;
    opacity: var(--avatar-opacity);
    overflow: clip;
    transition: opacity 0.3s ease;

    @media (width >=1024px) {
      inline-size: 144px;
      border-radius: 1e5px;
    }
  }

  .avatar-img {
    background-color: var(--surface-2);
    block-size: 100%;
    display: block;
    inline-size: 100%;
    object-fit: cover;
    scale: var(--avatar-img-scale, 1);
    transition: scale 0.3s ease;
  }

  .tooltiptext {
    display: grid;
    gap: 4px;

    @media (width >=1024px) {
      position: absolute;
      max-inline-size: 20ch;
      opacity: var(--tooltip-opacity);
      transition-duration: 0.3s;
      transition-property: opacity, visibility;
      transition-timing-function: ease;
      translate: 110% 0;
      visibility: var(--tooltip-visibility);
      pointer-events: none;
      user-select: none;

      @container style(--direction: -1) {
        text-align: end;
        translate: -110% 0;
      }
    }
  }

  .team-name {
    font: var(--title);
  }
}

/* Navbar Styles */
.nav-container {
  cursor: pointer;
  position: fixed;
  top: 5%;
  right: 5%;
  width: 30px;
  height: 20px;
  z-index: 1000;
}

.bars {
  width: 30px;
  height: 4px;
  background: white;
  position: relative;
  transition: opacity 0.3s ease;
}

.bars::before,
.bars::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 4px;
  background: white;
  transition: opacity 0.3s ease;
}

.bars::before {
  margin-top: 9px;
}

.bars::after {
  margin-top: 18px;
}

nav {
  position: fixed;
  width: 100%;
  height: 30px;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  right: -100vw;
  top: 0;
  z-index: 999;
}

nav ul {
  list-style: none;
  padding: 0;
}

nav ul li {
  margin: 50px 0;
}

nav ul li a {
  color: #fafafa;
  font-size: 2em;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  opacity: 0;
  pointer-events: none;
}

nav ul li a:after {
  content: "";
  width: 100%;
  position: absolute;
  height: 3px;
  border-radius: 5px;
  background: #fff;
  bottom: -10px;
  left: 0;
  transform-origin: left;
  transition: transform 0.5s ease;
  transform: scaleX(0);
}

nav ul li a:hover:after {
  transform: scaleX(1);
}

nav .close {
  width: 30px;
  height: 30px;
  position: absolute;
  top: 6%;
  right: 5%;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  z-index: 1001;
}

nav h2 {
  position: absolute;
  top: 5%;
  left: 5%;
  opacity: 0;
  pointer-events: none;
  color: #fff;
  font-size: 2em;
}

nav .close div::before,
nav .close div::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 4px;
  background: #fff;
}

nav .close div::before {
  transform: rotate(-45deg);
}

nav .close div::after {
  transform: rotate(45deg);
}

nav .close:hover div::before,
nav .close:hover div::after {
  background: rgb(209, 3, 3);
}

/* Contact Section */
#Contact {
  width: 100%;
  height: 100vh;
  position: relative;
  background-color: #000;
  overflow: hidden;
}

.main {
  position: fixed;
  top: 50%;
  left: 50%;
  height: 1px;
  width: 1px;
  background-color: #fff;
  border-radius: 50%;
  box-shadow: 24vw 9vh 1px 0px #fff, 12vw -24vh 0px 1px #fff,
    -45vw -22vh 0px 0px #fff, -37vw -40vh 0px 1px #fff, 29vw 19vh 0px 1px #fff,
    4vw -8vh 0px 1px #fff, -5vw 21vh 1px 1px #fff, -27vw 26vh 1px 1px #fff,
    -47vw -3vh 1px 1px #fff, -28vw -30vh 0px 1px #fff, -43vw -27vh 0px 1px #fff,
    4vw 22vh 1px 1px #fff, 36vw 23vh 0px 0px #fff, -21vw 24vh 1px 1px #fff,
    -16vw 2vh 1px 0px #fff, -16vw -6vh 0px 0px #fff, 5vw 26vh 0px 0px #fff,
    -34vw 41vh 0px 0px #fff, 1vw 42vh 1px 1px #fff, 11vw -13vh 1px 1px #fff,
    48vw -8vh 1px 0px #fff, 22vw -15vh 0px 0px #fff, 45vw 49vh 0px 0px #fff,
    43vw -27vh 1px 1px #fff, 20vw -2vh 0px 0px #fff, 8vw 22vh 0px 1px #fff,
    39vw 48vh 1px 1px #fff, -21vw -11vh 0px 1px #fff, -40vw 45vh 0px 1px #fff,
    11vw -30vh 1px 0px #fff, 26vw 30vh 1px 0px #fff, 45vw -29vh 0px 1px #fff,
    -2vw 18vh 0px 0px #fff, -29vw -45vh 1px 0px #fff, -7vw -27vh 1px 1px #fff,
    42vw 24vh 0px 0px #fff, 45vw -48vh 1px 0px #fff, -36vw -18vh 0px 0px #fff,
    -44vw 13vh 0px 1px #fff, 36vw 16vh 0px 1px #fff, 40vw 24vh 0px 0px #fff,
    18vw 11vh 0px 0px #fff, -15vw -23vh 1px 0px #fff, -24vw 48vh 0px 1px #fff,
    27vw -45vh 1px 0px #fff, -2vw -24vh 0px 1px #fff, -15vw -28vh 0px 0px #fff,
    -43vw 13vh 1px 0px #fff, 7vw 27vh 1px 0px #fff, 47vw 5vh 0px 0px #fff,
    -45vw 15vh 1px 1px #fff, -5vw -28vh 0px 1px #fff, 38vw 25vh 1px 1px #fff,
    -39vw -1vh 1px 0px #fff, 5vw 0vh 1px 0px #fff, 49vw 13vh 0px 0px #fff,
    48vw 10vh 0px 1px #fff, 19vw -28vh 0px 0px #fff, 4vw 7vh 0px 0px #fff,
    21vw 21vh 1px 1px #fff, -15vw -15vh 0px 1px #fff, -6vw -42vh 1px 0px #fff,
    -15vw 48vh 1px 1px #fff, -23vw 25vh 1px 1px #fff, -48vw 25vh 0px 1px #fff,
    -31vw -19vh 0px 1px #fff, 4vw 37vh 1px 1px #fff, -43vw 28vh 0px 0px #fff,
    3vw -25vh 0px 1px #fff, -39vw 14vh 0px 1px #fff, -40vw 31vh 0px 1px #fff,
    35vw -36vh 1px 1px #fff, 16vw 49vh 0px 0px #fff, 6vw 39vh 0px 0px #fff,
    3vw -35vh 0px 1px #fff, -44vw -2vh 1px 0px #fff, -6vw 21vh 1px 0px #fff,
    48vw 9vh 1px 1px #fff, -43vw 30vh 1px 1px #fff, 29vw -12vh 1px 1px #fff,
    -48vw 13vh 1px 0px #fff, -42vw 32vh 1px 1px #fff, 34vw 15vh 1px 1px #fff,
    29vw -37vh 1px 1px #fff, 28vw 2vh 0px 0px #fff;
  animation: zoom 16s alternate infinite;
}

@keyframes zoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.5);
  }
}

.contact-form {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(250px, 35vw, 400px);
  padding: 25px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  z-index: 2;
  animation: formFadeIn 1s ease-out forwards;
}

.contact-form h2 {
  font-size: clamp(24px, 4vw, 32px);
  margin-bottom: 20px;
  text-align: center;
  color: #fff;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.contact-form input {
  width: 100%;
  height: clamp(40px, 5vh, 50px);
  margin-bottom: 15px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: clamp(14px, 2vw, 16px);
  transition: all 0.3s ease;
}

.contact-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.contact-form input:focus {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
  outline: none;
}

.contact-form .submit-btn {
  background: linear-gradient(45deg, #ff6b6b, #ff8e53);
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.contact-form .submit-btn:hover {
  background: linear-gradient(45deg, #ff8e53, #ff6b6b);
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 107, 107, 0.5);
}
@keyframes formFadeIn {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .contact-form {
    width: clamp(200px, 50vw, 350px);
  }
}

@media (max-width: 480px) {
  .contact-form {
    width: clamp(180px, 70vw, 300px);
    padding: 20px;
  }
  .contact-form h2 {
    font-size: clamp(20px, 3.5vw, 28px);
  }
  .contact-form input {
    height: clamp(35px, 4.5vh, 45px);
  }
}
/* Footer Section */
.footer {
  width: 100%;
  padding: 20px 0;
  background: rgba(0, 0, 0, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
  opacity: 0; /* Start hidden for animation */
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
}

.footer-content p {
  font-size: clamp(14px, 1.5vw, 16px);
  margin: 0 0 10px 0;
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-links a {
  font-size: clamp(14px, 1.5vw, 16px);
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
}

.social-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  background: #ff6b6b;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.social-links a:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

.social-links a:hover::after {
  width: 100%;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .footer-content {
    padding: 0 15px;
  }
  .social-links {
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .footer-content p,
  .social-links a {
    font-size: clamp(12px, 1.2vw, 14px);
  }
  .social-links {
    gap: 10px;
  }
}
