/* PJ INFRA — Premium Luxury Layer */

:root {
  --navy: #050505;
  --navy-light: #0b0b0b;
  --navy-glass: rgba(5, 5, 5, 0.92);
  --gold: #d4af37;
  --gold-light: #ffd700;
  --gold-soft: rgba(212, 175, 55, 0.15);
  --ivory: #f8f8f8;
  --ivory-muted: #b8b8b8;
  --white: #f8f8f8;
  --emerald: #d4af37;
  --emerald-light: #ffd700;
  --text: #f8f8f8;
  --text-muted: #b8b8b8;
  --bronze: #b8860b;
  --royal-border: rgba(212, 175, 55, 0.28);
  --card-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
  --card-shadow-hover: 0 24px 56px rgba(255, 215, 0, 0.12);
  --font-display: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', 'Roboto', sans-serif;
}

body {
  font-family: 'Roboto', Calibri, 'Segoe UI', sans-serif;
  background: var(--navy);
  color: var(--text-muted);
}

h1, h2, h3, h4, h5, h6, .section-title {
  font-family: 'Roboto', Calibri, 'Segoe UI', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-light { background: var(--navy-light) !important; }
.section-muted { background: var(--navy) !important; }
.section-alt { background: #111111 !important; }
.section-navy {
  background: linear-gradient(165deg, #050505 0%, var(--navy-light) 50%, #111111 100%) !important;
  color: var(--text-muted);
}

.section-pattern {
  position: relative;
  overflow: hidden;
}
.section-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(201, 164, 92, 0.08) 1px, transparent 0);
  background-size: 28px 28px;
  pointer-events: none;
  opacity: 0.6;
}

.luxury-divider {
  width: 4rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 1rem auto 1.5rem;
}

.text-gold-brand, .gold-text { color: var(--gold) !important; }
.text-emerald-brand:not(.tag-rera) { color: var(--gold) !important; }

/* Cursor glow */
.cursor-glow {
  position: fixed;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.14) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  opacity: 0;
}
body.cursor-ready .cursor-glow { opacity: 1; }
@media (max-width: 1024px) { .cursor-glow { display: none; } }

/* ——— Mega Menu ——— */
.dynamic-island {
  position: relative;
}
.island-dropdown-wrap {
  position: static;
}
@media (min-width: 768px) {
  .island-dropdown-wrap {
    position: relative;
  }
}
.island-link-dropdown {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.island-link-dropdown .fa-chevron-down {
  font-size: 0.55rem;
  transition: transform 0.3s ease;
}
.island-dropdown-wrap.is-open .fa-chevron-down {
  transform: rotate(180deg);
}

.mega-menu {
  position: absolute;
  top: calc(100% + 1rem);
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  min-width: min(520px, 92vw);
  padding: 1.5rem;
  background: var(--navy-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--royal-border);
  border-radius: 1.25rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
  z-index: 200;
}
.island-dropdown-wrap.is-open .mega-menu,
.island-dropdown-wrap:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
}
.mega-menu-heading {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(201, 164, 92, 0.2);
}
.mega-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mega-menu-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.65rem;
  margin: 0 -0.65rem;
  border-radius: 0.5rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  text-decoration: none;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}
.mega-menu-list a .mega-arrow {
  opacity: 0;
  transform: translateX(-4px);
  color: var(--gold);
  font-size: 0.7rem;
  transition: opacity 0.25s, transform 0.25s;
}
.mega-menu-list a:hover {
  background: rgba(201, 164, 92, 0.12);
  color: #fff;
  box-shadow: 0 0 20px rgba(201, 164, 92, 0.15);
}
.mega-menu-list a:hover .mega-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Mobile project accordion */
.mobile-projects-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  background: none;
  border: none;
  color: inherit;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.mobile-projects-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.mobile-projects-panel.is-open { max-height: 800px; }
.mobile-projects-sub {
  padding-left: 0.75rem;
  border-left: 2px solid var(--gold-soft);
  margin-bottom: 1rem;
}
.mobile-projects-sub h4 {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin: 0.5rem 0;
}
.mobile-projects-sub a {
  display: block;
  padding: 0.4rem 0;
  font-size: 0.875rem;
  opacity: 0.9;
}

/* Sticky mobile bar */
.mobile-action-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom));
  background: var(--navy-glass);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--royal-border);
  gap: 0.5rem;
}
.mobile-action-bar a,
.mobile-action-bar button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.mobile-action-bar .bar-call {
  background: linear-gradient(135deg, var(--gold), var(--gold-light), var(--bronze));
  color: #050505;
}
.mobile-action-bar .bar-enquire {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #050505;
}
@media (max-width: 768px) {
  .mobile-action-bar { display: flex; }
  body { padding-bottom: 4.5rem; }
}

/* ——— Cinematic Hero ——— */
.hero-slider:not(.hero-video-slider) {
  min-height: 100vh;
  min-height: 100dvh;
}
.hero-bg-zoom {
  animation: heroKenBurns 18s ease-in-out infinite alternate;
}
@keyframes heroKenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
.hero-flare.flare-blue,
.hero-flare.flare-gold {
  background: radial-gradient(circle, rgba(255, 215, 0, 0.22) 0%, transparent 70%) !important;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}
.hero-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0.4;
  animation: floatParticle 8s ease-in-out infinite;
}
@keyframes floatParticle {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.2; }
  50% { transform: translateY(-30px) translateX(10px); opacity: 0.6; }
}
.hero-glow-follow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 164, 92, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 4;
  transform: translate(-50%, -50%);
  opacity: 0.6;
}
.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.1;
}
.hero-line {
  display: block;
  overflow: hidden;
}
.hero-line-inner {
  display: block;
  transform: translateY(100%);
  animation: heroLineReveal 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-slide.active .hero-line-inner { animation-delay: calc(var(--i, 0) * 0.12s); }
@keyframes heroLineReveal {
  to { transform: translateY(0); }
}

/* ——— Premium project cards ——— */
.project-card-luxury {
  perspective: 1200px;
  height: 100%;
}
.project-card-luxury .card-tilt {
  height: 100%;
  transition: transform 0.15s ease-out;
  transform-style: preserve-3d;
}
.project-card-luxury .border-flare-inner {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.4s ease, border-color 0.4s ease, transform 0.35s ease;
}
.project-card-luxury:hover .border-flare-inner {
  border-color: #d4af37;
  box-shadow: 0 0 28px rgba(255, 215, 0, 0.22), 0 16px 40px rgba(0, 0, 0, 0.18);
  background: #ffffff;
}
.project-card-luxury .card-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 215, 0, 0.35) 50%, transparent 65%);
  transform: translateX(-100%);
  transition: transform 0.65s ease;
  pointer-events: none;
  z-index: 6;
}
.project-card-luxury:hover .card-shine {
  transform: translateX(100%);
}
.project-card-luxury .card-media {
  clip-path: ellipse(120% 100% at 50% 0%);
}
.project-card-luxury .card-cta-row {
  opacity: 1;
  transform: none;
}
.project-card-luxury.card-spotlight .border-flare-inner {
  border: 1px solid rgba(255, 215, 0, 0.45);
  box-shadow: 0 16px 48px rgba(255, 215, 0, 0.12);
}

/* Filter tabs */
.projects-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}
.projects-filter-tab {
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--royal-border);
  background: var(--white);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s ease;
}
.projects-filter-tab:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  background: var(--gold-soft);
}
.projects-filter-tab.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-light), var(--bronze));
  color: #050505;
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.35);
}

/* Glass editorial panels */
.glass-luxury {
  background: rgba(17, 17, 17, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--royal-border);
  box-shadow: var(--card-shadow);
  color: var(--text);
}
.glass-luxury-dark {
  background: rgba(5, 5, 5, 0.88);
  backdrop-filter: blur(16px);
  border: 1px solid var(--royal-border);
  color: var(--text);
}

/* Curved image mask */
.img-curve-mask {
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
  border-radius: 1.25rem;
  overflow: hidden;
}

/* Completed showcase strip */
.completed-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}
.completed-pill {
  padding: 1rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--royal-border);
  border-radius: 1rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  text-decoration: none;
  color: var(--text);
}
.completed-pill:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: var(--card-shadow-hover);
}
.completed-pill span {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.35rem;
}

/* Magnetic button */
.btn-magnetic {
  position: relative;
  transition: transform 0.2s ease;
}

/* Site header scrolled */
.site-header.scrolled .header-brand-title { color: var(--navy) !important; }
.site-header.scrolled .header-brand-sub { color: var(--text-muted) !important; }

/* Gold luxury buttons */
.btn-blue,
.btn-premium {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-light), var(--bronze)) !important;
  color: #050505 !important;
  border: none !important;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease !important;
}
.btn-blue:hover,
.btn-premium:hover {
  box-shadow: 0 8px 32px rgba(255, 215, 0, 0.4) !important;
  transform: translateY(-2px);
  color: #050505 !important;
}
.btn-blue-outline,
.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(5, 5, 5, 0.65) !important;
  border: 1px solid var(--gold) !important;
  color: var(--gold) !important;
  font-weight: 600;
  transition: all 0.25s ease !important;
  backdrop-filter: blur(10px);
}
.btn-blue-outline:hover,
.btn-outline-gold:hover {
  background: var(--gold-soft) !important;
  color: var(--gold-light) !important;
  box-shadow: 0 0 24px rgba(255, 215, 0, 0.3) !important;
  transform: translateY(-2px);
}
.btn-gold, .btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light), var(--bronze)) !important;
  color: #050505 !important;
}
.btn-gold:hover, .btn-primary:hover {
  box-shadow: 0 8px 32px rgba(255, 215, 0, 0.4) !important;
}

.page-hero {
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-light) 100%) !important;
}

/* Always show dynamically loaded project cards */
#all-projects-grid,
#featured-spotlight-grid,
#featured-ongoing-grid,
.featured-more-track {
  min-height: 120px;
}
#all-projects-grid .project-card,
#featured-spotlight-grid .project-card,
#featured-ongoing-grid .project-card,
#completed-projects-grid .project-card,
#ongoing-projects-grid .project-card,
#projects-spotlight-grid .project-card,
.featured-more-track .project-card,
.reveal-stagger > .project-card {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}
#all-projects-grid .project-card.reveal,
#featured-spotlight-grid .project-card.reveal {
  transform: none !important;
}
.text-emerald-brand {
  color: var(--gold) !important;
}
.badge-ongoing {
  color: #050505 !important;
  border: none !important;
  background: linear-gradient(135deg, var(--gold), var(--gold-light), var(--bronze)) !important;
}

/* Stagger reveal */
.reveal-stagger > *:not(.project-card-white) {
  opacity: 0;
  transform: translateY(24px);
}
.reveal-stagger > .project-card-white {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}
#projects-grid .project-card-white,
#featured-projects-grid .project-card-white {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}
.reveal-stagger.revealed > *:not(.project-card-white) {
  animation: fadeUpStagger 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.reveal-stagger.revealed > .project-card-white {
  animation: fadeUpStagger 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.reveal-stagger.revealed > *:nth-child(1) { animation-delay: 0.05s; }
.reveal-stagger.revealed > *:nth-child(2) { animation-delay: 0.12s; }
.reveal-stagger.revealed > *:nth-child(3) { animation-delay: 0.19s; }
.reveal-stagger.revealed > *:nth-child(4) { animation-delay: 0.26s; }
.reveal-stagger.revealed > *:nth-child(5) { animation-delay: 0.33s; }
.reveal-stagger.revealed > *:nth-child(6) { animation-delay: 0.4s; }
@keyframes fadeUpStagger {
  to { opacity: 1; transform: translateY(0); }
}

/* ——— Projects page: side sub-nav ——— */
.projects-page-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .projects-page-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 2.5rem;
  }
}

.projects-side-nav {
  position: sticky;
  top: 6.5rem;
  z-index: 40;
  max-height: calc(100vh - 7rem);
  overflow-y: auto;
}

.projects-side-nav-inner {
  background: rgba(5, 5, 5, 0.92);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 1rem;
  padding: 1.25rem 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.projects-side-title {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #ffd700;
  margin: 1rem 0 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.projects-side-title:first-child {
  margin-top: 0;
}

.projects-side-count {
  color: #b8b8b8;
  font-weight: 600;
}

.projects-side-sections,
.projects-side-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.projects-side-link {
  display: block;
  padding: 0.45rem 0.65rem;
  margin: 0 -0.65rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  color: #b8b8b8;
  text-decoration: none;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}

.projects-side-link:hover,
.projects-side-section.is-active {
  color: #ffd700;
  background: rgba(212, 175, 55, 0.12);
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.08);
}

.projects-side-sections .projects-side-link {
  font-weight: 600;
  font-size: 0.875rem;
}

.projects-side-completed-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.5);
  background: rgba(212, 175, 55, 0.1);
  color: #ffd700;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.projects-side-completed-btn:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: #d4af37;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.15);
}

.projects-side-completed-btn i {
  color: #d4af37 !important;
}

.projects-side-cta {
  display: flex !important;
}

.projects-page-section {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
  border-radius: 1rem;
  margin-bottom: 1.5rem;
}

.projects-page-main {
  min-width: 0;
}

.project-card-highlight .border-flare-inner {
  border-color: #ffd700 !important;
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.35) !important;
}
