:root {
  --bg: #121212;
  --surface: #1e1e1e;
  --text: #ffffff;
  --muted: #cfcfcf;
  --accent: #7bdff2;
  --radius: 15px;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
}

#background-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.container { z-index: 1; padding: 20px; max-width: 960px; width: 100%; text-align: center; }

header h1 {
  font-size: clamp(1.8rem, 2.5vw + 1rem, 3rem);
  font-weight: 700;
  margin-bottom: 10px;
}
header p {
  font-size: clamp(1rem, 0.6vw + 0.85rem, 1.2rem);
  font-weight: 300;
  color: var(--muted);
  margin-bottom: 40px;
}

.dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  justify-content: center;
}

.card {
  background-color: var(--surface);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform .25s ease, box-shadow .25s ease;
  outline: none;
  overflow: hidden; /* This is the key part to clip the image */
}

@media (hover: hover) {
  .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  }
}
.card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.card-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.card-icon {
    font-size: 4em;
    z-index: 1;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.card-content { padding: 20px; text-align: left; }
.card-content h3 { margin: 0 0 10px; font-size: 1.6em; font-weight: 700; }
.card-content p { margin: 0; font-size: 1em; font-weight: 300; color: var(--muted); line-height: 1.5; }

.skip-link {
  position: absolute;
  left: 8px; top: -40px;
  padding: 8px 12px;
  background: #000; color: #fff; border-radius: 8px;
  transition: top .2s ease;
  z-index: 2;
}
.skip-link:focus { top: 8px; }

@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
  .card:hover { transform: none; }
}
