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


/*===== VARIABLES CSS =====*/
:root {
  --header-height: 3rem;
  --font-semi: 600;
  /*===== Colores =====*/
  /*Purple 260 - Red 355 - Blue 224 - Pink 340*/
  /* HSL color mode */
  --hue-color: 245;
  --first-color: hsl(var(--hue-color), 47%, 60%);
  --second-color: hsl(var(--hue-color), 56%, 12%);
  /*===== Fuente y tipografia =====*/
  --body-font: 'Poppins', sans-serif;
  --big-font-size: 2rem;
  --h2-font-size: 1.25rem;
  --normal-font-size: .938rem;
  --smaller-font-size: .75rem;
  /*===== Margenes =====*/
  --mb-2: 1rem;
  --mb-4: 2rem;
  --mb-5: 2.5rem;
  --mb-6: 3rem;
  /*===== z index =====*/
  --z-back: -10;
  --z-fixed: 100;
}

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

/*===== 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);
}

h1, h2, p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  /* max-width: 80%; */
  max-width: 100%;
  height: auto;
  object-fit: cover;    
  display: block;
}

header{
  opacity: 90%;
}

/*===== CLASS CSS ===== */
.l-header #nav-menu .logo_sign{
  /* font-family: 'Gajraj One', cursive; */
  /* font-family: 'Tangerine', cursive; */
  font-family: cursive;
  color: #a7b191 !important;
  font-size: 36px;
}
.section-title {
  position: relative;
  font-size: var(--h2-font-size);
  color: #a7b191;
  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;
  background-color: #a7b191;
}

.section {
  padding-top: 3rem;
  padding-bottom: 2rem;
}

/*===== LAYOUT =====*/
.bd-grid {
  max-width: 1024px;
  display: grid;
  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: #fff;
  box-shadow: 0 1px 4px rgba(146, 161, 176, 0.15);
}

/*===== 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: 767px) {
  .nav__menu {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 80%;
    height: 100%;
    padding: 2rem;
    background-color: var(--second-color);
    transition: .5s;
  }
}

.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: #a7b191;
}
.navbar .logo a {
  color: #fff;
  font-size: 35px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
}
.navbar .logo a span {
  color: #a7b191;
  transition: all 0.3s ease;
}
.navbar.sticky .logo a span {
  color: #000;
}
.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: #a7b191;
}

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

/*===== HOME =====*/
.home {
  position: relative;
  row-gap: 5rem;
  padding: 4rem 0 5rem;
}

.home__data {
  align-self: center;
}

.home__title {
  font-size: var(--big-font-size);
  margin-bottom: var(--mb-5);
}

.home__title-color {
  color: #a7b191;
}

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

.home__social-icon {
  width: max-content;
  margin-bottom: var(--mb-2);
  font-size: 1.5rem;
  color: var(--second-color);
}

.home__social-icon:hover {
  color: #a7b191;
}

.home-img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 260px;
  border-radius: 50%; 
  border: 3px solid #a7b191;
}
.home-img>img{
  border-radius: 50%; 
}

.home__blob {
  fill: #a7b191;
}

.home__blob-img {
  width: 360px;
}

/*BUTTONS*/
.button {
  display: inline-block;
  background-color:#a7b191;
  color: #fff;
  padding: .75rem 2.5rem;
  font-weight: var(--font-semi);
  border-radius: .5rem;
  transition: .3s;
}

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

/* ===== 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: .5rem;
}

/* ===== SKILLS =====*/

#mskills {
  width: 100%;
  background-color: #fafafa;
  margin: auto;
  /* border: 1px solid transparent; */
}
#mskills > h1 {
  text-align: center;
  margin-top: 80px;
}
.mainskills {
  width: 40%;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5%;
  margin: auto;
}
.mainskills > div {
  box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px,
    rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
  display: grid;
  align-items: center;
  padding: 15px 15px;
  border-radius: 5px;
  margin-top: 50px;
  background-color: #f5fffa;
}
.mainskills > div:hover {
  background-color: white;
}
.mainskills > div > img {
  width: 50%;
  margin: auto;
}
.mainskills > div > h3 {
  text-align: center;
  margin-top: 7px;
}
/* tech stacks */

/* ===== 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;
  height: 50px;
  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 {
  width: 2rem;
  font-size: 2rem;
  margin-right: var(--mb-2);
  color: #a7b191;
}
img.man-icons {
  font-size: 2rem;
  margin-right: var(--mb-2);
  color: #a7b191;
}
.skills-card {
  display: flex;
  align-items: center;
}
.skills-card:hover{
  transform: scale(110%);
}
.skills-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  background-color:#a7b191;
  height: 0.25rem;
  border-radius: 0.5rem;
  z-index: var(--z-back);
}
.skills-html {
  width: 75%;
}
.skills-css {
  width: 70%;
}
.skills-js {
  width: 85%;
}
.skills-react,
.skills-mongo {
  width: 80%;
}
.skills-redux {
  width: 90%;
}
.skills-mui,
.skills-sql {
  width: 65%;
}
.skills-ts {
  width: 70%;
}
.skills-express,
.skills-node {
  width: 85%;
}
.skills-img {
  border-radius: 0.5rem;
}

/* ===== WORK =====*/

.project-container {
  gap: 2rem;
  max-width: 1024px;
  display: grid;
  flex-wrap: wrap;
  grid-template-columns: repeat(2,1fr);
  /* grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); */
  /* column-gap: 2rem; */
  width: calc(100% - 2rem);
  margin: auto;
}
.project-img {
  box-shadow: 0 4px 25px rgba(14, 36, 49, 0.15);
  /* border-radius: 0.5rem; */
  overflow: hidden;
  padding-bottom: 10px ;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 30px ;

  border: 1px solid #082729;
  padding: 5px;
}
.project-img img {
  width:100% !important ;
  transition: 1s;
  cursor: pointer;
  object-fit: cover;  
  margin-bottom: 1rem;
}
/* .project-img img:hover {
  overflow: hidden;
  transform: scale(1.1);
} */
.project-container p {
  margin: auto 1rem 1rem;
}
.project-title {
  margin-bottom: var(--mb-2);
  margin-top: var(--mb-3);
  font-size: var(--h2-font-size);
}
.project-subtitle {
  margin: auto 2rem 1rem;
  margin-bottom: var(--mb-4);
}
.small-btn {
  padding: 0.4rem 1.3rem;
  font-weight: 400;
  margin: 1rem;
}
.project-btns {
  position: relative;
  bottom: 0%;
}
.work__container {
  row-gap: 2rem;
}

.work__img {
  box-shadow: 0px 4px 25px rgba(14, 36, 49, 0.15);
  /* border-radius: .5rem; */
  overflow: hidden;
}

.work__img img {
  transition: 1s;
}

/* ===== FOOTER =====*/
.footer {
  background-color: #a7b191;
  color: #fff;
  text-align: center;
  font-weight: var(--font-semi);
  padding: 3.5rem 0;
}
.footer-title {
  font-size: 2rem;
  margin-bottom: var(--mb-4);
}
.footer-social {
  margin-bottom: var(--mb-4);
}
.footer-icon {
  font-size: 1rem;
  color: #fff;
  margin: 0 var(--mb-2);
}

   /* Typing text */

.text-out{
  display: flex;
  align-items: center;
}
.text{
color: white;
  /* border-right: 5px solid red; */
  font-size: 55px;
  font-family: inherit;
  color:#000;  
}
.typed-cursor{
  color:black;
}

/* ===== MEDIA QUERIES=====*/
@media screen and (max-width: 425px) {
  .home {
    row-gap: 2rem;
  }
  .home-img {
    width: 65%;
    bottom: auto;
    margin: auto;
    right:50px
  }
  #about{
    margin-top:180px; 
  }
  .mainskills {
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .project-container {
    gap: 2rem;
    max-width: 1024px;
    display: grid;
    flex-wrap: wrap;
    grid-template-columns: repeat(1,1fr);
    /* grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); */
    /* column-gap: 2rem; */
    width: calc(100% - 2rem);
    margin: auto;
  }
}
@media screen and (max-width: 368px) {
  #about{
    margin-top:120px; 
  }
}

@media all and (min-width: 321px) and (max-width: 575px) {
  .mainskills {
    width: 80%;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  .project-container {
    gap: 2rem;
    max-width: 1024px;
    display: grid;
    flex-wrap: wrap;
    grid-template-columns: repeat(1,1fr);
    /* grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); */
    /* column-gap: 2rem; */
    width: calc(100% - 2rem);
    margin: auto;
  }
}

@media screen and (min-width: 576px) {
  .home {
    padding: 4rem 0 2rem;
  }
  .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: 300px;
    bottom: 25%;
  }
  .about__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    text-align: initial;
  }
  .work__container {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
    padding-top: 2rem;
  }
  .contact__form {
    width: 360px;
    padding-top: 2rem;
  }
  .contact__container {
    justify-items: center;
  }
  .mainskills {
    width: 70%;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }
  .project-container {
    gap: 2rem;
    max-width: 1024px;
    display: grid;
    flex-wrap: wrap;
    grid-template-columns: repeat(1,1fr);
    /* grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); */
    /* column-gap: 2rem; */
    width: calc(100% - 2rem);
    margin: 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) + 1.5rem);
  }
  .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 {
    padding: 8rem 0 2rem;
  }
  .home-img {
    width: 300px;
    bottom: 20%;
  }
  .about__container {
    padding-top: 2rem;
  }
  .about__img img {
    width: 300px;
  }
  .skills-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    text-align: initial;
  }
  
  .work__container {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 2rem;
  }
  .mainskills {
    width: 65%;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
  .mainskills > div > img {
    width: 40%;
    margin: auto;
  }
  .project-container {
    gap: 2rem;
    max-width: 1024px;
    display: grid;
    flex-wrap: wrap;
    grid-template-columns: repeat(1,1fr);
    /* grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); */
    /* column-gap: 2rem; */
    width: calc(100% - 2rem);
    margin: auto;
  }
}

@media screen and (min-width: 992px) {
  .about{
    margin-top: -120px;
  }
  .bd-grid {
    margin-left: auto;
    margin-right: auto;
  }
  .home {
    padding: 10rem 0 2rem;
  }
  .home-img {
    width: 350px;
    bottom: 18%;
  }
  .home-img>img{
    margin-left: 100px;
  }
  .mainskills {
    width: 50%;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5%;
    margin: auto;
  }
  .skills-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    text-align: initial;
  }
  .git_three_stats{
    display: flex ;
    align-items: center;
    justify-content: space-evenly;
  }
  .git_three_stats div:nth-child(2) {
    margin-top: 23px;
  }
  .project-container {
    gap: 2rem;
    max-width: 1024px;
    display: grid;
    flex-wrap: wrap;
    grid-template-columns: repeat(2,1fr);
    /* grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); */
    /* column-gap: 2rem; */
    width: calc(100% - 2rem);
    margin: auto;
  }
}





