/*Face font*/
/* ================= IBM Plex Mono ================= */

/* Thin */
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/IBM_Plex_Mono/IBMPlexMono-Thin.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/IBM_Plex_Mono/IBMPlexMono-ThinItalic.ttf') format('truetype');
  font-weight: 100;
  font-style: italic;
  font-display: swap;
}

/* ExtraLight */
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/IBM_Plex_Mono/IBMPlexMono-ExtraLight.ttf') format('truetype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/IBM_Plex_Mono/IBMPlexMono-ExtraLightItalic.ttf') format('truetype');
  font-weight: 200;
  font-style: italic;
  font-display: swap;
}

/* Light */
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/IBM_Plex_Mono/IBMPlexMono-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/IBM_Plex_Mono/IBMPlexMono-LightItalic.ttf') format('truetype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

/* Regular */
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/IBM_Plex_Mono/IBMPlexMono-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/IBM_Plex_Mono/IBMPlexMono-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* Medium */
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/IBM_Plex_Mono/IBMPlexMono-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/IBM_Plex_Mono/IBMPlexMono-MediumItalic.ttf') format('truetype');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

/* SemiBold */
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/IBM_Plex_Mono/IBMPlexMono-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/IBM_Plex_Mono/IBMPlexMono-SemiBoldItalic.ttf') format('truetype');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

/* Bold */
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/IBM_Plex_Mono/IBMPlexMono-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/IBM_Plex_Mono/IBMPlexMono-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* ================= IBM Plex Sans ================= */

/* Thin */
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/IBM_Plex_Sans/IBMPlexSans-Thin.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/IBM_Plex_Sans/IBMPlexSans-ThinItalic.ttf') format('truetype');
  font-weight: 100;
  font-style: italic;
  font-display: swap;
}

/* ExtraLight */
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/IBM_Plex_Sans/IBMPlexSans-ExtraLight.ttf') format('truetype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/IBM_Plex_Sans/IBMPlexSans-ExtraLightItalic.ttf') format('truetype');
  font-weight: 200;
  font-style: italic;
  font-display: swap;
}

/* Light */
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/IBM_Plex_Sans/IBMPlexSans-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/IBM_Plex_Sans/IBMPlexSans-LightItalic.ttf') format('truetype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

/* Regular */
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/IBM_Plex_Sans/IBMPlexSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/IBM_Plex_Sans/IBMPlexSans-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* Medium */
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/IBM_Plex_Sans/IBMPlexSans-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/IBM_Plex_Sans/IBMPlexSans-MediumItalic.ttf') format('truetype');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

/* SemiBold */
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/IBM_Plex_Sans/IBMPlexSans-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/IBM_Plex_Sans/IBMPlexSans-SemiBoldItalic.ttf') format('truetype');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

/* Bold */
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/IBM_Plex_Sans/IBMPlexSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/IBM_Plex_Sans/IBMPlexSans-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}



/*Variables*/

:root {
  /* colors */
  --color-primary: #f7be17;
  --color-secondary: #5e6066;
  --color-success: #39a65e;
  --color-info: #17a2b8;
  --color-warning: #e2c0;
  --color-danger: #a73847;
  --color-light: #f1f1f1;
  --color-50: #f1f1f1;
  --color-400: #afafaf;
  --color-600: #7c7c7c;
  --color-800: #545454;
  --color-900: #404040;

  /* fonts */
  --font-sans: "IBM Plex Sans", "Helvetica Neue", sans-serif;
  --font-serif: "Georgia", serif;
  --font-mono: "IBM Plex Mono", monospace;

  --font-base: var(--font-sans);
  --font-heading: var(--font-mono);
  --font-code: var(--font-mono);
  font-size: 20px;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 300;
  margin: 0;
}
h1 {
  font-size: 3rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.4rem;
}

nav {
  z-index: 9;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin: 0;
}

nav ul li a {
  display: inline-block;
  padding: 1rem 1.5rem;
  font-size: 1.6rem;
  font-weight: 400;
  font-family: var(--font-mono);
  color: var(--color-dark);
  text-decoration: none;
}
footer {
  background-color: var(--color-light);
  z-index: 2;
}
footer ul {
  list-style: none;
  margin: 0 0rem;
  padding: 0;
  display: flex;
}

footer ul li {
  margin: 0 1rem;
}

footer ul li a {
  display: block;
  padding: 1rem 1.5rem;
  font-size: 1.4rem;
  color: var(--color-dark);
  text-decoration: none;
}

footer ul li a img {
  width: 2rem;
}

.grid-layout {
  display: grid;
  grid-template-columns: 1fr 70%;
  gap: 1rem;
  height: calc(100vh - 77px);
}

/* page about */
#intro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 4rem 4rem 0rem;
}

#intro #subtitle {
  color: var(--color-600);
  font-size: 2rem;
}
#subtitle {
  display: block;
}

#intro img {
  width: 60%;
}

#intro nav button {
  display: none;
}

#aboutme {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 4rem;
  margin: 4rem 4rem 0rem;
}

#aboutme h2 {
  font-size: 1.4rem;
}

#aboutme h3 {
  font-size: 2rem;
}

#aboutme ul li {
  line-height: 3rem;
}

/* page experiences */

#experiences {
  padding: 4rem 0 0 0;
  height: auto;
  overflow-x: auto;
}

.experience {
  display: flex;
  flex-direction: row;
  position: relative;
  padding-bottom: 3rem;
}

.experience .content {
  width: 100%;
}

#experiences .experience .content span {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

#experiences .experience .content span h3,
#experiences .experience .content span h2 {
  font-size: 1.4rem;
  font-weight: 400;
}

.experience:first-of-type .timeline::after {
  height: 94%;
  bottom: 0;
}
.timeline {
  width: 3rem;
}
.timeline::before {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background-color: var(--color-primary);
  content: "";
  top: 5.5%;
  left: 0;
  z-index: 5;
  margin-top: -5.5px;
}

.timeline::after {
  position: absolute;
  width: 3px;
  height: 100%;
  content: "";
  background-color: var(--color-light);
  bottom: 0;
  left: 4px;
  z-index: 1;
}

.content p span {
  display: block;
}

/* page education */

#education {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 1rem;
  justify-items: start;
  align-items: center;
}

article.course {
  min-width: 250px;
}

.course p span {
  display: block;
}

#education .course .content h2 {
  font-size: 1.4rem;
}

/* helper styles */

.uppercase {
  text-transform: uppercase;
}

.regular {
  font-weight: 400;
}

.bold {
  font-weight: 800;
}

.font-primary {
  color: var(--color-primary);
}

/* desktops in 1080p */
@media (min-width: 1280px) and (max-width: 1920px) {
  :root {
    font-size: 18px;
  }
  .grid-layout {
    height: calc(100vh - 69px);
  }
  #aboutme h3 {
    margin: 2rem 0 0 0;
  }
  footer ul li a img {
    width: 1.6rem;
  }
  footer ul {
    list-style: none;
    margin: 0rem;
    padding: 0;
    display: flex;
  }

  footer ul li {
    margin: 0 1rem;
  }

  footer ul li a {
    display: block;
    padding: 1rem 1.5rem;
    font-size: 1.4rem;
    color: var(--color-dark);
    text-decoration: none;
  }
}

/* Monitores 2560x1440 (viewport útil ~2460x1360) */
@media screen and (min-width: 2460px) and (min-height: 1360px) {
}

/* Monitores 1920x1080 (viewport útil ~1840x1000) */
@media screen and (min-width: 1840px) and (min-height: 1000px) {
}

/* Notebooks 14" (viewport útil ~1280x720 até 1536x860) */
@media screen and (min-width: 1280px) and (max-width: 1536px) {
  :root {
    font-size: 16px;
  }
  /*About me*/
  #aboutme {
    justify-content: flex-start;
  }

  /*Education*/
  #education {
    display: grid;
    align-items: start;
    padding-top: 4rem;
  }
}

/* Tablets em landscape (viewport útil 740px até 980px) */
@media screen and (min-width: 980px) and (max-width: 1200px) and (orientation: landscape) {
  :root {
    font-size: 18px;
  }
  h1 {
    font-size: 1.6rem;
  }
  h2 {
    font-size: 1.3rem;
  }
  h3 {
    font-size: 1.1rem;
  }
  .grid-layout {
    display: grid;
    height: calc(100vh - 77px);
  }
  /*about me*/
  #aboutme ul li {
    line-height: 1.4rem;
    margin-bottom: 0.6rem;
  }
  #intro {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 2rem 2rem 0rem;
  }

  nav ul li a {
    padding: 0.6rem 0.8rem;
    font-size: 1.2rem;
  }

  footer ul {
    margin: 0rem;
    justify-content: space-evenly;
  }
  /*about me*/
  #aboutme {
    margin: 2rem 2rem 0rem;
    height: calc(100% - 36px);
    overflow-y: auto;
    justify-content: flex-start;
  }
  #aboutme h3 {
    margin: 2rem 0 0 0;
  }

  /*experiences*/
  #experiences {
    padding: 2rem 2rem 0 0;
  }

  /*education*/

  #education {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    padding: 2rem 0rem 0rem;
    overflow-y: auto;
  }

  /*projects*/
  #projects {
    width: calc(100% - 107px);
    margin-top: 2rem;
  }
}

/* Tablets em portrait (viewport útil 740px até 980px) */
@media screen and (min-width: 740px) and (max-width: 980px) and (orientation: portrait) {
  :root {
    font-size: 18px;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.6rem;
  }
  h3 {
    font-size: 1.2rem;
  }
  .grid-layout {
    grid-template-columns: 1fr;
    min-height: calc(100vh - 78px);
    height: auto;
  }
  nav {
    position: fixed;
    background: var(--color-light);
    top: 0rem;
    right: 0;
    width: 100%;
  }
  #intro {
    margin: auto;
    padding: 7rem 2rem 0rem;
    align-items: center;
  }

  #intro nav button#menu {
    font-size: 1rem;
    padding: 1rem 1.5rem;
    border: 0;
    font-size: 1.6rem;
    font-weight: 800;
    font-family: var(--font-mono);
    background-color: var(--color-light);
    color: var(--color-900);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    gap: 1rem;
  }
  #intro nav button {
    display: block;
    cursor: pointer;
  }
  #intro nav button#menu img {
    width: 1.8rem;
  }
  #intro nav #menu-bar.menu-show {
    display: block;
  }
  #intro nav #menu-bar {
    display: none;
  }
  #intro #avatar {
    border-radius: 100%;
    width: 60%;
    background-color: var(--color-light);
    margin: 2rem;
  }

  footer ul li {
    margin: 0;
  }
  footer ul {
    margin: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
  }

  /*about me*/
  #aboutme ul li {
    line-height: 1.4rem;
    margin-bottom: 0.6rem;
  }

  /*experiences*/
  #experiences {
    padding: 4rem 3rem;
  }
  .timeline::before {
    left: 20px;
  }
  .timeline::after {
    left: 24px;
  }
  /*education*/
  #education {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    justify-items: center;
  }
  article.course {
    min-width: 250px;
  }

  /*projects*/
  #projects {
    padding: 4rem 3rem;
  }
}

/* Celulares em portrait (viewport útil até ~720px, cobrindo 375px a 480px comuns) */
@media screen and (max-width: 720px) and (orientation: portrait) {
  :root {
    font-size: 18px;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.6rem;
  }
  h3 {
    font-size: 1.2rem;
  }
  .grid-layout {
    grid-template-columns: 1fr;
    min-height: calc(100vh - 78px);
    height: auto;
  }
  nav {
    position: fixed;
    background: var(--color-light);
    top: 0rem;
    right: 0;
    width: 100%;
  }
  #intro {
    margin: auto;
    padding: 7rem 2rem 0rem;
    align-items: center;
  }

  #intro nav button#menu {
    font-size: 1rem;
    padding: 1rem 1.5rem;
    border: 0;
    font-size: 1.6rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--color-dark);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    gap: 1rem;
  }
  #intro nav button {
    display: block;
    cursor: pointer;
  }
  #intro nav button#menu img {
    width: 1.8rem;
  }
  #intro nav #menu-bar.menu-show {
    display: block;
  }
  #intro nav #menu-bar {
    display: none;
  }
  #intro #avatar {
    border-radius: 100%;
    width: 60%;
    background-color: var(--color-light);
    margin: 2rem;
  }

  footer ul li {
    margin: 0;
  }
  footer ul {
    margin: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
  }

  /*about me*/

  #aboutme {
    margin: 4rem 2rem 0rem;
  }

  #aboutme ul li {
    line-height: 1.4rem;
    margin-bottom: 0.6rem;
  }

  /*experiences*/
  #experiences {
    padding: 4rem 3rem;
  }
  .timeline::before {
    left: 20px;
  }
  .timeline::after {
    left: 24px;
  }
  /*education*/
  #education {
    grid-template-columns: repeat(1, 1fr);
    grid-template-rows: repeat(5, 1fr);
    justify-items: center;
  }
  article.course {
    min-width: 250px;
  }

  /*projects*/
  #projects {
    padding: 4rem 3rem;
  }
}
