/* Paleta de cores */
:root {
  --cor-primaria: #e0f7fa;    /* Azul escuro */
  --cor-secundaria: #00bcd4;  /* Azul claro */
  --cor-terciaria: #00796b;   /* Verde */   /* Amarelo */
  --cor-quaternaria: #003f5c; /* Vermelho */
  --cor-quintaria: #f4a460;
}

/* Reset e Tipografia Global */
body {
  margin: 0;
  font-family: 'Inter', 'Roboto', 'Segoe UI', Arial, sans-serif;
  background: #f9f9f9;
  color: #222;
  font-size: 18px;
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Inter', Arial, sans-serif;
  font-weight: 700;
  margin-bottom: 16px;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
  font-family: 'Inter', 'Roboto', Arial, sans-serif;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

/* Container Principal */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Estilos genéricos para seções */
.sobre, .projetos, .contato, .tecnologias, .experiencias {
  padding: 3rem 0;
  margin-top: 2rem;
  scroll-margin-top: 80px; /* Espaço para compensar navbar fixa */
}

.sobre h2, .projetos h2, .contato h2, .tecnologias h2, .experiencias h2 {
  color: var(--cor-terciaria);
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}

#form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: fadeInUp 1.2s;
}
#form input, #form textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  transition: border 0.2s;
}
#form input:focus, #form textarea:focus {
  border: 1.5px solid #00bfae;
  outline: none;
}
#form button {
  background: #00bfae;
  color: #fff;
  border: none;
  padding: 0.75rem;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
#form button:hover {
  background: #00796b;
  transform: scale(1.04);
}

#form textarea {
  font-family: inherit;
  font-size: 1rem;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 2rem; 
}

.card-list {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.09);
  padding: 2rem;
  transition: transform 0.2s, box-shadow 0.2s;
  border-left: 4px solid #00bfae;
}

.card-list:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,191,174,0.13);
}

.logo-wrapper {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 0.5rem;
}

.logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.card-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.title {
  margin: 0 0 0.25rem 0;
  color: #222;
  font-size: 1.25rem;
  font-weight: 600;
}

.period {
  color: #666;
  font-size: 0.9rem;
  font-weight: 500;
  background: #f0f0f0;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  display: inline-block;
}

.description {
  margin: 0 0 1rem 0;
  color: #555;
  line-height: 1.6;
  text-align: justify;
}

.links {
  display: flex;
  gap: 1rem;
}

.link {
  color: #00bfae;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.company {
  margin: 0 0 0.5rem 0;
  color: #00bfae;
  font-size: 1.1rem;
  font-weight: 500;
}

.technologies {
  margin-bottom: 1rem;
}

.link:hover {
  color: #00796b;
  text-decoration: underline;
}

.title {
  margin: 0 0 0.25rem 0;
  color: #222;
  font-size: 1.25rem;
  font-weight: 600;
}

.img-wrapper {
  background: #fff;
  padding: 12px;
  border-radius: 8px 8px 0 0;
}

.wrapper {
  display: none;
  flex-direction: row;
  align-items: flex-start; /* Alinhar itens no topo */
  justify-content: center;
  gap: 2rem;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.card {
  background: #fff;
  width: auto;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  padding: 3rem;
  flex: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card p {
  text-align: justify;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.card h2 {
  margin-bottom: 2rem;
  font-size: 2.2rem;
  text-align: center;
  color: var(--cor-terciaria);
}

.card p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  margin: 0;
}

/* Espaço para compensar navbar fixa */
.hero, .sobre, .projetos, .contato, .tecnologias {
  scroll-margin-top: 80px;
}

/* Transições suaves */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s, transform 0.8s;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animações keyframes */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .card-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .logo-wrapper {
    align-self: center;
  }
  
  .tech-tags {
    justify-content: center;
  }
  .info {
    width: -webkit-fill-available;
  }
}