@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

/* Reset outer wrapper from welcome.html so there is no double border */
.client-details-panel {
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

/* ================================================================
   MAIN CLIENT CASE STUDY CARD (Spanish Site Aesthetic)
   ================================================================ */
.client-detail-card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.92) 0%, rgba(8, 12, 20, 0.97) 100%);
  border: 1px solid #1e2d4a;
  border-radius: 20px;
  padding: 32px;
  color: #f8fafc;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75);
  position: relative;
  overflow: hidden;
  text-align: left;
}

/* ================================================================
   HEADER SECTION
   ================================================================ */
.client-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid rgba(30, 45, 74, 0.85);
  padding-bottom: 24px;
  margin-bottom: 24px;
  width: 100%;
  flex-wrap: wrap;
}

.client-header-left {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1 1 auto;
}

.client-logo-wrapper {
  width: 84px;
  height: 84px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(0, 229, 255, 0.25);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.client-logo-wrapper:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: #00e5ff;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

.client-logo-header {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
  background-color: #ffffff;
  transition: transform 0.3s ease;
}

.client-logo-header[onclick] {
  cursor: pointer;
}

.client-title-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.client-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', 'Share Tech Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #00e5ff;
}

.client-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #00e5ff;
  box-shadow: 0 0 8px #00e5ff;
}

.client-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 26px;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
}

.client-subtitle {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 16px;
  background: linear-gradient(135deg, #00e5ff 0%, #38bdf8 50%, #00ff88 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  margin-top: 2px;
}

.client-visit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(0, 229, 255, 0.3);
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.client-visit-btn:hover {
  background: rgba(0, 229, 255, 0.15);
  border-color: #00e5ff;
  color: #ffffff;
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.25);
  transform: translateY(-1px);
}

/* ================================================================
   EXECUTIVE SUMMARY BANNER
   ================================================================ */
.client-summary-card {
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.07) 0%, rgba(15, 23, 42, 0.65) 100%);
  border: 1px solid rgba(30, 45, 74, 0.9);
  border-left: 4px solid #00e5ff;
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 28px;
}

.client-summary-label {
  font-family: 'JetBrains Mono', 'Share Tech Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #00e5ff;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.client-summary {
  font-family: 'Inter', sans-serif;
  font-size: 15.5px;
  line-height: 1.7;
  color: #cbd5e1;
  margin: 0;
  text-align: left;
}

.client-summary strong {
  color: #ffffff;
  font-weight: 600;
}

/* ================================================================
   SECTION HEADERS (Architecture & Impact)
   ================================================================ */
.client-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.client-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', 'Share Tech Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.client-section-badge.cyan {
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.25);
  color: #00e5ff;
}

.client-section-badge.green {
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.28);
  color: #00ff88;
}

.client-section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(30, 45, 74, 0.9), transparent);
}

/* ================================================================
   ARCHITECTURAL PILLARS GRID (01, 02, 03 Cards like ES site)
   ================================================================ */
.client-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 30px;
}

.client-pillar-card {
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid #1e2d4a;
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.client-pillar-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 229, 255, 0.45);
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 229, 255, 0.08);
}

.client-pillar-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}

.client-pillar-num.num-cyan {
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: #00e5ff;
}

.client-pillar-num.num-green {
  background: rgba(0, 255, 136, 0.12);
  border: 1px solid rgba(0, 255, 136, 0.3);
  color: #00ff88;
}

.client-pillar-num.num-orange {
  background: rgba(255, 122, 0, 0.12);
  border: 1px solid rgba(255, 122, 0, 0.3);
  color: #ff9e40;
}

.client-pillar-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin: 0;
}

.client-pillar-desc {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.65;
  color: #94a3b8;
  margin: 0;
}

/* ================================================================
   IMPACT SUMMARY GRID
   ================================================================ */
.client-impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}

.client-impact-card {
  background: linear-gradient(145deg, rgba(6, 78, 59, 0.14) 0%, rgba(15, 23, 42, 0.75) 100%);
  border: 1px solid rgba(0, 255, 136, 0.22);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.client-impact-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 255, 136, 0.5);
  box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.5), 0 0 18px rgba(0, 255, 136, 0.1);
}

.client-impact-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(0, 255, 136, 0.15);
  border: 1px solid rgba(0, 255, 136, 0.35);
  color: #00ff88;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.client-impact-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.client-impact-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.client-impact-desc {
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  line-height: 1.6;
  color: #cbd5e1;
  margin: 0;
}

/* ================================================================
   TECH ENVIRONMENT FOOTER PILLS
   ================================================================ */
.client-tech-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid rgba(30, 45, 74, 0.85);
}

.client-tech-label {
  font-family: 'JetBrains Mono', 'Share Tech Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
  margin-right: 6px;
}

.client-tech-pill {
  font-family: 'JetBrains Mono', 'Share Tech Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  color: #e2e8f0;
  background: rgba(30, 41, 59, 0.75);
  border: 1px solid rgba(51, 65, 85, 0.9);
  padding: 5px 12px;
  border-radius: 8px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.client-tech-pill:hover {
  border-color: rgba(0, 229, 255, 0.45);
  color: #00e5ff;
}

/* ================================================================
   RESPONSIVE BREAKPOINTS
   ================================================================ */
@media (max-width: 992px) {
  .client-pillars-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .client-detail-card {
    padding: 20px;
  }

  .client-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .client-header-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .client-title {
    font-size: 21px;
  }

  .client-subtitle {
    font-size: 15px;
  }

  .client-summary {
    font-size: 14.5px;
  }
}

@media (max-width: 600px) {
  .client-logo-wrapper {
    width: 68px;
    height: 68px;
  }

  .client-title {
    font-size: 19px;
  }
}
