/* ─── PAGE HEADER ─── */
.page-header {
  padding: 9rem 6vw 4rem;
  background: var(--dark);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 60% 40%, rgba(56,187,217,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 30% 70%, rgba(243,101,27,0.06) 0%, transparent 55%);
  pointer-events: none;
}

.page-header-inner {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.page-header h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.08;
  margin: 0.75rem 0 1rem;
  animation: fadeUp 0.6s ease both;
}

.page-header p {
  color: var(--gray-light);
  font-size: 1.05rem;
  line-height: 1.7;
  animation: fadeUp 0.6s 0.1s ease both;
}

.page-header .section-tag {
  animation: fadeUp 0.5s ease both;
}

/* ─── FILTER BAR ─── */
.filter-bar {
  background: var(--dark2);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 68px;
  z-index: 50;
}

.filter-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 6vw;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--gray-light);
  font-family: 'Inter', sans-serif;
  font-size: 0.83rem;
  font-weight: 500;
  padding: 0.45rem 1rem;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.filter-btn [data-lucide] { width: 13px; height: 13px; display: block; }

.filter-btn:hover {
  background: rgba(255,255,255,0.08);
  color: var(--white);
}

.filter-btn.active {
  background: rgba(56,187,217,0.12);
  border-color: rgba(56,187,217,0.35);
  color: var(--blue);
  font-weight: 600;
}

.filter-btn[data-filter="laadpalen"].active,
.filter-btn[data-filter="zonnepanelen"].active {
  background: rgba(243,101,27,0.12);
  border-color: rgba(243,101,27,0.35);
  color: var(--orange);
}

/* ─── PROJECTS SECTION ─── */
.projects-section {
  background: var(--dark);
  padding: 3.5rem 6vw 7rem;
  min-height: 60vh;
}

/* ─── PROJECTS GRID ─── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* ─── PROJECT CARD ─── */
.project-card {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  animation: fadeUp 0.5s ease both;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(56,187,217,0.25);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.project-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.project-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-img-wrap img {
  transform: scale(1.05);
}

.project-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12,15,24,0.5) 0%, transparent 50%);
  pointer-events: none;
}

/* ─── CATEGORY BADGE ─── */
.project-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.cat-elektriciteit { background: var(--blue);   color: #fff; }
.cat-laadpalen     { background: var(--orange);  color: #fff; }
.cat-verlichting   { background: var(--blue);    color: #fff; }
.cat-zonnepanelen  { background: var(--orange);  color: #fff; }

/* ─── CARD INFO ─── */
.project-info {
  padding: 1.25rem 1.5rem 1.5rem;
}

.project-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.2px;
  margin-bottom: 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-info p {
  font-size: 0.86rem;
  color: var(--gray-light);
  line-height: 1.65;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-info time {
  font-size: 0.74rem;
  color: var(--gray);
  font-weight: 500;
}

/* ─── EMPTY STATE ─── */
.projects-empty {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 6rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  color: var(--gray);
}

.projects-empty [data-lucide] { width: 48px; height: 48px; display: block; opacity: 0.3; }
.projects-empty p { font-size: 1.1rem; font-weight: 600; color: var(--gray-light); }
.projects-empty span { font-size: 0.9rem; }

.projects-empty.visible { display: flex; }

/* ─── FOTO-TELLER BADGE ─── */
.foto-count-badge {
  position: absolute;
  bottom: 10px; right: 10px;
  z-index: 1;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(4px);
}

.foto-count-badge [data-lucide] { width: 12px; height: 12px; display: block; }

/* ─── LIGHTBOX ─── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #080b12;
  flex-direction: column;
}

.lightbox.open { display: flex; animation: fadeIn 0.2s ease; }

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

.lightbox-close {
  position: absolute;
  top: 1.1rem; right: 1.25rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  color: white;
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  transition: background 0.2s;
  z-index: 20;
}

.lightbox-close:hover { background: rgba(255,255,255,0.18); }
.lightbox-close [data-lucide] { width: 17px; height: 17px; display: block; }

/* ─── FOTO GEBIED ─── */
.lb-img-area {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 3.5rem 5rem 1.25rem;
}

#lightboxImg {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
  display: block;
  animation: imgIn 0.18s ease;
  user-select: none;
}

@keyframes imgIn {
  from { opacity: 0; transform: scale(0.98); }
  to   { opacity: 1; transform: scale(1); }
}

/* ─── NAVIGATIE PIJLEN ─── */
.lb-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  color: white;
  width: 54px; height: 54px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center; justify-content: center;
  font-size: 26px;
  z-index: 10;
  transition: background 0.2s, transform 0.15s;
}

.lb-nav:hover { background: rgba(255,255,255,0.16); transform: translateY(-50%) scale(1.06); }
.lb-nav [data-lucide] { width: 26px; height: 26px; display: block; }
.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }

/* ─── INFO BALK ONDERAAN ─── */
.lb-info-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.1rem 5vw 1.4rem;
  background: rgba(12,15,24,0.96);
  border-top: 1px solid rgba(255,255,255,0.07);
}

.lb-info-left {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.lightbox-cat {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  width: fit-content;
  margin-bottom: 0.1rem;
}

.lb-info-left h3 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lb-info-left p {
  font-size: 0.87rem;
  color: var(--gray-light);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lb-info-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
  flex-shrink: 0;
}

.lb-info-right time {
  font-size: 0.76rem;
  color: var(--gray);
  font-weight: 500;
}

/* ─── DOTS ─── */
.lb-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.lb-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.lb-dot.active {
  background: var(--blue);
  transform: scale(1.3);
}

.lb-dot:hover:not(.active) { background: rgba(255,255,255,0.45); }

/* ─── ACTIVE NAV LINK ─── */
.nav-active {
  color: var(--blue) !important;
  font-weight: 600 !important;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .lb-img-area   { padding: 3.5rem 3.5rem 1rem; }
}

@media (max-width: 580px) {
  .projects-grid { grid-template-columns: 1fr; }
  .filter-inner  { gap: 0.4rem; }
  .lb-img-area   { padding: 3.5rem 1rem 1rem; }
  .lb-nav        { width: 40px; height: 40px; }
  .lb-nav [data-lucide] { width: 20px; height: 20px; }
  .lb-prev       { left: 0.4rem; }
  .lb-next       { right: 0.4rem; }
  .lb-info-bar   { flex-direction: column; align-items: flex-start; gap: 0.75rem; padding: 1rem 5vw; }
  .lb-info-right { align-items: flex-start; flex-direction: row; gap: 1rem; }
  .lb-info-left h3 { font-size: 1rem; }
}

@media (max-width: 580px) {
  .projects-grid { grid-template-columns: 1fr; }
  .filter-inner  { gap: 0.4rem; }
  .lightbox      { padding: 1rem; }
}
