/* Importação de fontes e configurações globais */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap");

/* Variáveis CSS - Esquema de cores e valores reutilizáveis */
:root {
  /* Cores principais do tema */
  --primary-color: #355c7d;
  --secondary-color: #6c5b7b;
  --accent-color: #5fa8d3;
  --background-color: #23272f;
  --card-bg-color: #2d3142;
  --text-color: #f7f7fa;
  --border-color: #393e4f;

  /* Sistema de espaçamento */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;

  /* Sistema de sombras */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.18);
}

/* Reset CSS básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Estilos base do documento */
body {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: "Inter", sans-serif;
}

/* Sistema de Cards */
.card {
  /* Estilos base para todos os cards do site */
}

/* Componente Badge/Pill */
.badge {
  /* Estilo base para badges de tecnologias */
}

/* Grid de Habilidades */
.skills-grid {
  /* Layout em grid 3x2 para cards de habilidades */
}

/* Responsividade */
@media (max-width: 900px) {
  /* Ajustes para telas médias */
}

@media (max-width: 480px) {
  /* Ajustes para telas pequenas */
}

/* ====== CSS Original Abaixo ====== */

/* Variáveis e Reset */
:root {
  --primary-color: #355c7d;
  --secondary-color: #6c5b7b;
  --accent-color: #5fa8d3;
  --background-color: #23272f;
  --card-bg-color: #2d3142;
  --text-color: #f7f7fa;
  --border-color: #393e4f;

  /* Medidas comuns */
  --border-radius-sm: 8px;
  --border-radius-md: 14px;
  --border-radius-lg: 18px;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;

  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.18);
  --shadow-lg: 0 14px 40px rgba(0, 0, 0, 0.28);

  /* Transições */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-smooth: 0.22s cubic-bezier(.2, .9, .3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

/* Base */
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
}

/* Tipografia */
h1,
h2,
h3 {
  margin-bottom: var(--spacing-sm);
  line-height: 1.2;
}

h1 {
  font-size: 2.3rem;
  font-weight: 700;
  letter-spacing: -1px;
}

.section-title {
  font-size: 1.7rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

/* Layout Comum */
.section {
  padding: var(--spacing-lg) var(--spacing-sm);
  background: var(--background-color);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 0;
  background: linear-gradient(90deg, #23272b 0%, #3949ab 100%);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(8px);
}

.navbar-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.navbar-link {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  padding: 0.4rem 0.6rem;
  transition: color 0.2s;
}

.navbar-link::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transition: width 0.3s ease;
}

.navbar-link:hover,
.navbar-link:focus {
  color: var(--secondary-color);
}

.navbar-link:hover::after,
.navbar-link:focus::after {
  width: 100%;
}

/* Header */
.header {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding-top: 90px;
  background: var(--background-color);
  scroll-margin-top: 90px;
}

.profile-photo {
  width: 320px;
  height: 320px;
  box-shadow: 0 0 24px 4px #00bcd4, 0 2px 16px rgba(30, 34, 40, 0.08);
  border-radius: 50%;
  border: 4px solid var(--primary-color);
  object-fit: cover;
  background: var(--card-bg-color);
  transition: box-shadow 0.3s;
  margin-bottom: 2rem;
  animation: float 5s ease-in-out infinite;
}

h1 {
  font-size: 2.3rem;
  color: var(--text-color);
  font-weight: 700;
  margin: 30px 0 10px 0;
  letter-spacing: -1px;
}

h1,
h2,
h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  line-height: 1.2;
}

/* About */
.about {
  padding: 2.5rem 0 2rem 0;
  text-align: center;
  background: var(--background-color);
  scroll-margin-top: 90px;
}

.about-title {
  font-size: 1.7rem;
  color: var(--text-color);
  margin-bottom: 1rem;
  font-weight: 600;
}

.about-box {
  max-width: 650px;
  margin: 0 auto 2rem auto;
  background: var(--card-bg-color);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(30, 34, 40, 0.1);
  padding: 2rem 2rem 1.5rem 2rem;
  text-align: justify;
}

.about-box {
  background: var(--card-bg-color) !important;
  backdrop-filter: none !important;
  box-shadow: 0 2px 12px 0 rgba(30, 34, 40, 0.1);
}

.about-text {
  font-size: 1.08rem;
  color: var(--text-color);
  margin-bottom: 1rem;
  margin-top: 0;
  line-height: 1.7;
  text-align: justify;
}

.about-subtitle {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--accent-color);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.about-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
}

.about-list li {
  font-size: 1.05rem;
  color: var(--text-color);
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.6;
}

.about-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

/* Projects & Music */
.projects,
.music-section {
  padding: 3rem 1rem;
  text-align: center;
  background: var(--background-color);
  scroll-margin-top: 90px;
}

.projects-title,
.music-title {
  font-size: 1.8rem;
  color: var(--text-color);
  margin-bottom: 2.5rem;
  font-weight: 600;
}

.projects-list,
.music-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.project-card,
.music-card {
  background: linear-gradient(135deg, #2d3142 60%, #393e4f 100%);
  border: 1.5px solid var(--border-color);
  border-radius: 18px;
  box-shadow: 0 6px 32px 0 rgba(30, 34, 40, 0.18),
    0 1.5px 8px 0 rgba(48, 52, 70, 0.1);
  padding: 1.5rem 1.2rem;
  width: 100%;
  max-width: 350px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transition: box-shadow 0.3s, border-color 0.2s, transform 0.2s, background 0.4s;
  position: relative;
  overflow: hidden;
}

/* Ajuste específico para música */
.music-card {
  max-width: 300px;
  min-width: 180px;
  height: 360px;
  /* um pouco maior para balancear a proporção */
  padding: 1.3rem 1rem;
}

.project-card:hover,
.music-card:hover {
  box-shadow: 0 0 32px 8px #fff, 0 8px 32px 0 rgba(30, 34, 40, 0.22);
  border-color: var(--accent-color);
  background: linear-gradient(135deg, #393e4f 60%, #2d3142 100%);
  transform: translateY(-8px) scale(1.02);
}

.project-image,
.music-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 0.8rem;
  background: #23272f;
  box-shadow: 0 2px 12px 0 rgba(30, 34, 40, 0.1);
}

.project-title,
.music-name {
  font-size: 1.2rem;
  color: var(--text-color);
  font-weight: 700;
  margin: 0.5rem 0 0.3rem 0;
  width: 100%;
  text-align: center;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

.project-link,
.music-link {
  color: var(--accent-color);
  font-weight: 600;
  text-decoration: none;
  margin-top: auto;
  border-radius: 6px;
  padding: 0.5rem 1.2rem;
  background: rgba(192, 108, 132, 0.08);
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}

.project-link:hover,
.music-link:hover {
  color: #fff;
  background: var(--accent-color);
  box-shadow: 0 0 12px 2px var(--accent-color);
}


/* Contact */
.contact {
  padding: 2.5rem 0 2rem 0;
  text-align: center;
  background: var(--background-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  scroll-margin-top: 90px;
}

.contact-title {
  font-size: 1.7rem;
  color: var(--text-color);
  margin-bottom: 1rem;
  font-weight: 600;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  background: var(--card-bg-color);
  border-radius: 14px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 12px 0 rgba(30, 34, 40, 0.08);
}

.contact-form {
  background: var(--card-bg-color) !important;
  backdrop-filter: none !important;
  box-shadow: 0 2px 12px 0 rgba(30, 34, 40, 0.1);
}

.form-field {
  padding: 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  font-size: 1rem;
  background: #181a1b;
  color: var(--text-color);
  outline: none;
  transition: box-shadow 0.3s, border-color 0.2s;
}

textarea.form-field {
  min-height: 120px;
  height: 160px;
  max-height: 300px;
  resize: vertical;
}

.form-field:focus,
textarea.form-field:focus {
  border: 1.5px solid var(--accent-color);
  box-shadow: 0 0 12px 2px #00bcd4, 0 2px 8px 0 rgba(30, 34, 40, 0.1);
  outline: none;
}

.form-button {
  padding: 0.8rem;
  border-radius: 8px;
  border: none;
  background: linear-gradient(90deg,
      var(--primary-color),
      var(--secondary-color));
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, box-shadow 0.3s, border-color 0.2s,
    transform 0.2s;
  box-shadow: 0 2px 12px 0 rgba(30, 34, 40, 0.1);
}

.form-button:hover {
  background: linear-gradient(90deg,
      var(--secondary-color),
      var(--primary-color));
  box-shadow: 0 0 10px 2px #00bcd4, 0 2px 8px 0 rgba(30, 34, 40, 0.1);
  border: 1px solid var(--accent-color);
  transform: translateY(-2px) scale(1.01);
}

/* Particles Background */
.particles-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--accent-color);
  opacity: 0.18;
  animation: float-big 24s ease-in-out infinite;
  box-shadow: 0 0 32px 8px var(--accent-color),
    0 0 64px 16px var(--accent-color), 0 0 128px 32px #fff3;
  /* O último valor (#fff3) dá um leve brilho branco */
}

@keyframes float-big {
  0% {
    transform: translateY(0) translateX(0) scale(1);
  }

  25% {
    transform: translateY(-80px) translateX(40px) scale(1.15);
  }

  50% {
    transform: translateY(-160px) translateX(-40px) scale(1.25);
  }

  75% {
    transform: translateY(-80px) translateX(40px) scale(1.15);
  }

  100% {
    transform: translateY(0) translateX(0) scale(1);
  }
}

/* Exemplo de partículas menores */
.particle.p1 {
  width: 180px;
  height: 180px;
  left: 8vw;
  top: 18vh;
  animation-delay: 0s;
}

.particle.p2 {
  width: 120px;
  height: 120px;
  left: 65vw;
  top: 10vh;
  animation-delay: 0s;
}

.particle.p3 {
  width: 220px;
  height: 220px;
  left: 35vw;
  top: 60vh;
  animation-delay: 0s;
}

.particle.p4 {
  width: 140px;
  height: 140px;
  left: 80vw;
  top: 65vh;
  animation-delay: 0s;
}

.particle.p5 {
  width: 90px;
  height: 90px;
  left: 20vw;
  top: 80vh;
  animation-delay: 0s;
}

@keyframes float {
  0% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-40px) scale(1.2);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}

/* Responsividade para tablets */
@media screen and (max-width: 900px) {

  .projects-list,
  .music-list {
    flex-direction: column;
    align-items: center;
  }

  .project-card,
  .music-card {
    max-width: 95vw;
    min-width: 0;
    width: 90vw;
    height: auto;
    padding: 1.2rem 0.7rem;
  }

  .profile-photo {
    width: 160px;
    height: 160px;
  }

  .about-box,
  .contact-form {
    padding: 1.2rem 1rem;
    max-width: 98vw;
  }
}

/* Responsividade para celulares */
@media screen and (max-width: 600px) {

  .about-box,
  .contact-form {
    padding: 1rem 0.5rem;
    max-width: 100vw;
  }

  .project-card,
  .music-card {
    padding: 1rem 0.5rem;
    width: 98vw;
    max-width: 100vw;
    min-width: 0;
    height: auto;
  }

  .project-image,
  .music-image {
    height: 120px;
  }

  .profile-photo {
    width: 90px;
    height: 90px;
  }

  .about-title,
  .projects-title,
  .music-title,
  .contact-title {
    font-size: 1.1rem;
  }

  .about-text {
    font-size: 0.98rem;
  }

  .navbar {
    padding: 0.3rem 0;
  }

  .navbar-menu {
    gap: 0.7rem;
    font-size: 0.92rem;
  }

  .navbar-link {
    font-size: 0.92rem;
    padding: 0.2rem 0;
  }

  @keyframes float {

    0%,
    100% {
      transform: translateY(0);
    }

    50% {
      transform: translateY(-5px) scale(1);
    }
  }
}

.project-card,
.music-card,
.about-box,
.contact-form {
  opacity: 1 !important;
  background: var(--card-bg-color) !important;
  backdrop-filter: none !important;
}

/* Rodapé - redes sociais */
.site-footer {
  background: linear-gradient(90deg, rgba(35, 37, 47, 0.95), rgba(45, 49, 66, 0.95));
  color: var(--text-color);
  padding: 20px 0;
  margin-top: 40px;
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.35);
  z-index: 10;
}

.footer-container {
  width: min(1100px, 92%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer-text {
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--text-color);
}

.social-links {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--text-color);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.social-link svg {
  display: none;
}

/* caso ainda existam svgs inline */
.social-link img.social-icon {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: none;
  /* caso queira inverter/ajustar cor, remover */
}

.social-link:hover img.social-icon {
  transform: translateY(-3px);
}

.social-link[aria-label="Spotify"]:hover {
  color: #1DB954;
}

.social-link[aria-label="GitHub"]:hover {
  color: #fff;
}

.social-link[aria-label="LinkedIn"]:hover {
  color: #0A66C2;
}

.social-link[aria-label="Instagram"]:hover {
  color: #E1306C;
}

.footer-copy {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-top: 6px;
  color: var(--text-color);
}

/* Destaque "Siga-me" no rodapé */
.follow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.2px;
  box-shadow: 0 8px 24px rgba(95, 168, 211, 0.12), 0 3px 10px rgba(30, 34, 40, 0.12);
  transform-origin: center;
  transition: transform .18s cubic-bezier(.2, .9, .3, 1), box-shadow .18s ease, opacity .18s ease;
  cursor: default;
  user-select: none;
}

/* pequeno ponto pulsante antes do texto para chamar atenção */
.follow-pill::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 14px rgba(95, 168, 211, 0.35);
  display: inline-block;
  transform-origin: center;
  animation: pulse-dot 1.8s infinite ease-in-out;
}

/* hover leve igual ao restante do site */
.follow-pill:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 36px rgba(95, 168, 211, 0.16), 0 4px 14px rgba(30, 34, 40, 0.12);
  opacity: 1;
}

/* animação do ponto */
@keyframes pulse-dot {
  0% {
    transform: scale(1);
    opacity: 0.95;
  }

  50% {
    transform: scale(1.45);
    opacity: 0.7;
  }

  100% {
    transform: scale(1);
    opacity: 0.95;
  }
}

/* responsivo: reduzir padding em telas pequenas */
@media (max-width: 420px) {
  .follow-pill {
    padding: 6px 10px;
    gap: 6px;
    font-size: 0.95rem;
  }

  .follow-pill::before {
    width: 7px;
    height: 7px;
  }
}

/* Layout desktop */
@media (min-width: 700px) {
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .footer-copy {
    margin-top: 0;
  }
}

@media (max-width: 420px) {
  .social-link {
    width: 40px;
    height: 40px;
  }

  .footer-text {
    font-size: 0.95rem;
  }

  .footer-copy {
    font-size: 0.85rem;
  }
}

/* ===== Adicionado: animação/hovers consistentes com o resto do CSS ===== */
.social-link {
  will-change: transform, box-shadow;
  transition: transform .22s cubic-bezier(.2, .9, .3, 1), box-shadow .22s ease, background .22s ease, border-color .18s ease, color .18s ease;
}

.social-link:hover {
  transform: translateY(-6px) scale(1.06);
  box-shadow: 0 10px 30px rgba(10, 16, 30, 0.32), 0 2px 8px rgba(48, 52, 70, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border-color: rgba(95, 168, 211, 0.14);
}

.social-link:active {
  transform: translateY(-2px) scale(0.995);
  transition: transform .08s ease;
}

.social-link:hover img.social-icon {
  transform: translateY(-4px) scale(1.04);
  transition: transform .18s cubic-bezier(.2, .9, .3, 1);
  opacity: 1;
}

/* ligeiro destaque por plataforma (mantém cores atuais) */
.social-link[aria-label="Spotify"]:hover {
  box-shadow: 0 10px 36px rgba(29, 185, 84, 0.12);
}

.social-link[aria-label="LinkedIn"]:hover {
  box-shadow: 0 10px 36px rgba(10, 102, 194, 0.12);
}

.social-link[aria-label="Instagram"]:hover {
  box-shadow: 0 10px 36px rgba(225, 48, 108, 0.10);
}

/* Ajustes específicos para cards PDF */
.pdf-card {
  height: auto !important;
  min-height: 420px;
}

.pdf-thumb {
  width: 100%;
  height: 280px;
  border-radius: 12px;
  overflow: hidden;
  background: #1a1c21;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdf-thumb canvas {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.pdf-fallback {
  color: #666;
  font-size: 0.9rem;
  padding: 1rem;
}

.project-link {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: var(--accent-color);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  margin-top: 1rem;
  transition: all 0.3s ease;
}

.project-link:hover {
  background: #4a8ab3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(95, 168, 211, 0.2);
}

/* Ajuste do título dentro do card */
.pdf-card .project-title {
  margin: 0;
  color: var(--text-color);
  font-size: 1rem;
}

/* Ajuste da descrição dentro do card */
.pdf-card .project-description {
  color: #bfc5ca;
  line-height: 1.5;
  max-width: 700px;
  margin: 0.25rem auto;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  word-wrap: break-word;
  font-size: 0.95rem;
  padding: 0 0.25rem;
}

/* Responsividade para os cards PDF */
@media screen and (max-width: 900px) {
  .pdf-card {
    min-height: 380px;
  }

  .pdf-thumb {
    height: 220px;
  }
}

@media screen and (max-width: 600px) {
  .pdf-card {
    min-height: 340px;
  }

  .pdf-thumb {
    height: 180px;
  }

  .project-link {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}

/* Skills Section */
.skills {
  padding: 2rem 1rem;
  scroll-margin-top: 90px;
  background: var(--background-color);
}

.skills-title {
  font-size: 1.7rem;
  color: var(--text-color);
  text-align: center;
  margin-bottom: 2rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* 3 cards por linha */
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  grid-auto-rows: 1fr;
  /* força linhas com altura igual */
}

/* cards esticam para preencher a célula da grid */
.skill-card {
  background: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  height: 100%;
  /* importante para igualar alturas com grid-auto-rows */
  align-items: stretch;

  /* transição/performace */
  will-change: transform, box-shadow, border-color, background;
  transition: transform .22s cubic-bezier(.2, .9, .3, 1), box-shadow .22s ease, border-color .18s ease, background .18s ease;
}

/* hover / foco / active - animação consistente com o resto do site */
.skill-card:hover,
.skill-card:focus-within {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28), 0 6px 18px rgba(95, 168, 211, 0.06);
  border-color: rgba(95, 168, 211, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), var(--card-bg-color));
  z-index: 2;
}

.skill-card:active {
  transform: translateY(-3px) scale(1.01);
  transition: transform .12s ease;
}

/* título alinhado à esquerda */
.card-title {
  font-size: 1.05rem;
  color: var(--accent-color);
  text-align: left;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* badges alinhadas à esquerda e quebram quando preciso */
.skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-color);
  border-radius: 999px;
  font-size: 0.82rem;
  white-space: normal;
  min-height: 36px;

  /* suave transição ao hover */
  transition: transform .18s cubic-bezier(.2, .9, .3, 1), box-shadow .18s ease, background .18s ease;
  will-change: transform, box-shadow, background;
}

/* ícone do badge */
.badge img {
  width: 18px;
  height: 18px;
}

/* efeito do hover nas badges */
.badge:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

/* responsivo: empilha em uma coluna em telas menores */
@media (max-width: 900px) {
  .skills-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .card-title {
    text-align: center;
  }

  .badge {
    font-size: 0.78rem;
    padding: 6px 8px;
  }
}

/* ajuste fino para muito pequenas larguras */
@media (max-width: 480px) {
  .badge {
    padding: 5px 8px;
    font-size: 0.72rem;
  }

  .badge img {
    width: 16px;
    height: 16px;
  }
}

/* Experience Section */
.experience {
  padding: 2rem 1rem;
  scroll-margin-top: 90px;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.experience-card {
  background: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md, 14px);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.education-card {
  background: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md, 14px);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: auto;

  /* transição/performace */
  will-change: transform, box-shadow, border-color, background;
  transition: transform .22s cubic-bezier(.2, .9, .3, 1), box-shadow .22s ease, border-color .18s ease, background .18s ease;
}

/* hover / foco / active - animação consistente com o resto do site */
.education-card:hover,
.education-card:focus-within {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28), 0 6px 18px rgba(95, 168, 211, 0.06);
  border-color: rgba(95, 168, 211, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), var(--card-bg-color));
  z-index: 2;
}

.education-card:active {
  transform: translateY(-3px) scale(1.01);
  transition: transform .12s ease;
}

/* Hover animation */
.experience-card:hover {
  transform: scale(1.03);
  /* aumenta levemente o card */
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
  /* sombra suave */
  background-color: rgba(0, 123, 255, 0.05);
  /* leve azul de destaque */
}

/* Animação suave nos elementos internos */
.experience-card .company-logo,
.experience-card .company-name,
.experience-card .job-title,
.experience-card .job-period,
.experience-card .job-description {
  transition: transform 0.3s ease;
}

.experience-card:hover .company-logo,
.experience-card:hover .company -name,
.education-card:hover .course-title,
.education-card:hover .course-period,
.education-card:hover .course-description {
  transform: translateY(-2px);
  /* leve elevação do conteúdo */
}

.experience-header {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.company-logo {
  width: 48px;
  height: 48px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(95, 168, 211, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.company-logo img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  filter: invert(35%) sepia(100%) saturate(1500%) hue-rotate(190deg);
}

.company-name {
  margin: 0;
  color: var(--accent-color);
  font-weight: 600;
}

.job-title {
  margin: 0;
  color: var(--text-color);
  font-size: 0.95rem;
}

.job-period {
  font-size: 0.85rem;
  color: #9aa0a6;
}

/* Ajuste para telas pequenas */
@media (max-width: 480px) {
  .job-description {
    text-align: left;
    /* em telas pequenas, alinhamento à esquerda para melhor leitura */
  }
}

.experience-card .skill-badges {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.experience-card .badge {
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 10px;
  font-size: 0.82rem;
  border-radius: 999px;
}

@media (max-width:900px) {
  .experience-grid {
    grid-template-columns: 1fr;
  }
}

/* Education Section */
.education {
  padding: 2rem 1rem;
  scroll-margin-top: 90px;
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Hover animation */
.education-card:hover {
  transform: scale(1.03);
  /* aumenta levemente o card */
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
  /* sombra suave */
  background-color: rgba(0, 123, 255, 0.05);
  /* leve azul de destaque */
}

/* Animação suave nos elementos internos */
.education-card .institution-logo,
.education-card .institution-name,
.education-card .course-title,
.education-card .course-period,
.education-card .course-description {
  transition: transform 0.3s ease;
}

.education-card:hover .institution-logo,
.education-card:hover .institution-name,
.education-card:hover .course-title,
.education-card:hover .course-period,
.education-card:hover .course-description {
  transform: translateY(-2px);
  /* leve elevação do conteúdo */
}

.education-header {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.institution-logo {
  width: 48px;
  height: 48px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(95, 168, 211, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.institution-logo img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  filter: invert(35%) sepia(100%) saturate(1500%) hue-rotate(190deg);
}

.institution-name {
  margin: 0;
  color: var(--accent-color);
  font-weight: 600;
}

.course-title {
  margin: 0;
  color: var(--text-color);
  font-size: 0.95rem;
}

.course-period {
  font-size: 0.85rem;
  color: #9aa0a6;
}

.course-description {
  display: none;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  word-wrap: break-word;
  font-size: 0.95rem;
  padding: 0 0.25rem;
}

/* Certifications Section */
.project-card.js-card {
  background: linear-gradient(135deg, #2d3142 60%, #393e4f 100%);
  border: 1.5px solid var(--border-color);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  padding: 1.5rem 1.2rem;
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  transition: all 0.3s ease;
}

.project-card.js-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 0 32px 8px #f0db4f33, 0 8px 32px 0 rgba(30, 34, 40, 0.22);
  border-color: #f0db4f;
}

.project-card.js-card .project-image {
  width: 100px;
  height: 100px;
  object-fit: contain;
  background: transparent;
  border-radius: 50%;
}

.project-card.js-card .project-title {
  color: #f0db4f;
}

.project-card.js-card .project-link {
  background: #f0db4f;
  color: #23272f;
  font-weight: 700;
  transition: all 0.3s ease;
}

.project-card.js-card .project-link:hover {
  background: #ffe873;
  transform: translateY(-3px);
  box-shadow: 0 0 18px rgba(240, 219, 79, 0.35);
}

/* Ajuste específico para a certificação da Google Cybersecurity */
#certifications-grid .project-card .project-image {
  width: 220px;
  height: 220px;
  object-fit: contain;
  margin: 0 auto 1rem;
}

/* GRID DE CERTIFICAÇÕES */
#certifications-grid {
  display: grid;
  place-items: center;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  justify-content: center;
  align-items: start;
  padding: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  /* centraliza o grid na página */
}

.certifications-title {
  display: grid;
  place-items: center;
}

#certifications {
  scroll-margin-top: 90px;
}