body,
nav,
ul,
li,
a,
p,
h2,
h1 {
  padding: 0px;
  margin: 0px;
}

html {
  overflow-x: hidden;
}

h2 {
  margin-bottom: 20px;
}

body {
  font-family: monospace;
  font-size: 1.1em;
}

li {
  list-style: none;
}

a {
  text-decoration: none;
  color: #0099ff;
}

/* Nav Bar */
nav {
  position: fixed;
  width: 100vw;
  display: flex;
  background-color: #050924;
  color: #cbd7f0;
  height: 60px;
  align-items: center;
  z-index: 2000;
}

nav .container {
  margin-left: auto;
}

nav a {
  color: #cbd7f0;
}

.nav-li {
  display: inline;
  margin-right: 30px;
  font-size: 1.5em;
}

.nav-li-home {
  margin-left: 30px;
  font-size: 3em;
}

/* Home Page */
.home {
  background-image: url("../img/universe.jpg");
  background-size: cover;
  width: 100%;
  height: 1000px;
  color: whitesmoke;
  margin: 0px;
}

.home .container {
  /* position: absolute; */
  padding-top: 330px;
  padding-left: 200px;
  font-size: 2.8em;
}

h1 span {
  position: relative;
  color: #0099ff;
}

.home a {
  display: inline-block;
  background-color: rgb(29, 29, 29);
  border: 2px solid #072057;
  border-radius: 4px;
  padding: 20px;
  font-size: 0.9em;
  color: whitesmoke;
  margin-top: 20px;
  width: 250px;
  text-align: center;
}

.home button a {
  text-decoration: none;
}

.home img {
  position: absolute;
  top: 200px;
  right: 200px;
  height: 600px;
  animation: imgBouce 2.5s ease-in-out infinite;
}

/* Conhecimentos Section */
.conhecimentos {
  display: flex;
  justify-content: center;
  background-color: #091f50;
  width: 100%;
  height: auto;
  color: #cbd7f0;
}

.conhecimentos .container {
  margin-top: 50px;
  margin-bottom: 50px;
  font-size: 2em;
  width: 50%;
  padding: 50px;
  border-left: 2px solid rgba(128, 128, 128, 0.404);
  border-right: 2px solid rgba(128, 128, 128, 0.404);
}

.conhecimentos .container div {
  margin-bottom: 20px;
}

.conhecimentos .container li {
  margin-bottom: 10px;
}

.conhecimentos .container-list-idiomas {
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  grid-template-rows: 1fr 1fr;
}

.mais-info {
  font-size: 0.6em;
  margin-bottom: 10px;
}

.idiomas {
  grid-column: 1;
}

.container-list-txt {
  grid-column: 2;
  grid-row: 1/3;
}

.list {
  margin-bottom: 50px;
}

/* Sobre Mim Section */
.sobre-mim {
  display: flex;
  justify-content: center;
  background-color: #071b44;
  width: 100%;
  height: auto;
  color: #cbd7f0;
}

.sobre-mim .container {
  margin-top: 50px;
  margin-bottom: 50px;
  font-size: 2em;
  width: 50%;
  padding: 20px;
  border-left: 2px solid rgba(128, 128, 128, 0.404);
  border-right: 2px solid rgba(128, 128, 128, 0.404);
  padding: 50px;
}

.sobre-mim h2 {
  margin-bottom: 30px;
}

/* Experiencias Section */
.experiencias {
  display: flex;
  justify-content: center;
  background-color: #061638;
  width: 100%;
  height: auto;
  color: #cbd7f0;
}

.experiencias .container {
  margin-top: 50px;
  margin-bottom: 50px;
  font-size: 2em;
  width: 50%;
  padding: 20px;
  border-left: 2px solid rgba(128, 128, 128, 0.404);
  border-right: 2px solid rgba(128, 128, 128, 0.404);
  padding: 50px;
}

.experiencias h2 {
  margin-bottom: 30px;
}

/* Projetos Section */
.projetos {
  display: flex;
  justify-content: center;
  background-color: #060f29;
  width: 100%;
  height: auto;
  color: #cbd7f0;
}

.projetos .container {
  margin-top: 50px;
  margin-bottom: 50px;
  font-size: 2em;
  width: 50%;
  padding: 20px;
  border-left: 2px solid rgba(128, 128, 128, 0.404);
  border-right: 2px solid rgba(128, 128, 128, 0.404);
  padding: 50px;
}

.projetos h2,
.projetos li {
  text-align: center;
}

.projetos ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  gap: 50px;
}

.projetos img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.2s;
  margin-bottom: 10px;
  border-left: 6px solid #cbd7f0;
  border-radius: 4px;
}

/* Contato Section */
.contato {
  display: flex;
  justify-content: center;
  background-color: #040e20;
  width: 100%;
  height: 370px;
  color: #cbd7f0;
}

.contato .container {
  margin-top: 50px;
  margin-bottom: 50px;
  font-size: 2em;
  width: 50%;
  padding: 20px;
  border-left: 2px solid rgba(128, 128, 128, 0.404);
  border-right: 2px solid rgba(128, 128, 128, 0.404);
  padding: 50px;
}

.conhecimentos li:hover {
  border-left: 4px solid #cbd7f0;
  padding-left: 10px;
  background-color: #0d1d3d80;
}

.container-list {
  display: grid;
  grid-template-columns: 1fr 2fr;
}

.section {
  width: 100vw !important;
}

@media (max-width: 900px) {
  body {
    font-size: 0.8em;
    width: 100%;
  }
  .section {
    width: 100% !important;
  }

  .container {
    width: auto !important;
    padding: 20px !important;
    border: 0px !important;
  }

  .home {
    justify-content: center;
    align-items: center;
  }

  .home .container {
    margin: 0px;
    padding: 0px;
    width: 200px;
    justify-content: center;
    align-items: center;
  }

  .home-links {
    display: grid;
    justify-content: center;
  }

  nav {
    display: none;
  }

  .home {
    display: grid;
    width: 100%;
    height: 800px;
    justify-content: center;
  }

  .home a {
    width: 170px;
  }

  h1 {
    max-width: 400px;
  }

  .home img {
    display: none;
  }

  .projetos .container {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
  }

  .projetos div {
    grid-column: 1/3;
  }

  .projetos img {
    height: 300px;
    width: 100%;
  }

  .list {
    width: 200px;
  }

  .mais-info {
    display: none;
  }

  .container-list-txt {
    display: none;
  }

  .contato {
    font-size: 0.9em;
  }
}

@media (max-width: 1300px) {
  .projetos div {
    display: grid;
    justify-content: center;
    grid-column: 1/3;
  }

  .projetos img {
    height: 300px;
    width: 100%;
    align-self: center;
    max-width: 500px;
  }
}

/* JS Tab Hiden Text Activation */
#html-txt {
  padding-left: 20px;
  border-left: 4px solid #e34c26;
  display: none;
  animation: fadeInRight 0.7s ease-in-out;
}

#html-txt.active {
  display: grid;
}

#css-txt {
  padding-left: 20px;
  border-left: 4px solid #264de4;
  display: none;
  animation: fadeInRight 0.7s ease-in-out;
}

#css-txt.active {
  display: grid;
}

#js-txt {
  padding-left: 20px;
  border-left: 4px solid #f0db4f;
  display: none;
  animation: fadeInRight 0.7s ease-in-out;
}

#js-txt.active {
  display: grid;
}

#git-txt {
  padding-left: 20px;
  border-left: 4px solid #f1502f;
  display: none;
  animation: fadeInRight 0.7s ease-in-out;
}

#git-txt.active {
  display: flex;
}

#typescript-txt {
  padding-left: 20px;
  border-left: 4px solid #007acc;
  display: none;
  animation: fadeInRight 0.7s ease-in-out;
}

#typescript-txt.active {
  display: flex;
}

#react-txt {
  padding-left: 20px;
  border-left: 4px solid #04d8f9;
  display: none;
  animation: fadeInRight 0.7s ease-in-out;
}

#react-txt.active {
  display: flex;
}

/* Mouse Hover CSS */
#html:hover i {
  color: #e34c26;
}

#css:hover i {
  color: #264de4;
}

#js:hover i {
  color: #f0db4f;
}

#git:hover i {
  color: #f1502f;
}

#typescript:hover iconify-icon {
  color: #007acc;
}

#react:hover i {
  color: #04d8f9;
}

.projetos img:hover {
  transform: scale(1.1);
}

/* Home Name Animation */
h1 span::after {
  content: "";
  margin-left: 10px;
  height: 100%;
  width: 100%;
  left: 0;
  border-left: 6px solid rgb(0, 89, 255);
  animation: blink-caret 1s step-end infinite;
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: #0099ff;
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
  }
}

/* Home Img Animation */
@keyframes imgBouce {
  50% {
    top: 100px;
  }
  100% {
    top: 200px;
  }
}

/* Scrolling animation */
.hidden {
  opacity: 0;
  transition: all 1.5s;
}

.show {
  opacity: 2;
}

/* Scroll Bar */
::-webkit-scrollbar {
  background-color: #050924;
}

::-webkit-scrollbar-thumb {
  background-color: #cbd7f0;
}
