:root {
  --bg: #ffffff;
  --text: #1a1d21;
  --muted: #5b636e;
  --accent: #0a6cff;
  --card: #f4f6f9;
  --border: #e3e7ec;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111418;
    --text: #e8ebef;
    --muted: #9aa3ad;
    --card: #1b2026;
    --border: #2a3038;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--accent); }

.container {
  width: min(1100px, 100% - 32px);
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 16px;
}
.logo {
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  color: var(--text);
}
nav { display: flex; gap: 20px; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--text); }

.hero { padding: 96px 0 72px; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
  margin: 0 0 16px;
  max-width: 18ch;
}
.hero p { color: var(--muted); font-size: 1.15rem; max-width: 50ch; }

.button {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 22px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.section { padding: 56px 0; border-top: 1px solid var(--border); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.card h3 { margin-top: 0; }

.technologies {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  /* 2 per row on phones/tablets, all in one horizontal row on desktop */
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (min-width: 900px) {
  .technologies { grid-template-columns: repeat(3, 1fr); }
}
.technologies li {
  /* Logos are designed for light backgrounds, so tiles stay white in dark mode too */
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  height: 180px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.technologies li:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgb(0 0 0 / 0.08);
}
.technologies a {
  /* Whole tile is clickable */
  height: 100%;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.technologies img {
  /* Every logo gets the same frame and scales to fit it without distortion */
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  nav { gap: 12px; font-size: 0.95rem; }
  .hero { padding: 64px 0 48px; }
}
