/* ============================================
   FREEDOOH - MOTION DESIGN CSS
   assets/css/motion.css
   Versão: 2.0 | Estilo: B2B Elegante
   ============================================ */

/* ---------- VARIÁVEIS DE TRANSIÇÃO ---------- */
:root {
  --fd-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --fd-transition-fast: 0.3s var(--fd-ease);
  --fd-transition-medium: 0.4s var(--fd-ease);
  --fd-transition-slow: 0.6s var(--fd-ease);
}

/* ============================================
   HEADER EFFECTS
   ============================================ */
.header-scroll {
  transition: all var(--fd-transition-medium);
}

.header-scroll.scrolled {
  background: rgba(10, 22, 40, 0.98) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.logo-hover {
  transition: all var(--fd-transition-fast);
}

.logo-hover:hover {
  filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.3));
  transform: scale(1.02);
}

/* ============================================
   NAV LINK EFFECTS
   ============================================ */
.nav-link-hover {
  position: relative;
  transition: color var(--fd-transition-fast);
}

.nav-link-hover::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--fd-primary);
  transition: width var(--fd-transition-fast);
}

.nav-link-hover:hover {
  color: var(--fd-primary) !important;
}

.nav-link-hover:hover::after {
  width: 100%;
}

/* ============================================
   BUTTON EFFECTS
   ============================================ */
.btn-primary-hover {
  transition: all var(--fd-transition-fast);
  position: relative;
  overflow: hidden;
}

.btn-primary-hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn-primary-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

.btn-primary-hover:hover::before {
  left: 100%;
}

.btn-secondary-hover {
  transition: all var(--fd-transition-fast);
  background-size: 200% 100%;
  background-position: 100% 0;
  background-image: linear-gradient(to right, rgba(0,255,136,0.1) 50%, transparent 50%);
}

.btn-secondary-hover:hover {
  background-position: 0 0;
  transform: translateY(-2px);
}

/* CTA Pulse */
@keyframes subtle-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(0, 255, 136, 0); }
}

.cta-pulse {
  animation: subtle-pulse 3s ease-in-out infinite;
}

.cta-pulse:hover {
  animation: none;
  box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

/* Submit Button Arrow */
.submit-btn {
  position: relative;
  overflow: hidden;
  transition: all var(--fd-transition-fast);
}

.submit-btn::after {
  content: '→';
  position: absolute;
  right: 20px;
  opacity: 0;
  transform: translateX(-10px);
  transition: all var(--fd-transition-fast);
}

.submit-btn:hover {
  padding-right: 50px !important;
}

.submit-btn:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================
   CARD EFFECTS
   ============================================ */
.card-hover {
  transition: all var(--fd-transition-medium);
}

.card-hover:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 255, 136, 0.5) !important;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 30px rgba(0,255,136,0.1);
}

.card-hover .elementor-icon,
.card-hover svg {
  transition: all var(--fd-transition-medium);
}

.card-hover:hover .elementor-icon,
.card-hover:hover svg {
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.5));
}

/* Feature Card with Gradient Border */
.feature-card {
  transition: all var(--fd-transition-medium);
  position: relative;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0,255,136,0.3), transparent 50%, rgba(0,255,136,0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--fd-transition-medium);
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:hover .elementor-icon {
  transform: translateY(-5px) scale(1.1);
  filter: drop-shadow(0 5px 15px rgba(0, 255, 136, 0.4));
}

.feature-card:hover .elementor-heading-title {
  color: var(--fd-primary) !important;
}

/* ============================================
   IMAGE EFFECTS
   ============================================ */
.img-hover-zoom {
  overflow: hidden;
  border-radius: 12px;
}

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

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

.img-hover-overlay {
  position: relative;
  overflow: hidden;
}

.img-hover-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,255,136,0.2), transparent);
  opacity: 0;
  transition: opacity var(--fd-transition-medium);
  pointer-events: none;
}

.img-hover-overlay:hover::after {
  opacity: 1;
}

/* Hero Image Glow */
.hero-image-glow {
  position: relative;
}

.hero-image-glow::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse at center, rgba(0,255,136,0.15) 0%, transparent 70%);
  filter: blur(40px);
  animation: glow-breathe 4s ease-in-out infinite;
  z-index: -1;
  pointer-events: none;
}

@keyframes glow-breathe {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

/* ============================================
   TEXT EFFECTS
   ============================================ */
.text-shimmer {
  background: linear-gradient(90deg, #00ff88 0%, #00dd77 50%, #00ff88 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

.heading-underline {
  position: relative;
  display: inline-block;
}

.heading-underline::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--fd-primary), transparent);
  animation: expand-line 1s ease-out 0.5s forwards;
  transform-origin: left;
  transform: scaleX(0);
}

@keyframes expand-line {
  to { transform: scaleX(1); }
}

/* ============================================
   SEAL / AUTHORITY EFFECTS
   ============================================ */
.seal-icon {
  transition: all var(--fd-transition-medium);
  position: relative;
}

.seal-icon:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
}

.seal-icon::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px dashed rgba(0, 255, 136, 0.3);
  opacity: 0;
  transition: opacity var(--fd-transition-fast);
  pointer-events: none;
}

.seal-icon:hover::after {
  opacity: 1;
  animation: rotate-slow 10s linear infinite;
}

@keyframes rotate-slow {
  to { transform: rotate(360deg); }
}

/* ============================================
   TESTIMONIAL EFFECTS
   ============================================ */
.testimonial-card {
  transition: all var(--fd-transition-medium);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 255, 136, 0.4) !important;
}

.testimonial-card .quote-icon {
  transition: all var(--fd-transition-medium);
}

.testimonial-card:hover .quote-icon {
  transform: scale(1.2);
  opacity: 0.4;
}

/* Partner Logos */
.partner-logo {
  transition: all var(--fd-transition-fast);
  filter: grayscale(100%);
  opacity: 0.6;
}

.partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

/* ============================================
   COUNTER / STATS EFFECTS
   ============================================ */
.stat-number {
  transition: all var(--fd-transition-fast);
}

.stat-number:hover {
  transform: scale(1.1);
  text-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

.stat-item {
  transition: all var(--fd-transition-fast);
  position: relative;
}

.stat-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--fd-primary);
  transition: all var(--fd-transition-medium);
  transform: translateX(-50%);
}

.stat-item:hover::after {
  width: 60%;
}

/* ============================================
   CTA SECTION EFFECTS
   ============================================ */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0,255,136,0.03) 0%, transparent 50%);
  animation: cta-ambient 15s linear infinite;
  pointer-events: none;
}

@keyframes cta-ambient {
  0% { transform: translate(0, 0); }
  50% { transform: translate(25%, 25%); }
  100% { transform: translate(0, 0); }
}

/* ============================================
   FORM EFFECTS
   ============================================ */
.form-field input,
.form-field textarea,
.form-field select,
.elementor-field-textual {
  transition: all var(--fd-transition-fast);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus,
.elementor-field-textual:focus {
  border-color: var(--fd-primary) !important;
  box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
  transform: translateY(-2px);
}

/* ============================================
   ICON BOX EFFECTS
   ============================================ */
.icon-box-hover {
  transition: all var(--fd-transition-medium);
}

.icon-box-hover:hover {
  transform: translateY(-5px);
}

.icon-box-hover .elementor-icon-box-icon {
  transition: all var(--fd-transition-medium);
}

.icon-box-hover:hover .elementor-icon-box-icon {
  transform: scale(1.15) rotate(5deg);
}

/* ============================================
   SOCIAL ICON EFFECTS
   ============================================ */
.social-icon-hover {
  transition: all var(--fd-transition-fast);
}

.social-icon-hover:hover {
  transform: translateY(-4px);
  background-color: rgba(0, 255, 136, 0.2) !important;
  box-shadow: 0 8px 20px rgba(0, 255, 136, 0.2);
}

/* ============================================
   FOOTER LINK EFFECTS
   ============================================ */
.footer-link {
  transition: all var(--fd-transition-fast);
  display: inline-block;
}

.footer-link:hover {
  color: var(--fd-primary) !important;
  transform: translateX(4px);
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-top {
  transition: all var(--fd-transition-fast);
}

.scroll-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 255, 136, 0.3);
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--fd-transition-slow), transform var(--fd-transition-slow);
}

.reveal-fade-in {
  opacity: 0;
  transition: opacity var(--fd-transition-slow);
}

.reveal-zoom {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity var(--fd-transition-slow), transform var(--fd-transition-slow);
}

.revealed {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

/* ============================================
   GLOW FOLLOW MOUSE
   ============================================ */
.glow-follow {
  position: relative;
  overflow: hidden;
}

.glow-cursor {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0,255,136,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

/* ============================================
   PARALLAX
   ============================================ */
.parallax-subtle {
  will-change: transform;
}

/* ============================================
   TOOLTIP
   ============================================ */
.tooltip-hover {
  position: relative;
}

.tooltip-hover::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  padding: 8px 16px;
  background: var(--fd-bg-card);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--fd-transition-fast);
  pointer-events: none;
  z-index: 100;
}

.tooltip-hover:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-8px);
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
