/* ===================================================================
   ANREX HUB - MODERN & PROFESSIONAL PORTFOLIO STYLESHEET
   =================================================================== */

:root {
  --port-primary: #1bbd36;
  --port-primary-dark: #15803d;
  --port-primary-light: #dcfce7;
  --port-primary-glow: rgba(27, 189, 54, 0.25);
  --port-navy: #0b1f3a;
  --port-slate: #1e293b;
  --port-muted: #64748b;
  --port-border: #e2e8f0;
  --port-card-bg: #ffffff;
  --port-bg-soft: #f8fafc;
  --port-radius-sm: 8px;
  --port-radius-md: 14px;
  --port-radius-lg: 20px;
  --port-radius-xl: 28px;
  --port-shadow-sm: 0 4px 6px -1px rgba(11, 31, 58, 0.05);
  --port-shadow-md: 0 10px 25px -5px rgba(11, 31, 58, 0.08), 0 4px 6px -2px rgba(11, 31, 58, 0.04);
  --port-shadow-lg: 0 20px 40px -10px rgba(11, 31, 58, 0.14);
  --port-shadow-hover: 0 28px 60px -12px rgba(11, 31, 58, 0.18), 0 0 0 1px rgba(27, 189, 54, 0.25);
  --port-transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Portfolio Page Wrapper */
.portfolio-page-wrapper {
  background-color: #f8fafc;
  padding: 60px 0 90px;
  position: relative;
}

/* ===================================================================
   STATS BAR (Under Page Hero)
   =================================================================== */
.portfolio-stats-strip {
  margin-top: -35px;
  margin-bottom: 50px;
  position: relative;
  z-index: 10;
}

.portfolio-stats-card {
  background: #ffffff;
  border: 1px solid var(--port-border);
  border-radius: var(--port-radius-lg);
  box-shadow: var(--port-shadow-md);
  padding: 24px 30px;
}

.portfolio-stat-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 15px;
}

.stat-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.stat-icon-wrap.green { background: #dcfce7; color: #16a34a; }
.stat-icon-wrap.blue { background: #e0f2fe; color: #0284c7; }
.stat-icon-wrap.purple { background: #f3e8ff; color: #9333ea; }
.stat-icon-wrap.amber { background: #fef3c7; color: #d97706; }

.stat-details h4 {
  font-size: 28px;
  font-weight: 800;
  color: var(--port-navy);
  margin: 0;
  line-height: 1.1;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.stat-details p {
  font-size: 13px;
  font-weight: 600;
  color: var(--port-muted);
  margin: 4px 0 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===================================================================
   CATEGORY FILTER BAR
   =================================================================== */
.portfolio-filter-section {
  text-align: center;
  margin-bottom: 45px;
}

.portfolio-filter-nav {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  background: #ffffff;
  padding: 8px 12px;
  border-radius: 60px;
  border: 1px solid var(--port-border);
  box-shadow: var(--port-shadow-sm);
}

.portfolio-filter-btn {
  background: transparent;
  border: none;
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: var(--port-slate);
  cursor: pointer;
  transition: var(--port-transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.portfolio-filter-btn:hover {
  color: var(--port-primary);
  background: #f1f5f9;
}

.portfolio-filter-btn.active {
  background: var(--port-navy);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(11, 31, 58, 0.25);
}

.portfolio-filter-btn .count-badge {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.2);
  color: inherit;
  padding: 2px 7px;
  border-radius: 12px;
  font-weight: 700;
}

.portfolio-filter-btn:not(.active) .count-badge {
  background: #e2e8f0;
  color: #475569;
}

/* ===================================================================
   PORTFOLIO CARDS GRID
   =================================================================== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 60px;
}

.portfolio-item-card {
  background: var(--port-card-bg);
  border: 1px solid var(--port-border);
  border-radius: var(--port-radius-xl);
  overflow: hidden;
  box-shadow: var(--port-shadow-md);
  transition: var(--port-transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.portfolio-item-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--port-shadow-hover);
  border-color: rgba(27, 189, 54, 0.35);
}

/* Thumbnail Section */
.portfolio-thumb-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: 250px;
  background: #0b1728;
}

.portfolio-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.portfolio-item-card:hover .portfolio-thumb-img {
  transform: scale(1.05);
}

.portfolio-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.7) 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px 24px;
}

.portfolio-badges-bar {
  position: absolute;
  top: 18px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.portfolio-category-pill {
  background: rgba(11, 31, 58, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.portfolio-status-pill {
  background: rgba(27, 189, 54, 0.92);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background: #ffffff;
  border-radius: 50%;
  display: inline-block;
  animation: pulseGreen 1.8s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

/* Card Content */
.portfolio-card-content {
  padding: 28px 30px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.portfolio-card-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--port-navy);
  margin-bottom: 6px;
  line-height: 1.3;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.portfolio-card-subtitle {
  font-size: 13px;
  font-weight: 600;
  color: #0284c7;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 14px;
  display: block;
}

.portfolio-card-description {
  font-size: 14px;
  line-height: 1.65;
  color: #475569;
  margin-bottom: 20px;
}

/* Key Impact Metrics Box */
.portfolio-impact-metrics {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.metric-pill {
  flex: 1;
  min-width: 140px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.metric-pill i {
  font-size: 18px;
  color: var(--port-primary);
}

.metric-pill-text strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--port-navy);
  line-height: 1.1;
}

.metric-pill-text span {
  font-size: 11px;
  color: var(--port-muted);
  font-weight: 600;
  text-transform: uppercase;
}

/* Tech Stack Tags */
.portfolio-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}

.portfolio-tech-tag {
  background: #f1f5f9;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.portfolio-item-card:hover .portfolio-tech-tag {
  background: #e2e8f0;
  color: #0f172a;
}

/* Card Action Footer */
.portfolio-card-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.portfolio-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--port-primary);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  background: rgba(27, 189, 54, 0.08);
  padding: 9px 18px;
  border-radius: 30px;
}

.portfolio-view-btn:hover {
  background: var(--port-primary);
  color: #ffffff;
  transform: translateX(3px);
}

.portfolio-client-info {
  font-size: 12px;
  color: var(--port-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ===================================================================
   ENGINEERING PROCESS / HOW WE DELIVER
   =================================================================== */
.portfolio-process-section {
  padding: 80px 0;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.process-step-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.process-step-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--port-radius-lg);
  padding: 30px 24px;
  position: relative;
  transition: var(--port-transition);
}

.process-step-item:hover {
  transform: translateY(-6px);
  border-color: rgba(27, 189, 54, 0.4);
  box-shadow: var(--port-shadow-md);
  background: #ffffff;
}

.process-step-number {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 32px;
  font-weight: 900;
  color: #e2e8f0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1;
}

.process-step-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: #ffffff;
  color: var(--port-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
  border: 1px solid #e2e8f0;
}

.process-step-item:hover .process-step-icon {
  background: var(--port-primary);
  color: #ffffff;
}

.process-step-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--port-navy);
  margin-bottom: 10px;
}

.process-step-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #64748b;
  margin: 0;
}

/* ===================================================================
   TECHNOLOGY MATRIX SECTION
   =================================================================== */
.portfolio-tech-matrix-section {
  padding: 80px 0;
  background: #f8fafc;
}

.tech-matrix-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--port-radius-lg);
  padding: 28px 24px;
  box-shadow: var(--port-shadow-sm);
  height: 100%;
}

.tech-matrix-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.tech-matrix-header i {
  font-size: 22px;
  color: var(--port-primary);
}

.tech-matrix-header h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--port-navy);
  margin: 0;
}

.tech-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-pill-badge {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.tech-pill-badge:hover {
  background: #1bbd36;
  color: #ffffff;
  border-color: #1bbd36;
}

/* ===================================================================
   PORTFOLIO CONSULTATION CTA
   =================================================================== */
.portfolio-cta-banner {
  background: linear-gradient(135deg, #0b1f3a 0%, #1e293b 100%);
  border-radius: var(--port-radius-xl);
  padding: 60px 48px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--port-shadow-lg);
  color: #ffffff;
  margin-top: 30px;
}

.portfolio-cta-banner::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(27, 189, 54, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.portfolio-cta-banner h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 14px;
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.portfolio-cta-banner p {
  font-size: 16px;
  color: #cbd5e1;
  max-width: 650px;
  margin-bottom: 30px;
  line-height: 1.6;
}

.cta-action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.cta-btn-primary {
  background: var(--port-primary);
  color: #ffffff;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--port-transition);
  box-shadow: 0 10px 25px rgba(27, 189, 54, 0.35);
}

.cta-btn-primary:hover {
  background: #16a34a;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(27, 189, 54, 0.45);
}

.cta-btn-whatsapp {
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid rgba(37, 211, 102, 0.4);
  color: #2ae149;
  padding: 14px 26px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--port-transition);
}

.cta-btn-whatsapp:hover {
  background: #25d366;
  color: #ffffff;
  transform: translateY(-2px);
}

/* ===================================================================
   RESPONSIVE BREAKPOINTS
   =================================================================== */
@media (max-width: 991px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .process-step-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .portfolio-stats-strip {
    margin-top: 20px;
  }
  .portfolio-cta-banner {
    padding: 40px 28px;
  }
  .portfolio-cta-banner h2 {
    font-size: 26px;
  }
}

@media (max-width: 767px) {
  .portfolio-filter-nav {
    border-radius: 18px;
  }
  .portfolio-filter-btn {
    padding: 8px 14px;
    font-size: 13px;
  }
  .process-step-grid {
    grid-template-columns: 1fr;
  }
  .portfolio-impact-metrics {
    flex-direction: column;
  }
  .portfolio-card-content {
    padding: 20px;
  }
}