/* Animações personalizadas para Casa da Refrigeração */

/* Cabeçalho recolhível no scroll */
.header-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease-in-out;
  transform: translateY(0);
}

.header-container.scrolled {
  transform: translateY(-100%);
  opacity: 0;
}

.header-container.compact {
  padding: 0.5rem 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Animação de flocos de neve */
.snowflakes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.snowflake {
  position: absolute;
  top: -10px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 1rem;
  animation: snowfall linear infinite;
  user-select: none;
}

@keyframes snowfall {
  0% {
    transform: translateY(-100vh) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

/* Animações de entrada suaves */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

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

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s ease-out;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.6s ease-out;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Animação de escala suave */
.scale-in {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.6s ease-out;
}

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

/* Correção da animação do botão "Conheça Nossos Serviços" */
.service-button {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  transform: translateZ(0);
}

.service-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-button::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;
}

.service-button:hover::before {
  left: 100%;
}

/* Animações para cards de serviços */
.service-card {
  transition: all 0.3s ease;
  transform: translateZ(0);
}

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

/* Animação de pulso suave para elementos importantes */
.pulse-soft {
  animation: pulse-soft 2s ease-in-out infinite;
}

@keyframes pulse-soft {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.02);
    opacity: 0.9;
  }
}

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

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

/* Animação de gradiente para backgrounds */
.gradient-animation {
  background: linear-gradient(-45deg, #4f46e5, #06b6d4, #10b981, #f59e0b);
  background-size: 400% 400%;
  animation: gradient-shift 15s ease infinite;
}

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

/* Animação de digitação para textos */
.typewriter {
  overflow: hidden;
  border-right: 2px solid;
  white-space: nowrap;
  animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  from, to {
    border-color: transparent;
  }
  50% {
    border-color: currentColor;
  }
}

/* Animação de ondas para seções */
.wave-animation {
  position: relative;
  overflow: hidden;
}

.wave-animation::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: wave-move 3s ease-in-out infinite;
}

@keyframes wave-move {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Animação de bounce suave */
.bounce-soft {
  animation: bounce-soft 2s ease-in-out infinite;
}

@keyframes bounce-soft {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-5px);
  }
  60% {
    transform: translateY(-3px);
  }
}

/* Responsividade para dispositivos móveis */
@media (max-width: 768px) {
  .snowflake {
    font-size: 0.8rem;
  }
  
  .fade-in-up,
  .fade-in-left,
  .fade-in-right {
    transform: translateY(20px);
  }
  
  .fade-in-left {
    transform: translateX(-20px);
  }
  
  .fade-in-right {
    transform: translateX(20px);
  }
}

/* Animação de loading suave */
.loading-dots {
  display: inline-block;
}

.loading-dots::after {
  content: '';
  animation: loading-dots 1.5s ease-in-out infinite;
}

@keyframes loading-dots {
  0%, 20% {
    content: '';
  }
  40% {
    content: '.';
  }
  60% {
    content: '..';
  }
  80%, 100% {
    content: '...';
  }
}



/* Estilos personalizados para os botões principais */
.btn-orcamento {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: white !important;
  border: none !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3) !important;
}

.btn-orcamento:hover {
  background: linear-gradient(135deg, #059669, #047857) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4) !important;
}

.btn-servicos {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: white !important;
  border: none !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3) !important;
}

.btn-servicos:hover {
  background: linear-gradient(135deg, #d97706, #b45309) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4) !important;
}

/* Efeito de brilho para os botões principais */
.btn-orcamento::before,
.btn-servicos::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.btn-orcamento:hover::before,
.btn-servicos:hover::before {
  left: 100%;
}

/* Animação de pulso para chamar atenção */
.btn-orcamento.pulse-attention {
  animation: pulse-green 2s ease-in-out infinite;
}

.btn-servicos.pulse-attention {
  animation: pulse-yellow 2s ease-in-out infinite;
}

@keyframes pulse-green {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  }
  50% {
    box-shadow: 0 4px 25px rgba(16, 185, 129, 0.6);
  }
}

@keyframes pulse-yellow {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
  }
  50% {
    box-shadow: 0 4px 25px rgba(245, 158, 11, 0.6);
  }
}

/* Responsividade para os botões */
@media (max-width: 768px) {
  .btn-orcamento,
  .btn-servicos {
    padding: 12px 24px !important;
    font-size: 14px !important;
  }
}

