/* AI Executive Assistants — Project Styles */

:root {
  --project-accent: #a78bfa;
  --project-accent-2: #6bb5fb;
  --pa: 167, 139, 250;       /* rgb triplet for rgba() */
  --pa2: 107, 181, 251;
}

/* ================================
   Hero — Full-bleed video
   ================================ */
.hero-video {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 0;
  border-bottom: 1px solid rgba(var(--pa), .15);
}
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-video-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(11,12,16, .25) 0%,
      rgba(11,12,16, .5)  40%,
      rgba(11,12,16, .85) 70%,
      rgba(11,12,16, .97) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-bottom: clamp(40px, 8vh, 80px);
  padding-top: 120px;
}
.hero-video h1 {
  font-size: clamp(36px, 8vw, 80px);
  font-weight: 800;
  line-height: 1.02;
  margin: 8px 0 16px;
  letter-spacing: -.02em;
  background: linear-gradient(135deg, #fff 40%, var(--project-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-video .lead {
  color: var(--muted, #c0ccc0);
  max-width: 620px;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.6;
}

/* Badge */
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(var(--pa), .12);
  border: 1px solid rgba(var(--pa), .25);
  color: var(--project-accent);
}

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(var(--pa), .1);
  border: 1px solid rgba(var(--pa), .2);
  color: rgba(255,255,255,.85);
  backdrop-filter: blur(4px);
}

/* Mobile: hide video, show poster */
@media (max-width: 720px) {
  .hero-video-el { display: none; }
  .hero-video-wrap {
    background: url('/assets/images/projects/ai-assistants/hero-poster.jpg') center / cover no-repeat;
  }
  .hero-video { min-height: 85svh; }
}

/* ================================
   Sections & Layout
   ================================ */
.section { padding: clamp(32px, 5vw, 64px) 0; }
.section h2 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  margin: 0 0 18px;
}

/* Card base */
.card {
  padding: clamp(18px, 3vw, 28px);
  border-radius: 16px;
  background: rgba(255,255,255, .03);
  border: 1px solid rgba(255,255,255, .08);
}
.card h2 { margin-top: 0; }
.card h3 { margin: 14px 0 6px; font-size: 15px; }
.card ul { padding-left: 18px; margin: 6px 0 0; }
.card ul li { font-size: 14px; color: var(--muted, #c0ccc0); margin-bottom: 4px; }
.card-img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 18px;
  display: block;
}

/* Two-column layout */
.two-col { display: grid; gap: 18px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1.1fr 1fr; } }

/* Meta grid */
.meta-grid-sm { display: grid; gap: 10px; }
@media (min-width: 700px) { .meta-grid-sm { grid-template-columns: repeat(3, 1fr); } }
.meta-item {
  padding: 14px;
  border-radius: 12px;
  background: rgba(255,255,255, .04);
  border: 1px solid rgba(255,255,255, .06);
}

/* ================================
   Full-bleed image break
   ================================ */
.image-break {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  overflow: hidden;
  max-height: 50vh;
  position: relative;
}
.image-break img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.image-break::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,12,16,.4) 0%, transparent 30%, transparent 70%, rgba(11,12,16,.6) 100%);
  pointer-events: none;
}

/* ================================
   Capability cards
   ================================ */
.cap-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .cap-grid { grid-template-columns: 1fr 1fr 1fr; } }
.cap-card {
  padding: 24px 20px;
  border-radius: 14px;
  background: rgba(255,255,255, .03);
  border: 1px solid rgba(255,255,255, .07);
  text-align: center;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.cap-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--pa), .25);
  box-shadow: 0 12px 32px -12px rgba(var(--pa), .15);
}
.cap-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(var(--pa), .1);
  border: 1px solid rgba(var(--pa), .2);
}
.cap-icon svg { width: 24px; height: 24px; color: var(--project-accent); }
.cap-card h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.cap-card p { margin: 0; font-size: 14px; color: var(--muted, #c0ccc0); line-height: 1.6; }

/* ================================
   Steps — Timeline
   ================================ */
.steps {
  counter-reset: step;
  position: relative;
  padding-left: 20px;
}
.steps::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 32px;
  bottom: 32px;
  width: 2px;
  background: linear-gradient(180deg, var(--project-accent), rgba(var(--pa), .08));
  border-radius: 2px;
}
.step {
  counter-increment: step;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255, .04);
  position: relative;
}
.step:last-child { border-bottom: none; }
.step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(var(--pa), .12);
  border: 1px solid rgba(var(--pa), .3);
  font-weight: 700;
  font-size: 14px;
  color: var(--project-accent);
  position: relative;
  z-index: 1;
}
.step-text strong { display: block; margin-bottom: 2px; }
.step-text span { font-size: 14px; color: var(--muted, #c0ccc0); line-height: 1.6; }

/* ================================
   Results header
   ================================ */
.results-header {
  display: grid;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}
@media (min-width: 900px) {
  .results-header { grid-template-columns: 1fr 1fr; }
}
.results-lead { color: var(--muted, #c0ccc0); font-size: 15px; margin: 6px 0 0; max-width: 440px; }
.results-img {
  border-radius: 14px;
  overflow: hidden;
  display: block;
}
.results-img img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: cover;
  display: block;
  border-radius: 14px;
}

/* ================================
   Stats
   ================================ */
.stat-grid { display: grid; gap: 14px; }
@media (min-width: 700px) { .stat-grid { grid-template-columns: repeat(3, 1fr); } }
.stat {
  text-align: center;
  padding: 24px 18px;
  border-radius: 14px;
  background: rgba(var(--pa), .05);
  border: 1px solid rgba(var(--pa), .12);
  transition: transform .25s ease, box-shadow .25s ease;
}
.stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -8px rgba(var(--pa), .2);
}
.stat-val {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  color: var(--project-accent);
  line-height: 1.1;
  text-shadow: 0 0 30px rgba(var(--pa), .35);
}
.stat-label { font-size: 13px; color: var(--muted, #c0ccc0); margin-top: 6px; }

/* ================================
   Tech chips
   ================================ */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255, .05);
  border: 1px solid rgba(255,255,255, .08);
  font-size: 13px;
  transition: border-color .2s ease, background .2s ease;
}
.chip:hover {
  border-color: rgba(var(--pa), .3);
  background: rgba(var(--pa), .08);
}

/* ================================
   CTA
   ================================ */
.cta-card { text-align: center; }
.cta-card h2 { font-size: clamp(20px, 2.5vw, 28px); }
.cta-card p { color: var(--muted, #c0ccc0); max-width: 520px; margin: 0 auto; }
.cta-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 18px;
}
.cta-buttons .btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  border: 1px solid rgba(255,255,255, .1);
  background: rgba(255,255,255, .04);
  color: var(--fg, #e8f0e8);
}
.cta-buttons .btn:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--pa), .3);
  box-shadow: 0 6px 20px -6px rgba(var(--pa), .2);
  text-decoration: none;
}
.cta-buttons .btn.primary {
  background: linear-gradient(135deg, var(--project-accent), var(--project-accent-2));
  color: #0a0d12;
  border-color: transparent;
}
.cta-buttons .btn.primary:hover {
  box-shadow: 0 8px 28px -6px rgba(var(--pa), .4);
}

/* ================================
   Scroll reveal animations
   ================================ */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s cubic-bezier(.25, .46, .45, .94), transform .65s cubic-bezier(.25, .46, .45, .94);
}
[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Staggered delay for capability cards */
.cap-card[data-animate]:nth-child(2) { transition-delay: .1s; }
.cap-card[data-animate]:nth-child(3) { transition-delay: .2s; }

@media (prefers-reduced-motion: reduce) {
  [data-animate] { opacity: 1; transform: none; transition: none; }
  .showcase-shot img { transition: none; }
  .cap-card, .stat, .chip { transition: none; }
}
