/* Estilos gerais */
:root {
  --bg: #f8fafc; /* Fundo ainda mais moderno e limpo */
  --card: #ffffff; /* Branco puro para cards */
  --muted: #64748b; /* Cinza mais moderno */
  --text: #0f172a; /* Texto praticamente preto */
  --primary: #2563eb; /* Azul moderno */
  --accent: #10b981; /* Verde vitrante */
  --glass: rgba(15, 23, 42, 0.08); /* Vidro moderno */
  --radius: 12px;
  --container: 1400px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15), 0 3px 8px rgba(0, 0, 0, 0.1);
}

/* Ajuste geral do layout */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scroll-padding-top: 70px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  background-image: url('./imagens/bodybackground.webp');
  background-attachment: scroll;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(248, 250, 252, 0.4); /* Overlay muito mais transparente para ver a imagem */
  pointer-events: none;
  z-index: -1;
}

/* Ajustes de cores de fundo e texto */
header {
  position: relative;
  padding: 0;
  padding-top: 50px;
  color: white;
  min-height: 300px;
  overflow: hidden;
  z-index: 1;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.5), rgba(16, 185, 129, 0.5)), url('./imagens/banner.webp') center center/cover no-repeat;
  background-attachment: scroll;
  filter: none;
  z-index: 0;
}

header > * {
  position: relative;
  z-index: 1;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  height: 60px;
  z-index: 999999;
  max-width: none;
  border-radius: 0;
  margin: 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 20px;
  padding: 10px 20px;
  background: transparent;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.nav.scrolled {
  background: rgba(26, 26, 26, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.navlinks a {
  color: white;
  text-decoration: none;
  margin: 0 10px;
  font-weight: bold;
  font-size: 0.95rem;
  padding: 6px 10px;
  border-radius: 8px;
  transition: color 0.3s, background-color 0.3s;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.6);
}

.navlinks a:hover {
  color: white;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
  background-color: rgba(255, 255, 255, 0.1);
  transform: none;
}

.navlinks {
  display: flex;
  gap: 15px;
  margin-left: auto; /* Move os links para o lado direito */
}

.language-switcher {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-right: auto;
}

.lang-btn {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid white;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.5);
  transform: scale(1.05);
}

.lang-btn.active {
  background: rgba(37, 99, 235, 0.6);
  border-color: rgba(37, 99, 235, 1);
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.8);
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid white;
  cursor: pointer;
  padding: 10px;
  border-radius: 8px;
  transition: background-color 0.3s, box-shadow 0.3s;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: white;
  transition: transform 0.3s;
  filter: none;
}

.hamburger:hover {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
  transform: none;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
  .nav {
    padding: 10px 24px;
  }
  .navlinks {
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.9);
    position: fixed;
    top: 60px;
    right: 20px;
    left: auto;
    width: min(220px, 80vw);
    padding: 10px;
    border-radius: 5px;
    gap: 10px;
    z-index: 1000000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }
  .navlinks.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    display: flex;
  }
  .navlinks a {
    display: block;
  }
  .hamburger {
    display: flex;
    margin-left: 0;
    margin-right: 6px;
  }
  .language-switcher {
    display: flex;
    gap: 5px;
    margin-right: 0;
  }
  .lang-btn {
    padding: 4px 8px;
    font-size: 0.75rem;
  }
  .nav {
    justify-content: space-between;
  }
}

@media (min-width: 769px) {
  .hamburger {
    display: none;
  }
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px 80px;
  background: transparent;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  box-shadow: none;
  position: relative;
  margin-top: -70px;
  padding-top: 110px;
  z-index: 10;
}

.hero img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.320, 1), box-shadow 0.4s cubic-bezier(0.23, 1, 0.320, 1);
  position: absolute;
  top: 0px;
}

.hero img:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px;
}

.section {
  margin: 40px 0;
  padding: 40px 20px;
  background: transparent;
  color: var(--text);
  border-radius: var(--radius);
  box-shadow: none;
}

/* Grid horizontal para projetos na página Home */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  justify-content: center;
  padding: 20px;
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .projects-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Estilo antigo removido - agora usando .projects-container */

/* Layout de projetos com seções alternadas */
.project-section {
  display: flex;
  gap: 40px;
  margin-bottom: 80px;
  align-items: center;
}

/* Ordem padrão: imagem esquerda, projetos direita */
.project-image-side {
  flex: 0 0 45%;
  order: 1;
}

.project-list-side {
  flex: 1;
  order: 2;
}

/* Inverte a ordem: projetos à esquerda, imagem à direita */
.project-section.reverse .project-image-side {
  order: 2;
}

.project-section.reverse .project-list-side {
  order: 1;
}

.project-image-side {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 400px;
  box-shadow: 0 8px 30px var(--glass);
}

.project-image-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-section:hover .project-image-side img {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  padding: 20px;
}

.image-overlay h3 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  color: white;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.project-list-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(96, 165, 250, 0.6) rgba(15, 23, 42, 0.3);
}

/* Estilo da scrollbar para webkit (Chrome, Safari, Edge) */
.project-list-side::-webkit-scrollbar {
  width: 8px;
}

.project-list-side::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.3);
  border-radius: 10px;
}

.project-list-side::-webkit-scrollbar-thumb {
  background: rgba(96, 165, 250, 0.6);
  border-radius: 10px;
  transition: background 0.3s ease;
}

.project-list-side::-webkit-scrollbar-thumb:hover {
  background: rgba(96, 165, 250, 0.9);
}

.project-item {
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(96, 165, 250, 0.2);
  padding: 18px 20px;
  border-radius: var(--radius);
  box-shadow: 0 4px 15px var(--glass);
  transition: all 0.3s ease;
}

.project-item:hover {
  transform: translateY(-5px);
  background: rgba(15, 23, 42, 0.5);
  border-color: rgba(96, 165, 250, 0.4);
  box-shadow: 0 8px 25px rgba(96, 165, 250, 0.3);
}

.project-item h4 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 700;
  color: #60a5fa;
}

.project-item p {
  margin: 0 0 12px 0;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
  font-size: 14px;
}

.project-item .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Responsivo */
@media (max-width: 968px) {
  .project-section {
    flex-direction: column;
    gap: 30px;
    margin-bottom: 60px;
  }
  
  .project-section .project-image-side,
  .project-section.reverse .project-image-side {
    order: 0;
    flex: 0 0 auto;
    width: 100%;
  }
  
  .project-section .project-list-side,
  .project-section.reverse .project-list-side {
    order: 1;
  }
  
  .project-image-side {
    height: 300px;
  }
  
  .image-overlay h3 {
    font-size: 24px;
  }
}

/* Remove estilos antigos dos cards */
.card-project {
  display: none;
}

/* Cards de categorias (Web, Power BI, Python, SQL) */
.card-category {
  cursor: pointer;
}

.card-category .proj-hero {
  position: relative;
}

.proj-clickable {
  transition: all 0.3s ease;
}

.card-category:hover .proj-clickable {
  filter: brightness(1.1);
}

.project-count {
  margin-top: 12px;
  padding: 8px 12px;
  background: rgba(37, 99, 235, 0.2);
  border-radius: 6px;
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.proj-hero {
  padding: 20px;
  text-align: center;
}

.proj-hero img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid white;
  margin: 0 auto 15px;
  display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.proj-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 10px 0;
  color: white;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.5);
}

.proj-desc {
  font-size: 1rem;
  color: white;
  margin: 10px 0;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.5);
  font-weight: 500;
}

.proj-list {
  margin: 12px 0;
  text-align: left;
}

.proj-list ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  color: white;
}

.proj-list li {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.95);
  margin: 8px 0;
  padding-left: 24px;
  position: relative;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.5);
  line-height: 1.5;
}

.proj-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: white;
  font-weight: bold;
}

.proj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}

.tag {
  background: transparent;
  color: white;
  border: 2px solid white;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.5);
}

.tag:hover {
  transform: scale(1.15);
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-color: white;
}

footer {
  background: transparent;
  color: white;
  padding: 40px 20px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.6);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
}

.footer-section {
  width: 100%;
  display: flex;
  justify-content: center;
}

.footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-links a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.2s ease;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.footer-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

footer a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.6);
}

footer a:hover {
  color: white;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
  transform: scale(1.05);
}

.tab {
  background: transparent;
  color: white;
  border: 2px solid white;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 5px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.5);
}

.tab:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.tab.active {
  background: rgba(255, 255, 255, 0.25);
  color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Estilos da seção de apresentação */
#presentation {
  margin-top: 30px;
  text-align: center;
  padding: 40px 20px;
  background: transparent;
  color: var(--text);
  border-radius: var(--radius);
  box-shadow: none;
  position: relative;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#presentation .title {
  color: white;
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.5);
  position: relative;
  padding-bottom: 20px;
  order: -2;
}

#presentation .title::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  max-width: 400px;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #10b981, #2563eb);
  bottom: 0;
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.6), 0 0 40px rgba(16, 185, 129, 0.4);
  border-radius: 10px;
}
#presentation .subtitle {
  color: white;
  margin-bottom: 30px;
  line-height: 1.6;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.4);
  font-weight: 500;
  font-size: 1.15rem;
  order: -1;
}
#presentation .actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  order: 3;
  margin-top: 30px;
}
#presentation .cv-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 20px;
  order: 1;
}

#presentation .cv-note {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  text-align: center;
  margin-top: 8px;
  order: 2;
}
#presentation .btn {
  background: transparent;
  color: white;
  border: 2px solid white;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 10;
}

#presentation .btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  color: white;
  border-color: white;
}

#presentation .btn-primary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

#presentation .btn-primary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  color: white;
  border-color: white;
}

#presentation .btn-light {
  background: transparent;
  color: white;
  border: 2px solid white;
}

#presentation .btn-light:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  color: white;
  border-color: white;
}

/* Estilo do banner que engloba os ícones de navegação */
/* Removido - já definido acima */

/* Estilos da seção de Experiência Profissional */
#experience {
  background: transparent;
  position: relative;
  padding-top: 40px;
}

/* Estilos da seção de Formações Importantes */
#important-trainings {
  background: transparent;
  position: relative;
  padding-top: 20px;
}

#important-trainings h2 {
  color: white;
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 24px;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.5);
  position: relative;
  padding-bottom: 20px;
}

#important-trainings h2::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  max-width: 400px;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #10b981, #2563eb);
  bottom: 0;
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.6), 0 0 40px rgba(16, 185, 129, 0.4);
  border-radius: 10px;
}

#important-trainings .trainings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  align-items: start;
}

#important-trainings .trainings-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#important-trainings .trainings-group h3 {
  color: white;
  text-align: center;
  font-size: 1.4rem;
  margin: 0 0 8px;
  font-weight: 800;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.5);
}

#important-trainings .training-item {
  background: transparent;
  box-shadow: none;
  padding: 12px;
  color: white;
  border: none;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

#important-trainings .training-item:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

#important-trainings .training-title {
  font-weight: 800;
  color: white;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.8), 0 1px 4px rgba(0, 0, 0, 0.7);
  font-size: 1.1rem;
}

#important-trainings .training-meta {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.95rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7), 0 1px 3px rgba(0, 0, 0, 0.6);
  font-weight: 600;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#important-trainings .training-institution {
  font-weight: 700;
}

#important-trainings .training-year {
  font-size: 0.9rem;
  opacity: 0.95;
}

#important-trainings .trainings-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.85rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

/* Estilos da seção de Projetos */
#projects h2 {
  color: white;
  text-align: left;
  font-size: 2.5rem;
  font-weight: 800;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.5);
  position: relative;
  padding-bottom: 20px;
}

#projects h2::after {
  content: '';
  position: absolute;
  left: 0;
  width: 60%;
  max-width: 300px;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #10b981, #2563eb);
  bottom: 0;
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.6), 0 0 40px rgba(16, 185, 129, 0.4);
  border-radius: 10px;
}

/* Estilos da seção de Contactos */
#contact h2 {
  color: white;
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.5);
  position: relative;
  padding-bottom: 20px;
}

#contact h2::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  max-width: 300px;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #10b981, #2563eb);
  bottom: 0;
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.6), 0 0 40px rgba(16, 185, 129, 0.4);
  border-radius: 10px;
}

/* Estilos da seção de Competências - início do fundo montanha.jpg */
#skills,
#projects,
#contact {
  position: relative;
  overflow: hidden;
}

#skills::after,
#projects::after,
#contact::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('imagens/montanha.webp');
  background-size: cover;
  background-position: center;
  filter: grayscale(70%);
  z-index: 0;
}

#skills::before,
#projects::before,
#contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  pointer-events: none;
  z-index: 1;
}

#skills > *,
#projects > *,
#contact > * {
  position: relative;
  z-index: 2;
}

#skills h2 {
  color: white;
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.5);
  position: relative;
  padding-bottom: 20px;
}

#skills h2::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  max-width: 300px;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #10b981, #2563eb);
  bottom: 0;
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.6), 0 0 40px rgba(16, 185, 129, 0.4);
  border-radius: 10px;
}

/* Estilos da seção de Experiência Profissional */
#experience {
  background: transparent;
  position: relative;
  padding-top: 40px;
}

#experience h2 {
  color: white;
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 50px;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.5);
  position: relative;
  padding-bottom: 20px;
}

#experience h2::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  max-width: 400px;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #10b981, #2563eb);
  bottom: 0;
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.6), 0 0 40px rgba(16, 185, 129, 0.4);
  border-radius: 10px;
}

#experience > div {
  position: relative;
  padding: 0 20px;
}

#experience > div::before {
  display: none;
}

#experience > div > div {
  width: 45%;
  position: relative;
  margin-bottom: 40px;
}

#experience > div > div:nth-child(odd) {
  margin-left: 0;
  text-align: left;
}

#experience > div > div:nth-child(even) {
  margin-left: 55%;
  text-align: left;
}

#experience > div > div::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #2563eb, #10b981);
  border: 3px solid white;
  border-radius: 50%;
  top: 0;
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.8), 0 0 30px rgba(16, 185, 129, 0.5), 0 4px 10px rgba(0, 0, 0, 0.6);
  animation: pulse 2s ease-in-out infinite;
  z-index: 1;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.8), 0 0 30px rgba(16, 185, 129, 0.5), 0 4px 10px rgba(0, 0, 0, 0.6);
  }
  50% {
    box-shadow: 0 0 25px rgba(37, 99, 235, 1), 0 0 50px rgba(16, 185, 129, 0.8), 0 4px 10px rgba(0, 0, 0, 0.6);
  }
}

#experience > div > div:nth-child(odd)::before {
  right: calc(-5% - 10px);
}

#experience > div > div:nth-child(even)::before {
  left: calc(-5% - 40px);
}

.experience-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.experience-item {
  background: transparent;
  border-radius: 10px;
  box-shadow: none;
  padding: 12px;
  color: white;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.320, 1), box-shadow 0.4s cubic-bezier(0.23, 1, 0.320, 1), background 0.3s ease;
  cursor: pointer;
}

.experience-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.03), rgba(16, 185, 129, 0.03));
}

.experience-title {
  font-weight: 800;
  color: white;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.8), 0 1px 4px rgba(0, 0, 0, 0.7);
  font-size: 1.2rem;
}

.experience-date {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7), 0 1px 3px rgba(0, 0, 0, 0.6);
  font-weight: 600;
}

.experience-desc {
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7), 0 1px 3px rgba(0, 0, 0, 0.6);
  line-height: 1.6;
  font-weight: 600;
  margin: 0;
}

/* Estilos da seção de Skills */
.skills-container {
  display: flex;
  gap: 20px;
}

.technical-skills,
.behavioral-skills {
  flex: 1;
}

.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  text-align: center;
}

.skills .skill {
  background: rgba(100, 116, 139, 0.8);
  color: white;
  padding: 12px 14px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.5);
  font-weight: 600;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.skills .skill:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
  background: rgba(100, 116, 139, 0.95);
  border-color: rgba(255, 255, 255, 0.4);
  color: white;
}

.technical-skills, .behavioral-skills {
  padding: 30px;
  background: transparent;
  color: var(--text);
  border-radius: var(--radius);
  box-shadow: none;
}

.technical-skills h2, .behavioral-skills h2 {
  text-align: center;
  font-size: 1.2rem;
  margin-top: 0;
  margin-bottom: 20px;
  font-weight: 800;
  color: white;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  text-align: center;
}

/* Refinamento de tipografia e espaçamento */
h1, h2, h3 {
  line-height: 1.3;
  margin-bottom: 20px;
  color: white;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.5);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

p {
  margin-bottom: 15px;
  color: white;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.5);
  font-weight: 500;
}

.actions .btn {
  background: transparent;
  color: white;
  border: 2px solid white;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: bold;
  padding: 12px 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.5);
}

.actions .btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Melhorias na seção de Contactos: grelha 2x2 e animações */
#contact .contacts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 700px) {
  #contact .contacts-grid {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  background: transparent;
  border-radius: 12px;
  box-shadow: none;
  padding: 20px;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.320, 1), box-shadow 0.4s cubic-bezier(0.23, 1, 0.320, 1), background 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: none;
}

.contact-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.03), rgba(16, 185, 129, 0.03));
}

.contact-title {
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.5);
}

.contact-title i {
  font-size: 1.4rem;
  color: white;
  transition: transform 0.28s, color 0.28s;
}

.contact-card:hover .contact-title i {
  color: white;
  transform: scale(1.05);
}

.contact-value {
  color: white;
  font-size: 0.95rem;
  word-break: break-word;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.5);
  font-weight: 500;
}

.contact-card a {
  color: white;
  text-decoration: underline;
  font-weight: 600;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.5);
}

.contact-card a:hover {
  color: white;
  text-decoration: underline;
}

/* Estilo replicado para as secções de competências */
.technical-skills .skill, .behavioral-skills .skill {
  background: transparent;
  color: white;
  border: 2px solid white;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 5px;
}

.technical-skills .skill:hover, .behavioral-skills .skill:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.technical-skills .skill strong, .behavioral-skills .skill strong {
  font-size: 1rem;
  color: white;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.5);
  font-weight: bold;
}

/* Botões em competências com estilo igual aos de projetos */
.technical-skills .skill, .behavioral-skills .skill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.technical-skills .skill .tag, .behavioral-skills .skill .tag {
  background: var(--primary);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.technical-skills .skill .tag:hover, .behavioral-skills .skill .tag:hover {
  background: var(--accent);
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Ajustando o botão hamburger para dispositivos móveis */
@media (max-width: 768px) {
  .hamburger {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid white;
  }

  .hamburger:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
  }

  /* Timeline responsiva */
  #experience > div::before {
    left: 20px;
    transform: none;
    width: 4px;
    height: calc(100% - 40px);
    top: 40px;
    background: linear-gradient(180deg, #2563eb, #10b981);
  }

  #experience > div > div {
    width: calc(100% - 60px);
    margin-left: 60px !important;
    text-align: left !important;
    margin-bottom: 30px;
  }

  #experience > div > div::before {
    left: -48px !important;
    right: auto !important;
  }

  .experience-item {
    padding: 16px;
  }

  #experience h2 {
    font-size: 2rem;
  }

  /* Skills responsivas */
  .skills-container {
    flex-direction: column;
    gap: 30px;
  }

  .skills {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
  }

  /* Linhas decorativas responsivas */
  #presentation .title::after,
  #important-trainings h2::after {
    width: 80%;
    max-width: none;
  }
}

/* Botão Scroll to Top */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: rgba(37, 99, 235, 0.8);
  border: 2px solid white;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 1000001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.5);
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background: rgba(37, 99, 235, 1);
  box-shadow: 0 6px 25px rgba(37, 99, 235, 0.8);
  transform: translateY(-5px);
}

/* ===== ESTILOS DO MODAL E FORMULÁRIO ===== */

/* Botão para adicionar projeto */
.btn-add {
  background: linear-gradient(135deg, var(--primary), var(--accent)) !important;
  color: white !important;
  border: none !important;
  padding: 8px 16px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s !important;
  font-size: 0.9rem !important;
  white-space: nowrap;
}

.btn-add:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4) !important;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  overflow-y: auto;
  animation: fadeIn 0.3s ease;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--glass);
  padding-bottom: 15px;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--text);
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.2s;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.modal-close:hover {
  background: var(--glass);
  color: var(--text);
  transform: rotate(90deg);
}

/* Formulário */
.form-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 10px 12px;
  border: 2px solid var(--glass);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--text);
  background: white;
  transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* ===== DROP ZONE PARA UPLOAD DE FICHEIROS ===== */
.drop-zone {
  border: 2px dashed var(--primary);
  border-radius: 8px;
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: rgba(37, 99, 235, 0.02);
}

.drop-zone:hover:not(.drag-over) {
  background: rgba(37, 99, 235, 0.05);
  border-color: #1d4ed8;
}

.drop-zone.drag-over {
  background: rgba(37, 99, 235, 0.1);
  border-color: #1d4ed8;
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.2);
}

.drop-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.drop-content i {
  font-size: 2.5rem;
  color: var(--primary);
  opacity: 0.7;
}

.drop-content p {
  font-size: 0.95rem;
  margin: 0;
}

.drop-content small {
  color: #64748b;
  font-size: 0.85rem;
}

.click-to-upload {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.click-to-upload:hover {
  color: #1d4ed8;
}

.file-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
}

.file-preview i {
  font-size: 3rem;
  color: var(--primary);
}

.file-preview p {
  font-weight: 500;
  color: var(--text);
  word-break: break-all;
  margin: 0;
}

.btn-remove-file {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #dc2626;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s;
  font-family: 'Inter', sans-serif;
}

.btn-remove-file:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: #dc2626;
}

/* Estilos para a lista de ficheiros */
.files-list {
  padding: 15px;
  background: rgba(37, 99, 235, 0.05);
  border-radius: 8px;
}

.files-list-header {
  margin-bottom: 12px;
}

.files-list-header h4 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 600;
}

#filesListContainer {
  list-style: none;
  padding: 0;
  margin: 0 0 12px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.file-item-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.file-item-info i {
  color: var(--primary);
  flex-shrink: 0;
}

.file-item-name {
  font-weight: 500;
  color: var(--text);
  word-break: break-word;
  overflow-wrap: break-word;
}

.file-list-item small {
  color: var(--muted);
  font-size: 0.8rem;
}

.files-list-actions {
  display: flex;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(37, 99, 235, 0.1);
}

.btn-text {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 500;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0;
  text-decoration: underline;
  transition: color 0.3s;
  font-family: 'Inter', sans-serif;
}

.btn-text:hover {
  color: #1d4ed8;
}

/* Estilos para mostrar ficheiros em projetos */
.project-files {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0;
  padding: 10px 0;
  border-top: 1px solid rgba(100, 116, 139, 0.1);
  border-bottom: 1px solid rgba(100, 116, 139, 0.1);
}

.project-files .btn-document {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  justify-content: flex-start;
  padding: 8px 0;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 25px;
}

.form-actions .btn {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s;
}

.form-actions .btn {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
}

.form-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
  background: var(--glass) !important;
  color: var(--text) !important;
}

.btn-secondary:hover {
  background: rgba(100, 116, 139, 0.2) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

/* ===== MODAL DE AUTENTICAÇÃO ===== */

.auth-error {
  color: #dc2626;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 6px;
  display: block;
}

/* Botões de ação nos cards (editar/eliminar) */
.proj-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}

.btn-action {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid white;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  font-size: 0.9rem;
}

.btn-action:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.15);
}

.btn-delete:hover {
  background: rgba(239, 68, 68, 0.6);
  border-color: rgba(239, 68, 68, 1);
}

/* ===== ESTILOS DA LISTA DE PROJETOS ===== */

.modal-list {
  max-width: 700px;
  max-height: 80vh;
  overflow-y: auto;
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 10px 0;
}

.list-item {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(16, 185, 129, 0.05));
  border: 2px solid var(--glass);
  border-radius: 10px;
  padding: 16px;
  transition: all 0.3s;
}

.list-item:hover {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(16, 185, 129, 0.1));
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
  transform: translateX(5px);
}

.list-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.list-item-title {
  flex: 1;
  min-width: 200px;
}

.list-item-header h4 {
  margin: 0 0 6px 0;
  font-size: 1.3rem;
  color: var(--text);
}

.list-item-desc {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
}

.list-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.list-tag {
  background: var(--primary);
  color: white;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 600;
}

.list-actions-container {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: fit-content;
}

.btn-action {
  background: var(--muted);
  color: white;
  border: none;
  padding: 0 11px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  height: 32px;
  min-width: fit-content;
  line-height: 1;
  vertical-align: middle;
}

.btn-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-link {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

.btn-link:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
}

.btn-document {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%) !important;
}

.btn-document:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3) !important;
}

.btn-list-edit {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.btn-list-edit:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-list-delete {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.btn-list-delete:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.badge-default {
  background: rgba(100, 116, 139, 0.2);
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.empty-list {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  flex-direction: column;
  gap: 16px;
}

.empty-list p {
  margin: 0;
  font-size: 1rem;
}

.btn-add-in-list {
  background: linear-gradient(135deg, var(--primary), var(--accent)) !important;
  color: white !important;
  border: none !important;
  padding: 10px 16px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s !important;
  font-size: 0.95rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  margin-top: 16px !important;
}

.btn-add-in-list:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4) !important;
}

/* ===== LAYOUT ALTERNADO DE PROJETOS ===== */
.projects-container {
  display: flex;
  flex-direction: column;
  gap: 60px;
  padding: 20px;
}

.project-section {
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 40px 0;
  animation: fadeInUp 0.6s ease-out;
  backface-visibility: hidden;
  perspective: 1000px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-section.image-left {
  flex-direction: row;
}

.project-section.image-right {
  flex-direction: row-reverse;
}

.project-image-section {
  flex: 0 0 30%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-image-wrapper {
  position: relative;
  width: 100%;
  height: 600px;
  aspect-ratio: auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  will-change: transform;
}

.project-image-wrapper:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-hover);
}

.project-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.8), rgba(16, 185, 129, 0.8));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  will-change: opacity;
}

.project-image-wrapper:hover .project-overlay {
  opacity: 1;
}

.project-overlay .proj-title {
  font-size: 2rem;
  font-weight: 800;
  color: white;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.project-overlay .project-count {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  margin-top: 0;
}

.project-list-section {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-list-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 600px;
  overflow-y: auto;
  padding-right: 8px;
}

/* Estilo do scrollbar */
.project-list-content::-webkit-scrollbar {
  width: 8px;
}

.project-list-content::-webkit-scrollbar-track {
  background: transparent;
}

.project-list-content::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 4px;
  transition: all 0.3s ease;
}

.project-list-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  box-shadow: 0 0 6px rgba(37, 99, 235, 0.3);
}

/* Scrollbar para Firefox */
.project-list-content {
  scrollbar-width: thin;
  scrollbar-color: var(--primary) transparent;
}

.project-list-item {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(16, 185, 129, 0.05));
  border: 2px solid var(--glass);
  border-radius: 10px;
  padding: 16px;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  will-change: transform, box-shadow;
}

.project-list-item:hover {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(16, 185, 129, 0.1));
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
  transform: translateX(5px);
}

.project-list-item .list-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.project-list-item .list-item-title h4 {
  margin: 0 0 6px 0;
  font-size: 1.2rem;
  color: var(--text);
}

.project-list-item .list-item-desc {
  color: white;
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
  font-weight: 500;
}

.project-list-item .list-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.project-list-item .list-tag {
  background: var(--primary);
  color: white;
  padding: 3px 8px;
  border-radius: 14px;
  font-size: 0.75rem;
  font-weight: 600;
}

.list-item-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.list-item-actions .btn-action {
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
  height: 32px;
  min-width: 110px;
  line-height: 1;
  margin: 0;
  vertical-align: middle;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  will-change: transform, box-shadow;
}

.list-item-actions .btn-action i {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  line-height: 1;
  margin: 0;
  padding: 0;
}

.list-item-actions .btn-action span {
  display: flex;
  align-items: center;
  line-height: 1;
  margin: 0;
  padding: 0;
}

.list-item-actions .btn-link {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.list-item-actions .btn-link:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.list-item-actions .btn-document {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.list-item-actions .btn-document:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.list-item-actions .btn-list-edit {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.list-item-actions .btn-list-edit:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.list-item-actions .btn-list-delete {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.list-item-actions .btn-list-delete:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.btn-add-in-section {
  background: linear-gradient(135deg, var(--primary), var(--accent)) !important;
  color: white !important;
  border: none !important;
  padding: 12px 20px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s !important;
  font-size: 0.95rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: fit-content !important;
  margin-top: 12px !important;
}

.btn-add-in-section:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4) !important;
}

/* Responsividade para tablets e mobile */
@media (max-width: 1024px) {
  .project-section {
    flex-direction: column !important;
    gap: 30px;
  }

  .project-image-section {
    flex: 1;
    width: 100%;
  }

  .project-image-wrapper {
    height: 500px;
  }

  .project-list-section {
    width: 100%;
  }

  .project-list-content {
    max-height: 500px;
  }
}

@media (max-width: 768px) {
  .projects-container {
    gap: 40px;
    padding: 10px;
  }

  .project-section {
    margin: 20px 0;
  }

  .project-overlay .proj-title {
    font-size: 1.5rem;
  }

  .project-image-wrapper {
    height: 400px;
  }

  .project-list-item .list-item-header {
    flex-direction: column;
  }

  .list-item-actions {
    width: 100%;
  }

  .list-item-actions .btn-action {
    padding: 8px 10px;
    font-size: 0.75rem;
    min-width: 95px;
    line-height: 1;
  }

  .project-list-content {
    max-height: 400px;
  }
}

/* Responsividade da Lista */
@media (max-width: 768px) {
  .list-item-header {
    flex-direction: column;
    gap: 12px;
  }

  .list-actions-container {
    justify-content: flex-start;
    width: 100%;
  }

  .btn-action {
    padding: 6px 8px;
    font-size: 0.75rem;
  }

  .btn-action span {
    display: none;
  }

  .btn-action i {
    margin: 0;
  }
}

@media (max-width: 600px) {
  .modal-list {
    max-width: 95%;
  }

  .list-item {
    padding: 12px;
  }

  .list-item-title {
    width: 100%;
  }

  .list-item-header h4 {
    font-size: 1.1rem;
  }

  .list-actions-container {
    width: 100%;
    gap: 4px;
  }

  .btn-action {
    padding: 6px 8px;
    font-size: 0.7rem;
  }

  .btn-action span {
    display: none;
  }

  .btn-action i {
    margin: 0;
  }
}

/* Responsividade do Modal */
@media (max-width: 600px) {
  .modal-content {
    width: 95%;
    padding: 20px;
  }

  .modal-header h3 {
    font-size: 1.3rem;
  }

  /* Timeline mais compacta em mobile pequeno */
  #experience h2 {
    font-size: 1.8rem;
  }

  .experience-item {
    padding: 14px;
  }

  .experience-title {
    font-size: 1.05rem;
  }

  .experience-date {
    font-size: 0.9rem;
  }

  /* Skills mais compactas em mobile pequeno */
  .skills {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
  }

  .skills .skill {
    padding: 10px;
    font-size: 0.9rem;
  }

  /* Linhas decorativas mais compactas */
  #presentation .title::after,
  #important-trainings h2::after {
    width: 90%;
    height: 3px;
  }

  .form-actions {
    flex-direction: column;
    gap: 8px;
  }

  .form-actions .btn {
    width: 100%;
  }

  .btn-add {
    font-size: 0.8rem !important;
    padding: 6px 12px !important;
  }
}