/* Enhanced Hero Section Styles - Scoped to avoid conflicts */

.main-first-screen {
  position: relative;
  padding: 0 0 25px; /* Remove top padding completely for seamless header integration */
  background: linear-gradient(
    135deg,
    #f7f8fa 0%,
    #f5f6f8 50%,
    #f3f4f6 100%
  ) !important;
  overflow: hidden;
  padding-top: 70px; /* Desktop: matching padding */
}

/* Force override any conflicting background styles */
section.main-first-screen {
  background: linear-gradient(
    135deg,
    #f7f8fa 0%,
    #f5f6f8 50%,
    #f3f4f6 100%
  ) !important;
}

/* Override any blue background that might be applied */
.main-first-screen.main-solution {
  background: linear-gradient(
    135deg,
    #f7f8fa 0%,
    #f5f6f8 50%,
    #f3f4f6 100%
  ) !important;
}

/* Additional specificity overrides */
body .main-first-screen {
  background: linear-gradient(
    135deg,
    #f7f8fa 0%,
    #f5f6f8 50%,
    #f3f4f6 100%
  ) !important;
}

main .main-first-screen {
  background: linear-gradient(
    135deg,
    #f7f8fa 0%,
    #f5f6f8 50%,
    #f3f4f6 100%
  ) !important;
}

/* Static background elements for hero - no animation */
.main-first-screen::before {
  content: "";
  position: absolute;
  top: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(61, 97, 223, 0.12) 0%,
    rgba(61, 97, 223, 0.06) 40%,
    transparent 70%
  );
  border-radius: 50%;
  filter: blur(0.5px);
  pointer-events: none;
  z-index: 0;
}

.main-first-screen::after {
  content: "";
  position: absolute;
  bottom: -150px;
  right: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(33, 221, 144, 0.1) 0%,
    rgba(33, 221, 144, 0.05) 40%,
    transparent 70%
  );
  border-radius: 50%;
  filter: blur(1px);
  pointer-events: none;
  z-index: 0;
}

/* Additional static circles for hero */
.main-first-screen .hero-large-circle-1 {
  position: absolute;
  top: 20%;
  right: 10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(243, 185, 0, 0.08) 0%,
    rgba(243, 185, 0, 0.04) 50%,
    transparent 80%
  );
  border-radius: 50%;
  filter: blur(1px);
  pointer-events: none;
  z-index: 0;
}

.main-first-screen .hero-large-circle-2 {
  position: absolute;
  bottom: 20%;
  left: 10%;
  width: 250px;
  height: 250px;
  background: radial-gradient(
    circle,
    rgba(232, 28, 114, 0.06) 0%,
    rgba(232, 28, 114, 0.03) 50%,
    transparent 80%
  );
  border-radius: 50%;
  filter: blur(0.5px);
  pointer-events: none;
  z-index: 0;
}

.main-first-screen .hero-medium-circle-1 {
  position: absolute;
  top: 10%;
  left: 30%;
  width: 150px;
  height: 150px;
  background: radial-gradient(
    circle,
    rgba(61, 97, 223, 0.1) 0%,
    rgba(61, 97, 223, 0.05) 60%,
    transparent 90%
  );
  border-radius: 50%;
  filter: blur(0.3px);
  pointer-events: none;
  z-index: 0;
}

.main-first-screen .hero-medium-circle-2 {
  position: absolute;
  bottom: 15%;
  right: 25%;
  width: 180px;
  height: 180px;
  background: radial-gradient(
    circle,
    rgba(33, 221, 144, 0.08) 0%,
    rgba(33, 221, 144, 0.04) 60%,
    transparent 90%
  );
  border-radius: 50%;
  filter: blur(0.5px);
  pointer-events: none;
  z-index: 0;
}

/* Remove ALL hover effects from Lottie animation and reset positioning */
.main-first-screen #lottie-main-1 {
  filter: none !important;
  transition: none !important;
  transform: none !important;
  position: relative !important;
  right: auto !important;
  top: auto !important;
  left: auto !important;
  bottom: auto !important;
  margin-top: 0 !important;
  align-self: center !important;
}

/* Ensure the right column is properly aligned */
.main-first-screen .col-right {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.main-first-screen #lottie-main-1:hover {
  transform: none !important;
  filter: none !important;
  animation: none !important;
  scale: none !important;
  opacity: 1 !important;
}

/* Ensure no parent hover effects affect the Lottie */
.main-first-screen .col-right:hover #lottie-main-1 {
  transform: none !important;
  filter: none !important;
  animation: none !important;
}

/* Remove any potential hover effects from the container */
.main-first-screen .col-right {
  transition: none !important;
}

.main-first-screen .col-right:hover {
  transform: none !important;
  filter: none !important;
}

/* Improve hero description - make it clearer and more benefit-focused */
.main-first-screen .hero-description {
  font-size: 18px;
  line-height: 1.5;
  color: #4b5563;
  margin-bottom: 16px;
  max-width: 90%;
}

/* Fix CTA container to be less overwhelming */
.main-first-screen .cta-container {
  margin-top: 20px;
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(-45deg, #3d61df, #21dd90, #3d61df);
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
  box-shadow: 0 8px 25px rgba(61, 97, 223, 0.15);
  transition: all 0.3s ease;
}

.main-first-screen .cta-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(61, 97, 223, 0.2);
}

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

.main-first-screen .cta-content {
  padding: 12px;
  text-align: center;
  color: white;
}

.main-first-screen .trust-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 8px;
  opacity: 0.9;
}

.main-first-screen .trust-indicator .count {
  font-weight: 700;
  font-size: 16px;
}

.main-first-screen .check-icon {
  color: #21dd90;
  filter: brightness(1.2);
}

.main-first-screen .cta-text {
  margin: 8px 0 16px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

/* Scoped button styles to avoid affecting other buttons - softer design */
.main-first-screen .btn-green {
  background: rgba(255, 255, 255, 0.9);
  color: #2d3748;
  padding: 16px 48px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
  line-height: 1;
  backdrop-filter: blur(10px);
}

.main-first-screen .btn-green:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.main-first-screen .btn-green::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.6s ease;
}

.main-first-screen .btn-green:hover::before {
  left: 100%;
}

/* Tablet Styles - between desktop and mobile */
@media (max-width: 1279px) and (min-width: 807px) {
  .main-first-screen {
    margin-top: -240px; /* Tablet: same large negative margin as mobile */
    padding-top: 240px; /* Tablet: matching padding to compensate */
    padding-bottom: 20px;
  }
}

/* Mobile Styles */
@media (max-width: 806px) {
  .main-first-screen {
    margin-top: -240px; /* Mobile: larger negative margin to eliminate white space */
    padding-top: 240px; /* Mobile: matching padding to compensate */
    padding-bottom: 15px;
  }

  /* Adjust circles for mobile to prevent cutoff */
  .main-first-screen::before {
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
  }

  .main-first-screen::after {
    bottom: -75px;
    right: -75px;
    width: 250px;
    height: 250px;
  }

  .main-first-screen .hero-large-circle-1 {
    top: 15%;
    right: -30px;
    width: 120px;
    height: 120px;
  }

  .main-first-screen .hero-large-circle-2 {
    bottom: 15%;
    left: -30px;
    width: 100px;
    height: 100px;
  }

  .main-first-screen .hero-medium-circle-1 {
    top: 8%;
    left: 25%;
    width: 60px;
    height: 60px;
  }

  .main-first-screen .hero-medium-circle-2 {
    bottom: 8%;
    right: 20%;
    width: 80px;
    height: 80px;
  }

  .main-first-screen .hero-description {
    font-size: 14px;
    max-width: 100%;
    margin-bottom: 20px;
  }

  .main-first-screen .cta-container {
    margin-top: 16px;
    padding: 12px;
  }

  .main-first-screen .cta-content {
    padding: 8px;
  }

  .main-first-screen .trust-indicator {
    font-size: 11px;
    flex-wrap: wrap;
  }

  .main-first-screen .cta-text {
    font-size: 18px;
    margin: 8px 0;
  }

  .main-first-screen .btn-green {
    padding: 12px 32px;
    font-size: 14px;
  }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
  .main-first-screen {
    margin-top: -240px; /* Small mobile: same large negative margin */
    padding-top: 240px; /* Small mobile: matching padding to compensate */
    padding-bottom: 12px;
  }

  .main-first-screen .cta-container {
    margin-top: 12px;
    padding: 8px;
  }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  .main-first-screen .cta-container {
    animation: none;
  }

  .main-first-screen .btn-green::before {
    transition: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .main-first-screen::before {
    display: none;
  }

  .main-first-screen .hero-description {
    color: #1a202c;
  }
}
