/* INICIO CSS TRAJETORIA PROFISSIONAL: estilos da vitrine publica e da linha do tempo privada. */

/* SECAO PUBLICA: bloco que aparece depois dos certificados na pagina principal. */
.trajetoria-section {
  position: relative;
  width: min(100% - 2rem, 134rem);
  margin: -7rem auto 11rem;
  padding: 5.5rem 4.5rem;
  overflow: hidden;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(7, 17, 31, 0.97), rgba(8, 47, 73, 0.94) 54%, rgba(15, 118, 110, 0.88));
  box-shadow: 0 28px 62px rgba(2, 7, 62, 0.18);
}

.trajetoria-inner {
  display: grid;
  grid-template-columns: minmax(26rem, 0.68fr) minmax(0, 1.92fr);
  align-items: center;
  gap: 3.4rem;
}

.trajetoria-copy {
  color: #e2e8f0;
}

.trajetoria-eyebrow,
.trajetoria-number {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: #67e8f9;
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.trajetoria-copy h2 {
  margin: 1.4rem 0 1.5rem;
  color: #ffffff;
  font-family: 'Poppins', var(--font-family), sans-serif;
  font-size: 3.1rem;
  line-height: 3.9rem;
}

.trajetoria-copy h2 span {
  color: #d2e079;
  font-size: inherit;
}

.trajetoria-copy p {
  color: #cbd5e1;
  font-size: 1.55rem;
  line-height: 2.8rem;
}

.trajetoria-login-link,
.trajetoria-more,
.trajetoria-modal-primary,
.trajetoria-modal-secondary {
  min-height: 4.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  border-radius: 8px;
  font-weight: 900;
}

.trajetoria-login-link {
  margin-top: 2.4rem;
  padding: 0 2rem;
  color: #ffffff;
  background: linear-gradient(135deg, #0aa6a6, #2f6df6);
  box-shadow: 0 16px 30px rgba(34, 211, 238, 0.18);
}

/* CARROSSEL PUBLICO: mostra poucos marcos na pagina principal antes do cadastro. */
.trajetoria-carousel {
  display: grid;
  grid-template-columns: 4.6rem minmax(0, 1fr) 4.6rem;
  align-items: center;
  gap: 1.4rem;
}

.trajetoria-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(24rem, 30.5%);
  gap: 1.5rem;
  overflow-x: auto;
  padding: 1.2rem 0.4rem 2rem;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #14b8a6 rgba(226, 232, 240, 0.2);
}

.trajetoria-track::-webkit-scrollbar {
  height: 0.8rem;
}

.trajetoria-track::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.22);
}

.trajetoria-track::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(90deg, #22d3ee, #14b8a6, #d2e079);
}

/* CARD PUBLICO: miniatura ficticia da empresa, ano, funcao resumida e botao Saiba mais. */
.trajetoria-card {
  min-height: 33rem;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.24);
  scroll-snap-align: start;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.trajetoria-card:hover {
  transform: translateY(-6px);
  border-color: rgba(210, 224, 121, 0.72);
  box-shadow: 0 30px 54px rgba(0, 0, 0, 0.32);
}

.trajetoria-card-visual {
  position: relative;
  min-height: 13.5rem;
  display: grid;
  place-items: center;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(38, 63, 212, 0.94), rgba(10, 166, 166, 0.92));
}

.trajetoria-card-visual span {
  width: 7.2rem;
  height: 7.2rem;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.56);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  font-size: 2.5rem;
  font-weight: 900;
}

.trajetoria-card-visual i {
  position: absolute;
  right: 1.4rem;
  bottom: 1.2rem;
  color: rgba(255, 255, 255, 0.34);
  font-size: 4.8rem;
}

.trajetoria-card-body {
  padding: 2rem;
}

.trajetoria-number {
  color: #0a6f86;
  font-size: 1.15rem;
}

.trajetoria-card h3 {
  min-height: 5.2rem;
  margin: 1rem 0 0.8rem;
  color: #102c45;
  font-size: 1.9rem;
  line-height: 2.6rem;
}

.trajetoria-card strong {
  display: block;
  color: #263fd4;
  font-size: 1.35rem;
  line-height: 2rem;
}

.trajetoria-card p {
  min-height: 6.6rem;
  margin: 1rem 0 1.6rem;
  color: #475569;
  font-size: 1.35rem;
  line-height: 2.4rem;
}

.trajetoria-more {
  width: 100%;
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, #102c45, #0aa6a6);
  cursor: pointer;
}

.trajetoria-btn {
  width: 4.6rem;
  height: 4.6rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #2f6df6, #0aa6a6);
  font-size: 2rem;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.2);
}

.trajetoria-dots {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.8rem;
  flex-wrap: wrap;
}

.trajetoria-dot {
  width: 1rem;
  height: 1rem;
  border: 0;
  border-radius: 50%;
  background: rgba(226, 232, 240, 0.6);
  cursor: pointer;
}

.trajetoria-dot.is-active {
  width: 3rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #22d3ee, #d2e079);
}

/* MODAL DE ACESSO: mensagem exibida ao clicar em Saiba mais sem estar no painel. */
.trajetoria-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(10px);
}

.trajetoria-modal[hidden] {
  display: none;
}

.trajetoria-modal-card {
  position: relative;
  width: min(52rem, 100%);
  padding: 3rem;
  border: 1px solid rgba(103, 232, 249, 0.28);
  border-radius: 12px;
  color: #e2e8f0;
  background: linear-gradient(145deg, #07111f, #0f3445);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.38);
  text-align: center;
}

.trajetoria-modal-card > i {
  color: #67e8f9;
  font-size: 4rem;
}

.trajetoria-modal-card h3 {
  margin-top: 1.3rem;
  color: #ffffff;
  font-size: 2.4rem;
}

.trajetoria-modal-card p {
  margin: 1.2rem auto 2rem;
  color: #cbd5e1;
  font-size: 1.5rem;
  line-height: 2.5rem;
}

.trajetoria-modal-card div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.trajetoria-modal-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #0aa6a6, #2f6df6);
}

.trajetoria-modal-secondary {
  color: #e2e8f0;
  border: 1px solid rgba(103, 232, 249, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.trajetoria-modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 3.6rem;
  height: 3.6rem;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.trajetoria-modal-open {
  overflow: hidden;
}

/* PAINEL DE CONTROLE: resumo e linha do tempo completa com as 25 empresas. */
.panel-career-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

/* RESUMO DO PAINEL: cards superiores com total de vinculos, tempo e empresa atual. */
.panel-career-summary article {
  position: relative;
  min-height: 132px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(103, 232, 249, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(15, 118, 110, 0.19), rgba(30, 41, 59, 0.86));
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.22);
}

.panel-career-summary article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #22d3ee, #10b981, #2563eb);
}

.panel-career-summary strong {
  display: block;
  color: #ffffff;
  font-size: 34px;
}

.panel-career-summary .panel-counter {
  transition: color 0.5s ease, text-shadow 0.5s ease;
}

.panel-career-summary .panel-counter.is-counting {
  animation: panel-counter-colors 2.4s ease-in-out both;
}

.panel-career-summary .panel-counter.is-complete {
  color: #ffffff;
  text-shadow: none;
}

@keyframes panel-counter-colors {
  0% {
    color: #22d3ee;
    text-shadow: 0 0 12px rgba(34, 211, 238, 0.25);
  }
  30% {
    color: #10b981;
    text-shadow: 0 0 14px rgba(16, 185, 129, 0.3);
  }
  60% {
    color: #38bdf8;
    text-shadow: 0 0 14px rgba(56, 189, 248, 0.3);
  }
  82% {
    color: #818cf8;
    text-shadow: 0 0 12px rgba(129, 140, 248, 0.25);
  }
  100% {
    color: #ffffff;
    text-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .panel-career-summary .panel-counter {
    animation: none;
    transition: none;
  }
}

.panel-career-summary span {
  display: block;
  margin-top: 4px;
  color: #cbd5e1;
  line-height: 1.5;
}

.panel-career-timeline {
  position: relative;
  display: grid;
  gap: 18px;
}

.panel-career-item {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

/* MARCADOR LATERAL: numero da empresa e ano na linha do tempo do painel. */
.panel-career-marker {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 100%;
  border: 1px solid rgba(103, 232, 249, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(3, 105, 161, 0.86), rgba(15, 118, 110, 0.72));
  box-shadow: 0 18px 34px rgba(6, 182, 212, 0.14);
}

.panel-career-marker strong {
  color: #67e8f9;
  font-size: 24px;
}

.panel-career-marker span {
  margin-top: 4px;
  color: #ffffff;
  font-weight: 900;
}

/* CARD PRIVADO DO PAINEL: empresa, periodo, ramo, funcao e resumo detalhado. */
.panel-career-card {
  position: relative;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(103, 232, 249, 0.17);
  border-radius: 10px;
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.22), transparent 42%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(15, 118, 110, 0.18));
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.panel-career-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #22d3ee, #14b8a6, #2563eb);
}

.panel-career-card:hover {
  transform: translateY(-4px);
  border-color: rgba(103, 232, 249, 0.48);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.panel-career-card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.panel-career-card-head span {
  color: #67e8f9;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.panel-career-card h3 {
  margin-top: 8px;
  color: #ffffff;
  font-size: 22px;
  line-height: 1.25;
}

/* CAMPO RAMO: etiqueta verde dentro do card privado, abaixo do nome da empresa. */
.panel-career-branch {
  display: inline-flex;
  margin-top: 10px;
  padding: 6px 9px;
  color: #a7f3d0;
  border: 1px solid rgba(167, 243, 208, 0.18);
  border-radius: 7px;
  background: rgba(15, 118, 110, 0.28);
  font-size: 13px;
  font-weight: 900;
}

.panel-career-card-head i {
  color: rgba(103, 232, 249, 0.68);
  font-size: 30px;
}

.panel-career-card > strong {
  display: inline-flex;
  margin-top: 14px;
  padding: 7px 10px;
  color: #ecfeff;
  border: 1px solid rgba(103, 232, 249, 0.18);
  border-radius: 7px;
  background: rgba(14, 116, 144, 0.5);
  font-size: 16px;
}

.panel-career-card p {
  margin-top: 10px;
  color: #cbd5e1;
  font-size: 15px;
  line-height: 1.65;
}

/* RESPONSIVO: adapta carrossel publico e linha do tempo privada para tablet e celular. */
@media screen and (max-width: 980px) {
  .trajetoria-section {
    padding: 4.8rem 2.4rem;
  }

  .trajetoria-inner {
    grid-template-columns: 1fr;
  }

  .trajetoria-copy {
    text-align: center;
  }

  .trajetoria-track {
    grid-auto-columns: minmax(24rem, 46%);
  }
}

@media screen and (max-width: 900px) {
  /* PAINEL DE CONTROLE: resumo e linha do tempo completa com as 25 empresas. */
.panel-career-summary {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 620px) {
  .trajetoria-section {
    width: calc(100% - 2rem);
    margin: -5rem auto 8rem;
    padding: 4rem 1.4rem;
    border-radius: 18px;
  }

  /* Botao de cadastro ocupa toda a largura disponivel no celular. */
  .trajetoria-login-link {
    width: 100%;
    box-sizing: border-box;
  }

  .trajetoria-copy h2 {
    font-size: 2.4rem;
    line-height: 3.1rem;
  }

  /* CARROSSEL PUBLICO: mostra poucos marcos na pagina principal antes do cadastro. */
.trajetoria-carousel {
    grid-template-columns: 3.8rem minmax(0, 1fr) 3.8rem;
    gap: 0.8rem;
  }

  .trajetoria-btn {
    width: 3.8rem;
    height: 3.8rem;
  }

  .trajetoria-track {
    grid-auto-columns: minmax(22rem, 84%);
  }

  .trajetoria-modal-card {
    padding: 2.6rem 1.6rem;
  }

  .trajetoria-modal-card div {
    grid-template-columns: 1fr;
  }

  .panel-career-item {
    grid-template-columns: 1fr;
  }

  /* MARCADOR LATERAL: numero da empresa e ano na linha do tempo do painel. */
.panel-career-marker {
    min-height: 7.4rem;
  }
}
/* FIM CSS TRAJETORIA PROFISSIONAL */
