/*===== GOOGLE FONTS =====*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

/* todo ===== 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;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.875rem;
  --smaller-font-size: 0.813rem;

  /*========== 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;
}

/* todo ========== BASE ==========*/
*,
::before,
::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* todo ========== Variables Dark theme ==========*/
body.dark-theme {
  --title-color: #f2f2f2;
  --text-color: #bfbfbf;
  --container-color: #212121;
  --container-color-alt: #181616;
  --body-color: #2b2b2b;
}

/* todo ========== Button Dark/Light ==========*/
.change-theme {
  position: absolute;
  right: 0;
  top: 1.1rem;
  display: flex;
  color: var(--text-color);
  font-size: 1.2rem;
  cursor: pointer;
}

.change-theme:hover {
  color: var(--title-color);
}

/* todo ========== Font size variables to scale cv ==========*/
body.scale-cv {
  --h1-font-size: 0.938rem;
  --h2-font-size: 0.938rem;
  --h3-font-size: 0.875rem;
  --normal-font-size: 0.813rem;
  --small-font-size: 0.75rem;
  --smaller-font-size: 0.688rem;
}

/* todo ========== Generate PDF button ==========*/
.generate-pdf {
  position: absolute;
  top: 1.1rem;
  left: 0;
  font-size: 1.2rem;
  color: var(--text-color);
  cursor: pointer;
}

#resume-button {
  display: none;
}

.generate-pdf:hover {
  color: var(--title-color);
}

/* todo ========== Classes modified to reduce size and print on A4 sheet ==========*/
.scale-cv .change-theme,
.scale-cv #resume-button {
  display: none;
}

.scale-cv .bd-container {
  max-width: 700px;
}

.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,
.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: 110%;
  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;
}

.scale-cv .interests {
  margin-bottom: 42.8px;
}

body {
  margin: 0 0 var(--header-height) 0;
  padding: 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background: var(--body-color);
  color: var(--text-color);
}

h1,
h2,
h3,
ul,
p {
  margin: 0;
}

h1,
h2,
h3 {
  color: var(--title-color);
  font-weight: var(--font-medium);
}

ul {
  padding: 0;
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* todo ========== CLASS CSS ==========*/
.section {
  padding: 0.75rem 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);
}

/* todo ========== 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: 1.5rem;
}

.l-header {
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: var(--z-fixed);
  background: var(--body-color);
  box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}

/* todo ========== NAV ==========*/
.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media screen and (max-width: 968px) {
  .nav_menu {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 2rem 1.5rem;
    background: 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 {
  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);
  transition: 0.3s;
}

.nav_link:hover {
  color: var(--title-color);
  transform: scale(1.1);
}

.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);
}

/* todo ========== 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);
}

.home_address {
  gap: 1rem;
}

.home_information {
  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(--title-color);
  font-weight: var(--font-medium);
  margin-top: var(--mb-3);
  padding: 1rem 2rem;
  border-radius: 0.25rem;
  transition: 0.3s;
}

.home_button-movil:hover {
  background: var(--text-color);
  color: var(--container-color);
}

/* todo ========== SOCIAL ==========*/
.social_container {
  /* grid-template-columns: max-content;
  gap: 1rem; */
  display: flex;
  justify-content: center;
}

.social_link {
  display: inline-flex;
  align-items: center;
  font-size: var(--small-font-size);
  color: var(--text-color);
  transition: 0.3s;
}

.social_link:hover {
  color: var(--title-color);
  transform: translateY(-20%);
  /* transform: translateX(10%); */
}

.social_icon {
  font-size: 1.2rem;
  margin-right: 0.5rem;
}

/* todo ========== PROFILE ==========*/
.profile_description {
  text-align: center;
  margin-bottom: 16px;
}

/* todo ========== EDUCATION AND EXPERIENCE ==========*/
.education_content,
.experience_content {
  display: flex;
}

.education_time,
.experience_time {
  padding-right: 1rem;
}

.education_rounder,
.experience_rounder {
  position: relative;
  display: block;
  width: 16px;
  height: 16px;
  background: var(--text-color-light);
  border-radius: 50%;
  margin-top: 0.25rem;
}

.education_line,
.experience_line {
  display: block;
  width: 2px;
  height: 110%;
  background: var(--text-color-light);
  transform: translate(7px, 0);
}

.experience_line {
  height: 105%;
}

.education_data,
.experience_data {
  gap: 0.5rem;
}

.education_title,
.experience_title {
  font-size: var(--h3-font-size);
}

.education_studies,
.experience_company {
  font-size: var(--small-font-size);
  color: var(--title-color);
}

.education_year {
  font-size: var(--smaller-font-size);
}

/* todo ========== SKILLS AND LANGUAGES ==========*/
.skills_content,
.languages_content {
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.skills_name,
.languages_name {
  display: flex;
  align-items: center;
  margin-bottom: var(--mb-2);
}

.skills_circle,
.languages_circle {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--text-color);
  border-radius: 50%;
  margin-right: 0.75rem;
}

/* todo ========== CERTIFICATES ==========*/
.certificate_title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-1);
}

/* todo ========== REFERENCES ==========*/
.references_content {
  gap: 0.25rem;
}

.references_subtitle {
  color: var(--text-color-light);
}

.references_subtitle,
.references_contact {
  font-size: var(--smaller-font-size);
}

.references_title {
  font-size: var(--h3-font-size);
}

/* todo ========== 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.2rem;
  color: var(--text-color-light);
  margin-bottom: 0.5rem;
}

/* Scroll top */
.scrolltop {
  position: fixed;
  right: 1rem;
  bottom: -20%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.3rem;
  background: 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;
}

/* todo =============== SCROLL BAR ===============*/
::-webkit-scrollbar {
  width: 0.6rem;
  border-radius: 0.5rem;
  background: grey;
}

::-webkit-scrollbar-thumb {
  border-radius: 0.5rem;
  background: rgb(171, 170, 170);
}

::-webkit-scrollbar-thumb:hover {
  background: rgb(193, 193, 193);
}

/* todo ========== 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 */
@media screen and (min-width: 968px) {
  body {
    margin: 3rem 0;
  }

  .bd-container {
    margin-left: auto;
    margin-right: auto;
  }

  .l-header,
  .scrolltop {
    display: none;
  }

  .resume {
    /* display: grid;
    grid-template-columns: 0.5fr 1fr; */
    background: var(--container-color);
    box-shadow: 0 0 8px rgba(13, 12, 12, 0.15);
  }

  .resume_left {
    background: var(--container-color-alt);
  }

  .resume_left,
  .resume_right {
    padding: 0 1.5rem;
  }

  #resume-button {
    display: inline-block;
  }

  .social_container {
    display: inline-flex;
  }

  .section_title,
  .profile_description {
    text-align: initial;
  }

  .home_container {
    gap: 1rem;
  }

  .home_button-movil {
    display: none;
  }

  .references_container {
    grid-template-columns: repeat(2, 1fr);
  }

  .languages_content {
    grid-template-columns: repeat(3, max-content);
    column-gap: 3.5rem;
  }

  .interests_container {
    grid-template-columns: repeat(4, max-content);
    column-gap: 3.5rem;
  }

  .interests {
    margin-top: -20px;
    margin-bottom: 40px;
  }
}

.experience_description {
  font-size: var(--small-font-size);
}

/* Força a quebra de página antes do elemento */
.page-break-before {
  page-break-before: always;
  display: grid;
  grid-template-columns: 0.5fr 1fr;
}

/* Evita quebra dentro do elemento */
.page-break-inside {
  page-break-inside: avoid;
  display: grid;
  grid-template-columns: 0.5fr 1fr;
}
