/* Banner Logo Watermark */
.ul-banner-img {
  position: relative;
  overflow: visible !important;
}

.banner-logo-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: clamp(300px, 35vw, 600px);
  height: auto;
  z-index: 0;
  pointer-events: none;
  filter: brightness(1.2) contrast(1.3);
}

.banner-logo-watermark::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #cbf55f;
  mix-blend-mode: color;
  opacity: 0.85;
  pointer-events: none;
}

.banner-logo-watermark.layer-1 {
  animation: logo-grow-1 12s ease-in-out infinite;
}

.banner-logo-watermark.layer-2 {
  animation: logo-grow-2 12s ease-in-out infinite;
}

.banner-logo-watermark.layer-3 {
  animation: logo-grow-3 12s ease-in-out infinite;
}

/* Layer 1: The main logo that stays visible */
@keyframes logo-grow-1 {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
  5% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.9;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.9;
  }
}

/* Layer 2: Glow effect that grows and disappears */
@keyframes logo-grow-2 {
  0%,
  66.66%,
  100% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
  33.33% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.4;
  }
  43.33% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0.2;
  }
  53.33% {
    transform: translate(-50%, -50%) scale(1.8);
    opacity: 0;
  }
}

/* Layer 3: Another glow effect that grows and disappears */
@keyframes logo-grow-3 {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
  66.66% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.4;
  }
  76.66% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0.2;
  }
  86.66% {
    transform: translate(-50%, -50%) scale(1.8);
    opacity: 0;
  }
}

.ul-banner-img > img:first-child {
  position: relative;
  z-index: 1;
}

.ul-about {
  position: relative;
  overflow: visible;
}

.section-connector {
  position: absolute;
  left: 50%;
  bottom: -40px; /* half overlaps into next section */
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
  z-index: 5;
  pointer-events: none;
}

.section-connector .arrow {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.15));
}

.arrow-line,
.arrow-head {
  animation: arrow-float 4s ease-in-out infinite;
}

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

@media (max-width: 767.98px) {
  .section-connector {
    bottom: -28px;
    width: 56px;
    height: 56px;
  }
}

/* Floating problem buttons around the image */
.problem-image-wrap {
  position: relative;
  display: inline-block;
}

.problem-image-wrap img {
  display: block;
  max-width: 100%;
  height: auto;
}

.problem-float {
  position: absolute;
  background: #0b193e;
  color: #fff;
  border: 1px solid rgba(202, 245, 95, 0.25);
  box-shadow: 0 8px 24px rgba(11, 25, 62, 0.12);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease,
    color 0.25s ease;
  z-index: 2;
  animation: problem-float-y 4.5s ease-in-out infinite;
}

.problem-float-2 {
  position: absolute;
  background: #caf55f;
  color: #0b193e;
  border: 1px solid rgba(202, 245, 95, 0.25);
  box-shadow: 0 8px 24px rgba(11, 25, 62, 0.12);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease,
    color 0.25s ease;
  z-index: 2;
  animation: problem-float-y 4.5s ease-in-out infinite;
}

.problem-float:hover,
.problem-float:focus {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 28px rgba(11, 25, 62, 0.18);
}

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

/* positions relative to the image bounds */
.problem-image-wrap .pos-1 {
  /* top-left */
  top: 10px;
  left: -40px;
  animation-duration: 5s;
  animation-delay: 0s;
}

.problem-image-wrap .pos-2 {
  /* top-right */
  top: 20%;
  right: -50px;
  animation-duration: 4.2s;
  animation-delay: 0.25s;
}

.problem-image-wrap .pos-3 {
  /* middle-left */
  top: 45%;
  left: -108px;
  animation-duration: 5.4s;
  animation-delay: 0.5s;
}

.problem-image-wrap .pos-4 {
  /* bottom-right */
  bottom: 12%;
  right: -52px;
  animation-duration: 4.8s;
  animation-delay: 0.75s;
}

.problem-image-wrap .pos-5 {
  /* bottom-left */
  bottom: -8px;
  left: 10%;
  animation-duration: 4.6s;
  animation-delay: 1s;
}

/* responsive tweaks */
@media (max-width: 991.98px) {
  .problem-float {
    font-size: 12px;
    padding: 8px 12px;
  }
}

@media (max-width: 767.98px) {
  .problem-image-wrap {
    display: block;
    overflow: visible;
  }
  .problem-float {
    position: absolute;
    display: inline-block;
    margin: 0;
    font-size: 11px;
    padding: 6px 10px;
  }
  .problem-float-2 {
    position: absolute;
    display: inline-block;
    margin: 0;
    font-size: 11px;
    padding: 6px 10px;
  }
  /* mobile positions tuned for small screens */
  .problem-image-wrap .pos-1 {
    top: -6px;
    left: -10px;
  }
  .problem-image-wrap .pos-2 {
    top: 6%;
    right: -10px;
  }
  .problem-image-wrap .pos-3 {
    top: 42%;
    left: -12px;
  }
  .problem-image-wrap .pos-4 {
    bottom: 14%;
    right: -10px;
  }
  .problem-image-wrap .pos-5 {
    bottom: -20px;
    left: 8%;
  }

  /* Services: left align cards on mobile */
  .ul-service,
  .ul-service-feature {
    text-align: left !important;
  }
}

/* Solution slider images (mobile) */
@media (max-width: 991.98px) {
  .ul-solution-slider {
    width: 100%;
  }
  .ul-solution-slider .swiper-slide {
    display: flex;
    justify-content: center;
  }
  .ul-solution-slider .swiper-slide img {
    width: 75%;
    height: auto;
    display: block;
    border-radius: 12px;
  }
  .ul-solution-slider .swiper-pagination-bullet {
    background: #0b193e;
    opacity: 0.4;
  }
  .ul-solution-slider .swiper-pagination-bullet-active {
    background: #0b193e;
    opacity: 1;
  }
}

/* Modern differential cards */
.differentials-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}

.differential-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid rgba(11, 25, 62, 0.08);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(11, 25, 62, 0.06);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.differential-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #0b193e;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.differential-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(11, 25, 62, 0.12);
  border-color: rgba(202, 245, 95, 0.2);
}

.differential-card:hover::before {
  opacity: 1;
}

.differential-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: #0b193e;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
}

.differential-content {
  flex: 1;
}

.differential-badge {
  display: inline-block;
  background: rgba(11, 25, 62, 0.08);
  color: #0b193e;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.differential-title {
  font-size: 18px;
  font-weight: 700;
  color: #0b193e;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.differential-description {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  .differentials-cards {
    gap: 16px;
    margin-top: 20px;
  }

  .differential-card {
    padding: 20px;
    gap: 12px;
  }

  .differential-icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .differential-title {
    font-size: 16px;
  }

  .differential-description {
    font-size: 13px;
  }
}

/* Download Modal Styles */
.download-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.download-modal.active {
  display: flex;
  opacity: 1;
}

.download-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 25, 62, 0.8);
  backdrop-filter: blur(8px);
}

.download-modal-content {
  position: relative;
  background: white;
  border-radius: 24px;
  padding: 50px 40px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  z-index: 1;
}

.download-modal.active .download-modal-content {
  transform: scale(1);
}

.download-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 24px;
  color: #0b193e;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.download-modal-close:hover {
  background: #f0f0f0;
  color: #caf55f;
  transform: rotate(90deg);
}

.download-modal-header {
  text-align: center;
  margin-bottom: 30px;
}

.download-modal-title {
  font-size: 28px;
  font-weight: 700;
  color: #0b193e;
  margin: 0 0 10px 0;
}

.download-modal-subtitle {
  font-size: 15px;
  color: #6b7280;
  margin: 0;
}

.download-modal-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.download-modal-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.download-modal-field label {
  font-size: 14px;
  font-weight: 600;
  color: #0b193e;
  margin: 0;
}

.download-modal-field input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 15px;
  color: #0b193e;
  transition: all 0.3s ease;
  background: #ffffff;
}

.download-modal-field input:focus {
  outline: none;
  border-color: #caf55f;
  box-shadow: 0 0 0 3px rgba(202, 245, 95, 0.1);
}

.download-modal-field input::placeholder {
  color: #9ca3af;
}

.download-modal-submit {
  width: 100%;
  padding: 16px;
  background: #caf55f;
  color: #0b193e;
  border: 2px solid #caf55f;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.download-modal-submit:hover {
  background: #0b193e;
  color: #caf55f;
  border-color: #0b193e;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(11, 25, 62, 0.2);
}

.download-modal-submit i {
  transition: transform 0.3s ease;
}

.download-modal-submit:hover i {
  transform: translate(4px, -4px);
}

/* Responsive adjustments */
@media (max-width: 575.98px) {
  .download-modal-content {
    padding: 40px 25px;
  }

  .download-modal-title {
    font-size: 24px;
  }

  .download-modal-subtitle {
    font-size: 14px;
  }

  .download-modal-field input {
    padding: 12px 16px;
  }

  .download-modal-submit {
    padding: 14px;
  }
}

/* Equal-height feature cards in section 4 */
.ul-services .row > [class^="col-"],
.ul-services .row > [class*=" col-"] {
  display: flex;
}

.ul-services .ul-service,
.ul-services .ul-service-feature {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ul-services .ul-service-txt {
  margin-top: 8px;
}

/* Banner CTA Button - Centralize on mobile and fix spacing */
.banner-cta-button {
  box-sizing: border-box;
}

@media (max-width: 767.98px) {
  .banner-cta-container {
    align-items: center !important;
    width: 100%;
  }
  
  .banner-cta-button {
    width: 100%;
    max-width: 100%;
    text-align: center;
    justify-content: center;
  }
}
