/* ==========================================================================
   NAAV GROUP — Projects Gallery Specialized Stylesheet
   Inherits design system variables from css/style.css
   ========================================================================== */

/* --- General Kicker & Utilities --- */
.section-kicker-gold {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 14px;
}

.section-kicker-gold::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--gold-gradient);
  border-radius: 2px;
}

.gold-gradient-text {
  color: var(--gold-primary);
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* ==========================================================================
   1. HERO SECTION (PROJECTS)
   ========================================================================== */
.projects-hero-section {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background-color: #0E0F12;
  overflow: hidden;
  padding-top: calc(var(--header-height) + 24px);
  padding-bottom: 75px;
}

.projects-hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 65%;
  height: 100%;
  z-index: 1;
}

.projects-hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.88;
  filter: contrast(1.05) brightness(0.96);
  transform: scale(1.02);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.projects-hero-section:hover .projects-hero-bg-img {
  transform: scale(1.05);
}

.projects-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to right,
    #0E0F12 0%,
    #0E0F12 36%,
    rgba(14, 15, 18, 0.88) 54%,
    rgba(14, 15, 18, 0.4) 75%,
    rgba(14, 15, 18, 0.12) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.projects-hero-container {
  position: relative;
  z-index: 3;
}

.projects-hero-content {
  max-width: 620px;
}

.projects-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 4.8vw, 4.2rem);
  font-weight: 700;
  line-height: 1.12;
  color: #FFFFFF;
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}

.projects-hero-text {
  font-size: 1.04rem;
  line-height: 1.78;
  color: var(--text-light-secondary);
  margin-bottom: 34px;
}

.btn-projects-cta {
  padding: 16px 34px;
  font-size: 0.86rem;
  letter-spacing: 0.14em;
}


/* ==========================================================================
   2. GALLERY HEADER & CATEGORY FILTER TABS
   ========================================================================== */
.projects-gallery-section {
  padding: 110px 0;
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--color-border-light);
}

.gallery-top-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 48px;
}

.gallery-header-left {
  max-width: 580px;
}

.gallery-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 3.5vw, 2.9rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--text-dark-primary);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.gallery-desc {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--text-dark-secondary);
}

/* Category Filter Pills */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.filter-btn {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  background: #FAF9F6;
  color: var(--text-dark-secondary);
  border: 1px solid var(--color-border-light);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  background: #FFFFFF;
  color: var(--text-dark-primary);
  border-color: rgba(223, 164, 82, 0.45);
}

.filter-btn.active {
  background: var(--gold-gradient);
  color: #111215;
  font-weight: 700;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(223, 164, 82, 0.35);
}


/* ==========================================================================
   3. 12-GRID PROJECTS SHOWCASE
   ========================================================================== */
.projects-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.proj-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #111215;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.06);
  cursor: pointer;
  aspect-ratio: 4 / 3;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), opacity 0.35s ease;
}

.proj-card.hidden {
  display: none;
}

.proj-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

.proj-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.proj-card:hover .proj-card-img {
  transform: scale(1.08);
}

/* Gradient shadow & bottom text badge */
.proj-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 22px 18px;
  background: linear-gradient(to top, rgba(14, 15, 18, 0.92) 0%, rgba(14, 15, 18, 0.5) 65%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
  transition: padding var(--transition-fast);
}

.proj-card-tag {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 8px;
}

.proj-card-tag span.arrow {
  color: var(--gold-primary);
  font-size: 1.05rem;
  transition: transform var(--transition-fast);
}

.proj-card:hover .proj-card-tag span.arrow {
  transform: translateX(4px);
}


/* ==========================================================================
   4. STATS TRUST COUNTERS (LIGHT STRIP)
   ========================================================================== */
.projects-stats-section {
  padding: 65px 0;
  background: #FAF9F6;
  border-bottom: 1px solid var(--color-border-light);
}

.projects-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 24px;
  position: relative;
  transition: transform var(--transition-fast);
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 15%;
  right: 0;
  height: 70%;
  width: 1px;
  background: var(--color-border-light);
}

.stat-item:hover {
  transform: translateY(-3px);
}

.stat-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--gold-primary);
  fill: none;
  stroke-width: 1.7;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: clamp(2.3rem, 3.8vw, 3.1rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-dark-primary);
  margin-bottom: 8px;
}

.stat-label {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dark-muted);
}


/* ==========================================================================
   5. BOTTOM CTA (LET'S BRING YOUR VISION TO LIFE)
   ========================================================================== */
.projects-cta-section {
  position: relative;
  min-height: 450px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #111215;
}

.projects-cta-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.projects-cta-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 1.2s ease;
}

.projects-cta-section:hover .projects-cta-bg-img {
  transform: scale(1.03);
}

.projects-cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to right,
    rgba(14, 15, 18, 0.96) 0%,
    rgba(14, 15, 18, 0.90) 38%,
    rgba(14, 15, 18, 0.50) 65%,
    rgba(14, 15, 18, 0.15) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.projects-cta-container {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-top: 75px;
  padding-bottom: 75px;
}

.projects-cta-content {
  max-width: 600px;
}

.projects-cta-title {
  font-family: var(--font-serif);
  font-size: clamp(2.3rem, 3.8vw, 3.3rem);
  font-weight: 700;
  line-height: 1.18;
  color: #FFFFFF;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.projects-cta-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-light-secondary);
  margin-bottom: 30px;
}


/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* Tablets & Small Desktops (<= 1024px) */
@media (max-width: 1024px) {
  .gallery-top-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }

  .projects-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }

  .projects-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 32px;
  }

  .stat-item:nth-child(2)::after {
    display: none;
  }
}

/* Mobile Devices (<= 768px) */
@media (max-width: 768px) {
  .projects-hero-section {
    min-height: auto;
    padding-top: calc(var(--header-height) + 36px);
    padding-bottom: 60px;
  }

  .projects-hero-bg {
    width: 100%;
    opacity: 0.32;
  }

  .projects-hero-overlay {
    background: linear-gradient(to bottom, rgba(14, 15, 18, 0.72) 0%, rgba(14, 15, 18, 0.96) 100%);
  }

  .projects-gallery-section,
  .projects-stats-section {
    padding: 70px 0;
  }

  .gallery-filters {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 8px;
    width: 100%;
    scrollbar-width: none;
  }

  .gallery-filters::-webkit-scrollbar {
    display: none;
  }

  .projects-cards-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .projects-stats-grid {
    grid-template-columns: 1fr;
    row-gap: 26px;
  }

  .stat-item::after {
    display: none !important;
  }

  .projects-cta-overlay {
    background: linear-gradient(to right, rgba(14, 15, 18, 0.95) 0%, rgba(14, 15, 18, 0.85) 100%);
  }
}

.footer-link.active {
  color: var(--gold-primary) !important;
  font-weight: 600;
  position: relative;
}

.footer-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold-gradient);
}
