html {
  scroll-behavior: smooth;
}

::selection {
  background: #2563EB;
  color: #fff;
}

/* Fade-in on scroll (ativado via IntersectionObserver em main.js) */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Timeline da trajetória profissional */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: .4rem;
  bottom: .4rem;
  width: 2px;
  background: linear-gradient(to bottom, #2563EB, #06B6D4, #8B5CF6);
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
}

/* Hero premium — grid de fundo, blobs animados, glow e badges flutuantes */
.hero-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 25%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 25%, #000 40%, transparent 100%);
}

@keyframes hero-drift-a {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, 30px); }
}
@keyframes hero-drift-b {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(25px, -20px); }
}
@keyframes hero-drift-c {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-15px, -25px); }
}
.hero-blob-a { animation: hero-drift-a 14s ease-in-out infinite; }
.hero-blob-b { animation: hero-drift-b 18s ease-in-out infinite; }
.hero-blob-c { animation: hero-drift-c 16s ease-in-out infinite; }

@keyframes hero-pulse {
  0%, 100% { opacity: .25; }
  50% { opacity: .45; }
}
.hero-glow { animation: hero-pulse 6s ease-in-out infinite; }

@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero-float-a { animation: hero-float 5s ease-in-out infinite; }
.hero-float-b { animation: hero-float 6s ease-in-out infinite; animation-delay: .4s; }
.hero-float-c { animation: hero-float 7s ease-in-out infinite; animation-delay: .8s; }

@keyframes wa-ping {
  0% { transform: scale(1); opacity: .6; }
  75%, 100% { transform: scale(1.7); opacity: 0; }
}
.wa-float-ping { animation: wa-ping 2.2s cubic-bezier(0, 0, 0.2, 1) infinite; }

.hero-photo-wrap {
  perspective: 1200px;
}
.hero-photo-frame {
  transition: transform .3s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

@keyframes timeline-pulse-ring {
  0% { transform: scale(1); opacity: .55; }
  100% { transform: scale(1.8); opacity: 0; }
}
.timeline-pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: currentColor;
  animation: timeline-pulse-ring 2.4s ease-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-blob-a,
  .hero-blob-b,
  .hero-blob-c,
  .hero-glow,
  .hero-float-a,
  .hero-float-b,
  .hero-float-c {
    animation: none;
  }
  .wa-float-ping {
    animation: none;
    display: none;
  }
  .timeline-pulse::after {
    animation: none;
    display: none;
  }
}
