/* ═══════════════════════════════════════════════════════════
   CSIDE — animations.css
   Estados iniciais para GSAP + animações CSS puras
════════════════════════════════════════════════════════════ */

/* ── ESTADOS INICIAIS (GSAP anima de 0 → 1) ─────────────────── */
.split-text .char {
  opacity: 0;
}

/* ── PARALLAX ────────────────────────────────────────────────── */
.parallax-section { overflow: hidden; }
.parallax-bg,
.parallax-img     { will-change: transform; }

/* ── SPLIT TEXT (caracteres individuais) ─────────────────────── */
.split-text {
  overflow: hidden;
}
.split-text .char {
  display: inline-block;
  transform-origin: bottom center;
}

/* ── MAGNETIC BUTTON (efeito de follow do rato) ──────────────── */
.magnetic-btn {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.3s ease;
}

/* ── HOVER LINE (underline animado para links de texto) ──────── */
.hover-line {
  position: relative;
  display: inline-block;
}
.hover-line::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hover-line:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ── CARD HOVER LIFT ─────────────────────────────────────────── */
.office-item,
.feature-item {
  transition: transform 0.4s ease;
}
.office-item:hover,
.feature-item:hover {
  transform: translateY(-4px);
}

/* ── FORM FOCUS LINE ─────────────────────────────────────────── */
.form-group {
  position: relative;
}
.form-group input,
.form-group textarea {
  transition: border-color 0.4s ease;
}
.form-group::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-primary);
  transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.form-group:focus-within::after {
  width: 100%;
}

/* ── NAV LINK UNDERLINE ──────────────────────────────────────── */
.nav-item > a {
  position: relative;
}
.nav-item > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.nav-item > a:hover::after,
.nav-item.active > a::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ── SOCIAL LINK ─────────────────────────────────────────────── */
.social-link svg {
  transition: transform 0.3s ease;
}
.social-link:hover svg {
  transform: scale(1.1);
}

/* ── FEATURED LOGO ITEM STAGGER (reforço visual) ─────────────── */
.featured-logo-item {
  transition: opacity 0.4s ease, filter 0.4s ease, transform 0.4s ease;
}
.featured-logo-item:hover {
  transform: translateY(-2px);
}

.result-item:hover {
  transform: translateY(-4px);
}

/* ── PAGE TRANSITIONS ────────────────────────────────────────── */
.page-transition-out {
  animation: pageOut 0.4s ease forwards;
}
@keyframes pageOut {
  to { opacity: 0; transform: translateY(-20px); }
}

/* ── SCROLL PROGRESS BAR ─────────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--color-accent);
  z-index: 200;
  transition: width 0.1s linear;
}
