/* ══════════════════════════════════════════
   PORTFOLIO PAGE — Premium Cinematic Layout
   ══════════════════════════════════════════ */

.nav-links a.active { color: var(--white); }

/* ── BREADCRUMB ── */
.pf-breadcrumb {
  position: static;
  padding: 96px 72px 0;
  background: none;
}
.pf-breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  font-family: var(--mono);
  color: rgba(255,255,255,0.35);
}
.pf-breadcrumb li + li::before {
  content: '/';
  margin-right: 8px;
  opacity: 0.4;
}
.pf-breadcrumb a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.pf-breadcrumb a:hover { color: var(--accent); }
.pf-breadcrumb [aria-current="page"] { color: rgba(255,255,255,0.7); }
@media (max-width: 900px) {
  .pf-breadcrumb { padding: 88px 24px 0; }
}

/* ── PAGE HERO ── */
.pf-hero {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 72px 80px;
  position: relative;
  overflow: hidden;
}

.pf-hero-glow {
  position: absolute;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(255,77,28,0.12) 0%, transparent 70%);
  top: -200px; right: -200px;
  pointer-events: none; z-index: 0;
}

.pf-hero-glow-2 {
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(100,200,180,0.06) 0%, transparent 70%);
  bottom: -100px; left: -100px;
  pointer-events: none; z-index: 0;
}

.pf-hero-bg-num {
  position: absolute;
  right: -0.05em;
  top: 50%;
  transform: translateY(-60%);
  font-family: var(--display);
  font-size: clamp(240px, 28vw, 420px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.04);
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
  animation: heroFadeUp 1.4s cubic-bezier(0.16,1,0.3,1) 0.2s both;
}

.pf-hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  animation: heroFadeUp 0.9s cubic-bezier(0.16,1,0.3,1) 0.35s both;
}

.pf-hero-title {
  font-family: var(--display);
  font-size: clamp(64px, 10vw, 140px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 40px;
}

.pf-hero-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}

.pf-hero-line > span {
  display: block;
  animation: heroLineReveal 1.1s cubic-bezier(0.16,1,0.3,1) both;
}
.pf-hero-line:nth-child(1) > span { animation-delay: 0.4s; }
.pf-hero-line:nth-child(2) > span { animation-delay: 0.55s; }

.pf-hero-title em {
  font-family: var(--serif);
  font-style: italic;
  text-transform: none;
  color: var(--accent);
}

.pf-hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  animation: heroFadeUp 0.9s cubic-bezier(0.16,1,0.3,1) 0.9s both;
}

.pf-hero-sub {
  font-size: 16px;
  color: var(--gray-text);
  line-height: 1.6;
  max-width: 400px;
}

.pf-hero-pills {
  display: flex;
  gap: 8px;
}

.pf-hero-pill {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  color: rgba(255,255,255,0.4);
}

/* ── DIVIDER ── */
.pf-divider {
  height: 1px;
  background: var(--gray-mid);
  margin: 0 72px;
  animation: heroFadeUp 0.6s ease 1.1s both;
}

/* ══════════════════════════════════════════
   PROJECT SHOWCASE — alternating full-width
   ══════════════════════════════════════════ */

.pf-showcase {
  padding: 0 0 160px;
}

.pf-project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 88vh;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--gray-mid);
  cursor: none;
}

/* Even projects flip layout */
.pf-project:nth-child(even) { direction: rtl; }
.pf-project:nth-child(even) > * { direction: ltr; }

/* Ambient glow per project */
.pf-project::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--proj-accent, #ff4d1c) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
  z-index: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(80px);
}

.pf-project:hover::before { opacity: 0.06; }

/* ── LEFT: Info panel ── */
.pf-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 72px;
  position: relative;
  z-index: 2;
}

.pf-info-top { display: flex; flex-direction: column; gap: 24px; }

.pf-num {
  font-family: var(--display);
  font-size: clamp(80px, 10vw, 140px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.12);
  transition: -webkit-text-stroke-color 0.5s ease, color 0.5s ease;
}

.pf-project:hover .pf-num {
  -webkit-text-stroke-color: var(--proj-accent, #ff4d1c);
}

.pf-sector {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--proj-accent, #ff4d1c);
}

.pf-name {
  font-family: var(--display);
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--white);
  transition: color 0.3s ease;
}

.pf-desc {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.4);
  max-width: 360px;
}

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

.pf-tag {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.35);
  transition: border-color 0.3s ease, color 0.3s ease;
}

.pf-project:hover .pf-tag {
  border-color: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.55);
}

/* Info bottom */
.pf-info-bottom { display: flex; flex-direction: column; gap: 24px; }

.pf-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 0;
  border: 1px solid var(--gray-mid);
  border-radius: 8px;
  overflow: hidden;
  width: fit-content;
}

.pf-stat {
  padding: 16px 24px;
  border-right: 1px solid var(--gray-mid);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pf-stat:last-child { border-right: none; }

.pf-stat-num {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1;
}

.pf-stat-label {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
}

.pf-live-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  padding: 14px 28px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
  width: fit-content;
  position: relative;
  overflow: hidden;
}

.pf-live-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--proj-accent, #ff4d1c);
  transform: translateX(-101%);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
  z-index: -1;
}

.pf-live-link:hover { border-color: var(--proj-accent, #ff4d1c); color: #000; }
.pf-live-link:hover::before { transform: translateX(0); }

.pf-live-link .arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}
.pf-live-link:hover .arrow { transform: translate(3px, -3px); }

/* ── RIGHT: Mockup panel ── */
.pf-mockup-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
  overflow: hidden;
  z-index: 1;
}

/* Subtle texture */
.pf-mockup-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--proj-bg, linear-gradient(135deg,#111,#0a0a0a));
  opacity: 0.6;
}

/* Browser window mockup */
.pf-browser {
  position: relative;
  z-index: 2;
  width: 75%;
  max-width: 440px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.07),
    0 40px 80px rgba(0,0,0,0.6),
    0 20px 40px rgba(0,0,0,0.4);
  transform: perspective(1200px) rotateY(-8deg) rotateX(3deg) scale(0.82);
  transition: transform 0.65s cubic-bezier(0.16,1,0.3,1), box-shadow 0.65s ease;
}

.pf-project:nth-child(even) .pf-browser {
  transform: perspective(1200px) rotateY(8deg) rotateX(3deg) scale(0.82);
}

.pf-project:hover .pf-browser {
  transform: perspective(1200px) rotateY(-1deg) rotateX(0.5deg) scale(1.04);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.14),
    0 60px 120px rgba(0,0,0,0.5),
    0 0 80px color-mix(in srgb, var(--proj-accent, #ff4d1c) 20%, transparent);
}

.pf-project:nth-child(even):hover .pf-browser {
  transform: perspective(1200px) rotateY(1deg) rotateX(0.5deg) scale(1.04);
}

/* Browser chrome */
.pf-browser-chrome {
  background: #1a1a1a;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.pf-browser-dots {
  display: flex;
  gap: 5px;
}

.pf-browser-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.pf-browser-dot:nth-child(1) { background: rgba(255,255,255,0.15); }
.pf-browser-dot:nth-child(2) { background: rgba(255,255,255,0.15); }
.pf-browser-dot:nth-child(3) { background: rgba(255,255,255,0.15); }

.pf-browser-bar {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 10px;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Browser content */
.pf-browser-body {
  background: #111;
  min-height: 300px;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 12px 12px;
}

.pf-browser-body--image {
  height: 308px;
}

/* Glare sweep on hover */
.pf-browser-body::after {
  content: '';
  position: absolute;
  top: -100%;
  left: -60%;
  width: 40%;
  height: 300%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.04) 50%, transparent);
  transform: skewX(-15deg);
  transition: left 0.8s cubic-bezier(0.16,1,0.3,1);
}
.pf-project:hover .pf-browser-body::after { left: 140%; }

/* Mockup site content */
.pf-site-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.pf-site-logo {
  height: 8px;
  border-radius: 2px;
  background: var(--proj-accent, #ff4d1c);
  opacity: 0.9;
}

.pf-site-nav {
  display: flex;
  gap: 10px;
}

.pf-site-nav span {
  width: 28px;
  height: 5px;
  border-radius: 2px;
  background: rgba(255,255,255,0.1);
}

.pf-site-hero-area {
  padding: 28px 20px 20px;
}

.pf-site-eyebrow {
  width: 60px;
  height: 5px;
  border-radius: 2px;
  background: var(--proj-accent, #ff4d1c);
  opacity: 0.5;
  margin-bottom: 12px;
}

.pf-site-headline-1 {
  height: 14px;
  border-radius: 3px;
  background: rgba(255,255,255,0.85);
  margin-bottom: 8px;
  width: 80%;
}

.pf-site-headline-2 {
  height: 14px;
  border-radius: 3px;
  background: rgba(255,255,255,0.85);
  margin-bottom: 16px;
  width: 60%;
}

.pf-site-body-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.pf-site-line {
  height: 6px;
  border-radius: 2px;
  background: rgba(255,255,255,0.12);
}

.pf-site-cta {
  display: inline-block;
  padding: 9px 20px;
  border-radius: 5px;
  background: var(--proj-accent, #ff4d1c);
  font-size: 9px;
  color: rgba(0,0,0,0.85);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pf-site-cards {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 6px;
  padding: 0 20px 20px;
}

.pf-site-card {
  aspect-ratio: 1;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}

.pf-site-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--proj-accent, #ff4d1c);
  opacity: 0.4;
}

/* Floating badge on mockup */
.pf-mockup-badge {
  position: absolute;
  bottom: 10%;
  right: 8%;
  z-index: 4;
  background: rgba(10,10,10,0.9);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 14px 18px;
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(12px) scale(0.95);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1) 0.1s,
              opacity 0.5s ease 0.1s;
}

.pf-project:hover .pf-mockup-badge {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.pf-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #28c840;
  box-shadow: 0 0 6px #28c840;
}

.pf-badge-text {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em;
}

.pf-badge-score {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  margin-left: 4px;
}

/* ── REVEAL keyframes ── */
@keyframes revealSlideLeft {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes revealSlideRight {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes revealFadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── REVEAL states ── */
.pf-info,
.pf-mockup-wrap {
  opacity: 0;
}

.pf-project.visible .pf-info {
  animation: revealSlideLeft 1s cubic-bezier(0.16,1,0.3,1) both;
}

.pf-project.visible .pf-mockup-wrap {
  animation: revealFadeUp 1s cubic-bezier(0.16,1,0.3,1) 0.15s both;
}

.pf-project:nth-child(even).visible .pf-info {
  animation: revealSlideRight 1s cubic-bezier(0.16,1,0.3,1) both;
}

/* ── CTA SECTION ── */
.pf-cta {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pf-cta::before {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,77,28,0.08) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.pf-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.pf-cta-title {
  font-family: var(--display);
  font-size: clamp(52px, 8vw, 100px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--white);
}

.pf-cta-title em {
  font-family: var(--serif);
  font-style: italic;
  text-transform: none;
  color: var(--accent);
}

.pf-cta-sub {
  font-size: 16px;
  color: var(--gray-text);
  line-height: 1.6;
}

/* ── MOBILE ── */
@media (max-width: 900px) {
  .pf-hero { padding: 120px 24px 60px; min-height: 70vh; }
  .pf-hero-bg-num { font-size: 180px; }
  .pf-hero-bottom { flex-direction: column; align-items: flex-start; gap: 24px; }
  .pf-hero-pills { display: none; }
  .pf-divider { margin: 0 24px; }

  .pf-project {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .pf-project:nth-child(even) { direction: ltr; }

  .pf-mockup-wrap {
    min-height: 52vw;
    padding: 32px;
  }

  .pf-browser {
    width: 90%;
    transform: perspective(800px) rotateX(3deg) scale(0.88) !important;
  }
  .pf-project:hover .pf-browser {
    transform: perspective(800px) rotateX(1deg) scale(1.0) !important;
  }

  .pf-info { padding: 40px 24px; }
  .pf-num { font-size: 72px; }

  .pf-stats { grid-template-columns: repeat(3, auto); }

  .pf-cta { padding: 80px 24px; min-height: auto; }
  .pf-cta-title { font-size: clamp(40px, 10vw, 64px); }
}
