/* ============================================================
   NENÊ TRANSPORTES — Animations & Transitions
   ============================================================ */

/* ============================================================
   KEYFRAMES
   ============================================================ */

/* Fade up (principal animação de entrada) */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade down */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade left */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Fade right */
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Fade in simples */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Scale up */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.88);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Reveal linha (para dividers e underlines) */
@keyframes revealLine {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* WhatsApp pulse */
@keyframes waPulse {
  0%   { transform: scale(1); opacity: 0.7; }
  70%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Shimmer (para loading states e efeitos premium) */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Float (elementos decorativos) */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

/* Rotate slow (ícones decorativos) */
@keyframes rotateSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Blink cursor */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Gold glow pulse */
@keyframes goldGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(201, 168, 76, 0.1); }
  50%       { box-shadow: 0 0 40px rgba(201, 168, 76, 0.25); }
}

/* Number count up (visual indicator) */
@keyframes countUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* Slide up reveal */
@keyframes slideUpReveal {
  from {
    clip-path: inset(100% 0 0 0);
    opacity: 0;
  }
  to {
    clip-path: inset(0% 0 0 0);
    opacity: 1;
  }
}

/* Hero text flicker (cinematográfico) */
@keyframes textFlicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    opacity: 1;
  }
  20%, 24%, 55% {
    opacity: 0.7;
  }
}

/* Gradient shift */
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Film strip scroll */
@keyframes filmScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   SCROLL-TRIGGERED ANIMATION CLASSES
   (aplicadas pelo Intersection Observer em main.js)
   ============================================================ */

/* Estado inicial — elementos aguardam animação */
.reveal {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.reveal-up    { transform: translateY(40px); }
.reveal.reveal-down  { transform: translateY(-30px); }
.reveal.reveal-left  { transform: translateX(-40px); }
.reveal.reveal-right { transform: translateX(40px); }
.reveal.reveal-scale { transform: scale(0.88); }
.reveal.reveal-fade  { transform: none; }

/* Estado visível */
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger delays para listas de cards */
.stagger-children > *:nth-child(1)  { transition-delay: 0ms; }
.stagger-children > *:nth-child(2)  { transition-delay: 80ms; }
.stagger-children > *:nth-child(3)  { transition-delay: 160ms; }
.stagger-children > *:nth-child(4)  { transition-delay: 240ms; }
.stagger-children > *:nth-child(5)  { transition-delay: 320ms; }
.stagger-children > *:nth-child(6)  { transition-delay: 400ms; }
.stagger-children > *:nth-child(7)  { transition-delay: 480ms; }
.stagger-children > *:nth-child(8)  { transition-delay: 560ms; }

/* ============================================================
   HERO ANIMATIONS (aplicadas no carregamento da página)
   ============================================================ */

.hero-animate-1 {
  animation: fadeInDown 0.9s ease both;
  animation-delay: 0.2s;
}

.hero-animate-2 {
  animation: fadeInUp 0.9s ease both;
  animation-delay: 0.4s;
}

.hero-animate-3 {
  animation: fadeInUp 0.9s ease both;
  animation-delay: 0.6s;
}

.hero-animate-4 {
  animation: fadeInUp 0.9s ease both;
  animation-delay: 0.8s;
}

.hero-animate-5 {
  animation: fadeInUp 0.9s ease both;
  animation-delay: 1.0s;
}

/* ============================================================
   HOVER EFFECTS
   ============================================================ */

/* Card glow on hover */
.hover-glow {
  transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

.hover-glow:hover {
  box-shadow: 0 0 40px rgba(201, 168, 76, 0.2), 0 8px 48px rgba(0, 0, 0, 0.6);
  transform: translateY(-6px);
}

/* Gold border reveal on hover */
.hover-border {
  position: relative;
}

.hover-border::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}

.hover-border:hover::after {
  transform: scaleX(1);
}

/* Image zoom on hover */
.hover-zoom {
  overflow: hidden;
}

.hover-zoom img,
.hover-zoom .img-placeholder {
  transition: transform var(--transition-slow);
}

.hover-zoom:hover img,
.hover-zoom:hover .img-placeholder {
  transform: scale(1.05);
}

/* Lift effect */
.hover-lift {
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* Icon scale */
.hover-icon i,
.hover-icon svg {
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.hover-icon:hover i,
.hover-icon:hover svg {
  transform: scale(1.15);
  color: var(--accent-gold-light);
}

/* ============================================================
   LOADING SKELETON
   ============================================================ */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-card) 25%,
    rgba(255,255,255,0.04) 50%,
    var(--bg-card) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ============================================================
   SPECIAL EFFECTS
   ============================================================ */

/* Gold shimmer text */
.text-shimmer {
  background: linear-gradient(
    90deg,
    #c9a84c 0%,
    #e8c97a 25%,
    #c9a84c 50%,
    #e8c97a 75%,
    #c9a84c 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

/* Floating element */
.float-anim {
  animation: float 4s ease-in-out infinite;
}

/* Gold glow pulse */
.pulse-gold {
  animation: goldGlow 3s ease-in-out infinite;
}

/* Film strip (usado como decoração) */
.film-strip-track {
  display: flex;
  gap: 0;
  animation: filmScroll 20s linear infinite;
  will-change: transform;
}

/* ============================================================
   PAGE TRANSITIONS
   ============================================================ */

/* Fade in ao carregar a página */
.page-enter {
  animation: fadeIn 0.5s ease both;
}

/* ============================================================
   CURSOR PERSONALIZADO (opcional, desktop only)
   ============================================================ */

@media (pointer: fine) {
  /* Cursor dot */
  .cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-gold);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, opacity 0.3s ease;
    mix-blend-mode: normal;
  }

  .cursor-ring {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(201, 168, 76, 0.4);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: transform 0.12s ease, width 0.2s ease, height 0.2s ease, opacity 0.3s ease;
  }

  .cursor-dot.is-hovering {
    transform: translate(-50%, -50%) scale(2);
    background: var(--accent-gold-light);
  }

  .cursor-ring.is-hovering {
    width: 48px;
    height: 48px;
    border-color: rgba(201, 168, 76, 0.2);
  }
}

/* ============================================================
   RESPONSIVE — Desativa algumas animações no mobile
   ============================================================ */
@media (max-width: 768px) {
  /* Reduz distância de translação para mobile */
  .reveal.reveal-up    { transform: translateY(24px); }
  .reveal.reveal-left  { transform: translateX(-24px); }
  .reveal.reveal-right { transform: translateX(24px); }

  /* Remove float no mobile (performance) */
  .float-anim {
    animation: none;
  }
}

/* Respeita preferência por movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .film-strip-track {
    animation: none;
  }
}
