/* ============================================================
   PORTFOLIO PAGE — Gold theme
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #08080b;
  --muted: #a1a1aa;
  --y: #facc15;
  --yd: #ca8a04;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', Arial, sans-serif;
  background: var(--bg);
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; }
img { max-width: 100%; display: block; }

/* ---------- Reveal ---------- */
[data-r] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: var(--d, 0s);
}
[data-r].in { opacity: 1; transform: none; }

/* ============================================================
   HERO
   ============================================================ */
.pf-hero {
  background:
    radial-gradient(900px 400px at 15% 0%, rgba(250, 204, 21, 0.10), transparent 60%),
    radial-gradient(700px 350px at 90% 100%, rgba(250, 204, 21, 0.06), transparent 60%),
    #0a0a0a;
  padding: 90px 6vw 70px;
  border-bottom: 1px solid rgba(250, 204, 21, 0.12);
}

.pf-hero-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.pf-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #facc15;
  background: rgba(250, 204, 21, 0.08);
  border: 1px solid rgba(250, 204, 21, 0.25);
  margin-bottom: 22px;
}

.pf-hero h1 {
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: #fff;
  margin-bottom: 20px;
}

.pf-hero h1 span {
  background: linear-gradient(90deg, #facc15, #ca8a04);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pf-lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
  max-width: 720px;
  margin: 0 auto;
}

/* ============================================================
   STATS STRIP
   ============================================================ */
.pf-stats {
  background: #08080b;
  padding: 60px 6vw;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pf-stats-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.pf-stat {
  text-align: center;
  padding: 20px 12px;
  position: relative;
}

.pf-stat::after {
  content: "";
  position: absolute;
  top: 30%;
  bottom: 30%;
  right: -12px;
  width: 1px;
  background: rgba(250, 204, 21, 0.2);
}
.pf-stat:last-child::after { display: none; }

.pf-stat b {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #facc15;
  line-height: 1.1;
  margin-bottom: 6px;
}

.pf-stat span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.3px;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.pf-section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.pf-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #facc15;
  margin-bottom: 14px;
  position: relative;
  padding-left: 20px;
}

.pf-eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 2px;
  background: #facc15;
  border-radius: 2px;
}

.pf-section-header h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: #fff;
  margin-bottom: 14px;
}

.pf-section-header h2 span {
  background: linear-gradient(90deg, #facc15, #ca8a04);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pf-sub {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.6);
  max-width: 620px;
  margin: 0 auto;
}

/* ============================================================
   FEATURED WORK GRID
   ============================================================ */
.pf-grid-section {
  background: #08080b;
  padding: 80px 6vw;
}

.pf-work-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.pf-card {
  background: linear-gradient(160deg, #111116, #0a0a0c);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.pf-card-wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
}

.pf-card-wide .pf-card-image {
  height: 100%;
  min-height: 340px;
}

.pf-card:hover {
  transform: translateY(-6px);
  border-color: rgba(250, 204, 21, 0.4);
  box-shadow: 0 20px 50px rgba(250, 204, 21, 0.14);
}

.pf-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #0d0d11;
}

.pf-card-wide .pf-card-image {
  aspect-ratio: auto;
}

.pf-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.pf-card:hover .pf-card-image img {
  transform: scale(1.06);
}

.pf-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
}

.pf-card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #facc15, #ca8a04);
  color: #111;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(250, 204, 21, 0.4);
  z-index: 2;
}

.pf-card-body {
  padding: 24px 26px 28px;
  background: rgb(44, 44, 44);
}

.pf-card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #facc15;
  margin-bottom: 10px;
}

.pf-card-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.3;
}

.pf-card-body p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.65;
  margin: 0;
}

/* ============================================================
   ALTERNATING FEATURE SECTIONS
   ============================================================ */
.pf-feature {
  padding: 100px 6vw;
}

.pf-feature-dark {
  background: #0a0a0c;
}

.pf-feature-light {
  background: #08080b;
}

.pf-feature-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.pf-feature-reverse .pf-feature-text { order: 2; }
.pf-feature-reverse .pf-feature-image { order: 1; }

.pf-feature-text .pf-eyebrow {
  margin-bottom: 16px;
}

.pf-feature-text h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: #fff;
  margin-bottom: 20px;
}

.pf-feature-text h2 span {
  background: linear-gradient(90deg, #facc15, #ca8a04);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pf-feature-text p {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
}

.pf-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pf-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.pf-feature-list i {
  color: #facc15;
  font-size: 1rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.pf-feature-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #facc15, #ca8a04);
  color: #111;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.25s ease, box-shadow 0.3s ease;
}

.pf-feature-btn i {
  transition: transform 0.3s ease;
}

.pf-feature-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(250, 204, 21, 0.45);
}

.pf-feature-btn:hover i {
  transform: translateX(5px);
}

.pf-feature-image {
  position: relative;
}

.pf-feature-image img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 1;
}

.pf-feature-image-accent {
  position: absolute;
  top: -20px;
  right: -20px;
  bottom: -20px;
  left: 20px;
  border: 2px solid rgba(250, 204, 21, 0.3);
  border-radius: 20px;
  z-index: 0;
  pointer-events: none;
}

/* ============================================================
   MOSAIC GRID
   ============================================================ */
.pf-mosaic-section {
  background: #08080b;
  padding: 100px 6vw;
}

.pf-mosaic {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
  gap: 20px;
}

.pf-mosaic-item {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  background: #0d0d11;
}

.pf-mosaic-tall { grid-row: span 2; }
.pf-mosaic-wide { grid-column: span 2; }

.pf-mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.pf-mosaic-item:hover img {
  transform: scale(1.08);
}

.pf-mosaic-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 22px 20px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.85));
  color: #fff;
  transform: translateY(4px);
  transition: transform 0.4s ease;
}

.pf-mosaic-item:hover .pf-mosaic-info {
  transform: translateY(0);
}

.pf-mosaic-info span {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #facc15;
  margin-bottom: 6px;
}

.pf-mosaic-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

/* ============================================================
   INFINITE CAROUSEL
   ============================================================ */
.pf-carousel-section {
  background: #08080b;
  padding: 80px 0 100px;
  overflow: hidden;
}

.pf-carousel-section .pf-section-header {
  padding: 0 6vw;
}

.pf-carousel {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.pf-carousel-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: pfScroll 50s linear infinite;
  will-change: transform;
}

.pf-carousel-slide {
  flex: 0 0 auto;
  width: 420px;
  height: 480px;
  border-radius: 12px;
  overflow: hidden;
  background: #0d0d11;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.pf-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.pf-carousel-slide:hover img {
  transform: scale(1.05);
}

@keyframes pfScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   CTA
   ============================================================ */
.cta {
  background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
  padding: 80px 6vw;
  color: #111;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 60px;
  align-items: center;
}

.cta-left h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: #111;
  margin: 0 0 16px;
}

.cta-left p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #1a1a1a;
  max-width: 720px;
  margin: 0;
}

.btn-cta-main {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 34px;
  border-radius: 999px;
  background: #111;
  color: #facc15;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  white-space: nowrap;
}

.btn-cta-main i { transition: transform 0.3s ease; }

.btn-cta-main:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
  background: #000;
}

.btn-cta-main:hover i { transform: translateX(6px); }

/* ============================================================
   RESPONSIVE — Tablet
   ============================================================ */
@media (max-width: 1100px) {
  .pf-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .pf-stat::after { display: none; }

  .pf-work-grid { grid-template-columns: 1fr; }
  .pf-card-wide {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
  .pf-card-wide .pf-card-image { min-height: 0; aspect-ratio: 16 / 10; }

  .pf-feature-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .pf-feature-reverse .pf-feature-text { order: 1; }
  .pf-feature-reverse .pf-feature-image { order: 2; }

  .pf-mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
  }
  .pf-mosaic-tall { grid-row: span 1; }
  .pf-mosaic-wide { grid-column: span 2; }

  .pf-carousel-slide { width: 320px; height: 220px; }
}

/* ============================================================
   RESPONSIVE — Mobile
   ============================================================ */
@media (max-width: 900px) {
  .pf-hero { padding: 70px 5vw 50px; }
  .pf-hero h1 { font-size: 1.6rem; }
  .pf-lead { font-size: 0.95rem; }

  .pf-stats { padding: 45px 5vw; }
  .pf-stats-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .pf-stat b { font-size: 1.5rem; }
  .pf-stat span { font-size: 0.78rem; }

  .pf-grid-section,
  .pf-feature,
  .pf-mosaic-section { padding: 60px 5vw; }

  .pf-section-header { margin-bottom: 40px; }

  .pf-work-grid { gap: 20px; }
  .pf-card-body { padding: 20px 20px 22px; }
  .pf-card-body h3 { font-size: 1.1rem; }

  .pf-feature-inner { gap: 30px; }
  .pf-feature-text h2 { font-size: 1.5rem; }
  .pf-feature-text p { font-size: 0.95rem; }
  .pf-feature-list li { font-size: 0.88rem; }
  .pf-feature-image-accent { display: none; }

  .pf-mosaic {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
    gap: 16px;
  }
  .pf-mosaic-wide { grid-column: auto; }

  .pf-carousel-section { padding: 60px 0 70px; }
  .pf-carousel-track { gap: 14px; animation-duration: 40s; }
  .pf-carousel-slide { width: 240px; height: 170px; border-radius: 12px; }

  .cta-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }
  .cta-left h2 { font-size: 1.6rem; }
  .cta-left p { font-size: 0.95rem; margin: 0 auto; }
  .cta-right { display: flex; justify-content: center; }
  .btn-cta-main { padding: 15px 28px; font-size: 0.95rem; }
}

/* ============================================================
   RESPONSIVE — Small phones
   ============================================================ */
@media (max-width: 480px) {
  .pf-hero h1 { font-size: 1.4rem; }
  .pf-lead { font-size: 0.9rem; }

  .pf-stat b { font-size: 1.3rem; }

  .pf-card-body h3 { font-size: 1rem; }
  .pf-card-body p { font-size: 0.85rem; }

  .pf-feature-text h2 { font-size: 1.3rem; }

  .pf-mosaic { grid-auto-rows: 180px; }
  .pf-mosaic-info { padding: 18px 16px 14px; }
  .pf-mosaic-info h3 { font-size: 1rem; }

  .pf-carousel-slide { width: 200px; height: 140px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  [data-r] { opacity: 1; transform: none; transition: none; }
  .pf-card, .pf-card-image img, .pf-mosaic-item img, .pf-carousel-track { transition: none; animation: none; }
}
