/* ============================================================
   portfolio-page.css — SciencePreneur Website
   Styles for the Portfolio & Innovations page:
   Hero Tags, Stats Strip, Featured Innovation (Microscope Scanner),
   Platforms Grid, Patents Section, Publications Strip, CTA.
   ============================================================ */


/* ══════════════════════════════════════════════════════════════
   1. PAGE HERO — floating innovation tags (right side)
   ══════════════════════════════════════════════════════════════ */
.pf-hero-tags {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 300px;
}

.pf-hero-tag {
  padding: 10px 18px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-full);
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  backdrop-filter: blur(4px);
  transition: background 0.2s ease;
}

.pf-hero-tag:hover {
  background: rgba(255,255,255,0.12);
}


/* ══════════════════════════════════════════════════════════════
   2. STATS STRIP
   ══════════════════════════════════════════════════════════════ */
.pf-stats {
  padding: 40px 0;
  background: var(--primary-900);
}

.pf-stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.pf-stat-item {
  text-align: center;
  padding: 0 48px;
}

.pf-stat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 36px;
  color: var(--accent-300);
  line-height: 1;
  margin-bottom: 6px;
}

.pf-stat-label {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
}

.pf-stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}


/* ══════════════════════════════════════════════════════════════
   SHARED: Section headers
   ══════════════════════════════════════════════════════════════ */
.pf-section-header {
  text-align: center;
  margin-bottom: 52px;
}

.pf-section-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent-500);
  font-weight: 700;
  margin-bottom: 8px;
  display: block;
}

.pf-section-header h2 {
  font-family: var(--font-heading);
  font-size: 32px;
  color: var(--primary-900);
  margin: 0 0 12px;
}

.pf-section-sub {
  font-size: 15px;
  color: var(--neutral-500);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}


/* ══════════════════════════════════════════════════════════════
   3. FEATURED INNOVATION — Digital Microscope Scanner
   ══════════════════════════════════════════════════════════════ */
.pf-feature {
  padding: 88px 0;
  background: var(--white);
}

.pf-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

/* Photos column */
.pf-feature-photos {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pf-feature-photo-main {
  width: 100%;
  height: 280px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--neutral-100);
}

.pf-feature-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

.pf-feature-photo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pf-feature-img-sm {
  width: 100%;
  height: 140px;
  object-fit: cover;
  object-position: center 40%;
  border-radius: var(--radius-lg);
  display: block;
  background: var(--neutral-100);
}

/* Info column */
.pf-feature-badge-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.pf-badge {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pf-badge--patent {
  background: var(--primary-50);
  color: var(--primary-700);
  border: 1px solid var(--primary-200);
}

.pf-badge--exhibited {
  background: var(--accent-50);
  color: var(--accent-700);
  border: 1px solid var(--accent-200);
}

.pf-feature-title {
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--primary-900);
  margin: 0 0 16px;
  line-height: 1.3;
}

.pf-feature-desc {
  font-size: 15px;
  color: var(--neutral-600);
  line-height: 1.8;
  margin: 0 0 24px;
}

.pf-feature-specs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: var(--neutral-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--neutral-100);
  margin-bottom: 24px;
}

.pf-spec-row {
  display: flex;
  gap: 12px;
  font-size: 13px;
}

.pf-spec-label {
  color: var(--neutral-400);
  font-weight: 600;
  min-width: 110px;
  flex-shrink: 0;
}

.pf-spec-value {
  color: var(--neutral-700);
}

.pf-feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pf-tag {
  padding: 5px 12px;
  background: var(--primary-900);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 500;
}


/* ══════════════════════════════════════════════════════════════
   4. PLATFORMS & DIGITAL PRODUCTS
   ══════════════════════════════════════════════════════════════ */
.pf-platforms {
  padding: 88px 0;
  background: var(--neutral-50);
}

.pf-platforms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pf-platform-card {
  background: var(--white);
  border: 1px solid var(--neutral-100);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 4px solid var(--primary-300);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.pf-platform-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.pf-platform-card--inpl      { border-top-color: var(--green-600); }
.pf-platform-card--citmed   { border-top-color: var(--accent-500); }
.pf-platform-card--dermoree { border-top-color: var(--gold-500); }
.pf-platform-card--mangrovita { border-top-color: #3a7d44; }

/* Mangrovita logo */
.pf-platform-logo {
  margin-bottom: 8px;
}
.pf-platform-logo img {
  max-width: 160px;
  height: auto;
  object-fit: contain;
}

/* Product thumbnails strip */
.pf-platform-products {
  display: flex;
  gap: 12px;
  margin: 12px 0;
}
.pf-product-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.pf-product-thumb img {
  width: 100%;
  max-width: 90px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--neutral-200);
}
.pf-product-thumb span {
  font-size: 11px;
  color: var(--neutral-500);
  text-align: center;
  line-height: 1.3;
}

.pf-platform-icon {
  font-size: 32px;
  line-height: 1;
}

.pf-platform-abbr {
  font-family: var(--font-heading);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--neutral-400);
  font-weight: 700;
}

.pf-platform-name {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--primary-900);
  margin: 0;
  line-height: 1.3;
}

.pf-platform-desc {
  font-size: 14px;
  color: var(--neutral-500);
  line-height: 1.7;
  margin: 0;
  flex: 1;
}

.pf-platform-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pf-platform-tag {
  padding: 4px 10px;
  background: var(--neutral-100);
  color: var(--neutral-600);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 500;
}

.pf-platform-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pf-platform-status {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pf-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pf-status-dot--active  { background: var(--primary-400); }
.pf-status-dot--live    { background: var(--green-500); }
.pf-status-dot--new     { background: var(--gold-500); }

.pf-status-text {
  font-size: 12px;
  color: var(--neutral-500);
  font-weight: 500;
}

.pf-platform-link {
  font-size: 13px;
  color: var(--accent-500);
  text-decoration: none;
  font-weight: 600;
}

.pf-platform-link:hover {
  color: var(--accent-400);
  text-decoration: underline;
}


/* ══════════════════════════════════════════════════════════════
   5. PATENTS SECTION
   ══════════════════════════════════════════════════════════════ */
.pf-patents {
  padding: 88px 0;
  background: var(--white);
}

.pf-patents-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.pf-patent-group {
  background: var(--neutral-50);
  border: 1px solid var(--neutral-100);
  border-radius: var(--radius-xl);
  padding: 32px;
}

.pf-patent-group-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--neutral-200);
}

.pf-patent-group-icon {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.pf-patent-group-header h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--primary-900);
  margin: 0 0 4px;
  line-height: 1.3;
}

.pf-patent-group-sub {
  font-size: 13px;
  color: var(--neutral-500);
  margin: 0;
}

.pf-patent-count {
  margin-left: auto;
  font-family: var(--font-heading);
  font-size: 32px;
  color: var(--primary-200);
  flex-shrink: 0;
  line-height: 1;
}

.pf-patent-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pf-patent-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--neutral-100);
}

.pf-patent-num {
  font-size: 11px;
  color: var(--neutral-400);
  font-weight: 700;
  min-width: 28px;
  padding-top: 2px;
  flex-shrink: 0;
}

.pf-patent-detail {
  flex: 1;
}

.pf-patent-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-800);
  margin: 0 0 3px;
}

.pf-patent-meta {
  font-size: 11px;
  color: var(--neutral-400);
  margin: 0;
}

.pf-patent-badge {
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.pf-patent-badge--granted    { background: var(--green-50);   color: var(--green-700);   border: 1px solid var(--green-200); }
.pf-patent-badge--registered { background: var(--primary-50); color: var(--primary-600); border: 1px solid var(--primary-200); }
.pf-patent-badge--us         { background: #EFF6FF; color: #1D4ED8; border: 1px solid #BFDBFE; }


/* ══════════════════════════════════════════════════════════════
   6. PUBLICATIONS STRIP
   ══════════════════════════════════════════════════════════════ */
.pf-publications {
  padding: 80px 0;
  background: var(--primary-900);
}

.pf-pub-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.pf-publications .pf-section-eyebrow {
  color: var(--accent-300);
}

.pf-publications h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--white);
  margin: 0 0 16px;
}

.pf-pub-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
  margin: 0 0 28px;
}

.pf-pub-metrics {
  display: flex;
  gap: 28px;
}

.pf-pub-metric {
  text-align: center;
}

.pf-pub-metric-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--accent-300);
  line-height: 1;
}

.pf-pub-metric-label {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pf-pub-right {
  display: flex;
  justify-content: center;
}

.pf-pub-highlight {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  padding: 40px 48px;
  text-align: center;
  backdrop-filter: blur(4px);
}

.pf-pub-count {
  font-family: var(--font-heading);
  font-size: 72px;
  color: var(--accent-300);
  line-height: 1;
  margin-bottom: 8px;
}

.pf-pub-count-label {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin: 0 0 20px;
  line-height: 1.5;
  max-width: 220px;
  margin-left: auto;
  margin-right: auto;
}

.pf-pub-journals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.pf-journal-tag {
  padding: 5px 12px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.75);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
}


/* ══════════════════════════════════════════════════════════════
   7. FINAL CTA
   ══════════════════════════════════════════════════════════════ */
.pf-cta {
  padding: 80px 0;
  background: var(--neutral-50);
  border-top: 1px solid var(--neutral-100);
}

.pf-cta-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 0 24px;
}

.pf-cta-eyebrow {
  margin-bottom: 12px;
}

.pf-cta-inner h2 {
  font-family: var(--font-heading);
  font-size: 32px;
  color: var(--primary-900);
  margin: 0 0 16px;
}

.pf-cta-inner p {
  font-size: 16px;
  color: var(--neutral-500);
  line-height: 1.7;
  margin: 0 0 32px;
}

.pf-cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.pf-cta-btn-primary {
  display: inline-block;
  padding: 13px 28px;
  background: var(--primary-600);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.pf-cta-btn-primary:hover {
  background: var(--primary-500);
  transform: translateY(-2px);
  color: var(--white);
}

.pf-cta-btn-secondary {
  display: inline-block;
  padding: 13px 28px;
  background: transparent;
  color: var(--primary-600);
  border: 2px solid var(--primary-200);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.pf-cta-btn-secondary:hover {
  border-color: var(--primary-400);
  color: var(--primary-500);
}


/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 992px) {
  .pf-platforms-grid {
    grid-template-columns: 1fr 1fr;
  }
  .pf-platform-card--dermoree {
    grid-column: 1 / -1;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .pf-stats-grid {
    gap: 0;
  }
  .pf-stat-item {
    padding: 16px 24px;
  }
  .pf-stat-divider {
    display: none;
  }
  .pf-feature-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .pf-platforms-grid {
    grid-template-columns: 1fr;
  }
  .pf-platform-card--dermoree {
    grid-column: auto;
    max-width: none;
  }
  .pf-patents-grid {
    grid-template-columns: 1fr;
  }
  .pf-pub-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .pf-section-header h2 {
    font-size: 26px;
  }
  .pf-pub-count {
    font-size: 56px;
  }
}

/* ── Verified profile links (publications section) ── */
.pf-pub-profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.pf-profile-pill {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-500, #2a5f8a);
  text-decoration: none;
  background: rgba(42, 95, 138, 0.07);
  border: 1px solid rgba(42, 95, 138, 0.20);
  border-radius: 20px;
  padding: 5px 14px;
  transition: background 0.2s, color 0.2s;
}

.pf-profile-pill:hover {
  background: var(--accent-500, #2a5f8a);
  color: #fff;
  text-decoration: none;
}


/* ══════════════════════════════════════════════════════════════
   GALLERY — International Activities (Batch 16)
   ══════════════════════════════════════════════════════════════ */
.pf-gallery {
  padding: 80px 0;
  background: var(--neutral-50, #f8f9fa);
}
.pf-gallery-group {
  margin-bottom: 48px;
}
.pf-gallery-group:last-child {
  margin-bottom: 0;
}
.pf-gallery-group-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-700, #1a3d5c);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-200, #bfdaf5);
}
.pf-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.pf-gallery-item {
  margin: 0;
}
.pf-gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  transition: transform 0.3s ease;
}
.pf-gallery-item img:hover {
  transform: scale(1.03);
}
.pf-gallery-item figcaption {
  font-size: 12px;
  color: var(--neutral-500, #6b7280);
  margin-top: 6px;
  text-align: center;
  line-height: 1.4;
}

/* Mangrovita product renders row */
.pf-product-renders {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.pf-product-renders img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--neutral-200, #e5e7eb);
}

@media (max-width: 992px) {
  .pf-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .pf-gallery {
    padding: 48px 0;
  }
  .pf-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pf-gallery-item img {
    height: 160px;
  }
  .pf-product-renders {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Patent Description + Link (Batch 20) ───────────────────── */
.pf-patent-desc {
  font-size: 12px;
  color: var(--neutral-500, #6b7280);
  line-height: 1.55;
  margin: 5px 0 0;
}

.pf-patent-link {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-500, #2a7fba);
  text-decoration: none;
  white-space: nowrap;
}

.pf-patent-link:hover {
  text-decoration: underline;
  color: var(--accent-400, #3a9fd4);
}

/* New badge — Published (US published application) */
.pf-patent-badge--us-pub {
  background: #F0F7FF;
  color: #2563EB;
  border: 1px solid #93C5FD;
}

/* ── Hatem Publications Strip in pf-pub-right (Batch 20) ─────── */
.pf-pub-hatem {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--neutral-100, #f3f4f6);
}

.pf-pub-hatem-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-600, #1a5a7a);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 12px;
}

.pf-pub-hatem-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pf-pub-hatem-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 8px 10px;
  background: var(--neutral-50, #f9fafb);
  border-left: 3px solid var(--accent-200, #a8d4ec);
  border-radius: 0 6px 6px 0;
}

.pf-pub-hatem-icon {
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}

.pf-pub-hatem-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-800, #12375e);
  font-style: italic;
  display: block;
  line-height: 1.4;
}

.pf-pub-hatem-meta {
  font-size: 11px;
  color: var(--neutral-400, #9ca3af);
  display: block;
  margin-top: 2px;
}

/* Responsive: stack pf-pub-right items nicely on mobile */
@media (max-width: 768px) {
  .pf-pub-hatem {
    margin-top: 20px;
    padding-top: 16px;
  }
  .pf-patent-desc {
    font-size: 11px;
  }
}
