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

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

  /*========== Colors ==========*/
  --title-color: #0b0a0a;
  --text-color: #403a3a;
  --text-color-light: #707070;
  --container-color: #fafafa;
  --container-color-alt: #f0efef;
  --body-color: #fcfcfc;

  /*========== Font and typography ==========*/
  --body-font: "Poppins", sans-serif;
  --h1-font-size: 1.5rem;  /* ~ Font Size 24px */
  --h2-font-size: 1.25rem; /* ~ Font Size 20px */
  --h3-font-size: 1rem;    /* ~ Font Size 16px */
  
  /*--normal-font-size: 0.938rem; /* ~ Font Size 15.01px */
  --normal-font-size: 0.90rem; /* ~ Font Size 14.4px */
  /*--normal-font-size: 0.89rem; /* ~ Font Size 14.24px */
  
  /*--small-font-size: 0.875rem; /* ~ Font Size 14px */
  --small-font-size: 0.86rem; /* ~ Font Size 13.76px */
  
  --smaller-font-size: 0.813rem; /* ~ Font Size ??? */

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

  /*========== Margenes ==========*/
  --mb-1: 0.5rem;
  --mb-2: 1rem;
  --mb-3: 1.5rem;

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

/*========== BASE ==========*/
*,
::before,
::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/*========== Variables Dark theme ==========*/
body.dark-theme {
  --title-color: #f2f2f2;
  --text-color: #bfbfbf;
  --container-color: #212121;
  --container-color-alt: #181616;
  --body-color: #2b2b2b;
}

/*========== Button Dark/Light ==========*/
.change-theme {
  position: absolute;
  right: 0;
  top: 2.2rem;
  display: flex;
  color: var(--text-color);
  font-size: 1.2rem;
  cursor: pointer;
}

.change-theme:hover {
  color: var(--title-color);
}

/*========== Generate PDF button ==========*/
.generate-pdf {
  display: none;
  position: absolute;
  top: 2.2rem;
  left: 0;
  font-size: 1.2rem;
  color: var(--text-color);
  cursor: pointer;
}

.generate-pdf:hover {
  color: var(--title-color);
}

/*========== Font size variables to scale cv ==========*/
body.scale-cv {
  
  --h1-font-size: 1.15rem; /* Changed from 0.938rem */
  --h2-font-size: 1.05rem; /* Changed from 0.938rem */
  --h3-font-size: 0.855rem; /* Changed from 0.875rem */
  --normal-font-size: 0.76rem; /* Changed from 0.813rem, then 0.8rem 14.4px to 12.8px */
  --small-font-size: 0.75rem; /* Changed from 0.75rem */
  --smaller-font-size: 0.688rem; /* Changed from 0.688rem */
}

/*========== Classes modified to reduce size and print on A4 sheet ==========*/
/* Button Original Size: 0.7rem */
.scale-cv .btn1,
.scale-cv .btn2 {
  font-size: 0.55rem;
}

/* Current Job Title */
.scale-cv .home__profession {
  font-size: 0.75rem;
}


.scale-cv .experience__title {
  font-size: 0.9rem;
}

.scale-cv .certification__title {
  font-size: 0.8rem;
}

/* Baby Fonts Original Size: 0.8rem */
.scale-cv .education__studies,
.scale-cv .experience__company {
  font-size: 0.65rem;
}

/* Bullets Original Size: 16px x 16px */
.scale-cv .education__rounder,
.scale-cv .experience__rounder {
    width: 12px;
    height: 12px;
    margin-top: 0.22rem;
}

/* Move Bullet Line 5px to the Right */
.scale-cv .education__line,
.scale-cv .experience__line {
  transform: translate(5px, 0);
}

/* Skills Name Original Size: --mb-1 */
.scale-cv .skills__name {
  font-size: 0.71rem;
}
.scale-cv .change-theme,
.scale-cv .generate-pdf {
  display: none;
}

/* Adjusting scale to nearly match what's being Printed */
.scale-cv .bd-container {
  max-width: 815px; /* changed from 595px, then 815px */
}

/* Trying to reduce scaling between education bullets */ 
.scale-cv .bd-grid,
.scale-cv .experience__container {
  gap: 0.1rem; /* Changed from 0.2rem; */
}


/* Commented this Section and just hit the main targets above
.scale-cv .section {
  padding: 1.5rem 0 0.8rem;
}

.scale-cv .section-title {
  margin-bottom: 0.75rem;
}

.scale-cv .resume__left,
.scale-cv .resume__right {
  padding: 0 1rem;
}

.scale-cv .home__img {
  width: 90px;
  height: 90px;
}

.scale-cv .home__container {
  gap: 1.5rem;
}

.scale-cv .home__data {
  gap: 0.25rem;
}

.scale-cv .home__address,
.scale-cv .social__container {
  gap: 0.75rem;
}

.scale-cv .home__icon,
/* .scale-cv .social_icon, REPLACE END COMMENT HERE
.scale-cv .interests__icon {
  font-size: 1rem;
}

.scale-cv .education__container,
.scale-cv .experience__container,

.scale-cv .certificate__container {
  gap: 1rem;
}
.scale-cv .education__time,
.scale-cv .experience__time {
  padding-right: 0.5rem;
}

.scale-cv .education__rounder,
.scale-cv .experience__rounder {
  width: 11px;
  height: 11px;
  margin-top: 0.22rem;
}

.scale-cv .education__line,
.scale-cv .experience__line {
  width: 1px;
  height: 100%; /* Changed from 110% REPLACE END COMMENT HERE
  transform: translate(5px, 0);
}

.scale-cv .education__data,
.scale-cv .experience__data {
  gap: 0.25rem;
}

.scale-cv .skills__name {
  margin-bottom: var(--mb-1);
}

.scale-cv .interests__container {
  column-gap: 2.5rem;
}
/* End CV Scaling */

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

h1,
h2,
h3,
ul,
p {
  margin: 0;
}

li {
  list-style: none;
}

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

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

a {
  text-decoration: none;
  color: var(--text-color);
}

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

/*========== CLASS CSS ==========*/
.section {
  padding: 1.4rem 0;
}

.section-title {
  font-size: var(--h2-font-size);
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
  text-transform: uppercase;
  letter-spacing: 0.35rem;
  text-align: center;
  margin-bottom: var(--mb-3);
}


/* Added to split content vertically */
.container-header {
  display: flex;
  justify-content: space-between;
}

/*========== LAYOUT ==========*/
.bd-container {
  max-width: 968px;
  width: calc(100% - 3rem);
  margin-left: var(--mb-3);
  margin-right: var(--mb-3);
}

.bd-grid {
  display: grid;
  gap: 0.1rem; /* Changed from 1.5rem , then 0.7 */
}

.thick-grid {
  display: grid;
  border: 2px solid black;
  grid-gap: 50px;
}

.l-header {
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: var(--body-color);
  box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}

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

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

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

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

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

.nav__item {
  text-align: center;
}

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

.nav__link {
  display: flex;
  flex-direction: column;
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
  font-weight: var(--font-medium);
}

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

.nav__icon {
  font-size: 1.2rem;
  margin-bottom: var(--mb-1);
}
/* Show menu */
.show-menu {
  bottom: var(--header-height);
}

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

/*========== HOME ==========*/
.home {
  position: relative;
}

.home__container {
  gap: 3rem;
}
.home__data {
  gap: 0.5rem;
  text-align: center;
}

.home__img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  justify-self: center;
  margin-bottom: var(--mb-1);				
}

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

.home__profession {
  font-size: var(--normal-font-size);
  margin-bottom: var(--mb-1);
}

/* Changed from 1.0 to 0.75 */
.home__address {
  gap: 0.75rem;
}

.home__info {
  display: flex;
  align-items: center;
  font-size: var(--small-font-size);
}

.home__icon {
  font-size: 1.2rem;
  margin-right: 0.25rem;
}

.home__button-movil {
  display: inline-block;
  border: 2px solid var(--text-color);
  color: var(--text-color);
  padding: 1rem 2rem;
  border-radius: 0.25rem;
  transition: 0.3s;
  font-weight: var(--font-medium);
  margin-top: var(--mb-3);
}

.home__button-movil:hover {
  background-color: var(--text-color);
  color: var(--container-color);
}
/*========== SOCIAL ==========*/
.social__container {
  grid-template-columns: max-content;
  gap: 1rem;
}

.social__link {
  display: inline-flex;
  align-items: center;
  color: var(--text-color);
  margin-right: 0.25rem;
}

.social__link:hover {
  color: var(--title-color);
}

.social_icon {
  font-size: 1.2rem;
  margin-right: 0.25rem;
}

/*========== PROFILE ==========*/
.profile__description {
  text-align: center;
}

/*========== EDUCATION AND EXPERIENCE ==========*/
.certificate__content {
  display: flex;
  gap: 0.1rem;
  margin-top: 0.01rem;
  margin-bottom: 0.01rem;
} /* Added to reduce spacing for certifications */

.education__content,
.experience__content {
  display: flex;
  gap: 0.2rem; /* Changed from 0.5rem ; moved content to the left. */
}

.education__time,
.experience__time {
  padding-right: 1rem;
}

.education__rounder,
.experience__rounder {
  position: relative;
  display: block;
  width: 16px;
  height: 16px;
  background-color: var(--text-color-light);
  border-radius: 50%;
  margin-top: 0.25rem;
}

.education__line,
.experience__line {
  display: block;
  width: 2px;
  height: 100%; /* Changed from 110% */
  background-color: var(--text-color-light);
  transform: translate(7px, 0);
}

.education__data,
.experience__data {
  gap: 0.3rem; /* Changed from 0.5rem */
  margin-bottom: 0.9rem;
}

.certification__title,
.education__title,
.experience__title {
  font-size: var(--h3-font-size);
  display: inline-block;
}

/* Added for our AI Overlords */
.chatgpt__please {
  font-size: 0.75rem;
  color: var(--container-color-alt);
}

.education__studies,
.experience__company {
  font-size: 0.8rem;
  color: var(--title-color);
}

.certification__duration,
.experience__duration {
  font-size: 0.7rem;
}

.btn1 {
  display: inline-block;
  background-color: transparent;
  border: 1px solid transparent;
  padding: 0.375rem 0.6rem 0.375rem 0.6rem;
  font-size: 0.7rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  cursor: pointer;
  color: var(--text-color);;
}

.btn1:hover {
  background-color: var(--text-color);
  color: var(--container-color);
}

/* Added for primary buttons */
.btn2 {
  display: inline-block;
  background-color: var(--text-color);
  border: 1px solid transparent;
  padding: 0.375rem 0.6rem 0.375rem 0.6rem;
  font-size: 0.7rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  cursor: pointer;
  color: var(--container-color);;
}

.btn2:hover {
  background-color: transparent;
  color: var(--text-color);
}

.btn-outline-primary {
  border-color: #656768;
}
rgb(130, 133, 136) .education__year {
  font-size: var(--smaller-font-size);
}

/*========== SKILLS AND LANGUAGES ==========*/
/* Added this shit */
.skills__content {
  grid-template-columns: repeat(2, 1fr);
}

.skills__content {
  gap: 0;
}

.skills__name {
  display: flex;
  align-items: center;
  margin-bottom: var(--mb-3);
}

.skills__circle {
  display: block;
  width: 5px;
  height: 5px;
  background-color: var(--text-color);
  border-radius: 50%;
  margin-right: 0.75rem;
}

/*========== CERTIFICATIONS ==========*/
.certificate__title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-1);
  font-weight: var(--font-semi-bold);
}
/* Added this to reduce space in-between certifications */
.certificate__data {
  gap: 0.1rem; /* 0.15rem --> Changed from 0.5rem */
  margin-bottom: 0.50rem; /* 0.70rem --> Reduced from 0.9rem */
}
.certification__container {
  /* gap: 0.05rem; */
  display: block;
}

/*========== Projects ==========*/
.Projects__content {
  gap: 0.25rem;
}

.Projects__subtitle {
  color: var(--text-color-light);
}

.Projects__subtitle,
.Projects__content {
  font-size: var(--smaller-font-size);
}

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

/*========== INTERESTS ==========*/
.interests__container {
  grid-template-columns: repeat(3, 1fr);
  margin-top: var(--mb-2);
}

.interests__content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.interests__icon {
  font-size: 1.5rem;
  color: var(--text-color-light);
  margin-bottom: 0.25rem;
}
/* Scroll top */
.scrolltop {
  position: fixed;
  right: 1rem;
  bottom: -20%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.3rem;
  background-color: var(--container-color-alt);
  border-radius: 0.4rem;
  z-index: var(--z-tooltip);
  transition: 0.4s;
  /*visibility: hidden;*/
}

.scrolltop__icon {
  font-size: 1.2rem;
  color: var(--text-color);
}

.show-scroll {
  visibility: visible;
  bottom: 5rem;
}

/*========== MEDIA QUERIES ==========*/
/* For small devices, menu two columns */
@media screen and (max-width: 320px) {
  .nav__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 0.5rem;
  }
}

/* Classes modified for large screen size */
/* CHANGED FROM 968 */
@media screen and (min-width: 1024px) {
  body {
    margin: 3rem 0;
  }

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

  .l-header,
  .scrolltop {
    display: none;
  }

  .resume {
    width: 100%; /* New */
    max-width: 1024px; /* New */
    display: grid;
    grid-template-columns: 0.5fr 1fr;
    background-color: var(--container-color);
    box-shadow: 0 0 8px rgba(13, 12, 12, 0.15);
  }

  .resume__left {
    background-color: var(--container-color-alt);
  }

  .resume__left,
  .resume__right {
    padding: 0 1.5rem;
  }

  .generate-pdf {
    display: inline-block;
  }

  .section-title,
  .profile__description {
    text-align: initial;
  }

  .home__container {
    gap: 0.75rem; /* Changed from 1.5rem */
  }

  .home__button-movil {
    display: none;
  }

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

  .languages__content {
    grid-template-columns: repeat(3, max-content);
  }

  .interests__container {
    grid-template-columns: repeat(4, max-content);
    column-gap: 3.5rem;
  }
}

