/* Correções para bugs gráficos e melhorias visuais */

/* Correção para contadores */
.counter {
  display: inline-block;
  font-weight: 700;
  font-size: 3rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
  opacity: 1;
}

/* Correção para animações */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

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

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

/* Correção para glassmorphism */
.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
  border-radius: 15px;
  padding: 25px;
  transition: all 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(31, 38, 135, 0.2);
}

/* Correção para gradientes */
.gradient-text {
  background: linear-gradient(90deg, #4776E6 0%, #8E54E9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gradient-btn {
  background: linear-gradient(90deg, #4776E6 0%, #8E54E9 100%);
  border: none;
  color: white;
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: all 0.3s ease;
}

.gradient-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Correção para cards rotativos */
.rotate-card {
  perspective: 1000px;
  height: 300px;
  margin-bottom: 30px;
}

.rotate-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.rotate-card:hover .rotate-card-inner {
  transform: rotateY(180deg);
}

.rotate-card-front, .rotate-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 15px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.rotate-card-front {
  background: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.rotate-card-back {
  background: linear-gradient(135deg, #4776E6 0%, #8E54E9 100%);
  color: white;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Correção para acordeão FAQ */
.faq-item {
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-question {
  padding: 20px;
  background: white;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--text-color);
}

.faq-icon {
  transition: all 0.3s ease;
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s ease;
  background: #f9f9f9;
}

.faq-item.active .faq-answer {
  padding: 20px;
  max-height: 1000px;
}

.faq-item.active .faq-icon i {
  transform: rotate(180deg);
}

/* Correção para formulário multi-etapas */
.form-step {
  display: none;
  animation: fadeIn 0.5s ease forwards;
}

.form-step.active {
  display: block;
}

.progress-bar {
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.progress-fill {
  position: absolute;
  height: 100%;
  background: linear-gradient(90deg, #4776E6 0%, #8E54E9 100%);
  border-radius: 3px;
  transition: width 0.3s ease;
  width: 0%;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
}

.progress-step {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #666;
  transition: all 0.3s ease;
}

.progress-step.active {
  background: linear-gradient(90deg, #4776E6 0%, #8E54E9 100%);
  color: white;
}

/* Correção para animações de partículas */
.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

/* Correção para efeitos de hover */
.shine-effect {
  position: relative;
  overflow: hidden;
}

.shine-effect::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 3s infinite linear;
  pointer-events: none;
}

.pulse-animation {
  animation: pulse 2s infinite;
}

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

/* Correção para responsividade */
@media (max-width: 768px) {
  .rotate-card {
    height: 250px;
  }
  
  .progress-step {
    width: 25px;
    height: 25px;
    font-size: 0.8rem;
  }
  
  .counter {
    font-size: 2rem;
  }
}

/* Correção para compatibilidade entre navegadores */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
}

@supports (backdrop-filter: blur(10px)) {
  .glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
  }
}

/* Correção para animações JavaScript */
.reveal-section {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal-section.active {
  opacity: 1;
  transform: translateY(0);
}

/* Correção para wave divider */
.wave-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 70px;
}

.wave-divider .shape-fill {
  fill: #FFFFFF;
}

/* Correção para highlight effect */
.highlight-effect {
  position: relative;
  display: inline-block;
  padding: 0 5px;
  color: var(--primary-color);
  font-weight: 600;
}

.highlight-effect::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background-color: rgba(71, 118, 230, 0.2);
  z-index: -1;
  border-radius: 3px;
}
