.main-page {
  background-color: black;
  width: 100vw;
  min-height: 100dvh;
}

.main-page__first {
  height: 100dvh;
  width: 100%;
  position: relative;
  overflow: hidden;
  color: white;
}

.main-page__first__background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.main-page__diagonal-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  color: black;
  z-index: 2;
}

.main-page__background-lines, .background__lines {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  background: url('data:image/svg+xml,<svg width="750" height="699" viewBox="0 0 750 699" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(%23clip0_22_73)"><rect x="376.5" y="1.5" width="250" height="463" rx="98.5" stroke="%23DEDEDE" stroke-width="3"/><rect x="0.5" y="1.5" width="250" height="463" rx="98.5" stroke="%23DEDEDE" stroke-width="3"/><rect x="750.5" y="1.5" width="250" height="463" rx="98.5" stroke="%23DEDEDE" stroke-width="3"/><rect x="626.5" y="-215.5" width="250" height="463" rx="98.5" stroke="%23DEDEDE" stroke-width="3"/><rect x="626.5" y="451.5" width="250" height="463" rx="98.5" stroke="%23DEDEDE" stroke-width="3"/><rect x="-125.5" y="-215.5" width="250" height="463" rx="98.5" stroke="%23DEDEDE" stroke-width="3"/><rect x="-125.5" y="451.5" width="250" height="463" rx="98.5" stroke="%23DEDEDE" stroke-width="3"/><rect x="250.5" y="-215.5" width="250" height="463" rx="98.5" stroke="%23DEDEDE" stroke-width="3"/><rect x="250.5" y="451.5" width="250" height="463" rx="98.5" stroke="%23DEDEDE" stroke-width="3"/><rect x="500.5" y="234.5" width="250" height="463" rx="98.5" stroke="%23DEDEDE" stroke-width="3"/><rect x="-250.5" y="234.5" width="250" height="463" rx="98.5" stroke="%23DEDEDE" stroke-width="3"/><rect x="124.5" y="234.5" width="250" height="463" rx="98.5" stroke="%23DEDEDE" stroke-width="3"/></g><defs><clipPath id="clip0_22_73"><rect width="750" height="699" fill="white"/></clipPath></defs></svg>');
}

.main-page__background-lines:nth-of-type(3) {
  --mask-image: linear-gradient(
    155deg,
    var(--background) 0%,
    var(--background) 40%,
    transparent 40%,
    transparent 100%
  );
  mask-image: var(--mask-image);
  -webkit-mask: var(--mask-image);
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  z-index: 4;
}

.main-page__background-lines:nth-of-type(4) {
  --mask-image: linear-gradient(
    155deg,
    transparent 0%,
    transparent 60%,
    var(--background) 60%,
    var(--background) 100%
  );
  mask-image: var(--mask-image);
  -webkit-mask-image: var(--mask-image);
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  z-index: 10;
}

.main-page__diagonal-background:nth-of-type(1) {
  background: linear-gradient(
    155deg,
    var(--background) 0%,
    var(--background) 40%,
    transparent 40%,
    transparent 100%
  );
  z-index: 3;
}

.main-page__diagonal-background:nth-of-type(2) {
  background: linear-gradient(
    155deg,
    transparent 0%,
    transparent 60%,
    var(--background) 60%,
    var(--background) 100%
  );
  z-index: 10;
}

.main-page__diagonal-background:nth-of-type(1) {
  transform: translateY(-100vh);
}

.main-page__diagonal-background:nth-of-type(2) {
  transform: translateY(100vh);
}

.main-page__diagonal-background:nth-of-type(1),
.main-page__diagonal-background:nth-of-type(2) {
  display: none;
}

.main-page__first__self__main, .main-page__first__self__overlay, .main-page__first__self__content {
  position: absolute;
  --bottom: 90px;
  --translate-y: 0;
  bottom: var(--bottom);
  transform: translateX(-50%) translateY(var(--translate-y));
  left: 50%;
  height: calc(100dvh - var(--bottom));
  z-index: 8;
  pointer-events: none;
  user-select: none;
}

.main-page__first__self__main {
  --shadow: drop-shadow(30px -5px 0 #0000001f);
  -webkit-filter: var(--shadow);
  filter: var(--shadow);
}

.main-page__first__self__overlay {
  z-index: 12;
}

.main-page__first__content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  --padding-horizontal: 72px;
  --padding-vertical: 48px;
  padding: var(--padding-vertical) var(--padding-horizontal);
  box-sizing: border-box;
}

.main-page__first__top__npc {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: fit-content;
  z-index: 8;
  display: grid;
  grid-template-columns: [start] 25% [col1-start] auto [col1-end] 1fr [col2-start] auto [col2-end] 10% [end];
}

.main-page__first__top__npc__left {
  grid-column: col1-start / col1-end;
  position: relative;
  width: fit-content;
  padding-top: 150px;
}

.main-page__first__top__npc__left__moon {
  --radius: 300px;
  --outline-width: 5px;
  --keyframe: 0;
  position: absolute;
  top: calc((2 - var(--keyframe)) * (-1 * var(--radius) / 1.5));
  left: 50%;
  transform: translateX(-50%) rotate(calc(100deg * calc(1 - var(--keyframe))));
  width: var(--radius);
  height: var(--radius);
  outline: white var(--outline-width) solid;
  border-radius: 50%;
  opacity: .8;
}

.main-page__first__top__npc__left__moon__circle {
  position: absolute;
  bottom: 30px;
  right: 80px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  outline: white 3px solid;
}

.main-page__first__top__npc__left__plus {
  display: flex;
  gap: 20px;
  font-size: 2rem;
  font-weight: bolder;
  --plus-color: rgba(255, 255, 255, 0.7);
}

.main-page__first__top__npc__right {
  grid-column: col2-start / col2-end;
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 50px;
}

.main-page__first__top__npc__right__dots {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.main-page__first__top__npc__right__s-dot, .main-page__first__top__npc__right__dots__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: black;
}

.main-page__first__top__npc__right__s-dot {
  background-color: white;
}

.main-page__first__content__title, .main-page__first__content__about-me {
  width: fit-content;
}

.main-page__first__content__title {
  z-index: 5;
  position: relative;
}

.main-page__first__content__title__title {
  font-size: 2.5rem;
  font-weight: 600;
  text-align: center;
}

.main-page__first__content__title__sub {
  font-size: 1.5rem;
  font-weight: 400;
  text-align: center;
}

.main-page__first__content__about-me {
  margin-top: 50px;
  z-index: 5;
  position: relative;
}

.main-page__first__content__about-me__title {
  font-size: 1.4rem;
  font-weight: 600;
  text-align: center;
}

.main-page__first__content__about-me__text {
  font-size: 1rem;
  font-weight: 400;
  width: 400px;
  max-width: 100%;
}

.main-page__first__content__right-languages {
  width: fit-content;
  z-index: 5;
  position: relative;
}

.main-page__first__content__right-languages__language {
  font-size: 1.5rem;
  font-weight: 500;
  text-align: center;
  padding: 15px 0 2px 0;
}

.main-page__first__border-bottom-animation {
  transition: border-bottom 200ms ease-in-out;
  --border-width: 4px;
  animation: first_border_bottom 200ms ease-in-out forwards;
}

.main-page__first__border-left-animation {
  transition: all 200ms ease-in-out;
  --border-width: 4px;
  animation: first_border_left 200ms ease-in-out forwards;
}

@keyframes first_border_left {
  0% {
    border-left: 0 solid rgba(255, 255, 255, 0.24);
  }
  100% {
    border-left: var(--border-width) solid rgba(255, 255, 255, 0.24);
  }
}

@keyframes first_border_bottom {
  0% {
    border-bottom: 0 solid rgba(255, 255, 255, 0.24);
  }
  100% {
    border-bottom: var(--border-width) solid rgba(255, 255, 255, 0.24);
  }
}

.main-page__first__right-list {
  font-size: 1.4rem;
  position: absolute;
  bottom: var(--padding-vertical);
  right: var(--padding-horizontal);
  z-index: 12;
  display: flex;
  gap: 100px;
  align-items: end;
}

.main-page__first__right-list__npc {
  margin-bottom: 300px;
}

.main-page__first__right-list__npc__circles {
  position: relative;
  height: 140px;
  width: 140px;
  outline: 4px solid var(--foreground);
  border-radius: 50%;
  opacity: 0;
  display: none;
  scale: 1.2;
}

.main-page__first__right-list__npc__circle {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  left: 50%;
  border-radius: 50%;
  height: 50px;
  width: 50px;
  outline: 20px solid var(--foreground);
  opacity: 0;
  display: none;
  scale: 1.2;
}

.main-page__first__right-list__npc__circle__dots {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  position: absolute;
  top: 20px;
  transform: translateX(-50%);
  left: 50%;
}

.main-page__first__right-list__npc__circle__dots__dot {
  border-radius: 50%;
  height: 10px;
  width: 10px;
  background-color: var(--foreground);
}

.main-page__first__right-list__content {
  height: fit-content;
}

.main-page__first__right-list__title {
  font-weight: 500;
  border-bottom: 4px solid rgba(255, 255, 255, 0.24);
  padding-bottom: 8px;
  margin-bottom: 40px;
  width: fit-content;
  margin-left: auto;
}

.main-page__first__right-list__languages {
  display: flex;
  height: fit-content;
  width: fit-content;
}

.main-page__first__right-list__languages__plus {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding-right: 15px;
}

.main-page__first__right-list__languages__plus > .component__plus {
  --plus-color: var(--foreground);
  --size: 10px;
  --stroke-size: 3px;
}

.main-page__first__right-list__languages__language {
  padding: 0 20px;
  writing-mode: vertical-rl;
  text-orientation: upright;
  width: 28px;
}

.main-page__first__right-list__languages__language + .active {
  background-color: var(--foreground);
  border-left: none !important;
  padding: 10px 20px;
}

.main-page__first__right-list__contact {
  width: 100%;
  min-height: 30px;
  color: black;
  margin-top: 40px;
  background-color: white;
  padding: 5px 10px;
  box-sizing: border-box;
}

.main-page__first__self__content, .main-page__first__self__content__right {
  opacity: 100%;
  display: flex;
}

.main-page__first__self__content {
  gap: 300px;
  padding: 48px 0;
  box-sizing: border-box;
  transform: translateX(-250px);
  z-index: 4;
}

.main-page__first__self__content__mind {
  display: flex;
  flex-direction: row-reverse;
}

.main-page__first__self__content__mind__title {
  font-weight: 500;
  font-size: 1.3rem;
}

.main-page__first__self__content__mind__text {
  width: 45px;
}

.main-page__first__self__content__mind p {
  writing-mode: vertical-rl;
  text-orientation: upright;
  text-wrap: wrap;
  height: 220px;
}

.main-page__first__self__content__right__name {
  font-size: 8rem;
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-weight: 500;
}

.main-page__first__self__content__right__full-name {
  writing-mode: vertical-rl;
  font-size: 1.5rem;
  letter-spacing: 1.8rem;
}

.main-page__first__self__content__right__desc {
  writing-mode: vertical-rl;
  font-size: .8rem;
  letter-spacing: .8rem;
}

.main-page__first__right-list__npc__circle__dots__dot {
  animation: npc_circle_dots 500ms alternate;
}

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

/* Tablet */
@media (max-width: 1024px) {
}

@media (max-width: 1650px) {
  .main-page__first__content {
    --padding-horizontal: 32px;
    --padding-vertical: 24px;
  }

  .main-page__first__content__title__title {
    font-size: 2rem;
  }

  .main-page__first__content__title__sub {
    font-size: 1.2rem;
  }

  .main-page__first__content__about-me__title {
    font-size: 1rem;
  }

  .main-page__first__right-list__contact {
    margin-top: 20px;
  }

  .main-page__first__content__right-languages__language {
    font-size: 1.2rem;
  }

  .main-page__first__content__about-me__text {
    font-size: .8rem;
    width: 250px;
  }

  .main-page__first__top__npc__left {
    opacity: 0.2;
  }

  .main-page__first__right-list {
    gap: 10px;
  }
}

@media (max-width: 1100px) {
  .main-page__first__self__content__right__name {
    font-size: 5rem;
    margin-right: -15px;
  }

  .main-page__first__content__title {
    display: flex;
    align-items: start;
  }

  .main-page__first__content__title__title {
    font-size: 1.5rem;
    writing-mode: vertical-rl;
    text-orientation: upright;
  }

  .main-page__first__content__title__sub {
    font-size: 1rem;
    writing-mode: vertical-rl;
    text-orientation: upright;
  }

  .main-page__first__right-list__title {
    margin-bottom: 20px;
    font-size: 1.2rem;
    border-bottom-width: 2px;
  }

  .main-page__first__right-list__languages__language {
    --border-width: 2px;
    font-size: 1rem;
    padding: 0 10px;
  }

  .main-page__first__right-list__contact {
    font-size: 1.1rem;
  }

  .main-page__first__right-list {
    transform: translateX(90px);
    gap: 0;
  }

  .main-page__first__right-list__content {
    transform: translateX(40px);
  }

  .main-page__first__content__about-me, .main-page__first__content__right-languages {
    display: none;
  }
}

@media (max-width: 767px) {
  .main-page__first__self__content__mind {
    visibility: hidden;
  }

  .main-page__first__top__npc__right {
    visibility: hidden;
  }

  .main-page__first__self__content {
    gap: 270px;
  }

  .main-page__first__self__main, .main-page__first__self__overlay {
    --bottom: 150px;
    --translate-y: 10px;
  }
}

@media (max-width: 480px) {
  .main-page__first__self__content {
    gap: 240px;
  }
}
