
/* ========================================
   GOOGLE FONTS
======================================== */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");


/* ========================================
   ROOT VARIABLES
======================================== */

: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;

  /* 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-medium: 600;
  --font-semi-bold: 500;

  /* Spacing */
  --m1: 0.5rem;
  --m2: 1rem;
  --m3: 1.5rem;

  /* Z-index */
  --z-tooltip: 10;
  --z-fixed: 100;
}


/* ========================================
   BASE STYLES
======================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0 0 var(--header-height);
  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;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.text-uppercase {
  text-transform: uppercase;
}


/* ========================================
   DARK THEME
======================================== */

body.dark-theme {
  --title-color: #f2f2f2;
  --text-color: #bfbfbf;
  --container-color: #212121;
  --container-color-alt: #181616;
  --body-color: #2b2b2b;
}


/* ========================================
   LAYOUT UTILITIES
======================================== */

.section {
  padding: 1.5rem 0;
}

.section-title {
  margin-bottom: var(--m3);
  font-size: var(--h2-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.35rem;
}

.bd-container {
  width: calc(100% - 3rem);
  max-width: 968px;
  margin-right: auto;
  margin-left: auto;
}

.bd-grid {
  display: grid;
  gap: 1.5rem;
}


/* ========================================
   HEADER & NAVIGATION
======================================== */

.l-header {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: var(--z-fixed);
  width: 100%;
  background-color: var(--body-color);
  box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.1);
  transition: 0.4s;
}

.nav {
  display: flex;
  height: var(--header-height);
  align-items: center;
  justify-content: space-between;
}

.nav-toggle,
.nav-logo {
  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;
  color: var(--text-color-light);
  font-size: var(--small-font-size);
}

.nav-link:hover,
.nav-link.active-link {
  color: var(--title-color);
}

.nav-icon {
  margin-bottom: var(--m1);
  font-size: 1.2rem;
}

.show-menu {
  bottom: var(--header-height);
}


/* ========================================
   MOBILE NAVIGATION
======================================== */

@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.4s;
  }
}

.show-menu {
  bottom: var(--header-height);
}


/* ========================================
   HOME / PROFILE HEADER
======================================== */

.home {
  position: relative;
}

.home-container {
  gap: 3rem;
}

.home-data {
  gap: 0.5rem;
  text-align: center;
}

.home-img {
  width: 120px;
  height: 120px;
  margin-bottom: var(--m1);
  border-radius: 50%;
  justify-self: center;
  object-fit: cover;
}

.home-title {
  font-size: var(--h1-font-size);
}

.home-profession {
  margin-bottom: var(--m1);
  font-size: var(--normal-font-size);
}

.home-address {
  gap: 1rem;
}

.home-information {
  display: flex;
  align-items: center;
  font-size: var(--small-font-size);
}

.home-information a {
  color: var(--text-color);
}

.home-information a:hover {
  color: var(--title-color);
}

.home-icon {
  margin-right: 0.25rem;
  font-size: 1.2rem;
}

.home-button-mobile {
  display: inline-block;
  margin-top: var(--m3);
  padding: 1rem 2rem;
  border: 2px solid var(--text-color);
  border-radius: 0.25rem;
  color: var(--title-color);
  font-weight: var(--font-medium);
  transition: 0.4s;
}

.home-button-mobile: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);
  font-size: var(--small-font-size);
}

.social-link svg {
  flex-shrink: 0;
  fill: currentColor;
}

.social-link:hover {
  color: var(--title-color);
}

.social-icon {
  margin-right: 0.25rem;
  font-size: 1.2rem;
}


/* ========================================
   PROFILE
======================================== */

.profile-description {
  text-align: center;
}


/* ========================================
   EDUCATION & 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;
  margin-top: 0.25rem;
  border-radius: 50%;
  background-color: var(--text-color-light);
}

.education-line,
.experience-line {
  display: block;
  width: 2px;
  height: 110%;
  background-color: var(--text-color-light);
  transform: translateX(7px);
}

.education-data,
.experience-data {
  gap: 0.5rem;
}

.education-title,
.experience-title {
  font-size: var(--h3-font-size);
}

.education-studies,
.experience-company {
  color: var(--title-color);
  font-size: var(--small-font-size);
}

.education-year {
  font-size: var(--smaller-font-size);
}


/* ========================================
   SKILLS & LANGUAGES
======================================== */

.skills-content,
.languages-content {
  grid-template-columns: repeat(2, 1fr);
}

.languages-content {
  gap: 0;
}

.skills-name,
.languages-name {
  display: flex;
  align-items: center;
  margin-bottom: var(--m3);
}

.skills-circle,
.languages-circle {
  display: inline-block;
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  margin-right: 0.75rem;
  border-radius: 50%;
  background-color: var(--text-color);
}


/* ========================================
   INTERESTS
======================================== */

.interests-container {
  grid-template-columns: repeat(3, 1fr);
  margin-top: var(--m2);
}

.interests-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.interests-icon {
  color: var(--text-color-light);
  font-size: 1.5rem;
}


/* ========================================
   THEME & PDF CONTROLS
======================================== */

.change-theme {
  position: absolute;
  top: 2.2rem;
  right: 0;
  display: flex;
  color: var(--text-color);
  font-size: 1.2rem;
  cursor: pointer;
}

.change-theme:hover {
  color: var(--title-color);
}

.generate-pdf {
  position: absolute;
  top: 2.2rem;
  left: 0;
  display: none !important;
  color: var(--text-color);
  font-size: 1.2rem;
  cursor: pointer;
}

.generate-pdf:hover {
  color: var(--title-color);
}


/* ========================================
   SCROLL TO TOP
======================================== */

.scrolltop {
  position: fixed;
  right: 1rem;
  bottom: -20%;
  z-index: var(--z-tooltip);
  display: flex;
  visibility: hidden;
  align-items: center;
  justify-content: center;
  padding: 0.3rem;
  border-radius: 0.4rem;
  background-color: var(--container-color-alt);
  transition: 0.4s;
}

.scrolltop-icon {
  color: var(--text-color);
  font-size: 1.2rem;
}

.show-scroll {
  bottom: 5rem;
  visibility: visible;
}


/* ========================================
   PDF / CV SCALING
======================================== */

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;
}

.scale-cv .change-theme,
.scale-cv .generate-pdf {
  display: none !important;
}

.scale-cv .bd-container {
  max-width: 595px;
}

.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 {
  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: translateX(5px);
}

.scale-cv .education-data,
.scale-cv .experience-data {
  gap: 0.25rem;
}

.scale-cv .skills-name {
  margin-bottom: var(--m1);
}

.scale-cv .interests-container {
  column-gap: 2rem;
}


/* ========================================
   RESPONSIVE DESIGN
======================================== */

/* Small mobile screens */

@media screen and (max-width: 330px) {
  .nav-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 0.5rem;
  }
}


/* Desktop */

@media screen and (min-width: 968px) {
  body {
    margin: 3rem 0;
  }

  .l-header,
  .scrolltop {
    display: none;
  }

  .resume {
    display: grid;
    grid-template-columns: 0.5fr 1fr;
    border-radius: 20px;
    background-color: var(--container-color);
    box-shadow: 0 0 8px rgba(13, 12, 12, 0.15);
  }

  .resume-left {
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    background-color: var(--container-color-alt);
  }

  .resume-right {
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
  }

  .resume-left,
  .resume-right {
    padding: 0 1.5rem;
  }

  .section-title,
  .profile-description {
    text-align: initial;
  }

  .generate-pdf {
    display: inline-block !important;
  }

  .home-container {
    gap: 1.5rem;
  }

  .home-button-mobile {
    display: none;
  }

  .languages-content {
    grid-template-columns: max-content;
    column-gap: 3.5rem;
  }

  .interests-container {
    grid-template-columns: repeat(5, max-content);
    column-gap: 3.5rem;
  }
}
