._container {
  margin: 0 auto;
  max-width: 1200px;
  box-sizing: content-box;
  padding: 0 20px;
}

._ibg {
  position: relative;
  z-index: -1;
}
._ibg img {
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  object-fit: cover;
}

._section {
  position: relative;
  padding: 50px 0;
  min-height: calc(100vh - var(--header-desktop));
  scroll-margin-top: var(--header-desktop);
}
@media (max-width: 767px) {
  ._section {
    padding: 35px 0;
    min-height: calc(100vh - var(--header-mobile));
    scroll-margin-top: var(--header-mobile);
  }
}

._title {
  position: relative;
  margin: 0 auto 40px;
  padding: 0px 0px 15px 0px;
  display: inline-block;
  text-align: left;
  font-size: 60px;
  font-family: "Rubik Scribble";
  opacity: 0;
}
._title span {
  display: inline-block;
  transform: translate(40vw);
  font-size: 0px;
  transition: transform 0.5s ease-in-out, font-size 0.5s ease-in, opacity 0.5s;
  opacity: 0;
}
._title span.init {
  transform: translate(0px);
  font-size: 60px;
  opacity: 1;
}
._title span.active {
  transition: none;
}
._title.small {
  font-size: 48px;
}
._title.small span.init {
  font-size: 48px;
}
._title.init {
  display: block;
  opacity: 1;
}
._title.active::after {
  left: 50%;
  visibility: visible;
  opacity: 1;
}
._title::after {
  content: "";
  position: absolute;
  left: 30vw;
  bottom: 0;
  display: inline-block;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--color);
  transition: left 0.5s cubic-bezier(0, 0, 0.29, 1.1), opacity 0.5s cubic-bezier(0.4, -0.03, 0.89, 0.6);
  visibility: hidden;
  opacity: 0;
}

._panel {
  margin: -10px 0px 10px 0px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  column-gap: 5px;
}
._panel__label {
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  color: var(--color);
  padding: 5px;
}
._panel__sort {
  font-size: 24px;
  color: var(--color);
}
._panel__sort:disabled::before {
  opacity: 0.5;
  cursor: default;
}

.home {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 40px;
  background: var(--home-background);
}
.home__container {
  display: flex;
  align-items: center;
  flex-direction: column;
}
.home__title {
  text-align: center;
}
.home__text {
  display: inline-block;
  font-weight: 500;
  text-align: center;
}
.home__text:not(:last-child) {
  margin: 0px 0px 10px 0px;
}
.home__highlight {
  color: var(--home-highlight-color);
}
.home__button {
  margin: 30px 0px 0px 0px;
  padding: 12px 20px;
  column-gap: 12px;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  font-size: 22px;
  border: 2px solid var(--color);
  color: var(--color);
}
.home__button::before {
  font-size: 20px;
  font-weight: 700;
  transition: transform 0.4s;
}
@media (any-hover: hover) {
  .home__button:hover::before {
    transform: rotate(90deg);
  }
}
@media (max-width: 767px) {
  .home {
    font-size: 30px;
  }
  .home__button {
    margin: 20px 0px 0px 0px;
    padding: 10px 17px;
    font-size: 20px;
  }
  .home__button::before {
    font-size: 18px;
  }
}
@media (max-width: 424px) {
  .home {
    font-size: 7vw;
  }
  .home__button {
    padding: 8px 14px;
    column-gap: 10px;
    font-size: 18px;
  }
  .home__button::before {
    font-size: 16px;
  }
}

.header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 20;
}
.header::before {
  content: "";
  position: absolute;
  z-index: -1;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  background: var(--nav-background);
}
.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  column-gap: 30px;
}
@media (max-width: 767px) {
  .header__container {
    justify-content: flex-start;
    flex-direction: row-reverse;
  }
}
.header__menu {
  min-height: var(--header-desktop);
}
@media (max-width: 767px) {
  .header__menu {
    min-height: var(--header-mobile);
  }
}

.menu {
  display: flex;
  align-items: center;
}
.menu__list {
  display: flex;
}
.menu__item:not(:first-child) {
  margin: 0px 0px 0px 20px;
}
.menu__link {
  font-size: 18px;
  font-weight: 500;
  text-transform: uppercase;
}
@media (any-hover: hover) {
  .menu__link:hover {
    color: var(--header-active-link);
  }
}
.menu__link.active {
  color: var(--header-active-link);
}
@media (max-width: 767px) {
  .menu__burger {
    position: relative;
    height: 18px;
    width: 30px;
    cursor: pointer;
  }
  .menu__burger span {
    position: absolute;
    top: calc(50% - 1px);
    height: 2px;
    width: 100%;
    background-color: var(--color);
    transition: all 0.3s;
  }
  .menu__burger span:first-child {
    top: 0;
  }
  .menu__burger span:last-child {
    top: auto;
    bottom: 0;
  }
  .menu__burger.active span {
    transform: scale(0);
  }
  .menu__burger.active span:first-child {
    top: calc(50% - 1px);
    transform: rotate(45deg);
  }
  .menu__burger.active span:last-child {
    top: calc(50% - 1px);
    transform: rotate(-45deg);
  }
  .menu__body {
    position: fixed;
    z-index: -2;
    height: 100%;
    width: 100%;
    top: 0;
    left: -100%;
    overflow: auto;
    background: var(--header-body);
    transition: 0.3s;
    opacity: 0.95;
  }
  .menu__body.active {
    left: 0;
  }
  .menu__list {
    padding: 90px 10px 30px 10px;
    flex-direction: column;
    align-items: center;
  }
  .menu__item:not(:first-child) {
    margin: 20px 0px 0px 0px;
  }
  .menu__link {
    font-size: 26px;
  }
}

.theme-switch #theme-checkbox {
  display: none;
}
.theme-switch #theme-checkbox:checked + label {
  background-color: #000;
}
.theme-switch #theme-checkbox:checked + label .theme-switch__stars {
  top: 1.5px;
  left: 32px;
  transform: scale(0.3);
  background-color: yellow;
}
.theme-switch #theme-checkbox:checked + label .theme-switch__star {
  color: yellow;
}
.theme-switch #theme-checkbox:checked + label .theme-switch__moon {
  bottom: 4px;
}
.theme-switch #theme-checkbox:checked + label .theme-switch__moon::before {
  background-color: #000;
}
.theme-switch label {
  user-select: none;
  display: block;
  position: relative;
  width: 58px;
  height: 28px;
  background-color: #77b5fe;
  border-radius: 28px;
  transition: 0.3s ease background-color;
  overflow: hidden;
  cursor: pointer;
}
.theme-switch__stars {
  position: absolute;
  top: 6.5px;
  left: 6.5px;
  width: 15px;
  height: 15px;
  background-color: #fafd0f;
  transform: scale(1);
  border-radius: 50%;
  transition: 0.3s ease top, 0.3s ease left, 0.3s ease transform, 0.3s ease background-color;
  z-index: 1;
}
.theme-switch__star {
  top: 0;
  left: -3.5px;
  font-size: 27px;
  line-height: 14px;
  color: #fafd0f;
  transition: 0.3s ease color;
}
.theme-switch__star_1 {
  position: relative;
}
.theme-switch__star_2 {
  position: absolute;
  transform: rotateZ(36deg);
}
.theme-switch__moon {
  position: absolute;
  bottom: -26px;
  right: 4px;
  width: 20px;
  height: 20px;
  background-color: #fff;
  border-radius: 50%;
  transition: 0.3s ease bottom;
}
.theme-switch__moon::before {
  content: "";
  position: absolute;
  top: -6px;
  left: -8.5px;
  width: 20px;
  height: 20px;
  background-color: #03a9f4;
  border-radius: 50%;
  transition: 0.3s ease background-color;
}

.footer {
  position: relative;
  padding: 35px 0 20px;
  background: var(--nav-background);
}
.footer::before {
  content: "";
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  border-top: 10vw solid var(--footer-top-background);
  border-left: 20vw solid transparent;
  border-right: 20vw solid transparent;
}
.footer__content {
  padding: 10vw 0px 0px 0px;
}
.footer__section:not(:last-child) {
  margin: 0px 0px 20px 0px;
}
.footer__title {
  font-size: 20px;
  font-weight: 500;
  text-align: center;
  margin: 0px 0px 10px 0px;
}
.footer__links {
  display: flex;
  justify-content: center;
  column-gap: 20px;
}
.footer__link {
  background: #333;
  flex: 0 0 45px;
  height: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  transition: background-color 0.3s;
  color: #fff;
}
@media (any-hover: hover) {
  .footer__link:hover {
    background: var(--footer-icon-hover-background);
  }
}
.footer__copy {
  margin: 25px 0px 0px 0px;
  display: flex;
  justify-content: center;
  align-items: center;
}
@media (max-width: 991px) {
  .footer {
    padding: 25px 0 20px;
  }
  .footer__section:not(:last-child) {
    margin: 0px 0px 15px 0px;
  }
  .footer__title {
    font-size: 20px;
    margin: 0px 0px 8px 0px;
  }
  .footer__link {
    flex: 0 0 45px;
    height: 45px;
    font-size: 24px;
  }
  .footer__copy {
    margin: 20px 0px 0px 0px;
  }
}
@media (max-width: 767px) {
  .footer {
    padding: 25px 0 20px;
  }
  .footer__title {
    font-size: 18px;
  }
  .footer__links {
    column-gap: 15px;
  }
  .footer__link {
    flex: 0 0 45px;
    height: 45px;
    font-size: 24px;
  }
  .footer__copy {
    margin: 15px 0px 0px 0px;
  }
}

.about__content {
  visibility: hidden;
}
.about__content.init {
  visibility: visible;
}
.about__content p:not(:last-child) {
  margin: 0px 0px 10px 0px;
}
@media (min-width: 768px) {
  .about__content p:not(:last-child) {
    margin: 0px 0px 12px 0px;
  }
}
@media (min-width: 768px) {
  .about__content p {
    font-size: 18px;
  }
}

.skills {
  background: rgba(30, 30, 30, 0.75);
}
.skills__bg {
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
}
.skills__title {
  color: #fff;
}
.skills__title::after {
  background: #fff;
}
.skills__label {
  color: #fff;
}
.skills__sort {
  color: #fff;
}
.skills__items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 20px;
  row-gap: 15px;
  transition: 0.5s ease;
}
@media (max-width: 767px) {
  .skills__items {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 768px) {
  .skills__content {
    padding: 25px 0px 0px 0px;
  }
  .skills__item:nth-child(odd) {
    position: relative;
    top: -25px;
  }
}

.item-skills {
  display: flex;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 1px 3px 5px 2px #000;
  font-size: 20px;
  transition: transform 0.5s ease-in-out;
  transform: translate(0, 0);
}
@media (any-hover: hover) {
  .item-skills:hover .item-skills__label {
    transform: translate(10px);
  }
}
.item-skills__label {
  flex: 0 0 120px;
  padding: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
  transition: 0.3s;
  color: #000;
}
.item-skills__progressbar {
  flex: 1 0 auto;
}
.item-skills__progress {
  height: 100%;
  width: 0;
  transition: width 0.5s;
}

.projects {
  --card-transition-time: 0.7s;
  background: linear-gradient(to bottom, var(--projects-background), var(--footer-top-background));
}
@media (max-width: 767px) {
  .projects {
    --card-transition-time: 0.4s;
  }
}
.projects__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-row-gap: 25px;
  grid-column-gap: 20px;
}
@media (max-width: 991px) {
  .projects__cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}
.card {
  position: relative;
  top: 100px;
  opacity: 0;
  transition: top 0.7s, opacity 0.7s ease-in;
  background: var(--card-background);
  padding: 5px;
  transition: transform var(--card-transition-time) ease-in-out, top 0.7s, opacity 0.7s ease-in;
}
.card.fade-in {
  top: 0;
  opacity: 1;
}
.card.force-init {
  transition: transform var(--card-transition-time) ease-in-out;
}
@media (any-hover: hover) {
  .card:hover:not(.no-hover) .card__body {
    opacity: 1;
    visibility: visible;
    background: var(--card-hover-background);
  }
}
.card__image {
  padding: 0px 0px 100% 0px;
  z-index: 0;
}
.card__content {
  padding: 15px 10px 10px;
}
.card__name {
  font-size: 24px;
  font-weight: 600;
  text-align: center;
}
.card__tags {
  margin: 10px 0px 0px 0px;
  display: flex;
  flex-wrap: wrap;
  row-gap: 10px;
  justify-content: center;
  column-gap: 20px;
}
.card__tag {
  min-height: 24px;
  padding: 0px 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--card-tag-background);
  border: 1px solid #000;
  border-radius: 10px;
}
.card__body {
  padding: 5px 10px 10px;
  display: grid;
  grid-template-rows: 120px auto auto;
}
@media (any-hover: hover) {
  .card__body {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 10;
    visibility: hidden;
    padding: 15px;
    grid-template-rows: 1fr auto auto;
    opacity: 0;
    transition: 0.5s;
  }
}
.card__description {
  overflow: auto;
}
.card__description p:not(:last-child) {
  margin: 0px 0px 10px 0px;
}
.card__date {
  margin: 15px 0px 0px 0px;
  text-align: center;
  font-size: 14px;
  color: var(--card-date-color);
}
.card__links {
  margin: 15px 0px 0px 0px;
  display: flex;
  justify-content: space-between;
}
.card__link {
  flex: 0 0 48%;
  min-height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 5px;
  font-size: 18px;
  background: var(--card-link-bg);
  text-align: center;
  font-weight: 500;
  transition: 0.3s;
}
@media (any-hover: hover) {
  .card__link:hover {
    background: var(--card-link-hover-bg);
  }
}

body {
  color: var(--color);
  background: var(--background);
  --color: #000;
  --background: #E8E8E4;
  --home-highlight-color: #ff5e6c;
  --home-background: #fff;
  --nav-background: #F4F0BB;
  --header-body: #faf7cf;
  --header-active-link: #DA2C38;
  --footer-top-background: #fff;
  --footer-icon-hover-background: #F6BD60;
  --projects-background: #E8E8E4;
  --card-background: #ffda23;
  --card-hover-background: rgba(247, 237, 226, 0.95);
  --card-tag-background: #E68653;
  --card-link-bg: #EBE0B0;
  --card-link-hover-bg: #e3ce72;
  --card-date-color: #303638;
  --header-desktop: 70px;
  --header-mobile: 50px;
}

body.dark-theme {
  --color: #fff;
  --background: #212f45;
  --home-background: #0f0f1e;
  --nav-background: #272640;
  --header-body: #34324b;
  --header-active-link: #4effc4;
  --footer-top-background: #144552;
  --footer-icon-hover-background: #4d194d;
  --projects-background: #212f45;
  --card-background: #3e1f47;
  --card-hover-background: rgba(38, 61, 74, 0.95);
  --card-tag-background: #0b525b;
  --card-link-bg: #201231;
  --card-link-hover-bg: #4d194d;
  --card-date-color: #ccc;
}

.wrapper {
  min-height: 100vh;
  line-height: 1.3;
  font-family: "Montserrat";
}