:root {
  --hue-color: 242;

  --bg-color: #000000;
  --secondary-bg-color: #222222;
  --tertiary-color: #999999;
  --quaternary-color: #18181818;
  --text-color: #ffffff;
  --main-color: #ffa600;

  --scroll-box-color: hsl(var(--hue-color), 12%, 38%);
  --scroll-thumb-color: hsl(var(--hue-color), 12%, 26%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Helvetica;
  text-decoration: none;
  border: none;
  outline: none;
  scroll-behavior: smooth;
}

html {
  font-size: 60%;
  overflow-x: hidden;
}

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

section {
  min-height: 100vh;
  padding: 3rem 12% 3rem;
}

span {
  color: var(--main-color);
}

::-webkit-scrollbar {
  width: 0.6rem;
  background-color: var(--scroll-box-color);
  border-radius: 0.5rem;
}
::-webkit-scrollbar-thumb {
  background-color: var(--scroll-thumb-color);
  border-radius: 0.5rem;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 4rem 12% 4rem;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
}

.logo {
  font-size: 3rem;
  color: var(--text-color);
  font-weight: 800;
  cursor: pointer;
  transition: 0.3s ease;
}

.logo:hover {
  transform: scale(1.1);
}

.logo span {
  text-shadow: 0 0 25px var(--main-color);
}

.navbar a {
  font-size: 1.8rem;
  color: var(--text-color);
  margin-left: 4rem;
  font-weight: 500;
  transition: 0.3s ease;
  border-bottom: 3px solid transparent;
}

.navbar a:hover,
.navbar a.active {
  color: var(--main-color);
  border-bottom: 3px solid var(--main-color);
}

#menu-icon {
  font-size: 3.6rem;
  color: var(--main-color);
  display: none;
  cursor: pointer;
}

.heading {
  font-size: 6rem;
  margin-bottom: 4rem;
  text-align: center;
}

.home {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10rem;
}

.home-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: baseline;
  text-align: left;
  margin-top: 3rem;
}

.home-content h1 {
  margin-top: 1rem;
  line-height: 1;
  font-size: 8rem;
  font-weight: 700;
}

.home-content h3 {
  margin-bottom: 2rem;
  margin-top: 1rem;
  font-size: 3rem;
}

.home-img img {
  position: relative;
  width: 30vw;
  border-radius: 50%;
}

.home-content p {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.8;
  max-width: 1000px;
  margin-bottom: 1rem;
}

.text-animation {
  font-size: 34px;
  font-weight: 600;
  min-width: 280px;
}

.text-animation span {
  position: relative;
}

.text-animation span::before {
  content: "Java Developer";
  color: var(--text-color);
  animation: words 12s infinite;
}

.text-animation span::after {
  content: "";
  background-color: var(--bg-color);
  position: absolute;
  width: calc(100% + 8px);
  height: 100%;
  border-left: 3px solid var(--bg-color);
  right: -8px;
  animation: cursor 0.6s infinite, typing 20s steps(14) infinite;
}

@keyframes cursor {
  to {
    border-left: 2px solid var(--main-color);
  }
}

@keyframes words {
  0%,
  33% {
    content: "Java Developer";
  }
  34%,
  68% {
    content: "Software Developer";
  }
  69%,
  100% {
    content: "JavaScript Developer";
  }
}

@keyframes typing {
  10%,
  15%,
  30%,
  35%,
  50%,
  55%,
  70%,
  75%,
  90%,
  95% {
    width: 0;
  }
  5%,
  20%,
  25%,
  40%,
  45%,
  60%,
  65%,
  80%,
  85% {
    width: calc(100% + 8px);
  }
}

.technologies {
  display: flex;
  justify-content: center;
  align-items: start;
  flex-direction: column;
  background-color: var(--secondary-bg-color);
  border-radius: 12px;
}

.technology {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 1rem;
  margin: 1rem;
}

.technology img {
  max-width: 50px;
  height: auto;
}

.social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 4.5rem;
  height: 4.5rem;
  background: transparent;
  border: 2px solid var(--main-color);
  font-size: 2.5rem;
  border-radius: 50%;
  color: var(--main-color);
  margin: 3rem 1.5rem 3rem 0;
  transition: 0.3s ease-in-out;
}

.social-icons a:hover {
  color: var(--text-color);
  transform: scale(1.3) translateY(-5px);
  background-color: var(--main-color);
}

.btn {
  display: inline-block;
  padding: 1rem 4.5rem;
  background: var(--main-color);
  border-radius: 4rem;
  font-size: 1.6rem;
  color: #ffffff;
  border: 2px solid transparent;
  letter-spacing: 0.1rem;
  font-weight: 600;
  transition: 0.3s ease-in-out;
  cursor: pointer;
}

.btn:hover,
.btn:focus,
.btn:active {
  transform: scale(1.05);
  outline: 2px solid var(--main-color);
}

.certifications {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background: var(--bg-color);
}

.wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.certification-item {
  width: 250px;
  height: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--secondary-bg-color);
  border: 3px solid var(--main-color);
  border-radius: 20px;
  padding: 1rem;
  gap: 1.5rem;
}

.container-image-certification {
  width: 90px;
  height: 90px;
}

.certification-item img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  background-color: #ffffff;
}

.certification-item h2 {
  font-size: 1.8rem;
}

.certification-item p {
  color: var(--tertiary-color);
  font-size: 1.6rem;
}

.certification-link {
  font-size: 1.8rem;
  color: var(--text-color);
  background-color: var(--main-color);
  padding: 1rem;
  border-radius: 20px;
  transition: 0.4s ease-in-out;
}

.certification-link:hover {
  transform: scale(1.1);
}

.project-type {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 5rem;
}

.project-type span {
  font-weight: 500;
  font-size: 1.6rem;
  color: var(--text-color);
  cursor: pointer;
  transition: 0.4s ease-in-out;
}

.project-type span:hover,
.project-type span.active {
  padding: 1rem;
  border-radius: 8px;
  background-color: var(--main-color);
}

.content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.content-item {
  max-width: 300px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  background: rgba(0, 0, 0, 0.7);
  border: 3px solid rgba(238, 238, 238, 0.2);
  border-radius: 20px;
  padding: 1rem;
  gap: 1.5rem;
  color: #ffffff;
  transition: 0.4s ease;
}

.container-image-project {
  width: 250px;
  height: auto;
}

.container-image-project img {
  width: 100%;
  height: auto;
}

.content-item:hover {
  border: 3px solid var(--main-color);
  transform: translateY(-10px) scale(1.03);
}

.content-item h2 {
  font-size: 2.8rem;
}

.content-item h3 {
  font-size: 2rem;
}

.content-item p {
  font-size: 2rem;
}

.hidden {
  display: none;
}

.modal {
  display: none; /* Oculto por padrão */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
}

.modal-content {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--secondary-bg-color);
  padding: 2rem 10rem;
  text-align: start;
  max-width: 900px;
  border-radius: 20px;
  position: relative;
}

.modal-content img {
  margin-right: 1rem;
  max-width: 80%;
}

#modal-title {
  font-size: 2rem;
}

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

#modal-category {
  color: var(--tertiary-color);
  font-size: 1.8rem;
}

#modal-link {
  color: var(--text-color);
  background-color: var(--main-color);
  padding: 1rem 4rem;
  border-radius: 8px;
  font-size: 1.8rem;
  transition: padding-right 0.4s ease, transform 0.4s ease;
}

#modal-link:hover {
  padding-right: 8rem;
}

#modal-link i {
  transition: transform 0.4s ease;
}

#modal-link:hover i {
  transform: translateX(6rem); /* Move o ícone para a direita */
}

.languages-box h4 {
  font-weight: 500;
  font-size: 1.4rem;
}

.languages {
  display: flex;
  align-items: start;
  justify-content: flex-start;
  gap: 1rem;
  margin: 1rem auto;
}

.languages img {
  max-width: 2.4vw;
  border: none;
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 25px;
  cursor: pointer;
}

/* Remove setinhas nos navegadores baseados no WebKit (Chrome, Safari, etc.) */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.footer {
  position: relative;
  bottom: 0;
  width: 100%;
  padding: 20px 0;
  background-color: var(--secondary-bg-color);
}

.footer .social {
  text-align: center;
  padding-bottom: 25px;
  color: var(--main-color);
}

.footer .social a {
  font-size: 25px;
  color: var(--main-color);
  border: 2px solid var(--main-color);
  width: 42px;
  height: 42px;
  line-height: 42px;
  display: inline-block;
  text-align: center;
  border-radius: 50%;
  margin: 0 10px;
  transition: 0.3s ease-in-out;
}

.footer .social a:hover {
  transform: scale(1.2) translateY(-10px);
  background-color: var(--main-color);
  color: #000000;
}

.footer .copyright {
  text-align: center;
  font-size: 16px;
  color: #ffffff;
}

@media (max-width: 1285px) {
  html {
    font-size: 55%;
  }
}

@media (max-width: 991px) {
  header {
    padding: 2rem 3%;
  }

  .timeline-items::before {
    left: 7px;
  }

  .timeline-item:nth-child(odd) {
    padding-right: 0;
    text-align: left;
  }

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    padding-left: 37px;
  }

  .timeline-dot {
    left: 0;
  }

  .technology img {
    max-width: 30px;
  }

  .modal-content {
    display: flex;
    justify-content: center;
    max-width: 400px;
  }

  .modal-content img {
    margin-right: 1rem;
    max-width: 100%;
  }

  #modal-title {
    font-size: 1.6rem;
  }

  .description {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    gap: 2px;
  }

  #modal-category {
    color: var(--tertiary-color);
    font-size: 1.2rem;
  }

  #modal-link {
    font-size: 1.2rem;
  }

  .languages {
    gap: 1px;
  }

  .languages img {
    max-width: 3vw;
  }

  .footer {
    padding: 2rem 3%;
  }
}

@media (max-width: 895px) {
  #menu-icon {
    display: block;
  }

  .navbar {
    position: absolute;
    top: 100%;
    right: 0;
    width: 50%;
    padding: 1rem 3%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    border-bottom-left-radius: 2rem;
    border-left: 2px solid var(--main-color);
    border-bottom: 2px solid var(--main-color);
    display: none;
  }

  .navbar.active {
    display: block;
  }

  .navbar a {
    display: block;
    font-size: 2rem;
    margin: 3rem 0;
    color: #ffffff;
  }

  .home {
    gap: 1rem;
    flex-direction: column-reverse;
  }

  .home-content h3 {
    font-size: 2.6rem;
  }

  .home-content h1 {
    font-size: 7rem;
    margin-top: 3rem;
  }

  .home-img img {
    width: 56vw;
  }

  .wrapper {
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
  }

  .technologies img {
    min-width: 30px;
  }
}
