/* ─── FILTER TABS ────────────────────────────────────────── */

.portfolio-section {
  background: var(--ivoor);
  padding: clamp(64px, 10vw, 120px) clamp(24px, 7vw, 88px);
}

.filter-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-tab {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 20px;
  border: 1px solid var(--rand);
  background: transparent;
  color: var(--donker);
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.filter-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-tab.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* ─── PORTFOLIO GRID ─────────────────────────────────────– */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.project-card {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--rand);
}

.browser-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: flex;
  flex-direction: column;
  background: var(--donker);
  box-shadow: 0 12px 24px rgba(44, 36, 32, 0.1);
  transition: all 0.3s ease;
}

.browser-chrome {
  background: #2a2a2a;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(248, 247, 243, 0.05);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(248, 247, 243, 0.4);
}

.browser-dots {
  display: flex;
  gap: 4px;
}

.browser-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(248, 247, 243, 0.1);
}

.browser-address {
  flex: 1;
  padding: 4px 8px;
  background: rgba(248, 247, 243, 0.05);
  border-radius: 2px;
  font-size: 9px;
  color: rgba(248, 247, 243, 0.3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
  background: var(--donker);
}

.browser-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(217,119,87,0.2) 0%, rgba(26,21,18,0.8) 100%);
  font-family: var(--serif);
  color: rgba(248, 247, 243, 0.4);
  font-size: 13px;
  text-align: center;
  padding: 20px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.browser-frame:hover {
  box-shadow: 0 24px 48px rgba(44, 36, 32, 0.2);
  transform: translateY(-8px);
}

.browser-frame:hover .browser-screenshot {
  transform: translateY(-15%);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(217, 119, 87, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 20;
  pointer-events: none;
}

.browser-frame:hover .project-overlay {
  opacity: 1;
}

.project-overlay h4 {
  color: white;
  font-size: 16px;
  margin-bottom: 4px;
}

.project-overlay-sector {
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  margin-bottom: 12px;
}

.project-overlay-text {
  color: white;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.project-tags {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 12px;
  flex-wrap: wrap;
}

.project-tag {
  font-family: var(--mono);
  font-size: 9px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 4px 8px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ─── CTA SECTION ────────────────────────────────────────– */

.cta-section {
  background: var(--eik);
  padding: clamp(64px, 10vw, 120px) clamp(24px, 7vw, 88px);
}

.cta-content {
  text-align: center;
  color: var(--ivoor);
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  color: var(--ivoor);
  margin-bottom: 12px;
}

.cta-content > p {
  font-size: 16px;
  color: rgba(248, 247, 243, 0.75);
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 15px;
  min-width: 220px;
}

@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .filter-tabs {
    gap: 8px;
  }

  .filter-tab {
    padding: 8px 16px;
    font-size: 12px;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .btn-lg {
    width: 100%;
    min-width: auto;
  }
}
