/* ==========================================================================
   AI Development Services — Hero
   Page-specific styles for page-ai-development-services.php. Kept out of
   main.css/style.css so this page's styles ship only where they're used.
   ========================================================================== */

.ai-dev-hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 150px 0 80px;
  background: #04070d;
}

/* ---- Background: grid + glow blobs + drifting particles ---- */

.ai-dev-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.ai-dev-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 194, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 194, 255, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 40%, transparent 100%);
}

.ai-dev-hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  animation: aiDevHeroDrift 16s ease-in-out infinite;
}

.ai-dev-hero-glow--cyan {
  top: -12%;
  left: -8%;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(0, 194, 255, 0.24) 0%, transparent 70%);
}

.ai-dev-hero-glow--violet {
  bottom: -18%;
  right: -10%;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.2) 0%, transparent 70%);
  animation-delay: -8s;
}

@keyframes aiDevHeroDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.08); }
}

.ai-dev-hero-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #00c2ff;
  box-shadow: 0 0 8px 2px rgba(0, 194, 255, 0.6);
  opacity: 0;
  animation: aiDevHeroParticlePulse 4.5s ease-in-out infinite;
}

.ai-dev-hero-particle:nth-child(1) { top: 18%; left: 12%; animation-delay: 0s; }
.ai-dev-hero-particle:nth-child(2) { top: 62%; left: 6%; animation-delay: 0.8s; }
.ai-dev-hero-particle:nth-child(3) { top: 30%; left: 46%; animation-delay: 1.6s; }
.ai-dev-hero-particle:nth-child(4) { top: 78%; left: 40%; animation-delay: 2.4s; }
.ai-dev-hero-particle:nth-child(5) { top: 12%; left: 88%; animation-delay: 1.1s; }
.ai-dev-hero-particle:nth-child(6) { top: 55%; left: 92%; animation-delay: 3s; }

@keyframes aiDevHeroParticlePulse {
  0%, 100% { opacity: 0; transform: translateY(0) scale(0.8); }
  50% { opacity: 1; transform: translateY(-14px) scale(1); }
}

.ai-dev-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(4, 7, 13, 0.4) 0%, rgba(4, 7, 13, 0.15) 35%, rgba(4, 7, 13, 0.75) 100%);
}

/* ---- Layout ---- */

.ai-dev-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
}

.ai-dev-hero-content {
  max-width: 620px;
}

.ai-dev-hero-title {
  margin: 20px 0 22px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-size: clamp(2.25rem, 4.2vw, 3.5rem);
  color: #ffffff;
}

.ai-dev-hero-description {
  max-width: 540px;
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.7;
  color: rgba(226, 232, 240, 0.78);
}

.ai-dev-hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
}

.ai-dev-hero-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 49px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: border-color 200ms ease, background-color 200ms ease, transform 200ms ease;
}

.ai-dev-hero-btn-outline:hover {
  border-color: rgba(0, 194, 255, 0.5);
  background: rgba(0, 194, 255, 0.08);
}

.ai-dev-hero-btn-outline svg {
  width: 16px;
  height: 16px;
}

/* ---- Right-side illustration ---- */

.ai-dev-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.ai-dev-hero-orbit {
  position: absolute;
  border: 1px dashed rgba(0, 194, 255, 0.22);
  border-radius: 50%;
  animation: aiDevHeroSpin 40s linear infinite;
}

.ai-dev-hero-orbit--outer {
  width: 118%;
  height: 118%;
}

.ai-dev-hero-orbit--inner {
  width: 92%;
  height: 92%;
  border-color: rgba(124, 58, 237, 0.2);
  animation-duration: 28s;
  animation-direction: reverse;
}

@keyframes aiDevHeroSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.ai-dev-hero-frame {
  position: relative;
  z-index: 2;
  width: min(420px, 82%);
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  padding: 10px;
  background: rgba(4, 7, 13, 0.6);
  border: 1px solid rgba(0, 194, 255, 0.28);
  box-shadow: 0 30px 80px -20px rgba(0, 194, 255, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: aiDevHeroFloat 6s ease-in-out infinite;
}

.ai-dev-hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}

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

.ai-dev-hero-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(4, 7, 13, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: aiDevHeroFloat 5s ease-in-out infinite;
}

.ai-dev-hero-card--top {
  top: 6%;
  right: -4%;
  animation-delay: -1.5s;
}

.ai-dev-hero-card--bottom {
  bottom: 8%;
  left: -6%;
  animation-delay: -3s;
}

.ai-dev-hero-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: rgba(0, 194, 255, 0.12);
  color: #00c2ff;
}

.ai-dev-hero-card-icon svg {
  width: 18px;
  height: 18px;
}

.ai-dev-hero-card-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(226, 232, 240, 0.6);
  white-space: nowrap;
}

.ai-dev-hero-card-value {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
}

/* ---- Responsive ---- */

@media (max-width: 640px) {
  .ai-dev-hero {
    min-height: 100svh;
  }
}

@media (max-width: 1024px) {
  .ai-dev-hero-inner {
    grid-template-columns: 1fr;
    gap: 64px;
    text-align: center;
  }

  .ai-dev-hero-content {
    max-width: none;
    margin: 0 auto;
  }

  .ai-dev-hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .ai-dev-hero-cta {
    justify-content: center;
  }

  .ai-dev-hero-visual {
    min-height: 360px;
  }

  .ai-dev-hero-frame {
    width: min(340px, 70%);
  }
}

@media (max-width: 560px) {
  .ai-dev-hero {
    padding: 130px 0 64px;
  }

  .ai-dev-hero-card {
    padding: 10px 12px;
  }

  .ai-dev-hero-card--top {
    top: 2%;
    right: 0;
  }

  .ai-dev-hero-card--bottom {
    bottom: 4%;
    left: 0;
  }

  .ai-dev-hero-card-label,
  .ai-dev-hero-card-value {
    font-size: 10px;
  }

  .ai-dev-hero-card-value {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai-dev-hero-glow,
  .ai-dev-hero-particle,
  .ai-dev-hero-orbit,
  .ai-dev-hero-frame,
  .ai-dev-hero-card {
    animation: none;
  }
}

/* ==========================================================================
   Capabilities + Recognition
   A sticky intro column next to a GSAP/CSS scroll-stacking card deck (same
   sticky-stack technique as the site's Honest Experiences testimonial
   section: cards are `position: sticky` — never a GSAP `pin` — so stacking
   can't desync from Lenis smooth scroll; GSAP only scrubs each outgoing
   card's fade/scale/parallax as the next one arrives), followed by an
   awards strip and two supporting photos.
   ========================================================================== */

.ai-dev-capabilities {
  position: relative;
  padding: 100px 0;
  background: #04070d;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.ai-dev-cap-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: 64px;
}

.ai-dev-cap-intro {
  position: sticky;
  top: 140px;
}

.ai-dev-cap-heading {
  margin: 20px 0 18px;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: #ffffff;
}

.ai-dev-cap-desc {
  max-width: 480px;
  color: rgba(226, 232, 240, 0.75);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.ai-dev-cap-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  padding-left: 38px;
  color: #00c2ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ai-dev-cap-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 28px;
  height: 1px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(0, 194, 255, 0.7), transparent);
}

/* ---- Stacking card deck ---- */

.ai-dev-cap-track {
  position: relative;
}

.ai-dev-cap-card-wrap {
  position: relative;
  min-height: 62vh;
  padding-bottom: 32px;
}

.ai-dev-cap-card-wrap:last-child {
  min-height: 0;
}

.ai-dev-cap-card {
  position: sticky;
  top: 140px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 36px;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform-origin: center top;
  will-change: transform, opacity;
}

.ai-dev-cap-card-num {
  position: absolute;
  top: 18px;
  right: 26px;
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.ai-dev-cap-card-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(0, 194, 255, 0.12);
  color: #00c2ff;
}

.ai-dev-cap-card-icon svg {
  width: 24px;
  height: 24px;
}

.ai-dev-cap-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.ai-dev-cap-card-title {
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.ai-dev-cap-card-text {
  color: rgba(226, 232, 240, 0.78);
  font-size: 15.5px;
  line-height: 1.75;
}

.ai-dev-cap-card-text a {
  color: #00c2ff;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(0, 194, 255, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 180ms ease;
}

.ai-dev-cap-card-text a:hover {
  text-decoration-color: #00c2ff;
}

/* ---- Recognition: awards grid + photos ---- */

.ai-dev-recognition {
  margin-top: 140px;
}

.ai-dev-badges-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.ai-dev-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 220ms ease, background-color 220ms ease, transform 220ms ease;
}

.ai-dev-badge:hover {
  border-color: rgba(0, 194, 255, 0.35);
  background: rgba(0, 194, 255, 0.05);
  transform: translateY(-3px);
}

.ai-dev-badge-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0, 194, 255, 0.12);
  color: #00c2ff;
}

.ai-dev-badge-icon svg {
  width: 20px;
  height: 20px;
}

.ai-dev-badge-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ai-dev-badge-text strong {
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.3;
}

.ai-dev-badge-text span {
  margin-top: 2px;
  color: rgba(226, 232, 240, 0.55);
  font-size: 11.5px;
  font-weight: 600;
}

.ai-dev-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.ai-dev-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-dev-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms ease;
}

.ai-dev-photo:hover img {
  transform: scale(1.06);
}

.ai-dev-photo-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 18px;
  background: linear-gradient(180deg, transparent, rgba(4, 7, 13, 0.9));
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

/* ---- Responsive ---- */

@media (max-width: 1024px) {
  .ai-dev-cap-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .ai-dev-cap-intro {
    position: static;
    top: auto;
  }

  .ai-dev-cap-desc {
    max-width: none;
  }

  .ai-dev-recognition {
    margin-top: 80px;
  }
}

@media (max-width: 900px) {
  .ai-dev-cap-card-wrap {
    min-height: 48vh;
  }

  .ai-dev-cap-card {
    flex-direction: column;
    padding: 30px;
  }

  .ai-dev-badges-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .ai-dev-capabilities {
    padding: 72px 0;
  }

  .ai-dev-cap-card-wrap {
    min-height: 38vh;
  }

  .ai-dev-cap-card {
    top: 108px;
    padding: 26px;
    border-radius: 20px;
    gap: 16px;
  }

  .ai-dev-cap-card-title {
    font-size: 18px;
  }

  .ai-dev-cap-card-text {
    font-size: 14.5px;
  }

  .ai-dev-badges-grid {
    grid-template-columns: 1fr;
  }

  .ai-dev-photos {
    grid-template-columns: 1fr;
  }

  .ai-dev-recognition {
    margin-top: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai-dev-cap-card,
  .ai-dev-badge,
  .ai-dev-photo img {
    transition: none !important;
  }
}
