/* ============================================================
   Thalita Costa, Portfólio
   Layout inspirado no template "Fabel":
   sidebar clara fixa à esquerda + coluna de imagens no fundo preto.
   ============================================================ */

:root {
  --page: #f4f2ed;      /* fundo claro da coluna direita */
  --sidebar-bg: #ffffff;
  --ink: #111111;
  --ink-soft: #6f6f6f;
  --line: #ebebeb;
  --line-soft: #e2ded5;
  --sidebar-w: 30%;
  --sidebar-min: 320px;
  --sidebar-max: 420px;
  --gap: 10px;
  --pad: clamp(22px, 2.4vw, 40px);
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--page);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ===================== LAYOUT ===================== */
.layout { display: flex; min-height: 100vh; }

/* ---------- Sidebar clara e fixa ---------- */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-min);
  max-width: var(--sidebar-max);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--sidebar-bg);
  padding: 22px var(--pad);
}

.sidebar__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;       /* garante acesso a tudo em telas baixas */
  scrollbar-width: none;
}
.sidebar__inner::-webkit-scrollbar { display: none; }

/* topo: marca + nav */
.sidebar__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand__mark { font-size: 15px; }
.brand__name { font-weight: 600; font-size: 15px; letter-spacing: -0.2px; }

.nav { display: inline-flex; gap: 16px; margin-top: 12px; }
.nav a {
  font-size: 13px;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--ink); }

/* ---------- Seletor de idioma ---------- */
.lang { position: relative; }
.lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 6px 11px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.lang__btn:hover { border-color: #ccc; }
.lang__globe { display: inline-flex; align-items: center; color: var(--ink); }
.lang__chev { font-size: 9px; color: var(--ink-soft); transition: transform 0.2s var(--ease); }
.lang.is-open .lang__chev { transform: rotate(180deg); }

.lang__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 150px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 16px 40px -18px rgba(0,0,0,0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  z-index: 20;
}
.lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang__menu button {
  display: block;
  width: 100%;
  text-align: left;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  background: none;
  border: 0;
  border-radius: 8px;
  padding: 9px 12px;
  cursor: pointer;
  transition: background 0.15s var(--ease);
}
.lang__menu button:hover { background: #f3f2ee; }

/* miolo */
.sidebar__main {
  margin-top: auto;
  margin-bottom: auto;
  padding: 16px 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 6px 12px;
  margin-bottom: 24px;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.badge:hover { border-color: #ccc; color: var(--ink); }

.headline {
  font-size: clamp(23px, 2.3vw, 33px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -1px;
}

.lead {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 36ch;
}

.cta {
  display: inline-block;
  margin-top: 16px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: 100px;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.cta:hover { transform: translateY(-2px); background: #000; }

.features {
  list-style: none;
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink);
}
.check {
  display: grid;
  place-items: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #f0f0f0;
  color: var(--ink);
  font-size: 10px;
}

/* rodapé */
.sidebar__foot { margin-top: auto; }
.foot__label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.foot__logos { display: flex; flex-wrap: wrap; gap: 14px; }
.foot__logos a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease);
}
.foot__logos a:hover { color: var(--ink); }

.foot__copy {
  display: block;
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--ink-soft);
}

/* ---------- Carrossel de ferramentas ---------- */
.marquee {
  overflow: hidden;
  margin: 10px 0 12px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 30px;
  width: max-content;
  animation: marquee 20s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.tool { display: inline-flex; align-items: center; gap: 8px; }
.tool svg { display: block; flex-shrink: 0; }
.tool span { font-size: 14px; font-weight: 500; color: var(--ink); white-space: nowrap; }

/* ===================== CONTEÚDO (direita, fundo preto) ===================== */
.content {
  flex: 1;
  min-width: 0;
  background: var(--page);
  padding: var(--gap);
}

.fade-in { animation: fadeIn 0.5s var(--ease) both; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Lista: pilha de imagens ---------- */
.stack { display: flex; flex-direction: column; gap: var(--gap); }

.card {
  position: relative;
  display: block;
  overflow: hidden;
  cursor: pointer;
  background: #e6e2da;
}
.card__media { aspect-ratio: 16 / 10; overflow: hidden; }
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.card:hover .card__media img { transform: scale(1.03); }

/* overlay que aparece no hover */
.card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0) 55%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.card:hover .card__overlay { opacity: 1; }
.card__name {
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.3px;
}
.card__tag {
  color: var(--white-soft);
  font-size: 13px;
  margin-top: 2px;
}
.card__year { color: var(--white-soft); font-size: 13px; white-space: nowrap; }

/* ---------- Página individual do projeto ---------- */
.detail { color: var(--ink); }
.detail__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 100px;
  padding: 10px 18px;
  cursor: pointer;
  margin-bottom: 24px;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.detail__back:hover { transform: translateX(-3px); background: #fff; box-shadow: 0 8px 20px -12px rgba(0,0,0,.25); }

.detail__header { padding: 8px 4px 30px; }
.detail__tag {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--ink-soft);
}
.detail__title {
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -1.5px;
  margin-top: 10px;
  color: var(--ink);
}
.detail__intro {
  margin-top: 16px;
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 60ch;
}

.detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin: 0 4px 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.detail__meta div span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink-soft);
  margin-bottom: 5px;
}
.detail__meta div strong { font-weight: 500; font-size: 15px; color: var(--ink); }

.detail__media { display: flex; flex-direction: column; gap: var(--gap); }
.detail__media img { width: 100%; }

.detail__section { padding: 40px 4px 0; }
.detail__section h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--ink);
  letter-spacing: -0.5px;
}
.detail__section p { font-size: 16px; color: var(--ink-soft); max-width: 62ch; }

.detail__foot { padding: 40px 4px 8px; }

/* ---------- Página "Sobre" (mini landing) ---------- */
.about {
  color: var(--ink);
  padding: 8px 4px 20px;
  max-width: 1000px;
  margin-inline: auto; /* centraliza: mesmo respiro dos dois lados */
}

.about__eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--ink-soft);
}

/* hero: texto + foto retrato */
.about__hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 16px;
}
.about__hero-text h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.08;
  margin: 10px 0 18px;
}
.about__hero-text p {
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 14px;
  max-width: 52ch;
}
.about__hero-text .cta { margin-top: 10px; }

/* espaços de foto */
.photo {
  border-radius: 16px;
  overflow: hidden;
  background: #e6e2da;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--portrait { aspect-ratio: 4 / 5; }
.photo:not(.photo--portrait):not(.photo--wide) { aspect-ratio: 4 / 3; }
.photo--wide { aspect-ratio: 16 / 10; margin-top: 14px; }
.photo--empty {
  display: grid;
  place-items: center;
  border: 1px dashed #cbc6bb;
  background: #efece6;
}
.photo--empty span {
  font-size: 13px;
  letter-spacing: 0.5px;
  color: #a29c90;
}

/* blocos */
.about__block { margin: 34px 0; }
.about h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.4px;
  margin-bottom: 18px;
}

/* grid de habilidades */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}
.skill {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 18px 20px;
}
.skill h4 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.skill p { font-size: 14px; color: var(--ink-soft); line-height: 1.5; }

/* timeline de experiência / formação */
.timeline {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line-soft);
  margin-left: 5px;
}
.job {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 0 0 22px 24px;
}
.job:last-child { padding-bottom: 4px; }
.job__marker {
  position: absolute;
  left: -5.5px;
  top: 5px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--page);
  border: 2px solid #b6b0a4;
}
.job--current .job__marker {
  background: #37a35a;
  border-color: #37a35a;
  box-shadow: 0 0 0 4px rgba(55,163,90,0.15);
}
.job__info h4 { font-size: 15px; font-weight: 600; }
.job__company { font-size: 14px; color: var(--ink-soft); }
.job__period {
  font-size: 13px;
  color: var(--ink-soft);
  white-space: nowrap;
  padding-top: 2px;
}

@media (max-width: 560px) {
  .job { flex-direction: column; gap: 2px; }
  .job__period { padding-top: 0; }
}

/* certificações */
.cert-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.cert-list li {
  font-size: 14px;
  font-weight: 500;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 100px;
  padding: 8px 16px;
}

@media (max-width: 720px) {
  .about__hero { grid-template-columns: 1fr; gap: 22px; }
  .photo--portrait { aspect-ratio: 4 / 3; }
}

/* ============================================================
   VIDA: reveals, marquee grande, stats, blobs, tilt, cursor
   ============================================================ */

/* --- reveal no scroll --- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* --- título palavra por palavra --- */
.split .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.55em) rotate(2deg);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.is-visible .w { opacity: 1; transform: translateY(0) rotate(0); }

/* --- hero do sobre com blobs --- */
.about__hero { position: relative; }
.about__hero > .about__hero-text,
.about__hero > .photo { position: relative; z-index: 1; }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  transition: translate 0.6s var(--ease);
  animation: blobFloat 9s ease-in-out infinite alternate;
}
.blob--1 {
  width: 340px; height: 340px;
  top: -70px; left: -60px;
  background: radial-gradient(circle, rgba(186,214,181,0.55), transparent 65%);
}
.blob--2 {
  width: 300px; height: 300px;
  bottom: -60px; right: 6%;
  background: radial-gradient(circle, rgba(233,196,182,0.5), transparent 65%);
  animation-delay: -4s;
}
@keyframes blobFloat {
  from { margin-top: 0; }
  to   { margin-top: 26px; }
}

/* --- faixa marquee gigante --- */
.strip {
  overflow: hidden;
  margin: 30px -4px 6px;
  padding: 6px 0;
  user-select: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.strip__track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.strip:hover .strip__track { animation-play-state: paused; }
.strip__track span {
  font-size: clamp(36px, 4.6vw, 58px);
  font-weight: 600;
  letter-spacing: -2px;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.2px #c4bdae;
}
.strip__track span.fill {
  color: var(--ink);
  -webkit-text-stroke: 0;
}
.strip__track i {
  font-style: normal;
  font-size: 20px;
  color: #c4bdae;
}

/* --- fotos: tilt + brilho --- */
.photo {
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  will-change: transform;
  position: relative;
}
.photo:hover { box-shadow: 0 24px 50px -28px rgba(0,0,0,0.4); }
.photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.28) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.9s var(--ease);
  pointer-events: none;
}
.photo:hover::after { transform: translateX(120%); }

/* --- botão magnético --- */
[data-magnetic] { transition: transform 0.25s var(--ease); will-change: transform; }

/* --- pills de certificação reagem --- */
.cert-list li {
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              background 0.3s var(--ease);
  cursor: default;
}
.cert-list li:hover {
  transform: translateY(-3px) rotate(-1deg);
  box-shadow: 0 12px 24px -16px rgba(0,0,0,0.3);
}

/* --- skill cards reagem --- */
.skill {
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
              box-shadow 0.35s var(--ease), opacity 0.7s var(--ease);
}
.skill:hover {
  transform: translateY(-4px);
  border-color: #cbc4b5;
  box-shadow: 0 16px 32px -24px rgba(0,0,0,0.35);
}

/* --- rodapé / copyright (só aparece no mobile; no desktop fica na sidebar) --- */
.site-foot {
  display: none;
  padding: 26px 4px 10px;
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
  border-top: 1px solid var(--line-soft);
  margin-top: 26px;
}

/* --- botão voltar ao topo --- */
.to-top {
  position: fixed;
  right: 29px;
  bottom: 92px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line-soft);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 99;
  box-shadow: 0 8px 20px -10px rgba(0,0,0,0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { transform: translateY(-3px); }

/* --- botão flutuante do WhatsApp --- */
.whats-fab {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 26px -8px rgba(37,211,102,0.55);
  z-index: 100;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.whats-fab:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 16px 34px -10px rgba(37,211,102,0.65);
}

/* ===================== RESPONSIVO ===================== */
@media (max-width: 860px) {
  :root { --pad: 26px; }

  .layout { flex-direction: column; }

  /* sidebar vira o "hero" branco no topo, largura total */
  .sidebar {
    width: 100%;
    max-width: none;
    min-width: 0;
    position: static;
    height: auto;
  }
  .sidebar__inner { height: auto; }
  .sidebar__main { margin: 0; padding: 30px 0 34px; }
  .lead { max-width: none; }

  .headline { font-size: clamp(34px, 9vw, 46px); }

  /* conteúdo (projetos) empilhado logo abaixo */
  .content { padding: 0 var(--pad) var(--pad); }
  .stack { gap: 16px; }
  .card__media { aspect-ratio: 4 / 3; }

  /* nome do projeto sempre visível no mobile (não depende de hover) */
  .card__overlay { opacity: 1; }

  .detail__header, .detail__section, .detail__foot,
  .detail__meta, .about { padding-left: 0; padding-right: 0; }
  .detail__header { padding-top: 35px; }
  .about { padding-top: 35px; }
  .detail__meta { gap: 24px; }

  /* no mobile o copyright vai pro fim da página, não na sidebar */
  .site-foot { display: block; }
  .foot__copy { display: none; }
}

@media (max-width: 480px) {
  .detail__meta { gap: 18px; }
  .detail__meta div { flex: 1 1 40%; }
}

@media (max-width: 720px) {
  .blob--1 { width: 240px; height: 240px; }
  .blob--2 { width: 200px; height: 200px; }
}

/* respeita quem prefere menos movimento */
@media (prefers-reduced-motion: reduce) {
  .marquee__track, .strip__track, .blob { animation: none; }
  .photo::after { display: none; }
}
