/*==================== GOOGLE FONTS ====================*/
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@400;500;600&display=swap');

/*==================== VARIABLES CSS ====================*/
:root {
    --header-height: 3rem;

    /*========== Colors ==========*/
    /* Change favorite color */
    --hue-color: 230; /*Purple 250 - Green 142 - Blue 230 - Pink 340*/

    /* HSL color mode */
    --first-color: hsl(var(--hue-color), 87%, 50%);
    --first-color-second: hsl(var(--hue-color), 69%, 61%);
    --first-color-alt: hsl(var(--hue-color), 100%, 60%);
    --first-color-lighter: hsl(var(--hue-color), 92%, 85%);
    --title-color: hsl(var(--hue-color), 8%, 15%);
    --text-color: hsl(var(--hue-color), 8%, 45%);
    --text-color-light: hsl(var(--hue-color), 8%, 6%);
    --input-color: hsl(var(--hue-color), 70%, 96%);
    --body-color: hsl(var(--hue-color), 60%, 99%);
    --container-color: #fff;
    --scroll-bar-color: hsl(var(--hue-color), 12%, 90%);
    --scroll-thumb-color: hsl(var(--hue-color), 12%, 80%);

    /*========== Font and typography ==========*/
    --body-font: 'Josefin Sans', sans-serif;

    /* .5rem = 8px, 1rem = 16px, 1.5rem = 24px ... */
    --big-font-size: 2rem;
    --h1-font-size: 1.5rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1.125rem;
    --normal-font-size: .938rem;
    --small-font-size: .813rem;
    --smaller-font-size: .75rem;

    /*========== Font weight ==========*/
    --font-medium: 500;
    --font-semi-bold: 600;

    /*========== Margenes Bottom ==========*/
    /* .25rem = 4px, .5rem = 8px, .75rem = 12px ... */
    --mb-0-25: .25rem;
    --mb-0-5: .5rem;
    --mb-0-75: .75rem;
    --mb-1: 1rem;
    --mb-1-25: 1.25rem;
    --mb-1-5: 1.5rem;
    --mb-2: 2rem;
    --mb-2-5: 2.5rem;
    --mb-3: 3rem;

    /*========== z index ==========*/
    --z-tooltip: 10;
    --z-fixed: 100;
    --z-modal: 1000;
}

/* Font size for large devices */
@media screen and (min-width: 968px) {
    :root {
        --big-font-size: 3rem;
        --h1-font-size: 2.25rem;
        --h2-font-size: 1.5rem;
        --h3-font-size: 1.25rem;
        --normal-font-size: 1rem;
        --small-font-size: .875rem;
        --smaller-font-size: .813rem;
    }
}

/*========== Variables Dark theme ==========*/


/*========== Button Dark/Light ==========*/


/*==================== BASE ====================*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0 0 var(--header-height) 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
}

h1, h2, h3, h4 {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/*==================== REUSABLE CSS CLASSES ====================*/
.section {
  padding: 2rem 0 4rem;
}

.section__title {
  font-size: var(--h1-font-size);
  color: var(--title-color);
}

.section__subtitle {
  display: block;
  font-size: var(--small-font-size);
  margin-bottom: var(--mb-3);
}

.section__title, 
.section__subtitle {
  text-align: center;
}

/*==================== LAYOUT ====================*/
.container {
  max-width: 768px;
  margin-left: var(--mb-1-5);
  margin-right: var(--mb-1-5);
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.header {
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: var(--body-color);
}

/*==================== NAV ====================*/
.nav {
  max-width: 968px;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  color: var(--title-color);
  font-weight: var(--font-medium);
}
.nav__toggle {
  color: var(--title-color);
  font-weight: var(--font-medium);
}

.nav__logo:hover {
  color:var(--first-color);
}

.nav__toggle {
  font-size: 1.1rem;
  cursor: pointer;  
}

.nav__toggle:hover {
  color:var(--first-color);
}

@media screen and (max-width: 767px) {
  .nav__menu {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: var(--body-color);
    padding: 2rem 1.5rem 4rem;
    box-shadow: 0 -1px 4px rgba(0, 0, 0, .15);
    border-radius: 1.5rem 1.5rem 0 0;
    transition: 0.3s;
  }
}

.nav__list {
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  
}

.nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: var(--small-font-size);
  color: var(--title-color);
  font-weight: var(--font-medium);
}

.nav__link:hover {
  color: var(--first-color);
}

.nav__icon {
  font-size: 1.2rem;
}

.nav__close {
  position: absolute;
  right: 1.3rem;
  bottom: .5rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--first-color);
}

.nav__close:hover {
  color: var(--first-color-alt);
}

/* show menu */
.show-menu {
  bottom: 0;
}

/* Active link */
.active-link {
  color:var(--first-color);
}

/* Change background header */


/*==================== HOME ====================*/
.home__blob-img {
  border-radius: 50%;
  width: 8rem;
  height: 8rem;
  object-fit: cover;
}

.home__container {
  gap: 1.5rem;
}


.home__content {
  grid-template-columns: 0.5fr 3fr;
  padding-top: 3.5rem;
  align-items: center;
}

.home__socials {
  display: grid;
  grid-template-columns: max-content;
  row-gap: 1rem;
}

.home__social-icon{
  font-size: 1.25rem;
  color: var(--first-color);
  width: 75px;
  padding-left: 1rem;
}

.home__social-icon:hover {
  color: var(--first-color-alt);
}

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

.home__subtitle {
  font-size: var(--h3-font-size);
  color: var(--text-color);
  font-weight: var(--font-small);
  margin-bottom: var(--mb-0-75);
}

.home__description {
  
  line-height: 1.4;
  margin-bottom: var(--mb-2);
}

.home__scroll {
  display: none;
}

.home__scroll-button {
  color: var(--first-color);
  transition: .3s;
}

.home__scroll-button:hover {
  transform: translateY(0.25rem);
}

.home__scroll-mouse {
  font-size: 2rem;
}

.home__scroll-name {
  font-size: var(--small-font-size);
  color: var(--title-color);
  font-weight: var(--font-medium);
  margin-right: var(--mb-0-25);
}

.home__scroll-arrow {
  font-size: 1.25rem;
}
/*==================== BUTTONS ====================*/
.button {
  display: inline-block;
  background-color: var(--first-color);
  color:#fff;
  padding: 1rem;
  border-radius: .5rem;
  font-weight: var(--font-medium);
}

.buttons {
  display: inline-block;
  background-color: var(--first-color);
  color:#fff;
  padding: 1rem;
  border-radius: .5rem;
  font-weight: var(--font-medium);
}

.button:hover {
  background-color: var(--first-color-alt);
}

.button-icon {
  font-size: 1.25rem;
  margin-left: var(--mb-2-5);
  transition: .3s;
}

.button--flex {
  display: inline-flex;
  align-items: center;
}

.button--small {
  padding: 0.75rem 1rem;
}

.button--link {
  padding: 0;
  background-color: transparent;
  color: var(--first-color);
}

.button--link:hover {
  background-color: transparent;
  color: var(--first-color-alt);
}
/*==================== ABOUT ====================*/
.about__description {
  text-align: center;
  text-wrap: pretty;
  hyphens: auto;
  margin-bottom: var(--mb-2-5);
  line-height: 1.4;
}



.about__buttons {
  display: flex;
  justify-content: center;
}

/*==================== SKILLS ====================*/
.skills__container {
  row-gap: 0;
}

.skills__header {
  display: flex;
  align-items: center;
  margin-bottom: var(--mb-0-75);
  cursor: pointer;
}

.skills__icon,
.skills__arrow {
  font-size: 2rem;
  color: var(--first-color);
}

.skills__icon {
  margin-right: var(--mb-0-75);
}

.skills__title {
  font-size: var(--h3-font-size);
}

.skills__arrow {
  margin-left: auto;
  transition: .4s;
}

.skills__titles {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--mb-0-75);
}

.skills__titles > ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 1rem;
  font-size: var(--font-small);
  column-gap: 4rem;
  
}


.skills__name {
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
}

.skills__list {
  row-gap: 1.5rem;
  padding-left: 2.75rem;
}

.skills__close .skills__list {
  height: 0;
  overflow: hidden;
}

.skills__open .skills__list {
  height: max-content;
  margin-bottom: var(--mb-0-5);
}

.skills__open .skills__arrow {
  transform: rotate(-180deg);
}
/*==================== QUALIFICATION ====================*/
.qualification__tabs {
  display:flex;
  justify-content: space-evenly;
  margin-bottom: var(--mb-2);
}


.qualification__buttons {
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
}

.qualification__icon {
  font-size: 1.8rem;
  margin-right: var(--mb-0-25); 
}

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

.qualification__left {
  justify-content: center;
  text-align: left;
}

.qualification__right {
  justify-content: right;
  text-align: right;
}

.qualification__title {
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  margin-bottom: var(--mb-0-75);
}

.qualification__subtitle {
  display: inline-block;
  font-size: var(--small-font-size);
  margin-bottom: var(--mb-1);
}

.qualification__calender {
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
}

.qualification__rounder {
  display: inline-block;
  width: 13px;
  height: 13px;
  background-color: var(--first-color);
  border-radius: 50%;
}

.qualification__line {
  display: block;
  width: 1px;
  height: 100%;
  background-color: var(--first-color);
  transform: translate(6px, -7px);
}


/*==================== PROJECTS ====================*/
.projects__container {
  gap: 1.5rem;
  grid-template-columns: repeat(2,1fr);
}

.project__gap {
  margin-bottom: var(--mb-3);
}

.projects__content {
  position: relative;
  background-color: var(--container-color);
  padding: 3.5rem .5rem 1.25rem 1.5rem;
  border-radius: 0.25rem;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, .15);
  transition: 0.3s;
}

.projects__content:hover {
  box-shadow: 0px 4px 8px rgba(0, 0, 0, .15);
}

.projects__content:hover {
  box-shadow: 0px 2px 4px rgba(0, 0, 0, .15);
}

.projects__icon {
  display: block;
  font-size: 1.5rem;
  color: var(--first-color);
  margin-bottom: var(--mb-1);
}

.projects__image__icon {
  display: block;
  width: 37%;
  height: 30%;
  text-align: left;
  color: var(--first-color);
  margin-bottom: var(--mb-1);
}

.projects__image__icon_azure {
  display: block;
  width: 23%;
  height: 23%;
  text-align: left;
  color: var(--first-color);
  margin-bottom: var(--mb-1);
}

.projects__title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-1);
  font-weight: var(--font-medium);
}

.projects__button {
  cursor: pointer;
  font-size: var(--small-font-size);
}

.projects__button:hover .button__icon {
  transform: translateX(0.25rem);
}

.projects__modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, .5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  z-index: var(--z-modal);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

.projects__modal-content {
  position: relative;
  background-color: var(--container-color);
  padding: 1.5rem;
  border-radius: 0.5rem;
}

.projects__modal-projects {
  row-gap: 1rem;
}

.projects__modal-project {
  display: flex;
  font-size: var(--small-font-size);
}

.projects__modal-title {
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
  margin-bottom: var(--mb-0-5);
}

.projects__modal-subtitle {
  font-size: 1rem;
  font-weight: var(--font-small);
  margin-bottom: var(--mb-1-25);
}

.projects__modal-project > p {
  justify-content: left;
  text-align: left;
}

.projects__modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  color: var(--first-color);
  cursor: pointer;
}

.projects__modal-icon {
  color: var(--first-color);
  margin-right: var(--mb-0-25);
}

/* Active Modal */
.active-modal {
  opacity: 1;
  visibility: visible;
}

/*==================== CERTIFICATES ====================*/
.certificate__container {
  overflow: initial;
}

.certificate__content {
  padding: 0 1.5rem;
}

.certificate__img {
  width: 265px;
  border-radius: 0.5rem;
  justify-self: center;
}

.certificate__title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-0-5);
}

.certificate__button:hover .button__icon{
  transform: translateX(0.25rem);
}

.swiper-button-prev::after,
.swiper-button-next::after {
  content:'';
}

.swiper-certificate-icon {
  font-size: 2rem;
  color: var(--first-color);
}

.swiper-button-prev {
  left: -0.5rem;
}

.swiper-button-right {
  right: -0.5rem;
}

.swiper-container-horizontal > .swiper-pagination-bullets {
  bottom: -2.5rem;
}

.swiper-pagination-bullet-active {
  background-color: var(--first-color);
}

.swiper-button-prev,
.swiper-button-next,
.swiper-pagination-bullet {
  outline: none;
}

/*==================== CONTACT ME ====================*/
.contact__container {
  row-gap: 3rem;
}

.contact__info {
  display: flex;
  margin-bottom: var(--mb-2);
}

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

.contact__title {
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
}

.contact__subtitle {
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}



/*==================== FOOTER ====================*/
.footer {
  padding-top: 1rem;
}

.footer__container {
  row-gap: 3rem;
}

.footer__bg {
  background-color: var(--first-color-alt);
  padding: 0.5rem 0 3rem;
}

.footer__title {
  font-size: var(--h1-font-size);
}

.footer__subtitle {
  font-size: var(--small-font-size);
}

.visitor__counter {
  display: none;
}

.footer__copy {
  font-size: var(--smaller-font-size);
  text-align: center;
  color: var(--text-color-light);
  margin-top: var(--mb-2);
}

/*========== SCROLL UP ==========*/
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -20%;
  background-color: var(--first-color);
  opacity: 0.8;
  padding: 0 0.3rem;
  border-radius: 0.4rem;
  z-index: var(--z-tooltip);
  transition: 0.4s;
}

.scrollup:hover {
  background-color: var(--first-color-alt);
}

.scrollup__icon {
  font-size: 1.5rem;
  color: #fff;
}

/* Show scroll */
.show-scroll {
  bottom: 5rem;
}

/*========== SCROLL BAR ==========*/


/*==================== MEDIA QUERIES ====================*/
/* For small devices */
@media screen and (max-width: 350px) {
  
  .container {
    margin-left: var(--mb-1);
    margin-right: var(--mb-1);
  }

  .nav__menu {
    padding: 2rem 0.25rem 4rem;
  }

  .nav__list {
    column-gap: 0;
  }

  .home__content {
    grid-template-columns: 2.5rem 3fr ; 
  }

  .skills__title {
    font-size: var(--normal-font-size);
  }

  .qualification__data {
    gap: 0.5rem;
  }

  .projects__container {
    grid-template-columns: max-content;
    justify-content: center;
  }

  .projects__content {
    padding-right: 3.5rem;
  }

  .projects__modal {
    padding: 0.5rem;
  }
  
}

/* For medium devices */
@media screen and (min-width: 540px) {

  .home__data {
    grid-column: 2/3;
  }
  
  .home__blob-img {
    border-radius: 50%;
    width: 8.5rem;
    height: 8.5rem;
    object-fit: cover;
    margin-right: 5rem;
  }

  
  .skills__title {
    font-size: var(--normal-font-size);

  }

  .qualification__data {
    gap: 0.5rem;
  }

  .projects__container {
    grid-template-columns: max-content;
    justify-content: center;
  }

  .projects__content {
    padding-right: 3.5rem;
  }

  .projects__modal {
    padding: 0.5rem;
  }

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


.qualification__sections {
  display: grid;
  grid-template-columns: 0.6fr;
  justify-content: center;
}
 
.certificate__span::before {
  content: "\a\a\a";
  white-space: pre;
  }

.contact__split {
  column-count: 2;
  justify-content: right;
  }

}


@media screen and (min-width: 768px) {

  .container {
    margin-left: auto;
    margin-right: auto;
  }

  .body {
    margin: 0;
  }

  .section {
    padding: 6rem 0 2rem;
  }

  .header {
    top: 0;
    bottom: initial;
  }

  .header, .main,
  .footer__container {
    padding: 0 1rem;
  }

  .nav {
    height: calc(var(--header-height) + 1.5rem);
    column-gap: 1rem;
  }

  .nav__logo {
    color: var(--title-color);
    font-weight: var(--font-medium);
    padding-left: 2rem;
  }

  .nav__icon,
  .nav__close,
  .nav__toggle {
    display: none;
  }

  .nav__list {
    display: flex;
    column-gap: 2rem;
  }

  .nav__menu {
    margin-left: auto;
  }

  .home__container {
    padding-top: 5.5rem;
    column-gap: 2rem;
    margin-bottom: -1rem;
  }

  .home__blob-img{
    width: 12rem;
    height: 12rem;
    margin-right: 3rem;
  }

  .home__scroll {
    display: block;
  }

  .home__scroll-button {
    margin-top: 2rem;
    margin-left: 1rem;
  }

  .about__container {
    column-gap: 5rem;
  }

  .about__description {
    text-align: initial;
  }

  .qualification__button {
    margin: 0 var(--mb-1);
  }

  .qualification__sections {
    grid-template-columns: 0.5fr;
  }

  .projects__container {
    grid-template-columns: repeat(3, 218px);
    justify-content: center;
  }

  .projects__content.center-last {
    grid-column: 2 / 3;
  }

  .projects__icon {
    font-size: 2rem;
  }

  .projects__modal-content {
    width: 450px;
  }

  .contact__split {
    column-count: 2;
    justify-content: right;
   }

   .footer__copy {
    margin-top: 3rem;
   }

   .visitor__counter {
    display: none;
  }

/* For large devices */

@media screen and (min-width: 1024px){
  .header,
  .main,
  .footer__container {
    padding: 0;
  }

  .nav__logo {
    color: var(--title-color);
    font-weight: var(--font-medium);
    padding-left: 7rem;
  }
  
  .projects__container {
    grid-template-columns: repeat(3, 238px);
  }

  .projects__content.center-last {
    grid-column: 2 / 3;
  }

  .certificate__content {
    column-gap: 4rem;
  }

  .swiper-button-next {
    right: -2rem;
  }

  .swiper-button-prev {
    left: -2rem;
  }

  .swiper-container-horizontal > .swiper-pagination-bullets {
    bottom: -2.5rem;
  }

  .visitor__counter {
    display: none;
  }
}

}