/* =========================================================
   Future Developers — Portfolio Page styles
   ========================================================= */

/* =============== PORTFOLIO HERO =============== */
.portfolio-hero {
  position: relative;
  padding: 7rem 0 6.5rem;
  overflow: hidden;
  /* Sit above .section-alt ::before wave so stats row isn’t covered */
  z-index: 3;
}

.portfolio-hero-blob {
  position: absolute;
  top: -200px;
  right: -250px;
  width: 650px;
  height: 650px;
  background: linear-gradient(135deg, #0ea5e9 0%, #1e3a8a 100%);
  border-radius: 50%;
  opacity: 0.55;
  filter: blur(40px);
  pointer-events: none;
  animation: blobFloat 14s ease-in-out infinite;
  z-index: 0;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-head);
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
}
.breadcrumbs a {
  color: var(--muted);
  transition: color 0.2s ease;
}
.breadcrumbs a:hover {
  color: #fff;
}
.breadcrumbs span[aria-hidden] {
  color: var(--muted-2);
}

.portfolio-hero-head {
  max-width: 820px;
  position: relative;
  z-index: 1;
}
.portfolio-hero-head .chip {
  margin-bottom: 1rem;
}
.portfolio-hero-head h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lede {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  color: var(--muted);
  line-height: 1.65;
  max-width: 62ch;
}

.portfolio-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 4rem;
  padding: 3rem 0 0.75rem;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.portfolio-stats .stat {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 0;
}
.portfolio-stats strong {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
}
.portfolio-stats strong em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.6em;
  font-weight: 500;
}
.portfolio-stats span {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.35;
}

/* =============== FILTER BAR =============== */
.portfolio-filter-wrap {
  position: sticky;
  top: 72px;
  z-index: 20;
  padding: 1.5rem 0;
  background: rgba(12, 10, 26, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.portfolio-filter {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
}
.portfolio-filter::-webkit-scrollbar {
  display: none;
}
.filter-btn {
  flex-shrink: 0;
  padding: 0.6rem 1.2rem;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: all 0.2s ease;
  cursor: pointer;
}
.filter-btn:hover {
  color: #fff;
  border-color: var(--border-strong);
}
.filter-btn.is-active {
  color: #fff;
  background: var(--grad-primary);
  border-color: transparent;
  box-shadow: 0 10px 30px -10px rgba(14, 165, 233, 0.5);
}

/* =============== PROJECT GRID =============== */
.project-gallery {
  padding: 6rem 0;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.work-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  text-decoration: none;
  color: inherit;
}
.work-card:hover {
  transform: translateY(-6px);
  border-color: rgba(14, 165, 233, 0.4);
  box-shadow: 0 25px 50px -20px rgba(14, 165, 233, 0.25);
}
.work-card.is-hidden {
  display: none;
}
.work-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.work-card:hover .work-thumb img {
  transform: scale(1.08);
}
.work-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 10, 26, 0) 40%, rgba(12, 10, 26, 0.9) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.work-card:hover .work-overlay {
  opacity: 1;
}
.view-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: var(--grad-primary);
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8rem;
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.work-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.work-tags span {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-light);
  padding: 0.25rem 0.6rem;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 999px;
}
.work-body h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  color: #fff;
  margin-top: 0.25rem;
}
.work-body p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--muted);
  font-size: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  margin-top: 2rem;
}

/* =============== PROCESS STRIP =============== */
.process-strip {
  padding: 6rem 0;
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.process-step {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 2rem 1.75rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.process-step:hover {
  transform: translateY(-4px);
  border-color: rgba(14, 165, 233, 0.3);
}
.step-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.2rem;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.process-step h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
}
.process-step p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* =============== CTA =============== */
.portfolio-cta {
  padding: 5rem 0;
}
.cta-card {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 4rem;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(30, 58, 138, 0.08));
  border: 1px solid rgba(14, 165, 233, 0.25);
  border-radius: var(--radius-xl);
  box-shadow: 0 40px 80px -40px rgba(14, 165, 233, 0.3);
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.2), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.cta-card .chip {
  margin-bottom: 1rem;
}
.cta-card h2 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.15;
}
.cta-card .lede {
  font-size: 1.05rem;
}
.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
  position: relative;
  z-index: 1;
}
.cta-actions .btn {
  width: 100%;
  justify-content: center;
}

/* =============== RESPONSIVE =============== */
@media (max-width: 1100px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cta-card {
    grid-template-columns: 1fr;
    padding: 3rem 2rem;
  }
  .cta-actions {
    flex-direction: row;
  }
  .cta-actions .btn {
    width: auto;
  }
}

@media (max-width: 900px) {
  .portfolio-hero {
    padding: 5rem 0 6rem;
  }
  .portfolio-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.25rem;
    row-gap: 2.25rem;
    padding-bottom: 1rem;
  }
  .portfolio-filter-wrap {
    top: 64px;
  }
}

@media (max-width: 640px) {
  .portfolio-hero {
    padding: 4.5rem 0 6.75rem;
  }
  .project-grid {
    grid-template-columns: 1fr;
  }
  .process-grid {
    grid-template-columns: 1fr;
  }
  .feature-metrics {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .portfolio-hero-head h1 {
    font-size: 2.25rem;
  }
  .cta-actions {
    flex-direction: column;
  }
  .cta-actions .btn {
    width: 100%;
  }
}
