/* padronizar qualquer diferença entre navegadores */
* {
  color: var(--claro);
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
/* suavisa o scroll */
html {
  scroll-behavior: smooth;
}
/* cores utilisadas */
:root {
  --primaria: #4f46e5;
  --secundaria: #7c3aed;
  --escuro: #0f172a;
  --maisEscuro: #0a0f1c;
  --claro: #e2e8f0;
  --vidro: rgba(255, 255, 255, 0.1);
  --vidroNav: rgba(15, 23, 42, 0.8);
}
body {
  background-color: var(--escuro);
}
/* navegação */
.navegacao {
  position: fixed;
  background: var(--vidroNav);
  width: 100%;
  z-index: 100;
  top: 0;
  padding: 1.5rem;
}
.menu {
  display: flex;
  list-style: none;
  gap: 3rem;
  justify-content: center;
}
.menu-link {
  text-decoration: none;
  color: var(--claro);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}
a {
  font-size: 1.2rem;
  
}
/* after-> depois | before -> antes */
/* efeitos no before antes */
.menu-link::after {
  content: "";
  height: 2px;
  width: 0;
  position: absolute;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, var(--primaria), var(--secundaria));
  transition: width 0.5s ease;
}
.menu-link:hover::after {
  width: 100%;
}
/* foto do perfil parte principal */
.cabecalho {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding-top: 50px;
}
.foto-perfil {
  height: 300px;
  width: 300px;
  box-shadow: 0 0 20px rgba(79, 70, 229, 0.3);
  border-radius: 50%;
  border: 4px solid var(--vidro);
  animation: flutuar 5s ease-in-out infinite;
}
h1 {
  font-size: 3.5rem;
  color: var(--primaria);
  font-weight: bold;
  margin: 20px;
  text-align: center;
}
.cabecalho-subtitle {
  font-size: 1.5rem;
  color: var(--claro);
  text-align: center;
}
/* seção Sobre */
.sobre {
  padding: 6rem 2rem;
}
.sobre-titulo {
  font-size: 3rem;
  color: var(--claro);
  text-align: center;
  margin-bottom: 20px;
}
.sobre-caixa {
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 16px;
  border: 1px solid var(--vidro);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.05);
}
.sobre-paragrafo {
  text-align: center;
  font-size: 1.2rem;
  padding: 6px;
}
.hard-skills-titulo {
  display: block;
  text-align: center;
  margin: 1.5rem 0 1rem;
  font-size: 2.4rem;
}
#sobre ul {
  font-size: 1.2rem;
}
#icone {
  font-size: 1.8rem;
  padding: 10px;
}
/* seção Projetos */
.projetos {
  padding: 6rem 2rem;
}
.projetos-image {
  height: 200px;
  width: 100%;
  object-fit: cover;
}
.projetos-titulo {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
}
.carrossel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}
.carrossel-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  /* scroll-snap-type: x proximity; */
  /* scroll-behavior: smooth; */
  -webkit-overflow-scrolling: touch;
  padding: 0 2.75rem 0.5rem;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  scrollbar-width: none;
}
.carrossel-viewport::-webkit-scrollbar {
  display: none;
}
.carrossel-viewport.arrastando {
  cursor: grabbing;
}
.projetos-caixa {
  display: flex;
  gap: 2rem;
  width: max-content;
}
.projetos-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  backdrop-filter: blur(5px);
  border: 1px solid var(--vidro);
  overflow: hidden;
  transition: all 0.5s ease;
  cursor: pointer;
  flex: 0 0 clamp(260px, 80vw, 340px);
  scroll-snap-align: start;
  animation: deslizar-esquerda 0.8s ease both;
}
.carrossel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(45deg, var(--primaria), var(--secundaria));
  color: var(--claro);
  cursor: pointer;
  z-index: 2;
  transition: all 0.3s ease;
  font-size: 20px;
  font-weight: bold;
}
.carrossel-btn-prev {
  left: 0;
}
.carrossel-btn-next {
  right: 0;
}
.carrossel-btn:hover:not(:disabled) {
  box-shadow: 0 0 15px rgba(79, 70, 229, 0.5);
  transform: translateY(-50%) scale(1.1);
}
.carrossel-btn:active:not(:disabled) {
  transform: translateY(-50%) scale(0.95);
}
.carrossel-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.projetos-card:nth-child(2) {
  animation-delay: 0.08s;
}
.projetos-card:nth-child(3) {
  animation-delay: 0.16s;
}
.projetos-card:nth-child(4) {
  animation-delay: 0.24s;
}
.projetos-card:nth-child(5) {
  animation-delay: 0.32s;
}
.projetos-card:nth-child(6) {
  animation-delay: 0.4s;
}
.info-projetos {
  margin-bottom: 5px;
}
.paragrafo-projetos {
  color: rgba(226, 232, 240, 0.8);
  line-height: 1.25rem;
}
.caixa-textos-projetos {
  padding: 1.5rem;
}
/* efeitos do card */
.projetos-card:hover {
  box-shadow: 0 0 10px rgba(79, 70, 229, 0.2);
  transform: translateY(-10px) scale(1.03);
}

/* pagina de detalhes */
.detalhe-cabecalho {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  padding: 7rem 2rem 2rem;
}
.detalhe-subtitle {
  font-size: 1.2rem;
  color: rgba(226, 232, 240, 0.85);
  max-width: 800px;
}
.detalhe-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1rem;
}
.tag {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--vidro);
  font-size: 0.9rem;
}
.detalhe {
  padding: 4rem 2rem;
}
.detalhe-titulo {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}
.detalhe-caixa {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--vidro);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.05);
}
.detalhe-paragrafo {
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.6rem;
  color: rgba(226, 232, 240, 0.85);
}
.galeria {
  padding: 4rem 2rem;
}
.galeria-titulo {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}
.galeria-carrossel {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}
.galeria-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 0 2.75rem 0.5rem;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  scrollbar-width: none;
}
.galeria-viewport::-webkit-scrollbar {
  display: none;
}
.galeria-viewport.arrastando {
  cursor: grabbing;
}
.galeria-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
}
.galeria-item {
  width: clamp(260px, 80vw, 520px);
  height: 320px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--vidro);
  scroll-snap-align: center;
}
.galeria-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(45deg, var(--primaria), var(--secundaria));
  color: var(--claro);
  cursor: pointer;
  z-index: 2;
}
.galeria-btn-prev {
  left: 0;
}
.galeria-btn-next {
  right: 0;
}
.detalhe-links {
  padding: 3rem 2rem 6rem;
}
.detalhe-links-caixa {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-detalhe {
  text-decoration: none;
  padding: 0.9rem 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--vidro);
  background: rgba(255, 255, 255, 0.06);
  transition: all 0.4s ease;
}
.btn-detalhe:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3);
}

/* Seção CONTATOS */
.contato-titulos {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
}
.formulario-conato,
.rodape-caixa {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  padding: 2rem;
  border: 1px solid var(--vidro);
  border-radius: 16px;
}
.grupo-form {
  margin-bottom: 1.5rem;
}
.campo-form {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid var(--vidro);
  outline: none;
}
.campo-form:focus {
  border-color: var(--secundaria);
  box-shadow: 0 0 10px rgba(79, 70, 229, 0.2);
}
.btn-form {
  background: linear-gradient(45deg, var(--primaria), var(--secundaria));
  padding: 1rem 2rem;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  width: 100%;
  transition: all 0.5s ease;
  font-size: 1rem;
  /* negrito */
  font-weight: bold;
}
.btn-form:hover {
  transform: translateY(-4px);
  box-shadow: 0 5px 15px rgba(79, 70, 229, 0.4);
}
/* Particulas da pagina efeitos luzes */
.particulas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.5;
  background: radial-gradient(
      circle at 10% 20%,
      var(--primaria) 0%,
      transparent 20%
    ),
    radial-gradient(circle at 90% 80%, var(--secundaria) 0%, transparent 20%),
    var(--maisEscuro);
}
.card {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}
/* rodape */
.rodape-caixa {
  text-align: center;
  
  
  color: var(--claro);
}
.item-rodape {
  text-decoration: none;
}
footer {
  padding-top: 50px;
  padding-bottom: 40px;
}
#icon-sociais {
  font-size: 30px;
  padding-inline: 10px;
  padding-top: 5px;
}
/* flutuar a foto do perfil */
@keyframes flutuar {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes deslizar-esquerda {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .projetos-card {
    animation: none;
  }
}

@media (max-width: 700px) {
  .carrossel-viewport {
    padding: 0 2.25rem 0.5rem;
  }
  .carrossel-btn {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  .projetos-card {
    flex: 0 0 clamp(240px, 90vw, 320px);
  }
}

@media (max-width: 480px) {
  .carrossel-btn {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
  .carrossel-viewport {
    padding: 0 2rem 0.5rem;
  }
  .projetos-card {
    flex: 0 0 clamp(200px, 95vw, 300px);
  }
}
/* ==========================================
  Soft Skills
   ========================================== */

/* Container principal da seção */
.soft-skills {
    padding: 6rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Caixa com efeito de vidro e bordas arredondadas (reutilizando seu estilo) */
.soft-skills-caixa {
    padding: 3rem;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 16px;
    border: 1px solid var(--vidro);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.05);
    text-align: center;
}

/* Título com o gradiente roxo/azul do seu portfólio */
/* 🌟 Título reutilizável com efeito de gradiente */
.titulo-gradiente {
    font-size: 2.2rem;
    background: linear-gradient(90deg, var(--primaria), var(--secundaria));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: bold;
    margin-bottom: 25px;
    display: inline-block;
}

/* Container dos ícones reorganizado para a nova caixa */
.icones-hard-skills {
    font-size: 2.2rem; /* Aumentamos os ícones para dar mais destaque! */
    display: flex;
    flex-wrap: wrap; /* Permite que os ícones pulem de linha no celular */
    justify-content: center;
    gap: 1.5rem; /* Espaço entre os ícones */
    margin-bottom: 2.5rem;
}

/* Efeito da linha divisória */
.divisor-habilidades {
    border: none;
    height: 1px;
    /* Faz um degradê transparente -> cor de vidro -> transparente */
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    margin-bottom: 3rem;
}
/* Parágrafo de introdução */
.soft-skills-subtitulo {
    color: rgba(226, 232, 240, 0.85);
    font-size: 1.1rem;
    line-height: 1.6rem;
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

/* Configuração da lista desordenada */
.soft-skills-lista {
    list-style: none; /* Remove os marcadores padrão */
    padding: 0;
    margin: 0;
    text-align: left; /* Alinha o texto da lista à esquerda, como na imagem */
}

/* Cada item da lista */
.soft-skills-item {
    font-size: 1.1rem;
    color: var(--claro);
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 2.5rem; /* Abre espaço para o checkmark à esquerda */
    line-height: 1.5rem;
}

/* Título da habilidade */
.skill-nome {
    font-weight: bold;
}

/* CHECKMARK VERDE: */
.soft-skills-item::before {
    content: '✓'; /* O caractere do checkmark */
    color: #4ade80; /* Cor verde vibrante */
    font-size: 1.4rem;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: -2px; /* Ajuste fino do alinhamento vertical */
}
/* ==========================================
   BOTÃO DE DOWNLOAD DO CURRÍCULO
   ========================================== */

/* Caixa para centralizar o botão de forma responsiva */
.caixa-btn-curriculo {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

/* O botão principal */
.btn-curriculo {
    display: inline-flex;
    align-items: center;
    gap: 10px; /* Espaço entre o ícone e o texto */
    
    /* Gradiente baseado na sua paleta de cores */
    background: linear-gradient(45deg, var(--secundaria), var(--primaria));
    color: var(--claro);
    text-decoration: none;
    
    padding: 1rem 2rem;
    border-radius: 8px; /* Bordas arredondadas como na foto */
    font-size: 1.1rem;
    font-weight: bold;
    
    /* Suaviza o efeito de hover */
    transition: all 0.4s ease;
    
    /* Uma sombra leve e roxa para dar destaque */
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

/* Efeito ao passar o mouse (Hover) */
.btn-curriculo:hover {
    transform: translateY(-4px); /* Botão "sobe" um pouquinho */
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.5); /* Sombra fica mais forte */
}

/* Tamanho do ícone de download */
.btn-curriculo ion-icon {
    font-size: 1.4rem;
}
/* ==========================================
   CHATBOT IA FLUTUANTE
   ========================================== */
.btn-ia-flutuante {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--secundaria), var(--primaria));
    color: white;
    border: none;
    font-size: 30px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(124, 58, 237, 0.4);
    z-index: 1000;
    transition: transform 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-ia-flutuante:hover {
    transform: scale(1.1);
}

.janela-chat-ia {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 450px;
    background: var(--escuro);
    border: 1px solid var(--vidro);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0); /* Escondido por padrão */
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.janela-chat-ia.ativa {
    transform: scale(1); /* Mostra a janela quando a classe 'ativa' for adicionada */
}

.chat-cabecalho {
    background: linear-gradient(90deg, var(--secundaria), var(--primaria));
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.chat-cabecalho button {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.chat-mensagens {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(255, 255, 255, 0.02);
}

.mensagem {
    padding: 10px 15px;
    border-radius: 12px;
    max-width: 80%;
    font-size: 0.95rem;
    line-height: 1.4;
}

.mensagem.bot {
    background: rgba(255, 255, 255, 0.1);
    align-self: flex-start;
    border-bottom-left-radius: 0;
}

.mensagem.usuario {
    background: var(--secundaria);
    align-self: flex-end;
    border-bottom-right-radius: 0;
}

.chat-input-caixa {
    display: flex;
    padding: 10px;
    border-top: 1px solid var(--vidro);
    background: rgba(0, 0, 0, 0.2);
}

.chat-input-caixa input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    padding: 10px;
    outline: none;
}

.chat-input-caixa button {
    background: transparent;
    border: none;
    color: var(--secundaria);
    font-size: 24px;
    cursor: pointer;
    padding: 0 10px;
}