/* ================================================================
   PROJECTS PAGE STYLES — AstraKAT Designs
   Matches the official 'work page.png' design mockup
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --pj-gold: #c59661;
  --pj-gold-light: #e0b882;
  --pj-gold-dark: #9c7143;
  --pj-btn-gold: #b88654;
  --pj-btn-gold-hover: #a57442;
  --pj-ink: #17130f;
  --pj-dark: #14100c;
  --pj-cream: #faf6f0;
  --pj-card-bg: #fffaf3;
  --pj-line: #ded3c4;
  --pj-muted: #72685d;
}

/* ---- 1. HERO SECTION ---- */
.pj-hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: #19130d;
}

.pj-hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/projects/Background Image.webp');
  background-size: cover;
  background-position: center 30%;
  filter: brightness(0.72);
}

.pj-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 9, 6, 0.94) 0%, rgba(12, 9, 6, 0.72) 42%, rgba(12, 9, 6, 0.25) 75%, rgba(12, 9, 6, 0.1) 100%);
}

.pj-hero__content {
  position: relative;
  z-index: 2;
  width: min(1200px, 100%);
  margin: auto;
  padding: 150px 28px 90px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}

.pj-hero__main {
  max-width: 580px;
}

.pj-kicker {
  display: inline-block;
  color: var(--pj-gold-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.pj-hero h1 {
  margin: 0 0 20px;
  font: 600 clamp(44px, 5.8vw, 76px)/1.03 'Playfair Display', Georgia, serif;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.pj-hero p {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  line-height: 1.75;
  max-width: 500px;
}

.pj-hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  background: var(--pj-btn-gold);
  color: #ffffff !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.25s ease;
}

.pj-hero__btn:hover {
  background: var(--pj-btn-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.pj-hero__tags {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--pj-gold-light);
}

.pj-hero__script {
  padding-bottom: 24px;
  text-align: right;
  font-family: 'Alex Brush', cursive;
  font-size: clamp(38px, 4.2vw, 54px);
  line-height: 1.05;
  color: #e5be85;
  opacity: 0.95;
  white-space: nowrap;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  user-select: none;
}
.projects-recent-link { background:#171b20; color:#fff; padding:58px 28px; }
.projects-recent-link__inner { width:min(1120px,100%); margin:auto; display:flex; align-items:center; justify-content:space-between; gap:28px; }
.projects-recent-link h2 { margin:8px 0; font:600 clamp(28px,3.5vw,44px)/1.1 'Playfair Display',Georgia,serif; }
.projects-recent-link p { max-width:560px; margin:0; color:#ccd0d3; font-size:13px; line-height:1.65; }
@media (max-width:700px) { .projects-recent-link__inner { display:block; } .projects-recent-link .pj-hero__btn { margin-top:22px; } }

/* ---- 2. EXPLORE OUR PROJECTS SECTION ---- */
.pj-explore {
  background: var(--pj-cream);
  padding: 92px 28px 104px;
}

.pj-explore__container {
  width: min(1200px, 100%);
  margin: auto;
}

.pj-explore__header {
  position: relative;
  text-align: center;
  max-width: 820px;
  margin: 0 auto 36px;
}

.pj-eyebrow-dash {
  display: inline-block;
  color: var(--pj-gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.pj-explore__header h2 {
  margin: 0;
  font: 600 clamp(32px, 4vw, 50px)/1.1 'Playfair Display', Georgia, serif;
  color: var(--pj-ink);
  letter-spacing: -0.3px;
}

.pj-explore__script {
  position: absolute;
  top: -12px;
  right: -130px;
  font-family: 'Alex Brush', cursive;
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.05;
  color: #b88750;
  transform: rotate(-6deg);
  opacity: 0.92;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

/* Category Filters */
.pj-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 48px;
}

.pj-filter {
  appearance: none;
  border: 1px solid rgba(180, 168, 152, 0.45);
  background: transparent;
  color: #4f463c;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
}

.pj-filter:hover {
  border-color: var(--pj-btn-gold);
  color: var(--pj-ink);
  background: rgba(255, 255, 255, 0.7);
}

.pj-filter.is-active,
.pj-filter[aria-pressed="true"] {
  background: var(--pj-btn-gold);
  color: #ffffff;
  border-color: var(--pj-btn-gold);
  box-shadow: 0 4px 14px rgba(184, 134, 84, 0.25);
}

/* 3x3 Project Grid */
.pj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.pj-card {
  position: relative;
  aspect-ratio: 1 / 1.05;
  overflow: hidden;
  background: var(--pj-dark);
  display: block;
  text-decoration: none;
  color: #fff;
  border-radius: 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.pj-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
}

.pj-card__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.pj-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
  filter: brightness(0.88);
}

.pj-card:hover .pj-card__img {
  transform: scale(1.06);
  filter: brightness(0.98);
}

.pj-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 8, 5, 0.88) 0%, rgba(10, 8, 5, 0.42) 36%, rgba(10, 8, 5, 0.04) 65%, transparent 100%);
  pointer-events: none;
}

.pj-card__body {
  position: absolute;
  inset: auto 0 0;
  padding: 24px 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  z-index: 2;
}

.pj-card__info h3 {
  margin: 0;
  font: 600 clamp(20px, 1.8vw, 24px)/1.15 'Playfair Display', Georgia, serif;
  color: #ffffff;
  letter-spacing: 0.2px;
}

.pj-card__info p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12.5px;
  letter-spacing: 0.3px;
  font-weight: 400;
}

.pj-card__arrow {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(224, 184, 130, 0.85);
  display: grid;
  place-items: center;
  color: #ffffff;
  transition: all 0.3s ease;
  background: rgba(18, 14, 10, 0.25);
  backdrop-filter: blur(4px);
}

.pj-card__arrow svg {
  width: 17px;
  height: 17px;
  transition: transform 0.3s ease;
}

.pj-card:hover .pj-card__arrow {
  background: var(--pj-gold);
  border-color: var(--pj-gold);
  color: #fff;
  transform: rotate(-45deg);
}

/* Card filter animations */
.pj-card.is-hidden {
  display: none;
}

/* ---- 3. STATS STRIP SECTION ---- */
.pj-stats {
  background: #140f0a;
  color: #fff;
  padding: 56px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pj-stats__container {
  width: min(1200px, 100%);
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.pj-stat {
  text-align: center;
  padding: 10px 24px;
}

.pj-stat:not(:first-child) {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.pj-stat svg {
  width: 34px;
  height: 34px;
  color: var(--pj-gold-light);
  margin-bottom: 12px;
}

.pj-stat__value {
  display: block;
  font: 600 clamp(28px, 3.2vw, 38px)/1 'Playfair Display', Georgia, serif;
  color: #ffffff;
  margin-bottom: 8px;
}

.pj-stat__label {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.4px;
}

/* ---- 4. SPLIT FEATURE & TESTIMONIAL SECTION ---- */
.pj-split {
  background: #ffffff;
  width: 100%;
}

.pj-split__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  min-height: 480px;
}

.pj-split__media {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  background: #16120e;
}

.pj-split__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.85);
}

.pj-split__media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 9, 6, 0.78) 0%, rgba(12, 9, 6, 0.3) 55%, transparent 100%);
}

.pj-split__media-content {
  position: absolute;
  inset: auto auto 44px 44px;
  z-index: 2;
  max-width: 440px;
}

.pj-split__media-content h2 {
  margin: 0;
  font: 600 clamp(30px, 3.4vw, 44px)/1.15 'Playfair Display', Georgia, serif;
  color: #ffffff;
}

.pj-split__testimonial {
  background: #ffffff;
  padding: 68px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pj-quote-mark {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 64px;
  line-height: 0.8;
  color: var(--pj-gold);
  margin-bottom: 14px;
}

.pj-quote-track {
  position: relative;
  min-height: 120px;
}

.pj-quote-slide {
  transition: opacity 0.35s ease;
}

.pj-quote-slide.is-hidden {
  display: none;
}

.pj-quote-body {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.65;
  color: #2b231c;
  margin: 0 0 18px;
}

.pj-quote-author {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: #8c7e70;
  margin: 0;
}

.pj-carousel-ctrls {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.pj-carousel-ctrls__left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  max-width: 140px;
}

.pj-carousel-line {
  display: block;
  flex: 1;
  height: 1px;
  background: var(--pj-line);
}

.pj-carousel-ctrls__right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.pj-carousel-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--pj-line);
  background: transparent;
  color: var(--pj-ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.pj-carousel-btn:hover {
  background: var(--pj-btn-gold);
  color: #ffffff;
  border-color: var(--pj-btn-gold);
}

.pj-carousel-btn svg {
  width: 16px;
  height: 16px;
}

.pj-carousel-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pj-carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d8cec0;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.25s ease;
}

.pj-carousel-dot.is-active {
  background: var(--pj-btn-gold);
  transform: scale(1.35);
}

/* ---- 5. BOTTOM CTA BANNER ---- */
.pj-cta {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: #17120d;
  padding: 80px 28px;
}

.pj-cta__bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/projects/Last Image.webp');
  background-size: cover;
  background-position: center;
  filter: brightness(0.65);
}

.pj-cta__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 11, 7, 0.9) 0%, rgba(15, 11, 7, 0.65) 55%, rgba(15, 11, 7, 0.88) 100%);
}

.pj-cta__container {
  position: relative;
  z-index: 2;
  width: min(1200px, 100%);
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.pj-cta__content {
  max-width: 600px;
}

.pj-cta h2 {
  margin: 8px 0 16px;
  font: 600 clamp(32px, 4vw, 50px)/1.15 'Playfair Display', Georgia, serif;
  color: #ffffff;
}

.pj-cta p {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 15px;
  line-height: 1.7;
}

.pj-cta__keywords {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  text-align: right;
  line-height: 1.5;
  user-select: none;
}

/* ---- 6. RESPONSIVE DESIGN ---- */
@media (max-width: 1040px) {
  .pj-explore__script {
    display: none;
  }
  .pj-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pj-split__grid {
    grid-template-columns: 1fr;
  }
  .pj-split__media {
    min-height: 360px;
  }
  .pj-split__testimonial {
    padding: 48px 32px;
  }
}

@media (max-width: 820px) {
  .pj-hero {
    min-height: 560px;
  }
  .pj-hero__content {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 130px;
  }
  .pj-hero__script {
    display: none;
  }
  .pj-stats__container {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 0;
  }
  .pj-stat:nth-child(2n+1) {
    border-left: none;
  }
  .pj-cta__container {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }
  .pj-cta__keywords {
    align-items: flex-start;
    text-align: left;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .pj-grid {
    grid-template-columns: 1fr;
  }
  .pj-filters {
    gap: 8px;
  }
  .pj-filter {
    padding: 7px 15px;
    font-size: 10px;
  }
  .pj-stats__container {
    grid-template-columns: 1fr;
    gap: 24px 0;
  }
  .pj-stat:not(:first-child) {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 24px;
  }
  .pj-split__media-content {
    inset: auto auto 28px 24px;
  }
  .pj-split__testimonial {
    padding: 36px 20px;
  }
}
