
/* navbar */
.scale-in-ver-top {
	animation: scale-in-ver-top 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

/* footer */
.scale-in-ver-bottom {
	animation: scale-in-ver-bottom 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

/* Hero */
.slide-in-blurred-hero {
	animation: slide-in-blurred-left 2s cubic-bezier(0.230, 1.000, 0.320, 1.000) both;
}

/* portifolio \ sobre  */
.fade-in-left {
	animation: fade-in-left 0.8s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
}

/* missao */
.slide-in-elliptic-bf-missao {
	animation: slide-in-elliptic-bottom-fwd 1s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

/* visao */
.slide-in-elliptic-bf-visao {
	animation: slide-in-elliptic-bottom-fwd 1.2s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

/* valores */
.slide-in-elliptic-bf-valores {
	animation: slide-in-elliptic-bottom-fwd 1.4s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

/* tags */
.slide-in-left-tag {
    animation-name: slide-in-left;
    animation-duration: calc(var(--duracao, 1) * 0.1s + 0.8s); /* declarar em style na hora de chamar */
    animation-timing-function: cubic-bezier(0.250, 0.460, 0.450, 0.940);
    animation-fill-mode: both;
}

/* projetos */
.slide-in-bottom {
	animation-name: slide-in-bottom;
    animation-duration: calc(var(--duracao, 1) * 0.1s + 0.7s);
    animation-timing-function: cubic-bezier(0.250, 0.460, 0.450, 0.940);
    animation-fill-mode: both;
}

/* contato */
.scale-in-bl-1 {
	animation: scale-in-bl 1s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

.scale-in-bl-2 {
	animation: scale-in-bl 1s cubic-bezier(0.250, 0.460, 0.450, 0.940) 1s both;
}

/*_______________________________________________________________________________*/


@keyframes scale-in-ver-top {
  0% {
    /* começa em 50%, não em 0: com o menu fechado no primeiro quadro o logo não aparece,
       e o PageSpeed não encontra nada para medir o LCP. */
    transform: scaleY(0.5);
    transform-origin: 100% 0%;
    opacity: 1;
  }
  100% {
    transform: scaleY(1);
    transform-origin: 100% 0%;
    opacity: 1;
  }
}

@keyframes fade-in-left {
  0% {
    transform: translateX(-50px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes scale-in-ver-bottom {
  0% {
    transform: scaleY(0);
    transform-origin: 0% 100%;
    opacity: 1;
  }
  100% {
    transform: scaleY(1);
    transform-origin: 0% 100%;
    opacity: 1;
  }
}


@keyframes slide-in-blurred-left {
  0% {
    transform: translateX(-1000px) scaleX(2.5) scaleY(0.2);
    transform-origin: 100% 50%;
    filter: blur(40px);
    opacity: 0;
  }
  100% {
    transform: translateX(0) scaleY(1) scaleX(1);
    transform-origin: 50% 50%;
    filter: blur(0);
    opacity: 1;
  }
}

@keyframes slide-in-elliptic-bottom-fwd {
  0% {
    transform: translateY(600px) rotateX(30deg) scale(0);
    transform-origin: 50% 100%;
    opacity: 0;
  }
  100% {
    transform: translateY(0) rotateX(0) scale(1);
    transform-origin: 50% -1400px;
    opacity: 1;
  }
}

@keyframes slide-in-left {
  0% {
    transform: translateX(-1000px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slide-in-bottom {
  0% {
    transform: translateY(1000px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes scale-in-bl {
  0% {
    transform: scale(0);
    transform-origin: 0% 100%;
    opacity: 1;
  }
  100% {
    transform: scale(1);
    transform-origin: 0% 100%;
    opacity: 1;
  }
}

/*_______________________________________________________________________________*/
/* Ajustes para o PageSpeed (LCP). O Chrome não conta como "conteúdo pintado" o que
   aparece com opacity ou filter animados: se todo o conteúdo do topo entra assim, o
   PageSpeed não acha o LCP e o Desempenho fica sem nota (!). O texto principal de cada
   página entra pela cor (transparente -> normal), com o mesmo movimento. */

/* Hero: a animação sai da <section> e vai para cada parte. O nome mantém o degradê. */
.k-hero .k-name.slide-in-blurred-hero {
  animation: slide-in-blurred-left 2s cubic-bezier(0.230, 1.000, 0.320, 1.000) both,
             k-name-flow 7s linear infinite;
}

/* Frase do hero (LCP da home): desliza e aparece pela cor, com um brilho borrado no lugar do blur. */
.slide-in-blurred-texto {
  animation: slide-in-blurred-texto 2s cubic-bezier(0.230, 1.000, 0.320, 1.000) both;
}
@keyframes slide-in-blurred-texto {
  from {
    transform: translateX(-160px);
    color: transparent;
    text-shadow: 0 0 18px rgba(226, 232, 240, 0.55);
  }
}

/* Texto do topo do Sobre e do Portfólio (LCP dessas páginas): mesmo fade-in-left, pela cor. */
.fade-in-left-texto {
  animation: fade-in-left-texto 0.8s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
}
@keyframes fade-in-left-texto {
  from {
    transform: translateX(-50px);
    color: transparent;
  }
}

@media (prefers-reduced-motion: reduce) {
  .k-hero .k-name.slide-in-blurred-hero { animation: none; }
  .slide-in-blurred-hero, .slide-in-blurred-texto, .fade-in-left-texto { animation: none; }
}
