/* Base theme */
:root {
  --bg: #ffffff;
  --text: #0f172a; /* slate-900 */
  --muted: #475569; /* slate-600 */
  --border: #e2e8f0; /* slate-200 */
  --card: #ffffff;
  --accent: #0ea5e9; /* sky-500 */
  --accent-strong: #0284c7; /* sky-600 */
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 16px rgba(15, 23, 42, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;                 /* deep slate */
    --text: #e8edf3;               /* slightly brighter */
    --muted: #b6c2d0;              /* softer muted */
    --border: #334155;             /* slate-700 for clearer separation */
    --card: #0f172a;               /* slate-900 */
    --accent: #7dd3fc;             /* sky-300 */
    --accent-strong: #38bdf8;      /* sky-400 */
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 6px 24px rgba(0, 0, 0, 0.35);
    --stripe-opacity: 0.7;         /* soften brand stripes in dark */
  }
}

/* Light/Dark override with [data-theme] */
[data-theme="light"] {
  --bg: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --card: #ffffff;
  --accent: #0ea5e9;
  --accent-strong: #0284c7;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 16px rgba(15, 23, 42, 0.06);
}

[data-theme="dark"] {
  --bg: #0b1220;
  --text: #e8edf3;
  --muted: #b6c2d0;
  --border: #334155;
  --card: #0f172a;
  --accent: #7dd3fc;
  --accent-strong: #38bdf8;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 6px 24px rgba(0, 0, 0, 0.35);
  --stripe-opacity: 0.7;
}

/* Globals */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 8px; }
h1 { font-size: 28px; letter-spacing: -0.02em; }
h2 { font-size: 20px; margin-top: 24px; border-bottom: 1px solid var(--border); padding-bottom: 6px; }
h3 { font-size: 16px; color: var(--text); }
p { margin: 0 0 12px; color: var(--muted); }
ul { margin: 8px 0 12px; padding-left: 18px; }
li { margin-bottom: 6px; }

/* Extra spacing between section headers and their content */
.skills > h2 + *,
.experience > h2 + *,
.education > h2 + * { margin-top: 14px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(180deg, rgba(2,6,23,0.06), rgba(2,6,23,0)) , var(--bg);
  backdrop-filter: saturate(120%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}
.identity {
  display: grid;
  grid-template-columns: 96px auto;
  gap: 14px;
  align-items: center;
}
.avatar {
  width: 96px; height: 96px; border-radius: 50%;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.name { font-size: 24px; margin-bottom: 2px; }
.title { color: var(--muted); font-size: 14px; }
.contact-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; }

.header-actions { display: flex; gap: 8px; align-items: center; }

/* Links & Buttons */
.link { color: var(--accent-strong); text-decoration: none; border-bottom: 1px solid transparent; }
.link:hover { border-bottom-color: currentColor; }

.button {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button.primary { background: var(--accent); color: #fff; border-color: transparent; }
.button.primary:hover { background: var(--accent-strong); }
.button.ghost { background: transparent; }
.icon-button { border: 1px solid var(--border); background: var(--card); color: var(--muted); border-radius: 8px; padding: 6px; cursor: pointer; }
.icon-button:hover { color: var(--text); }
.button-text { font-size: 14px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus { position: static; width: auto; height: auto; padding: 8px; background: var(--accent); color: #fff; }

/* Sections */
main.container { padding: 20px; }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 720px) {
  .identity { grid-template-columns: 64px auto; }
  .avatar { width: 64px; height: 64px; }
  .skills-grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  box-shadow: var(--shadow);
  position: relative;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 12px 0 0 12px;
  background: linear-gradient(180deg, var(--stripe-start, var(--accent)), var(--stripe-end, var(--accent-strong)));
  opacity: var(--stripe-opacity, 0.9);
}
.split {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
}
.dates { color: var(--muted); font-size: 14px; white-space: nowrap; }
.role { color: var(--muted); }
.job + .job { margin-top: 10px; }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 8px 0 0; }
.tags li {
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(2,6,23,0.04), rgba(2,6,23,0));
  color: var(--muted);
  font-size: 12px;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
}

@media (prefers-color-scheme: dark) {
  .tags li {
    background: linear-gradient(180deg, rgba(148,163,184,0.08), rgba(148,163,184,0.02));
  }
}

[data-theme="dark"] .tags li {
  background: linear-gradient(180deg, rgba(148,163,184,0.08), rgba(148,163,184,0.02));
}

/* Education tweaks */
.education .card + .card { margin-top: 16px; }
.education .card {
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.10), 0 12px 28px rgba(15, 23, 42, 0.08);
}

/* Section-specific accent stripes */
.skills .card { --stripe-start: #0891b2; --stripe-end: #0e7490; }
.experience .card { --stripe-start: #1e3a8a; --stripe-end: #1d4ed8; }
.education .card { --stripe-start: #16a34a; --stripe-end: #22c55e; }

/* Brand-specific stripes (from provided primary colors) */
[data-brand="test-double"].card { --stripe-start: #00A86B; --stripe-end: #00A86B; }
[data-brand="digital-onboarding"].card { --stripe-start: #0066CC; --stripe-end: #0066CC; }
[data-brand="simplebet"].card { --stripe-start: #6B46C1; --stripe-end: #6B46C1; }
[data-brand="cj-affiliate"].card { --stripe-start: #FF6900; --stripe-end: #FF6900; }
[data-brand="connexity"].card { --stripe-start: #EF4444; --stripe-end: #EF4444; }
[data-brand="viking-code-school"].card { --stripe-start: #DC2626; --stripe-end: #DC2626; }
[data-brand="thomas-aquinas-college"].card { --stripe-start: #D4AF37; --stripe-end: #D4AF37; }

/* Subtle hover for skill pills */
.skills .tags li:hover {
  transform: translateY(-0.5px);
  background: linear-gradient(180deg, rgba(2,6,23,0.05), rgba(2,6,23,0));
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  color: inherit;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 20px;
}
.site-footer .container { padding: 14px 20px; }

/* Toast */
.toast { font-size: 12px; color: var(--muted); }

/* To top button */
.to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 20;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
}

/* Reveal on scroll */
.reveal-on-scroll { opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .4s ease; }
.reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

/* Print styles */
@media print {
  :root {
    --bg: #ffffff; --text: #000; --muted: #111; --border: #ddd; --card: #fff;
  }
  body { background: #fff; color: #000; }
  .site-header, .site-footer, #to-top, #theme-toggle, #print-cv, #copy-email, .skip-link { display: none !important; }
  .card { box-shadow: none; }
  a { color: #000; text-decoration: none; }
}


