:root {
  --bg-primary: #0a0a0b;
  --bg-card: #141416;
  --bg-card-hover: #1a1a1d;
  --text-primary: #f5f5f4;
  --text-muted: #71717a;
  --accent: #e879f9;
  --accent-glow: rgba(232, 121, 249, 0.15);
  --border: #27272a;
  --radius: 16px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'JetBrains Mono', monospace;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: 
    radial-gradient(ellipse at 20% 0%, var(--accent-glow) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(56, 189, 248, 0.08) 0%, transparent 50%);
}

header {
  padding: 4rem 2rem 2rem;
  text-align: center;
}

h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

main {
  flex: 1;
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.animation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.animation-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
}

.animation-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  box-shadow: 0 0 40px var(--accent-glow);
  transform: translateY(-4px);
}

.card-content {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.placeholder .card-content {
  border-bottom: 1px solid var(--border);
}

.placeholder-text {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.card-label {
  padding: 1rem 1.25rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

footer {
  padding: 2rem;
  text-align: center;
}

footer p {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 300;
}

/* Animation container styles for SVGs */
.animation-card svg {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

/* Utility class for animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animation-card {
  animation: fadeIn 0.6s ease-out forwards;
}

.animation-card:nth-child(2) { animation-delay: 0.1s; }
.animation-card:nth-child(3) { animation-delay: 0.2s; }
.animation-card:nth-child(4) { animation-delay: 0.3s; }
.animation-card:nth-child(5) { animation-delay: 0.4s; }
.animation-card:nth-child(6) { animation-delay: 0.5s; }
