/* ============================================================
   PORTFOLIO PAGE — Styles
   Extends the global design system in style.css
============================================================ */

.portfolio-page {
  --pf-hero-h: 320px;
}

/* ---- 1. Hero (reuses about-hero) ---- */

/* ---- 2. Introduction ---- */
.pf-intro {
  padding: 72px 0;
  text-align: center;
}

.pf-intro__inner {
  max-width: 900px;
  margin: 0 auto;
}

.pf-intro__eyebrow {
  margin: 0 0 8px;
  font-family: var(--font-display, var(--font-heading));
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-primary);
}

.pf-intro__title {
  margin: 0 0 14px;
  font-family: var(--font-display, var(--font-heading));
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--clr-neutral-900);
}

.pf-intro__lead {
  margin: 0 auto;
  max-width: 700px;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--clr-neutral-600);
}

/* ---- 3. Stats ---- */
.pf-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.pf-stat-card {
  padding: 24px 16px 22px;
  text-align: center;
  background: #fff;
  border: 1px solid rgba(28, 38, 58, 0.08);
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(28, 38, 58, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pf-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(162, 35, 142, 0.1);
}

.pf-stat-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
  border-radius: 10px;
  background: var(--clr-primary-light);
  color: var(--clr-primary);
  font-size: 1.1rem;
}

.pf-stat-card__value {
  margin: 0;
  font-family: var(--font-display, var(--font-heading));
  font-size: clamp(1.5rem, 2.2vw, 1.85rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--clr-neutral-900);
}

.pf-stat-card__label {
  margin: 6px 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--clr-neutral-600);
}

/* ---- 4. Project Showcase ---- */
.pf-project {
  position: relative;
  padding: 72px 0;
}

.pf-project--alt {
  background-color: var(--clr-neutral-50, #f7f8fa);
}

.pf-project__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 48px;
  align-items: center;
}

/* -- Media / Video Thumbnail -- */
.pf-project__media {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background-color: var(--clr-neutral-900);
  aspect-ratio: 16 / 9;
  cursor: pointer;
  box-shadow: 0 14px 36px rgba(28, 38, 58, 0.1);
}

.pf-project__thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, opacity 0.4s ease;
}

.pf-project__media:hover .pf-project__thumbnail {
  transform: scale(1.05);
}

.pf-project__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease;
  border: none;
  color: #fff;
  width: 100%;
  cursor: pointer;
}

.pf-project__media:hover .pf-project__play {
  background: rgba(0, 0, 0, 0.4);
}

.pf-project__play-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(166, 206, 55, 0.9);
  font-size: 1.6rem;
  transition: transform 0.3s ease, background 0.3s ease;
}

.pf-project__media:hover .pf-project__play-icon {
  transform: scale(1.1);
  background: var(--clr-secondary);
}

.pf-project__play-icon i {
  margin-left: 3px;
}

/* -- Content -- */
.pf-project__label {
  display: inline-block;
  margin: 0 0 10px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-primary);
  background: var(--clr-primary-light);
}

.pf-project__title {
  margin: 0 0 12px;
  font-family: var(--font-display, var(--font-heading));
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--clr-neutral-900);
}

.pf-project__desc {
  margin: 0 0 20px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--clr-neutral-600);
}

/* -- Info Grid -- */
.pf-project__info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.pf-project__info-item {
  padding: 10px 12px;
  background: #fff;
  border: 1px solid rgba(28, 38, 58, 0.07);
  border-radius: 10px;
}

.pf-project__info-item--alt-bg {
  background: var(--clr-neutral-50, #f7f8fa);
}

.pf-project__info-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--clr-primary);
  margin-bottom: 2px;
}

.pf-project__info-value {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--clr-neutral-900);
}

/* -- Highlights -- */
.pf-project__highlights {
  margin-bottom: 20px;
}

.pf-project__highlights-title {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--clr-neutral-500);
}

.pf-project__highlights-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pf-project__highlights-item {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--clr-neutral-800);
  background: rgba(166, 206, 55, 0.15);
}

.pf-project__highlights-item i {
  color: var(--clr-secondary);
  font-size: 0.55rem;
  margin-right: 4px;
}

/* -- Timeline -- */
.pf-project__timeline {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 22px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid rgba(28, 38, 58, 0.07);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(28, 38, 58, 0.04);
}

.pf-project__timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  text-align: center;
  position: relative;
}

.pf-project__timeline-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--clr-primary-light);
  color: var(--clr-primary);
  font-size: 0.8rem;
  transition: box-shadow 0.3s ease;
}

.pf-project__timeline-step:hover .pf-project__timeline-icon {
  box-shadow: 0 0 16px rgba(166, 206, 55, 0.5);
}

.pf-project__timeline-label {
  margin-top: 5px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--clr-neutral-500);
  white-space: nowrap;
}

.pf-project__timeline-arrow {
  flex-shrink: 0;
  color: var(--clr-secondary);
  font-size: 0.65rem;
  opacity: 0.6;
}

/* -- Actions -- */
.pf-project__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pf-project__actions .btn {
  font-size: 0.88rem;
}

/* ---- 5. Video Modal ---- */
.pf-video-modal .modal-dialog {
  max-width: 900px;
}

.pf-video-modal .modal-content {
  background: transparent;
  border: none;
  box-shadow: none;
}

.pf-video-modal .modal-header {
  border: none;
  padding: 0 0 8px;
}

.pf-video-modal .btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.pf-video-modal .modal-body {
  padding: 0;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

.pf-video-modal iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ---- Responsive ---- */
@media (max-width: 1199.98px) {
  .pf-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .portfolio-page {
    --pf-hero-h: 280px;
  }

  .pf-intro {
    padding: 56px 0;
  }

  .pf-project {
    padding: 56px 0;
  }

  .pf-project__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .pf-project__media {
    order: -1;
  }
}

@media (max-width: 575.98px) {
  .portfolio-page {
    --pf-hero-h: 240px;
  }

  .pf-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .pf-project__info {
    grid-template-columns: 1fr;
  }

  .pf-project__timeline {
    flex-wrap: wrap;
    gap: 6px;
  }

  .pf-project__timeline-step {
    flex: 0 0 calc(33.33% - 4px);
  }

  .pf-project__timeline-arrow {
    display: none;
  }

  .pf-project__actions {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pf-stat-card,
  .pf-project__thumbnail,
  .pf-project__play-icon {
    transition: none !important;
  }

  .pf-stat-card:hover,
  .pf-project__media:hover .pf-project__thumbnail,
  .pf-project__media:hover .pf-project__play-icon {
    transform: none;
  }
}
