/* FONTS */

/* FOR BODY TEXT */
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-4.1/InterVariable.ttf") format("truetype");
}

/* FOR H1 MAIN TITLE */
@font-face {
  font-family: "PlayfairDisplay";
  src: url("../fonts/Playfair_Display/PlayfairDisplay-VariableFont_wght.ttf")
    format("truetype");
}

/* FOR H2 TO H6 */
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins/Poppins-Bold.ttf") format("truetype");
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  transition: 0.5s ease;
  font-family: "Inter", Arial, Helvetica, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
  margin-bottom: 1rem;
  color: #252525;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: "PlayfairDisplay", serif;
  color: #252525;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
}

h1,
h2 {
  text-shadow: 3px 2px 10px rgba(0, 0, 0, 0.1);
}

p {
  margin-bottom: 1rem;
}

q {
  font-style: italic;
  font-family: "PlayfairDisplay", serif;
}

a {
  color: #3182da;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.alert-box {
  background-color: #f8d7da;
  border: 1px solid #f4c5c9;
  color: #66232b;
  border-radius: 20px;
  padding: 10px;
  width: 100%;
}

.card {
  width: 300px;
  height: 250px;
  background-color: white;
  color: black;
  border-radius: 20px;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.404);
  padding: 10px;
}

.card:hover {
  transform: rotate(-10deg);
}

.repos-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 15px;
  padding: 20px;
}

section.home {
  background-color: #fff;
  border-radius: 20px;
  width: 100%;
  position: relative;
}

.container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 5px 20px;
  overflow: hidden;
}

.hidden {
  display: none !important;
}

nav.navbar,
nav.links {
  background-color: #1d2642;
  padding: 20px;
  border-radius: 50px;
  margin: 10px 0px;
}

nav.navbar > button.toggle-navbar-btn {
  border: 2px solid #1d2642;
  background-color: #1d2642;
  text-decoration: none;
  border-radius: 20px;
  text-transform: uppercase;
  font-weight: bold;
  padding: 5px 15px;
  cursor: pointer;
}

nav.navbar > button.toggle-navbar-btn:hover {
  border: 2px solid white;
}

nav.navbar > div.nav-items {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0px;
}

nav.navbar > div.nav-items > a.nav-item,
nav.links > a.nav-item {
  text-decoration: none;
  border-radius: 20px;
  color: white;
  text-transform: uppercase;
  font-weight: bold;
  padding: 5px 15px;
}

nav.navbar > div.nav-items > a.nav-item:hover,
nav.links > a.nav-item:hover {
  background-color: white;
  color: #171616;
  transform: scale(1.05);
}

nav.links {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-evenly;
  gap: 10px;
  width: 100%;
  max-width: 500px;
  flex-wrap: wrap;
}

section > div.container {
  display: flex;
  gap: 20px;
}

section.home > div.container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

section.home > div.container > div.info {
  text-align: center;
}

section.home > div.container > img {
  width: 100%;
  max-width: 500px;
}

section.home > div.container > img:active {
  animation: scaleAndRotate 0.3s ease-in-out forwards;
}

section.about > div.container {
  display: flex;
  flex-direction: column;
}

section {
  padding: 10px 0;
}

section > .container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

section.home .container {
  flex-direction: column;
  text-align: center;
}

section.about .about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.about-me,
.tech-stack {
  flex: 1 1 300px;
  background-color: #fff;
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  max-width: 100%;
}

div.about-content {
  max-width: 100%;
}

.about-me p {
  text-align: justify;
}

.tech-carousel {
  display: flex;
  flex-direction: row;
  gap: 20px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: thin; /* Para Firefox */
}

.tech-carousel img {
  height: 60px; /* Ajusta conforme o design */
  flex-shrink: 0;
  filter: grayscale(100%);
}

.tech-carousel::-webkit-scrollbar {
  height: 8px;
}

.tech-carousel::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.tech-carousel::-webkit-scrollbar-thumb:hover {
  background: #555;
}

@keyframes scaleAndRotate {
  0% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.1) rotate(10deg);
  }
  100% {
    transform: scale(1.1) rotate(-3deg);
  }
}

div.tech-carousel > img:hover {
  animation: scaleAndRotate 0.3s ease-in-out forwards;
  filter: grayscale(0%);
}

@keyframes barrelRoll {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.doBarrelRoll {
  animation: barrelRoll 10s linear infinite; /* 10s para uma rotação suave */
}

img.github-readme-stats {
  width: 100%;
  max-width: 500px;
  border-radius: 20px;
  border: 1px solid rgb(110, 110, 110);
  margin: auto;
}

.tech-stack {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
}

/* GITHUB REPO DESIGN */

div.githubRepoList {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 20px;
  align-items: center;
  justify-content: center;
}

div.githubRepoList > div.repoBox {
  width: 100%;
  max-width: 500px;
  background-color: #fff;
  border-radius: 20px;
  padding: 10px 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: block;
}

div.githubRepoList > div.repoBox:hover {
  box-shadow: 0 4px 10px rgba(53, 53, 53, 0.596);
  transform: scale(1.05);
}

div.githubRepoList > div.repoBox > section.basicInfo {
  text-align: start;
}

/* REMOVE THIS LINE IF IT IS REMOVING TOO MUCH INFORMATION! */
div.githubRepoList > div.repoBox > section.basicInfo > p {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

div.githubRepoList > div.repoBox > section.basicInfo > h3 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

div.githubRepoList > div.repoBox > section.moreInfo {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-evenly;
}

/* CONTACT AREA */
section.contact > div.container {
  display: flex;
  flex-direction: column;
}

div.contact-content {
  flex: 1 1 300px;
  background-color: #fff;
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
}

section.contact form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

section.contact form > section.actionButtons {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Estilo geral para os inputs */
.form-input,
.form-text-area {
  width: 100%; /* Garante que os inputs ocupem toda a largura do container */
  padding: 0.8rem 1rem; /* Espaçamento interno */
  border: 1px solid #ccc; /* Borda padrão cinza */
  border-radius: 0.375rem; /* Bordas arredondadas */
  font-size: 1rem; /* Tamanho da fonte */
  background-color: #fff; /* Cor de fundo branca */
  color: #333; /* Cor do texto */
  transition: border-color 0.3s ease, box-shadow 0.3s ease; /* Transição suave para mudanças */
  box-sizing: border-box; /* Garantir que o padding não altere o tamanho total */
}

.form-input:focus,
.form-text-area:focus {
  outline: none; /* Remove o outline padrão */
  border-color: #007bff; /* Cor da borda quando o input estiver em foco */
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); /* Efeito de sombra azul clara */
}

/* Estilo específico para o input type="text" e input type="email" */
.form-input {
  height: 2.5rem; /* Altura confortável para o input */
}

/* Estilo específico para o textarea */
.form-text-area {
  height: 150px; /* Altura maior para o textarea */
  resize: vertical; /* Permite redimensionar a área de texto verticalmente */
  min-height: 100px; /* Altura mínima */
}

/* Botão Primary */
.btn-primary {
  background-color: #007bff; /* cor de fundo azul */
  border: 0px;
  color: white; /* cor do texto branca */
  border-radius: 20px; /* borda arredondada */
  padding: 0.375rem 0.75rem; /* espaçamento interno */
  font-size: 1rem; /* tamanho da fonte */
  font-weight: 400; /* peso da fonte */
  text-align: center; /* texto centralizado */
  cursor: pointer; /* cursor de ponteiro */
  display: inline-block; /* exibição em linha */
  text-decoration: none; /* sem sublinhado */
  transition: background-color 0.15s ease, border-color 0.15s ease; /* transição suave */
}

/* Efeito ao passar o mouse no botão Primary */
.btn-primary:hover {
  background-color: #0056b3; /* cor de fundo mais escura */
}

/* Botão Danger */
.btn-danger {
  background-color: #dc3545; /* cor de fundo vermelha */
  border: 0px;
  color: white; /* cor do texto branca */
  border-radius: 20px; /* borda arredondada */
  padding: 0.375rem 0.75rem; /* espaçamento interno */
  font-size: 1rem; /* tamanho da fonte */
  font-weight: 400; /* peso da fonte */
  text-align: center; /* texto centralizado */
  cursor: pointer; /* cursor de ponteiro */
  display: inline-block; /* exibição em linha */
  text-decoration: none; /* sem sublinhado */
  transition: background-color 0.15s ease, border-color 0.15s ease; /* transição suave */
}

/* Efeito ao passar o mouse no botão Danger */
.btn-danger:hover {
  background-color: #c82333; /* cor de fundo mais escura */
  border-color: #bd2130; /* borda mais escura */
}

/* FOOTER */
footer {
  background-color: #fff;
}

/* GO TOP BTN */
.goTopBtn {
  position: fixed;
  bottom: 0;
  right: 0;
  margin: 20px;
  padding: 15px;
  border: 0px;
  border-radius: 20px 20px 0px 20px;
  background-color: #2a5a91;
  color: white;
  display: none;
  z-index: 2;
  text-decoration: none;
  opacity: 0.5;
  width: 50px;
  height: 50px;
  text-align: center;
}

.goTopBtn:hover {
  cursor: pointer;
  transform: scale(1.05);
  border-radius: 20px;
  opacity: 1;
  content: "teste";
}

.skipToContentBtn {
  position: absolute;
  top: -999px; /* Esconde o botão fora da tela */
  left: auto;
  padding: 0.5em 1em;
  background-color: #2a5a91; /* Cor de fundo (exemplo) */
  color: white;
  text-decoration: none;
  z-index: 9999; /* Garante que fique acima de outros elementos */
  width: 100vw;
  text-align: center;
}

.skipToContentBtn:focus {
  top: 0; /* Move o botão para a posição visível quando focado */
}

/* SHINY EFFECT */
.shiny-title {
  position: relative;
  display: inline-block;
  font-size: 3rem;
  color: #272727; /* Ou a cor base que preferires */
  background: linear-gradient(
    90deg,
    #a8a8a8 0%,
    #7c7c7c 40%,
    #5e5e5e 50%,
    #3d3d3d 60%,
    #424242 100%
  );
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: shine 3s linear infinite;
}

@keyframes shine {
  0% {
    background-position: 200% center;
  }
  100% {
    background-position: -200% center;
  }
}

/* FLOTATING BACKGROUND ICONS */
.floating-icons {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none; /* Para não atrapalhar cliques */
  z-index: -1;
  overflow: hidden;
}

.icon {
  position: absolute;
  width: 50px;
  height: 50px;
  opacity: 0;
  animation: float linear infinite;
}

@keyframes float {
  0% {
    transform: translate(var(--start-x), var(--start-y)) scale(var(--scale));
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translate(var(--end-x), var(--end-y)) scale(var(--scale));
    opacity: 0;
  }
}
