/* ОБНУЛЕНИЕ */
*,
*::before,
*::after {
  padding: 0;
  margin: 0;
  border: 0;
  box-sizing: border-box;
}
a {
  text-decoration: none;
  color: inherit;
}
ul,
ol,
li {
  list-style: none;
}
img {
  vertical-align: top;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: inherit;
  font-size: inherit;
}
html,
body {
  height: 100%;
  line-height: 1;
  scroll-behavior: smooth;
}

/* ОСНОВНОЕ =========================== */

.wrapper {
  min-height: 100%;
  max-width: 958px;
  min-width: 360px;
  margin: 0 auto;
  padding: 0 15px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.main {
  flex: 1 1 auto;
}

@media (max-width: 1024px) {
  .wrapper {
    padding: 0 3%;
  }
}

body {
  font-family: "Press Start 2P", cursive;
  background-color: #28212e;
  color: #84c693;
  letter-spacing: 0.1em;
}

.glowing {
  filter: drop-shadow(0px -0.1px 8px rgba(132, 198, 147, 0.1))
    drop-shadow(0px 0.1px 8px rgba(132, 198, 147, 0.1))
    drop-shadow(0.1px 0px 8px rgba(132, 198, 147, 0.1))
    drop-shadow(-0.1px 0px 8px rgba(132, 198, 147, 0.1));
}

.separator {
  overflow: hidden;
  text-align: center;
}

.spacing {
  display: none;
}

@media (max-width: 600px) {
  .spacing {
    display: inline;
  }
}

/* BEM ================================ */

.title {
  font-size: 24px;
}

.list {
  font-size: 16px;
  line-height: 24px;
}

.list__item {
  padding-bottom: 16px;
}

.list .list__item:last-child {
  padding-bottom: 0;
}

.link {
  text-decoration: underline;
  transition: filter 200ms linear;
}

.link:hover {
  filter: drop-shadow(0px -0.1px 8px rgba(132, 198, 147, 0.2))
    drop-shadow(0px 0.1px 8px rgba(132, 198, 147, 0.2))
    drop-shadow(0.1px 0px 8px rgba(132, 198, 147, 0.2))
    drop-shadow(-0.1px 0px 8px rgba(132, 198, 147, 0.2));
}

/* HEADER ============================= */

.header {
  padding: 32px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* border-bottom: solid 4px #84c693; */
}

.header__logo {
  font-size: 48px;
  margin-right: 10%;
}

.header__nav {
  flex-grow: 1;
}

.nav__list {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

/* .nav__list .nav__item:last-child {
  margin-right: 0px;
} */

.nav__item {
  /* margin-right: 24px; */
  flex-shrink: 0;
}

.nav__link {
  transition: filter 200ms linear;
}

.nav__list .nav__link:hover {
  filter: drop-shadow(0px -0.1px 8px rgba(132, 198, 147, 0.2))
    drop-shadow(0px 0.1px 8px rgba(132, 198, 147, 0.2))
    drop-shadow(0.1px 0px 8px rgba(132, 198, 147, 0.2))
    drop-shadow(-0.1px 0px 8px rgba(132, 198, 147, 0.2));
}

.header__menu {
  display: none;
}

@media (max-width: 1024px) {
  .header__nav {
    display: none;
  }

  .header__menu {
    display: block;
  }
}

/* INTRO ============================== */

.intro {
  padding: 32px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.intro__title {
  font-size: 32px;
  line-height: 48px;
  width: 50%;
}

.intro__language {
  height: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
}

.language__item {
  transition: filter 200ms linear;
}

.language__item:hover {
  filter: drop-shadow(0px -0.1px 8px rgba(132, 198, 147, 0.2))
    drop-shadow(0px 0.1px 8px rgba(132, 198, 147, 0.2))
    drop-shadow(0.1px 0px 8px rgba(132, 198, 147, 0.2))
    drop-shadow(-0.1px 0px 8px rgba(132, 198, 147, 0.2));
}

@media (max-width: 1024px) {
  .intro__language {
    display: none;
  }
}

/* ABOUT ============================== */

.about {
  padding: 32px 0;
}

.about__title {
  padding-bottom: 32px;
}

/* PROJECTS =========================== */

.projects {
  padding: 32px 0;
}

.projects__title {
  padding-bottom: 32px;
}

/* CONTACTS =========================== */

.contacts {
  padding: 32px 0;
}

.contacts__title {
  padding-bottom: 32px;
}

/* FOOTER =========================== */

.footer {
  padding: 32px 0;
  display: flex;
  justify-content: center;
}

@media (max-width: 600px) {
  .footer__text {
    width: 60%;
    text-align: center;
    line-height: 24px;
  }
}

/* MENU =============================== */

.menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  padding: 30px;
  display: flex;
  flex-direction: column;

  background-color: #28212e;
  z-index: 10;
}

.menu__button {
  align-self: flex-end;
  font-size: 24px;
}

.menu__nav {
  height: 100%;
}

.menu__nav > .nav__list {
  flex-direction: column;
  height: 100%;
  justify-content: center;
}

.menu__nav > .nav__list li:last-child {
  margin-top: 50px;
}

.hidden {
  display: none;
}
