/* Root */
:root {
  --color-background: #fcf7f4;
  --color-letter: #020202;
  --color-letter-hover: #b188ff;
}

/*----------------- General -------------------*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  scroll-behavior: smooth;
  font-family: "Poppins", sans-serif;
}

html {
  font-size: 62.5%;
}

body {
  background-color: var(--color-background);
  color: var(--color-letter);
}

section {
  min-height: 100vh;
  padding: 10rem 9% 2rem;
}

/*----------------- Header -------------------*/
.header {
  /* Dar una posición fija para que se mantenga en la parte superior */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 9%;
  background: var(--color-background);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.logo {
  /* Dar un tamaño al logo */
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--color-letter);
  cursor: default;
}

.navbar a {
  /* Dar un tamaño a los enlaces */
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--color-letter);
  margin-left: 4rem;
  cursor: pointer;
}

.navbar a:hover,
.navbar a.active {
  /* Dar un color al pasar el mouse por encima */
  color: var(--color-letter-hover);
}

#menu-icon {
  /* Dar un tamaño al icono del menú */
  font-size: 3.6rem;
  color: var(--color-letter);
  cursor: pointer;
  display: none;
}

/*----------------- Home -------------------*/
.home {
  /* Dar un tamaño al contenedor */
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.home-content {
  /* Dar un tamaño al contenedor */
  margin-right: 1.5rem;
}

.home-content h3{
  /* Dar un tamaño a los h3 */
  font-size: 3.2rem;
  font-weight: 700;
}

.home-content h3:nth-last-of-type(2){
  /* Dar un tamaño a los h3 */
  margin-bottom: 0rem;
}

span {
  /* Dar un tamaño a los span */
  color: var(--color-letter-hover);
}

.home-content h1 {
  /* Dar un tamaño a los h1 */
  font-size: 5.6rem;
  font-weight: 700;
  line-height: 1.3;
}

.home-content p {
  /* Dar un tamaño a los párrafos */
  font-size: 1.6rem;
  text-align: justify;
}

.social-media {
  /* Dar un tamaño al contenedor */
  display: flex;
  justify-content: left;
  align-items: left;
  flex-direction: row;
}

.social-media a{
  /* Dar un tamaño a los enlaces */
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 4rem;
  height: 4rem;
  background: transparent;
  border: .2rem solid var(--color-letter-hover);
  border-radius: 50%;
  font-size: 2rem;
  color: var(--color-letter-hover);
  margin: 3rem 1.5rem 3rem 0;
  transition: .5s ease;
}

.social-media a:hover {
  /* Dar un color al pasar el mouse por encima */
  background-color: var(--color-letter-hover);
  color: var(--color-background);
  box-shadow: 0 0 1rem var(--color-letter-hover);
}

.btn {
  /* Dar un tamaño al botón */
  display: inline-block;
  padding: 1rem 2.8rem;
  background-color: var(--color-letter-hover);
  border-radius: 4rem;
  box-shadow: 0 0 1rem var(--color-letter-hover);
  font-size: 1.6rem;
  color: var(--color-background);
  letter-spacing: .1rem;
  font-weight: 600;
  transition: .5s ease;
}

.btn:hover {
  /* Dar un color al pasar el mouse por encima */
  box-shadow: none;
}

.home-img {
  /* Dar un tamaño al contenedor de la imagen */
  background-color: var(--color-letter-hover);
  border-radius: 100%;
  width: 26.5vw;
  display: flex;
  justify-content: center;
  align-items: center;
  border: var(--color-letter-hover) .4rem solid;
  animation: FloatImage 4s ease-in-out infinite;
}

.home-img img {
  /* Dar un tamaño a la imagen */
  border-radius: 100%;
  width: 26vw;
  box-shadow: 0 0 3rem var(--color-letter-hover);
}

.home-img img:hover {
  /* Dar un tamaño a la imagen al pasar el mouse por encima */
  box-shadow: 0 0 4rem var(--color-letter-hover);
}

/*----------------- About -------------------*/
.about {
  /* Dar un tamaño al contenedor */
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  background-color: var(--color-background);
  color: var(--color-letter);
}

.about-img {
  /* Dar un tamaño al contenedor de la imagen */
  background-color: var(--color-letter-hover);
  border-radius: 100%;
  width: 26.5vw;
  display: flex;
  justify-content: center;
  align-items: center;
  border: var(--color-letter-hover) .4rem solid;
  animation: FloatImage 4s ease-in-out infinite;
}

.about-img img {
  /* Dar un tamaño a la imagen */
  border-radius: 100%;
  width: 26vw;
  box-shadow: 0 0 3rem var(--color-letter-hover);
}

.about-img img:hover {
  /* Dar un tamaño a la imagen al pasar el mouse por encima */
  box-shadow: 0 0 4rem var(--color-letter-hover);
}

.about-content {
  /* Dar un tamaño al contenedor */
  margin-left: 1.5rem;
}

.heading {
  /* Dar un tamaño a los heading */
  text-align: center;
  font-size: 4.5rem;
}

.about-content h2 {
  /* Dar un tamaño a los h2 */
  text-align: left;
  line-height: 1.2;
}

.about-content h3 {
  /* Dar un tamaño a los h3 */
  text-align: left;
  font-size: 2.6rem;
}

.about-content p {
  /* Dar un tamaño a los párrafos */
  text-align: justify;
  font-size: 1.6rem;
  margin: 2rem 0 3rem 0;
}

.skills {
  /* Dar un tamaño al contenedor */
  display: flex;
  justify-content: left;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 2rem;
  margin-bottom: 2rem;
  gap: 1rem;
}

.skill {
  /* Dar un tamaño al contenedor */
  margin-bottom: .5rem;
  padding: 2rem;
  width: 8.5rem;
  background-color: var(--color-background);
  border-radius: 1rem;
  box-shadow: 0 0 1.5rem var(--color-letter-hover);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.skill:hover {
  /* Dar un tamaño al contenedor al pasar el mouse por encima */
  box-shadow: 0 0 2rem var(--color-letter-hover);
  transform: scale(1.1);
}

.skill h4 {
  /* Dar un tamaño a los h4 */
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--color-letter-hover);
}

.skill .bar i{
  /* Dar un tamaño a los iconos */
  font-size: 2.5rem;
  color: var(--color-background);
  background-color: var(--color-letter-hover);
  border-radius: 50%;
  padding: .5rem;
  margin-bottom: 1rem;
}

.skill span {
  /* Dar un tamaño a los span */
  font-size: 1.4rem;
  color: var(--color-letter);
}

/*----------------- Services -------------------*/
.services h2 {
  /* Dar un tamaño a los h2 */
  margin-bottom: 5rem;
}

.heading {
  /* Dar un tamaño a los heading */
  text-align: center;
  color: var(--color-letter);
  font-size: 4.5rem;
}

.services-container {
  /* Dar un tamaño al contenedor */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.service-box {
  /* Dar un tamaño al contenedor */
  flex: 1 1 30rem;
  background-color: var(--color-background);
  padding: 3rem 2rem 4rem;
  border-radius: 2rem;
  text-align: center;
  border: .2rem dotted var(--color-letter-hover);
  transition: .5s ease;
  height: 45rem;
  width: 10rem;
}

.service-box:hover {
  /* Dar un tamaño al contenedor al pasar el mouse por encima */
  box-shadow: 0 0 2rem var(--color-letter-hover);
  border: none;
  transform: scale(1.02);
}

.service-box i {
  /* Dar un tamaño a los iconos */
  font-size: 7rem;
  color: var(--color-letter-hover);
  margin-bottom: 1rem;
}

.service-box h3 {
  /* Dar un tamaño a los h3 */
  font-size: 2.6rem;
  color: var(--color-letter);
}

.service-box p {
  /* Dar un tamaño a los párrafos */
  font-size: 1.6rem;
  margin: 1rem 0 3rem;
  color: var(--color-letter);
}

/*----------------- Portfolio -------------------*/
.portfolio {
  /* Dar un tamaño al contenedor */
  background-color: var(--color-background);
  color: var(--color-letter);
}

.portfolio h2 {
  /* Dar un tamaño a los h2 */
  text-align: center;
  margin-bottom: 4rem;
}

.portfolio-container {
  /* Dar un tamaño al contenedor */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 2.5rem;
}

.portfolio-box {
  /* Dar un tamaño al contenedor */
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
  display: flex;
  height: 35rem;
}

.portfolio-box img {
  /* Dar un tamaño a las imágenes */
  width: 100%;
  transition: .5s ease;
}

.portfolio-box:hover img {
  /* Dar un tamaño al contenedor al pasar el mouse por encima */
  transform: scale(1.1);
}

.portfolio-layer{
  /* Dar un tamaño al contenedor */
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0,0,0,.8), var(--color-letter-hover));
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding: 0 4rem;
  transform: translateY(100%);
  transition: .5s ease;
}

.portfolio-box:hover .portfolio-layer {
  /* Dar un tamaño al contenedor al pasar el mouse por encima */
  transform: translateY(0);
}

.portfolio-layer h4 {
  /* Dar un tamaño a los h3 */
  font-size: 3rem;
  color: var(--color-background);
}

.portfolio-layer p {
  /* Dar un tamaño a los párrafos */
  font-size: 1.6rem;
  color: var(--color-background);
  margin: .3rem 0 1rem;
}

.portfolio-layer a {
  /* Dar un tamaño a los enlaces */
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 5rem;
  height: 5rem;
  background: var(--color-background);
  border-radius: 50%
}

.portfolio-layer a i {
  /* Dar un tamaño a los iconos */
  font-size: 2rem;
  color: var(--color-letter);
}

/*----------------- Contact -------------------*/
.contact h2 {
  /* Dar un tamaño a los h2 */
  margin-bottom: 3rem;
}

.contact form{
  /* Dar un tamaño al contenedor */
  max-width: 70rem;
  margin: 1rem auto;
  text-align: center;
  margin-bottom: 3rem;
}

.contact form .input-box {
  /* Dar un tamaño a los input */
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.contact form .input-box input, 
.contact form textarea {
  /* Dar un tamaño a los input */
  width: 100%;
  padding: 1.5rem;
  font-size: 1.6rem;
  color: var(--color-letter);
  border-radius: .8rem;
  margin: .7rem 0;
  box-shadow: var(--color-letter-hover) 0 0 .5rem;
}

.contact form .input-box input:hover{
  /* Dar un tamaño a los input al pasar el mouse por encima */
  box-shadow: var(--color-letter-hover) 0 0 .7rem;
  transform: scale(1.02);
}

.contact form textarea:hover {
  /* Dar un tamaño a los input al pasar el mouse por encima */
  box-shadow: var(--color-letter-hover) 0 0 .7rem;
  transform: scale(1.02);
}

.contact form .input-box input {
  /* Dar un tamaño a los input */
  width: 49%;
}

.contact form textarea {
  /* Dar un tamaño a los input */
  height: 15rem;
  resize: none;
}

.contact form .btn {
  /* Dar un tamaño a los botones */
  margin-top: 2rem;
}

.contact-container {
  /* Dar un tamaño al contenedor */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info {
  /* Dar un tamaño al contenedor */
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5rem;
}

.contact-box {
  /* Dar un tamaño al contenedor */
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  gap: 1rem;
}

.contact-box i {
  /* Dar un tamaño a los iconos */
  font-size: 2rem;
  color: var(--color-letter-hover);
}


.contact-text h4 {
  /* Dar un tamaño a los h4 */
  font-size: 1.2rem;
  color: var(--color-letter);
  text-align: center;
}

.contact-text p {
  /* Dar un tamaño a los párrafos */
  font-size: 1rem;
  color: var(--color-letter);
}

/*----------------- Responsive -------------------*/
.header.sticky {
  /* Dar un tamaño al contenedor */
  border-bottom: .2rem solid rgba(177, 136, 255,.3);
}

/*----------------- Breakpoints-------------------*/
@media (max-width: 1200px) {
  html {
    /* Dar un tamaño al contenedor */
    font-size: 55%;
  }
}

@media (max-width: 991px) {
  .header {
    /* Dar un tamaño al contenedor */
    padding: 2rem 3%;
  }

  section {
    /* Dar un tamaño al contenedor */
    padding: 10rem 3% 2rem;
  }

  .services {
    /* Dar un tamaño al contenedor */
    padding-bottom: 7rem;
  }

  .portfolio {
    /* Dar un tamaño al contenedor */
    padding-bottom: 5rem;
  }

  .contact {
    /* Dar un tamaño al contenedor */
    min-height: auto;
  }
}

@media (max-width: 768px) {
  #menu-icon {
    /* Dar un tamaño al contenedor */
    display: block;
  }

  .navbar {
    /* Dar un tamaño al contenedor */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 1rem 3%;
    background: var(--color-background);
    border-top: .1rem solid rgba(0,0,0,.2);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.2);
    display: none;
  }

  .navbar.active {
    /* Dar un tamaño al contenedor */
    display: block;
  }

  .navbar a {
    /* Dar un tamaño a los enlaces */
    display: block;
    font-size: 2rem;
    margin: 3rem 0;
  }

  .home {
    /* Dar un tamaño al contenedor */
    flex-direction: column;
    gap: 3rem;
  }

  .home-content h3 {
    /* Dar un tamaño a los h3 */
    font-size: 2.6rem;
  }

  .home-content h1 {
    /* Dar un tamaño a los h1 */
    font-size: 5rem;
  }

  .home-img {
    /* Dar un tamaño al contenedor de la imagen */
    background-color: var(--color-letter-hover);
    border-radius: 100%;
    width: 25.5vw;
    display: flex;
    justify-content: center;
    align-items: center;
    border: var(--color-letter-hover) .4rem solid;
  }
  
  .home-img img {
    /* Dar un tamaño a la imagen */
    border-radius: 100%;
    width: 25vw;
    box-shadow: 0 0 3rem var(--color-letter-hover);
  }

  .about {
    /* Dar un tamaño al contenedor */
    flex-direction: column-reverse;
    gap: 3rem;
  }

  .about-img {
    /* Dar un tamaño al contenedor de la imagen */
    width: 25.5vw;
  }

  .about-img img {
    /* Dar un tamaño a la imagen */
    width: 25vw;
  }

  .services h2 {
    /* Dar un tamaño a los h2 */
    margin-bottom: 3rem;
  }

  .portfolio h2{
    /* Dar un tamaño a los h2 */
    margin-bottom: 3rem;
  }

  .portfolio-container{
    /* Dar un tamaño al contenedor */
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 617px) {
  .portfolio-container{
    /* Dar un tamaño al contenedor */
    grid-template-columns: 1fr;
  }

  .home-img {
    /* Dar un tamaño al contenedor de la imagen */
    width: 30.5vw;
  }

  .home-img img {
    /* Dar un tamaño a la imagen */
    width: 30vw;
  }

  .about-img {
    /* Dar un tamaño al contenedor de la imagen */
    width: 30.5vw;
  }

  .about-img img {
    /* Dar un tamaño a la imagen */
    width: 30vw;
  }
}

@media (max-width: 450px) {
  html {
    /* Dar un tamaño al contenedor */
    font-size: 50%;
  }

  .contact form .input-box input{
    /* Dar un tamaño al contenedor */
    width: 100%;
  }

  .contact-info {
    /* Dar un tamaño al contenedor */
    gap: 1rem;
  }

  .home-img {
    /* Dar un tamaño al contenedor de la imagen */
    width: 30.5vw;
  }

  .home-img img {
    /* Dar un tamaño a la imagen */
    width: 30vw;
  }

  .about-img {
    /* Dar un tamaño al contenedor de la imagen */
    width: 30.5vw;
  }

  .about-img img {
    /* Dar un tamaño a la imagen */
    width: 30vw;
  }
}

@media (max-width: 365px) {
  .home-img {
    /* Dar un tamaño al contenedor de la imagen */
    width: 45.5vw;
  }

  .home-img img {
    /* Dar un tamaño a la imagen */
    width: 45vw;
  }

  .about-img {
    /* Dar un tamaño al contenedor de la imagen */
    width: 45.5vw;
  }

  .about-img img {
    /* Dar un tamaño a la imagen */
    width: 45vw;
  }
}

@media (max-width: 320px) {
  .home-img {
    /* Dar un tamaño al contenedor de la imagen */
    display: none;
  }

  .about-img {
    /* Dar un tamaño al contenedor de la imagen */
    display: none;
  }
}

/*----------------- Animations -------------------*/
@keyframes FloatImage {
  0% {
    transform: translateY(0) scale(1.05);
  }
  50% {
    transform: translateY(-2.4rem) scale(1);
  }
  100% {
    transform: translateY(0) scale(1.05);
  }
}