/* ── OVERLAY ── */
#modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

#modal-overlay.modal-open {
  opacity: 1;
  pointer-events: all;
}

#modal-overlay.modal-hidden {
  display: none;
}

/* ── PANEL ── */
#modal-panel {
  width: min(720px, 100%);
  max-height: 88vh;
  background: #ffffff;
  overflow-y: auto;
  border-radius: 20px;
  padding: 40px 40px 48px;
  position: relative;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.22);
  outline: none;
  transform: scale(0.93) translateY(28px);
  transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
  scrollbar-width: thin;
  scrollbar-color: #E2E8F0 transparent;
}

#modal-overlay.modal-open #modal-panel {
  transform: scale(1) translateY(0);
}

/* ── CLOSE BUTTON ── */
#modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  border-radius: 10px;
  font-size: 13px;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
  z-index: 5;
}

#modal-close:hover {
  background: #F1F5F9;
  color: #0F172A;
  border-color: #CBD5E1;
}

/* ════════════════════════════════════════
   EXPERIENCE MODAL LAYOUT
   ════════════════════════════════════════ */

/* ── TITLE PILL (matches timeline pill color) ── */
.modal-title-pill {
  display: inline-block;
  border-radius: 100px;
  padding: 10px 22px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  margin: 0 auto 8px;
  white-space: pre-line;
  line-height: 1.35;
}

.modal-header {
  text-align: center;
  margin-bottom: 28px;
}

.modal-years {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  color: #94A3B8;
  font-weight: 500;
  margin-top: 6px;
}

/* ── SECTION LABEL ── */
.modal-section-label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94A3B8;
  margin-bottom: 12px;
}

/* ── ROLE SUMMARY ── */
.modal-summary {
  margin-bottom: 32px;
}

.modal-summary p {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #0F172A;
  line-height: 1.65;
  text-align: center;
  margin-bottom: 10px;
}

/* ── DIVIDER ── */
.modal-divider {
  height: 1px;
  background: #F1F5F9;
  margin: 28px 0;
}

/* ── VISUAL PROOF GALLERY ── */
.modal-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

.gallery-item {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #CBD5E1;
  font-size: 11px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: default;
}

/* ── RESULTS & IMPACT ── */
.modal-results {
  margin-bottom: 28px;
}

.modal-results ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-results li {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  color: #334155;
  line-height: 1.5;
  padding: 10px 14px;
  background: #F8FAFC;
  border-radius: 10px;
  border-left: 3px solid #F97316;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.modal-results li strong {
  font-size: 16px;
  color: #0F172A;
  font-weight: 800;
}

/* ── TOOLS SECTION ── */
.modal-tools-section {
  border-radius: 16px;
  padding: 20px 22px;
}

.modal-tools-section .modal-section-label {
  margin-bottom: 14px;
}

.modal-tools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tool-tag {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: #0F172A;
}

/* ── LINKS ── */
.modal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.modal-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: #F97316;
  text-decoration: none;
  padding: 6px 14px;
  border: 1.5px solid #FED7AA;
  border-radius: 100px;
  transition: all 0.15s;
}

.modal-links a:hover {
  background: #FFF7ED;
  border-color: #F97316;
}

.modal-links a::before {
  content: '↗';
  font-size: 11px;
}

/* ════════════════════════════════════════
   CLIENT SHOWCASE MODAL (Newa / Women in AI)
   ════════════════════════════════════════ */

.clients-modal-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: 8px;
}

.clients-modal-desc {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  color: #94A3B8;
  text-align: center;
  margin-bottom: 28px;
  line-height: 1.6;
}

.clients-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Each client section ── */
.client-section {
  border-radius: 16px;
  padding: 22px 22px 18px;
  overflow: hidden;
}

.client-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.client-name {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #0F172A;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.client-logo {
  height: 48px;
  max-width: 120px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 8px;
}

.client-logo-placeholder {
  width: 80px;
  height: 48px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
  border: 1.5px dashed rgba(15, 23, 42, 0.12);
  flex-shrink: 0;
}

.client-stats {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 100px;
  padding: 4px 12px;
  display: inline-block;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}

/* ── Horizontal scrolling image gallery per client ── */
.client-gallery {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
}

.client-gallery-item {
  flex-shrink: 0;
  width: 200px;
  height: 140px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.6);
  border: 1.5px solid rgba(15, 23, 42, 0.08);
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.client-gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12);
}

.client-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.client-gallery-item.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(15, 23, 42, 0.2);
  font-size: 11px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  cursor: default;
  border: 1.5px dashed rgba(15, 23, 42, 0.15);
  background: rgba(255, 255, 255, 0.4);
}

/* ════════════════════════════════════════
   IMAGE LIGHTBOX (click to zoom)
   ════════════════════════════════════════ */
#img-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  animation: lb-in 0.2s ease;
}

#img-lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
  object-fit: contain;
}

@keyframes lb-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ════════════════════════════════════════
   BLOG MODAL (Blogs & Reviews)
   ════════════════════════════════════════ */
#modal-content h2 {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
  color: #0F172A;
}

.modal-body-text {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: #475569;
  margin-bottom: 24px;
}

.modal-body-text ul {
  padding-left: 18px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-body-text li {
  list-style: disc;
  color: #475569;
  font-size: 15px;
  line-height: 1.6;
}

/* ── BLOG GRID ── */
.blog-posts-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.blog-post-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 14px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 14px;
  cursor: pointer;
  text-align: left;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}

.blog-post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  border-color: #F97316;
}

.blog-card-img {
  width: 100px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  background: #E2E8F0;
  flex-shrink: 0;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.blog-card-title {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.4;
}

.blog-card-meta {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  color: #94A3B8;
}

/* ── SINGLE BLOG POST ── */
.blog-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #64748B;
  background: #F1F5F9;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  margin-bottom: 20px;
  transition: background 0.15s;
}

.blog-back-btn:hover {
  background: #E2E8F0;
  color: #0F172A;
}

.blog-post-hero {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 20px;
}

.blog-post-body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.8;
  color: #334155;
}

.blog-post-body h3 {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #0F172A;
  margin: 24px 0 10px;
}

.blog-post-body p { margin-bottom: 14px; }

.blog-post-body ul {
  margin: 0 0 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.blog-post-body li { line-height: 1.6; }

.blog-post-body img {
  width: 100%;
  border-radius: 12px;
  margin: 16px 0;
  object-fit: cover;
}

.blog-post-body blockquote {
  border-left: 3px solid #F97316;
  margin: 20px 0;
  padding: 10px 18px;
  font-style: italic;
  color: #64748B;
  background: #FFF7ED;
  border-radius: 0 10px 10px 0;
  font-size: 14px;
  line-height: 1.7;
}

.blog-post-body strong { color: #0F172A; font-weight: 700; }
