/*===== 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;
  /*===== Colores =====*/
  /*Purple 260 - Red 355 - Blue 224 - Pink 340*/
  /* HSL color mode */
  --hue-color: 224;
  --first-color: hsl(var(--hue-color), 89%, 60%);
  --second-color: hsl(var(--hue-color), 56%, 12%);
  /*===== Fuente y tipografia =====*/
  --body-font: "Poppins", sans-serif;
  --big-font-size: 3rem;
  --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: 4rem;
    --h2-font-size: 2rem;
    --normal-font-size: 1rem;
    --smaller-font-size: .875rem;
  }
}

/*Active menu*/
.nav-link.active {
  color: #00f050 !important;
}
/*===== BASE =====*/
*, ::before, ::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  color: #dedede;
  background-color: #212121;
}

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: #00f050;
  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: var(--first-color);
}

.section {
  padding-top: 3rem;
  padding-bottom: 2rem;
  background-color: #212121;
}



/*===== HOME =====*/
.home {
  position: relative;
  row-gap: 5rem;
  padding: 4rem 0 5rem;
  background-color: #212121;
}
.home__data {
  align-self: center;
}
.home__title {
  font-size: var(--big-font-size);
  margin-bottom: var(--mb-5);
}
.home__title-color {
  color: #00f050;
}
.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: #00f050;
}
.home__img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 260px;
}
.home__blob {
  fill: var(--first-color);
}
.home__blob-img {
  width: 360px;
}

/*BUTTONS*/
.button {
  display: inline-block;
  background-color: #00f050;
  color: #212121;
  padding: 0.75rem 2.5rem;
  font-weight: var(--font-semi);
  border-radius: 0.5rem;
  transition: 0.3s;
}
.button:hover {
  box-shadow: 0px 10px 36px rgba(0, 0, 0, 0.15);
}

/* ===== SKILLS =====*/
.skills__container {
  width: 100%;
  row-gap: 2rem;
  text-align: center;
}
.skills__subtitle {
  margin-bottom: var(--mb-2);
  font-weight: lighter !important;
}
.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: 0px 4px 25px rgba(14, 36, 49, 0.15);
}
.skills__icon {
  font-size: 2rem;
  margin-right: var(--mb-2);
  color: #dedede;
}
.skills__names {
  display: flex;
  align-items: center;
}
.skills__bar {
  position: absolute;
  left: 0;
  bottom: 0;
  background-color: #00f050;
  height: 0.25rem;
  border-radius: 0.5rem;
  z-index: var(--z-back);
}
.skills__html {
  width: 95%;
}
.skills__css {
  width: 85%;
}
.skills__js {
  width: 65%;
}
.skills__ux {
  width: 85%;
}
.skills__img {
  border-radius: 0.5rem;
}

/* ===== WORK =====*/
.work__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

@media screen and (max-width: 768px) {
  .work__container {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

.work__title {
  grid-column: 1 / -1;
  text-align: center;
  margin-bottom: 2rem;
}

.work__card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.5rem;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.work__content h3 {
  margin: 0 0 0.5rem 0;
  color: #00f050;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.work__content p {
  margin: 0 0 1rem 0;
  color: #dedede;
  font-size: 0.9rem;
  line-height: 1.5;
}

.work__link {
  color: #00f050;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.work__link:hover {
  color: #fff;
}

/* ===== CONTACT =====*/
.contact__container {
  grid-template-columns: 1fr;
  gap: 2rem;
}

.contact__info {
  text-align: center;
}

.contact__info h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #00f050;
}

.contact__info p {
  margin-bottom: 2rem;
  color: var(--second-color);
}

.contact__details {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.contact__item:hover {
  background: rgba(0, 240, 80, 0.1);
  transform: translateY(-2px);
}

.contact__item i {
  font-size: 1.5rem;
  color: #00f050;
}

.contact__item h4 {
  margin: 0;
  font-size: 1rem;
  color: #00f050;
}

.contact__item a {
  color: var(--second-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.contact__item a:hover {
  color: #00f050;
}


/* ===== SKILLS CATEGORIES =====*/
.skills__category {
  font-size: 1.8rem;
  font-weight: bolder;
  margin: 2rem 0 1rem 0;
  text-align: left;
  padding-bottom: 0.5rem;
}

/* ===== SIMPLE SKILLS =====*/
.skills__simple {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.skill__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 8px;
}

.skill__item .skills__icon-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 6px;
}

.skill__item .skills__name {
  font-weight: 500;
  color: #dedede;
  font-size: 0.95rem;
}

.express-light {
  filter: invert(1);
}


/* ===== CONTACT NOTE =====*/
.contact__note {
  background: rgba(0, 240, 80, 0.1);
  border: 1px solid #00f050;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  color: #dedede;
  font-style: italic;
}


/* ===== EXPERIENCE =====*/
.experience__container {
  row-gap: 2rem;
}

.experience__content {
  display: grid;
  grid-template-columns: 1fr max-content 1fr;
  column-gap: 1.875rem;
}

.experience__title {
  font-size: 2rem;
  margin-bottom: var(--mb-1);
}

.experience__subtitle {
  display: inline-block;
  color: #dedede;
  margin-bottom: var(--mb-2);
}

.experience__calendar {
  font-size: var(--smaller-font-size);
  color: #dedede;
  margin-bottom: var(--mb-2);
}

.experience__calendar i {
  color: #00f050;
  margin-right: var(--mb-1);
}

.experience__rounder {
  display: inline-block;
  width: 13px;
  height: 13px;
  background-color: #00f050;
  border-radius: 50%;
}

.experience__line {
  display: block;
  width: 1px;
  height: 100%;
  background-color: #00f050;
  transform: translate(6px, -7px);
}

.experience__list {
  list-style: none;
  padding-left: 0;
}

.experience__list li {
  margin-bottom: var(--mb-1);
  color: #dedede;
}

.experience__list li:before {
  content: "▹";
  color: #00f050;
  margin-right: var(--mb-1);
}

/* ===== RESPONSIVE EXPERIENCE =====*/
@media screen and (max-width: 768px) {
  .experience__content {
    grid-template-columns: 1fr;
    row-gap: 1rem;
  }

  .experience__data {
    text-align: center;
  }

  .experience__title {
    font-size: 1.5rem;
  }

  .experience__rounder {
    display: none;
  }

  .experience__line {
    display: none;
  }

  .experience__list {
    text-align: left;
  }
}

@media screen and (max-width: 576px) {
  .experience__container {
    row-gap: 1rem;
  }

  .experience__title {
    font-size: 1.25rem;
  }

  .experience__subtitle {
    font-size: 0.9rem;
  }

  .experience__calendar {
    font-size: 0.8rem;
  }

  .experience__list li {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }
}

/* ===== RESPONSIVE SKILLS =====*/
@media screen and (max-width: 768px) {
  .skills__simple {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .skill__item {
    padding: 0.75rem;
  }

  .skills__category {
    font-size: 1rem;
    margin: 1.5rem 0 0.5rem 0;
  }
}

/* ===== RESPONSIVE PROJECTS =====*/
@media screen and (max-width: 768px) {
  .work__container {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 1rem;
    margin: 0;
  }
}

@media screen and (max-width: 576px) {
  .work__container {
    grid-template-columns: 1fr;
    padding: 0 1rem;
    margin: 0;
  }

  .work__card {
    padding: 1rem;
  }
}


/* ===== RESPONSIVE GENERAL =====*/
@media screen and (max-width: 768px) {
  .section {
    padding: 1.5rem 1rem;
    margin: 0;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }

  .home {
    padding: 6rem 1rem 3rem;
  }

  .home__title {
    font-size: 2rem;
    line-height: 1.2;
  }

  .home__intro {
    width: 100%;
    font-size: 0.9rem;
  }

  .about__text {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.6;
    margin: 0 1rem;
  }

  .skills__container {
    padding: 0 1rem;
  }

  .experience__container {
    padding: 0 1rem;
  }

  .work__container {
    padding: 0 1rem;
  }
}

@media screen and (max-width: 576px) {
  .section {
    padding: 1rem 0.5rem;
  }

  .home {
    padding: 5rem 0.5rem 2rem;
  }

  .home__title {
    font-size: 1.8rem;
  }

  .home__intro {
    font-size: 0.85rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .skills__simple {
    grid-template-columns: repeat(2, 1fr);
  }

  .skills__container,
  .experience__container,
  .work__container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .button {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    margin-top: 1rem;
  }
}

.contact__form {
  width: 100%;
}

.contact__input {
  width: 100%;
  font-size: var(--normal-font-size);
  font-weight: var(--font-semi);
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1.5px solid var(--second-color);
  outline: none;
  margin-bottom: var(--mb-4);
  background: #fff;
  transition: border-color 0.3s ease;
}

.contact__input:focus {
  border-color: var(--first-color);
}

.contact__button {
  display: block;
  border: none;
  outline: none;
  font-size: var(--normal-font-size);
  cursor: pointer;
  margin-left: auto;
  transition: all 0.3s ease;
}

.contact__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ===== FOOTER =====*/
.footer {
  background-color: #212121;
  color: #dedede;
  text-align: center;
  font-weight: var(--font-semi);
  padding: 2rem 0;
}
.footer__title {
  font-size: 2rem;
  margin-bottom: var(--mb-4);
}
.footer__social {
  margin-bottom: var(--mb-4);
}
.footer__icon {
  font-size: 1.5rem;
  color: #fff;
  margin: 0 var(--mb-2);
}
.footer__copy {
  font-size: var(--smaller-font-size);
}

/* ===== MEDIA QUERIES=====*/
@media screen and (max-width: 320px) {
  .home {
    row-gap: 2rem;
  }
  .home__img {
    width: 200px;
  }
}
@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%;
  }
  .skills__container {
    grid-template-columns: 0.8fr;
    justify-content: center;
    column-gap: 1rem;
  }
  .work__container {
    padding-top: 2rem;
  }
  .contact__form {
    width: 360px;
    padding-top: 2rem;
  }
  .contact__container {
    justify-items: center;
  }
  .contact__info {
    text-align: left;
  }
}
@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);
  }
  .home {
    padding: 8rem 0 2rem;
  }
  .home__img {
    width: 400px;
    bottom: 10%;
  }
  .skills__container {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
    align-items: center;
    text-align: initial;
  }
  .work__container {
    grid-template-columns: repeat(3, 1fr);
  }
  .contact__container {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}
@media screen and (min-width: 992px) {
  .bd-grid {
    margin-left: auto;
    margin-right: auto;
  }
  .home {
    padding: 10rem 0 2rem;
  }
  .home__img {
    width: 450px;
  }
  
  /* ===== ADDITIONAL RESPONSIVE CLASSES =====*/
  .home__intro {
    width: 50%;
  }
  
  .home__intro span {
    line-height: 1.6;
  }
  
  .home__title-second {
    margin-top: -5vh;
  }
  
  .about__text {
    font-size: 6vh;
    font-weight: 300;
    line-height: 1.6;
  }
  
  /* ===== ADDITIONAL MEDIA QUERIES =====*/
  @media screen and (max-width: 480px) {
    body {
      padding: 0.5rem 0;
    }

    .section {
      padding: 1.5rem 0.5rem;
    }

    .home {
      padding: 4rem 0.5rem 2rem;
    }

    .home__title {
      font-size: 1.6rem;
      line-height: 1.3;
    }

    .home__intro {
      width: 100%;
      font-size: 0.8rem;
      line-height: 1.5;
    }

    .about__text {
      font-size: 1rem;
      font-weight: 300;
      line-height: 1.6;
      margin: 0;
    }

    .skills__simple {
      grid-template-columns: repeat(2, 1fr);
      gap: 0.5rem;
    }

    .skill__item {
      padding: 0.5rem;
      gap: 0.5rem;
    }

    .work__container {
      padding: 0 0.5rem;
    }

    .button {
      padding: 0.6rem 1.2rem;
      font-size: 0.85rem;
    }
  }
}
