:root {
  --text-font: "Poppins", sans-serif;
  --small-font-size: 1.6rem;
  --big-font-size: 3rem;
  --primary-color: #272727;
  --secondary-color: rgb(152, 66, 233);
  --main-color: rgba(255, 255, 255, 0.877);
  --sub-color: rgba(255, 255, 255, 0.877);
  --webkit-transition: all 0.3s ease-in-out;
  --transition: all 0.3s ease-in-out;
}
* {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 62.5%;
  letter-spacing: 0.03rem;
  scroll-behavior: smooth;
}
body {
  background-color: var(--primary-color);
  color: var(--main-color);
  height: 100vh;
  font-family: var(--text-font);
  line-height: 1.5em;
  font-size: var(--small-font-size);
}
header {
  height: auto;
  --background: transparent;
  position: fixed;
  z-index: 200;
  width: 100%;
  padding: 1rem 0;
  background: var(--background);
}
h1,
h2,
h3 {
  font-weight: 400;
}
li {
  list-style: none;
}
a {
  color: var(--primary-color);
  text-decoration: none;
}
.container {
  width: 90%;
  max-width: 100rem;
  margin: 0 auto;
}
.container-2 {
  width: 90%;
  max-width: 700px;
  margin: 0 auto;
}
.header {
  display: flex;
  justify-content: space-between;
}
.nav-scrolled {
  --background: var(--sub-color);
  box-shadow: 0 3px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease-in-out;
}
.menu-btn {
  position: relative;
  z-index: 1;
  height: 20px;
  width: 28px;
  cursor: pointer;
  -webkit-transition: all 0.5s ease-in-out;
  transition: all 0.5s ease-in-out;
}
.menu-btn_burger {
  position: absolute;
  right: 0;
  top: 1.7rem;
  width: 24px;
  height: 3px;
  background: #fff;
  -webkit-transition: all 0.5s ease-in-out;
  transition: all 0.5s ease-in-out;
}
.menu-btn_burger::before {
  content: "";
  position: absolute;
  top: -8px;
  width: 28px;
  height: 3px;
  background: #fff;
  -webkit-transition: all 0.5s ease-in-out;
  transition: all 0.5s ease-in-out;
}
.menu-btn_burger::after {
  content: "";
  position: absolute;
  top: 8px;
  width: 20px;
  height: 3px;
  background: #fff;
  -webkit-transition: all 0.5s ease-in-out;
  transition: all 0.5s ease-in-out;
}
.menu-btn_burger.open {
  -webkit-transform: rotate(720deg);
  transform: rotate(720deg);
  background: 0 0;
}
.menu-btn_burger.open::before {
  -webkit-transform: rotate(45deg) translate(5px, 8px);
  transform: rotate(45deg) translate(5px, 8px);
}
.menu-btn_burger.open::after {
  width: 28px;
  -webkit-transform: rotate(-45deg) translate(3px, -7px);
  transform: rotate(-45deg) translate(3px, -7px);
}
.logo {
  display: flex;
  align-items: center;
}
.logo p {
  font-family: Aldrich, sans-serif;
  text-transform: uppercase;
  margin-left: 0.5em;
  display: none;
}
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  opacity: 0.98;
  visibility: hidden;
}
.img-area img {
  width: 40px;
  border: 3px solid #000000;
  border-radius: 50%;
}
.nav.open {
  visibility: visible;
}
.nav .menu-nav {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-flow: column wrap;
  flex-flow: column wrap;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  height: 100vh;
  overflow: hidden;
  background: var(--primary-color);
  list-style: none;
  padding-right: 1rem;
  -webkit-transform: translateX(100%);
  transform: translateX(100%);
  -webkit-transition: all 0.5s ease-in-out;
  transition: all 0.5s ease-in-out;
}
.nav .menu-nav.open {
  -webkit-transform: translateX(0);
  transform: translateX(0);
}
.nav .menu-nav_item {
  -webkit-transform: translateX(100vw);
  transform: translateX(100vw);
  -webkit-transition: all 0.5s ease-in-out;
  transition: all 0.5s ease-in-out;
}
.nav .menu-nav_item.open {
  -webkit-transform: translateX(0);
  transform: translateX(0);
}
.nav .menu-nav_item.active > a {
  color: var(--secondary-color);
}
.nav .menu-nav_link {
  display: inline-block;
  font-size: 2rem;
  text-transform: uppercase;
  padding: 2rem 0;
  font-weight: 500;
  -webkit-transition: all 0.5s ease-in-out;
  transition: all 0.5s ease-in-out;
}
.nav .menu-nav_link:hover {
  color: var(--secondary-color);
}
.menu-nav_item:nth-child(1) {
  -webkit-transition-delay: 0.25s;
  transition-delay: 0.25s;
}
.menu-nav_item:nth-child(2) {
  -webkit-transition-delay: 0.35s;
  transition-delay: 0.35s;
}
.menu-nav_item:nth-child(3) {
  -webkit-transition-delay: 0.45s;
  transition-delay: 0.45s;
}
.menu-nav_item:nth-child(4) {
  -webkit-transition-delay: 0.55s;
  transition-delay: 0.55s;
}
.text-secondary {
  color: var(--secondary-color);
}
main {
  background-color: var(--sub-color);
  padding: 3em 0;
}
.intro {
  text-align: center;
  margin-bottom: 2em;
  padding-top: 2rem;
}
.img-container {
  margin-bottom: 2rem;
}
.img-container img {
  width: 12rem;
  border-radius: 50%;
}
.intro-text {
  color: var(--primary-color);
  font-size: 3rem;
  line-height: 1.3em;
  font-family: Nunito, sans-serif;
  font-weight: 700;
}
.intro-text-2 {
  font-size: 1.2rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--primary-color);
  margin-top: 1em;
}
.form-contact {
  display: flex;
  flex-direction: column;
  padding: 1.5em 1.5em;
}
.form-grid {
  box-shadow: 0 0 2pt 2pt rgba(0, 0, 0, 0.5);
  position: relative;
  border-radius: 2rem;
  background-color: var(--primary-color);
}
.form-contact input,
.form-contact textarea {
  border: none;
  border-bottom: 2px solid var(--sub-color);
  background-color: transparent;
  margin-bottom: 2em;
  height: 5rem;
  padding: 0 0.5em;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--main-color);
}
.form-contact textarea {
  height: 13rem;
  padding: 0.5em;
}
.form-contact .submit-me {
  border-bottom: unset;
  border: 2px solid var(--sub-color);
  border-radius: 20px;
  margin-top: 1em;
}
.form-contact input::placeholder,
.form-contact textarea::placeholder {
  font-weight: 700;
  letter-spacing: 0.1rem;
  color: var(--main-color);
}
.form-contact input:focus,
.form-contact input:hover,
.form-contact textarea:focus,
.form-contact textarea:hover {
  outline: 1px solid #7524c0;
  box-shadow: 0 0 3pt 2pt #7524c0;
}
.footer-grid {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5em 0 0 0;
}
.footer-grid h5 {
  text-transform: uppercase;
  color: var(--main-color);
  letter-spacing: 1.5px;
  font-family: Aldrich, sans-serif;
}
.footer-grid p {
  color: var(--main-color);
  margin: 1em 3em;
}
.footer-grid p:nth-of-type(1) {
  font-size: 1.8rem;
  font-weight: 600;
  font-style: oblique;
}
.footer-grid p:nth-of-type(2) {
  font-size: 1.3rem;
}
.footer-image img {
  width: 5rem;
}
.social-media {
  min-width: 100px;
  max-width: 200px;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}
.img-font {
  font-size: 2.5rem;
  margin: 0.5em;
}
.img-font {
  font-size: 2.5rem;
  margin: 0.5em;
  transition: 0.4s;
}
.img-font:hover {
  scale: 1.5;
  -webkit-transform: rotate(360deg);
  transform: rotate(360deg);
}
@media (min-width: 770px) {
  html {
    font-size: 10.5px;
  }
}
@media (min-width: 750px) {
  header {
    padding: unset;
  }
  .hide-me {
    display: none;
  }
  .head {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .menu-btn {
    display: none;
  }
  .logo p {
    display: inline-flex;
  }
  .nav,
  .nav .menu-nav,
  .nav .menu-nav_item {
    all: unset;
  }
  .nav {
    justify-self: flex-end;
  }
  .nav .menu-nav_link {
    font-size: 1.6rem;
  }
  .nav .menu-nav_item {
    display: inline-block;
    margin: 0 1em;
  }
  .nav .menu-nav_item:last-child {
    margin-right: 0;
  }
  .nav .menu-nav_item.active > a {
    color: var(--primary-color);
  }
  .nav .menu-nav_link:hover {
    color: var(--primary-color);
  }
  .menu-nav_link {
    display: inline-block;
    position: relative;
  }
  .active-2::before,
  .menu-nav_link::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 1rem;
    background-color: var(--primary-color);
    width: 100%;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 650ms;
  }
  .active-2::before {
    transform: scaleX(1);
  }
  .menu-nav_link:hover::before {
    transform: scaleX(1);
  }
}
@media (max-width: 390px) {
  .footer-grid p:nth-of-type(1) {
    font-size: 1.4rem;
  }
}
