/* Micro-animações CSS (hero + consultoria). */

@media (prefers-reduced-motion: reduce) {
  .hero-bg-glow,
  .hero-photo,
  .consulting-section .consulting-bg-glow {
    animation: none !important;
  }
}

@keyframes hero-glow-drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.92;
  }
  50% {
    transform: translate(-4%, 3%) scale(1.06);
    opacity: 1;
  }
}

@keyframes hero-photo-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

.hero-section .hero-bg-glow {
  animation: hero-glow-drift 9s ease-in-out infinite;
}

.hero-section .hero-photo {
  animation: hero-photo-float 6s ease-in-out infinite;
}

@keyframes consulting-glow-pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.05);
  }
}

.consulting-section .consulting-bg-glow {
  animation: consulting-glow-pulse 8s ease-in-out infinite;
}

.consulting-mini-icon {
  transition: transform 0.3s ease, color 0.3s ease;
}

.consulting-mini-card:hover .consulting-mini-icon {
  transform: scale(1.12) rotate(-4deg);
}

@keyframes final-card-glow {
  0%,
  100% {
    box-shadow: 0 20px 50px rgba(124, 58, 237, 0.22);
  }
  50% {
    box-shadow: 0 28px 60px rgba(217, 70, 239, 0.35);
  }
}

.final-section .meu-card-especial {
  animation: final-card-glow 5s ease-in-out infinite;
}

.gradient-button {
  position: relative;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    box-shadow 0.35s ease;
}

/* Secção Feedback: sem brilho / shimmer nos controlos do carrossel */
.testimonial-section .gradient-button::after,
.testimonial-section .testimonial-nav-btn::after {
  display: none !important;
}

.gradient-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 65%
  );
  transform: translateX(-120%);
  transition: transform 0.55s ease;
  pointer-events: none;
}

.gradient-button:hover::after {
  transform: translateX(120%);
}

.gradient-button:hover {
  transform: translateY(-2px);
}

.knowledge-card,
.projects-card,
.consulting-mini-card,
.expert-item {
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease;
}

.knowledge-card:hover,
.projects-card:hover,
.consulting-mini-card:hover,
.expert-item:hover {
  transform: translateY(-6px);
}
