/* Animações e efeitos para tornar o site mais fluido */

/* Animação de entrada para elementos */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Animação de entrada da esquerda */
.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.active {
  opacity: 1;
  transform: translateX(0);
}

/* Animação de entrada da direita */
.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* Animação de zoom */
.zoom-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.zoom-in.active {
  opacity: 1;
  transform: scale(1);
}

/* Efeito de flutuação contínua */
.floating {
  animation: floating 4s ease-in-out infinite;
}

.floating-slow {
  animation: floating 6s ease-in-out infinite;
}

.floating-fast {
  animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Efeito de pulso */
.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Efeito de brilho */
.shine {
  position: relative;
  overflow: hidden;
}

.shine::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  animation: shine 6s infinite;
}

@keyframes shine {
  0% {
    transform: rotate(30deg) translateX(-100%);
  }
  20%,
  100% {
    transform: rotate(30deg) translateX(100%);
  }
}

/* Efeito de ondulação para botões */
.ripple {
  position: relative;
  overflow: hidden;
}

.ripple::after {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.3) 10%, transparent 10.01%);
  background-repeat: no-repeat;
  background-position: 50%;
  transform: scale(10, 10);
  opacity: 0;
  transition: transform 0.5s, opacity 1s;
}

.ripple:active::after {
  transform: scale(0, 0);
  opacity: 0.3;
  transition: 0s;
}

/* Efeito 3D para botões */
.btn-3d {
  transform-style: preserve-3d;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn-3d:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 14px rgba(0, 0, 0, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

.btn-3d:active {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Animação de rotação */
.rotate {
  animation: rotate 10s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Efeito de hover para cards */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.dark-mode .hover-lift:hover {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Efeito de fundo animado */
.animated-bg {
  position: relative;
  overflow: hidden;
}

.animated-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(29, 185, 84, 0.1) 25%,
    transparent 25%,
    transparent 50%,
    rgba(29, 185, 84, 0.1) 50%,
    rgba(29, 185, 84, 0.1) 75%,
    transparent 75%,
    transparent
  );
  background-size: 100px 100px;
  animation: gradientBg 15s ease infinite;
  opacity: 0.3;
}

@keyframes gradientBg {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Efeito de texto animado */
.text-gradient {
  background: linear-gradient(90deg, var(--primary), #4caf50, var(--primary));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textGradient 5s linear infinite;
}

@keyframes textGradient {
  to {
    background-position: 200% center;
  }
}

/* Efeito de borda animada */
.border-glow {
  position: relative;
}

.border-glow::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border: 2px solid var(--primary);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.border-glow:hover::after {
  opacity: 1;
}

/* Efeito de partículas para o fundo do hero */
.particles-bg {
  position: relative;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  pointer-events: none;
}

/* Efeito de escala para ícones */
.scale-on-hover {
  transition: transform 0.3s ease;
}

.scale-on-hover:hover {
  transform: scale(1.2);
}

/* Efeito de destaque para preços */
.highlight-price {
  position: relative;
  display: inline-block;
}

.highlight-price::before {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.highlight-price:hover::before {
  width: 100%;
}

/* Efeito de rotação para ícones */
.rotate-on-hover {
  transition: transform 0.3s ease;
}

.rotate-on-hover:hover {
  transform: rotate(15deg);
}

/* Efeito de sombra para texto */
.text-shadow {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.dark-mode .text-shadow {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

/* Efeito de transição para imagens */
.img-transition {
  transition: filter 0.3s ease, transform 0.3s ease;
}

.img-transition:hover {
  filter: brightness(1.1);
  transform: scale(1.05);
}

/* Efeito de destaque para links */
.link-highlight {
  position: relative;
  display: inline-block;
}

.link-highlight::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

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

/* Efeito de escala para cards */
.card-scale {
  transition: transform 0.3s ease;
}

.card-scale:hover {
  transform: scale(1.03);
}

/* Efeito de destaque para botões */
.btn-highlight {
  position: relative;
  overflow: hidden;
}

.btn-highlight::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.7s ease;
}

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

/* Efeito de destaque para seções */
.section-highlight {
  transition: background-color 0.3s ease;
}

.section-highlight:hover {
  background-color: rgba(29, 185, 84, 0.05);
}

.dark-mode .section-highlight:hover {
  background-color: rgba(29, 185, 84, 0.1);
}

/* Efeito de transição para o menu */
.menu-transition {
  transition: color 0.3s ease, transform 0.3s ease;
}

.menu-transition:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

/* Efeito de destaque para ícones */
.icon-highlight {
  transition: color 0.3s ease, transform 0.3s ease;
}

.icon-highlight:hover {
  color: var(--primary);
  transform: scale(1.2);
}

/* Efeito de transição para o footer */
.footer-transition {
  transition: transform 0.3s ease;
}

.footer-transition:hover {
  transform: translateY(-3px);
}

/* Efeito de destaque para o logo */
.logo-highlight {
  transition: filter 0.3s ease, transform 0.3s ease;
}

.logo-highlight:hover {
  filter: drop-shadow(0 0 5px rgba(29, 185, 84, 0.5));
  transform: scale(1.05);
}

/* Efeito de transição para o tema */
.theme-transition {
  transition: background-color 0.5s ease, color 0.5s ease;
}

/* Efeito de destaque para o preço */
.price-highlight {
  transition: color 0.3s ease, transform 0.3s ease;
}

.price-highlight:hover {
  color: var(--primary);
  transform: scale(1.1);
}

/* Efeito de transição para o slider */
.slider-transition {
  transition: transform 0.5s ease, opacity 0.5s ease;
}

/* Efeito de destaque para o slider */
.slider-highlight {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.slider-highlight:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.dark-mode .slider-highlight:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Efeito de transição para o mobile menu */
.mobile-menu-transition {
  transition: height 0.3s ease, opacity 0.3s ease;
}

/* Efeito de destaque para o mobile menu */
.mobile-menu-highlight {
  transition: background-color 0.3s ease;
}

.mobile-menu-highlight:hover {
  background-color: rgba(29, 185, 84, 0.1);
}

.dark-mode .mobile-menu-highlight:hover {
  background-color: rgba(29, 185, 84, 0.2);
}
