
.tax-transformation {
  background: linear-gradient(135deg, #0f172a, #1a253f);
  border-radius: 24px;
  padding: 3rem;
  margin: 4rem auto;
  max-width: 900px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.transformation-header {
  text-align: center;
  margin-bottom: 3rem;
}

.transformation-header h3 {
  color: #ffffff;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, #e0e0e0, #a0aec0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.transformation-header p {
  color: #94a3b8;
  font-size: 1.1rem;
}


.transformation-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}


.stage {
  width: 45%;
  padding: 2.5rem;
  border-radius: 18px;
  height: 300px;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.stage-content {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.stage-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.stage h4 {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.pain-points li,
.benefits li {
  color: #e2e8f0;
  margin-bottom: 1rem;
  position: relative;
  padding-left: 2rem;
  font-size: 1rem;
}

.before-stage {
  background: linear-gradient(145deg, #1e0b12, #2e0f19);
  box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.3);
  border: 2px solid rgba(239, 68, 68, 0.3);
  animation: red-glow-pulse 2s infinite ease-in-out;
}

@keyframes red-glow-pulse {
  0%,
  100% {
    box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.3),
      0 0 20px rgba(239, 68, 68, 0.4);
    border-color: rgba(239, 68, 68, 0.4);
  }
  50% {
    box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.5),
      0 0 30px rgba(239, 68, 68, 0.6);
    border-color: rgba(239, 68, 68, 0.7);
  }
}

.tax-transformation.active .before-stage {
  opacity: 0.6;
  transform: translateX(-20%);
  filter: blur(1px);
  animation: red-glow-pulse 2s infinite ease-in-out;
}

.pain-points li::before {
  content: "✖";
  position: absolute;
  left: 0;
  color: #f87171;
  font-weight: bold;
}

/* After Stage */
.after-stage {
  background: linear-gradient(145deg, #0b1220, #101b32);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.3);
  border: 2px solid rgba(59, 130, 246, 0.3);
  transition: all 0.8s ease;
}


.after-stage {
  opacity: 1; 
  visibility: visible;
  filter: blur(8px); 
  transition: 
    filter 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.8s ease;
}


.tax-transformation.active .after-stage {
  filter: blur(0); /* Remove blur */
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.6); 
}

.benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #60a5fa;
  font-weight: bold;
}

/* Transform Button Container */
.transform-button-container {
  flex: 0 0 180px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  padding: 0 10px;
}

/* Transform Button */
.transform-btn {
  background: linear-gradient(135deg, #00f2fe 0%, #0052ff 100%);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 82, 255, 0.4);
  width: 100%;
  height: 50px;
  padding: 0 25px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-text-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: center;
  position: relative;
}

.btn-text {
  display: inline-block;
  text-align: center;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.btn-arrow {
  transition: all 0.3s ease;
  flex-shrink: 0;
  width: 16px;
  text-align: center;
  display: inline-block;
}

/* Hover States */
.transform-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 82, 255, 0.6);
}

/* Active States */
.tax-transformation.active .before-stage {
  opacity: 0.3;
  transform: translateX(-20%);
  filter: blur(2px);
}

.tax-transformation.active .after-stage {
  animation: glow-pulse 1.5s infinite ease-in-out,
    border-glow 2s infinite alternate;
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.6),
    inset 0 0 0 1px rgba(59, 130, 246, 0.5);
  z-index: 2;
}

@keyframes glow-pulse {
  0%,
  100% {
    box-shadow: 0 0 25px rgba(16, 196, 19, 0.6),
      inset 0 0 0 1px rgba(22, 173, 40, 0.5);
  }
  50% {
    box-shadow: 0 0 45px rgba(13, 219, 64, 0.9),
      inset 0 0 0 1px rgba(7, 214, 69, 0.7);
  }
}

@keyframes border-glow {
  0% {
    border-color: rgba(59, 130, 246, 0.3);
  }
  100% {
    border-color: rgba(59, 130, 246, 0.8);
  }
}

.tax-transformation.active .btn-arrow {
  transform: rotate(180deg);
  order: -1;
  margin-right: 8px;
  margin-left: -4px;
}

/* Click Effect */
.transform-btn.btn-clicked {
  transform: scale(0.98) translateY(1px);
}

/* Attention Effect */
.attention-glow {
  animation: attention-pulse 0.8s cubic-bezier(0.4, 0, 0.6, 1) 2;
}

@keyframes attention-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(59, 130, 246, 0);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.7);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .tax-transformation {
    padding: 2rem 1.5rem;
  }

  .transformation-container {
    flex-direction: column;
  }

  .stage {
    width: 100%;
    margin-bottom: 2rem;
    height: auto;
    padding: 2rem;
  }

  .transform-button-container {
    width: 100%;
    margin: 1.5rem 0;
    flex: 0 0 auto;
  }

  .transform-btn {
    max-width: 220px;
  }

  .tax-transformation.active .before-stage {
    transform: translateY(20%);
  }
}

/* Particle Effects */
.particle {
  position: fixed;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 100;
  transform: translate(-50%, -50%);
  opacity: 1;
  mix-blend-mode: screen;
}

/* Tax Journey Section */
.tax-journey {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.journey-header h3 {
  font-size: 2.2rem;
  color: #e6e6e6;
  margin-bottom: 0.5rem;
}

.journey-header p {
  color: #b8b8b8;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.journey-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  padding: 3rem 0;
}

.journey-track {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 0 5%;
}

.journey-progress {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 4px;
  background: #2d3748;
  transform: translateY(-50%);
  z-index: 1;
  border-radius: 2px;
}

.journey-progress::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: #4fd1c5;
  border-radius: 2px;
  transition: width 1.5s ease;
}

.journey-step {
  position: relative;
  z-index: 2;
  width: 22%;
}

.step-card {
  background: #2d3748;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.4s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.step-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #4fd1c5;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.step-card:hover::before {
  transform: scaleX(1);
}

.step-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #4fd1c5;
  transition: transform 0.3s ease;
}

.step-card:hover .step-icon {
  transform: scale(1.1);
}

.step-card h4 {
  color: #f7fafc;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.step-card p {
  color: #cbd5e0;
  font-size: 0.9rem;
  margin-bottom: 0;
}

.step-hover {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
  color: #a0aec0;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.step-card:hover .step-hover {
  max-height: 100px;
  opacity: 1;
}

.journey-cta {
  margin-top: 3rem;
  padding: 1rem 2rem;
  background: #4fd1c5;
  color: #1a202c;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.journey-cta:hover {
  background: #38b2ac;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(79, 209, 197, 0.3);
}

.cta-arrow {
  width: 20px;
  height: 20px;
  margin-left: 10px;
  position: relative;
}

.cta-arrow::before,
.cta-arrow::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 2px;
  background: #1a202c;
  top: 50%;
  transition: all 0.3s ease;
}

.cta-arrow::before {
  left: 0;
  transform: rotate(45deg) translateY(-50%);
}

.cta-arrow::after {
  right: 0;
  transform: rotate(-45deg) translateY(-50%);
}

.journey-cta:hover .cta-arrow::before {
  left: -3px;
}

.journey-cta:hover .cta-arrow::after {
  right: -3px;
}

/* 3D Trust Badges */
.trust-badges {
  padding: 4rem 2rem;
  background: #1a202c;
  text-align: center;
}

.badge-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.badge-card {
  width: 280px;
  height: 180px;
  perspective: 1000px;
  cursor: pointer;
}

.badge-front,
.badge-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.6s ease;
}

.badge-front {
  background: linear-gradient(135deg, #4fd1c5 0%, #2d3748 100%);
  color: #f7fafc;
}

.badge-front i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.badge-front h4 {
  font-size: 1.3rem;
  margin: 0;
}

.badge-back {
  background: #2d3748;
  color: #f7fafc;
  transform: rotateY(180deg);
  border: 1px solid #4a5568;
}

.badge-card:hover .badge-front {
  transform: rotateY(180deg);
}

.badge-card:hover .badge-back {
  transform: rotateY(360deg);
}

/* FAQ Teaser */
.faq-teaser {
  padding: 4rem 2rem;
  background: #1a1a2e;
}

.teaser-container {
  max-width: 1200px;
  margin: 0 auto;
}

.teaser-text h3 {
  font-size: 2rem;
  color: #e6e6e6;
  text-align: center;
  margin-bottom: 0.5rem;
}

.teaser-text p {
  color: #b8b8b8;
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.teaser-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.teaser-card {
  width: 100%;
  max-width: 350px;
  background: #2d3748;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}

.teaser-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.card-content {
  padding: 1.5rem;
}

.card-content h4 {
  color: #f7fafc;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.card-content h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: #4fd1c5;
  transition: width 0.3s ease;
}

.teaser-card:hover .card-content h4::after {
  width: 80px;
}

.card-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  color: #cbd5e0;
  line-height: 1.6;
}

.teaser-card.active .card-answer {
  max-height: 200px;
  margin-top: 1rem;
}

.teaser-cta {
  display: inline-block;
  margin: 0 auto;
  color: #4fd1c5;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  padding-bottom: 3px;
}

.teaser-cta::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: #4fd1c5;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.teaser-cta:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .journey-track {
    flex-direction: column;
    align-items: center;
    margin: 0;
  }

  .journey-step {
    width: 80%;
    margin-bottom: 2rem;
  }

  .journey-progress {
    display: none;
  }

  .badge-container {
    flex-direction: column;
    align-items: center;
  }

  .teaser-cards {
    flex-direction: column;
    align-items: center;
  }
}


