/* ==================== LOTTIE CTA CARD - DUAL SLIDER (ORIGINAL STYLE) ==================== */
.lottie-cta-section {
  margin: 80px 0 60px;
  position: relative;
  z-index: 10;
}

.lottie-cta-card {
  background: transparent;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(30, 60, 114, 0.35);
  padding: 0;
  position: relative;
  overflow: visible; /* Allow Lottie to overflow */
  transition: all 0.4s ease;
  height: 180px; /* Reduced from 280px */
}

.lottie-cta-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 70px rgba(30, 60, 114, 0.45);
}

/* Slide Container */
.lottie-cta-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s ease, visibility 1.2s ease; /* Slower transition */
  z-index: 0;
}

.lottie-cta-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

/* Inner wrapper to contain background and patterns */
.lottie-cta-card-inner {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #1e88e5 100%);
  border-radius: 24px;
  padding: 2.5rem;
  position: relative;
  overflow: visible; /* Changed from hidden to visible for Lottie overflow */
  width: 100%;
  height: 100%;
}

/* Data Pattern Background */
.lottie-cta-card-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 24px; /* Add border radius to match container */
  background-image: 
        /* Binary Code Pattern */ url('data:image/svg+xml,<svg width="200" height="200" xmlns="http://www.w3.org/2000/svg"><text x="10" y="20" font-family="monospace" font-size="12" fill="rgba(255,255,255,0.08)">01010101</text><text x="10" y="40" font-family="monospace" font-size="12" fill="rgba(255,255,255,0.08)">11001100</text><text x="10" y="60" font-family="monospace" font-size="12" fill="rgba(255,255,255,0.08)">00110011</text><text x="10" y="80" font-family="monospace" font-size="12" fill="rgba(255,255,255,0.08)">10101010</text><text x="10" y="100" font-family="monospace" font-size="12" fill="rgba(255,255,255,0.08)">11110000</text><text x="10" y="120" font-family="monospace" font-size="12" fill="rgba(255,255,255,0.08)">00001111</text><text x="10" y="140" font-family="monospace" font-size="12" fill="rgba(255,255,255,0.08)">10011001</text><text x="10" y="160" font-family="monospace" font-size="12" fill="rgba(255,255,255,0.08)">01100110</text></svg>'),
    /* Grid Pattern */
      linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 200px 200px, 50px 50px, 50px 50px;
  background-position: 0 0, 0 0, 0 0;
  opacity: 0.6;
  pointer-events: none;
  z-index: 1;
}

/* Data Visualization Decorative Elements */
.lottie-cta-card-inner::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(
      circle at center,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 70%
    ),
    radial-gradient(
      circle at 30% 40%,
      rgba(100, 181, 246, 0.2) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 60%,
      rgba(66, 165, 245, 0.15) 0%,
      transparent 50%
    );
  opacity: 0.5;
  pointer-events: none;
  z-index: 1;
  animation: float-data 8s ease-in-out infinite;
}

@keyframes float-data {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-20px, -20px) scale(1.05);
  }
}

/* Chart/Graph Decorative Lines */
.lottie-cta-card-inner .data-decoration {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 300px;
  height: 150px;
  opacity: 0.15;
  z-index: 1;
  pointer-events: none;
}

.lottie-cta-card-inner .data-decoration svg {
  width: 100%;
  height: 100%;
}

/* Lottie Animation Container - Overlap & Overflow */
.lottie-animation-wrapper {
  position: absolute;
  left: -100px; /* More negative to overflow */
  top: 50%;
  transform: translateY(-50%);
  width: 250px; /* Larger size */
  height: 250px;
  z-index: 5;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
  pointer-events: none;
}

.lottie-animation-wrapper lottie-player {
  width: 100%;
  height: 100%;
}

/* Content Wrapper */
.lottie-cta-content {
  padding-left: 180px; /* More padding for Lottie overlap */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  z-index: 3;
  height: 100%;
}

.lottie-cta-text {
  flex: 1;
}

.lottie-cta-text h3 {
  color: white;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
}

.lottie-cta-text p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1rem;
  margin-bottom: 0;
  font-weight: 500;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.15);
}

/* CTA Button */
.lottie-cta-button .btn {
  background: white;
  color: #1e3c72;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 50px;
  border: none;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.lottie-cta-button .btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(30, 60, 114, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.lottie-cta-button .btn:hover::before {
  left: 100%;
}

.lottie-cta-button .btn:hover {
  background: #f8f9fa;
  color: #1e88e5;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 60, 114, 0.25);
}

.lottie-cta-button .btn i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.lottie-cta-button .btn:hover i {
  transform: translateX(5px);
}

/* Data Dots Pattern Overlay */
.lottie-cta-card-inner .data-dots {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 150px;
  height: 150px;
  opacity: 0.1;
  z-index: 1;
  pointer-events: none;
}

/* Animated Border Effect */
.lottie-cta-card-border {
  position: absolute;
  top: -2px;
  right: -2px;
  bottom: -2px;
  left: -2px;
  border-radius: 24px;
  background: linear-gradient(45deg, #1e88e5, #42a5f5, #64b5f6, #1e88e5);
  background-size: 300% 300%;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lottie-cta-card:hover .lottie-cta-card-border {
  opacity: 0.5;
  animation: gradient-border 3s ease infinite;
}

@keyframes gradient-border {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Slide Indicators - Dot Style, Left Aligned Below Text */
.lottie-cta-indicators {
  position: absolute;
  bottom: 20px;
  left: 180px; /* Align with content (match padding-left) */
  display: flex;
  gap: 10px;
  z-index: 10;
}

.lottie-cta-indicators .indicator {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  border-radius: 50%; /* Make it circular dot */
  cursor: pointer;
  transition: all 0.4s ease;
  padding: 0;
}

.lottie-cta-indicators .indicator.active {
  background: white;
  width: 10px; /* Keep same width */
  transform: scale(1.3); /* Scale up instead */
}

.lottie-cta-indicators .indicator:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: scale(1.15);
}

/* Content fade animation - slower */
@keyframes fadeInContent {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lottie-cta-slide.active .lottie-cta-content {
  animation: fadeInContent 1s ease; /* Slower animation */
}

/* ==================== DARK MODE ==================== */
[data-bs-theme="dark"] .lottie-cta-card-inner {
  background: linear-gradient(135deg, #0d1b2a 0%, #1b263b 50%, #1e3a5f 100%);
}

[data-bs-theme="dark"] .lottie-cta-card {
  box-shadow: 0 20px 60px rgba(13, 27, 42, 0.5);
}

[data-bs-theme="dark"] .lottie-cta-card:hover {
  box-shadow: 0 25px 70px rgba(13, 27, 42, 0.6);
}

[data-bs-theme="dark"] .lottie-cta-card-inner::before {
  opacity: 0.4;
}

[data-bs-theme="dark"] .lottie-cta-button .btn {
  background: #e3f2fd;
  color: #0d1b2a;
}

[data-bs-theme="dark"] .lottie-cta-button .btn:hover {
  background: white;
  color: #1e88e5;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 992px) {
  .lottie-cta-card {
    height: 160px; /* Reduced */
  }

  .lottie-animation-wrapper {
    left: -80px;
    width: 200px;
    height: 200px;
  }

  .lottie-cta-content {
    padding-left: 140px;
  }

  /* Indicators adjust position */
  .lottie-cta-indicators {
    left: 140px;
  }

  .lottie-cta-text h3 {
    font-size: 1.5rem;
  }

  .lottie-cta-text p {
    font-size: 0.95rem;
  }

  .lottie-cta-card-inner::after {
    width: 400px;
    height: 400px;
  }
}

@media (max-width: 768px) {
  .lottie-cta-section {
    margin: 60px 0 40px;
  }

  .lottie-cta-card {
    height: 100px; /* Much more compact like desktop */
  }

  .lottie-cta-card-inner {
    padding: 1rem 0.75rem;
    overflow: hidden; /* Prevent content overflow */
  }

  .lottie-animation-wrapper {
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 100px;
    height: 100px;
  }

  .lottie-cta-content {
    padding-left: 70px;
    padding-right: 0.75rem;
    flex-direction: column; /* Stack vertically to prevent overflow */
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    gap: 0; /* Removed gap completely */
    height: 100%;
  }

  .lottie-cta-text {
    width: 100%;
    margin-bottom: 0; /* Remove extra margin */
  }

  .lottie-cta-text h3 {
    font-size: 0.85rem;
    margin-bottom: 0; /* Removed margin - benar-benar rapat */
    line-height: 1.2;
  }

  .lottie-cta-text p {
    display: none; /* Hide description on mobile */
  }

  .lottie-cta-button {
    width: 100%;
    max-width: calc(100% - 70px); /* Ensure button doesn't overflow */
    margin-top: 0; /* Remove extra margin */
  }

  .lottie-cta-button .btn {
    padding: 6px 12px;
    font-size: 0.7rem;
    white-space: nowrap;
    width: 100%;
    max-width: 140px; /* Limit button width */
  }

  .lottie-cta-card-inner::after {
    width: 250px;
    height: 250px;
  }

  /* Indicators stay left aligned on mobile */
  .lottie-cta-indicators {
    left: 70px;
    bottom: 8px;
  }

  .lottie-cta-indicators .indicator {
    width: 6px;
    height: 6px;
  }

  .lottie-cta-indicators .indicator.active {
    width: 6px;
  }
}

@media (max-width: 576px) {
  .lottie-cta-card {
    min-height: 180px;
  }

  .lottie-animation-wrapper {
    width: 120px;
    height: 120px;
    margin-bottom: 0.75rem;
  }

  .lottie-cta-text h3 {
    font-size: 1.2rem;
  }

  .lottie-cta-text p {
    font-size: 0.85rem;
  }

  .lottie-cta-button .btn {
    font-size: 0.9rem;
    padding: 8px 24px;
  }

  .lottie-cta-card-inner::before {
    background-size: 150px 150px, 40px 40px, 40px 40px;
  }
}
