/* PJ INFRA — Premium white project cards (brochure style) */

/* ——— Projects page (matches homepage featured section) ——— */
.projects-page-body {
  background: #f8f5ef;
}

.projects-showcase {
  padding-top: 6.5rem !important;
  padding-bottom: 4rem !important;
  min-height: 60vh;
}

@media (min-width: 768px) {
  .projects-showcase {
    padding-top: 7.5rem !important;
    padding-bottom: 5rem !important;
  }
}

.projects-list-subtitle {
  color: #5c5c5c;
  font-size: 1.05rem;
  line-height: 1.6;
}

.projects-cta {
  padding: 3.5rem 0 4rem;
}

.premium-featured-grid {
  margin: 0;
  padding: 0;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .premium-featured-grid {
    gap: 2.5rem;
  }
}

.section-premium-light {
  background: linear-gradient(180deg, #f8f5ef 0%, #ffffff 50%, #f8f5ef 100%) !important;
  color: #1a1a1a !important;
  padding: 2.5rem 0 3.5rem !important;
}

.section-premium-light .section-title,
.section-premium-light h2 {
  color: #111111 !important;
}

.section-premium-light .spotlight-label {
  color: #b8860b !important;
}

.section-premium-light .text-slate-400,
.section-premium-light p {
  color: #5c5c5c !important;
}

.section-premium-light .luxury-divider {
  background: linear-gradient(90deg, transparent, #d4af37, #ffd700, #d4af37, transparent) !important;
}

/* ——— White premium card ——— */
.project-card-white {
  position: relative;
  height: 100%;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.06),
    0 12px 40px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s ease,
    border-color 0.35s ease;
  animation: cardFloat 6s ease-in-out infinite;
}

.project-card-white:nth-child(2) {
  animation-delay: 1.5s;
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.project-card-white:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: #d4af37;
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.4),
    0 6px 24px rgba(255, 215, 0, 0.16),
    0 18px 44px rgba(0, 0, 0, 0.09);
  animation: none;
}

.project-card-white .card-shine-white {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 215, 0, 0.12) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.75s ease;
  pointer-events: none;
  z-index: 5;
}

.project-card-white:hover .card-shine-white {
  transform: translateX(120%);
}

.project-card-white .card-tilt-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out;
}

.project-card-white .card-media-white {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  min-height: 180px;
  max-height: 230px;
  background: #f3f0e8;
}

@media (max-width: 640px) {
  .project-card-white .card-media-white {
    min-height: 170px;
    max-height: 190px;
  }
}

.project-card-white .card-image-premium {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card-white:hover .card-image-premium {
  transform: scale(1.06);
}

.project-card-white .badge-ongoing-white {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #d4af37, #ffd700);
  color: #111111;
  box-shadow: 0 3px 12px rgba(212, 175, 55, 0.32);
}

.project-card-white .card-body-white {
  padding: 1.1rem 1.15rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

.project-card-white .card-title-white,
.project-card-white h3.card-title-white {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 700 !important;
  color: #0c0c0c !important;
  margin: 0 0 0.35rem;
  line-height: 1.25;
  letter-spacing: -0.005em;
}

.project-card-white .card-loc-white {
  font-size: 0.8rem;
  font-weight: 600;
  color: #1a4d2e !important;
  margin: 0 0 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.project-card-white .card-loc-white i {
  color: #d4af37 !important;
  font-size: 0.75rem;
}

.project-card-white .card-type-white {
  font-size: 0.78rem;
  color: #555c69 !important;
  margin: 0 0 0.75rem;
  font-weight: 500;
}

.project-card-white .highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.45rem;
  margin-bottom: 0.95rem;
}

@media (min-width: 480px) {
  .project-card-white.highlights-many .highlights-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-card-white .highlight-chip {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.5rem;
  background: #f8f5ef;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 8px;
  font-size: 0.66rem;
  font-weight: 600;
  color: #2a2a2a !important;
  line-height: 1.2;
}

.project-card-white .highlight-chip i {
  color: #b8860b !important;
  font-size: 0.72rem;
  flex-shrink: 0;
}

.project-card-white .card-cta-white {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.project-card-white .btn-card-primary {
  flex: 1;
  min-width: 120px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #d4af37, #ffd700, #b8860b);
  color: #111111 !important;
  transition: box-shadow 0.3s, transform 0.25s;
}

.project-card-white .btn-card-primary:hover {
  box-shadow: 0 6px 22px rgba(255, 215, 0, 0.42);
  transform: translateY(-2px);
}

.project-card-white .btn-card-primary i {
  color: #111111 !important;
  font-size: 0.72rem;
}

.project-card-white .btn-card-secondary {
  flex: 1;
  min-width: 120px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #d4af37;
  background: #ffffff;
  color: #b8860b !important;
  cursor: pointer;
  transition: background 0.25s, box-shadow 0.25s, transform 0.25s;
}

.project-card-white .btn-card-secondary:hover {
  background: rgba(212, 175, 55, 0.12);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.2);
  transform: translateY(-2px);
}

.project-card-white .btn-card-secondary i {
  color: #d4af37 !important;
}

@media (max-width: 640px) {
  .project-card-white .card-cta-white {
    flex-direction: column;
  }
  .project-card-white .btn-card-primary,
  .project-card-white .btn-card-secondary {
    width: 100%;
    min-width: 0;
  }
}

/* Defensive: theme-brown.css forces every h1–h4 to near-white. Re-darken
   titles, locations, types, and chips inside white project cards so they
   stay readable on the white card background. */
.showcase-section .project-card-white h3,
.showcase-section .project-card-white h2,
section .project-card-white h3.card-title-white,
section .project-card-white .card-title-white,
.project-card-white .card-body-white h3,
.project-card-white .card-body-white h2 {
  color: #0c0c0c !important;
  font-weight: 700 !important;
}

.showcase-section .project-card-white .card-loc-white,
.project-card-white .card-body-white .card-loc-white {
  color: #1a4d2e !important;
}

.showcase-section .project-card-white .card-type-white,
.project-card-white .card-body-white .card-type-white {
  color: #555c69 !important;
}

.showcase-section .project-card-white .highlight-chip,
.project-card-white .card-body-white .highlight-chip {
  color: #2a2a2a !important;
}

/* Compact white card (other ongoing) */
.project-card-white.project-card-compact .card-media-white {
  min-height: 160px;
  max-height: 180px;
}

.project-card-white.project-card-compact .highlights-grid {
  display: none;
}

/* Tighter overall radius / shadow */
.project-card-white {
  border-radius: 18px;
}

/* Grids */
.premium-featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 0 0.25rem;
}

@media (min-width: 768px) {
  .premium-featured-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1280px) {
  #completed-projects-grid.premium-featured-grid,
  #completed-projects .premium-featured-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .premium-featured-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

.ongoing-white-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .ongoing-white-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .ongoing-white-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.section-ongoing-more {
  background: #0b0b0b !important;
  padding: 4rem 0 5rem !important;
}

.section-ongoing-more .section-title {
  color: #f8f8f8 !important;
}

.reveal-stagger > .project-card-white {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

#projects-grid.reveal-stagger > .project-card-white,
#featured-projects-grid.reveal-stagger > .project-card-white {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.reveal-stagger.revealed > .project-card-white {
  animation: fadeUpCard 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes fadeUpCard {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-card-highlight.project-card-white {
  box-shadow: 0 0 0 3px #ffd700, 0 16px 48px rgba(255, 215, 0, 0.25) !important;
}

/* Override dark theme on white cards */
.project-card-white.project-card-luxury .border-flare-inner,
.project-card-white .border-flare-inner {
  background: #ffffff !important;
  border: none !important;
  box-shadow: none !important;
}

.project-card-white {
  border: 1px solid rgba(212, 175, 55, 0.35) !important;
}

/* ============================================================
   COMPLETED PROJECT BADGE — gold + green pill (delivered look)
   ============================================================ */
.project-card-white .badge-completed-white {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0e3a1f;
  background: linear-gradient(135deg, #ffd700 0%, #d4af37 50%, #79c98a 110%);
  box-shadow:
    0 6px 18px rgba(212, 175, 55, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.project-card-white .badge-completed-white::before {
  content: '';
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18);
}

.project-card-white .badge-completed-white i {
  color: #0e3a1f !important;
}

/* ============================================================
   SHOWCASE SECTION (Completed + Ongoing on index/projects)
   ============================================================ */
.showcase-section {
  position: relative;
  padding: 4.5rem 0 5.5rem;
  background: linear-gradient(180deg, #faf7f0 0%, #ffffff 45%, #f8f5ef 100%);
  isolation: isolate;
  overflow: hidden;
}

.showcase-section + .showcase-section {
  padding-top: 2.5rem;
}

@media (min-width: 768px) {
  .showcase-section {
    padding: 6rem 0 7rem;
  }
}

.showcase-section .showcase-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #b8860b;
  padding: 0.35rem 1rem;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 999px;
  background: rgba(255, 215, 0, 0.06);
  margin-bottom: 0.85rem;
}

.showcase-section .showcase-title {
  font-size: clamp(1.85rem, 4vw, 2.85rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em;
  color: #111111 !important;
  margin: 0.4rem 0 0.75rem;
  line-height: 1.1;
}

.showcase-section .showcase-subtitle {
  max-width: 38rem;
  margin: 0 auto;
  color: #4d4a44 !important;
  font-size: 1rem;
  line-height: 1.6;
}

.showcase-section .showcase-header {
  text-align: center;
  margin-bottom: 2.75rem;
  position: relative;
  z-index: 2;
}

.showcase-section .showcase-divider {
  width: 80px;
  height: 2px;
  margin: 1.1rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #d4af37 30%, #ffd700 50%, #d4af37 70%, transparent);
}

/* ============================================================
   SHOWCASE SEARCH BAR — premium gold-glass real-time filter
   ============================================================ */
.showcase-search-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  max-width: 38rem;
  margin: 1.6rem auto 0;
  padding: 0 0.25rem;
  position: relative;
  z-index: 3;
}

@media (min-width: 768px) {
  .showcase-search-bar {
    flex-direction: row;
    max-width: 46rem;
    gap: 0.9rem;
    margin-top: 1.8rem;
  }
}

.showcase-search-control {
  position: relative;
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, #ffffff 0%, #fbf6e9 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  border-radius: 999px;
  padding: 0 1.1rem 0 1.25rem;
  box-shadow:
    0 10px 28px rgba(212, 175, 55, 0.18),
    0 2px 6px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  min-height: 52px;
}

.showcase-search-control:hover {
  border-color: rgba(212, 175, 55, 0.7);
  box-shadow:
    0 12px 32px rgba(212, 175, 55, 0.22),
    0 2px 6px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.showcase-search-control:focus-within {
  border-color: #d4af37;
  box-shadow:
    0 0 0 4px rgba(255, 215, 0, 0.18),
    0 14px 32px rgba(212, 175, 55, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
}

.showcase-search-icon {
  color: #b8860b;
  font-size: 0.95rem;
  margin-right: 0.7rem;
  flex-shrink: 0;
  pointer-events: none;
  transition: color 0.25s ease, transform 0.25s ease;
}

.showcase-search-control:focus-within .showcase-search-icon {
  color: #d4af37;
  transform: scale(1.08);
}

.showcase-search-field {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 0.85rem 0;
  font: inherit;
  font-size: 0.95rem;
  color: #1a1a1a;
  letter-spacing: 0.005em;
  font-family: 'Roboto', sans-serif;
  min-width: 0;
  width: 100%;
}

.showcase-search-field::placeholder {
  color: rgba(108, 100, 78, 0.6);
  font-weight: 400;
}

.showcase-search-field::-webkit-search-cancel-button,
.showcase-search-field::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.showcase-search-clear {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.14);
  color: #b8860b;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 0.45rem;
  flex-shrink: 0;
  transition: background 0.25s ease, color 0.25s ease, transform 0.3s ease, box-shadow 0.25s ease;
}

.showcase-search-clear:hover {
  background: #d4af37;
  color: #fff;
  transform: rotate(90deg);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

.showcase-search-clear:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.4);
}

.showcase-search-count {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.05rem;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2417 100%);
  color: #ffd700;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.5);
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.22),
    0 0 22px rgba(255, 215, 0, 0.12);
  flex-shrink: 0;
  white-space: nowrap;
}

.showcase-search-count::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffd700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.85);
  animation: showcaseCountPulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

.showcase-search-count.is-empty {
  background: linear-gradient(135deg, #4a1f1f 0%, #2a2417 100%);
  color: #ff9b6b;
  border-color: rgba(255, 100, 60, 0.45);
}

.showcase-search-count.is-empty::before {
  background: #ff9b6b;
  box-shadow: 0 0 10px rgba(255, 100, 60, 0.7);
}

@keyframes showcaseCountPulse {
  0%, 100% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.25); opacity: 1; }
}

/* Clickable project cards */
.project-card-white.is-clickable {
  cursor: pointer;
}

.project-card-white .card-title-white a,
.project-card-white .card-media-link {
  color: inherit;
  text-decoration: none;
}

.project-card-white .card-title-white a:hover {
  color: var(--gold-brand, #d4af37);
}

.project-card-white .card-media-link {
  display: block;
}

/* Filtered card hiding */
.project-card-white.is-search-hidden {
  display: none !important;
}

/* Empty state shown when a section has no matching cards */
.showcase-empty {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: #6c644e;
  font-size: 0.98rem;
  border: 1.5px dashed rgba(212, 175, 55, 0.45);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(255, 248, 225, 0.5), rgba(250, 240, 210, 0.35));
  margin: 1.5rem 0 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.showcase-empty.is-visible {
  display: flex;
}

.showcase-empty i {
  font-size: 1.85rem;
  color: #d4af37;
  opacity: 0.85;
}

.showcase-empty strong {
  color: #2a2417;
  font-weight: 700;
}

/* Breathing room around cards so they don't hug the section edges */
.showcase-section .premium-featured-grid {
  margin-top: 1rem;
  padding: 0.5rem 0.25rem 0.75rem;
}

@media (min-width: 768px) {
  .showcase-section .premium-featured-grid {
    margin-top: 1.5rem;
    padding: 0.75rem 0.5rem 1rem;
  }
}

/* Subtle dotted/gold-gradient pattern overlay */
.showcase-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(212, 175, 55, 0.14) 1px, transparent 1.5px),
    radial-gradient(ellipse at top, rgba(255, 215, 0, 0.07), transparent 55%),
    radial-gradient(ellipse at bottom right, rgba(212, 175, 55, 0.08), transparent 60%);
  background-size: 28px 28px, 100% 100%, 100% 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}

.showcase-section > .container,
.showcase-section > .max-w-7xl {
  position: relative;
  z-index: 2;
}

/* Floating particles (CSS-only) */
.showcase-section::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(2px 2px at 18% 22%, rgba(255, 215, 0, 0.55), transparent 50%),
    radial-gradient(2px 2px at 78% 18%, rgba(212, 175, 55, 0.45), transparent 50%),
    radial-gradient(1.5px 1.5px at 32% 78%, rgba(255, 215, 0, 0.55), transparent 50%),
    radial-gradient(2px 2px at 62% 62%, rgba(184, 134, 11, 0.4), transparent 50%),
    radial-gradient(1.5px 1.5px at 88% 82%, rgba(212, 175, 55, 0.5), transparent 50%),
    radial-gradient(1.5px 1.5px at 8% 64%, rgba(255, 215, 0, 0.4), transparent 50%);
  animation: showcaseParticlesDrift 22s ease-in-out infinite alternate;
  z-index: 1;
  opacity: 0.7;
}

@keyframes showcaseParticlesDrift {
  0% { transform: translate3d(0, 0, 0); opacity: 0.55; }
  50% { transform: translate3d(8px, -10px, 0); opacity: 0.85; }
  100% { transform: translate3d(-6px, 6px, 0); opacity: 0.65; }
}

/* Animated golden divider between Completed and Ongoing sections */
.showcase-divider-block {
  position: relative;
  padding: 1.5rem 1rem 0;
  margin: 0 auto;
  max-width: 80rem;
}

.showcase-divider-block .gold-line {
  position: relative;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(212, 175, 55, 0.55) 25%, #ffd700 50%, rgba(212, 175, 55, 0.55) 75%, transparent 100%);
  overflow: visible;
}

.showcase-divider-block .gold-line::before,
.showcase-divider-block .gold-line::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d4af37;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.8);
  transform: translate(-50%, -50%);
  animation: goldDividerPulse 2.4s ease-in-out infinite;
}

.showcase-divider-block .gold-line::before { left: 50%; }
.showcase-divider-block .gold-line::after {
  left: 50%;
  animation-delay: 1.2s;
  background: #ffd700;
}

@keyframes goldDividerPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(0.6); opacity: 0.55; }
  50% { transform: translate(-50%, -50%) scale(1.6); opacity: 1; }
}

/* Gold-tinted glass card variant (optional) */
.glass-card-gold {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 248, 225, 0.85));
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 12px 38px rgba(212, 175, 55, 0.14), 0 4px 16px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(12px);
}

/* Hover zoom helper (already exists on .img-zoom-wrap in style.css, but
   guarantee for showcase cards) */
.project-card-white .img-zoom-wrap {
  position: relative;
  overflow: hidden;
}

.project-card-white .img-zoom-wrap img {
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card-white:hover .img-zoom-wrap img {
  transform: scale(1.07);
}

/* Mobile spacing comfort */
@media (max-width: 640px) {
  .showcase-section {
    padding: 3rem 0 3.5rem;
  }
  .showcase-section .max-w-7xl,
  .showcase-section .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  .showcase-section .premium-featured-grid {
    gap: 1.5rem;
  }
}

/* ============================================================
   MOBILE NAV — Premium nested accordion (Projects)
   ============================================================ */
.mobile-projects-wrap {
  display: block;
  margin: 0.25rem 0;
}

.mobile-projects-toggle {
  width: 100%;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem !important;
  background: transparent;
  border: none;
  color: #f1eedf;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-align: left;
  border-radius: 0.75rem;
  position: relative;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.mobile-projects-toggle::after {
  content: '';
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.35rem;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, #d4af37, #ffd700, #d4af37, transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 0.85;
}

.mobile-projects-toggle:hover,
.mobile-projects-toggle.is-open {
  background: rgba(212, 175, 55, 0.1);
  color: #ffd700;
  box-shadow: 0 8px 22px rgba(212, 175, 55, 0.12), inset 0 0 0 1px rgba(212, 175, 55, 0.2);
}

.mobile-projects-toggle:hover::after,
.mobile-projects-toggle.is-open::after {
  transform: scaleX(1);
}

.mobile-projects-toggle .mobile-acc-chev {
  font-size: 0.7rem;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  color: #d4af37;
}

.mobile-projects-toggle.is-open .mobile-acc-chev {
  transform: rotate(180deg);
}

.mobile-projects-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  padding: 0 0.25rem;
}

.mobile-projects-panel.is-open {
  max-height: 1400px;
}

.mobile-projects-group {
  margin: 0.3rem 0 0.4rem;
  border-left: 2px solid rgba(212, 175, 55, 0.3);
  padding-left: 0.5rem;
}

.mobile-projects-subtoggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 0.65rem;
  color: #f1eedf;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-align: left;
  text-transform: uppercase;
  transition: background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.mobile-projects-subtoggle i:first-child {
  color: #d4af37;
  margin-right: 0.35rem;
}

.mobile-projects-subtoggle:hover,
.mobile-projects-subtoggle.is-open {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.55);
  color: #ffd700;
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.15);
}

.mobile-projects-subtoggle .mobile-acc-chev {
  font-size: 0.65rem;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  color: #d4af37;
}

.mobile-projects-subtoggle.is-open .mobile-acc-chev {
  transform: rotate(180deg);
}

.mobile-projects-sublist {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  padding-left: 0.25rem;
}

.mobile-projects-sublist.is-open {
  max-height: 1000px;
  padding-top: 0.25rem;
  padding-bottom: 0.35rem;
}

.mobile-projects-leaf {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.75rem;
  margin: 0.18rem 0;
  border-radius: 0.55rem;
  color: rgba(241, 238, 223, 0.85) !important;
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, padding-left 0.25s ease;
  border-left: 2px solid transparent;
}

.mobile-projects-leaf:hover,
.mobile-projects-leaf.is-active {
  background: rgba(212, 175, 55, 0.1);
  color: #ffd700 !important;
  border-left-color: #d4af37;
  padding-left: 1rem;
}

.mobile-projects-leaf i {
  color: #d4af37;
  font-size: 0.7rem;
  margin-right: 0;
}

.mobile-projects-leaf-all {
  margin-top: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #d4af37 !important;
  border-top: 1px dashed rgba(212, 175, 55, 0.25);
  padding-top: 0.55rem;
}

.mobile-projects-leaf-all span i {
  margin-right: 0.4rem;
}

/* Slide-in entrance for the accordion when menu opens */
.mobile-menu.open .mobile-projects-wrap,
.mobile-menu.open .mobile-nav-link {
  animation: mobileNavSlideIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.mobile-menu.open .mobile-nav-link:nth-of-type(1) { animation-delay: 0.04s; }
.mobile-menu.open .mobile-nav-link:nth-of-type(2) { animation-delay: 0.09s; }
.mobile-menu.open .mobile-projects-wrap { animation-delay: 0.14s; }
.mobile-menu.open .mobile-nav-link:nth-of-type(3) { animation-delay: 0.19s; }
.mobile-menu.open .mobile-nav-link:nth-of-type(4) { animation-delay: 0.24s; }

@keyframes mobileNavSlideIn {
  from { opacity: 0; transform: translateX(14px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Two-column mega menu for desktop */
.mega-menu.mega-menu-2col {
  min-width: min(640px, 94vw);
  padding: 1.5rem 1.5rem 1rem;
}

.mega-menu.mega-menu-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
}

.mega-menu.mega-menu-2col .mega-menu-foot {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(201, 164, 92, 0.18);
  text-align: center;
}

/* ============================================================
   PREMIUM SHIMMER LOADING OVERLAY (≤ 800ms)
   ============================================================ */
.pj-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(ellipse at center, #1a1612 0%, #050505 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  opacity: 1;
  transition: opacity 0.45s ease 0.05s, visibility 0.45s ease 0.05s;
}

.pj-loading-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.pj-loading-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 215, 0, 0.18) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: pjShimmer 0.8s ease-in-out 1;
}

.pj-loading-overlay .pj-loading-mark {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, #d4af37, #ffd700, #b8860b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #0a0a0a;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  box-shadow: 0 12px 38px rgba(255, 215, 0, 0.35);
  animation: pjLoadingPulse 0.8s ease-in-out 1;
}

@keyframes pjShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes pjLoadingPulse {
  0% { transform: scale(0.85); opacity: 0; }
  40% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

