/* New AI Page Styles - Using WHAT WE OFFER Theme */

.ai-page-container {
  min-height: 100vh;
  background: #0b0f19;
  padding-top: 100px;
  position: relative;
}

.ai-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px;
  position: relative;
  z-index: 10;
}

.ai-header {
  text-align: center;
  margin-bottom: 40px;
}

.ai-header-eyebrow {
  font-size: 14px;
  font-weight: 100;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #02E0B8;
  margin-bottom: 12px;
  display: block;
}

.ai-header h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  color: #f8f5f5;
  margin-bottom: 12px;
  line-height: 1.3;
}

.ai-header h1 .gradient-text {
  background: linear-gradient(90deg, #818cf8, #22d3ee, #555cf7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  animation: gradientShift 3s ease infinite;
  background-size: 200% 200%;
  display: inline-block;
  font-weight: 700;
}

.nav-gradient-text {
  background: linear-gradient(90deg, #818cf8, #22d3ee, #555cf7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  font-weight: 500;
  animation: gradientShift 3s ease infinite;
  background-size: 200% 200%;
  display: inline-block;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.ai-header h1 .gradient-text {
  background: linear-gradient(90deg, #818cf8, #22d3ee, #555cf7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  animation: gradientShift 3s ease infinite;
  background-size: 200% 200%;
  display: inline-block;
  font-weight: 700;
}

.ai-header p {
  font-size: 18px;
  color: rgba(210, 220, 225, 0.85);
  max-width: 700px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.ai-intro-text {
  opacity: 0.85;
  font-size: 20px;
  margin: 0 auto 30px auto;
  display: block;
  text-align: center;
  z-index: 11;
  padding: 0 10px;
  color: rgb(255, 255, 255);
  max-width: 900px;
  line-height: 1.8;
}

.ai-solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.ai-solution-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(20, 211, 195, 0.377);
  border-radius: 12px;
  padding: 12px;
  transition: all 220ms ease;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 6px 20px rgba(2, 22, 23, 0.32), inset 0 1px 0 rgba(2, 0, 0, 0);
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
}

.ai-solution-card:hover {
  transform: translateY(-4px);
  border-color: rgba(2, 224, 184, 0.16);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 36px rgba(2, 224, 183, 0.363), 0 6px 18px rgba(2, 224, 183, 0.363);
}

/* ===== MEDIA AREA ===== */

.ai-card-media {
  position: relative;
  width: calc(100% + 24px);
  aspect-ratio: 16 / 9;
  margin: -12px -12px 10px -12px;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  background: #0b0f19;
}

/* PERFECT ILLUSTRATION FIT */
.ai-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* NO crop, NO distortion */
  object-position: center;
  display: block;
  background: #0b0f19;
  transition: opacity 220ms ease;
}

/* ===== VIDEO OVERLAY ===== */

.ai-video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 15, 25, 0.55);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 300ms ease;
}

/* PERFECT VIDEO SIZE */
.ai-video-overlay iframe {
  width: 100%;
  height: 100%;
  max-width: 92%;
  max-height: 92%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

/* ===== HOVER BEHAVIOR ===== */

.ai-solution-card:hover .ai-video-overlay {
  opacity: 1;
  visibility: visible;
}

.ai-solution-card:hover .ai-card-media img {
  opacity: 0.15;
}

/* ===== MOBILE SAFETY ===== */

@media (max-width: 768px) {
  .ai-video-overlay {
    display: none;
  }

  .ai-card-media img {
    opacity: 1 !important;
  }
}

.ai-solution-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
}

.ai-card-image {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 224, 184, 0.08);
  border-radius: 12px;
  border: 1px solid rgba(2, 224, 184, 0.3);
  padding: 12px;
}

.ai-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(2, 224, 184, 0.2));
}

.ai-solution-card p {
  font-size: 13px;
  color: rgba(210, 220, 225, 0.85);
  line-height: 1.5;
  margin-bottom: 12px;
}

.ai-solution-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ai-solution-features li {
  font-size: 13px;
  color: rgba(210, 220, 225, 0.75);
  margin-bottom: 8px;
  padding-left: 18px;
  position: relative;
}

.ai-card-buttons {
  display: flex;
  gap: 25px;
  margin-top: auto;
  padding-top: 0px;
}

.ai-demo-button,
.ai-contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 12px;
  text-decoration: none;
  transition: all 250ms ease;
  cursor: pointer;
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.ai-demo-button,
.ai-contact-button {
  margin: 15px;
  padding: 8px 18px;
  font-size: 11px;
  font-weight: 300;
  border-radius: 20px;
  background: linear-gradient(90deg, #02E0B8 0%, #00D1A6 100%);
  color: #0b1220;
  border: none;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: all 140ms ease;
  align-self: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(2, 224, 184, 0.12);
}

.ai-demo-button:hover,
.ai-contact-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(2, 224, 184, 0.18);
}

/* Removed fixed-size override so contact buttons match demo buttons inside cards */

.ai-benefits-section {
  padding: 24px;
  margin-bottom: 36px;
}

.ai-benefits-section h2 {
  font-size: 24px;
  font-weight: 600;
  color: #f8f5f5;
  margin-bottom: 18px;
  text-align: center;
}

.ai-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.ai-benefit-item {
  padding: 16px 12px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.151);
  text-align: center;
  transition: all 260ms ease;
}

.ai-benefit-item:hover {
  background: rgba(255, 255, 255, 0);
  border-color: rgb(2, 224, 183);
  transform: translateY(-4px);
}

.ai-benefit-icon {
  font-size: 32px;
  margin-bottom: 12px;
  display: block;
  text-align: center;
}

.ai-benefit-item h4 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.ai-benefit-item p {
  font-size: 13px;
  color: rgba(210, 220, 225, 0.8);
  line-height: 1.4;
}

.ai-cta-section {
  text-align: center;
  padding: 28px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  margin-bottom: 36px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(2, 8, 23, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.ai-cta-section h2 {
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 600;
  color: #f8f5f5;
  margin-bottom: 12px;
}

.ai-cta-section p {
  font-size: 15px;
  color: rgba(210, 220, 225, 0.85);
  margin-bottom: 18px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.btn-discover {
  display: inline-block;
  padding: 14px 36px;
  background-color: #02E0B8;
  color: #0b0f19;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  transition: all 300ms ease;
  border: 2px solid #02E0B8;
  cursor: pointer;
}

.btn-discover:hover,
.btn-discover:focus {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(2, 224, 184, 0.4), 0 0 20px rgba(2, 224, 184, 0.3);
  background-color: #00c9a3;
  border-color: #00c9a3;
  color: #0b0f19;
}

/* Apply user-provided visited style directly to .btn-primary */
.btn-primary:visited {
  background: #02E0B8 !important;
  color: #000 !important;
  border: none;
  padding: 12px 28px;
  border-radius: 28px;
  font-weight: 300 !important;
  transition: box-shadow 220ms ease, transform 150ms ease, color 140ms ease;
  box-shadow: 0 0 0 rgba(2, 224, 184, 0);
}

/* Basic default style for .btn-primary to match site theme */
.btn-primary {
  display: inline-block;
  background: linear-gradient(90deg, #02E0B8 0%, #00D1A6 100%);
  color: #0b1220;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 28px;
  border: none;
  font-weight: 300;
  transition: box-shadow 220ms ease, transform 150ms ease, color 140ms ease;
}

.back-link {
  position: fixed;
  top: 16px;
  left: 16px;
  color: rgba(210, 220, 225, 0.8);
  font-size: 15px;
  text-decoration: none;
  transition: all 280ms ease;
  z-index: 1001;
  font-weight: 600;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(10px);
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.back-link:hover {
  color: #02E0B8;
  background: rgba(11, 15, 25, 0.95);
  border-color: rgba(2, 224, 184, 0.2);
}

/* Particles Background */
#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
  top: 0;
  left: 0;
}

@media (max-width: 768px) {
  .ai-content {
    padding: 40px 20px;
  }

  .ai-header h1 {
    font-size: 28px;
  }

  .ai-benefits-section {
    padding: 20px;
  }

  /* Mobile: make solution cards compact and stacked */
  .ai-solutions-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 40px;
  }

  .ai-solution-card {
    padding: 12px;
  }

  .ai-card-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 0 0 10px 0;
    border-radius: 8px 8px 0 0;
  }

  .ai-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .ai-cta-section {
    padding: 40px 20px;
  }

  .ai-cta-section h2 {
    font-size: 28px;
  }

  .back-link {
    left: 16px;
    font-size: 14px;
    padding: 6px 12px;
    top: 14px;
  }
}


/* ===== SCROLL REVEAL ANIMATIONS ===== */

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(50px);
}

.scroll-reveal.active {
  animation: slideUp 800ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.scroll-reveal.delay-1.active {
  animation-delay: 120ms;
}

.scroll-reveal.delay-2.active {
  animation-delay: 240ms;
}

.scroll-reveal.delay-3.active {
  animation-delay: 360ms;
}

.scroll-reveal.delay-4.active {
  animation-delay: 480ms;
}

.scroll-reveal.delay-5.active {
  animation-delay: 600ms;
}

.ai-header {
  animation: fadeIn 900ms ease-in 300ms forwards;
  opacity: 0;
}

.ai-intro-text {
  animation: slideUp 900ms cubic-bezier(0.34, 1.56, 0.64, 1) 500ms forwards;
  opacity: 0;
}

.ai-benefits-section {
  animation: slideUp 900ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
}

.ai-benefits-section.active {
  animation-delay: 150ms;
}

.ai-cta-section {
  animation: slideUp 900ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
}

.ai-cta-section.active {
  animation-delay: 150ms;
}

