* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;

  font-family: "DM Sans", sans-serif;
}

:root {
  --hue: 210;
  --primary-color: hsl(var(--hue), 100%, 50%);
  --primary-hover: hsl(var(--hue), 100%, 40%);
  --secundary-color: hsl(0, 0%, 5%);
  --third-color: hsla(0, 0%, 100%, 0.1);
  --bg-color: hsl(0, 0%, 8%);

  --headline: hsl(0, 0%, 100%);
  --paragraph: hsla(0, 0%, 100%, 0.658);
  --paragraph-2: hsl(calc(var(--hue) + 10), 14%, 97%);

  font-size: 62.5%;

  --nav-height: 7.2rem;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  font-size: 1.6rem;
  text-align: center;

  overflow: overlay;

  background-color: var(--bg-color);
}

body.light-mode {
  --secundary-color: rgb(229, 229, 229);
  --third-color: hwb(0 48% 52% / 0.356);
  --bg-color: rgb(241, 241, 241);

  --headline: hsl(0, 0%, 0%);
  --paragraph: rgb(32, 32, 32);
  --paragraph-2: hsl(calc(var(--hue) + 10), 14%, 3%);
}

::-webkit-scrollbar {
  width: 0.8rem;
}

::-webkit-scrollbar-track {
  border-radius: 1rem;
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  border-radius: 1rem;
  background: var(--paragraph);
}

.wrapper {
  width: min(50rem, 100%);

  margin-inline: auto;
  padding-inline: 2.4rem;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  color: var(--paragraph);
}

section {
  padding-block: 10rem;
  padding-inline: 2rem;
}

section h4 {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 150%;
  letter-spacing: 0.08rem;
  color: var(--primary-color);
  text-transform: uppercase;

  margin-bottom: 1.6rem;
}

section header h2 {
  font-size: 3rem;
  line-height: 3.9rem;

  color: var(--primary-color);
}

section h3 {
  color: var(--headline);
}

section p,
section span {
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 130%;

  color: var(--paragraph);
}

.button {
  background: none;
  border: 0.2rem solid var(--primary-color);

  margin-bottom: 6rem;
  padding: 1.4rem 3rem;

  width: fit-content;

  color: var(--primary-color);
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;

  position: relative;

  transition: 400ms;
}

body.light-mode .button,
body.light-mode #home h4 {
  filter: brightness(0.8);
}

.button:hover {
  color: #fff;
  background-color: var(--primary-hover);
  border: 0.2rem solid var(--primary-hover);
  cursor: pointer;
}

body.light-mode .button:hover {
  filter: none;
}

/* LOADING SCREEN */

#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s, visibility 0.5s;
}

#loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader {
  width: 50px;
  height: 50px;
  border: 5px solid var(--third-color);
  border-top: 5px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* SOCIAL LINKS */

.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

.social-links li {
  height: 3rem;
}

.social-links svg {
  margin-top: 0.3rem;
  transition: 300ms;
}

.social-links li:nth-child(2) svg {
  width: 2.7rem;
  height: 2.7rem;
}

.social-links svg:hover {
  margin-top: 0;
  margin-bottom: 0.3rem;
}

body .social-links li svg path {
  transition: 200ms;
}

body nav#navigation .social-links li:nth-child(1) svg:hover path,
body .social-links li:nth-child(1) svg:hover path {
  stroke: #ff377a;
}

body .social-links li:nth-child(2) svg:hover path:nth-child(2),
body nav#navigation .social-links li:nth-child(2) svg:hover path:nth-child(2) {
  fill: #fff;
}

body.light-mode .social-links li:nth-child(2) svg:hover path:nth-child(2),
body.light-mode
  nav#navigation
  .social-links
  li:nth-child(2)
  svg:hover
  path:nth-child(2) {
  fill: #000;
}

body .social-links li:nth-child(3) svg:hover path:nth-child(2),
body nav#navigation .social-links li:nth-child(3) svg:hover path:nth-child(2) {
  fill: #0a66c2;
}

body .social-links li:nth-child(4) svg:hover path:nth-child(2),
body nav#navigation .social-links li:nth-child(4) svg:hover path:nth-child(2) {
  fill: #00abf0;
}

/* == == */

#projects .card circle {
  fill: var(--secundary-color);
}

#backToTopButton circle {
  fill: var(--primary-color);
}

#contact li path,
#navigation button.open-menu path[stroke*="#00856F"] {
  stroke: var(--primary-color);
}

#navigation.scroll button.open-menu path[stroke*="#00856F"] {
  stroke: var(--paragraph-2);
}

/*===== NAVIGATION ===================================*/

nav {
  width: 100vw;
  height: var(--nav-height);

  display: flex;

  position: fixed;
  top: 0;
  z-index: 100;
  
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(1rem);
  -webkit-backdrop-filter: blur(1rem);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

body.light-mode nav {
  background: rgba(241, 241, 241, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav .wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav.scroll {
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(1rem);
  -webkit-backdrop-filter: blur(1rem);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

body.light-mode nav.scroll {
  background: rgba(241, 241, 241, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* LOGO */

a.logo {
  font-family: "Gemunu Libre", sans-serif;
  font-size: 3rem;
  opacity: 0.7;
}

nav#navigation a.logo {
  color: var(--primary-color);
}

body.light-mode nav#navigation a.logo,
body.light-mode footer a.logo {
  font-weight: bold;
}

footer a.logo,
nav#navigation.scroll a.logo,
body.menu-expanded nav#navigation a.logo,
body.light-mode.menu-expanded nav#navigation.scroll a.logo {
  color: #fff;
}

body.menu-expanded nav#navigation a.logo {
  opacity: 1;
}

body.light-mode nav#navigation a.logo {
  filter: brightness(0.8);
}

body.light-mode footer a.logo,
body.light-mode nav#navigation.scroll a.logo {
  color: #000;
}

/* == == */

nav#navigation .menu ul li a {
  color: #fff;
}

nav button {
  background: none;
  border: none;
  cursor: pointer;
}

nav .menu,
nav .close-menu {
  position: fixed;
}

/*===== MENU-EXPANDED ==========================================*/

body.menu-expanded {
  overflow: hidden;
}

body.menu-expanded nav#navigation.scroll {
  background: none;
  backdrop-filter: none;
}

.menu,
.close-menu,
body.menu-expanded .open-menu {
  opacity: 0;
  visibility: hidden;
}

body.menu-expanded .menu,
body.menu-expanded .close-menu {
  opacity: 1;
  visibility: visible;
}

.menu {
  transform: translateX(100%);
}

body.menu-expanded .menu,
body.menu-expanded nav.scroll .menu {
  top: 0;
  left: 0;

  background: rgba(0, 0, 0, 0.98);
  backdrop-filter: blur(2rem);
  -webkit-backdrop-filter: blur(2rem);

  width: 100vw;
  height: 100vh;

  padding-top: var(--nav-height);

  transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(0);
  
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.menu ul:nth-child(1) {
  display: flex;
  flex-direction: column;
  gap: 4rem;

  margin: 0;
  padding: 0;

  font-weight: 700;
  font-size: 2.4rem;
  line-height: 3.5rem;
  text-align: center;
}

.menu ul:nth-child(1) li {
  opacity: 0;
  transform: translateY(20px);
  animation: menuItemFadeIn 0.5s forwards;
}

.menu ul:nth-child(1) li:nth-child(1) { animation-delay: 0.1s; }
.menu ul:nth-child(1) li:nth-child(2) { animation-delay: 0.2s; }
.menu ul:nth-child(1) li:nth-child(3) { animation-delay: 0.3s; }
.menu ul:nth-child(1) li:nth-child(4) { animation-delay: 0.4s; }
.menu ul:nth-child(1) li:nth-child(5) { animation-delay: 0.5s; }

@keyframes menuItemFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.menu ul:nth-child(1) li a {
  padding: 1rem 2rem;
  display: inline-block;
  transition: all 300ms;
  position: relative;
}

.menu ul:nth-child(1) li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--primary-color);
  transition: width 300ms;
}

.menu ul:nth-child(1) li a:hover::after {
  width: 80%;
}

.menu ul:nth-child(1) li a:hover {
  color: var(--primary-color);
  transform: scale(1.05);
}

body.menu-expanded nav .logo,
body.menu-expanded button {
  position: relative;
  z-index: 100;
}

body.menu-expanded button path {
  stroke: white;
}

.menu .social-links {
  margin-top: 6rem;
  opacity: 0;
  animation: menuItemFadeIn 0.5s 0.5s forwards;
}

.menu .social-links svg {
  width: 3rem;
  height: 3rem;
  transition: all 300ms;
}

.menu .social-links li:nth-child(2) svg {
  width: 3.5rem;
  height: 3.5rem;
}

.menu .social-links svg:hover {
  transform: translateY(-5px) scale(1.2);
}

/*===== HOME ===================================*/

#home {
  height: 100vh;
  min-height: calc(60rem + var(--nav-height));
  padding-block: 0;
  padding-top: var(--nav-height);

  background-color: var(--secundary-color);

  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto;
}

#home .wrapper {
  height: 53rem;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6rem;

  position: relative;
  z-index: 2;
}

#home h1 {
  font-size: 4.5rem;
  color: var(--headline);
  line-height: 110%;

  margin-bottom: 1rem;
}

#home p {
  display: inline-flex;

  font-size: 1.8rem;
  line-height: 150%;
  font-weight: bold;

  margin-bottom: 3.2rem;
}

#home .line {
  border-right: 0.2rem solid var(--primary-color);
  white-space: nowrap;
  overflow: hidden;
}

#home .typing {
  animation: line-typing 500ms steps(40) infinite normal,
    typing 2s steps(40) 1.4s normal backwards;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 27.5rem;
  }
}

@keyframes line-typing {
  from {
    border-right-color: var(--primary-color);
  }
  to {
    border-right-color: transparent;
  }
}

#home .button {
  margin-inline: auto;
}

#home .col-b {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  position: relative;
}

#home .computer-wrapper {
  position: relative;
  width: 40rem;
  animation: flutuar 3s infinite backwards;
}

#home .computer-img {
  width: 100%;
  display: block;
}

#home .tech-icons-flying {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
}

#home .tech-icon {
  position: absolute;
  font-size: 3rem;
  opacity: 0;
  animation: flyOut 3s infinite;
}

#home .html-icon {
  color: #E34F26;
  left: 40%;
  animation-delay: 0s;
}

#home .css-icon {
  color: #1572B6;
  left: 50%;
  animation-delay: 0.6s;
}

#home .js-icon {
  color: #F7DF1E;
  left: 45%;
  animation-delay: 1.2s;
}

#home .java-icon {
  color: #F89820;
  left: 52%;
  animation-delay: 1.8s;
}

#home .react-icon {
  color: #61DAFB;
  left: 55%;
  animation-delay: 2.2s;
}

#home .db-icon {
  color: #4479A1;
  left: 48%;
  animation-delay: 2.6s;
}

@keyframes flyOut {
  0% {
    top: 30%;
    opacity: 0;
    transform: translateX(-50%) scale(0.5);
  }
  20% {
    opacity: 1;
  }
  100% {
    top: -50%;
    opacity: 0;
    transform: translateX(-50%) scale(1.2) rotate(15deg);
  }
}

@keyframes flutuar {
  0% {
    transform: translateY(2rem);
  }
  50% {
    transform: translateY(-2rem);
  }
  100% {
    transform: translateY(2rem);
  }
}

/*===== ABOUT =================================================*/

#about {
  text-align: left;
}

#about .content p {
  margin-block: 2.4rem;
}

#about .content a {
  text-decoration: none;
  color: var(--paragraph);
  font-weight: bold;
}

#about .col-a {
  margin-bottom: 6rem;
}

#about .col-b {
  text-align: left;
}

#about img {
  width: 38rem;

  border-radius: 2rem;
  box-shadow: 0 0 2rem black;

  transition: 600ms;
  filter: grayscale(30%) brightness(0.9);
}

#about img:hover {
  filter: grayscale(0%) brightness(1);
}

/*===== EXPERIENCE TIMELINE =================================================*/

#experience {
  background-color: var(--bg-color);
}

#experience header {
  margin-bottom: 6rem;
}

#experience .timeline {
  position: relative;
  max-width: 80rem;
  margin: 0 auto;
}

#experience .timeline::before {
  content: '';
  position: absolute;
  left: 2rem;
  top: 0;
  bottom: 0;
  width: 0.3rem;
  background: var(--primary-color);
}

#experience .timeline-item {
  position: relative;
  padding-left: 6rem;
  margin-bottom: 4rem;
}

#experience .timeline-dot {
  position: absolute;
  left: 1.1rem;
  top: 0.5rem;
  width: 1.8rem;
  height: 1.8rem;
  background: var(--primary-color);
  border: 0.4rem solid var(--bg-color);
  border-radius: 50%;
  box-shadow: 0 0 0 0.3rem var(--primary-color);
  z-index: 1;
}

#experience .timeline-content {
  background: var(--secundary-color);
  padding: 2.5rem;
  border-radius: 1rem;
  box-shadow: -0.5rem 0.5rem 2rem rgba(0, 0, 0, 0.2);
  transition: transform 400ms, box-shadow 400ms;
  text-align: left;
}

#experience .timeline-content:hover {
  transform: translateX(1rem);
  box-shadow: 0 1rem 2.5rem rgba(0, 123, 255, 0.2);
}

#experience .timeline-date {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: var(--primary-color);
  color: #fff;
  border-radius: 2rem;
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

#experience .timeline-content h3 {
  font-size: 2.2rem;
  color: var(--headline);
  margin-bottom: 0.5rem;
}

#experience .timeline-content h4 {
  font-size: 1.6rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-weight: normal;
}

#experience .timeline-content p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

#experience .tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

#experience .tech-tag {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: var(--third-color);
  color: var(--paragraph);
  border-radius: 0.5rem;
  font-size: 1.3rem;
  font-weight: 500;
  transition: background 300ms;
}

#experience .tech-tag:hover {
  background: var(--primary-color);
  color: #fff;
}

/*===== PROJECTS ===============================================*/

#projects {
  background-color: var(--secundary-color);
}

#projects header {
  margin-bottom: 6rem;
}

#projects header h2 {
  margin-bottom: 1.6rem;
}

#projects .cards {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 3.2rem;
}

#projects .card {
  padding: 4rem;
  background: var(--bg-color);

  border-radius: 0.6rem;
  box-shadow: -1rem 1rem 1rem rgba(0, 0, 0, 0.267);

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;

  transition: 400ms;
}

#projects .card:hover {
  background: var(--third-color);
}

#projects .card .img-wrapper {
  width: 100%;
  position: relative;
  min-height: 24rem;

  display: flex;
  align-items: center;
  justify-content: center;
}

#projects .card img {
  width: 100%;
  max-width: 26rem;
  height: 16rem;
  object-fit: contain;
  border-radius: 0.6rem;
  filter: drop-shadow(0 1.4rem 2.4rem rgba(0, 0, 0, 0.24));

  transition: 300ms;
}

#projects .card:hover > .img-wrapper img {
  filter: opacity(0.45) drop-shadow(0 1.4rem 2.4rem rgba(0, 0, 0, 0.24));
}

#projects .card .buttons {
  visibility: hidden;
  opacity: 0;

  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);

  display: flex;
  justify-content: center;
  gap: 1rem;

  transition: 400ms;
}

#projects .card:hover > .img-wrapper .buttons {
  visibility: visible;
  opacity: 1;
}

#projects .card .buttons a svg {
  width: 4rem;
  height: 4rem;
}

#projects .card .buttons a svg path:nth-child(2) {
  fill: #000;
  transition: 200ms;
}

#projects .card .buttons a:hover svg path:nth-child(2) {
  fill: #fff;
}

#projects .card .buttons a {
  background: #fff;
  border-radius: 50%;

  width: 6rem;
  height: 6rem;

  display: flex;
  justify-content: center;
  align-items: center;

  transition: 500ms;
}

#projects .card .buttons a:hover {
  background-color: #000;
  cursor: pointer;
}

#projects .card .buttons a:hover > svg {
  fill: #fff;
}

#projects .card:nth-child(8) svg path:nth-child(2) {
  fill: var(--paragraph);
}

#projects .button {
  margin: 6rem auto 0;
}

/*===== KNOWLEDGE ===============================================*/

#knowledge header h2 {
  margin-bottom: 6rem;
}

#knowledge .cards {
  display: flex;
  flex-direction: column;
  gap: 3.2rem;
}

#knowledge .card {
  padding: 2.8rem;
  text-align: left;

  background: var(--secundary-color);

  border-radius: 0.6rem;
  box-shadow: -1rem 1rem 1rem rgba(0, 0, 0, 0.267);

  transition: all 400ms;
}

#knowledge .card:hover {
  background: var(--third-color);
  transform: translateY(-0.5rem);
  box-shadow: 0 1rem 2rem rgba(0, 123, 255, 0.2);
}

#knowledge .card h3 {
  margin-block: 1.6rem;
}

#knowledge .card img {
  width: 10rem;
}

/*===== TESTIMONIALS ===============================================*/

#testimonials {
  background-color: var(--secundary-color);
}

#testimonials header {
  margin-bottom: 6rem;
  text-align: center;
}

#testimonials header p {
  margin-top: 1rem;
  font-size: 1.8rem;
}

#testimonials .testimonials-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 3rem;
  margin-bottom: 6rem;
}

#testimonials .testimonial-card {
  background: var(--bg-color);
  padding: 3rem;
  border-radius: 1rem;
  box-shadow: -0.5rem 0.5rem 2rem rgba(0, 0, 0, 0.2);
  transition: transform 400ms, box-shadow 400ms;
  text-align: left;
}

#testimonials .testimonial-card:hover {
  transform: translateY(-1rem);
  box-shadow: 0 1rem 2.5rem rgba(0, 123, 255, 0.3);
}

#testimonials .quote-icon {
  margin-bottom: 2rem;
  opacity: 0.3;
}

#testimonials .testimonial-text {
  font-size: 1.6rem;
  line-height: 1.8;
  color: var(--paragraph);
  margin-bottom: 2rem;
  font-style: italic;
}

#testimonials .testimonial-author {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 0.1rem solid var(--third-color);
}

#testimonials .author-info h4 {
  font-size: 1.7rem;
  color: var(--headline);
  margin-bottom: 0.5rem;
}

#testimonials .author-info span {
  font-size: 1.4rem;
  color: var(--primary-color);
}

#testimonials .certifications {
  margin-top: 6rem;
}

#testimonials .certifications h3 {
  text-align: center;
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 4rem;
}

#testimonials .cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  gap: 2.5rem;
}

#testimonials .cert-item {
  background: var(--bg-color);
  padding: 2.5rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: -0.5rem 0.5rem 1.5rem rgba(0, 0, 0, 0.2);
  transition: all 400ms;
}

#testimonials .cert-item:hover {
  transform: translateY(-0.5rem) scale(1.02);
  box-shadow: 0 1rem 2rem rgba(0, 123, 255, 0.2);
}

#testimonials .cert-item i {
  margin-bottom: 1.5rem;
}

#testimonials .cert-item p {
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--headline);
  margin-bottom: 0.8rem;
}

#testimonials .cert-item span {
  font-size: 1.4rem;
  color: var(--paragraph);
}

/*===== CONTACT ===============================================*/

#contact {
  text-align: left;
  background-color: var(--secundary-color);
}

#contact .col-a {
  display: flex;
  flex-direction: column;
  align-items: center;

  margin-bottom: 2rem;
}

#contact .col-a .content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#contact header {
  margin-bottom: 3.2rem;
}

#contact ul {
  margin-bottom: 2rem;
}

#contact ul a,
#about .content a:nth-child(2) {
  width: fit-content;

  text-decoration: none;

  display: flex;
  align-items: center;
  gap: 1rem;

  padding: 1rem;
  border-radius: 0.8rem;

  transition: 300ms;
}

#contact ul a {
  color: var(--paragraph);
}

#contact ul a i {
  color: var(--primary-color);
}

#contact ul a:hover {
  background: var(--third-color);
}

#contact a path {
  transition: 400ms;
}

#contact a.button path {
  fill: var(--primary-color);
}

#contact a.button:hover path {
  fill: #fff;
}

#contact .col-b {
  height: 38rem;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

#contact .phone-illustration {
  animation: flutuar 2.5s infinite backwards;
}

/*===== FOOTER ===============================================*/

footer {
  background-color: var(--secundary-color);

  text-align: left;
  color: var(--paragraph);
}

footer .wrapper {
  padding-block: 6rem;
  border-top: 0.1rem solid var(--paragraph);
}

footer .logo {
  display: inline-block;
  margin-bottom: 2.4rem;
  opacity: 0.6;
}

footer a img:nth-child(2),
body.light-mode footer a img:nth-child(1) {
  display: none;
}

body.light-mode footer a img:nth-child(2) {
  display: initial;
}

footer p {
  line-height: 2;

  margin-bottom: 3.2rem;
}

footer .social-links {
  justify-content: flex-start;
}

footer .social-links li:nth-child(1) svg path {
  stroke: var(--paragraph-2);
}

footer .social-links li:nth-child(2) svg path:nth-child(2),
footer .social-links li:nth-child(3) svg path:nth-child(2),
footer .social-links li:nth-child(4) svg path:nth-child(2) {
  fill: var(--paragraph-2);
}

/*===== SWITCH MODE TOGGLE =====================================*/

#toggle {
  display: flex;

  position: fixed;
  bottom: 2rem;
  left: 2.5rem;
}

#toggle input {
  position: absolute;
  visibility: hidden;
}

#toggle label {
  width: 8rem;
  height: 4rem;

  background-color: var(--secundary-color);
  border: 0.1rem solid var(--primary-color);
  border-radius: 5rem;

  display: flex;
  align-items: center;
  justify-content: space-around;
}

#toggle label:hover {
  cursor: pointer;
}

#toggle label::before {
  content: "";
  display: block;

  width: 3rem;
  height: 3rem;

  background-color: var(--primary-color);
  border-radius: 50%;

  position: absolute;
  bottom: 0.5rem;
  left: 0.6rem;
  transform: translateX(0);

  transition: 500ms;
}

#toggle input:checked + label::before {
  transform: translateX(3.8rem);
}

/*===== BACK TO TOP BUTTON =====================================*/

#backToTopButton {
  position: fixed;
  bottom: 1.5rem;
  right: 2.5rem;

  opacity: 0;
  visibility: hidden;

  transition: 200ms;
  transform: translateY(100%);
}

#backToTopButton.show {
  opacity: 1;
  visibility: visible;

  transform: translateY(0);
}

/*===== RESPONSIVO (DESKTOP) ====================================*/

@media (min-width: 1024px) {
  /*===== GERAL =======================================*/

  body {
    overflow: auto;
  }

  .wrapper {
    width: min(112rem, 100%);
    display: grid;
  }

  section {
    padding-block: 13rem;
  }

  body section h2 {
    font-size: 4rem;
    line-height: 5.2rem;
  }

  .col-a {
    grid-area: A;
  }

  .col-b {
    grid-area: B;
  }

  /*===== NAVEGATION ==================================*/

  /*Reset*/
  nav#navigation .wrapper * {
    margin: 0;
    padding: 0;
    visibility: initial;
    display: initial;
    opacity: initial;
    flex-direction: initial;
    position: initial;
    font-size: initial;
    transform: initial;
    color: initial;
    background-color: initial;
    font-weight: initial;
    filter: initial;
  }

  nav#navigation a.logo,
  footer a.logo {
    font-size: 4rem;
    opacity: 0.7;
  }

  nav#navigation .close-menu,
  nav#navigation .open-menu {
    display: none;
  }

  nav#navigation .menu {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 70%;
  }

  nav#navigation .menu ul:nth-child(1) {
    display: flex;
    align-items: center;
    gap: 2.5rem;
  }

  nav#navigation .menu ul li a {
    color: var(--primary-color);
    opacity: 0.7;
    position: relative;
    display: inline-block;

    transition: opacity 0.4s;
  }

  body.light-mode nav#navigation .menu ul li a {
    opacity: 1;
  }

  nav#navigation.scroll .menu ul li a {
    color: var(--paragraph-2);
    opacity: 0.6;
  }

  nav#navigation .menu ul:nth-child(1) li {
    width: auto;
    color: var(--paragraph);
  }

  nav#navigation .menu ul li a.active,
  nav#navigation .menu ul li a:hover {
    opacity: 1;
    font-weight: 700;
  }

  nav#navigation.scroll .menu ul li a.active,
  nav#navigation.scroll .menu ul li a:hover {
    opacity: 1;
  }

  nav#navigation .menu ul:nth-child(1) li a::after {
    content: "";
    width: 0%;
    height: 2px;
    background-color: var(--primary-color);

    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);

    transition: width 0.2s;
  }

  nav#navigation.scroll .menu ul li a::after {
    background-color: var(--paragraph-2);
  }

  nav#navigation .menu ul li a:hover::after,
  nav#navigation .menu ul li a.active::after {
    width: 100%;
  }

  nav#navigation.scroll .menu a.button:hover,
  nav#navigation.scroll .menu a.button.active {
    background-color: var(--primary-color);
    filter: brightness(1.3);
    border: none;
  }

  nav#navigation .social-links {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
  }

  nav#navigation .social-links li:nth-child(1) svg path {
    stroke: var(--primary-color);
  }

  nav#navigation .social-links li:nth-child(2) svg path:nth-child(2),
  nav#navigation .social-links li:nth-child(3) svg path:nth-child(2),
  nav#navigation .social-links li:nth-child(4) svg path:nth-child(2) {
    fill: var(--primary-color);
  }

  nav#navigation.scroll .social-links li:nth-child(1) svg path {
    stroke: var(--paragraph-2);
  }

  nav#navigation.scroll .social-links li:nth-child(2) svg path:nth-child(2),
  nav#navigation.scroll .social-links li:nth-child(3) svg path:nth-child(2),
  nav#navigation.scroll .social-links li:nth-child(4) svg path:nth-child(2) {
    fill: var(--paragraph-2);
  }

  nav#navigation .social-links svg {
    margin-top: 0.3rem;
    transition: 300ms;
  }

  nav#navigation .social-links svg:hover {
    margin-top: 0;
    margin-bottom: 0.3rem;
  }

  nav#navigation .social-links li svg path {
    transition: 200ms;
  }

  nav#navigation.scroll .social-links li:nth-child(1) svg:hover path {
    stroke: #ff377a;
  }

  nav#navigation.scroll
    .social-links
    li:nth-child(2)
    svg:hover
    path:nth-child(2) {
    fill: #fff;
  }

  nav#navigation.scroll
    .social-links
    li:nth-child(3)
    svg:hover
    path:nth-child(2) {
    fill: #0a66c2;
  }

  nav#navigation.scroll
    .social-links
    li:nth-child(4)
    svg:hover
    path:nth-child(2) {
    fill: #00abf0;
  }

  /*===== HOME ========================================*/

  #home {
    padding-top: var(--nav-height);
  }

  #home .wrapper {
    flex-direction: row;
    justify-content: space-between;

    grid-template-columns: repeat(2, 1fr);
    grid-template-areas: "A B";
  }

  #home .col-a {
    text-align: left;
    align-self: center;
  }

  #home h1 {
    font-size: 6rem;
  }

  #home .content p {
    font-size: 2.5rem;
  }

  #home .button {
    margin: 0;
  }

  #home .wrapper::before {
    width: 40rem;
    height: 40rem;

    right: 3rem;
    bottom: 7rem;
  }

  #home img {
    width: 42rem;
  }

  @keyframes typing {
    from {
      width: 0;
    }
    to {
      width: 38rem;
    }
  }

  /*===== ABOUT =======================================*/

  #about .wrapper {
    grid-template-columns: 48rem 1fr;
    grid-template-areas: "B A";

    gap: 6.7rem;
  }

  #about .col-a {
    align-self: center;
  }

  #about .col-b {
    text-align: center;
  }

  #about img:hover {
    scale: 1.07;
  }

  /*===== STATS =======================================*/
  
  #stats .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /*===== EXPERIENCE ==================================*/
  
  #experience .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }
  
  #experience .timeline-item {
    width: 50%;
    padding-left: 0;
    padding-right: 4rem;
  }
  
  #experience .timeline-item:nth-child(even) {
    margin-left: 50%;
    padding-left: 4rem;
    padding-right: 0;
  }
  
  #experience .timeline-dot {
    left: auto;
    right: -0.9rem;
  }
  
  #experience .timeline-item:nth-child(even) .timeline-dot {
    right: auto;
    left: -0.9rem;
  }
  
  #experience .timeline-content:hover {
    transform: translateX(0) scale(1.02);
  }

  /*===== PROJECTS ====================================*/

  #projects {
    background-color: var(--secundary-color);
  }

  #projects h2 {
    width: 49.7rem;
    margin-inline: auto;
  }

  #projects .cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
  }

  #projects h3 {
    height: 5rem;
  }

  /*===== KNOWLEDGE =====================================*/

  #knowledge h2 {
    width: 49.7rem;
    margin-inline: auto;
  }

  #knowledge .cards {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4rem;
  }

  #knowledge .card {
    width: 30%;
    flex-grow: 1;
  }

  /*===== CONTACT =====================================*/

  #contact .wrapper {
    grid-template-columns: 1fr 57.5rem;
    grid-template-areas: "A B";
  }

  #contact .col-a {
    display: flex;
    flex-direction: column;
    justify-content: center;

    margin-bottom: 0;
  }

  #contact .col-a .content {
    align-items: flex-start;
  }

  #contact .col-b {
    text-align: center;
  }

  /*===== FOOTER ======================================*/

  footer .wrapper {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "A B";
  }

  footer .col-a {
    align-self: center;
  }

  footer .col-b {
    align-self: center;
  }

  footer p {
    margin-bottom: 0;
  }

  footer .social-links {
    justify-content: flex-end;
  }
}

/*===== TABLET & MEDIUM SCREENS ==================================*/
@media (max-width: 768px) {
  #home h4 {
    font-size: 1.8rem;
  }
  
  #home h1 {
    font-size: 4.5rem;
  }
  
  #home p {
    font-size: 2rem;
  }
  
  #home .computer-wrapper {
    max-width: 38rem;
  }
  
  #about .wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  #about img {
    margin: 0 auto;
    max-width: 35rem;
  }
  
  #experience .timeline-item {
    padding-left: 5rem;
  }
  
  #experience .timeline-content h3 {
    font-size: 2rem;
  }
  
  #experience .timeline-content h4 {
    font-size: 1.5rem;
  }
  
  #projects .cards {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  #knowledge .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  /*===== GERAL ==================================*/

  section h4 {
    font-size: 1.2rem;
  }

  body section h2 {
    font-size: 2.2rem;
  }

  section h3 {
    font-size: 1.4rem;
  }

  section p,
  section span,
  footer p {
    font-size: 1.3rem;
  }

  .button {
    padding: 1rem 2rem;
    font-size: 1.2rem;
  }

  /*===== NAVEGATION ==================================*/

  nav#navigation button svg {
    width: 3rem;
    height: 3rem;
  }

  /*===== MENU-EXPANDED ==================================*/

  body.menu-expanded .menu ul:nth-child(1) {
    font-size: 2rem;
    gap: 3.5rem;
  }

  body.menu-expanded .menu .social-links svg,
  footer svg {
    width: 2.5rem;
    height: 2.5rem;
  }

  body.menu-expanded .menu .social-links li:nth-child(2) svg,
  footer .social-links li:nth-child(2) svg {
    width: 3rem;
    height: 3rem;
  }

  /*===== HOME ==================================*/
  
  #particles-canvas {
    opacity: 0.5;
  }

  #home h1 {
    font-size: 3.4rem;
  }

  #home h4 {
    font-size: 1.5rem;
  }

  #home p {
    font-size: 1.6rem;
  }
  
  #home .computer-wrapper {
    width: 100%;
    max-width: 30rem;
  }
  
  #home .tech-icon {
    font-size: 2rem !important;
  }
  
  #home .line {
    white-space: normal;
    border-right: none;
  }
  
  #home .typing {
    animation: none;
  }

  /*===== ABOUT ==================================*/
  
  #about img {
    width: 100% !important;
    max-width: 30rem !important;
  }

  #about .content a:nth-child(2) {
    font-size: 1.4rem;
  }
  
  /*===== EXPERIENCE ==================================*/
  
  #experience .timeline::before {
    left: 1rem;
  }
  
  #experience .timeline-item {
    padding-left: 4rem;
  }
  
  #experience .timeline-dot {
    left: 0.2rem;
    width: 1.5rem;
    height: 1.5rem;
  }
  
  #experience .timeline-content {
    padding: 1.8rem;
  }
  
  #experience .timeline-content h3 {
    font-size: 1.8rem;
  }
  
  #experience .timeline-content h4 {
    font-size: 1.4rem;
  }
  
  #experience .timeline-date {
    font-size: 1.1rem;
    padding: 0.4rem 1rem;
  }
  
  #experience .tech-tags {
    gap: 0.6rem;
  }
  
  #experience .tech-tag {
    font-size: 1.1rem;
    padding: 0.4rem 0.9rem;
  }

  /*===== PROJECTS ==================================*/

  #projects .card {
    padding: 2rem;
  }

  #projects .card img {
    height: 15rem;
  }

  #projects .card .buttons a {
    width: 5rem;
    height: 5rem;
  }

  #projects .card .buttons a svg {
    width: 3rem;
    height: 3rem;
  }

  /*===== CONTACT ==================================*/

  #contact ul a {
    font-size: 1.3rem;
  }

  #contact .col-b img {
    width: 10rem;
  }

  #contact .col-b::after {
    width: 10rem;
    height: 3rem;
  }
}

@media (max-width: 410px) {
  #home .wrapper::before {
    width: 24rem;
    height: 24rem;
    bottom: -0.5rem;
  }
  
  #home h1 {
    font-size: 3rem;
  }
  
  #experience .timeline-item {
    padding-left: 3.5rem;
  }
  
  #experience .timeline-content {
    padding: 1.5rem;
  }
  
  #knowledge .cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 320px) {
  /*===== GERAL ==================================*/

  .wrapper {
    padding-inline: 2rem;
  }

  /*===== HOME ==================================*/

  #home .wrapper::before {
    width: 20rem;
    height: 20rem;
    bottom: 2rem;
  }

  #home h4 {
    font-size: 1.4rem;
  }
  
  #home h1 {
    font-size: 3rem;
  }

  #home p {
    font-size: 1.4rem;
  }

  #home .line {
    white-space: initial;
  }

  @keyframes typing {
    from {
      width: 0;
    }
    to {
      width: 100%;
    }
  }

  /*===== ABOUT ==================================*/

  #about .content a:nth-child(2) {
    font-size: 1.2rem;
  }
  
  /*===== EXPERIENCE ==================================*/
  
  #experience .timeline::before {
    left: 0.8rem;
  }
  
  #experience .timeline-item {
    padding-left: 3rem;
  }
  
  #experience .timeline-dot {
    left: 0;
    width: 1.2rem;
    height: 1.2rem;
  }
  
  #experience .timeline-content {
    padding: 1.3rem;
  }
  
  #experience .timeline-content h3 {
    font-size: 1.6rem;
  }
  
  #experience .timeline-content h4 {
    font-size: 1.2rem;
  }
  
  #experience .timeline-date {
    font-size: 1rem;
    padding: 0.3rem 0.8rem;
  }
  
  #experience .tech-tag {
    font-size: 1rem;
    padding: 0.3rem 0.7rem;
  }
}

@media (max-width: 250px) {
  /*===== GERAL ==================================*/

  .wrapper {
    padding-inline: 1rem;
  }

  body section h2 {
    font-size: 2rem;
  }

  section h3 {
    font-size: 1.2rem;
  }

  section p,
  section span,
  footer p {
    font-size: 1.1rem;
  }

  .button {
    padding: 0.8rem 1.6rem;
    font-size: 1rem;
    gap: 0.6rem;
  }

  .social-links {
    gap: 1.5rem;
  }

  nav#navigation a.logo,
  footer a.logo {
    font-size: 2.5rem;
  }

  /*===== HOME ==================================*/

  #home h1 {
    font-size: 2.9rem;
  }

  #home p {
    font-size: 1.2rem;
  }

  #home .wrapper::before {
    width: 15rem;
    height: 15rem;

    bottom: 3.5rem;
  }

  /*===== PROJECTS ==================================*/

  #projects .card {
    padding: 1.8rem;
  }

  #projects .card .buttons {
    flex-direction: column;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
  }

  #projects .card .buttons a {
    width: 4rem;
    height: 4rem;
  }

  /*===== CONTACT ==================================*/

  #contact ul a {
    font-size: 1.1rem;
  }

  #contact svg {
    width: 1.8rem;
    height: 1.8rem;
  }

  #contact .col-b img {
    width: 9rem;
  }

  #contact .col-b::after {
    width: 9rem;
    height: 2rem;
  }
}
