:root {
  --primary: #1e40af;
  --primary-light: #e2e8f0;
  --secondary: #2563eb;
  --secondary-hover: #1d4ed8;
  --background: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #334155;
  --text-muted: #64748b;
  --border: #cbd5e1;
  --radius-pill: 9999px;
  --radius-card: 12px;
}

.app-header {
  background-color: white;
  color: white;
  padding: 3rem 1.5rem;
  text-align: center;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 2.5rem;
  font-weight: 700;
}

.logo span {
  color: #93c5fd;
}

.subtitle {
  color: #cbd5e1;
}

.app-main {
  max-width: 1200px;
  margin: -2rem auto 4rem;
  padding: 0 1.5rem;
}

.filters-section {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-card);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  margin-bottom: 3rem;
}

.filters-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.filter-title {
  font-size: .875rem;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.pills-container {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.pill {
  background: var(--primary-light);
  color: var(--primary);
  padding: .5rem 1.25rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: none;
}

.pill.active {
  background: var(--primary);
  color: white;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-card);
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 1rem 0;
}

.btn-card {
  margin-top: auto;
  padding: .75rem;
  background: var(--secondary);
  color: white;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
}

.modal-content {
  position: relative;
  background: white;
  border-radius: var(--radius-card);
  padding: 2.5rem;
  max-width: 900px;
  width: 90%;
  z-index: 2;
}