/* Paleta roxo/preto */
:root {
  --roxo: #6610f2;
  --roxo-claro: #8a4fff;
  --preto: #121212;
}

html,
body {
  background-color: var(--preto);
  color: #fff;
  scroll-behavior: smooth;
  font-family: Arial, Helvetica, sans-serif;
}

/* Navbar e footer */
.navbar {
  background-color: #121212 !important;
}
footer {
  background: #0d0d0d;
  color: #fff;
  padding: 20px;
  text-align: center;
}

/* Redes sociais no footer */
.social-links {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-icon {
  font-size: 1.8rem;
  color: #fff;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
  color: var(--roxo);
  transform: scale(1.2);
}

/* Header */
header {
  background: #2d1b4e;
  padding: 60px 0;
}

/* Container do header */
.header-container {
  display: flex;
  flex-direction: column; /* padrão para mobile */
  align-items: center;
  justify-content: center;
  gap: 1.5rem; /* espaçamento entre elementos */
  text-align: center;
}

/* Layout para telas médias e maiores */
@media (min-width: 768px) {
  .header-container {
    flex-direction: row;
    text-align: start;
  }
}

/* Foto do perfil */
.foto-perfil {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #fff;
  transition: transform 0.5s ease;
}
.foto-perfil:hover {
  transform: scale(1.08) rotate(3deg);
}

/* Header Text */
.header-text h1 {
  margin-top: 1rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  font-size: 2rem;
}

.descricao {
  font-size: 1.2rem;
}

/* Botão */
.botao-contato {
  margin-top: 1rem;
}

.btn-roxo {
  background-color: var(--roxo);
  border: none;
  color: #fff;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 0.5rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-roxo:hover {
  background-color: var(--roxo-claro);
  transform: translateY(-2px);
}

/* Seções */
section {
  padding: 60px 0;
}

.card-glass {
  background: linear-gradient(135deg, #2d1b4e, #0d0d2b);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 8px 25px rgba(128, 0, 255, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-glass:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(128, 0, 255, 0.6);
}

.card-icon {
  font-size: 40px;
  color: #c29fff;
  background: rgba(255, 255, 255, 0.05);
  padding: 15px;
  border-radius: 15px;
}

.card-body h4 {
  margin: 0;
  font-weight: bold;
  color: #fff;
}

.empresa-paragrafo {
  margin: 4px 0 8px;
  color: #cfcfe1;
}

.icons-tech i {
  margin-left: 6px;
  font-size: 18px;
}

/* Projetos - cards padronizados e profissionais */
.project-card {
  border-radius: 16px;
  overflow: hidden;
  background: #1a1a1a; /* fundo uniforme */
  color: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 20px rgba(102, 16, 242, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 450px; /* altura fixa de todos os cards */
}

.project-card img {
  height: 200px; /* tamanho fixo para todas as imagens */
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card img:hover {
  transform: scale(1.05);
}

.project-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* botão sempre no fim */
  padding: 20px;
}

.project-card .card-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.project-card .card-text {
  font-size: 0.95rem;
  color: #d1d1d1;
  overflow: hidden; /* evita que o texto estoure o card */
  margin-bottom: 15px;
}

.project-card .btn-roxo {
  align-self: flex-start;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(102, 16, 242, 0.55);
}

/* Carousel de certificados */
.cert-carousel {
  overflow: hidden;
  position: relative;
  padding: 20px 0;
}

.cert-track {
  display: flex;
  gap: 20px;
  transform: translateX(0);
  transition: transform 0.1s linear;
}

.cert-card {
  flex: 0 0 auto;
  width: 250px;
  height: 400px;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  position: relative;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  font-size: 1.1rem;
  text-align: center;
  padding-bottom: 10px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
}

.cert-card:hover {
  transform: scale(1.05);
  filter: saturate(1.2);
  box-shadow: 0 16px 40px rgba(102, 16, 242, 0.45);
}

@keyframes scrollCerts {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
/* Responsividade */
@media (max-width: 768px) {
  .cert-card {
    width: 180px;
    height: 288px; /* mantém proporção 5:8 */
  }
  .project-card {
    height: auto; /* altura automática no mobile */
  }
  .project-card img {
    height: 180px;
  }
}

/* DIPLOMA */
#diploma {
  background-color: #2d1b4e;
}

.diploma-card {
  max-width: 500px;
  border-radius: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.diploma-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

#diploma .btn-roxo {
  background-color: #6f42c1;
  color: #fff;
  border-radius: 50px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

#diploma .btn-roxo:hover {
  background-color: #5931a9;
  transform: scale(1.05);
}

#diploma h2 {
  font-weight: 500;
  color: #ffffff;
}

#diploma h4 {
  margin-bottom: 0.5rem;
  color: #333;
}

#diploma p {
  color: #666;
}

/* RESPONSIVO */
@media (max-width: 768px) {
  #diploma h2 {
    font-size: 2rem;
  }

  #diploma h4 {
    font-size: 1.3rem;
  }

  #diploma p {
    font-size: 0.9rem;
  }

  .diploma-card {
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  #diploma h2 {
    font-size: 1.8rem;
  }

  #diploma h4 {
    font-size: 1.1rem;
  }

  #diploma p {
    font-size: 0.85rem;
  }

  .diploma-card {
    padding: 1.5rem;
  }
}
