@import url('https://fonts.googleapis.com/css2?family=DynaPuff&display=swap');
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: 'DynaPuff', cursive;
  /* font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif; */
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.2em 1.2em;
  position: fixed;
  background-color: black;
  width: 100%;
  color: white;
  z-index: 1;
  border-bottom: 5px double;
}

.index {
  color: white;
  text-decoration: none;
}

.index:hover {
  color: white;
  background-color: #6e07f3;
  padding: 0 0.5em;
  border-radius: 0.5em;
}

.hamburguer {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hamburguer div {
  width: 1.5em;
  height: 0.2em;
  background-color: white;
  margin: 0.1em 0;
  cursor: pointer;
}

.hamburguer:hover {
  transform: scale(1.2);
}

/* menu desplegable */

.menu {
  background-color: hsl(0, 0%, 0%, 0.75);
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  height: 100%;
  z-index: 1;
}

.hidden {
  display: none;
}

.slide-menu {
  background-color: white;
  width: 65%;
  height: 100%;
}

.slide-menu img {
  width: 1.7em;
  margin-top: 1.7em;
  margin-left: 1em;
  cursor: pointer;
  transition: 0.3s all ease-in-out;
}

.slide-menu img:hover {
  transform: rotate(90deg);
}

.slide-menu ul {
  padding: 1.5em;
  display: flex;
  flex-direction: column;
}

.slide-menu ul li {
  list-style: none;
  margin: 1.5em 0;
}

.slide-menu ul li a {
  text-decoration: none;
  font-size: 1.6em;
  text-transform: uppercase;
  color: #6e07f3;
  font-weight: bold;
}

.slide-menu ul li a:hover {
  text-decoration: underline;
  opacity: 0.7;
}

/* section - description */
.presentation {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 3em;
  padding: 8em 1em;
}

.presentation h1 {
  text-transform: uppercase;
  font-size: 3em;
}

.foto {
  width: 50%;
  height: 10em;
  margin: 0 auto;
  border-radius: 0.5em;
}

.heroImg {
  width: 100%;
  height: 10em;
}

/* description */
.container-description {
  background-color: #6e07f3;
  text-align: center;
  color: white;
  padding: 1.5em;
  height: 45em;
}

.description {
  width: 90%;
  margin: 0 auto;
}

.description h2 {
  margin: 2.5em 0;
}

.description p {
  line-height: 2em;
}

/* skills */
.skills-container {
  padding: 1em;
}

.skills {
  padding: 1em;
  border: 1px solid rgb(217, 210, 210);
  margin-top: -7em;
  background-color: white;
  border-radius: 1em;
  text-align: center;
}

.skills h2 {
  margin: 1em 0;
  text-transform: uppercase;
}

.skills span {
  display: block;
  margin: 1em 0;
}

.skills h3,
h4 {
  color: #6e07f3;
}

.skills ul {
  list-style: none;
  margin: 1em 0;
}

.skills ul li {
  margin: 0.8em 0;
}

/* works */
.works-container {
  text-align: center;
}

.works {
  margin: 2em 0;
  padding: 1em;
}

.works h1 {
  margin: 1em 0;
}

.cards-container {
  padding-top: 3em;
  display: flex;
  flex-wrap: wrap;
  gap: 4em;
}

.cards-container .card {
  margin: 0 auto;
}

.cards-container .card img {
  width: 15em;
  transition: all 0.3s ease-in-out;
  border-radius: 0.5em;
}

.cards-container .card img:hover {
  transform: scale(1.3);
  border: 4px solid #6e07f3;
}

/* company */
.company-container {
  text-align: center;
  padding-bottom: 4em;
}

.company-container h2 {
  margin: 3em 0;
}

.company {
  padding: 1em 2em;
}

.cards-company {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
}

.cards-company .card {
  display: block;
  margin: 0 auto;
  text-transform: uppercase;
  transition: all 0.3s ease-in-out;
}

.cards-company span {
  line-height: 1.5em;
}

.cards-company .card img {
  width: 12em;
  height: 12em;
  border-radius: 1em;
}

.cards-company .card:hover {
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
  /* background-color: #6e07f3; */
  cursor: pointer;
  border: 6px solid #6e07f3;
}

/* contact me */
.contact {
  background-color: #6e07f3;
  color: white;
  padding: 2em;
  text-align: center;
}

.contact span {
  font-size: 1.3em;
}

.social-media {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5em;
  list-style: none;
  margin-top: 2em;
}

.social {
  border: 2px solid gray;
  width: 50px;
  height: 50px;
  padding: 0.9em;
  border-radius: 50px;
  filter: invert(100%);
  cursor: pointer;
}

.social:hover {
  filter: invert(0%);
  background-color: white;
  border: none;
}

/* spinner */
.spinner {
  display: none;
  margin: 17em auto;
  width: 40px;
  height: 40px;
  position: relative;
  text-align: center;
  -webkit-animation: sk-rotate 2s infinite linear;
  animation: sk-rotate 2s infinite linear;
}

.dot1,
.dot2 {
  width: 60%;
  height: 60%;
  display: inline-block;
  position: absolute;
  top: 0;
  background-color: #6e07f3;
  border-radius: 100%;

  -webkit-animation: sk-bounce 2s infinite ease-in-out;
  animation: sk-bounce 2s infinite ease-in-out;
}

.dot2 {
  top: auto;
  bottom: 0;
  -webkit-animation-delay: -1s;
  animation-delay: -1s;
}

@-webkit-keyframes sk-rotate {
  100% {
    -webkit-transform: rotate(360deg);
  }
}
@keyframes sk-rotate {
  100% {
    transform: rotate(360deg);
    -webkit-transform: rotate(360deg);
  }
}

@-webkit-keyframes sk-bounce {
  0%,
  100% {
    -webkit-transform: scale(0);
  }
  50% {
    -webkit-transform: scale(1);
  }
}

@keyframes sk-bounce {
  0%,
  100% {
    transform: scale(0);
    -webkit-transform: scale(0);
  }
  50% {
    transform: scale(1);
    -webkit-transform: scale(1);
  }
}

@media only screen and (min-width: 390px) {
  .foto {
    width: 40%;
    height: 0%;
  }

  .skills {
    margin-top: 0;
  }

  .container-description {
    height: 38em;
  }
}

@media only screen and (min-width: 441px) {
  .container-description {
    height: 32em;
  }
}

@media only screen and (min-width: 524px) {
  .container-description {
    height: 30em;
  }
}

@media only screen and (min-width: 1024px) {
  .foto {
    width: 10%;
    height: 0%;
  }
  .container-description {
    height: 25em;
  }

  header {
    padding: 0 2em;
  }

  .hamburguer {
    display: none;
  }

  .menu {
    display: block;
    position: unset;
    height: unset;
  }

  .slide-menu {
    width: 0;
    padding: 0;
  }

  .slide-menu img {
    display: none;
  }

  .slide-menu ul {
    flex-direction: row;
    font-size: 1rem;
    font-weight: 400;
    gap: 5rem;
  }

  .slide-menu ul li {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
  }

  .slide-menu ul li a {
    font-size: 16px;
    color: white;
  }

  .slide-menu ul li a:hover {
    text-decoration: none;
    font-weight: 700;
    color: #6e07f3;
  }
}
