@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --border: #e5e7eb;
  --text: #111827;
  --muted: #6b7280;

  --primary: #2563eb;
  --primary-soft: #eff6ff;

  --radius: 14px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.06);

  --maxw: 920px;
}

/* Dark Mode */
body.dark {
  --bg: #0b1220;
  --surface: #111a2e;
  --border: rgba(255, 255, 255, 0.12);
  --text: #e5e7eb;
  --muted: rgba(229, 231, 235, 0.75);

  --primary: #60a5fa;
  --primary-soft: rgba(96, 165, 250, 0.18);
  --shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

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

/* Header */
.site-header {
  text-align: center;
  padding: 64px 16px 32px;
}

.site-header h1 {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.site-header p {
  max-width: 60ch;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Navigation */
.site-nav {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.site-nav ul {
  display: flex;
  justify-content: center;
  gap: 12px;
  list-style: none;
  padding: 12px;
  margin: 0;
}

.site-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav a:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.site-nav a.active {
  background: var(--primary-soft);
  color: var(--primary);
}

/* Layout */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px 16px 64px;
}

.tech-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin: 22px 0 40px;
}

.tech-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;

  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  box-shadow: var(--shadow);

  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}

.tech-card img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  display: block;
  margin-bottom: 14px;
}

.tech-card span {
  font-weight: 600;
  color: var(--text);
  font-size: 1.05rem;
}

.tech-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  border-color: rgba(37, 99, 235, 0.25);
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.card h2 {
  margin-top: 0;
  font-size: 1.4rem;
}

.card h3 {
  margin-top: 24px;
}

/* Lists */
ul {
  padding-left: 18px;
}
li {
  margin: 6px 0;
}

/* Code */
pre {
  background: #f9fafb;
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 12px;
  overflow-x: auto;
  font-size: 0.95rem;
  color: var(--text);
}

/* Dark Mode */
body.dark pre {
  background: rgba(255, 255, 255, 0.06);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    'Liberation Mono', 'Courier New', monospace;
}

/* Buttons */
.actions {
  margin-top: 16px;
}

.btn {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 10px 16px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  transition: background 0.2s ease, transform 0.15s ease;
  cursor: pointer;
}

.btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

/* Dark Mode Button Hover */
body.dark .btn:hover {
  background: #3b82f6;
}

.hint {
  margin-top: 12px;
  padding: 12px 14px;
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--muted);
}

body.dark .hint {
  background: rgba(255, 255, 255, 0.06);
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 32px 16px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 640px) {
  .site-header h1 {
    font-size: 2.1rem;
  }

  .site-nav ul {
    flex-wrap: wrap;
  }
}

.site-header--home {
  border-bottom: 1px solid var(--border);
}


