@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
  /*--background: #262c35;*/
  --texto-branco: #ffffff;
  --nome-completo: #4d8cec;
  --hashtag: #4d8cec;
  --hashtag-grande: #4d8cec;
  --bloco-azul: #4d8cec;
  --linha-binaria: #2a5399;
  --cor-neon-azul: #85b7ff;
}

html,
* {
  font-family: "IBM Plex Mono", monospace;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

/* Transições suaves */
html {
  scroll-behavior: smooth;
}

/* Efeito de digitação para o nome */
.nome {
  display: inline-block;
  overflow: hidden;
  border-right: 3px solid var(--nome-completo);
  white-space: nowrap;
  margin: 0 auto;
  animation: typing 3.5s steps(30, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from {
    width: 0
  }

  to {
    width: 100%
  }
}

@keyframes blink-caret {

  from,
  to {
    border-color: transparent
  }

  50% {
    border-color: var(--nome-completo)
  }
}

.nav-link {
  color: var(--texto-branco) !important;
  font-weight: bold !important;
  font-size: 1rem !important;
}

.hash {
  color: var(--hashtag);
  font-size: 1.1rem !important;
}

main {
  margin-top: 55px;
}

/* Ajuste específico para a seção hero evitar sobreposição do header */
.hero {
  padding-top: 80px;
}

@media (max-width: 991.98px) {
  .hero {
    padding-top: 100px;
  }
}

@media (max-width: 575.98px) {
  .hero {
    padding-top: 120px;
  }
}

@media (max-width: 425px) {
  .hero {
    padding-top: 140px;
  }
}

h1,
.descricao {
  color: var(--texto-branco) !important;
  font-weight: bold !important;
}

.nome {
  color: var(--nome-completo) !important;
  font-weight: bold !important;
  font-size: 3rem;
}

.hero-img {
  width: 300px;
  height: 300px;
  max-width: 100%;
}

/* Estilo específico para animação Lottie */
dotlottie-player.hero-img {
  width: 400px;
  height: 400px;
  max-width: 100%;
  margin-left: 40px;
}

.hero {
  height: 80vh;
}

@media (max-width: 767px) {

  .hero-img,
  dotlottie-player.hero-img {
    max-width: 75%;
    width: 300px;
    height: 300px;
    margin-left: 0;
  }

  .nome {
    font-size: 2.2rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {

  .hero-img,
  dotlottie-player.hero-img {
    max-width: 85%;
    width: 350px;
    height: 350px;
    margin-left: 20px;
  }

  .nome {
    font-size: 2.5rem;
  }
}

.titulo {
  color: var(--hashtag-grande);
  font-weight: bold;
  font-size: 2rem;
}

.titulo span {
  color: var(--texto-branco);
}

.linha-binaria {
  color: var(--linha-binaria);
  font-size: 0.6rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 768px) {
  .linha-binaria {
    font-size: 0.4rem;
    white-space: normal;
    text-align: center;
  }

  .titulo {
    font-size: 1.6rem;
    text-align: center;
  }
}

.texto {
  color: var(--texto-branco);
  font-weight: bold;
  font-size: 1rem;
  line-height: 1.7;
  text-align: justify;
}

@media (max-width: 480px) {
  .texto {
    font-size: 0.8rem;
  }
}

.foto {
  width: 300px;
  height: 400px;
  border: 4px solid var(--bloco-azul);
  margin: 0 auto;
  border-radius: 10px;
  transition: 0.4s ease;
  box-shadow: 0 0 10px var(--bloco-azul);
  background-color: var(--background);
}

.foto:hover {
  box-shadow: 0 0 20px var(--cor-neon-azul), 0 0 25px var(--cor-neon-azul),
    0 0 30px var(--cor-neon-azul);
  filter: brightness(1.1);
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .foto {
    width: 220px;
    height: 300px;
  }
}

@media (max-width: 480px) {
  .foto {
    width: 180px;
    height: 240px;
  }
}

#sobre-mim {
  background-color: var(--background);
  width: 100%;
}

.vscode-container {
  border: 1px solid #333;
  border-radius: 8px;
  background-color: #1e1e1e;
  color: white;
}

.sidebar {
  background-color: #2c2c2c;
  width: 50px;
  min-height: 300px;
}

.vscode-logo {
  width: 24px;
}

.sidebar-icons img {
  width: 20px;
  cursor: pointer;
}

.explorer-panel {
  background-color: #252526;
  min-height: 300px;
}

.explorer-header {
  color: #ccc;
  padding-left: 15px;
}

.arrow {
  width: 12px;
}

.main-content {
  background-color: #1e1e1e;
  min-height: 300px;
}

.content-section {
  display: block;
  color: var(--texto-branco);
  background-color: transparent;
  z-index: 1;
  position: relative;
}

.content-section:first-child {
  display: block;
}

.sub-item img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

#subItems {
  display: none;
}

.folder {
  cursor: pointer;
}

.folder:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.sub-item {
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border-radius: 5px;
  padding: 5px;
}

.sub-item:hover {
  background-color: rgba(0, 123, 255, 0.1);
  transform: translateX(5px);
}

.text-info,
.text-light {
  border-radius: 3px;
}

#subItems {
  display: none;
}

.texto-conhecimentos {
  padding-left: 15px;
}

@media (max-width: 768px) {
  .vscode-container {
    display: block;
  }

  .sidebar {
    display: none !important;
  }

  .sidebar,
  .explorer-panel,
  .main-content {
    width: 100%;
  }

  .sidebar {
    flex-direction: row;
    justify-content: space-around;
  }

  .vscode-logo {
    width: 30px;
  }

  .sidebar-icons img {
    width: 30px;
  }

  .sub-item {
    padding: 10px;
  }

  .content-section {
    padding: 20px;
  }

  .titulo-binario {
    text-align: center;
  }

  .titulo {
    font-size: 1.5rem;
  }

  .linha-binaria {
    font-size: 0.6rem;
  }

  .texto-conhecimentos {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
  }
}

@media (min-width: 768px) {
  .titulo-binario {
    text-align: left;
  }

  .texto-conhecimentos {
    padding-left: 15px;
  }

  .linha-binaria {
    font-size: 0.7rem;
  }
}

.iframe-certificado {
  width: 100%;
  max-width: 850px;
  height: 600px;
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  margin: 20px auto;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.iframe-certificado:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(0, 123, 255, 0.3);
}

.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.card-img-top {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

.btn img {
  margin-left: 5px;
  width: 16px;
  height: 16px;
}

.btn {
  padding: 5px 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

#contatos .form-control {
  background-color: #161b22;
  border: 1px solid #30363d;
  color: #c9d1d9;
  transition: all 0.3s ease;
}

#contatos .form-control::placeholder {
  color: #8b949e;
}

#contatos .form-control:focus {
  border-color: #58a6ff;
  box-shadow: 0 0 0 0.2rem rgba(88, 166, 255, 0.25);
  transform: translateY(-2px);
}

/* Transições para seções */
section {
  transition: opacity 0.5s ease;
}

/* Efeito de hover para links */
a {
  transition: color 0.3s ease, transform 0.3s ease;
}

a:hover {
  transform: translateY(-2px);
}

/* Efeito de hover para cards */
.card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(77, 140, 236, 0.3);
}

/* Animação para títulos */
.titulo {
  position: relative;
}

.titulo::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--nome-completo);
  transition: width 0.4s ease;
}

.titulo:hover::after {
  width: 100%;
}

/* Estilos para os cards de certificados */
.certificate-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.certificate-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(77, 140, 236, 0.2);
}

.certificate-card .btn {
  transition: all 0.3s ease;
}

.certificate-card .btn:hover {
  background-color: var(--nome-completo);
  border-color: var(--nome-completo);
  transform: translateY(-2px);
}