* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

:root {
  --color--1:rgb(28, 28, 28) ;
  --color--2:rgb(255, 85, 0);
  --weight--4:400;
  --weight--5:500;
  --step--2: clamp(0.6944rem, 0.6424rem + 0.2604vw, 0.8442rem);
  --step--1: clamp(0.8333rem, 0.7318rem + 0.5077vw, 1.1253rem);
  --step-0: clamp(1rem, 0.8261rem + 0.8696vw, 1.5rem);
  --step-1: clamp(1.2rem, 0.9219rem + 1.3904vw, 1.9995rem);
  --step-2: clamp(1.44rem, 1.0138rem + 2.131vw, 2.6653rem);
  --step-3: clamp(1.728rem, 1.0933rem + 3.1737vw, 3.5529rem);
  --step-4: clamp(2.0736rem, 1.1475rem + 4.6303vw, 4.736rem);
  --step-5: clamp(2.4883rem, 1.158rem + 6.6518vw, 6.3131rem);
  --step-6: clamp(2.986rem, 1.0975rem + 9.4424vw, 8.4153rem);
  --space-3xs: clamp(0.25rem, 0.2065rem + 0.2174vw, 0.375rem);
  --space-2xs: clamp(0.5rem, 0.413rem + 0.4348vw, 0.75rem);
  --space-xs: clamp(0.75rem, 0.6196rem + 0.6522vw, 1.125rem);
  --space-s: clamp(1rem, 0.8261rem + 0.8696vw, 1.5rem);
  --space-m: clamp(1.5rem, 1.2391rem + 1.3043vw, 2.25rem);
  --space-l: clamp(2rem, 1.6522rem + 1.7391vw, 3rem);
  --space-xl: clamp(3rem, 2.4783rem + 2.6087vw, 4.5rem);
  --space-2xl: clamp(4rem, 3.3043rem + 3.4783vw, 6rem);
  --space-3xl: clamp(6rem, 4.9565rem + 5.2174vw, 9rem);
}

.home__name::after {
  content: "";
  display: block;
  width: 100dvw;
  height: 2px;
  background-color: white;
}

.home__name--last {
  color: var(--color--2);
}

.home__info {
  padding-top: 1rem;
}

.footer {
  display: flex;
  flex-flow: row-reverse;
  justify-content: space-between;
  align-items: center;
  height: 3.5rem;
}
.footer__copyright {
  font-size: var(--step-0);
}

.footer__icons {
  display: flex;
  gap: 0.6rem;
  height: 100%;
}
.footer__icons .fab {
  color: white;
  height: 100%;
}
.footer__icons .fab:hover {
  color: var(--color--2);
}

.menu-nav {
  display: flex;
}
.menu-nav__item {
  font-size: var(--step-1);
  font-weight: var(--weight--4);
}
.menu-nav__item a {
  text-decoration: none;
  color: inherit;
}
.menu-nav__item.active {
  color: var(--color--2);
}
.menu-nav__item:hover {
  color: var(--color--2);
}
.menu-nav li {
  list-style: none;
}

.menu-btn {
  transition: all ease-in-out;
  height: 1.8rem;
  aspect-ratio: 1;
  position: absolute;
  display: flex;
  align-items: center;
  visibility: hidden;
}
.menu-btn__burger {
  display: block;
  background-color: white;
  height: 5px;
  width: 100%;
}
.menu-btn__burger::after {
  position: absolute;
  content: "";
  background-color: inherit;
  height: inherit;
  width: 100%;
  bottom: 0%;
}
.menu-btn__burger::before {
  transform: rotate(0);
  position: absolute;
  content: "";
  background-color: inherit;
  height: inherit;
  width: 100%;
  top: 0%;
}
.menu-btn:hover .menu-btn__burger {
  width: 70%;
  transition: all 0.3s ease;
}

.main #about {
  background-position: 0 -4rem;
}

.about__work {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(35rem, 100%), 1fr));
  gap: var(--space-s);
}
.about__work .work {
  border-bottom: 7px var(--color--2) solid;
  background-color: var(--color--1);
  border-radius: 2rem 2rem 0 0;
  padding: 1rem;
}
.about__work .work__time {
  color: var(--color--2);
  background-color: white;
  border-radius: 1rem 1rem 0 0;
  font-size: var(--step-1);
}
.about__work .work__name, .about__work .work__company {
  font-size: var(--step-2);
}
.about__work .work__info {
  margin-top: 0.5rem;
  background-color: rgb(148, 148, 148);
  padding-inline: var(--space-s);
}

.about__name {
  margin: 5vh 0 2.5vh 0;
  color: var(--color--2);
}

.about__info {
  margin: 5vh 0 5vh 0;
}

@media screen and (max-width: 768px) {
  .menu-btn {
    z-index: 999;
    visibility: visible;
    transition: all 0.5s ease-in-out;
  }
  .menu-btn__burger.open {
    width: 0% !important;
    transition: all 0.3ms ease-in-out;
    transition: none;
  }
  .menu-btn__burger.open::after {
    transform: rotate(855deg);
    bottom: unset;
    transition: all 0.5s ease-in-out;
  }
  .menu-btn__burger.open::before {
    transform: rotate(765deg);
    top: unset;
    transition: all 0.5s ease-in-out;
  }
  .nav, .nav.open {
    top: -100%;
    right: 0;
    background-color: rgb(26, 26, 26);
    opacity: 0.97;
    width: 100dvw;
    height: 100dvh;
    transition: all 0.5s ease-in;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    transition: all 0.5s ease-in-out;
  }
  .nav .menu-nav {
    flex-flow: column;
    text-align: center;
    font-size: var(--step-3);
    gap: var(--space-m);
  }
  .nav.open {
    top: 0 !important;
  }
}
body {
  min-height: 100dvh;
  display: flex;
  flex-flow: column;
  background: linear-gradient(to right, rgba(28, 28, 28, 0.9), rgba(28, 28, 28, 0.3)), url("./img/model-1.jpg");
  background-position: top;
  background-repeat: no-repeat;
  background-size: cover;
  padding-inline: var(--space-l);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: white;
}

.main {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  text-align: center;
  align-items: center;
}

.home__name, .about__name {
  font-size: var(--step-6);
  font-weight: var(--weight--5);
}

.home__info, .about__info {
  font-size: var(--step-1);
  font-weight: var(--weight--4);
}

.header {
  height: 3.5rem;
  font-size: var(--step-0);
  display: flex;
  align-items: center;
  justify-content: end;
}
.header .menu-nav {
  display: flex;
  gap: 1.5rem;
}