*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #000000;
  --text: #ffffff;
  --text-muted: #a3a3a3;
  --border: rgba(255, 255, 255, 0.08);
  --glow: rgba(255, 255, 255, 0.15);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Header — logo large and centered */
.header {
  width: 100%;
  padding: clamp(3rem, 8vw, 6rem) 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  max-width: min(320px, 70vw);
  height: auto;
  display: block;
  object-fit: contain;
}

/* Main — three projects */
.main {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  padding: clamp(2rem, 5vw, 4rem) 1.5rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  justify-items: center;
  align-items: stretch;
}

@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s ease, box-shadow 0.35s ease, transform 0.25s ease;
  background: transparent;
  min-height: 220px;
}

.card:hover {
  border-color: var(--glow);
  box-shadow: 0 0 40px var(--glow), 0 0 80px rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.card:focus {
  outline: none;
  border-color: var(--glow);
  box-shadow: 0 0 40px var(--glow);
}

.card-logo {
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.card-logo-img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  filter: brightness(1);
  transition: filter 0.25s ease;
}

.card:hover .card-logo-img {
  filter: brightness(1.05);
}

/* Gashtak Community logo has white bg in image — on black we may need invert or keep as-is; description says black text on white, so on black bg we'd want a version that works. Using as-is; if it's white bg it will stand out. */
.card-logo-text {
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text);
}

.card-desc {
  margin: 0;
  font-size: clamp(0.875rem, 1.8vw, 0.9375rem);
  line-height: 1.5;
  color: var(--text-muted);
}
