/*===== GOOGLE FONTS =====*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");
/*===== VARIABLES CSS =====*/
:root {
  --header-height: 3rem;
  --font-semi: 600;
}

/*===== Colors =====*/
:root {
  --first-color: blue;
  --second-color: #fff;
}

/*===== Fuente y tipografia =====*/
:root {
  --body-font: "Poppins", sans-serif;
  --big-font-size: 2rem;
  --h2-font-size: 1.25rem;
  --normal-font-size: 0.938rem;
}

@media screen and (min-width: 768px) {
  :root {
    --big-font-size: 3.5rem;
    --h2-font-size: 2rem;
    --normal-font-size: 1rem;
  }
}

/*===== Margenes =====*/
:root {
  --mb-1: 0.5rem;
  --mb-2: 1rem;
  --mb-3: 1.5rem;
  --mb-4: 2rem;
  --mb-5: 2.5rem;
  --mb-6: 3rem;
}

/*===== z index =====*/
:root {
  --z-back: -10;
  --z-normal: 1;
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*===== BASE =====*/
*,
::before,
::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: var(--header-height) 0 0 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  color: var(--second-color);
  background-color: #181818;
}
h1,
h2,
p {
  margin: 0;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
a {
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.section-title {
  position: relative;
  font-size: var(--h2-font-size);
  margin-top: var(--mb-2);
  margin-bottom: var(--mb-4);
  text-align: center;
}

.section-title::after {
  position: absolute;
  content: "";
  width: 64px;
  height: 0.18rem;
  left: 0;
  right: 0;
  margin: auto;
  top: 2rem;
  border-bottom: 3px solid;
  border-image: linear-gradient(
    45deg,
    #fff400,
    #ffa601,
    #f3503c,
    #d53567,
    #a7489b
  );
  border-image-slice: 1;
}
.section {
  padding-top: 3rem;
  padding-bottom: 2rem;
}

/*===== LAYOUT =====*/
.bd-grid {
  max-width: 1024px;
  display: grid;
  grid-template-columns: 100%;
  grid-column-gap: 2rem;
  width: calc(100% - 2rem);
  margin-left: var(--mb-2);
  margin-right: var(--mb-2);
}
.l-header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: #000;
  box-shadow: 8px 4px 8px rgba(146, 161, 176, 0.25);
}

.text-highlight {
  background: linear-gradient(
    45deg,
    #fff400,
    #ffa601,
    #f3503c,
    #d53567,
    #a7489b
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}
.text-highlight-2 {
  background: linear-gradient(
    45deg,
    #fff400,
    #ffa601,
    #f3503c,
    #d53567,
    #a7489b
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-highlight-2:hover {
  background: linear-gradient(
    -45deg,
    #fff400,
    #ffa601,
    #f3503c,
    #d53567,
    #a7489b
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/*===== NAV =====*/
.my_name {
  font-size: 1.2rem;
}

.my_name:hover {
  letter-spacing: 0.1rem;
  transition: letter-spacing 1s ease-in-out;
}
.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: var(--font-semi);
}
@media screen and (max-width: 768px) {
  .nav__menu {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 80%;
    height: 100%;
    padding: 2rem;
    background-color: #000;
    transition: 0.5s;
  }
}
.nav__item {
  margin-bottom: var(--mb-4);
}
.nav__link {
  position: relative;
  color: #fff;
}

.nav__link:hover {
  position: relative;
  color: #fff;
}
.nav__link:hover::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 0.18rem;
  left: 0;
  top: 2rem;
  border-bottom: 2px solid;
  height: 8%;
  border-image: linear-gradient(
    45deg,
    #fff400,
    #ffa601,
    #f3503c,
    #d53567,
    #a7489b
  );
  border-image-slice: 1;
  transition: transform 1ms ease-in-out, -webkit-transform 1ms ease-in-out;
}
.nav__logo {
  color: var(--second-color);
}
.nav__toggle {
  color: var(--second-color);
  font-size: 1.5rem;
  cursor: pointer;
}

/*Active menu*/
.active::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 0.18rem;
  left: 0;
  top: 2rem;
  /* background-color: var(--first-color); */
  border-bottom: 2px solid;
  height: 8%;
  border-image: linear-gradient(
    45deg,
    #fff400,
    #ffa601,
    #f3503c,
    #d53567,
    #a7489b
  );
  border-image-slice: 1;
}

/*=== Show menu ===*/
.show {
  right: 0;
}

/*===== HOME =====*/
.home {
  height: calc(100vh - 3rem);
  row-gap: 1rem;
}
.home__data {
  align-self: center;
}
.home__title {
  font-size: 3rem;
  margin-bottom: var(--mb-5);
}
/* .home__title-color{
  color: var(--first-color);
} */

.home__title_more_color {
  color: #fff;
}

.home__title-color {
  letter-spacing: 0.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background-image: linear-gradient(
    45deg,
    #fff400,
    #ffa601,
    #f3503c,
    #d53567,
    #a7489b
  );
  background-size: 100%;
  background-repeat: repeat;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: background-image 5s ease-in-out forwards;
}

.home__title-color:hover {
  background-image: linear-gradient(
    -45deg,
    #fff400,
    #ffa601,
    #f3503c,
    #d53567,
    #a7489b
  );
  animation: background-image 5s ease-in-out forwards;
}

.home__social {
  display: flex-end;
  flex-direction: row;
}

.home__social-icon {
  margin-right: 15px;
}

.home__social-icon:nth-child(4n + 1) {
  padding: 8px 11px;
  font-size: 1.3rem;
  width: max-content;
  margin-bottom: var(--mb-2);
  color: #fff;
  background: linear-gradient(90deg, #fff400, #ffa601);
  border-radius: 100%;
}

.home__social-icon:nth-child(4n + 2) {
  padding: 8px 11px;
  font-size: 1.3rem;
  width: max-content;
  margin-bottom: var(--mb-2);
  /* color: var(--second-color); */
  color: #fff;
  background: linear-gradient(90deg, #ff9f05, #f3503c);
  border-radius: 100%;
}

.home__social-icon:nth-child(4n + 3) {
  padding: 8px 11px;
  font-size: 1.3rem;
  width: max-content;
  margin-bottom: var(--mb-2);
  /* color: var(--second-color); */
  color: #fff;
  background: linear-gradient(90deg, #ee4248, #d53567);
  border-radius: 100%;
}

.home__social-icon:nth-child(4n + 4) {
  padding: 8px 13px;
  font-size: 1.3rem;
  width: max-content;
  margin-bottom: var(--mb-2);
  color: #fff;
  background: linear-gradient(90deg, #d23369, #a01495);
  border-radius: 100%;
}

.home__social-icon:nth-child(4n + 5) {
  padding: 8px 13px;
  font-size: 1.3rem;
  width: max-content;
  margin-bottom: var(--mb-2);
  color: #fff;
  background: linear-gradient(90deg, #a01495, #405de6);
  border-radius: 100%;
}

.home__social-icon:hover {
  background: linear-gradient(
    90deg,
    #fff400,
    #ffa601,
    #ff9f05,
    #f3503c,
    #ee4248,
    #d53567,
    #a01495
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: 5s ease-in-out;
}

.home__img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 295px;
}

/*BUTTONS*/
.button {
  display: inline-block;
  box-shadow: 0 0 6px 0 rgba(157, 96, 212, 0.5);
  border: solid 3px transparent;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0),
      rgba(255, 255, 255, 0)
    ),
    linear-gradient(90deg, #fff400, #ffa601, #f3503c, #d53567);
  background-origin: border-box;
  background-clip: content-box, border-box;
  box-shadow: 2px 1000px 1px #181818 inset;
  color: #fff;
  padding: 0.5rem 1.5rem;
  font-weight: var(--font-semi);
  border-radius: 0.5rem;
}

.button:hover {
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.15);
  color: #fff;
  border: solid 3px transparent;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0),
      rgba(255, 255, 255, 0)
    ),
    linear-gradient(90deg, #d53567, #f3503c, #ffa601, #fff400);
  transition: background-image 2s ease-in-out;
  box-shadow: 2px 1000px 1px #181818 inset;
}

/* ===== ABOUT =====*/
.about__container {
  row-gap: 2rem;
  text-align: center;
}
.about__subtitle {
  margin-bottom: var(--mb-2);
}
.about__img {
  justify-self: center;
}
.about__img img {
  width: 200px;
  border-radius: 0.5rem;
  box-shadow: 0 4px 25px rgba(225, 225, 255, 0.3);
  border-radius: 5px;
  border: solid 4px;
  border-image: linear-gradient(
    to right,
    #fff400,
    #ffa601,
    #ff9f05,
    #f3503c,
    #ee4248,
    #d53567,
    #a01495
  );
  border-image-slice: 1;
}

/* ===== SKILLS =====*/
.skills__container {
  row-gap: 2rem;
  text-align: center;
}
.skills__subtitle {
  margin-bottom: var(--mb-2);
}
.skills__text {
  margin-bottom: var(--mb-4);
}
.skills__data {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  font-weight: var(--font-semi);
  padding: 0.5rem 1rem;
  margin-bottom: var(--mb-4);
  border-radius: 0.5rem;
  box-shadow: 0 4px 25px rgba(14, 36, 49, 0.15);
}
.skills__icon {
  font-size: 2rem;
  margin-right: var(--mb-2);
  color: #d53567;
  /* background-image: linear-gradient(90deg, #fff400, #d53567 50%);
  -webkit-background-clip: text;
	-webkit-text-fill-color: transparent; */
}

.skills__data {
  box-shadow: 0 4px 25px rgba(225, 225, 255, 0.3);
}

.skills__names {
  display: flex;
  align-items: center;
}
.skills__bar {
  position: absolute;
  left: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    #fff400,
    #ffa601,
    #ff9f05,
    #f3503c,
    #ee4248,
    #d53567
  );
  height: 0.25rem;
  border-radius: 0.5rem;
  z-index: var(--z-back);
}

.skills__img {
  border-radius: 0.5rem;
}

/* ===== WORK =====*/
.work__container {
  row-gap: 2rem;
}
.work__img {
  box-shadow: 0 4px 25px rgba(14, 36, 49, 0.15);
  border-radius: 0.5rem;
  overflow: hidden;
}
.work__img img {
  transition: 1s;
  cursor: pointer;
}
.work__img img:hover {
  transform: scale(1.1);
}

/* ===== CERTIFICATIONS =====*/
#certification {
  margin: auto;
  text-align: center;
  justify-content: center;
}

.certificates-box {
  width: 350px;
  padding: 0px 25px;
  margin: 20px;
  display: inline-block;
  vertical-align: middle;
  margin-bottom: 50px;
  -moz-transition: all 0.2s ease-in-out;
  -webkit-transition: all 0.2s ease-in-out;
  -o-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}

.certificates-box:hover {
  transform: scale(0.97);
}

.certificates-box img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  -webkit-box-shadow: 0 0 38px 0 rgba(0, 0, 0, 0.3);
  -moz-box-shadow: 0 0 38px 0 rgba(0, 0, 0, 0.3);
  box-shadow: -4px 4px 25px rgba(225, 225, 255, 0.3);
}

/* ===== CONTACT =====*/
.contact__input {
  width: 100%;
  font-size: var(--normal-font-size);
  font-weight: var(--font-semi);
  padding: 1rem;
  border-image-source: linear-gradient(
    90deg,
    #fff400,
    #ffa601,
    #ff9f05,
    #f3503c,
    #ee4248,
    #d53567
  );
  border: 3rem solid
    linear-gradient(90deg, #fff400, #ffa601, #ff9f05, #f3503c, #ee4248, #d53567);
  /* outline: none; */
  border-width: 3pt;
  box-shadow: -4px 4px 25px rgba(225, 225, 255, 0.3);
  border-image-slice: 1;
  margin-bottom: var(--mb-4);
}
.contact__button {
  display: block;
  font-size: var(--normal-font-size);
  cursor: pointer;
  margin-left: auto;
}

/* ===== FOOTER =====*/
.footer {
  background-color: #000;
  color: grey;
  box-shadow: 8px -4px 8px rgba(146, 161, 176, 0.25);
  text-align: center;
  font-weight: var(--font-semi);
  padding: 2rem 0;
}
.footer__title {
  font-size: 2rem;
}

.footer-name:hover {
  letter-spacing: 0.1rem;
  transition: letter-spacing 1s ease-out;
}

.footer__social {
  margin: 20px auto 30px;
}

.footer__icon:nth-child(4n + 1) {
  font-size: 1.5rem;
  padding: 8px 13px;
  font-size: 1.3rem;
  width: max-content;
  color: #fff;
  background: linear-gradient(90deg, #fff400, #ffa601);
  border-radius: 50%;
  margin: 0 var(--mb-2);
}

.footer__icon:nth-child(4n + 2) {
  font-size: 1.5rem;
  padding: 8px 11px;
  font-size: 1.3rem;
  width: max-content;
  color: #fff;
  background: linear-gradient(90deg, #ff9f05, #f3503c);
  border-radius: 100%;
  margin: 0 var(--mb-2);
}

.footer__icon:nth-child(4n + 3) {
  font-size: 1.5rem;
  padding: 8px 11px;
  font-size: 1.3rem;
  width: max-content;
  color: #fff;
  background: linear-gradient(90deg, #ee4248, #d53567);
  border-radius: 100%;
  margin: 0 var(--mb-2);
}

.footer__icon:nth-child(4n + 4) {
  font-size: 1.5rem;
  padding: 8px 11px;
  font-size: 1.3rem;
  width: max-content;
  margin-bottom: var(--mb-2);
  color: #fff;
  background: linear-gradient(90deg, #d23369, #a01495);
  border-radius: 100%;
  margin: 0 var(--mb-2);
}

.footer__icon:nth-child(4n + 5) {
  font-size: 1.5rem;
  padding: 8px 11px;
  font-size: 1.3rem;
  width: max-content;
  margin-bottom: var(--mb-2);
  color: #fff;
  background: linear-gradient(90deg, #a01495, #405de6);
  border-radius: 100%;
  margin: 0 var(--mb-2);
}

.footer__icon:hover {
  background: linear-gradient(
    90deg,
    #fff400,
    #ffa601,
    #ff9f05,
    #f3503c,
    #ee4248,
    #d53567
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: 5s ease-in-out;
}

.skills-text {
  width: 70%;
  text-align: left;
  margin: 30px auto 50px;
  color: #dddddd;
}

/* ===== MEDIA QUERIES=====*/
@media screen and (max-width: 768px) {
  .home__title {
    font-size: 2rem;
  }

  .home__img {
    /* position: absolute;
    left: 25%;
    top: 70%;
    margin: auto;
    width: 60%;
    height: 60%; */
    display: none;
  }
  .timeline {
    position: relative;
    width: 95%;
    margin: 60px auto;
  }
}

@media screen and (min-width: 768px) {
  body {
    margin: 0;
  }

  .section {
    padding-top: 4rem;
    padding-bottom: 3rem;
  }
  .section-title {
    margin-bottom: var(--mb-6);
  }
  .section-title::after {
    width: 80px;
    top: 3rem;
  }

  .nav {
    height: calc(var(--header-height) + 1rem);
  }
  .nav__list {
    display: flex;
    padding-top: 0;
  }
  .nav__item {
    margin-left: var(--mb-6);
    margin-bottom: 0;
  }
  .nav__toggle {
    display: none;
  }
  .nav__link {
    color: var(--second-color);
  }

  .home {
    height: 100vh;
  }
  .home__data {
    align-self: flex-end;
  }
  .home__social {
    padding-top: 0;
    padding-bottom: 2.5rem;
    flex-direction: row;
    align-self: flex-end;
  }
  .home__social-icon {
    margin-bottom: 0;
    margin-right: var(--mb-4);
  }

  .home__img {
    width: 457px;
    bottom: 15%;
  }

  .about__container,
  .skills__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    text-align: initial;
  }
  .about__img img {
    width: 250px;
    height: 400px;
    box-shadow: 0 4px 25px rgba(225, 225, 255, 0.3);
    border-radius: 5px;
    border: solid 4px;
    border-image: linear-gradient(
      to right,
      #fff400,
      #ffa601,
      #ff9f05,
      #f3503c,
      #ee4248,
      #d53567
    );
    border-image-slice: 1;
  }

  .work__container {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    column-gap: 2rem;
  }
  .contact__form {
    width: 360px;
  }
  .contact__container {
    justify-items: center;
  }
}

@media screen and (min-width: 1024px) {
  .bd-grid {
    margin-left: auto;
    margin-right: auto;
  }
  .home__img {
    right: 10%;
  }
}
