/*===== GOOGLE FONTS =====*/

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");

@import url("https://fonts.googleapis.com/css2?family=Roboto&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Raleway:ital@0;1&display=swap");

@import url("https://fonts.googleapis.com/css2?family=Quattrocento&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@700&display=swap");
/*===== VARIABLES CSS =====*/

:root {
  --header-height: 3rem;
  --font-semi: 600;
}

/*===== Colores =====*/

:root {
  --first-color: #4070F4;
  --second-color: #0E2431;
  --third-color: #1b1b1b;
}

/*===== Fuente y tipografia =====*/

:root {
  --body-font: 'Poppins', sans-serif;
  --body-font-Quatrocento: 'Quattrocento', serif;
  --body-font-Oswald: 'Oswald', sans-serif;
  --body-font-Roboto: 'Roboto', sans-serif;
  --body-font-Raleway: 'Raleway', 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: 3rem 0 0 0;
  font-family: var(--body-font-Oswald);
  font-size: var(--normal-font-size);
  color: var(--second-color);
  background-color: #fff;
}

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;
}

/*===== CLASS CSS =====*/

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

/* --- underline --- */

.section-title::after {
  position: absolute;
  content: "";
  width: 64px;
  height: 0.18rem;
  left: 0;
  right: 0;
  margin: auto;
  top: 2rem;
  background-color: var(--second-color);
}

.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%;
  padding: 10px 0;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: #ffff;
  /* box-shadow: 0 1px 4px rgba(146, 161, 176, .15); */
  transition: all 1s ease;
}

.l-header.sticky{
  padding: 0;
  box-shadow: 0 5px 4px rgba(146, 161, 176, .15);
  
}
.nav__logo img.sticky {
  width: 2.5rem;
}
.nav.sticky{
  height: 3.5rem;
}
.nav__link.sticky{
  color: #fff;
}

/*===== NAV =====*/
.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;
    background-color: var(--second-color);
    top: var(--header-height);
    right: -100%;
    width: 100%;
    padding: 2rem;
    transition: .5s;
  }
  .nav__link {
    justify-self: center;
    
  }
  .home {
    padding-top: 10rem;
  }
  .home__intro {
    font-size: 2rem;
  }
  
  .home__name {
    font-size: 4rem;
  }
  
  .home__title {
    font-size: 3rem;
  }
  .home__social-icon {
    font-size: 1.5rem;
  }
}

@media screen and (max-width: 430px) {
  .home__intro {
    font-size: 1rem;
  }
  
  .home__name {
    font-size: 3rem;
  }
  
  .home__title {
    font-size: 2rem;
  }
}

.nav__item {
  margin-bottom: var(--mb-4);
}

.nav__link {
  position: relative;
  color: #fff
}

.nav__link:hover {
  position: relative;
}

.nav__link:hover::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 0.18rem;
  left: 0;
  top: 2rem;
  background-color: #43aacf;
}

.nav__logo img {
  background: var(--second-color);
  width: 4rem;
  transition: all 1s ease;
}

.nav__toggle {
  color: var(--second-color);
  font-size: 1.5rem;
  cursor: pointer;
}

.home__data {
  justify-self: center;
}

/*Active menu*/

.active::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 0.18rem;
  left: 0;
  top: 2rem;
  background-color: var(--first-color);
}


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

/*===== HOME =====*/

.home {
  height: calc(100vh - 3rem);
}

.home__data {
  padding: 1rem;
}

.home__intro {
  color:  #303a3f;
  font-family: var(--body-font-Raleway);
}

.home__name {
  font-family: var(--body-font-Oswald);
  -webkit-text-fill-color: #EEC213;
  -webkit-text-stroke-width: 0.5px;
  color: #0E2431;
}

.home__title {
  color: #2a353b;
}

.home__social {
  display: flex;
  flex-direction: column;
}

.home__social-icon {
  width: max-content;
  color: var(--second-color);
}

.home__social-icon:hover {
  color: #43aacf;
}

/* BUTTONS */

.button {
  display: inline-block;
  background-color: var(--first-color);
  color: #fff;
  padding: .75rem 2.5rem;
  font-weight: var(--font-semi);
  border-radius: .5rem;
}

.button:hover {
  box-shadow: 0 10px 36px rgba(0, 0, 0, .15);
}

/*===== About =====*/

.about__container {
  row-gap: 2rem;
  text-align: center;
}

.about__subtitle {
  margin-bottom: var(--mb-2);
}

.about__text {
  text-align: justify;
  font-family: var(--body-font);
 }

.about__text-color {
  color: var(--first-color);
}

.about__img {
  justify-self: center;
  box-shadow: 0 4px 25px rgba(14, 36, 49, .15);
  border-radius: 50%;
}

.about__img img {
  width: 200px;
  border-radius: 50%;
}

/*===== Skilss =====*/

.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: .5rem 1rem;
  margin-bottom: var(--mb-4);
  border-radius: .5rem;
  box-shadow: 0 4px 25px rgba(14, 36, 49, .15);
}

.skills__icon {
  font-size: 2rem;
  margin-right: var(--mb-2);
  color: var(--first-color);
}

.skills__names {
  display: flex;
  align-items: center;
}

.skills__bar {
  position: absolute;
  left: 0;
  bottom: 0;
  background-color: var(--first-color);
  height: .25rem;
  border-radius: .5rem;
  z-index: var(--z-back);
}

.skills__html {
  width: 100%;
}

.skills__css {
  width: 100%;
}

.skills__js {
  width: 100%;
}

.skills__ux {
  width: 100%;
}

.skills__img {
  border-radius: .5rem;
}

/*===== Work =====*/

.work__container {
  row-gap: 2rem;
}
.work__content {
  display: flex;
}
.work__img {
  /* box-shadow: 0 4px 25px rgba(14, 36, 49, .15); */
  width: 80%;
  border-radius: .5rem;
  overflow: hidden;
  max-width: 400px;
}

.work__img img {
  width: 100%;
  transition: 1s;
  cursor: pointer;
}

.work__img img:hover {
  transform: scale(1.2);
}
.work__desc {
  margin: 1rem;
  text-align: left;
}
.work__text {
  margin: 0.5rem;
  max-width: 800px;
  font-family: var(--body-font);
}
.work__title {
  margin: 0.5rem;
  max-width: 800px;
  text-align: center;
}

.work__tech-color {
  color: var(--first-color);
}
.btn__src, .btn__demo {
  margin: 0.5rem;
  display: inline-block;
  border: 2px solid #0E2431;
  color: #2a353b;
  padding: .5rem 1.5rem;
  font-weight: 700;
  border-radius: .75rem;
}
.btn__src:hover, .btn__demo:hover {
  background-color: #4070F4;
  color: #fff;
  border: 2px solid #4070F4;
  
}

.btn__align {
  margin: 0;
  justify-content: space-evenly;
  text-align: right;
}

.btm__border {
  border-bottom: 1px solid #1b1b1b;
}

@media screen and (max-width: 768px) {
  .work__content {
    flex-direction: column;
  }
  .work__img {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }
  .btn__src, .btn__demo {
    margin: 0.15rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 0.25rem;
  }
  .nav__logo img {
    width: 2rem;
  }
  .work__text {
    max-width: 600px;
  }
  .work__title {
    max-width: 600px;
  }
  .button {
    padding: .7rem 1.75rem;
    border-radius: .4rem;
  }
  .contact__button{
    width: 50%;
    margin:  0 auto;
  }
  
}

/* ===== CONTACT =====*/

.contact__button{
  width: 30%;
  margin:  0 auto;
  text-align: center;
  display: block;
  border: 2px solid #0E2431;
  font-size: var(--normal-font-size);
  cursor: pointer;
  color: #4070F4;
  box-shadow: 0 1px 4px rgba(146, 161, 176, .15);
}
.contact__button:hover{
  color: #fff;
  background-color: #4070F4;
  border: 2px solid #4070F4;
}
.contact__title {
  text-align: center;
  font-size: 2.5rem;
}
.contact__subtitle {
  text-align: center;
  font-size: 0.98rem;
  padding-bottom: 1rem;
  
}



/* ===== FOOTER =====*/

.footer {
  background-color: var(--second-color);
  color: #fff;
  text-align: center;
  font-weight: var(--font-semi);
  padding: 1rem 0;
}

.footer__copy {
  font-size: 1rem;
  margin-bottom: var(--mb-4);
  word-spacing: 0.2rem;
  letter-spacing: 1px;
}

.footer__social {
  margin-bottom: var(--mb-4);
}

.footer__icon {
  font-size: 1.5rem;
  color: #fff;
  margin: 0 var(--mb-2)
}

/*===== Media Queries =====*/

@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;
    justify-self: center;
    padding-bottom: 12rem;
  }
  .home__intro {
    font-size: 2rem;
  }
  .home__name {
    font-size: 5rem;
  }
  .home__title {
    font-size: 4rem;
  }
  .home__social {
    padding-top: 1rem;
    flex-direction: row;
    align-self: flex-end;
  }
  .home__social-icon {
    margin-bottom: 0;
    margin-right: var(--mb-4);
    font-size: 1.5rem;
  }
  .about__container, .skills__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    text-align: initial;
  }

  .about__img img {
    width: 300px;
  }
  .work__container {
    grid-template-rows: repeat(1, 1fr);
    row-gap: 2rem;
  }
  
}

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