@font-face {
  font-family: "Roboto Slab Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("https://fonts.gstatic.com/s/robotoslab/v35/BngMUXZYTXPIvIBgJJSb6ufN5qU.woff2") format("woff2");
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Roboto Slab Variable", Georgia, serif;
  color: #000;
  background: #fff;
  animation: page-enter 420ms ease-out both;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
p,
h1,
h2,
h3,
h4 {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

img,
svg {
  display: block;
}

.hidden {
  display: none;
}

.site-header {
  height: 64px;
}

.menu {
  position: fixed;
  z-index: 10;
  background-color: white;
  display: grid;
  grid-template-columns: 1fr 3fr;
  justify-content: center;
  justify-items: center;
  align-items: center;
  max-width: 1440px;
  width: 100%;
  height: 64px;
  padding: 0 70px;
  margin: 0 auto;
  box-shadow: 0 1px 0 rgb(0 0 0 / 6%);
}

.mobile-only {
  display: none;
}

.site-logo {
  background: no-repeat url("/logo.svg");
  background-position: 50% 50%;
  width: 148px;
  height: 64px;
}

.site-logo a {
  display: block;
  width: 100%;
  height: 100%;
  font-size: 0;
}

.site-logo {
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.site-logo:hover {
  opacity: 0.82;
  transform: translateY(-1px);
}

.nav-area {
  display: grid;
  grid-template-columns: 2fr 1fr;
  justify-items: center;
  width: 100%;
}

.pages-menu ul {
  display: flex;
  flex-direction: row;
  gap: 16px;
}

.pages-menu {
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: black;
}

.pages-menu li,
.pages-menu a {
  display: flex;
  align-items: center;
  height: 64px;
}

.pages-menu a:hover,
.social-menu a:hover,
.tech-stack-item a:hover {
  text-decoration: underline;
}

.pages-menu a,
.social-menu a,
.tech-stack-item a {
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.pages-menu a:hover,
.social-menu a:hover,
.tech-stack-item a:hover {
  transform: translateY(-1px);
}

.social-menu-list {
  display: flex;
  gap: 20px;
  font-weight: 700;
  font-size: 12px;
  line-height: 16px;
  text-align: center;
  letter-spacing: 0.15em;
  color: black;
}

.social-menu-list .icon-fill {
  fill: black;
}

.social-menu-item {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 2px;
}

.icon-button {
  width: 100%;
  min-width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition:
    background-color 180ms ease,
    transform 180ms ease;
}

.icon-button:hover {
  background-color: #f4f4f4;
  transform: translateY(-1px);
}

.icon-button svg {
  transition: transform 220ms ease;
}

.menu-toggle.is-open svg {
  transform: rotate(90deg);
}

.mobile-menu {
  position: fixed;
  z-index: 9;
  top: 64px;
  bottom: 0;
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid #e9e9e9;
  box-shadow: 0 24px 60px rgb(0 0 0 / 14%);
  opacity: 0;
  overflow-y: auto;
  transform: translateY(-4px);
  transition:
    opacity 360ms ease,
    transform 420ms cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0s linear 420ms;
  pointer-events: none;
  visibility: hidden;
}

.mobile-menu::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, #fff 0%, rgb(255 255 255 / 96%) 58%, rgb(246 246 246 / 98%) 100%);
  z-index: -1;
}

.mobile-menu[data-open="true"] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: 0s;
  visibility: visible;
}

.mobile-menu-pages,
.mobile-menu-social {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 20px;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 340ms ease,
    transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu[data-open="true"] .mobile-menu-pages,
.mobile-menu[data-open="true"] .mobile-menu-social {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-pages {
  gap: 8px;
  transition-delay: 90ms;
}

.mobile-menu-social {
  border-top: 1px solid #e9e9e9;
  gap: 0;
  transition-delay: 150ms;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  min-height: 56px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition:
    padding-left 180ms ease,
    opacity 180ms ease;
}

.mobile-menu-social a {
  font-size: 12px;
  letter-spacing: 0.15em;
}

.mobile-menu a:hover,
.mobile-menu a:focus-visible {
  padding-left: 8px;
  text-decoration: underline;
}

body.mobile-menu-open {
  overflow: hidden;
}

main {
  padding-top: 64px;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 64px);
  padding: 0 80px;
}

.hero-content {
  max-width: 600px;
  animation: rise-in 520ms 90ms ease-out both;
}

.quote {
  margin-bottom: 8px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-align: center;
}

.quote-author {
  text-align: right;
  letter-spacing: 0.15em;
  width: 80%;
  margin: 0 auto;
}

.simple-message {
  font-weight: 800;
  letter-spacing: 0.15em;
  text-align: center;
}

.with-animated-ellipsis::after {
  display: inline-block;
  animation: dotty steps(1, end) 3s infinite;
  content: "";
}

@keyframes dotty {
  0%,
  100% {
    content: "";
  }
  25% {
    content: ".";
  }
  50% {
    content: "..";
  }
  75% {
    content: "...";
  }
}

.works-page {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 48px 0;
}

.profile-wrapper {
  display: block;
}

.profile-container {
  display: flex;
  flex-direction: column;
  padding: 0 24px;
  gap: 30px;
}

.title-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.personal-title-container {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.personal-title {
  font-weight: 400;
  font-size: 24px;
  line-height: 32px;
  text-align: center;
  margin: 0 auto;
}

.photo {
  position: relative;
  width: 203px;
  height: 260px;
  margin: 0 auto;
  z-index: 0;
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: rise-in 520ms 110ms ease-out both;
  transition: transform 240ms ease;
}

.photo img:hover {
  transform: translateY(-3px);
}

.mainlines-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.mainlines-section {
  max-width: 272px;
  width: 100%;
  margin: 0 auto;
  animation: rise-in 460ms 140ms ease-out both;
}

.mainlines-section h3,
.strength-title,
.stats-list .name,
.tech-stack-header {
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #939393;
}

.mainlines-section h3 {
  margin-bottom: 15px;
  font-size: 14px;
  line-height: 18px;
}

.mainlines-section p,
.mainlines-section li p,
.strength-text p {
  font-weight: 400;
  font-size: 16px;
  line-height: 30px;
}

.mainlines-section ul {
  width: 100%;
}

.mainlines-section li {
  display: list-item;
  list-style: disc outside;
  margin-left: 25px;
}

.stats-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 15px 12px;
}

.stats-list .item {
  justify-self: center;
  max-width: 130px;
  animation: rise-in 420ms ease-out both;
  transition: transform 180ms ease;
}

.stats-list .item.larger {
  max-width: 150px;
}

.stats-list .item:nth-child(2) {
  animation-delay: 80ms;
}

.stats-list .item:nth-child(3) {
  animation-delay: 160ms;
}

.stats-list .item:hover {
  transform: translateY(-3px);
}

.stats-list .name {
  font-size: 14px;
  line-height: 18px;
  text-align: center;
}

.stats-list .value {
  font-weight: 300;
  font-size: 48px;
  line-height: 63px;
  text-align: center;
}

.skills-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.skills-container {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.skills-title {
  font-weight: 400;
  font-size: 24px;
  line-height: 32px;
  text-align: center;
}

.tech-stack-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 48px;
}

.tech-stack-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 288px;
  row-gap: 32px;
}

.tech-stack-section {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: center;
  height: 60px;
  gap: 20px;
  animation: rise-in 420ms ease-out both;
}

.tech-stack-section:nth-child(2),
.strength-section:nth-child(2) {
  animation-delay: 60ms;
}

.tech-stack-section:nth-child(3),
.strength-section:nth-child(3) {
  animation-delay: 120ms;
}

.tech-stack-section:nth-child(4),
.strength-section:nth-child(4) {
  animation-delay: 180ms;
}

.tech-stack-section:nth-child(5),
.strength-section:nth-child(5) {
  animation-delay: 240ms;
}

.tech-stack-section:nth-child(6),
.strength-section:nth-child(6) {
  animation-delay: 300ms;
}

.tech-stack-list {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: center;
  column-gap: 20px;
  row-gap: 18px;
}

.tech-stack-header {
  font-size: 12px;
  line-height: 16px;
  text-align: right;
}

.tech-stack-item {
  font-size: 16px;
  line-height: 21px;
  text-align: center;
}

.strength-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px;
}

.strength-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}

.strength-section {
  max-width: 272px;
  animation: rise-in 420ms ease-out both;
}

.strength-title {
  margin-bottom: 15px;
  text-align: center;
  font-size: 14px;
  line-height: 18px;
}

.strength-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.friends-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 64px;
  margin-bottom: 112px;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 500;
  text-align: center;
}

.friends-list li {
  animation: rise-in 360ms ease-out both;
}

.friends-list li:nth-child(2n) {
  animation-delay: 40ms;
}

.friends-list li:nth-child(3n) {
  animation-delay: 80ms;
}

@keyframes page-enter {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (min-width: 468px) {
  .stats-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 640px) {
  .stats-list :is(.item, .item.larger) {
    max-width: 214px;
  }

  .stats-list .name {
    font-size: 16px;
    line-height: 21px;
  }

  .stats-list .value {
    font-size: 64px;
    line-height: 84px;
  }
}

@media (min-width: 640px) and (min-height: 540px) {
  .profile-container {
    display: grid;
    padding: 0 40px;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 359px 131px;
    gap: 50px;
    align-items: center;
  }

  .mainlines-container {
    gap: 50px;
  }

  .stats-container {
    grid-row-start: 2;
    grid-column: 1 / span 2;
  }
}

@media (min-width: 642px) {
  .strength-wrapper {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0 48px;
  }

  .strength-container {
    align-items: flex-start;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (min-width: 660px) {
  .mainlines-section,
  .strength-section {
    min-width: 272px;
  }
}

@media (max-width: 663px) {
  .quote-author {
    text-align: center;
  }
}

@media (min-width: 696px) {
  .tech-stack-container {
    flex-direction: row;
    column-gap: 40px;
    max-width: 616px;
    flex-wrap: wrap;
  }

  .tech-stack-section {
    width: 288px;
  }
}

@media (max-width: 705px) {
  .menu {
    grid-template-columns: 1fr 2fr 1fr;
    padding: 0 20px;
  }

  .mobile-only {
    display: block;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu {
    display: block;
  }
}

@media (min-width: 834px) and (min-height: 540px) {
  .profile-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .profile-container {
    width: 833px;
  }
}

@media (min-width: 860px) {
  .skills-title {
    font-size: 32px;
    line-height: 42px;
  }

  .tech-stack-wrapper {
    gap: 64px;
  }

  .mainlines-section,
  .strength-section {
    min-width: 307px;
    max-width: 307px;
  }
}

@media (min-width: 860px) and (min-height: 667px) {
  .profile-wrapper {
    display: block;
  }

  .profile-container {
    grid-template-columns: 3fr 2fr;
    grid-template-rows: 486px 131px;
    width: auto;
  }

  .personal-title {
    font-size: 32px;
    line-height: 42px;
  }

  .photo {
    width: 287.68px;
    height: 367px;
  }

  .mainlines-container {
    gap: 80px;
  }

  .mainlines-section h3,
  .strength-title {
    font-size: 16px;
    line-height: 21px;
  }

  .mainlines-section p,
  .mainlines-section li p,
  .strength-text p {
    font-size: 18px;
    line-height: 36px;
  }
}

@media (max-width: 919px) {
  .social-menu {
    display: none;
  }
}

@media (min-width: 924px) and (min-height: 667px) {
  .profile-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .profile-container {
    width: 923px;
  }
}

@media (min-width: 1024px) {
  .tech-stack-container {
    max-width: 944px;
    row-gap: 48px;
  }
}

@media (min-width: 1024px) and (min-height: 486px) {
  .profile-wrapper {
    display: block;
  }

  .profile-container {
    grid-template-columns: 3fr 2fr 2fr;
    grid-template-rows: 486px;
    width: auto;
  }

  .stats-container {
    grid-row: 1;
    grid-column: 3;
  }

  .stats-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }
}

@media (max-width: 1199px) {
  .social-menu-item {
    justify-content: center;
    width: 64px;
  }

  .social-menu-item .name {
    display: none;
  }
}

@media (min-width: 1200px) {
  .menu {
    transform: translate(calc((100vw - 100%) / 2), 0);
  }
}

@media (min-width: 1279px) and (min-height: 486px) {
  .profile-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .profile-container {
    width: 1278px;
  }
}

@media (min-width: 1284px) {
  .skills-title {
    font-size: 48px;
    line-height: 63px;
  }
}

@media (min-width: 1284px) and (min-height: 821px) {
  .profile-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .profile-container {
    grid-template-columns: 2fr 3fr 2fr;
    grid-template-rows: 821px;
    width: 1284px;
  }

  .title-container {
    grid-row: 1;
    grid-column: 2;
    gap: 70px;
  }

  .mainlines-container {
    grid-row: 1;
    grid-column: 1;
    gap: 120px;
    margin-top: 201px;
  }

  .personal-title {
    font-size: 48px;
    line-height: 63px;
  }

  .photo {
    width: 486px;
    height: 620px;
  }

  .stats-container {
    margin-top: 201px;
  }

  .stats-list {
    align-items: end;
    gap: 50px;
  }

  .stats-list .name,
  .stats-list .value {
    text-align: right;
  }
}
