@font-face {
  font-family: "YouMurdererBB";
  font-style: normal;
  font-weight: 400;
  src: local("YouMurdererBB"),
    url("assets/fonts/youmurdererbb_reg.woff") format("woff"),
    url("assets/fonts/youmurdererbb_reg.woff2") format("woff2");
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: #fff;

  overflow: hidden;
}

body {
  font-family: "Fahkwang", sans-serif;
  font-weight: 400;
  width: 100vw;

  scroll-behavior: smooth;
  overflow: hidden;
}

header {
  position: fixed;
  left: 0;
  top: 0px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  height: 54px;
  background: #fff;
  margin-left: 5vw;
  box-sizing: border-box;
  margin-right: 5vw;
}

.navigation-menu {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}

.navigation-menu--item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.navigation-menu--item.active {
  color: #000;
}

.navigation-menu--item a {
  text-decoration: none;
  color: #000;
  margin-right: 16px;
}

.logo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.logo--link {
  text-decoration: none;
  color: #000;
}

.circle-container {
  position: absolute;
  bottom: 0;
  padding-top: 8px;
  left: 0;
  width: 100%;
  height: 20px;
}

.gel-drop {
  width: 6px;
  height: 6px;
  background-color: #000000;
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  position: absolute;
  left: 0;
  animation: gelMorphDrop 6s infinite ease-in-out, shine 5s infinite linear;
  transition: left 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.main {
  display: flex;
  flex-direction: column;
}

.intro {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  justify-content: space-around;
  align-items: flex-start;
  width: 90vw;
  margin: 0 auto;
  padding-top: 27vh;
}

.header--level1 {
  font-family: "YouMurdererBB", sans-serif;
  font-weight: 600;
  font-size: 7.5rem;
  text-transform: uppercase;
}

.header--level1 span {
  background-color: #e72987;
  color: azure;
}

.intro-context {
  font-size: 1.2rem;
  line-height: 1.6;
  font-weight: 200;
  align-self: flex-end;
  padding-bottom: 10vh;
}

.about {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  box-sizing: border-box;
  padding-top: 10vh;
  width: 90vw;
  margin: 0 auto;
}

.about--header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.content {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 25vh;
}

.about-context {
  width: 35vw;
  font-size: 1.3rem;
  line-height: 1.45;
  font-weight: 200;
  align-self: flex-start;
}

.about-context span {
  background-color: #000;
  color: #fff;
}

.my-skills {
  width: 35vw;
  align-self: flex-end;
  margin-top: auto;
  /* margin-left: 12%; */
}

.work {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: 100vh;
  box-sizing: border-box;
  padding-top: 10vh;
}

.work--content {
  padding-bottom: 50vh;
}

.work--content__links {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
}

.work--content__link {
  font-size: 1.5rem;
  color: #000;
  padding-right: 20px;
}

.work--content__link:hover {
  text-decoration: line-through;
}

.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 90vh;
  box-sizing: border-box;
  padding-top: 10vh;
}

.about--header,
.work--header,
.contact--header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 8vh;
}

.social__lists {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  /* padding-top: 10vh; */
}

.social__lists li {
  margin-left: 20px;
}

.header--level2 {
  font-family: "YouMurdererBB", sans-serif;
  font-size: 10rem;
  font-weight: 400;
}

.header--level3 {
  /* margin-top: 10px; */
  margin-bottom: 10px;
  /*font-size: 1.75rem;*/
  font-weight: 700;
  text-transform: uppercase;
}

.narration {
  list-style: none;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.narration__select {
  margin-bottom: 2vh;
}

.narration__select li {
  margin-bottom: 10px;
  margin-right: 10px;
  padding: 5px 10px;
  border-radius: 25px;
  background-color: #2f2f2f;
  color: white;
  /*font-size: 1.6rem;*/
  text-align: center;
}

.narration__noselect li {
  margin-bottom: 10px;
  margin-right: 10px;
  text-align: center;
  border: solid 1px #2f2f2f;
  padding: 4px 10px;
  border-radius: 25px;
  /*font-size: 1.6rem;*/
}

.footer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: calc(100% - 120px);
  margin-left: 40px;
}

br.mobile-only {
  display: none;
}

@media (max-width: 1024px) {
  html {
    font-size: 14px;
  }

  .intro {
    min-height: 50vh;
    justify-content: space-around;
    align-items: flex-start;
    margin: 0 auto;
    padding-top: 10vh;
  }

  .header--level1 {
    font-size: 7rem;
  }

  .intro-context {
    font-size: 1.35rem;
  }

  .header--level2 {
    font-size: 8rem;
  }

  .image-app {
    width: 200px;
    height: 42px;
  }

  .about {
    min-height: 50vh;
    justify-content: flex-start;
  }

  .about--header,
  .work--header,
  .contact--header {
    margin-bottom: 6vh;
  }

  .about-context {
    width: 37vw;
    font-size: 1.1rem;
  }

  .my-skills {
    width: 39vw;
  }

  .header--level3 {
    font-size: 1rem;
  }

  .work {
    min-height: 50vh;
    justify-content: flex-start;
  }

  .contact {
    /* min-height: 50vh; */
    justify-content: flex-start;
  }

  .narration {
    font-size: 1rem;
  }

  br.mobile-only {
    display: none;
  }
}

/* Адаптация под смартфоны */
@media (max-width: 768px) {
  html {
    font-size: 14px;
    background-color: #fff;
  }

  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .header {
    font-size: 0.7rem;
    padding: 0;
    width: 90vw;
    max-width: 768px;

    display: grid;
    grid-template: 2fr / 1fr 1fr;
    gap: 1% 1%;

    grid-template-areas:
      "logo portfolio"
      "nav nav";

    align-items: center;
    padding-bottom: 16px;
    height: 84px;
  }

  .navigation {
    width: 100%;
    grid-area: nav;
  }

  .navigation-menu {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 1rem;
  }

  .navigation-menu--item {
    display: inline;
  }

  .logo {
    grid-area: logo;
    justify-self: start;
  }

  .digital-portfolio {
    grid-area: portfolio;
    justify-self: end;
    text-align: right;
  }

  .circle-container {
    display: none;
    height: 5px;
    bottom: auto;
  }

  .navigation-menu--item a {
    margin-right: 0;
  }

  .header--level1 {
    font-size: 4.6rem;
  }

  .header--level2 {
    font-size: 5.1rem;
  }

  .header--level3 {
    font-size: 0.9rem;
    margin-bottom: 0;
  }

  .intro {
    min-height: 100vh;
  }

  .narration {
    font-size: 0.8rem;
  }

  .narration__select {
    margin-bottom: 0;
  }

  .narration__select li {
    margin-bottom: 6px;
    margin-right: 6px;
  }

  .narration__noselect li {
    margin-bottom: 8px;
    margin-right: 6px;
  }

  .image-app {
    width: 38vw;
    height: 4vh;
  }

  .intro-context {
    font-size: 1.1rem;
    font-weight: 400;
    width: 70vw;
    padding-bottom: 0;
  }

  br.display-only {
    display: none;
  }

  br.mobile-only {
    display: block;
  }

  .content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0;
  }

  .about,
  .work {
    min-height: 100vh;
    padding-top: 14vh;
  }

  .contact {
    min-height: 80vh;
    padding-top: 2vh;
  }

  .about--header,
  .work--header {
    margin-bottom: 6vh;
  }

  .contact--header {
    margin-bottom: 10vh;
  }

  .about-context {
    width: 90vw;
    font-size: 1rem;
    font-weight: 400;
  }

  .my-skills {
    width: 90vw;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 4vh;
  }

  .my-skills .narration {
    margin-bottom: 1vh;
  }

  .work--content {
    padding-bottom: 0;
    width: 90vw;
    align-items: center;
    margin-top: 6vh;
  }

  .work--content__links {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }

  .work--content__link {
    font-size: 1.1rem;
  }

  .social-img {
    width: 36px;
    height: 36px;
  }

  .footer {
    width: 90vw;
    margin: 0 auto;
  }

  .footer-logo {
    width: 64px;
    height: 64px;
  }
}

@media (max-width: 375px) {
  html {
    font-size: 14px;
  }

  .header--level1 {
    font-size: 3.4rem;
  }

  .intro-context,
  .about-context {
    font-size: 0.9rem;
  }

  .footer-logo {
    width: 48px;
    height: 48px;
  }
}

@keyframes gelMorphDrop {
  0%,
  100% {
    border-radius: 50%;
    transform: scale(1);
  }

  20% {
    border-radius: 58% 42% 60% 40% / 40% 60% 42% 58%;
    transform: scale(1.08, 0.95);
  }

  40% {
    border-radius: 65% 35% 45% 55% / 55% 45% 60% 40%;
    transform: scale(0.95, 1.08);
  }

  60% {
    border-radius: 60% 40% 65% 35% / 35% 65% 40% 60%;
    transform: scale(1.1, 0.9);
  }

  80% {
    border-radius: 55% 45% 50% 50% / 60% 40% 45% 55%;
    transform: scale(0.98, 1.02);
  }
}

@keyframes shine {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 100% 100%;
  }
}
