* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  scroll-behavior: smooth;
  font-family: "Poppins", sans-serif;
}

::-webkit-scrollbar {
  width: 13px;
}
::-webkit-scrollbar-track {
  background: #ffffff20;
}
::-webkit-scrollbar-thumb {
  background: var(--second-main-color);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--main-color);
}

@-moz-document url-prefix() {
  * {
    scrollbar-width: thin;
    scrollbar-color: var(--main-color) #ffffff20;
  }
}

:root {
  --bg-color: #141414;
  --second-bg-color: #191919;
  --text-color: white;
  --main-color: #c300ff;
  --second-main-color: #7000FF;
  --color-gradient: linear-gradient(to left, #7000FF, #C300FF);
  --neon-box-shadow: 0 0 0.5rem #c300ff;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
}
body {
  background: var(--bg-color);
  color: var(--text-color);
}
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 3rem 9%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
}
.logo {
  font-size: 3rem;
  color: var(--text-color);
  font-weight: 800;
  cursor: pointer;
  transition: 0.3s ease;
}

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

.navbar a {
  font-size: 1.8rem;
  color: white;
  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);
  text-shadow: 0 0 25px var(--main-color), 0 0 50px var(--main-color);
}

@keyframes navbarSlide {
  0% {
    opacity: 0;
    transform: translateY(-100%);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.navbar.animate-navbar {
  animation: navbarSlide 0.8s ease-out forwards;
}

#menu-icon {
  font-size: 3.6rem;
  color: var(--main-color);
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  display: none;
}

section {
  min-height: 100vh;
  padding: 10rem 9% 10rem;
}

.home {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8rem;
  position: relative;
  overflow: hidden;
}
.home .onda {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 2;
}

.home .onda img {
  width: 100%;
  display: block;
}

.home-content h3 {
  font-size: 3.2rem;
  font-weight: 700;
}

.home-content {
  z-index: 1;
}

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

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

.home-content h3:nth-of-type(2) {
  margin-bottom: 2rem;
  font-size: 5rem;
}

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

.home-img {
  border-radius: 50%;
}

.home-img img {
  position: relative;
  width: 30vw;
  border-radius: 50%;
  animation: flutuar 2s ease-in-out infinite alternate;
}

@keyframes flutuar {
  0% {
    top: 0;
  }
  100% {
    top: 30px;
  }
}

.home-content p {
  font-size: 1.8rem;
  font-weight: 500;
}

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

.social-icons a:hover {
  color: white;
  transform: scale(1.3) translateY(-5px);
  background-color: var(--main-color);
  box-shadow: 0 0 25px var(--main-color);
}

.btn {
  display: inline-block;
  padding: 1.2rem 2.8rem;
  background: var(--color-gradient);
  border-radius: 4rem;
  font-size: 1.6rem;
  color: white;
  letter-spacing: 0.1rem;
  font-weight: 600;
  transition: 0.3s ease;
  cursor: pointer;
}

.btn:hover {
  box-shadow: 0 0 25px var(--main-color);
  transform: scale(1.05);
}
.devel {
  display: none;
}

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

.text-animation span {
  position: relative;
}

.text-animation span::before {
  content: "Desenvolvedor FullStack";
  color: var(--main-color);
  animation: words 20s infinite;
}

.text-animation span::after {
  content: "";
  background-color: var(--bg-color);
  position: absolute;
  width: calc(100% + 8px);
  height: 100%;
  border-left: 2px solid #333;
  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%,
  20% {
    content: "Desenvolvedor BackEnd";
  }
  21%,
  40% {
    content: "Desenvolvedor FrontEnd";
  }
  41%,
  60% {
    content: "Designer Gráfico";
  }
  61%,
  80% {
    content: "Editor de Video";
  }
  81%,
  100% {
    content: "Designer UX e UI";
  }
}

@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);
  }
}
.bubbles {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.bubbles::before,
.bubbles::after,
.bubbles div {
  content: "";
  position: absolute;
  bottom: -100px;
  border-radius: 50%;
  background: rgba(195, 0, 255, 0.8);
  opacity: 0.7;
  animation: rise 8s linear infinite;
}

.bubbles div {
  width: 20px;
  height: 20px;
  left: 10%;
  animation-delay: 0s;
}

.bubbles div:nth-child(2) {
  width: 30px;
  height: 30px;
  left: 25%;
  animation-delay: 2s;
  animation-duration: 10s;
  opacity: 0.5;
}

.bubbles div:nth-child(3) {
  width: 15px;
  height: 15px;
  left: 40%;
  animation-delay: 4s;
  animation-duration: 7s;
  opacity: 0.6;
}

.bubbles div:nth-child(4) {
  width: 25px;
  height: 25px;
  left: 60%;
  animation-delay: 1s;
  animation-duration: 9s;
  opacity: 0.4;
}

.bubbles div:nth-child(5) {
  width: 18px;
  height: 18px;
  left: 80%;
  animation-delay: 3s;
  animation-duration: 11s;
  opacity: 0.7;
}

@keyframes rise {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.7;
  }
  100% {
    transform: translateY(-120vh) scale(1.2);
    opacity: 0;
  }
}

.about {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10rem;
  background: var(--second-bg-color);
  position: relative;
  padding-top: 0;
}

.onda-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1;
}
.onda-top img {
  width: 100%;
  display: block;
  transform: rotate(180deg);
}

.about-img {
  border-radius: 50%;
}

.about-img img {
  position: relative;
  width: 25vw;
  cursor: pointer;
  animation: flutuar 2s ease-in-out infinite alternate;
  border-radius: 50%;
}

.heading {
  text-align: center;
  font-size: 8rem;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.heading.animate {
  opacity: 1;
  transform: translateY(0);
}

.about-content,
.about-img {
  position: relative;
  z-index: 2;
  padding-top: 10rem;
}
.about-content h2 {
  text-align: left;
  line-height: 1.5;
}

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

.about-content p {
  font-size: 1.6rem;
  margin: 2rem 0 3rem;
}

.about-content .text-animation span::before {
  content: "Desenvolvedor FullStack";
  color: var(--main-color);
  animation: words 20s infinite;
}

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

.services h2 {
  margin-bottom: 5rem;
}

.service-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.service-container .services-box {
  flex: 1 1 40rem;
  background: var(--second-bg-color);
  padding: 3rem 2rem 4rem;
  border-radius: 2rem;
  text-align: center;
  border: 0.2rem solid var(--bg-color);
  cursor: pointer;
  transition: ease 0.6s;
}

.service-container .services-box:hover {
  border-color: var(--main-color);
  transform: scale(1.02);
  background-color: white;
  color: black;
}

.services-box {
  opacity: 0;
  transform: translatex(90px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.services-box.aparecendo {
  opacity: 1;
  transform: translateY(0);
}

.services-box i {
  font-size: 5rem;
  color: var(--main-color);
  margin: 1rem;
}

.services-box h3 {
  font-size: 2.6rem;
}

.services-box p {
  font-size: 1.6rem;
  margin: 1rem 0 3rem;
}

.projects {
  background: var(--second-bg-color);
}

.card {
  opacity: 0;
  transform: translatex(-90px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card.aparecendo {
  opacity: 1;
  transform: translateY(0);
}

.projects h2 {
  margin-bottom: 5rem;
}

.projects #projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
  justify-content: center;
  align-items: center;
  place-items: center;
  gap: 20px;
}

.projects #projects-container .card {
  overflow: hidden;
  position: relative;
  width: 450px;
  border-radius: 10px;
  height: 270px;
  background: var(--bg-color);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.projects #projects-container .card:hover {
  transform: scale(1.05);
  border: 2px solid var(--main-color);
}

.projects #projects-container .card:hover .animation {
  border-radius: 0;
  height: 100%;
  width: 100%;
}

.projects #projects-container .card:hover .details {
  width: 450px;
}

.projects #projects-container .card .img {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.projects #projects-container .card .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.projects #projects-container .card .animation {
  width: 0%;
  height: 0%;
  position: absolute;
  overflow: hidden;
  z-index: 2;
  border-radius: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--bg-color);
  transition: all 0.5s ease;
}

.projects #projects-container .card .details {
  width: 450px;
  padding: 20px;
  position: absolute;
  height: 270px;
  overflow: hidden;
  transition: 345ms;
}

.projects #projects-container .card .details::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-color);
  background-size: 100% 100%;
  z-index: -1;
}

.projects #projects-container .card .details .skill-tags {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.projects #projects-container .card .details .skill-tags .tag {
  padding: 5px 10px;
  border-radius: 5px;
  margin: 5px;
  font-size: 1.3rem;
  display: inline-block;
  background: var(--main-color);
  color: var(--text-color);
  font-weight: bold;
}

.projects #projects-container .card .details h3 {
  color: var(--main-color);
  text-align: center;
  margin-bottom: 10px;
  font-size: 2.5rem;
}

.projects #projects-container .card .details p {
  color: var(--text-color);
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  -ms-hyphens: auto;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 70px;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.projects #projects-container .card .details .links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 50px;
}

.projects #projects-container .card .details .links a {
  width: 45%;
  display: block;
  padding: 10px 0;
  font-weight: bold;
  text-align: center;
  margin: 0 auto;
}
.projects #projects-container .card .details .links span {
  display: block;
  margin: auto;
  color: var(--main-color);
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
}
.projects .btn {
  border-radius: 5px;
}

.projects .btn:hover {
  box-shadow: none;
}

.skills {
  background: var(--bg-color);
}

.skill-main {
  margin-top: 5rem;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-row-gap: 30px;
  grid-column-gap: 50px;
}

.skill-bar {
  margin-bottom: 2.3rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.skill-bar.aparecendo {
  opacity: 1;
  transform: translateY(0);
}

.skill-main h3 {
  font-size: 2.6rem;
  text-align: center;
  color: var(--text-color);
}

.skills-title i {
  font-size: 2.5rem;
  color: var(--main-color);
  margin-left: 10px;
}

.skills-title {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  align-items: center;
}

.skills p {
  font-size: 1.6rem;
  margin: 1rem 0;
}

.skill-left .skill-bar .info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
}

.skill-left .skill-bar .bar {
  width: 100%;
  height: 10px;
  background-color: #272727;
  border-radius: 25px;
  margin-top: 10px;
  position: relative;
  transition: 0.4s ease;
  cursor: pointer;
}

.skill-bar .bar:hover {
  box-shadow: 0 0px 20px var(--main-color);
}

.skill-bar .bar span {
  width: 0%;
  height: 100%;
  position: absolute;
  left: 0;
  background: var(--color-gradient);
  box-shadow: var(--neon-box-shadow);
  border-radius: 25px;
  transition: width 2s ease;
}

.skill-bar.animate .bar .ux {
  width: 100%;
}
.skill-bar.animate .bar .tp {
  width: 100%;
}
.skill-bar.animate .bar .react {
  width: 30%;
}
.skill-bar.animate .bar .node {
  width: 57%;
}
.skill-bar.animate .bar .ads {
  width: 100%;
}

#skills-container {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 0;
  justify-content: center;
}

#skills-container li {
  margin-top: 19px;
  width: 100px;
  text-align: center;
}

.certificado-container {
  display: inline-block;
  position: relative;
}

.texto {
  font-weight: bold;
  cursor: pointer;
  display: inline-block;
  position: relative;
}

.certificado-box {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: rgba(255, 255, 255, 0.95);
  color: var(--second-bg-color);
  padding: 5px 10px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  z-index: 10;
}

.skill-right li {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

.skill-right li.aparecendo {
  opacity: 1;
  transform: translateY(0);
}

.certificado-container:hover .certificado-box {
  display: block;
}

.circle {
  width: 80px;
  height: 80px;
  margin: 0 auto 7px;
  display: flex;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  background: var(--second-bg-color);
  transition: 0.6s ease;
  cursor: pointer;
}

.circle:hover {
  border-radius: 100px;
  box-shadow: 0 0 25px var(--main-color);
  transform: scale(1.1) translateY(-10px);
  background: var(--text-color);
}

.circle img {
  max-width: 60%;
  max-height: 60%;
  object-fit: contain;
}

.name-skill {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-color);
}

.professional {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.box .text {
  text-align: center;
  color: #fff;
  font-size: 1rem;
}

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

.box .text big {
  font-weight: 400;
  font-size: 2.5rem;
  letter-spacing: 1px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-40%, -90%);
}

.box .text small {
  font-size: 2rem;
  color: var(--text-color);
  text-align: center;
  display: block;
}

.points.marked {
  animation: glow 0.04s linear forwards;
  animation-delay: calc(var(--i) * 0.05s);
}

@keyframes glow {
  0% {
    background: var(--second-bg-color);
    box-shadow: none;
  }
  100% {
    background: var(--main-color);
    box-shadow: var(--neon-box-shadow);
  }
}

.contact {
  background-color: var(--second-bg-color);
  position: relative;
  overflow: hidden;
}

.onda-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1;
}

.onda-bottom img {
  width: 100%;
  display: block;
}
.contact h2 {
  margin-bottom: 3rem;
}
.contact form {
  max-width: 70rem;
  margin: 1rem auto;
  text-align: center;
  margin-bottom: 3rem;
}

.contact form .input-box {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.contact form .input-box input,
.contact form textarea {
  width: 100%;
  padding: 1.5rem;
  font-size: 1.6rem;
  color: var(--text-color);
  background: var(--bg-color);
  border-radius: 0.8rem;
  margin: 1rem 0;
  resize: none;
}

.contact form .btn {
  margin-top: 2rem;
}

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

.footer .social {
  text-align: center;
  padding-bottom: 25px;
  color: white;
}

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

.footer .social a:hover {
  transform: scale(1.2) translateY(-10px);
}

.footer ul {
  margin-top: 0;
  padding: 0;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 0;
  text-align: center;
}

.footer ul li a {
  color: white;
  border-bottom: 3 solid transparent;
  transition: 0.3s ease;
}

.footer ul li a:hover {
  border-bottom: 3px solid white;
}

.footer ul li {
  display: inline-block;
  padding: 0 15px;
}

.footer .copyright {
  margin-top: 50px;
  text-align: center;
  font-size: 16px;
  color: white;
}

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

  #skills-container {
    gap: 20px;
  }
}

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

  section {
    padding: 10rem 3% 2rem;
  }

  .services {
    padding-bottom: 7rem;
  }

  .projects {
    padding-bottom: 7rem;
  }
  .footer {
    padding: 2rem 3%;
  }
}

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

  .home .text-animation {
    display: none;
  }

  .devel {
    display: block;
    color: var(--main-color);
  }

  .onda {
    display: none;
  }

  .onda-top {
    display: none;
  }

  .heading {
    text-align: center;
    font-size: 6rem;
  }
  .navbar {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 1rem 3%;
    background: var(--second-bg-color);
    border-top: 0.1rem solid rgba(0, 0, 0, 0.105);
    display: none;
  }

  .navbar.active {
    display: block;
  }

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

  .home {
    flex-direction: column;
    margin: 5rem 4rem;
    gap: 2rem;
  }

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

  .home-content h1 {
    font-size: 4.5rem;
  }

  .btn-container {
    display: flex;
    justify-content: center;
  }

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

  .social-icons a {
    width: 5rem;
    height: 5rem;
    margin: 2rem 1rem 2rem;
    font-size: 2.5rem;
  }

  .social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .about {
    flex-direction: column-reverse;
    gap: 0;
  }

  .about-content {
    margin: 1rem 4rem;
  }

  .about-content p {
    font-size: medium;
  }

  .about-content h2 {
    text-align: center;
  }

  .about img {
    display: none;
  }

  .services h2 {
    margin-bottom: 3rem;
  }

  .projects h2 {
    margin-bottom: 3rem;
  }

  .skill-right {
    display: none;
  }

  .skill-main {
    display: block;
  }
  .projects-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
  }
}
