/* ============================
   PAGE HEADER
   ============================ */
.page-header {
  padding: 8rem 3rem 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 600px; height: 400px;
  background: radial-gradient(ellipse at top right, rgba(0,245,195,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.page-header-inner {
  max-width: 700px;
  animation: fadeUp 0.8s ease both;
}

.page-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: clamp(2.8rem, 7vw, 6rem);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 1rem;
}

.page-sub {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.8;
  margin-bottom: 3rem;
}

/* ============================
   FILTER ROW
   ============================ */
.filter-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
  animation: fadeUp 0.8s 0.2s ease both;
  opacity: 0;
}

.filter-btn {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.5rem 1.1rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--fg-muted);
  cursor: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.filter-btn:hover {
  border-color: rgba(0,245,195,0.4);
  color: var(--fg);
}

.filter-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* ============================
   PROJECTS MAIN
   ============================ */
.projects-main {
  padding: 4rem 3rem;
  min-height: 50vh;
}

/* ============================
   DEV CARD GRID
   ============================ */
.dev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

/* ============================
   DEV CARD
   ============================ */
.dev-card {
  background: var(--bg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  transition: background 0.25s;
}

.dev-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 2px; height: 0;
  background: var(--accent);
  transition: height 0.4s ease;
}

.dev-card:hover {
  background: rgba(0,245,195,0.025);
}

.dev-card:hover::after {
  height: 100%;
}

/* Card header row */
.dev-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Status badge */
.dev-status {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.dev-status.live   { color: var(--accent); }
.dev-status.indev  { color: #f5c400; }
.dev-status.archiv { color: var(--fg-muted); }

.dev-status::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.dev-status.live::before {
  box-shadow: 0 0 6px currentColor;
  animation: pulse 2s infinite;
}

/* Card meta (type + year) */
.dev-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dev-type {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(0,245,195,0.25);
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
}

.dev-year {
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
}

/* Card title */
.dev-card-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  line-height: 1.3;
  margin: 0;
}

/* Card description */
.dev-card-desc {
  font-size: 0.78rem;
  line-height: 1.8;
  color: var(--fg-muted);
  flex: 1;
  margin: 0;
}

/* Tech stack */
.dev-stack {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0;
  margin: 0;
}

.dev-stack li {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  background: rgba(255,255,255,0.04);
  padding: 0.25rem 0.65rem;
  border-radius: 2px;
  border: 1px solid var(--border);
}

.dev-stack li::before {
  content: '> ';
  color: var(--accent);
  opacity: 0.6;
}

/* Card links */
.dev-card-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

/* ============================
   EMPTY STATE
   ============================ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 6rem 2rem;
  color: var(--fg-muted);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.empty-icon {
  font-size: 2rem;
  color: rgba(0,245,195,0.3);
}

/* ============================
   PROJECTS CTA
   ============================ */
.portfolio-cta {
  border-top: 1px solid var(--border);
  padding: 6rem 3rem;
  background: var(--bg2);
}

.portfolio-cta-inner {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.portfolio-cta-inner h2 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: -0.01em;
}

.portfolio-cta-inner p {
  font-size: 0.8rem;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 900px) {
  .page-header {
    padding: 7rem 1.5rem 0;
  }

  .projects-main {
    padding: 3rem 1.5rem;
  }

  .dev-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-cta {
    padding: 4rem 1.5rem;
  }
}
