/* ============================================================
   SebSugar Portfolio — page-specific
   Inherits from style.css
   ============================================================ */

.page-portfolio { padding-top: 0; }

/* ---------- HERO ---------- */
.pf-hero {
  position: relative;
  min-height: 60svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 9rem 0 4rem;
  overflow: hidden;
  isolation: isolate;
}

.pf-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at center, var(--bg-elev) 0%, var(--bg) 80%);
}

.pf-hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.45;
}
.pf-hero__blob--1 {
  top: 0%; left: -5%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  animation: blobFloat 22s var(--ease) infinite alternate;
}
.pf-hero__blob--2 {
  bottom: -10%; right: -5%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--gold-soft) 0%, transparent 70%);
  animation: blobFloat 26s var(--ease) infinite alternate-reverse;
}

.pf-hero__inner { max-width: 880px; }

.pf-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 1.25rem 0 1.5rem;
  color: var(--cream);
}
.pf-hero__title em {
  font-style: italic;
  color: var(--gold);
}

.pf-hero__sub {
  color: var(--cream-soft);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto;
}

/* ---------- GALLERY GRID (staggered/masonry feel) ---------- */
.pf-gallery { background: var(--bg); }

/* Uniform 3x2 grid — cleaner than masonry with only 6 pieces (no empty cells) */
.pf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.75rem, 2vw, 1.5rem);
}

.pf-card {
  aspect-ratio: 4 / 5;
}

@media (max-width: 1024px) {
  .pf-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .pf-grid { grid-template-columns: 1fr; }
  .pf-card { aspect-ratio: 5 / 4; }   /* shorter cards on mobile so less scroll */
}

/* ---------- PROCESS ---------- */
.pf-process {
  background: var(--bg-elev);
  position: relative;
  overflow: hidden;                /* clip the 800px ::before halo so it doesn't push body width */
}

.pf-process::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, var(--gold-glow) 0%, transparent 60%);
  filter: blur(80px);
  opacity: 0.25;
  pointer-events: none;
}

.pf-process__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  position: relative;
}

.pf-step {
  position: relative;
  padding: 2.5rem 2rem;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  transition: all var(--dur-base) var(--ease-out);
}

.pf-step:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.pf-step__num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 400;
  color: var(--gold);
  opacity: 0.6;
  line-height: 1;
  margin-bottom: 1.25rem;
}

.pf-step h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.pf-step p {
  color: var(--cream-soft);
  font-size: 0.95rem;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .pf-process__grid { grid-template-columns: 1fr; }
}

/* ---------- RECENT (uses .ig__grid + .ig__tile from style.css) ---------- */
.pf-recent { background: var(--bg); }

/* ---------- CTA CARD ---------- */
.pf-cta { background: var(--bg-elev); padding-bottom: clamp(4rem, 10vw, 8rem); }

.pf-cta__card {
  position: relative;
  text-align: center;
  padding: clamp(3rem, 8vw, 5rem) clamp(2rem, 6vw, 4rem);
  background: var(--bg-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  max-width: 880px;
  margin: 0 auto;
  overflow: hidden;
  isolation: isolate;
}

.pf-cta__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 0%, var(--gold-glow) 0%, transparent 50%),
    radial-gradient(circle at 70% 100%, rgba(202, 138, 4, 0.2) 0%, transparent 50%);
  z-index: -1;
}

.pf-cta__card .display { margin: 0.75rem 0 1.25rem; }
.pf-cta__card .display em {
  font-style: italic;
  color: var(--gold);
}
.pf-cta__card .prose {
  max-width: 56ch;
  margin: 0 auto 2rem;
}
.pf-cta__card .prose p { color: var(--cream-soft); }

.pf-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(5, 5, 4, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  animation: lbFade 0.4s var(--ease-out);
}

.lightbox[hidden] { display: none; }

@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }

.lightbox__inner {
  position: relative;
  max-width: 1100px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elev);
  box-shadow: var(--shadow-lg), 0 0 100px rgba(218, 180, 47, 0.15);
  margin: 0;
  animation: lbScale 0.5s var(--ease-out);
}

@keyframes lbScale { from { transform: scale(0.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.lightbox__inner img {
  width: 100%;
  height: 100%;
  max-height: 78vh;
  object-fit: cover;
  background: var(--bg);
}

.lightbox__caption {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg-elev);
  position: relative;
}

.lightbox__caption h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--cream);
}

.lightbox__caption p {
  color: var(--cream-soft);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0 0 2rem;
}

.lightbox__counter {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-soft);
  font-size: 0.8rem;
  color: var(--cream-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: rgba(10, 10, 9, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-soft);
  border-radius: 50%;
  color: var(--cream);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
  z-index: 2;
}
.lightbox__close:hover,
.lightbox__nav:hover {
  background: var(--gold);
  color: #0a0a09;
  border-color: var(--gold);
}

.lightbox__close {
  top: 1.5rem;
  right: 1.5rem;
}

.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
}
.lightbox__nav--prev { left: 1.5rem; }
.lightbox__nav--next { right: 1.5rem; }

@media (max-width: 900px) {
  .lightbox__inner {
    grid-template-columns: 1fr;
    max-height: 90vh;
    overflow-y: auto;
  }
  .lightbox__inner img {
    max-height: 50vh;
  }
  .lightbox__caption { padding: 1.75rem; }
  .lightbox__nav { width: 40px; height: 40px; }
  .lightbox__nav--prev { left: 0.75rem; }
  .lightbox__nav--next { right: 0.75rem; }
  .lightbox__close { top: 0.75rem; right: 0.75rem; }
}
