/* ===== Theme ===== */
:root {
  --bg:#ffffff;
  --fg:#0e0e10;
  --muted:#6b7280;
  --card:#f9fafb;
  --accent:#06d6a0;      /* mint (light) */
  --accent-ink:#061a14;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:#0f1115;
    --fg:#e5e7eb;
    --muted:#9ca3af;
    --card:#111318;
    --accent:#22d3ee;    /* cyan (dark) */
    --accent-ink:#051217;
  }
}

/* ===== Base ===== */
* { box-sizing: border-box; }
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--fg);
  background: var(--bg);
  max-width: 900px;
  margin: 40px auto;
  padding: 0 16px;
  line-height: 1.7;
}

/* ===== Header ===== */
header { margin-bottom: 40px; text-align: center; }
h1 { margin: 0 0 8px; font-size: 2rem; font-weight: 700; }
header p { margin: 6px 0; }

.links a, a {
  color: var(--accent);
  text-decoration: none;
  transition: color .2s, text-shadow .2s;
}
.links a:hover, a:hover { text-decoration: underline; }

/* Profile image */
.profile-pic {
  width: 120px; height: 120px; border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  margin-bottom: 16px;
  box-shadow: 0 0 10px rgba(0,0,0,.05);
  transition: transform .2s ease;
}
.profile-pic:hover { transform: scale(1.03); }

#about p {
  text-align: justify;
}

/* ===== Cards ===== */
.card {
  background: var(--card);
  border: 1px solid rgba(148,163,184,.25);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 12px 0;
  box-shadow: 0 2px 6px rgba(0,0,0,.03);
}
.card h2 { margin-top: 0; }

/* Aside line (fun personal note) */
.aside {
  color: var(--muted);
  margin-top: 12px;
  font-style: italic;
  font-size: .95rem;
}

/* ===== Favorite Builds ===== */
.builds { display: flex; flex-direction: column; gap: 24px; }
.build h3 { margin: 0 0 6px; font-size: 1.05rem; font-weight: 600; }
.build p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.6; }
.build a { font-weight: 600; }
.build a:hover { text-shadow: 0 0 8px rgba(6,214,160,.4); }
.tools { margin-top: 4px; font-size: .85rem; color: var(--fg); opacity: .85; }

/* Optional: make builds 2-column on large screens */
@media (min-width: 860px) {
  .builds { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* ===== Certifications ===== */
.cert-list { list-style: none; padding: 0; margin: 0; }
.cert-list li {
  display: flex; align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(148,163,184,.25);
}
.cert-list li:last-child { border-bottom: none; }
.cert-list a { color: var(--accent); text-decoration: none; }
.cert-list a:hover { text-shadow: 0 0 6px rgba(6,214,160,.4); }

/* White tile behind icons so transparent logos pop on any theme */
.cert-icon {
  width: 32px; height: 32px; object-fit: contain;
  background: #fff; padding: 6px;
  border: 1px solid rgba(148,163,184,.25);
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 12px;
  transition: opacity .2s, transform .2s;
}
.btn:hover { opacity: .9; transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ===== Footer ===== */
footer { margin-top: 48px; color: var(--muted); font-size: .9rem; text-align: center; }
