/* ===== AI Services Page — Modern Enhancements ===== */

.ai-page {
  --ai-primary: #e63946;
  --ai-primary-dark: #c1121f;
  --ai-gradient: linear-gradient(135deg, #e63946 0%, #ff6b6b 50%, #f4a261 100%);
  --ai-glass: rgba(255, 255, 255, 0.08);
  --ai-shadow: 0 20px 60px rgba(230, 57, 70, 0.12);
}

/* Hero */
.ai-hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 80px;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.ai-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(230, 57, 70, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 80%, rgba(244, 162, 97, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(99, 102, 241, 0.06) 0%, transparent 50%);
  z-index: 0;
}

.ai-hero-orb {
  position: absolute;
  border-radius: 8px;
  filter: blur(60px);
  animation: aiOrbFloat 8s ease-in-out infinite;
  pointer-events: none;
}

.ai-hero-orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(230, 57, 70, 0.2);
  top: -100px;
  right: 10%;
  animation-delay: 0s;
}

.ai-hero-orb-2 {
  width: 300px;
  height: 300px;
  background: rgba(99, 102, 241, 0.15);
  bottom: 10%;
  left: 5%;
  animation-delay: -3s;
}

.ai-hero-orb-3 {
  width: 200px;
  height: 200px;
  background: rgba(244, 162, 97, 0.2);
  top: 40%;
  left: 40%;
  animation-delay: -5s;
}

@keyframes aiOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

.ai-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(230, 57, 70, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230, 57, 70, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 70%);
  z-index: 0;
}

.ai-hero .container {
  position: relative;
  z-index: 2;
}

.ai-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 8px;
  /* background: rgba(230, 57, 70, 0.1); */
  background: #ff6b3548;
  border: 1px solid rgba(230, 57, 70, 0.25);
  color: var(--ai-primary);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
  animation: aiPulse 2s ease-in-out infinite;
}

.ai-hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--ai-primary);
  border-radius: 8px;
  animation: aiBlink 1.5s ease-in-out infinite;
}

@keyframes aiPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(230, 57, 70, 0); }
}

@keyframes aiBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.ai-hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem) !important;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.ai-hero-visual {
  position: relative;
}

.ai-hero-img-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--ai-shadow);
  animation: aiHeroFloat 6s ease-in-out infinite;
}

.ai-hero-img-wrap::before {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--ds-shadow);
  animation: dsHeroFloat 6s ease-in-out infinite;
}

.ai-hero-img-wrap img {
width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}



.ai-hero-img-wrap:hover img {
  transform: scale(1.04);
}

@keyframes aiHeroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.ai-hero-float-card {
 position: absolute;
  background: white;
  border-radius: 8px;
  padding: 14px 18px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3;
  animation: dsCardBob 4s ease-in-out infinite;
}


.ai-hero-float-card.card-1 { top: 10%; left: -30px; }
.ai-hero-float-card.card-2 { bottom: 15%; right: -20px; animation-delay: -2s; }


/* .ai-hero-float-card.card-1 {
  top: 10%;
  left: -30px;
  animation-delay: 0s;
}

.ai-hero-float-card.card-2 {
  bottom: 15%;
  right: -20px;
  animation-delay: -2s;
} */

@keyframes aiCardBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.ai-hero-float-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(230, 57, 70, 0.1);
  color: var(--ai-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.ai-hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.ai-hero-stat h4 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ai-primary);
  margin: 0;
}

.ai-hero-stat p {
  margin: 0;
  font-size: 14px;
  opacity: 0.7;
}

.ai-btn-glow {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ai-btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(230, 57, 70, 0.35);
}

/* Logo Marquee */
.ai-marquee-section {
  padding: 40px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.ai-marquee-label {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.5;
  margin-bottom: 24px;
}

.ai-marquee-track {
  display: flex;
  width: max-content;
  animation: aiMarquee 25s linear infinite;
}

.ai-marquee-track:hover {
  animation-play-state: paused;
}

.ai-marquee-inner {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 0 30px;
  
}

.ai-marquee-inner img {
  height: 100px;
  width: auto;
  opacity: 0.65;
  filter: grayscale(100%);
  transition: all 0.3s ease;
}




.ai-marquee-inner img:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.08);
}

@keyframes aiMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Service Cards Enhanced */
.ai-service-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
  /* border: 1px solid rgba(0, 0, 0, 0.06) !important; */
  border-radius: 8px;
}

.ai-service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ai-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.ai-service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(230, 57, 70, 0.15) !important;
}

.ai-service-card:hover::after {
  transform: scaleX(1);
}

.ai-service-card .icon-box {
  transition: transform 0.4s ease, background 0.4s ease;
}

.ai-service-card:hover .icon-box {
  transform: scale(1.1) rotate(-5deg);
  background: rgba(230, 57, 70, 0.15) !important;
}

/* Process Timeline */
.ai-process-section {
  position: relative;
}

.ai-process-step {
  position: relative;
  padding: 32px;
  border-radius: 8px;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  transition: all 0.4s ease;
  height: 100%;
}

.ai-process-step:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(230, 57, 70, 0.12);
  border-color: rgba(230, 57, 70, 0.2);
}

.ai-process-num {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  /* background: var(--ai-gradient); */
  background: #ff6b351f;
  color: #FF6B35;
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.ai-process-step img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 16px;
}

/* Bento Grid */
.ai-bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.ai-bento-item {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.ai-bento-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(230, 57, 70, 0.1);
}

.ai-bento-item.span-7 { grid-column: span 7; }
.ai-bento-item.span-5 { grid-column: span 5; }
.ai-bento-item.span-4 { grid-column: span 4; }
.ai-bento-item.span-8 { grid-column: span 8; }
.ai-bento-item.span-6 { grid-column: span 6; }

.ai-bento-item .bento-img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
}

.ai-bento-content {
  padding: 28px;
}

.ai-bento-item.featured {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: white;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.ai-bento-item.featured .bento-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%);
}

.ai-bento-item.featured .ai-bento-content {
  position: relative;
  z-index: 2;
}

/* Industries */
.ai-industry-card {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  height: 280px;
  cursor: pointer;
}

.ai-industry-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.ai-industry-card:hover img {
  transform: scale(1.08);
}

.ai-industry-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: white;
  transition: background 0.4s ease;

}

.ai-industry-card:hover .ai-industry-overlay {
  background: linear-gradient(to top, rgb(255, 107, 53) 0%, rgba(230, 57, 70, 0.3) 60%, transparent 100%);
}

.ai-industry-overlay h5 {
  font-weight: 800;
  margin-bottom: 8px;
  transform: translateY(10px);
  transition: transform 0.4s ease;
}

.ai-industry-card:hover .ai-industry-overlay h5 {
  transform: translateY(0);
}

.ai-industry-overlay p {
  font-size: 14px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  margin: 0;
}

.ai-industry-card:hover .ai-industry-overlay p {
  opacity: 0.9;
  transform: translateY(0);
}

/* Case Study Cards */
.ai-case-card {
  border-radius: 8px;
  overflow: hidden;
  background: white;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  transition: all 0.4s ease;
  height: 100%;
}

.ai-case-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(230, 57, 70, 0.15);
}

.ai-case-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.ai-case-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.ai-case-card:hover .ai-case-img img {
  transform: scale(1.08);
}

.ai-case-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--ai-primary);
  color: white;
  padding: 4px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

/* Testimonials */
.ai-testimonial-card {
  background: white;
  border-radius: 8px;
  padding: 32px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  height: 100%;
  transition: all 0.4s ease;
  position: relative;
}

.ai-testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 80px;
  line-height: 1;
  color: rgba(230, 57, 70, 0.1);
  /* font-family: Georgia, serif; */
  font-family: "Poppins", sans-serif;
}

.ai-testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(230, 57, 70, 0.1);
}

.ai-testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  border: 3px solid rgba(230, 57, 70, 0.2);
}

.ai-stars {
  color: #f4a261;
  font-size: 14px;
  letter-spacing: 2px;
}

/* Tech Stack */
.ai-tech-card {
  border-radius: 8px;
  padding: 28px 20px;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.35s ease;
  height: 100%;
}

.ai-tech-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(230, 57, 70, 0.3);
  box-shadow: 0 16px 40px rgba(230, 57, 70, 0.12);
}

.ai-tech-card img {
  height: 52px;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.ai-tech-card:hover img {
  transform: scale(1.1);
}





/* News Cards with Images */
.ai-news-card {
  border-radius: 8px;
  overflow: hidden;
  background: white;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  height: 100%;
  transition: transform 0.4s ease;
}

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

.ai-news-img {
  height: 180px;
  overflow: hidden;
}

.ai-news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ai-news-card:hover .ai-news-img img {
  transform: scale(1.06);
}

/* FAQ */
.ai-faq-item {
  border-radius: 8px !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.ai-faq-item:not(.collapsed) {
  box-shadow: 0 8px 30px rgba(230, 57, 70, 0.1);
  border-color: rgba(230, 57, 70, 0.2) !important;
}

.ai-faq-btn {
  font-weight: 700 !important;
  padding: 20px 24px !important;
  background: white !important;
  color: inherit !important;
  box-shadow: none !important;
}

.ai-faq-btn:not(.collapsed) {
  color: var(--ai-primary) !important;
  background: rgba(230, 57, 70, 0.04) !important;
}

.ai-faq-body {
  padding: 0 24px 20px !important;
}

/* CTA Enhanced */
.ai-cta-section {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  margin: 0 15px;
}

.ai-cta-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #e63946 50%, #ff6b6b 100%);
  background-size: 200% 200%;
  animation: aiGradientShift 8s ease infinite;
}

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

.ai-cta-particles {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.15) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.4;
}

.ai-cta-section .container {
  position: relative;
  z-index: 2;
}

/* Section Headers */
.ai-section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ai-primary);
  margin-bottom: 12px;
}

.ai-section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--ai-gradient);
  vertical-align: middle;
  margin-right: 10px;
}

/* Counter animation glow */
.rm-counter-area {
  position: relative;
  overflow: hidden;
}

.rm-counter-area::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  top: -100px;
  right: -50px;
  animation: aiOrbFloat 10s ease-in-out infinite;
}

/* Dark mode adjustments */
[data-bs-theme=dark] .ai-service-card,
[data-bs-theme=dark] .ai-process-step,
[data-bs-theme=dark] .ai-bento-item,
[data-bs-theme=dark] .ai-testimonial-card,
[data-bs-theme=dark] .ai-tech-card,
[data-bs-theme=dark] .ai-case-card,
[data-bs-theme=dark] .ai-news-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-bs-theme=dark] .ai-hero-float-card {
  background: rgba(30, 30, 40, 0.95);
}

[data-bs-theme=dark] .ai-marquee-section {
  border-color: rgba(255, 255, 255, 0.08);
}

[data-bs-theme=dark] .ai-faq-btn {
  background: rgba(255, 255, 255, 0.04) !important;
}

/* Responsive */
@media (max-width: 991px) {
  .ai-hero {
    padding: 80px 0 60px;
    min-height: auto;
  }

  .ai-hero-float-card {
    display: none;
  }

  .ai-bento-item.span-7,
  .ai-bento-item.span-5,
  .ai-bento-item.span-4,
  .ai-bento-item.span-8,
  .ai-bento-item.span-6 {
    grid-column: span 12;
  }

  .ai-hero-stats {
    gap: 20px;
  }

  .ai-cta-section {
    margin: 0;
    border-radius: 0;
  }
}





/* Stagger animation helper */
[data-ai-delay="100"] { transition-delay: 100ms; }
[data-ai-delay="200"] { transition-delay: 200ms; }
[data-ai-delay="300"] { transition-delay: 300ms; }
[data-ai-delay="400"] { transition-delay: 400ms; }























@media (max-width: 480px) {

    .ai-hero {
    margin-top: 50px;
  }
  .risk-title{
    text-align: center;
  }
 .m-btn {
    display: flex;
    justify-content: center;  
    align-items: center;      
}
  .big-data-prod {
    margin-bottom: 15px;
  }
  .data-integ {
    margin-top: 15px;
  }
.ai-marquee-inner img {
    height: 50px !important;
    width: auto !important;
  }
  .ai-hero-stats {
    display: flex;
    flex-direction: column;  /* stacks vertically */
    align-items: center;     /* centers them */
    gap: 15px;              /* space between items */
  }
  .section-title{
    text-align: center;
  }
  .ai-content{
     text-align: center;
  }

}













@media (max-width: 768px) {
  .big-data-prod {
    margin-bottom: 15px;
  }
  .data-integ {
    margin-top: 15px;
  }
 .ai-hero-img-wrap img {
    height: 280px;
  }
  .ai-hero-stats {
    display: flex;
    flex-direction: column;  /* stacks vertically */
    align-items: center;     /* centers them */
    gap: 15px;              /* space between items */
  }
  .section-title{
    text-align: center;
  }
  .ai-content{
     text-align: center;
  }

}




