/* ============================================================
   PORTFOLIO PAGE — portfolio.css
   Orchid Business Group PLC
   ============================================================ */

/* ── Custom cursor ── */
.pf-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(223,56,148,.85);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%) scale(0);
  transition: transform .25s cubic-bezier(.22,1,.36,1),
              opacity   .25s ease;
  opacity: 0;
}
.pf-cursor.is-visible { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.pf-cursor.is-hidden  { opacity: 0; transform: translate(-50%, -50%) scale(.6); }
.pf-cursor-text {
  font-size: .62rem; font-weight: 800; letter-spacing: .12em;
  color: #fff; text-transform: uppercase; user-select: none;
}

/* ── HERO ── */
.pf-hero {
  position: relative;
  min-height: 88vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
  color: #fff;
}
.pf-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 40%;
  transform-origin: center;
  animation: pfKenBurns 20s ease-in-out infinite alternate;
}
@keyframes pfKenBurns {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}
.pf-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    170deg,
    rgba(13,24,43,.55) 0%,
    rgba(13,24,43,.80) 55%,
    rgba(13,24,43,.96) 100%
  );
}
.pf-hero-particles {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 1;
  overflow: hidden;
}
.pf-hero-inner {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  gap: 0;
  padding-bottom: 0;
}
.pf-hero-content { padding-top: 160px; padding-bottom: 56px; }

/* breadcrumb */
.pf-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 500; color: rgba(255,255,255,.6);
  margin-bottom: 22px; text-transform: uppercase; letter-spacing: .08em;
}
.pf-breadcrumb a { color: inherit; text-decoration: none; transition: color .2s; }
.pf-breadcrumb a:hover { color: var(--pink); }
.pf-breadcrumb i { font-size: .6rem; opacity: .5; }
.pf-breadcrumb span { color: var(--pink); }

/* eyebrow */
.pf-eyebrow {
  display: inline-block;
  font-size: .75rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--pink);
  padding: 6px 18px;
  border: 1px solid rgba(223,56,148,.4);
  border-radius: 100px;
  background: rgba(223,56,148,.08);
  margin-bottom: 24px;
  opacity: 0;
}
/* title */
.pf-hero-title {
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  font-weight: 900; line-height: 1.05;
  letter-spacing: -.03em;
  margin: 0 0 28px;
  display: flex; flex-direction: column; gap: .04em;
}
.pf-line {
  display: block;
  clip-path: inset(0 100% 0 0);
  color: #fff;
  padding-bottom: .08em; /* prevent descenders clipping inside the clip-path box */
}
.pf-line--accent { color: var(--pink); }

/* sub */
.pf-hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.7; color: rgba(255,255,255,.75);
  max-width: 540px;
  opacity: 0;
}

/* counter strip */
.pf-counter-strip {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4, 1fr) repeat(3, auto);
  align-items: center;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.10);
  border-bottom: none;
  border-radius: 16px 16px 0 0;
  padding: 28px 40px;
  gap: 0;
  /* lay it out simply */
  display: flex; justify-content: space-between;
  flex-wrap: wrap;
  gap: 0;
}
.pf-count-item {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0 3px;
  flex: 1; min-width: 100px;
}
.pf-count-num {
  font-size: 2.6rem; font-weight: 900; line-height: 1;
  color: #fff;
}
.pf-count-suf {
  font-size: 1.5rem; font-weight: 900;
  color: var(--pink);
  align-self: flex-start;
  margin-top: 3px;
}
.pf-count-lbl {
  width: 100%;
  text-align: center;
  margin-top: 7px;
  font-size: .7rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.55);
}
.pf-count-sep {
  width: 1px; height: 48px;
  background: rgba(255,255,255,.15);
  flex-shrink: 0;
}

/* scroll hint */
.pf-scroll-hint {
  position: absolute; bottom: 180px; right: 48px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  z-index: 2;
  color: rgba(255,255,255,.5);
  font-size: .65rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  animation: pfScrollBob 2.4s ease-in-out infinite;
}
.pf-scroll-line {
  width: 1px; height: 56px;
  background: linear-gradient(to bottom, rgba(255,255,255,.5), transparent);
}
@keyframes pfScrollBob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

/* ── FILTER BAR ── */
.pf-filter-wrap {
  background: #fff;
  border-bottom: 1px solid rgba(13,24,43,.08);
  position: sticky; top: 0;
  z-index: 100;
  box-shadow: 0 4px 24px rgba(13,24,43,.06);
}
.pf-filter-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 16px 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.pf-filter-bar::-webkit-scrollbar { display: none; }

.pf-filter-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 20px;
  border-radius: 100px;
  border: 1.5px solid rgba(13,24,43,.12);
  background: transparent;
  color: rgba(13,24,43,.65);
  font-size: .82rem; font-weight: 600; letter-spacing: .04em;
  white-space: nowrap;
  cursor: pointer;
  transition: all .25s ease;
  flex-shrink: 0;
}
.pf-filter-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(42,56,139,.05);
}
.pf-filter-btn.is-active {
  background: var(--dark);
  border-color: var(--dark);
  color: #fff;
  box-shadow: 0 4px 18px rgba(13,24,43,.2);
}
.pf-filter-count {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  font-size: .65rem; font-weight: 800; font-style: normal;
  background: rgba(13,24,43,.1);
  color: inherit;
  transition: background .25s;
}
.pf-filter-btn.is-active .pf-filter-count {
  background: rgba(255,255,255,.25);
}

/* ── GRID SECTION ── */
.pf-grid-section {
  background: #f5f7fc;
  padding: 64px 0 80px;
}

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

/* Card base */
.pf-card {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 16px rgba(13,24,43,.07);
  transition: transform .45s cubic-bezier(.22,1,.36,1),
              box-shadow .45s cubic-bezier(.22,1,.36,1);
  will-change: transform;
}
.pf-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(13,24,43,.15);
}
.pf-card--featured {
  grid-column: span 2;
}
.pf-card--tall {
  grid-row: span 2;
}

/* Card link */
.pf-card-link {
  display: block; text-decoration: none; color: inherit; height: 100%;
}

/* Card image */
.pf-card-img {
  position: relative;
  overflow: hidden;
  height: 260px;
}
.pf-card--featured .pf-card-img { height: 340px; }
.pf-card--tall .pf-card-img { height: 100%; min-height: 340px; }

.pf-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s cubic-bezier(.22,1,.36,1);
  display: block;
}
.pf-card:hover .pf-card-img img { transform: scale(1.07); }

/* Overlay */
.pf-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(13,24,43,.3) 0%, rgba(13,24,43,.92) 100%);
  display: flex; align-items: flex-end;
  padding: 28px;
  opacity: 0;
  transition: opacity .4s ease;
}
.pf-card:hover .pf-card-overlay { opacity: 1; }

.pf-overlay-inner {
  color: #fff;
  transform: translateY(16px);
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}
.pf-card:hover .pf-overlay-inner { transform: translateY(0); }

.pf-overlay-cat {
  display: inline-block;
  font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--pink);
  background: rgba(223,56,148,.15);
  border: 1px solid rgba(223,56,148,.3);
  padding: 4px 12px; border-radius: 100px;
  margin-bottom: 10px;
}
.pf-overlay-inner h2 {
  font-size: 1.3rem; font-weight: 800; line-height: 1.2;
  margin: 0 0 8px; color: #fff;
}
.pf-card--featured .pf-overlay-inner h2 { font-size: 1.65rem; }
.pf-overlay-inner p {
  font-size: .85rem; line-height: 1.55;
  color: rgba(255,255,255,.75); margin: 0 0 14px;
}
.pf-overlay-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; color: var(--pink);
  letter-spacing: .04em; text-transform: uppercase;
}
.pf-overlay-cta i { transition: transform .25s ease; }
.pf-card:hover .pf-overlay-cta i { transform: translateX(5px); }

/* Card info (below image) */
.pf-card-info { padding: 20px 22px 22px; }

.pf-card-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.pf-card-cat {
  font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--blue);
  display: flex; align-items: center; gap: 5px;
}
.pf-card-cat i { font-size: .9rem; }
.pf-card-year {
  font-size: .72rem; font-weight: 600; color: rgba(13,24,43,.4);
}
.pf-card-title {
  font-size: 1.08rem; font-weight: 800; line-height: 1.25;
  color: var(--dark); margin: 0 0 7px;
}
.pf-card-desc {
  font-size: .83rem; line-height: 1.55;
  color: rgba(13,24,43,.6); margin: 0 0 12px;
}
.pf-card-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.pf-card-tags span {
  font-size: .65rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 10px; border-radius: 100px;
  background: rgba(42,56,139,.07);
  color: var(--blue);
  border: 1px solid rgba(42,56,139,.12);
}

/* hidden/filtered state */
.pf-card.is-hidden {
  display: none;
}

/* no results */
.pf-no-results {
  display: none;
  text-align: center;
  padding: 80px 0;
  color: rgba(13,24,43,.4);
  grid-column: 1 / -1;
}
.pf-no-results.is-visible { display: block; }
.pf-no-results i { font-size: 3rem; display: block; margin-bottom: 16px; }
.pf-no-results p  { font-size: 1.1rem; }

/* ── CTA BAND ── */
.pf-cta-band {
  position: relative;
  background: var(--dark);
  overflow: hidden;
  padding: 100px 0;
}
.pf-cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 20% 50%, rgba(61,145,249,.12) 0%, transparent 70%),
              radial-gradient(ellipse 50% 70% at 80% 50%, rgba(223,56,148,.10) 0%, transparent 70%);
  pointer-events: none;
}
.pf-cta-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  gap: 48px; flex-wrap: wrap;
}
.pf-cta-eyebrow {
  display: block;
  font-size: .72rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--pink);
  margin-bottom: 14px;
}
.pf-cta-text h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900; line-height: 1.1;
  color: #fff; margin: 0 0 14px;
}
.pf-cta-text p {
  font-size: 1rem; line-height: 1.7;
  color: rgba(255,255,255,.6);
  max-width: 480px; margin: 0;
}
.pf-cta-actions {
  display: flex; gap: 14px; flex-wrap: wrap; flex-shrink: 0;
}
.btn-outline-white {
  background: transparent;
  border: 2px solid rgba(255,255,255,.3);
  color: #fff;
  border-radius: 50px;
  padding: 14px 32px;
  font-size: .9rem; font-weight: 700;
  text-decoration: none;
  transition: all .3s ease;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-outline-white:hover {
  border-color: #fff; background: rgba(255,255,255,.08);
  color: #fff;
}
.btn-lg { padding: 16px 36px; font-size: .95rem; }

/* ── ANIMATION HELPERS ── */
@keyframes pfFadeIn {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.pf-card.pf-entering {
  animation: pfFadeIn .45s cubic-bezier(.22,1,.36,1) both;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .pf-grid { grid-template-columns: repeat(2, 1fr); }
  .pf-card--featured { grid-column: span 2; }
  .pf-card--tall    { grid-row: auto; }
  .pf-hero-title { font-size: clamp(2.4rem, 6vw, 4rem); }
  .pf-counter-strip { flex-wrap: wrap; gap: 20px; padding: 24px; }
  .pf-count-sep { display: none; }
}

@media (max-width: 768px) {
  .pf-grid { grid-template-columns: 1fr; }
  .pf-card--featured { grid-column: span 1; }
  .pf-hero-content { padding-top: 120px; padding-bottom: 36px; }
  .pf-hero-title { font-size: clamp(2.2rem, 9vw, 3.2rem); }
  .pf-hero-sub br { display: none; }
  .pf-counter-strip { gap: 16px; }
  .pf-count-num { font-size: 2rem; }
  .pf-scroll-hint { display: none; }
  .pf-cta-inner { flex-direction: column; gap: 32px; }
  .pf-cta-actions { width: 100%; }
  .pf-filter-bar { gap: 8px; }
  .pf-cursor { display: none; }
  .pf-card-img { height: 220px; }
  .pf-card--featured .pf-card-img { height: 250px; }
}

@media (max-width: 480px) {
  .pf-filter-btn { padding: 8px 14px; font-size: .76rem; }
  .pf-hero-title { font-size: 2.2rem; }
}
