/* Anjali V8 polish: compact cards, better spacing, timeline, subtle motion */
.ai-home-v2 .ai-v2-section { padding-block: clamp(72px, 9vw, 112px); }
.ai-home-v2 .ai-v2-sub { max-width: 760px; margin-bottom: 26px; }
.ai-home-v2 .ai-v2-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
.ai-home-v2 .ai-v2-portfolio-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ai-home-v2 .ai-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  padding: 24px 24px 22px;
  border: 1px solid rgba(18, 48, 77, 0.10);
  border-radius: 18px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.06);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
  overflow: hidden;
}
.ai-home-v2 .ai-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #1aa5a0, #0f7c86);
  opacity: .95;
}
.ai-home-v2 .ai-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 42px rgba(16, 24, 40, 0.12);
  border-color: rgba(26, 165, 160, 0.32);
}
.ai-home-v2 .ai-card > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(26, 165, 160, 0.10);
  color: #0f7c86;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .06em;
}
.ai-home-v2 .ai-card h3 {
  margin: 2px 0 0;
  font-size: clamp(26px, 2vw, 32px);
  line-height: 1.15;
  letter-spacing: -.03em;
}
.ai-home-v2 .ai-card p {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: #4f6378;
}
.ai-home-v2 .ai-card small {
  display: inline-block;
  width: fit-content;
  margin-top: 2px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(15, 124, 134, 0.08);
  color: #0f6973;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}
.ai-home-v2 .ai-card-link {
  margin-top: auto;
  font-weight: 700;
  color: #0f7c86;
  text-decoration: none;
}
.ai-home-v2 .ai-card-link:hover { color: #0a5560; }

/* Service cards */
.ai-home-v2 .ai-v2-service-cards .ai-card { min-height: 290px; }
.ai-home-v2 .ai-v2-service-cards .ai-card h3 { font-size: clamp(24px, 1.85vw, 30px); }

/* Experience timeline */
.ai-home-v2 .ai-v2-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 18px;
}
.ai-home-v2 .ai-v2-timeline::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 8px;
  right: 8px;
  height: 2px;
  background: linear-gradient(90deg, rgba(26,165,160,.45), rgba(18,48,77,.18));
}
.ai-home-v2 .ai-v2-timeline-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 34px 22px 22px;
  border-radius: 18px;
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(18,48,77,.10);
  box-shadow: 0 10px 28px rgba(16,24,40,.06);
  transition: transform .28s ease, box-shadow .28s ease;
}
.ai-home-v2 .ai-v2-timeline-item::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 26px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #1aa5a0;
  box-shadow: 0 0 0 6px rgba(26,165,160,.14);
}
.ai-home-v2 .ai-v2-timeline-item:hover { transform: translateY(-6px); box-shadow: 0 18px 42px rgba(16,24,40,.12); }
.ai-home-v2 .ai-v2-timeline-year { color: #0f7c86; font-size: 15px; font-weight: 800; letter-spacing: .04em; }
.ai-home-v2 .ai-v2-timeline-item h3 { margin: 0; font-size: clamp(20px, 1.65vw, 28px); line-height: 1.2; }
.ai-home-v2 .ai-v2-timeline-item p { margin: 0; line-height: 1.75; color: #4f6378; }

/* Portfolio cards */
.ai-home-v2 .ai-v2-portfolio-cards .ai-card { min-height: 255px; }
.ai-home-v2 .ai-v2-portfolio-cards .ai-card h3 { font-size: clamp(22px, 1.65vw, 27px); }
.ai-home-v2 .ai-v2-portfolio-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ai-home-v2 .ai-v2-portfolio-cards .ai-card:nth-child(4),
.ai-home-v2 .ai-v2-portfolio-cards .ai-card:nth-child(5) { grid-column: span 1; }

/* Process boxes */
.ai-home-v2 .ai-v2-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.ai-home-v2 .ai-v2-steps > div {
  padding: 20px 20px 18px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(18,48,77,.10);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(16,24,40,.05);
  transition: transform .24s ease, box-shadow .24s ease;
}
.ai-home-v2 .ai-v2-steps > div:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(16,24,40,.10); }
.ai-home-v2 .ai-v2-steps b { display:block; margin-bottom: 10px; font-size: 15px; color:#0f7c86; letter-spacing:.03em; }
.ai-home-v2 .ai-v2-steps p { margin:0; line-height:1.7; color:#4f6378; }

/* Reveal animation */
.ai-reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.ai-reveal.ai-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .ai-reveal { opacity: 1; transform: none; transition: none; }
  .ai-home-v2 .ai-card,
  .ai-home-v2 .ai-v2-timeline-item,
  .ai-home-v2 .ai-v2-steps > div { transition: none; }
}

/* Responsive */
@media (max-width: 1100px) {
  .ai-home-v2 .ai-v2-cards,
  .ai-home-v2 .ai-v2-portfolio-cards,
  .ai-home-v2 .ai-v2-timeline,
  .ai-home-v2 .ai-v2-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .ai-home-v2 .ai-v2-cards,
  .ai-home-v2 .ai-v2-portfolio-cards,
  .ai-home-v2 .ai-v2-timeline,
  .ai-home-v2 .ai-v2-steps { grid-template-columns: 1fr; }
  .ai-home-v2 .ai-card,
  .ai-home-v2 .ai-v2-timeline-item { min-height: 0 !important; }
  .ai-home-v2 .ai-v2-timeline::before { display: none; }
  .ai-home-v2 .ai-v2-timeline-item::before { top: 18px; right: 18px; left: auto; width: 12px; height: 12px; box-shadow: none; }
  .ai-home-v2 .ai-card { padding: 22px 20px 20px; }
}
