/* Visiblytics - Portfolio Hub Styles */

/* =============================================
   PORTFOLIO PAGE — Visiblytics Theme Match
   ============================================= */
.pf-hero {
  background: linear-gradient(160deg, #f0f6ff 0%, #ffffff 50%, #f0faff 100%);
  padding: 40px 5% 40px;
  position: relative; overflow: hidden;
}
.pf-hero::before {
  content: ""; position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(10,106,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* Centering the container text alignment */
.pf-hero-inner { 
  max-width: 1200px; 
  margin: 0 auto; 
  text-align: center;
}

/* Centering the breadcrumb flex container */
.pf-breadcrumb {
  font-size: 13px; color: #8896aa; margin-bottom: 24px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  justify-content: center;
}
.pf-breadcrumb a { color: #0a6aff; text-decoration: none; }
.pf-breadcrumb a:hover { text-decoration: underline; }

/* Centering the badge */
.pf-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: #e8f0ff; color: #0a6aff;
  padding: 6px 16px; border-radius: 50px;
  font-size: 13px; font-weight: 500;
  margin: 0 auto 20px;
  border: 1px solid #c5d9ff;
}

/* Centering the H1 and its max-width */
.pf-hero h1 {
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 700; color: #0f1b2d;
  line-height: 1.15; letter-spacing: -1px;
  margin: 0 auto 20px; max-width: 720px;
  text-align: center;
}
.pf-hero h1 span {
  background: linear-gradient(135deg, #0a6aff, #00b4d8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Centering the Subtitle and its max-width */
.pf-hero-sub {
  font-size: 17px; color: #4a5568;
  max-width: 1000px; line-height: 1.7; 
  margin: 0 auto 32px;
  text-align: center;
}

/* Centering the flex trust badges row */
.pf-trust-row { 
  display: flex; 
  gap: 24px; 
  flex-wrap: wrap; 
  justify-content: center;
}
.pf-trust-item { font-size: 15px; color: #4a5568; font-weight: 500; }

.pf-stats-bar { background: #0f1b2d; padding: 28px 5%; }
.pf-stats-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 20px;
}
.pf-stat { text-align: center; }
.pf-stat-num {
  font-size: clamp(22px, 2.8vw, 32px); font-weight: 700;
  color: #fff; letter-spacing: -0.5px; line-height: 1;
}
.pf-stat-label { font-size: 14px; color: rgba(255,255,255,0.5); margin-top: 5px; font-weight: 500; }
.pf-stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.12); }

.pf-section { padding: 40px 5%; background: #fff; }
.pf-alt { background: #f8f9fc; }
.pf-inner { max-width: 1200px; margin: 0 auto; }
.pf-narrow { max-width: 780px; margin: 0 auto; }
.pf-section-label {
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: #0a6aff; margin-bottom: 12px;
}
.pf-section h2 {
  font-size: clamp(26px, 3vw, 38px); font-weight: 700;
  color: #0f1b2d; letter-spacing: -0.5px;
  margin-bottom: 14px; line-height: 1.2;
}
.pf-intro-text {
  font-size: 16px; color: #4a5568;
  max-width: 1200px; line-height: 1.7; margin-bottom: 44px;
}

.pf-case-card {
  background: #fff; border: 1px solid #e2e8f4;
  border-radius: 16px; padding: 36px;
  margin-bottom: 24px; transition: box-shadow 0.2s;
  position: relative; overflow: hidden;
}
.pf-case-card::before {
  content: ""; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #0a6aff, #00b4d8);
  transform: scaleX(0); transition: transform 0.3s;
}
.pf-case-card:hover::before { transform: scaleX(1); }
.pf-case-card:hover { box-shadow: 0 8px 40px rgba(10,30,60,0.10); }
.pf-featured {
  border-color: #c5d9ff;
  background: linear-gradient(160deg, #f8fbff 0%, #fff 100%);
}
.pf-featured::before { transform: scaleX(1); }
.pf-entity {
  border-color: #c5d9ff;
  background: linear-gradient(160deg, #f0f8ff 0%, #fff 100%);
}

.pf-case-header {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.pf-case-num {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: #0a6aff; margin-bottom: 10px;
}
.pf-case-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-tag {
  background: #f0f4ff; color: #3b5bdb;
  font-size: 14px; font-weight: 500;
  padding: 4px 12px; border-radius: 50px;
  border: 1px solid #dde5ff;
}
.pf-featured-badge {
  background: linear-gradient(135deg, #0a6aff, #00b4d8);
  color: white; font-size: 12px; font-weight: 600;
  padding: 5px 14px; border-radius: 50px;
}
.pf-new-badge {
  background: linear-gradient(135deg, #16a34a, #15803d) !important;
}

.pf-case-body {
  display: grid; grid-template-columns: 1fr 320px;
  gap: 40px; align-items: start;
}
.pf-case-info h3 {
  font-size: 24px; font-weight: 700; color: #0f1b2d;
  margin-bottom: 6px; letter-spacing: -0.3px;
}
.pf-case-industry {
  font-size: 14px; color: #8896aa;
  font-weight: 500; margin-bottom: 18px;
}
.pf-case-challenge, .pf-case-result {
  font-size: 16px; color: #4a5568;
  line-height: 1.7; margin-bottom: 14px;
}
.pf-case-challenge strong, .pf-case-result strong { color: #0f1b2d; }
.pf-case-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: #0a6aff;
  text-decoration: none; margin-top: 8px;
  padding: 10px 22px; border: 1.5px solid #c5d9ff;
  border-radius: 50px; transition: all 0.2s; background: #f0f6ff;
}
.pf-case-cta:hover {
  background: #0a6aff; color: white !important;
  border-color: #0a6aff; transform: translateY(-2px);
}

.pf-case-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pf-metric-card {
  background: #f8f9fc; border: 1px solid #e2e8f4;
  border-radius: 12px; padding: 18px 16px;
  text-align: center; transition: all 0.2s;
}
.pf-metric-card:hover { background: #e8f0ff; border-color: #c5d9ff; }
.pf-metric-num {
  font-size: 22px; font-weight: 700; color: #0a6aff;
  line-height: 1.1; letter-spacing: -0.5px; margin-bottom: 5px;
}
.pf-metric-label { font-size: 14px; color: #4a5568; line-height: 1.4; font-weight: 500; }

.pf-industries-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.pf-industry {
  background: #fff; border: 1px solid #e2e8f4;
  color: #0f1b2d; font-size: 14px; font-weight: 500;
  padding: 10px 20px; border-radius: 50px; transition: all 0.2s;
}
.pf-industry:hover { background: #e8f0ff; border-color: #c5d9ff; color: #0a6aff; }

.pf-cta-section {
  background: linear-gradient(135deg, #0a6aff 0%, #0052cc 50%, #003d99 100%);
  padding: 40px 5%;
}
.pf-cta-section h2 {
  font-size: clamp(26px, 3vw, 38px); font-weight: 700;
  color: white; margin-bottom: 16px; letter-spacing: -0.5px;
}
.pf-cta-section p {
  font-size: 16px; color: rgba(255,255,255,0.82);
  max-width: 1000px; margin: 0 auto 28px; line-height: 1.7;
}
.pf-cta-btns {
  display: flex; gap: 14px;
  justify-content: center; flex-wrap: wrap; margin-bottom: 24px;
}
.pf-btn-primary {
  background: white; color: #0a6aff !important;
  padding: 14px 32px; border-radius: 50px;
  font-size: 15px; font-weight: 600;
  text-decoration: none !important;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.2s; box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}
.pf-btn-primary:hover { background: #f0f6ff; transform: translateY(-2px); }
.pf-btn-secondary-white {
  background: rgba(255,255,255,0.12); color: white !important;
  padding: 14px 32px; border-radius: 50px;
  font-size: 15px; font-weight: 500;
  border: 1.5px solid rgba(255,255,255,0.35);
  transition: all 0.2s; display: inline-flex;
  align-items: center; gap: 8px; text-decoration: none !important;
}
.pf-btn-secondary-white:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }
.pf-cta-reassurance { font-size: 13px; color: rgba(255,255,255,0.6); margin: 0; }

@media (max-width: 880px) {
  .pf-case-body { grid-template-columns: 1fr; }
  .pf-case-metrics { grid-template-columns: repeat(2, 1fr); }
  .pf-stat-divider { display: none; }
  .pf-stats-inner { justify-content: center; gap: 28px; }
}
@media (max-width: 540px) {
  .pf-case-card { padding: 24px 18px; }
  .pf-case-metrics { grid-template-columns: 1fr 1fr; }
  .pf-trust-row { gap: 12px; }
  .pf-cta-btns { flex-direction: column; align-items: center; }
}
