/* ── AI Section - Bootstrap Mobile First ───────────────────────── */

.section-ai {
  background: linear-gradient(135deg, #0a0e27 0%, #0222A4 50%, #000000 100%);
  position: relative;
  color: #fff;
  overflow: hidden;
}

/* Animated gradient background overlay */
.section-ai::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(2, 34, 164, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(243, 78, 0, 0.08) 0%, transparent 50%);
  pointer-events: none;
  animation: gradientShift 15s ease-in-out infinite;
  z-index: 1;
}

@keyframes gradientShift {
  0%, 100% { 
    background: 
      radial-gradient(circle at 20% 50%, rgba(2, 34, 164, 0.15) 0%, transparent 50%),
      radial-gradient(circle at 80% 80%, rgba(243, 78, 0, 0.08) 0%, transparent 50%);
  }
  50% {
    background: 
      radial-gradient(circle at 80% 50%, rgba(2, 34, 164, 0.12) 0%, transparent 50%),
      radial-gradient(circle at 20% 80%, rgba(243, 78, 0, 0.1) 0%, transparent 50%);
  }
}

/* Content above gradient */
.section-ai .container-fluid {
  position: relative;
  z-index: 2;
}

/* Header wrapper - com linha decorativa animada */
.ai-header-wrapper {
  position: relative;
  padding-top: 8px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Decorative animated line */
.ai-header-line {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #F34E00, #0222A4, #F34E00, transparent);
  border-radius: 2px;
  animation: borderPulse 3s ease-in-out infinite;
  margin-bottom: 0;
}

@keyframes borderPulse {
  0%, 100% { width: 40px; opacity: 0.6; }
  50% { width: 70px; opacity: 1; }
}

/* Badge/Label styling */
.section-ai .badge {
  background: linear-gradient(135deg, rgba(243, 78, 0, 0.2) 0%, rgba(2, 34, 164, 0.2) 100%) !important;
  border: 1.5px solid rgba(243, 78, 0, 0.4);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: all 0.3s ease;
}

.section-ai .badge:hover {
  border-color: rgba(243, 78, 0, 0.7);
  background: linear-gradient(135deg, rgba(243, 78, 0, 0.3) 0%, rgba(2, 34, 164, 0.3) 100%) !important;
  transform: scale(1.05);
}

/* Mobile: Title and subtitle sizing */
.section-ai h2 {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-ai p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Card styling - Mobile First */
.section-ai .card {
  background: rgba(15, 23, 42, 0.6) !important;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  transition: all 0.3s ease;
  position: relative;
  width: 100%;
  height: auto;
}

.section-ai .card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 100%, rgba(243, 78, 0, 0.1) 0%, transparent 60%),
              radial-gradient(circle at 0% 0%, rgba(2, 34, 164, 0.1) 0%, transparent 60%);
  pointer-events: none;
  border-radius: inherit;
}

.section-ai .card:hover {
  border-color: rgba(243, 78, 0, 0.3) !important;
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(243, 78, 0, 0.1);
}

/* Card content */
.section-ai .card-body {
  position: relative;
  z-index: 2;
}

/* Icon spacing */
.section-ai .card-body svg {
  display: block;
}

/* Mobile: Title and icon spacing */
.section-ai .card h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 0;
}

/* Features list - Mobile First */
.section-ai .card ul li {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
}

.section-ai .card ul li span {
  font-weight: 600;
  margin-right: 0.5rem;
}

/* Info icon (tooltip) styling */
.section-ai .card ul li svg {
  opacity: 0.7;
  transition: opacity 0.2s ease;
  position: relative;
  display: inline-block;
  cursor: help;
}

.section-ai .card ul li:hover svg {
  opacity: 1;
}

/* Tooltip container - relative positioning para o li */
.section-ai .card ul li {
  position: relative;
}

/* TOOLTIP COM WRAPPER INVISÍVEL */
.tooltip-icon-wrapper {
  position: relative;
  display: inline-block;
  cursor: help;
}

.tooltip-icon-wrapper .tooltip-text {
  visibility: hidden;
  background-color: rgba(243, 78, 0, 0.95);
  color: #fff;
  text-align: center;
  padding: 6px 10px;
  border-radius: 4px;
  position: absolute;
  z-index: 1001;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.tooltip-icon-wrapper .tooltip-text::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(243, 78, 0, 0.95);
  opacity: 1;
}

.tooltip-icon-wrapper:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* SVG inside tooltip wrapper */
.tooltip-icon-wrapper svg {
  transition: all 0.2s ease;
}

.tooltip-icon-wrapper:hover svg {
  opacity: 1 !important;
}

/* Animations */
.fade-in {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ────────────────────────────────────────────────────────────────
   TABLET (768px+)
   ──────────────────────────────────────────────────────────────── */

@media (min-width: 768px) {
  .section-ai {
    padding: 60px 0 !important;
  }

  .ai-header-wrapper {
    padding-top: 16px;
  }

  .section-ai h2 {
    font-size: 40px;
  }

  .section-ai p {
    font-size: 16px;
  }

  .section-ai .card h3 {
    font-size: 18px;
  }

  .section-ai .card ul li {
    font-size: 15px;
  }

  .section-ai .card {
    height: 100%;
  }

  .section-ai .card-body {
    gap: 2rem;
  }

  .section-ai .card:hover {
    transform: translateY(-6px);
  }

}

/* ────────────────────────────────────────────────────────────────
   DESKTOP (1024px+)
   ──────────────────────────────────────────────────────────────── */

@media (min-width: 1024px) {
  .section-ai {
    padding: 100px 0 !important;
  }

  .ai-header-wrapper {
    padding-top: 20px;
  }

  .section-ai h2 {
    font-size: 56px;
  }

  .section-ai p {
    font-size: 18px;
  }

  .section-ai .card h3 {
    font-size: 20px;
  }

  .section-ai .card ul li {
    font-size: 16px;
  }

  .section-ai .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(243, 78, 0, 0.15);
  }

}

@media (max-width: 767.98px) {
  .tooltip-icon-wrapper .tooltip-text {
    white-space: normal;
    max-width: 170px;
    line-height: 1.4;
    padding: 7px 10px;
  }
}
