* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Ubuntu', sans-serif; /* Use Ubuntu como fonte padrão */
  line-height: 1.6;
  color: #27213C; /* Roxo escuro para o texto */
  background-color: #FDFCDC; /* Creme claro para o fundo */
  background-image: url('../images/gradient3.png'); /* Verifique se o caminho está correto */
  background-size: cover; /* Ajusta o tamanho para cobrir a tela */
  background-repeat: no-repeat;
  background-attachment: fixed; /* Mantém a imagem fixa ao rolar a página */
}

header {
  background-color: #537895; /* Azul suave para o cabeçalho */
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  background-image: url('../images/noite4.png'); /* Adicione o gradiente no final do header */
  background-size: cover;
  background-repeat: no-repeat;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo h1 {
  margin: 0;
  font-size: 1.5rem;
  color: #FDFCDC; /* Coral para o título do logo */
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.nav-links a {
  text-decoration: none;
  color: #FED9B7;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #FED9B7;
}

main {
  max-width: 960px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.about, .projects, .contact, .stacks, .experience {
  margin-bottom: 3rem;
  background-color: rgba(255, 235, 221, 0.8); 
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.profile-image {
  max-width: 150px;
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 3px solid #8F0000; 
}

.about-content, .project-container, .social-links {
  text-align: left;
}

h2 {
  margin-bottom: 1rem;
  color: #82695B;
  font-size: 2.5rem;
}

p {
  margin-bottom: 1rem;
}

footer {
  text-align: center;
  padding: 1rem 0;
  box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
  background-image: url('../images/noite4.png');
  background-size: cover;
  background-repeat: no-repeat;
}

footer p {
  margin: 0;
  color: #FDFCDC;
}

.stack-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
  max-width: 48%;
}
.stack-list-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.stack-list li {
  margin-bottom: 1rem;
}

.stack-list li:last-child {
  margin-bottom: 0;
}
.progress-bar-container {
  display: flex;
  align-items: center;
  flex: 1;
}

.progress-bar {
  background-color: #f3f3f3;
  border-radius: 13px;
  margin-top: 5px;
  height: 20px; 
  width: 90%;
  margin-right: 10px;

}

.progress-bar-fill {
  display: block;
  height: 20px;
  border-radius: 10px;
  background-color: #537895;
  width: 0;
  transition: width 0.5s;
}

.percentage-text {
  font-size: 14px;
  white-space: nowrap;
}

.small-img {
  width: 70%; 
  height: auto;
}

.repoName {
  font-size: 120%;
}

.justified {
  text-align: justify;
}

.social-links a {
  margin-right: 15px; 
  text-decoration: none;
}

.social-links a:last-child {
  margin-right: 0;
}

.ubuntu-light {
  font-family: "Ubuntu", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.ubuntu-regular {
  font-family: "Ubuntu", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.ubuntu-medium {
  font-family: "Ubuntu", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.ubuntu-bold {
  font-family: "Ubuntu", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.ubuntu-light-italic {
  font-family: "Ubuntu", sans-serif;
  font-weight: 300;
  font-style: italic;
}

.ubuntu-regular-italic {
  font-family: "Ubuntu", sans-serif;
  font-weight: 400;
  font-style: italic;
}

.ubuntu-medium-italic {
  font-family: "Ubuntu", sans-serif;
  font-weight: 500;
  font-style: italic;
}

.ubuntu-bold-italic {
  font-family: "Ubuntu", sans-serif;
  font-weight: 700;
  font-style: italic;
}


.experience-container,
.project-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Centraliza os cards */
  gap: 1.5rem; /* Espaçamento entre os cards */
  padding: 1rem 0; /* Adiciona um pouco de padding vertical */
}

.card {
  background-color: #FFFFFF; /* Fundo branco para destacar do creme da seção */
  border-radius: 8px; /* Mesmo arredondamento das seções */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Sombra inicial mais suave */
  width: 380px; /* Largura fixa para os cards */
  overflow: hidden; /* Para a imagem não vazar */
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out; /* Transições para hover */
  cursor: pointer; /* Indica que é clicável/interativo */
}

.card:hover {
  transform: translateY(-8px); /* Card "flutua" um pouco para cima */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* Sombra mais intensa ao passar o mouse */
}

.card-image-wrapper {
  width: 100%;
  height: 180px;
  display: flex; /* Para centralizar a imagem dentro dele */
  justify-content: center;
  align-items: center;
  padding: 10px; /* Pequeno padding para a imagem */
  border-bottom: 1px solid #eee; /* Linha de separação discreta */
}

.card-image {
  max-width: 100%; /* Garante que a imagem não ultrapasse o wrapper */
  max-height: 100%; /* Garante que a imagem não ultrapasse o wrapper */
  object-fit: contain; /* Ajusta a imagem para caber, mantendo proporção */
}

.card-content {
  padding: 1rem;
  flex-grow: 1; /* Faz o conteúdo ocupar o espaço */
  display: flex;
  flex-direction: column;
  position: relative; /* Para possíveis animações internas */
}

.card-content h3 {
  font-size: 1.25rem;
  color: #82695B; /* Cor do h2 */
  margin-bottom: 0.25rem;
  transition: color 0.3s ease; /* Transição para o texto */
}

.card:hover .card-content h3 {
  color: #537895; /* Mudar cor do título no hover, por exemplo */
}

.card-content h4 {
  font-size: 0.9rem;
  font-weight: 500;
  color: #27213C; /* Cor do texto principal */
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.card-content p {
  font-size: 0.9rem;
  color: #27213C; /* Cor do texto principal */
  flex-grow: 1; /* Empurra as stacks para o final */
  margin-bottom: 1rem;
  text-align: justify; /* Mantém seu estilo justificado */
}

.card-stacks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto; /* Alinha no fundo do card */
  opacity: 0.9; /* Começa um pouco transparente */
  transition: opacity 0.3s ease;
}

.card:hover .card-stacks {
  opacity: 1; /* Fica totalmente visível no hover */
}

.stack-tag {
  background-color: #537895; /* Cor do header (azul) */
  color: #FDFCDC; /* Cor do fundo (creme) */
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  font-weight: 500;
  white-space: nowrap; /* Evita quebras de linha nas tags */
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.stack-tag:hover {
    background-color: #82695B; /* Mudar cor da tag no hover */
    transform: translateY(-2px); /* Efeito sutil na tag */
}
.section-divider {
    width: 60px;
    height: 4px;
    background: #c45a4a;
    border-radius: 4px;
    margin: 10px 0 20px 0;
}

.about-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: #333;
}

.about-highlights {
    margin-top: 20px;
    padding-left: 20px;
}

.about-highlights li {
    margin-bottom: 8px;
    font-size: 1rem;
    color: #222;
}

.about {
    /* background: rgba(255, 255, 255, 0.35); */
    backdrop-filter: blur(4px);
    border-radius: 14px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    animation: fadeIn 0.7s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.header-modern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.22);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    padding: 6px 0; /* HEADER FINO */
}

.nav-modern {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGO */
.logo-modern {
    display: flex;
    align-items: center;
    gap: 6px;
}

.logo-modern h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #3a3a3a;
    margin: 0;
}

.logo-dot {
    width: 10px;
    height: 10px;
    background: #c45a4a;
    border-radius: 50%;
}

/* LINKS */
.nav-links-modern {
    list-style: none;
    display: flex;
    gap: 18px;
    margin: 0;
}

.nav-links-modern li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    position: relative;
    padding: 4px 0;
    font-size: 0.95rem;
    transition: 0.3s ease;
}

.nav-links-modern li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    height: 2px;
    width: 0;
    background: #c45a4a;
    transition: width 0.3s;
}

.nav-links-modern li a:hover::after {
    width: 100%;
}

.nav-links-modern li a:hover {
    color: #c45a4a;
}

body {
    padding-top: 70px; /* ajusta a posição do conteúdo */
}
html {
  scroll-behavior: smooth;
}
.contact-text {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: #2b2b2b;
    line-height: 1.6;
}

.contact-cards {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.4);
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.05);
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    transition: 0.25s ease;
    backdrop-filter: blur(4px);
}

.contact-item .icon {
    font-size: 1.2rem;
}

.contact-item:hover {
    background: rgba(255,255,255,0.7);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    color: #c45a4a;
}

@media (max-width: 600px) {
    .contact-cards {
        flex-direction: column;
        width: 100%;
    }
}


.stacks.modern-skills {
    padding: 60px;
}

.stacks.modern-skills h2 {
    font-size: 2.4rem;
    margin-bottom: 10px;
    color: #4a352f;
}

.section-divider {
    width: 50px;
    height: 4px;
    background: #c96;
    border-radius: 4px;
    margin-bottom: 40px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.skill-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(7px);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.4);
    transition: 0.25s ease;
    opacity: 0;
    transform: translateY(20px);
}

.skill-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.skill-card:hover {
    transform: translateY(-6px);
    box-shadow: 0px 6px 16px rgba(0,0,0,0.22);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-header h3 {
    font-size: 1.3rem;
    margin: 0;
    color: #4a352f;
}

.skill-icon {
    font-size: 1.6rem;
}

.skill-tags {
    margin-top: 10px;
    line-height: 1.6rem;
    color: #333;
    font-size: 0.95rem;
}
.footer {
    margin-top: 60px;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(6px);
}

.footer-content p {
    margin: 6px 0;
    color: #f0f0f0;
    font-size: 15px;
}

.footer-links {
    margin: 15px 0;
    display: flex;
    justify-content: center;
    gap: 25px;
}

.footer-links img {
    width: 28px;
    height: 28px;
    opacity: 0.85;
    transition: 0.25s;
}

.footer-links img:hover {
    opacity: 1;
    transform: scale(1.12);
}

.footer-copy {
    margin-top: 10px;
    color: #ccc;
    font-size: 13px;
}

.card {
  cursor: default;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
}

.card.clickable {
  cursor: pointer;
}