#projects .carousel {
width: 90%;
margin: 0 auto;
}
#projects .bg-gray-800 {
border-radius: 0 !important; /* Makes the project boxes fully rectangular */
}
#projects img {
max-width: 100%;
height: auto;
display: block;
margin: 0 auto; /* Centers images */
}
#projects .grid {
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Better responsive layout for images /
gap: 1rem; / Adjusted gap for better visualization */
}
#projects .github-links {
margin-top: 1.5rem;
font-size: 1rem;
}
#projects .github-links a {
color: #ff0000;
text-decoration: none;
transition: color 0.3s ease;
}
#projects .github-links a:hover {
color: #cc0000;
}
/* GIF specific styling to preserve near-square aspect ratio /
#projects .gif-container {
position: relative;
width: 100%;
padding-top: 100.49%; / 1018/1013 ≈ 100.49% for aspect ratio */
overflow: hidden;
}
#projects .gif-container img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: contain;
}
/* Rest of the original CSS remains unchanged */
.gradient-text {
background: linear-gradient(90deg, #ff0000, #800080);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
.section-divider {
height: 2px;
background: linear-gradient(90deg, transparent, #ff0000, transparent);
}
.tech-card, .soft-card {
transition: all 0.3s ease;
background-color: #2d2d2d;
color: #ffffff;
border: 1px solid #990000;
cursor: pointer;
}
.soft-card {
border: 1px solid #800080;
}
.tech-card:hover, .soft-card:hover {
transform: translateY(-2px);
box-shadow: 0 4px 6px rgba(255, 0, 0, 0.3);
background-color: #3d3d2d;
}
.tech-card:focus, .soft-card:focus {
outline: none;
box-shadow: 0 0 0 2px #ff0000;
}
body {
background-color: #000000;
color: #ffffff;
}
.bg-white {
background-color: #2d2d2d !important;
color: #ffffff;
}
.bg-gray-50 {
background-color: #1a1a1a !important;
}
.bg-gray-800 {
background-color: #1a1a1a !important;
}
.bg-blue-50 {
background-color: #2d2d2d !important;
}
.bg-blue-100 {
background-color: #3d3d3d !important;
}
.text-gray-600, .text-gray-500, .text-gray-400 {
color: #b3b3b3 !important;
}
.text-gray-800 {
color: #ffffff !important;
}
.border-gray-300 {
border-color: #800080 !important;
}
.shadow-sm {
box-shadow: 0 1px 3px rgba(255, 0, 0, 0.3) !important;
}
.shadow-md {
box-shadow: 0 4px 6px rgba(255, 0, 0, 0.3) !important;
}
.shadow-xl {
box-shadow: 0 10px 25px rgba(255, 0, 0, 0.3) !important;
}
.bg-blue-500 {
background-color: #ff0000 !important;
}
.bg-blue-600 {
background-color: #cc0000 !important;
}
.bg-blue-700 {
background-color: #990000 !important;
}
.text-blue-600 {
color: #ff0000 !important;
}
.text-blue-800 {
color: #cc0000 !important;
}
.bg-blue-200 {
background-color: #800080 !important;
}
.bg-gradient-to-r {
background-image: linear-gradient(to right, #1a1a1a, #2d2d2d) !important;
}
.bg-gray-600 {
background-color: #4a4a4a !important;
}
.border-gray-700 {
border-color: #800080 !important;
}
.text-blue-500 {
color: #ff0000 !important;
}
.bg-blue-100 {
background-color: #3d3d3d !important;
}
.logo-sesi{
width: 140px;
height: 140px;
}
.logos{
width: 48px;
height: 48px;
}
.logo-aws{
width: 130px;
height: 130px;

}
/* ------------------ RESPONSIVIDADE DAS CERTIFICAÇÕES ------------------ */
#education .space-y-4 > div {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
}

@media (max-width: 768px) {
  #education .space-y-4 > div {
    flex-direction: column; /* Empilha imagem e texto no celular */
    align-items: center;
    text-align: center;
  }

  #education .space-y-4 img {
    width: 90px;
    height: auto;
    margin-bottom: 0.5rem;
  }

  #education .space-y-4 a h4 {
    font-size: 1rem;
  }

  #education .space-y-4 a p {
    font-size: 0.9rem;
  }
}

/* ------------------ RESPONSIVIDADE DA SEÇÃO DE CONTATO ------------------ */
#contact .bg-gray-800 {
  margin: 0 auto;
  padding: 1.5rem;
  border-radius: 1rem;
}

@media (max-width: 768px) {
  #contact .grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  #contact .bg-gray-800 {
    width: 90%;
  }

  #contact img {
    width: 80%;
    margin-top: 1rem;
    border-radius: 1.5rem;
  }
}
/* ------------------ AJUSTE DA IMAGEM DE CONTATO ------------------ */
#contact .relative {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 3 / 4; /* Mantém proporção vertical e evita corte */
}

#contact .relative img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Preenche a área da box sem distorcer */
  object-position: center; /* Centraliza o rosto */
  border-radius: 1.5rem;
  margin: 0px;
}

/* No mobile, mantém responsivo e proporcional */
@media (max-width: 768px) {
  #contact .relative {
    max-width: 260px;
    aspect-ratio: 3 / 4;
  }

  #contact .relative img {
    border-radius: 1.25rem;
  }
}

/* ===================== AJUSTES: Contato (alinhamento) ===================== */
/* Garante que os itens fiquem alinhados verticalmente e com espaçamento consistente */
#contact .bg-gray-800 {
  margin: 0 auto;
  padding: 1.5rem;
  border-radius: 1rem;
}

/* Alinha ícone e conteúdo no centro verticalmente e cria gap uniforme */
#contact .bg-gray-800 .space-y-4 .flex.items-start {
  align-items: center;
  gap: 0.75rem;
}

/* Padroniza tamanho do ícone (feather) para alinhamento preciso */
#contact .bg-gray-800 .space-y-4 i[data-feather] {
  min-width: 32px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0; /* remove deslocamento por mt-1 */
}

/* Remove margens extras dentro das colunas de texto para evitar desalinhamento */
#contact .bg-gray-800 .space-y-4 .flex.items-start > div {
  margin: 0;
}

/* No mobile, mantém o card centralizado e o texto legível.
   Mantemos os ícones à esquerda do texto (não centralizamos os ícones em cima). */
@media (max-width: 768px) {
  #contact .bg-gray-800 { width: 92%; padding: 1.25rem; }
  #contact .bg-gray-800 .space-y-4 .flex.items-start {
    justify-content: flex-start;
    text-align: left;
  }
  /* Se quiser texto centralizado no bloco todo (opcional), descomente:
  #contact .grid { text-align: center; }
  #contact .bg-gray-800 .space-y-4 .flex.items-start { justify-content: center; }
  */
}

/* ===================== AJUSTES: Formação (mobile + estética) ===================== */
/* Tornar a timeline amigável no mobile — empilhar os blocos, centralizar bolinha numerada */
@media (max-width: 768px) {

  /* Cada item da timeline vira coluna e centraliza conteúdo */
  #education .relative .mb-8 {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 0.6rem;
  }

  /* Centraliza a bolinha com número e reduz o tamanho para ficar proporcional */
  #education .relative .z-20 {
    margin: 0.4rem auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(255, 0, 0, 0.12);
  }
  #education .relative .z-20 h1 {
    margin: 0;
    font-size: 1rem;
    line-height: 1;
  }

  /* Os cards ocupam 100% do espaço disponível (com um max-width para não ficarem enormes) */
  #education .relative .bg-gray-800 {
    width: 100% !important;
    max-width: 520px;
    margin: 0.25rem auto;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.45);
  }

  /* Ajusta o logo do SESI/SENAI para não estourar o card */
  #education .relative .logo-sesi, 
  #education .relative .logo-aws {
    width: 120px;
    height: auto;
    display: block;
    margin: 0.4rem auto 0.2rem auto;
  }

  /* Texto dentro do card — tamanho e espaçamento mais agradável no mobile */
  #education .relative .bg-gray-800 h3 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
  }
  #education .relative .bg-gray-800 p {
    font-size: 0.95rem;
    margin: 0;
  }

  /* Espaçamento entre os itens da timeline */
  #education .max-w-4xl .space-y-8 {
    gap: 1rem;
  }
}

/* Melhora contraste e separação entre cards no mobile */
@media (max-width: 480px) {
  #education .relative .bg-gray-800, 
  #contact .bg-gray-800 {
    padding: 0.9rem;
  }
  #contact .bg-gray-800 .space-y-4 i[data-feather] {
    min-width: 28px;
    min-height: 28px;
  }
}

#contact .bg-gray-800 .space-y-4 .flex.items-start > div p {
overflow-wrap: break-word;
}
@media (max-width: 768px) {
#contact .grid {
text-align: center;
}
#contact .bg-gray-800 .space-y-4 .flex.items-start {
justify-content: center;
text-align: center;
}
#contact .bg-gray-800 p {
font-size: 0.875rem; /* Reduz ligeiramente o tamanho da fonte no mobile para melhor ajuste */
}
}

