/* Reset */

html {
  scroll-behavior: smooth;
}

::selection {
  color: #000;
  background: #fff;
}

::-moz-selection {
  color: #000;
  background: #fff;
}

/* width */
::-webkit-scrollbar {
  width: 20px;
}

/* Track */
::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px #000;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #252526;
}

body,
h1,
h2,
h3,
p,
ul {
  padding: 0px;
  margin: 0px;
}

body {
  font-family: "Open Sans", Georgia;
  background: #0d0d0d;
}

* {
  box-sizing: border-box;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
}

@media (max-width: 739px) {
  .container {
    flex-direction: column;
    max-width: 360px;
  }
}

/* Button Top */

#topButton {
  position: fixed;
  display: none;
  z-index: 100;
  cursor: pointer;
  right: 20px;
  bottom: 40px;
  width: 60px;
  height: 60px;
  background: #252526;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
  outline: none;
}

#topButton img {
  margin: 20px auto;
}

#topButton:active {
  background: #0d0d0d;
}

/* Cursor Info */

#cursorText {
  position: absolute;
  border: 1px solid blue; /* You can remove it*/
}

/* Menu */

.header {
  padding: 20px 0;
  animation: textDown 0.5s;
}

.header a {
  text-decoration: none;
  color: white;
  font-size: 2.5em;
  font-weight: bold;
}

.header-nav {
  flex: 1;
  margin: 0 10px;
  align-self: center;
}

.header-nav a {
  box-shadow: inset 0 0 0 0 #fff;
  text-decoration: none;
  color: #fff;
  font-size: 1.125em;
  font-weight: bold;
  border-radius: 3px;
  transition: color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.header-nav a:hover {
  box-shadow: inset 100px 0 0 0 #fff;
  color: #000;
  border-radius: 3px;
}

.header-nav ul {
  float: right;
  display: flex;
  list-style: none;
}

.header-nav ul li a {
  padding: 10px;
}

@media (max-width: 739px) {
  .header a {
    margin: 0 auto 20px auto;
    padding: 10px 0;
  }

  .header-nav a {
    box-shadow: inset 0 0 0 0 #fff;
    border: 1px solid white;
    margin-left: 10px;
    border-radius: 5px;
    transition: color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  }

  .header-nav a:hover {
    box-shadow: inset 100px 0 0 0 #fff;
    color: #000;
  }
}

/* Apresentation */

.apresentation {
  margin: 220px 0 0 0;
  animation: textDown 1s;
}

.apresentation-item {
  background: #252526;
  border-radius: 15px;
  flex-direction: column;
  color: #fff;
}

.apresentation-content {
  padding: 60px;
}

.apresentation-content h2 {
  font-size: 2.5em;
  font-weight: bold;
}
.apresentation-content h2::after {
  content: "";
  display: block;
  width: 115px;
  height: 4px;
  background: #fff;
  border-radius: 10px;
  margin-bottom: 15px;
}

.apresentation-content h3 {
  font-size: 2em;
}

.apresentation-content p {
  font-size: 1.5em;
  margin: 15px 0;
  font-weight: bold;
}

.apresentation-content p::before {
  content: "";
  display: block;
  width: 30px;
  height: 4px;
  background: #fff;
  border-radius: 10px;
  margin-bottom: 15px;
}

.apresentation-btn {
  box-shadow: inset 0 0 0 0 #fff;
  width: 160px;
  margin: 25px 0 5px 0;
  padding: 10px 10px;
  border: 3px solid #fff;
  border-radius: 5px;
  background: none;
  color: white;
  text-decoration: none;
  text-align: center;
  display: block;
  font-weight: bold;
  font-size: 1.125em;
  transition: color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.apresentation-btn:hover {
  box-shadow: inset 160px 0 0 0 #fff;
  color: #000;
  border-radius: 5px;
}

@media (max-width: 739px) {
  .apresentation-content {
    padding: 30px;
  }

  br {
    display: none;
  }

  .apresentation {
    margin-top: 100px;
  }

  .apresentation-content {
    text-align: center;
  }

  .apresentation-btn {
    margin: 20px auto 30px auto;
  }

  .apresentation-content h2 {
    margin-bottom: 15px;
  }

  .apresentation-content h2::after {
    margin: 0px auto;
  }

  .apresentation-content p::before {
    margin: 10px auto;
  }
}

/* About Me */

.about {
  margin: 100px auto 0 0;
}

.about-title {
  color: white;
  font-size: 2em;
  font-style: italic;
  text-align: center;
  margin-bottom: 30px;
}

.about-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: #fff;
  border-radius: 10px;
  margin: 0 auto;
}

.about-item {
  background: #252526;
  border-radius: 15px;
  padding: 60px;
}

.about-img img {
  border-radius: 15px;
  transition: 0.5s;
}

.about-img img:hover {
  transform: translateY(-5px);
}

.about-content {
  flex: 1;
  margin: 0 30px;
}

.about-content h2 {
  color: #fff;
  font-size: 2em;
}

.about-content h2::after {
  content: "";
  display: block;
  width: 200px;
  height: 4px;
  background: #fff;
  border-radius: 10px;
}

.about-content h3 {
  font-size: 1.25em;
  color: #fff;
  font-style: italic;
  font-weight: bold;
}

.about-content p {
  max-width: 440px;
  color: #fff;
  font-size: 1.125em;
  margin: 15px 0;
  line-height: 1.4em;
}

@media (max-width: 739px) {
  .about-item {
    padding: 30px;
  }

  .about-img {
    margin: 0 auto;
  }

  .about-content h2 {
    margin-top: 20px;
    text-align: center;
  }

  .about-content h2::after {
    width: 50px;
    margin: 0 auto;
  }

  .about-content h3 {
    text-align: center;
    margin-top: 10px;
  }

  .about-content p {
    text-align: center;
  }
}

/* Projects */

.projects {
  margin: 60px 0;
}

.project-title {
  color: white;
  font-size: 2em;
  font-style: italic;
  text-align: center;
  margin-bottom: 30px;
}

.project-item {
  margin-bottom: 60px;
}

.project-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: #fff;
  border-radius: 10px;
  margin: 0 auto;
}

.project-img img {
  border-radius: 15px;
  transition: 0.5s;
}

.project-img img:hover {
  transform: translateY(-5px);
}

.project-content {
  flex: 1;
  background: #252526;
  margin-left: 20px;
  border-radius: 15px;
  padding: 25px;
}

.project-content h2 {
  font-size: 1.5em;
  color: #fff;
}

.project-content h2::after {
  content: "";
  display: block;
  width: 120px;
  height: 4px;
  background: #fff;
  border-radius: 10px;
}

.project-content h3 {
  font-size: 1.25em;
  color: #fff;
  font-style: italic;
  margin: 5px 0;
}

.project-content p {
  max-width: 500px;
  color: #fff;
  font-size: 1.125em;
  line-height: 1.4em;
  margin: 10px 0 20px 0;
}

.project-btn {
  box-shadow: inset 0 0 0 0 #fff;
  width: 120px;
  padding: 5px 40px;
  background: none;
  border: 3px solid #fff;
  text-decoration: none;
  color: white;
  border-radius: 5px;
  font-weight: bold;
  transition: color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.project-btn:hover {
  box-shadow: inset 120px 0 0 0 #fff;
  color: #000;
  border-radius: 5px;
}

@media (max-width: 739px) {
  .project-img {
    margin: 0 auto;
  }

  .project-item {
    background: #252526;
    padding: 30px;
    border-radius: 15px;
  }

  .project-content {
    text-align: center;
    background: none;
    margin: 0;
  }

  .project-content h2::after {
    margin: 0 auto;
  }
}

/* Contact */

.contact {
  margin: 100px auto;
}

.contact-title {
  text-align: center;
  font-size: 2.5em;
  color: #fff;
  font-style: italic;
}

.contact-title::after {
  content: "";
  display: block;
  width: 150px;
  height: 3px;
  background: #fff;
  border-radius: 10px;
  margin: 5px auto 5px auto;
}

.contact-item {
  width: 600px;
  height: 600px;
  background-color: #252526;
  border-radius: 15px;
  margin: 60px auto;
  flex-direction: column;
}

.contact-item > h2 {
  text-align: center;
  margin-top: 30px;
  color: white;
  font-size: 2em;
}

.contact-img {
  margin: 100px auto 0 auto;
  width: 60px;
  padding: 10px 0;
}

.contact-img img {
  margin: 20px auto;
  transition: 0.5s;
}

.contact-img p {
  display: none;
}

#copy-button {
  cursor: pointer;
}

.contact-img img:hover {
  transform: translateY(-5px);
}

@media (max-width: 739px) {
  .contact {
    margin: 120px 0;
  }
}

/* Footer */

.footer {
  background: #252526;
  padding: 40px 0;
}

.footer p {
  font-size: 1.125em;
  line-height: 1.4em;
  margin: 0 10px;
  flex: 1;
  color: white;
}

.footer-img {
  margin: 0 10px;
}

.footer a {
  text-decoration: none;
  color: white;
  font-size: 2.5em;
  font-weight: bold;
}

@media (max-width: 739px) {
  .footer {
    padding: 20px 0;
  }

  .footer-img,
  .footer p {
    margin: 15px 0;
  }

  .footer-img {
    margin: 0 auto;
  }

  .footer p {
    text-align: center;
    margin-bottom: 10px;
  }

  .footer a {
    margin: 0 auto;
  }
}

/* Dropdown */

.dropdown {
  align-self: center;
  position: relative;
}

.dropdown-img {
  height: 20px;
  width: 20px;
  margin: 0 auto;
}

.dropbtn {
  display: none;
  background: #fff;
  width: 60px;
  height: 60px;
  border: 2px solid #252526;
  border-radius: 10px;
  margin-right: 60px;
}

.header .container {
  flex-direction: row;
  justify-content: space-between;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f1f1f1;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  margin-top: -15px;
  animation: growDown 300ms ease-in-out forwards;
  transform-origin: top center;
  border-radius: 10px;
}
.dropdown-content a {
  color: #000;
  padding: 20px 20px;
  text-decoration: none;
  display: block;
  transition: 0.5s;
  font-size: 1.25em;
  border-radius: 10px;
}

.dropdown-content a::after {
  content: "";
  display: block;
  width: 30px;
  height: 2px;
  background: #252526;
  border-radius: 10px;
}

.show {
  display: block;
}

.vsgtransform {
  transform: rotate(90deg);
  transition: 300ms;
}

.reversevsg {
  transform: rotate(0deg);
  transition: 300ms;
}

@media (max-width: 739px) {
  .dropbtn {
    display: inline-block;
    align-self: center;
  }

  .header-nav {
    display: none;
  }
}

/* Animation */

@keyframes growDown {
  0% {
    transform: scaleY(0);
  }
  80% {
    transform: scaleY(1.1);
  }
  100% {
    transform: scaleY(1);
  }
}

@keyframes textDown {
  from {
    opacity: 0;
    transform: translate3d(0, -30px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.js-scroll {
  opacity: 0;
  transform: translate3d(-30px, 0, 0);
  transition: 0.3s;
}

.js-scroll.ativo {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
