/* ═══════════════════════════════════════════
   Landing Page — Interview Portfolio
   ═══════════════════════════════════════════ */

:root {
  --bg: #09090b;
  --surface: #18181b;
  --surface-hover: #27272a;
  --accent: #2dd4bf;
  --accent-dim: #0d9488;
  --text: #fafafa;
  --muted: #a1a1aa;
  --border: #27272a;
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ── */
.header {
  padding: 3rem 2rem 1.5rem;
  text-align: center;
}

.header-tag {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.header h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.header p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-top: 0.75rem;
  max-width: 480px;
  margin-inline: auto;
}

/* ── Accent rule ── */
.accent-rule {
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 2rem auto 0;
}

/* ── Card Grid ── */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 920px;
  margin: 3rem auto;
  padding: 0 1.5rem;
  flex: 1;
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-decoration: none;
  color: var(--text);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  min-height: 180px;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(45,212,191,0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  border-color: var(--accent-dim);
}

.card:hover::before { opacity: 1; }

.card-top { display: flex; flex-direction: column; gap: 0.5rem; }

.card-icon {
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(45,212,191,0.1);
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.card h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

.card-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 1.25rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.card:hover .card-label { opacity: 1; transform: translateY(0); }

/* ── Status Badge ── */
.card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.card-badge.done {
  background: rgba(34,197,94,0.15);
  color: #22c55e;
}

.card-badge.wip {
  background: rgba(234,179,8,0.15);
  color: #eab308;
}

.card-badge.todo {
  background: rgba(239,68,68,0.15);
  color: #ef4444;
}

/* ── Footer ── */
.footer {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .header { padding: 2.5rem 1.5rem 1rem; }
}

@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr; max-width: 380px; }
  .card { min-height: 140px; }
}

@media (prefers-reduced-motion: reduce) {
  .card, .card::before, .card-label { transition: none; }
}

/* Focus visible */
.card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
