:root {
  --green-dark: #50a3a2;
  --green-light: #5ec8c7;
  --gray-light: rgba(117, 117, 117, 0.637);
  --shadow-primary: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  --shadow-secondary: #50a3a2 0px 1px 2px 0px, #50a3a2 0px 2px 6px 2px;
  --shadow-terciary: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  --shadow-span: rgba(0, 0, 0, 0.12) 0px 1px 3px,
    rgba(0, 0, 0, 0.24) 0px 1px 2px;
  --drop-shadow: drop-shadow(0.15rem 0.15rem 0.3rem rgba(130, 130, 130, 0.5));
}

* {
  margin: 0;
  padding: 0;
  list-style: none;
  text-decoration: none;
  border: none;
  outline: none;
  font-family: 'Secular One', sans-serif;
  color: var(--gray-light);
  box-sizing: border-box;
  font-size: 20px;
  size-adjust: 100%;
}

/* custom scroll bar */
/* width */
::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  background: transparent;
  overflow: hidden;
  border-radius: 2rem;
  margin: 20px;
  border-radius: 40px;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: var(--green-dark);
  border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: var(--green-light);
}
/* end custom scroll bar */

body {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  min-width: 100vw;
  min-height: 100vh;
  overflow: auto;
}

main {
  width: 65vw;
  height: 80vh;
  max-width: 2000px;
  max-height: 2000px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.highlight {
  box-shadow: var(--shadow-span);
  padding: 0 10px;
  border-radius: 1rem;
  color: var(--green-dark);
}

.hidden {
  display: none !important;
}

.show {
  opacity: 1 !important;
  z-index: 0 !important;
}

.image {
  position: absolute;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: -10;
}

.image img {
  position: relative;
  width: 800px;
  top: -40px;
}

.dev {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-height: inherit;
  max-width: inherit;
  padding: 50px 0;
  border-radius: 0.3rem;
  display: flex;
  justify-content: center;
  font-size: 2rem;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.25);
  box-shadow: var(--shadow-primary);
  backdrop-filter: blur(12.5px);
  -webkit-backdrop-filter: blur(12.5px);
  border-radius: 10px;
  z-index: 100;
}

.dev__title {
  text-align: center;
  border-radius: 0.5rem;
  padding: 20px 20px;
  box-shadow: var(--shadow-terciary);
  position: absolute;
  top: -35px;
  background-color: white;
  z-index: 500;
  color: var(--green-dark);
}

.dev__button {
  text-align: center;
  border: 5px solid rgba(191, 191, 191, 0.446);
  border-radius: 80px;
  padding: 2px 20px;
  box-shadow: var(--shadow-terciary);
  background-color: white;
  cursor: pointer;
  transition: all 0.1s ease-in-out;
}

.dev__description {
  text-align: center;
  padding: 1rem 4rem 0.2rem 4rem;
  width: 100%;
  max-width: 700px;
  color: var(--gray-light);
}

.dev__skills {
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  position: relative;
  transition: all 0.4s ease-in-out;
}

.dev__skills img,
.links img {
  filter: var(--drop-shadow);
}

.dev__skills__item {
  position: absolute;
  width: 80px;
  height: 80px;
  transition: all 0.4s ease-in-out;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.dev__skills__item img {
  transition: all 0.4s ease-in-out;
  width: 80px;
  height: 80px;
}

.dev__skills__name {
  font-size: 1rem;
  font-weight: normal;
  color: var(--gray-light);
  transition: all 0.4s ease-in-out;
  opacity: 0;
}

.dev__skills.on {
  z-index: 200;
  width: 150px;
  height: 150px;
  top: -15px;
}

.dev__skills__item--1 {
  top: -50px;
}

.dev__skills__item--2 {
  top: -50px;
}

.dev__skills__item--3 {
  bottom: -50px;
}

.dev__skills__item--4 {
  bottom: -50px;
}

.dev__skills__item:nth-child(odd) {
  left: -50px;
}

.dev__skills__item:nth-child(even) {
  right: -50px;
}

.dev__skills__item:nth-child(odd) img:hover {
  transform: translate(-20px) rotate(-45deg);
}

.dev__skills__item:nth-child(even) img:hover {
  transform: translate(20px) rotate(45deg);
}

.menu {
  position: absolute;
  display: flex;
  flex-direction: column;
  right: 0px;
  transform: translateX(100%);
  height: 80%;
}

.menu__list {
  display: flex;
  height: 100%;
  width: 100%;
  flex-direction: column;
  justify-content: space-evenly;
}

.menu__list input {
  display: none;
}

.menu__list li {
  display: flex;
  flex-direction: column;
  user-select: none;
}

.menu__list__item {
  border-radius: 0 0.3rem 0.3rem 0;
  background: rgba(255, 255, 255, 0.25);
  padding: 1rem;
  cursor: pointer;
  transition: all 0.1s ease-in-out;
  box-shadow: var(--shadow-terciary);
}

input[type='radio']:checked + label {
  background: rgba(255, 255, 255, 0.25);
  color: var(--green-light);
  box-shadow: var(--shadow-secondary);
}

.menu__list__item:hover,
.dev__button:hover {
  color: var(--green-light);
  transform: scale(1.07);
}

.contact {
  width: 100%;
  display: flex;
  justify-content: center;
}

.form {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  min-width: 300px;
  gap: 0.5rem;
  border-radius: 1rem;
  z-index: 400;
  position: relative;
  top: -35px;
}

.form__input {
  border-bottom: 2px solid var(--green-dark);
  box-shadow: var(--shadow-terciary);
  padding: 5px 10px;
  border-radius: 0.2rem;
}

.form__input::placeholder {
  color: var(--gray-light);
}

.form__message {
  height: 200px;
  min-width: 100px;
  min-height: 100px;
  max-width: 400px;
  max-height: 200px;
}

.projects {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  flex-wrap: wrap;
  overflow: auto;
  padding: 40px;
  transition: all 0.3s ease-in-out;
  gap: 1rem;
}

.projects__container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  transition: all 0.3s ease-in-out;
  gap: 10px;
  max-width: 1000px;
  z-index: -100;
  padding-top: 1rem;
  padding-bottom: 2rem;
}

.projects__container::after {
  content: '';
  width: 100%;
  height: 2px;
  background-color: var(--green-dark);
  box-shadow: var(--shadow-span);
  margin-top: 2rem;
  border-radius: 2rem;
}

.projects__container:last-of-type::after {
  display: none;
}

.projects__image {
  width: 100%;
  border-radius: 0.2rem;
  box-shadow: var(--shadow-span);
}

.projects__title {
  width: 100%;
  font-size: 0.9rem;
  font-weight: normal;
  text-align: center;
}

.projects__description {
  font-size: 0.8rem;
  text-align: justify;
  width: 100%;
}

.links {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.links__item {
  width: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  text-align: center;
  font-size: 0.8rem;
}

.links__item img {
  width: 100px;
  height: 100px;
}

@media (min-width: 1280px) and (min-height: 860px) {
  .image {
    display: flex;
  }
}

@media screen and (max-width: 800px), (max-height: 740px) {
  * {
    font-size: 12px;
  }

  main {
    width: 65vw;
    height: 50vh;
  }

  .dev {
    font-size: 0.7rem;
  }

  .menu {
    font-size: 0.4rem;
  }

  .menu__list__item {
    padding: 0.7rem 0.2rem;
  }

  .dev__description {
    padding: 0 2rem;
  }

  .form {
    min-width: 200px;
    top: 0;
  }

  .form__message {
    height: 4.5rem;
  }

  .form__input::placeholder {
    font-size: 0.7rem;
  }

  .dev__title {
    padding: 5px 10px;
    top: -20px;
  }

  .dev__skills.on {
    top: 2rem;
    width: 30%;
    height: 30%;
  }

  .dev__skills__name {
    font-size: 0.7rem;
  }

  .dev__skills__item,
  .dev__skills__item img {
    width: 50px;
    height: 50px;
  }

  .dev__skills__item--1 {
    top: -25px;
  }

  .dev__skills__item--2 {
    top: -25px;
  }

  .dev__skills__item--3 {
    bottom: -25px;
  }

  .dev__skills__item--4 {
    bottom: -25px;
  }

  .dev__skills__item:nth-child(odd) {
    left: -25px;
  }

  .dev__skills__item:nth-child(even) {
    right: -25px;
  }

  .links__item {
    width: 50px;
    font-size: 0.5rem;
  }

  .links__item img {
    width: 50px;
    height: 50px;
  }
}
