html {
  scroll-behavior: smooth;
}

body {
  color: #4e125e;
}

.main {
  position: relative;
  background-color: #edebee;
}

.container {
  max-width: 128rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.title {
  font-family: "Gabriela", serif;
  font-weight: 700;
  text-align: center;
  letter-spacing: 1rem;
  background-image: linear-gradient(45deg, #4a1164, #6b3e79);
  color: transparent;
  background-clip: text;
  text-shadow: 1rem 1rem 1.5rem #c7a3cf;
  animation: 1.56s linear infinite maintitle;
}
.title_main {
  font-size: 7rem;
}
.title_second {
  font-size: 4rem;
}

/*HEADER*/
.header {
  padding: 0 1.5rem;
  background: url("../img/hero.jpg") 0 bottom/cover no-repeat;
}

.hero {
  padding-top: 10%;
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  font-family: "Gabriela", serif;
}
.hero__title {
  font-size: 4rem;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 0.5rem;
  color: #ffffff;
}
.hero__title span:last-child {
  display: block;
  margin-top: 2rem;
  font-size: 5rem;
  font-weight: 600;
  animation: 6s linear myposition;
}
.hero__text {
  width: 100%;
  position: absolute;
  bottom: 14rem;
  left: 50%;
  transform: translate(-50%);
  color: #ffffff;
  font-size: 2.6rem;
  text-align: center;
}
.hero__arrow-down {
  position: absolute;
  bottom: 7rem;
  left: 50%;
  transform: translate(-50%);
  display: flex;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  border: 0.1rem solid #ffffff;
  color: #ffffff;
  font-size: 2.4rem;
}
.hero__arrow-down i {
  position: absolute;
  bottom: 2.5rem;
  animation: 1.56s linear infinite jumping;
}

@keyframes letter {
  0% {
    opacity: 0;
    transform: translateY(-15px);
  }
  100% {
    opacity: 1;
    transform: translateY(0px);
  }
}
@keyframes myposition {
  from, 60%, 75%, 90%, to {
    -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  0% {
    opacity: 0;
    -webkit-transform: translate3d(0, -3000px, 0) scaleY(3);
    transform: translate3d(0, -3000px, 0) scaleY(3);
  }
  60% {
    opacity: 1;
    -webkit-transform: translate3d(0, 25px, 0) scaleY(0.9);
    transform: translate3d(0, 25px, 0) scaleY(0.9);
  }
  75% {
    -webkit-transform: translate3d(0, -10px, 0) scaleY(0.95);
    transform: translate3d(0, -10px, 0) scaleY(0.95);
  }
  90% {
    -webkit-transform: translate3d(0, 5px, 0) scaleY(0.985);
    transform: translate3d(0, 5px, 0) scaleY(0.985);
  }
  to {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}
@keyframes jumping {
  0% {
    transform: translateY(0.5rem);
    opacity: 1;
  }
  100% {
    transform: translateY(2.5rem);
    opacity: 0.1;
  }
}
/*MAIN*/
/*menu*/
.menu {
  position: sticky;
  top: 0;
  padding: 2rem 0;
  background-color: #ebd2f1;
  z-index: 10;
}
.menu__list {
  display: flex;
  justify-content: flex-end;
}
.menu__item {
  display: flex;
  align-items: center;
  padding: 0.3rem;
  border-radius: 0.3rem;
  transition: all 0.5s ease;
}
.menu__item i {
  margin-right: 0.7rem;
  font-size: 2rem;
  color: #19081d;
}
.menu__item:hover {
  box-shadow: 0 0 1rem #19081d;
}
.menu__item:not(:last-child) {
  margin-right: 3rem;
}
.menu__link {
  display: block;
  font-size: 2rem;
  color: #19081d;
  transition: all 0.5s ease;
}

/*about-me*/
.aboutme {
  padding: 10rem 0 5rem;
  display: flex;
}
.aboutme__item {
  flex: 0 1 49%;
}
.aboutme__item img {
  width: 90%;
  border-radius: 50%;
  animation: 2s linear infinite myborder;
}
.aboutme__item:first-child {
  margin-right: 2%;
}
.aboutme__item:last-child {
  display: flex;
  align-items: center;
  font-size: 2.4rem;
}
.aboutme__item:last-child p:not(:last-child) {
  margin-bottom: 1rem;
}

/*skills*/
.skills {
  padding: 8rem 0;
}
.skills__title {
  margin-bottom: 7rem;
}
.skills__parts {
  display: flex;
  justify-content: space-between;
}
.skills__part {
  flex: 0 1 49%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.skills__part:last-child {
  margin-left: 2rem;
  padding: 4rem;
  overflow: hidden;
}
.skills__part:last-child img {
  width: 90%;
  border-radius: 50%;
  animation: 2s linear infinite myborder;
}
.skills__items {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(auto, 20rem));
  justify-content: space-between;
  justify-items: center;
  row-gap: 4rem;
}
.skills__item {
  width: 10rem;
  transition: all 0.5s ease;
}
.skills__item img {
  width: 100%;
}
.skills__item:hover {
  transform: scale(1.2);
}

/*portfolio*/
.portfolio {
  padding: 8rem 0;
}
.portfolio__title {
  margin-bottom: 4rem;
  letter-spacing: 1rem;
  background-image: linear-gradient(45deg, #4a1164, #6b3e79);
  color: transparent;
  background-clip: text;
  text-shadow: 1rem 1rem 1.5rem #c7a3cf;
  animation: 1.56s linear infinite maintitle;
}
.portfolio__subtitle {
  margin-bottom: 6rem;
  font-weight: 600;
  text-align: center;
}
.portfolio__items {
  margin-bottom: 10rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  row-gap: 6rem;
  column-gap: 3rem;
}
.portfolio__item {
  position: relative;
  background-color: #ffffff;
  border: 0.1rem solid #ffffff;
}

.item-portfolio {
  overflow: hidden;
  border-radius: 2rem;
  transition: all 1s ease;
}
.item-portfolio img {
  max-width: 100%;
  height: 100%;
  object-fit: cover;
}
.item-portfolio:hover {
  box-shadow: 0 0 1rem #4e125e;
}
.item-portfolio:hover img {
  opacity: 0.4;
}
.item-portfolio:hover .item-portfolio__info {
  transition: all 1s ease;
  box-shadow: 0 0 1rem #4e125e;
  opacity: 1;
}
.item-portfolio__info {
  opacity: 0;
  transition: opacity 0.5s ease;
  width: 80%;
  height: 50%;
  position: absolute;
  z-index: 2;
  top: 25%;
  left: 0;
  right: 0;
  margin: 0 auto;
  padding: 2rem;
  border-radius: 1rem;
  background-color: rgba(206, 175, 216, 0.2);
  backdrop-filter: blur(7rem);
}
.item-portfolio__info-title {
  margin-bottom: 2rem;
  font-size: 2.4rem;
}
.item-portfolio p {
  font-size: 2rem;
}

@keyframes myborder {
  0% {
    box-shadow: 0 0 1rem #4e125e;
    opacity: 0.8;
  }
  50% {
    box-shadow: 0 0 4rem #503058;
    opacity: 1;
  }
  100% {
    box-shadow: 0 0 1rem #4e125e;
    opacity: 0.8;
  }
}
@keyframes maintitle {
  0% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.8;
  }
}
/*contacts*/
.contacts {
  padding-bottom: 7rem;
}
.contacts__title {
  margin-bottom: 6rem;
}
.contacts__items {
  margin-bottom: 4rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
.contacts__item {
  font-size: 6rem;
  transition: all 0.5s ease;
}
.contacts__item:not(:last-child) {
  margin-right: 4rem;
}
.contacts__item i:hover {
  transform: scale(1.2);
  color: #795485;
}
.contacts__info {
  margin: 0 auto;
  max-width: 60%;
  display: flex;
  justify-content: space-between;
  font-size: 3rem;
}
.contacts__info span {
  font-weight: 600;
}

/*footer*/
.footer {
  padding: 2rem 0;
  background-color: #4a1164;
  font-size: 2rem;
  line-height: 120%;
  color: #edebee;
}
.footer__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 1024px) {
  .container {
    max-width: 100rem;
  }
  .title_main {
    font-size: 6rem;
  }
  .title_second {
    font-size: 3.5rem;
  }
  .skills__part:last-child {
    display: none;
  }
  .skills__part:first-child {
    flex: 0 1 100%;
  }
  .contacts__info {
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  .menu__list {
    justify-content: center;
  }
  .container {
    max-width: 75rem;
  }
  .title_main {
    font-size: 5rem;
  }
  .aboutme {
    padding: 10rem 0 0;
    flex-direction: column;
  }
  .aboutme__item:first-child {
    margin-right: 0;
    margin-bottom: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .aboutme__item img {
    max-width: 70%;
  }
  .skills {
    padding: 8rem 0 5rem;
  }
  .skills__items {
    grid-template-columns: repeat(auto-fit, minmax(auto, 15rem));
  }
  .portfolio {
    padding: 8rem 0 5rem;
  }
  .portfolio__items {
    grid-template-columns: 1fr;
  }
  .contacts__item {
    font-size: 5rem;
  }
  .contacts__info {
    font-size: 2.5rem;
  }
}
@media (max-width: 600px) {
  .container {
    max-width: 56rem;
  }
  .menu {
    position: relative;
    background-color: #edebee;
  }
  .menu__list {
    /*display: none;*/
    position: absolute;
    z-index: 4;
    display: block;
    overflow: auto;
    top: 0;
    left: 0;
    background-color: #4a1164;
    width: 100vw;
    height: 100vh;
    padding-top: 20rem;
    padding-left: 1rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease;
  }
  .menu__list .menu__item i {
    margin-right: 1rem;
    font-size: 3rem;
    color: #ffffff;
  }
  .menu__list .menu__item:not(:last-child) {
    margin-right: 0;
    margin-bottom: 5rem;
  }
  .menu__list .menu__link {
    font-size: 4rem;
    color: #fff;
  }
  .menu__burger {
    display: block;
    position: absolute;
    top: 5rem;
    right: 2rem;
    width: 4rem;
    height: 3rem;
    z-index: 5;
    transition: all 0.5s ease;
  }
  .menu__burger span {
    position: absolute;
    background-color: #4a1164;
    left: 0;
    top: 1.5rem;
    width: 100%;
    height: 0.2rem;
    box-shadow: 0 0 0.5rem #4a1164;
    transition: all 0.3s ease 0s;
  }
  .menu__burger::before, .menu__burger::after {
    content: "";
    background-color: #4a1164;
    position: absolute;
    width: 100%;
    height: 0.2rem;
    left: 0;
    box-shadow: 0 0 0.5rem #4a1164;
    transition: all 0.3s ease 0s;
  }
  .menu__burger::before {
    top: 0;
  }
  .menu__burger::after {
    bottom: 0;
  }
  .menu__burger_active span {
    transform: scale(0);
  }
  .menu__burger_active::before {
    background-color: #fff;
    transform: rotate(45deg);
    top: 19px;
  }
  .menu__burger_active::after {
    background-color: #fff;
    transform: rotate(-45deg);
    bottom: 9px;
  }
  .menu__list_active {
    opacity: 1;
  }
  .contacts__info {
    flex-direction: column;
    align-items: center;
  }
  .contacts__info-phone {
    margin-bottom: 2rem;
  }
}
@media (max-width: 480px) {
  .container {
    max-width: 45rem;
  }
  .header__hero-title {
    font-size: 3rem;
  }
  .header__hero-title span:last-child {
    font-size: 4rem;
  }
  .title_main {
    font-size: 3.6rem;
  }
  .title_second {
    font-size: 2rem;
  }
  .skills {
    padding: 8rem 0 3rem;
  }
  .skills__items {
    grid-template-columns: repeat(auto-fit, minmax(auto, 10rem));
  }
  .skills__item {
    width: 8rem;
  }
  .portfolio {
    padding: 8rem 0 0;
  }
  .contacts__items {
    flex-wrap: wrap;
    gap: 3rem;
  }
}
@media (max-width: 370px) {
  .hero__title {
    margin-top: 20%;
    font-size: 3rem;
  }
  .hero__title span:last-child {
    font-size: 3.6rem;
  }
  .hero__text {
    font-size: 2rem;
  }
  .portfolio .title_main {
    font-size: 3rem;
  }
  .portfolio .title_second {
    font-size: 1.9rem;
    letter-spacing: 0.5rem;
  }
}