@import url("https://fonts.googleapis.com/css2?family=Righteous&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Righteous&family=Roboto:wght@100;300;400;500;700;900&display=swap");

:root {
  --primary-color: #181818;
  --secondary-color: #282828;
  --background-color: #1d1d1d;

  --color-black: #000000;
  --color-white: #ffffff;
  --color-grey: #909096;
  --color-grey-stroke: #3b3b3b;

  --text-roboto: "Roboto", sans-serif;
  --text-righteous: "Righteous", cursive;
}

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

body {
  background-color: var(--background-color);
}

a {
  text-decoration: none;
}

ul {
  list-style: none;
}

/* HEADER - MOBILE FIRST */
header {
  position: relative;
  height: 100dvh;
  width: 100%;
}

#welcome {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  background-color: var(--primary-color);
}

.sidebar-toggle {
  position: fixed;
  top: 10px;
  right: 20px;
  width: 30px;
  height: 25px;
  z-index: 1000;
  cursor: pointer;
  padding: 1px 2px;
  background-color: var(--primary-color);
  border-radius: 5px;
}

.bar {
  margin-bottom: 5px;
  width: 100%;
  height: 4px;
  background-color: white;
  transition: all 0.3s;
}

.presentation {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  line-height: 1.3;
  padding: 20px;
  width: 100%;
}

.presentation>h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInDown 1s ease-out;
}

.presentation>span {
  font-weight: bold;
  display: block;
}

.presentation>p {
  font-weight: 400;
  font-size: 1rem;
  font-family: monospace;
  color: var(--color-grey);
  margin: 10px auto;
  width: 33ch;
  white-space: nowrap;
  overflow: hidden;
  border-right: solid 4px var(--color-grey);
  animation: typing 2s steps(10) infinite,
    blinking 0.5s infinite step-end alternate;
}

.presentation>h1,
p {
  font-family: var(--text-roboto);
  text-wrap: balance;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

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

@keyframes typing {
  from {
    width: 0;
  }
}

@keyframes blinking {
  50% {
    border-color: transparent;
  }
}

/* SIDEBAR - MOBILE FIRST (OCULTA POR PADRÃO) */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  background-color: var(--primary-color);
  width: 130px;
  height: 100vh;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  border-right: 1px solid var(--color-grey-stroke);
  z-index: 999;
}

.sidebar-header {
  width: 100%;
  height: 120px;
  background-color: var(--background-color);
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid var(--color-grey-stroke);
}

.sidebar__toggle--show {
  transform: translateX(0);
}

.logo-acronym,
.logo-description {
  color: var(--color-white);
  width: 100%;
  text-wrap: nowrap;
  text-align: center;
}

.logo-acronym {
  font-size: 70px;
  font-family: var(--text-righteous);
}

.logo-description {
  font-size: 12px;
  font-weight: 400;
  font-family: var(--text-roboto);
  color: var(--color-grey);
}

.sidebar-menu {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
}

.menu-item {
  width: 100%;
  border-top: 1px solid var(--secondary-color);
  border-bottom: 1px solid var(--secondary-color);
}

.menu-item:hover {
  background-color: var(--secondary-color);
}

.menu-item>a {
  text-decoration: none;
  color: var(--color-grey);
  font-family: var(--text-roboto);
  padding: 15px;
  display: block;
  cursor: pointer;
}

.menu-item--has-submenu .menu-toggle::after {
  content: "▼";
  float: right;
}

.submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.submenu-item {
  background-color: var(--color-grey-stroke);
}

.submenu-item>a {
  text-decoration: none;
  color: #ffffff;
  font-family: "Roboto", sans-serif;
  padding: 15px;
  display: block;
  border-bottom: 1px solid var(--secondary-color);
}

.submenu-item>a:hover {
  background-color: var(--secondary-color);
}

.menu-item--active .menu-toggle::after {
  content: "▲";
}

.sidebar-social {
  position: fixed;
  bottom: 10%;
  left: 0;
  padding: 5px 0;
  width: 130px;
  text-align: center;
}

.social-item {
  display: inline-block;
}

.social-item>a {
  text-decoration: none;
  color: #909096;
  font-size: 25px;
}

.linkedin>a:hover {
  color: #0077b5;
}

.github>a:hover {
  color: #333333;
}

.instagram>a:hover {
  color: #e4405f;
}

/* WRAPPER */
.wrapper {
  position: relative;
  width: 100%;
  background-color: var(--background-color);
  padding: 0.625rem 1.25rem;
}

/* BOX */
section {
  height: auto;
  width: 100%;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.box__title {
  font-size: 2em;
  width: 100%;
  font-family: "Roboto", sans-serif;
  font-weight: 800;
  color: var(--color-white);
  text-align: center;
}

.box__body {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 1rem;
}

/* BOX */

.column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px;
  flex: 1;
}

.content-paragraph {
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  font-size: 24px;
  color: #909096;
  line-height: 1.6;
  margin-bottom: 10px;
  text-align: justify;
}

/* Start about me */

.about-img {
  height: 100%;
  width: 100%;
}

.about-img>img {
  width: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: grayscale(50%);
  border-top-right-radius: 5px;
  border-bottom-left-radius: 5px;
  border-top-left-radius: 10%;
  border-bottom-right-radius: 10%;
  display: block;
}

/* End about me */

/* Start Skill and Experience */

.experiences {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.experience-card {
  width: 260px;
  height: 260px;
  background-color: #2a2a2a;
  margin: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  color: white;
  font-family: "Roboto", sans-serif;
}

.experience-header,
.experience-body,
.experience-footer {
  width: 100%;
}

.experience-header>h1 {
  text-align: center;
  font-size: 23px;
  font-weight: 500;
}

.experience-body {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  height: 90px;
}

.experience-body>p,
.experience-footer>p {
  font-family: "Roboto", sans-serif;
  text-align: center;
  font-size: 18px;
}

/* End skills and Experience */

.whatsapp-float {
  position: fixed;
  width: 80px;
  height: 80px;
  bottom: 10px;
  right: 10px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  font-size: 40px;
  z-index: 1000;
  transition: transform 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float i {
  margin-top: 15px;
}

footer {
  background-color: var(--background-color);
  color: var(--color-white);
  width: 100%;
  font-family: "Roboto", sans-serif;
}

.footer-content {
  text-align: center;
  margin-top: 30px;
  padding: 20px;
  border-top: 1px solid var(--color-grey);
}

.footer-copyright {
  font-size: 14px;
  color: var(--color-grey);
}

#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
}

/* MEDIA QUERIES - TELAS MAIORES */

@media (min-width: 481px) {
  .presentation>h1 {
    font-size: 2.5rem;
  }

  .presentation>p {
    font-size: 1rem;
  }

  section {
    padding: 20px;
  }

  .box__title {
    font-size: 2.5em;
  }
}

@media (min-width: 769px) {
  .presentation>h1 {
    font-size: 3.5rem;
  }

  .presentation>p {
    font-size: 1.5rem;
  }

  .box__title {
    font-size: 4em;
  }

  .box__body {
    flex-direction: row;
    margin-top: 3rem;
  }

  .column {
    padding: 0 20px 30px;
  }
}

@media (min-width: 1025px) {
  .sidebar {
    transform: translateX(0);
    display: block;
  }

  header {
    width: calc(100% - 130px);
    margin-left: 130px;
  }

  .wrapper {
    width: calc(100% - 130px);
    margin-left: 130px;
  }

  .sidebar-toggle {
    display: none;
  }

  .presentation>h1 {
    font-size: 4rem;
  }
}

@media (min-width: 1401px) {
  .box__body {
    justify-content: center;
    align-items: flex-start;
    flex-direction: row;
  }

  .column {
    padding: 0 20px;
    justify-content: flex-start;
    align-items: flex-start;
  }
}