/* ==========================================================================
   ESTRUTURA PRINCIPAL
   ========================================================================== */
.about-cv {
  margin: 15svh 0;
  display: flex;
  flex-direction: column;
}

.cv-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 2vw;
  align-items: start;
}

/* ==========================================================================
   CABEÇALHO (Foto, Meta e Intro)
   ========================================================================== */
.cv-header {
  grid-template-rows: auto auto;
  height: 70svh;
  margin-bottom: 25svh;
}

.cv-img-header {
  grid-column: 1 / 7;
  grid-row: 2;
  width: 100%;
  overflow: hidden;
  height: 100%;
  max-height: 60svh;
}

.cv-img-header picture,
.cv-img-header picture img,
.cv-img-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  display: block;
  --parallax-y: 0px;
  --zoom: 1.1;
  transform: translateY(var(--parallax-y)) scale(var(--zoom));
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.contact-anchor {
  display: block;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
}

.cv-contact {
  grid-column: 7 / 10;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-self: end;
  margin-bottom: -0.5rem;
}

.cv-intro-text {
  grid-column: 1 / 7;
  grid-row: 1;
  font-size: var(--fs-1);
  text-align: start;
  text-wrap: balance;
  align-self: end;
}

@media (max-width: 1280px) and (min-width: 1000px) {
  .cv-intro-text {
    hyphens: auto;
  }
}

/* ==========================================================================
   CONTEÚDO INTERNO DA SANFONA
   ========================================================================== */
.accordion-inner .cv-list,
.accordion-inner .cv-chart-list {
  padding-bottom: 2rem;
  margin-top: 0;
}

.accordion-inner .cv-list li:last-child {
  border-bottom: none;
}

.cv-list {
  margin-top: 2svh;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cv-list li {
  font-size: var(--fs-1);
  list-style-type: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.322);
  padding-bottom: 0.5rem;
}

.cv-chart-list {
  margin-top: 2svh;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cv-chart-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cv-chart-label {
  font-size: var(--fs-0);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cv-chart-track {
  width: 100%;
  height: 3px;
  background-color: rgba(0, 0, 0, 0.3);
}

.cv-chart-fill {
  height: 100%;
  background-color: #000000;
  transition: width 1s cubic-bezier(0.85, 0, 0.15, 1);
}

/* ==========================================================================
   CONTROLE DE VISIBILIDADE (DESKTOP)
   ========================================================================== */
@media (min-width: 1001px) {
  .hidden-desktop {
    display: none !important;
  }
}

/* ==========================================================================
   RESPONSIVIDADE (MOBILE BLINDADO COM FLEXBOX)
   ========================================================================== */
@media (max-width: 1000px) {
  .about-cv {
    display: flex;
    flex-direction: column;
    margin: 5svh 0;
    gap: 10svh;
  }

  .cv-header {
    display: contents;
  }

  /* Controle de Visibilidade Mobile */
  .hidden-mobile {
    display: none !important;
  }

  /* 1º - Texto de Introdução */
  .cv-intro-text {
    order: 1;
    text-align: start;
    text-wrap: pretty;
    margin: 10svh 0 8svh 0;
    max-width: 100%;
    min-height: 60vh;
    align-content: center;
  }

  /* 2º - A Sanfona (Largura total no meio da página) */
  .cv-content {
    order: 2;
    width: 100%;
    margin-bottom: 12svh;
  }

  /* 3º - Os Contatos */
  .cv-contact {
    order: 3;
    margin-bottom: -5svh;
    align-self: flex-start;
  }

  .contact-anchor {
    position: static;
    order: 5;
    height: 0;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* 4º - A Foto no Final (Corte 16:10 para celular) */
  .cv-img-header {
    order: 4;
    width: 100%;
    aspect-ratio: 16 / 10;
    height: auto;
    max-height: none;
    margin-top: 0;
    margin-bottom: -10svh;
  }

  .cv-img-header picture img,
  .cv-img-header img {
    object-position: center;
    --zoom: 1;
    --parallax-y: 0px !important;
    transform: none;
  }

  /* ==========================================================================
   ANIMAÇÕES EDITORIAIS (MOBILE)
   ========================================================================== */
  .reveal-element {
    opacity: 0;
    transform: translateY(60px);
    transition:
      opacity 0.8s ease-out,
      transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .reveal-element.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Congela o movimento de Y no celular para componentes largos como a sanfona */
  .cv-content.reveal-element {
    transform: none !important;
    transition: opacity 0.8s ease-out;
  }
}
