/* ===== Scroll reveal ===== */
[data-reveal]{
  opacity: 0;
  transform: translateY(16px);
  filter: blur(2px);
  transition:
    opacity .6s ease,
    transform .6s ease,
    filter .6s ease;
  will-change: opacity, transform, filter;
}

[data-reveal].is-visible{
  opacity: 1;
  transform: none;
  filter: none;
}

/* Stagger opcional: respeita um delay por elemento */
[data-reveal]{
  transition-delay: var(--reveal-delay, 0ms);
}

/* Acessibilidade: se a pessoa prefere menos movimento, não anima */
@media (prefers-reduced-motion: reduce){
  [data-reveal]{
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

/* ==============================
   VARIÁVEIS (Claro/Escuro)
============================== */
:root {
  --fonte-padrao: 'Poppins', sans-serif;

  /* tema claro */
  --bg: #F7F1E6;        /* bege claro */
  --accent: #5A6C4F;    /* verde musgo */
  --text: #1C1C1C;      /* letras escuras */

  /* tema escuro */
  --bg-dark: #1C1C1C;
  --accent-dark: #7D5BA6; /* roxo */
  --text-dark: #F7F1E6;

  --header-h: 72px;
}

/* ativa o tema escuro trocando variáveis */
body.dark {
  --bg: var(--bg-dark);
  --accent: var(--accent-dark);
  --text: var(--text-dark);
}

/* ==============================
   BASE
============================== */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--fonte-padrao);
  background: var(--bg);
  color: var(--text);
}

h2 { margin: 0 0 16px; }

/* ==============================
   HEADER
============================== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 1000;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 15px 40px;
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.logo {
  font-weight: 800;
  font-size: 35px;
  color: inherit;
  text-decoration: none;
}

.nav-container { display: flex; align-items: center; gap: 15px; }

.menu { display: flex; gap: 22px; }
.menu a {
  text-decoration: none;
  font-weight: 700;
  color: var(--text);
  text-transform: lowercase;
  transition: color .2s ease;
}
.menu a:hover { color: var(--accent); }
.menu a.is-active { color: var(--accent); }

.extras { display: flex; align-items: center; gap: 10px; }
.divisor {
  display: flex;
  align-items: center;
  height: 32px;
  margin: 0 10px;
}
.divisor i {
  font-size: 22px;
  transform: rotate(90deg);
  display: inline-block;
}

/* Botões de ícone (tema/idioma) */
.icon-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text);
  padding: 8px;
  border-radius: 10px;
  cursor: pointer;
  line-height: 0;
  transition: background .2s ease, transform .15s ease;
}
.icon-btn i { font-size: 18px; }
.icon-btn:hover { background: rgba(0,0,0,.06); }
.icon-btn:active { transform: scale(0.96); }

/* ==============================
   SEÇÕES (container centralizado)
============================== */
.section {
  min-height: 60vh;
  padding: calc(var(--header-h) + 32px) 40px 64px;
  max-width: 1200px;
  margin-inline: auto;
}

/* ==============================
   HERO (mais larga e puxada pra esquerda)
============================== */
.hero {
  display: grid;
  /* dá mais espaço pro texto que pra foto */
  grid-template-columns: 1.3fr 0.9fr;
  gap: 72px;

  /* ocupa a janela toda (menos o header) e centraliza verticalmente */
  min-height: calc(100dvh - var(--header-h));
  align-items: center;
  align-content: center;
}

/* hero: aumenta a largura do container e puxa à esquerda */
.hero.section {
  max-width: 1400px;     /* mais largo que as outras seções */
  padding-left: 24px;    /* encosta mais na esquerda */
  padding-right: 40px;
}

/* bloco de textos (esquerda) */
.hero__textos{
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  max-width: 750px;      /* descrição “vai mais pra direita” */
  padding-top: 120px;
  align-items: left;
}

/* título principal */
.hero h1{
  font-size: 60px;
  margin: 0;
  font-weight: 900;
  line-height: 1.18;     /* compacto como no wireframe */
}

/* parágrafo/legenda */
.hero p{
  max-width: 100%;       /* usa toda a largura do bloco */
  font-size: 19px;
  font-weight: 800;
  line-height: 1.6;
  margin: 0 0 16px;
}

/* palavra destacada */
.accent{ color: var(--accent); font-weight: 800; }
.accent.underline {
  color: var(--accent);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 2px;
}

/* foto redonda (direita) */
.hero__foto img{
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin-left: auto;
}

/* ===== Easter Egg: tremidinha, queda, GIF atrás e volta ===== */

@keyframes tremerFoto {
  0% { transform: translateX(0); }
  15% { transform: translateX(-2px); }
  30% { transform: translateX(2px); }
  45% { transform: translateX(-1.5px); }
  60% { transform: translateX(1.5px); }
  75% { transform: translateX(-1px); }
  90% { transform: translateX(1px); }
  100% { transform: translateX(0); }
}

@keyframes cairFoto {
  0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
  80%  { transform: translateY(120px) rotate(18deg); opacity: 1; }
  95%  { transform: translateY(320px) rotate(22deg); opacity: 0.8; }
  97%  { transform: translateY(335px) rotate(22deg); opacity: 0.3; }
  100% { transform: translateY(350px) rotate(24deg); opacity: 0; }
}

@keyframes voltarFoto {
  0%   { transform: translateY(180px) rotate(24deg); opacity: 0; }
  100% { transform: translateY(0) rotate(0deg); opacity: 1; }
}

/* contêiner da foto: vira plano de empilhamento */
.hero__foto{
  position: relative;
  overflow: visible;           /* deixa a queda passar para fora */
  display: inline-block;       /* mantém tamanho do conteúdo */
}

/* a FOTO fica acima do GIF */
.hero__foto img:not(.easter-egg-gif){
  position: relative;
  z-index: 2;
}

/* a tremidinha só na foto */
.hero__foto.tremer img:not(.easter-egg-gif){
  animation: tremerFoto 0.5s cubic-bezier(.36,.07,.19,.97);
}

/* anima a queda só na foto */
.hero__foto.caiu img:not(.easter-egg-gif){
  animation: cairFoto 1.6s cubic-bezier(.7,.2,.3,1.2) forwards;
}

/* anima a VOLTA da foto */
.hero__foto.voltar img:not(.easter-egg-gif){
  animation: voltarFoto 1s cubic-bezier(.7,.2,.3,1.2) forwards;
}

/* o GIF fica ABSOLUTO atrás da foto, sem ocupar layout */
.hero__foto .easter-egg-gif {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* centraliza no meio da foto */
  z-index: 1;
  width: 280px;    /* aumenta o tamanho (ajuste fino) */
  height: 280px;
  object-fit: contain;
  display: none;
  pointer-events: none;
  border-radius: 0; /* remove o círculo que estava herdando */
}

.hero__foto.mostrar-gif .easter-egg-gif{
  display: block;
}


/* Botão "Ver projetos" (não estica) */
.btn-primary{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  margin-top: 16px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, filter .2s ease;
}
.btn-primary:hover{
  transform: translateY(-2px);
  filter: brightness(1.05);
}

/* Ícones sociais (FA) */
.hero__social{
  display: flex;
  gap: 20px;
}
.hero__social a{
  width: 45px;  /* aumenta tamanho do círculo */
  height: 45px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none;
  transition: transform .2s ease, filter .2s ease;
}
.hero__social a i{
  font-size: 26px; /* aumenta tamanho do ícone */
  color: var(--bg);
}
.hero__social a:hover{
  transform: translateY(-5px); /* sobe mais o botão com o hover */;
  filter: brightness(1.1);
}

/* ==============================
   FOOTER
============================== */
.footer{
  padding: 24px 40px 48px;
  text-align: center;
  opacity: .8;
}
.footer a{
  color: var(--text);
  text-decoration: none;
}
.footer a:hover{ color: var(--accent); }

/* ==============================
   RESPONSIVO
============================== */
@media (max-width: 1100px){
  .hero.section{
    max-width: 100%;
    padding-left: 24px;
    padding-right: 24px;
  }
  .hero{
    grid-template-columns: 1fr;   /* empilha texto e foto */
    gap: 40px;
    min-height: auto;             /* evita “pulo” em mobile */
    padding-top: calc(var(--header-h) + 16px);
  }
  .hero__foto img{ margin: 0 auto; }
}


/* ==============================
   SOBRE (Seção 2)
============================== */
.sobre {
  /* usa o container padrão: max-width 1200 e padding da .section */
}
.sobre__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
  padding-left: 0;
  margin-left: -32px; /* puxa todo o grid mais pra esquerda */
}
.sobre__col-esq {
  padding-left: 0;
  margin-left: -24px; /* puxa o bloco da esquerda mais pra esquerda */
}
.sobre__title {
  font-size: clamp(2rem, 4.8vw, 3.2rem);
  line-height: 1.15;
  margin-left: -12px; /* puxa o título mais pra esquerda */
  font-weight: 900;
}
.sobre__p {
  font-size: 1.06rem;
  line-height: 1.7;
  margin: 0 0 16px;
  max-width: 820px; /* texto “vai mais pra direita” */
  margin-left: -12px; /* puxa os textos mais pra esquerda */
}
.sobre__col-dir {
  display: grid;
  gap: 28px;
  margin-left: 100px; /* afasta a coluna da direita mais pra direita */
  justify-items: start;
  align-items: start;
}
.sobre__quote {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.6;
  color: var(--text);
  background: rgba(0,0,0,.04);
  border-left: 6px solid var(--accent);
  padding: 14px 16px;
  border-radius: 10px;
  margin-left: 0;
}
.sobre__subtitle {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0 0 10px;
  color: var(--text);
  opacity: .8;
  font-weight: 800;
}
.sobre__xp {
  margin-left: 0;
}
.sobre__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.sobre__list li {
  position: relative;
  padding-left: 28px;
  font-weight: 700;
}
.sobre__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.6em;
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateY(-50%);
}

/* Responsivo */
@media (max-width: 980px){
  .sobre__grid{
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .sobre__p{ max-width: 100%; }
}

.gif-centralizado {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 220px; /* ajuste conforme necessário */
  padding: 32px 0;
}
.gif-centralizado img {
  max-width: 100%;
  height: auto;
  display: block;
}