* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #e2e2e2;
  min-height: 400vh;
  overflow-x: hidden;
  /* font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; */
  font-family: "Dosis", sans-serif;
  position: relative;
}

@font-face {
  font-family: "Matrix";
  src: url(./assets//fonts/matrix.woff2);
  font-display: swap;
}

@font-face {
  font-family: "New";
  src: url(./assets//fonts/PPMori-Regular.woff2);
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 10px 25px;
  z-index: 101;
  user-select: none;
  padding-top: 20px;
  pointer-events: all;
}

header div {
  color: #ffffff;
  z-index: 101;
}

header .center span {
  /* word-break: normal; */
  white-space: nowrap;
  text-align: center;
  /* padding-top: 50px; */
  display: block;
  max-width: 100vw;
  transform-origin: center;
  /* font-family: "Matrix", sans-serif; */
}

header .center:hover {
  animation: blinky 1s forwards 0.2s ease;
}

@keyframes blinky {
  0% {
    opacity: 0;
    color: #555;
    filter: saturate(10);
  }
  20% {
    opacity: 1;
  }
  30% {
    /* opacity: 0; */
    color: white;
    filter: brightness(0);
  }
  32% {
    filter: brightness(1);
    opacity: 1;
    color: white;
    filter: saturate(0);
  }
}

.left_menu {
  position: fixed;
  z-index: 200;
  left: 8%;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  --progress-h: 0%;
}
.left_menu ul {
  display: grid;
  gap: 8px;
  grid-auto-rows: 30px;
  width: 10px;
  /* overflow: hidden; */
  margin: auto;
  z-index: 200;
}

.left_menu ul::before {
  content: "";
  width: 3px;
  height: var(--progress-h);
  background-image: linear-gradient(transparent 0%, #5aab46aa 60%, transparent);
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  position: absolute;
  z-index: -1;
}

.left_menu ul li {
  flex-basis: 100%;
  background-color: #ffffff22;
  max-width: 3px;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  position: relative;
  background: #ffffff22;
  --point-color: #ffffff22;
}

.left_menu ul li::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translate(-50%);
  width: 8px;
  height: 8px;
  border-radius: 3px;
  z-index: 999;
  background: var(--point-color);
}

.left_menu ul li::before {
  content: attr(data-label);
  right: -12px;
  bottom: 13px;
  color: #ffffffcc;
  position: absolute;
  width: 100%;
  height: 30px;
  clip-path: ellipse(var(--label-reveal) 500px at left);
}

.left_menu ul li.reached {
  animation: fillStep 0.5s ease;
}
.left_menu ul li:last-of-type {
  background: transparent;
}
.left_menu ul li:last-of-type::after {
  background: transparent;
}

@keyframes fillStep {
  from {
    background-position-y: bottom;
  }
  to {
    background-position-y: top;
  }
}

.left_menu ul li.reached::after {
  background-color: #ffffff22;
}

.left_menu ul li:first-of-type {
  background: linear-gradient(transparent 0%, #ffffff22 100%);
}

.right_menu {
  position: fixed;
  width: 50px;

  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  border-radius: 50px;
  padding: 25px 10px;
  height: inherit;
}
.right_menu ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  opacity: 0;
}
.right_menu ul li {
  user-select: none;
  cursor: pointer;
}
.right_menu ul li svg {
  width: 25px;
  height: 25px;
}
.right_menu ul li path {
  fill: white;
}

.right_menu .reveal-border {
  pointer-events: none;
  border-radius: 50px;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid #5aab46;
}

.right_menu svg {
  filter: drop-shadow(0 0 0px cyan);
  transition: filter 0.5s ease 0.15s;
}

.right_menu svg:hover {
  filter: drop-shadow(0 0 10px white);
  transition: filter 0.25s ease;
}

section {
  position: relative;
}

section.s1 {
  /* padding: 50px 25px; */
  height: 1700px;

  background: linear-gradient(#011702 0%, #011702 80%, #111 100%);
}

.matrix {
  position: absolute;
  left: 0;
  top: 0;
  text-align: center;
  z-index: 100;
  transform-style: preserve-3d;
  transform-origin: top center;
  perspective: 350px;
  overflow: hidden;
  height: 1800px;
  width: 100%;
  --rx: 20deg;
  /* pointer-events: none; */
}

.fixed-screen {
  position: fixed;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  top: 0;
  left: 0;
  z-index: 998;
  transform-style: preserve-3d;
  perspective: 800px;
  transform-origin: center center;
}

.agent-bouncing {
  position: absolute;
  left: 75%;
  top: 50%;
  width: auto;
  height: auto;
  transform-style: preserve-3d;
  perspective: 800px;
  transform-origin: center center;
}

.agent-smith {
  position: absolute;
  width: auto;
  top: 50%;
  left: 75%;
  user-select: none;
  transform: translate(-50%, -50%) skewY(0deg);
  transform-style: preserve-3d;
  transform-origin: center center;
  perspective: 800px;
  z-index: 10 !important;
}

.agent-smith img {
  width: 550px;
  object-fit: contain;
}

.agent-smith img.agent-shadow {
  position: absolute;
  z-index: -1;
  top: 200px;
  opacity: 0.5;
  left: 0;
  filter: blur(45px);
}
.agent-smith img.agent-glow {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  mix-blend-mode: soft-light;
  opacity: 0.1;
}

h2 {
  font-size: 1.65em;
  font-weight: bold;
}

.about-holder {
  position: absolute;
  top: 50%;
  left: 40vw;
  transform: translate(-50%, -50%);
  pointer-events: all;
}

.about-me {
  color: #777;
  pointer-events: all;
  padding: 30px;
  border-radius: 20px;
  border: 1px solid #00000030;
  border-top: 1px solid #ffffff40;
  border-right: 1px solid #ffffff40;
  background: #0000001a;
  /* backdrop-filter: blur(5px); ===> FLATTERING 3d bug */
  box-shadow: -20px 20px 50px #00000080;
  color: white;
  user-select: none;
  font-size: 1.3em;
  width: 50vw;
  z-index: 9;
  letter-spacing: 1px;
  line-height: 1.1em;
  text-align: left;
  padding-right: 75px;
  display: grid;
  grid-auto-rows: auto 1fr;
  grid-template-columns: auto 1fr;
  grid-template-areas: "title title" "image description";
  gap: 25px;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.about-me h2 {
  grid-area: title;
}
.about-me .description {
  grid-area: description;
}
.about-me .image {
  transform: translate3d(20px, 0, 50px);
  grid-area: image;
  width: auto;
  max-height: 200px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: -20px 20px 50px #00000080;
  margin: 20px;
}

.about-me .image img {
  width: 125px;
  object-fit: cover;
  display: block;
}

.about-me p {
  font-weight: normal;
}

section.s2 {
  background: radial-gradient(#5aab46, #111 70%);
  background-size: 80%;
  background-repeat: repeat;
  /* background-color: red; */
  min-height: 1000px;
}

section.s3 {
  background: #111;
  min-height: 1000px;
}

.triggers > div {
  position: absolute;
  left: 0;
  width: 1px;
  height: 1px;
}
.t1 {
  top: 70vh;
}
.tsmith {
  top: 900px;
}
.t-end {
  bottom: 0;
}

.t2 {
  top: 1800px;
}

@media screen and (max-width: 768px) {
  .right_menu {
    top: unset;
    bottom: 8vh;
    width: auto;
    right: 50%;
    padding: 10px 25px;
    transform: translateX(50%);
    /* transformed y by -50% */
    /* bottom: 0; */
  }

  .agent-smith {
    top: 25%;
  }

  .agent-smith img {
    width: 200px;
  }

  .agent-smith img.agent-shadow {
    left: 50px;
    filter: blur(30px);
  }
  .left_menu {
    left: 5%;
  }

  .left_menu ul li::before {
    font-size: 0.75em;
    bottom: 10px;
  }
  section.s2 {
    background-size: 200%;
    background-position-x: center;
  }

  .about-holder {
    width: 100%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  .about-me {
    padding-right: unset;
    padding: 35px 20px;
    line-height: 1.5em;
    letter-spacing: 1px;
    text-align: left;
    width: 100%;
    left: 50%;
    grid-template-rows: auto auto 1fr;
    grid-template-columns: 1fr;
    grid-template-areas: "title" "image" "description";
    gap: 10px;
    line-height: 117%;
  }
  .about-me .image {
    text-align: center;
  }
  .about-me .image img {
    max-height: 25vh;
    max-width: unset;
  }

  h2 {
    line-height: 1.5em;
  }
}
