/* ============================================================
   refresh.css — 2026 refresh layer over main.css
   Keeps the original dark hero aesthetic but modernizes
   typography, spacing, and introduces the career viz styles.
   ============================================================ */

:root {
  --main: #1a222c;
  --sec: #4B5664;
  --accent: #7875ea;
  --accent-2: #0052ff;
  --ink: #222;
  --ink-soft: #555;
  --ink-faint: #8a93a0;
  --line: #e6e8ec;
  --bg-card: #ffffff;
  --bg-soft: #f7f8fa;
  --max: 1080px;
}

/* Main column width — a touch wider than the original 960px */
#about,
.career-section {
  max-width: var(--max);
}

main {
  background: var(--bg-soft);
}

/* ============ HERO ============ */
/* Clean gradient hero — replaces particles.js */
#particles-js {
  min-height: 100vh;
  background: linear-gradient(150deg, #1a222c 0%, #1e2d3d 50%, #1a222c 100%) !important;
  background-attachment: scroll !important;
}
#particles-js canvas { display: none; }

.header { font-family: 'Inter', 'Montserrat', sans-serif; }

.hero-portrait {
  width: 140px;
  height: 140px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.8);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}
.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (min-width: 768px) {
  .hero-portrait { width: 180px; height: 180px; }
}

.header .site-title {
  letter-spacing: -0.015em;
  font-weight: 700;
}
.header .site-description {
  letter-spacing: 0.02em;
  font-weight: 400;
  opacity: 0.85;
}

.hero-tagline {
  color: rgba(255,255,255,0.8);
  max-width: 36ch;
  margin: 1rem auto 1.25rem;
  font-size: 0.95rem;
  line-height: 1.55;
}
@media (min-width: 768px) {
  .hero-tagline { font-size: 1.05rem; }
}

/* ============ BIO / ABOUT SECTION ============ */
#about {
  padding: 4rem 1rem 2rem;
}
.user-details h1 {
  font-family: 'Inter', 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 0;
  padding-top: 0;
}
.lede {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--ink);
  max-width: 680px;
  margin: 1rem auto;
}
.section-sub {
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 auto 2rem;
}

/* Education / Focus cards */
.card-edu, .card-focus {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem;
  text-align: left;
}
.card-edu h2, .card-focus h2 {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  padding-top: 0;
  color: var(--ink);
}
.edu-list, .focus-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  font-size: 0.95rem;
}
.edu-list li {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.85rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}
.edu-list li:last-child { border-bottom: 0; }
.edu-logo {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
}
.edu-text {
  display: flex;
  flex-direction: column;
}
.edu-school { font-weight: 600; color: var(--ink); }
.edu-degree { color: var(--ink-soft); font-size: 0.88rem; }

.focus-list li {
  padding: 0.4rem 0 0.4rem 1.3rem;
  position: relative;
  color: var(--ink);
}
.focus-list li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  left: 0; top: 0.95rem;
}

/* ============ EXPERTISE STRIP ============ */
.expertise-strip {
  margin: 2.5rem 0 1.5rem;
  gap: 0.5rem;
}
.strip-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 1rem !important;
  margin: 0.25rem !important;
  flex: 0 0 auto !important;
}
.strip-item h2 {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem !important;
  font-weight: 500;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

/* ============ SKILLS GRID ============ */
.skills-header { margin-top: 3rem; }
.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}
@media (min-width: 640px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .skills-grid { grid-template-columns: repeat(4, 1fr); }
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.25rem;
  text-align: left;
  margin: 0 !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.skill-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(20, 24, 35, 0.07);
}
.skill-card h2 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem !important;
  font-weight: 600;
  margin: 0 0 0.75rem !important;
  padding: 0 !important;
  color: var(--ink);
}
.skill-card p {
  font-size: 0.92rem !important;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0.5rem 0 1rem;
}

.tag-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.tag-list li {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: var(--ink-soft);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
}
.skill-card-ai {
  background: linear-gradient(180deg, #fbfbff 0%, #ffffff 100%);
  border-color: #d9d6ff;
}

/* ============ CAREER SECTION ============ */
.career-section {
  width: 90%;
  max-width: var(--max);
  margin: 3rem auto 4rem;
  padding: 2rem 0 0;
}
.career-header {
  text-align: center;
  margin-bottom: 1.5rem;
}
.career-header h1 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  margin-top: 0;
  padding-top: 0;
}

/* ============ Career Highlights ============ */
.highlights {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.highlight {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  transition: box-shadow 0.2s ease;
}
.highlight:hover {
  box-shadow: 0 14px 34px rgba(20, 24, 35, 0.08);
}
@media (min-width: 860px) {
  .highlight { grid-template-columns: minmax(0, 1fr) minmax(280px, 420px); }
  .highlight:nth-child(even) {
    grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  }
  .highlight:nth-child(even) .highlight-viz { order: 2; }
  .highlight:nth-child(even) .highlight-body { order: 1; }
}
.highlight-viz {
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}
.viz-svg {
  display: block;
  width: 100%;
  height: auto;
}
.highlight-body {
  padding: 1.75rem;
  font-family: 'Inter', sans-serif;
}
.highlight-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.highlight-body h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 600;
  margin: 0 0 0.75rem;
  padding: 0;
  color: var(--ink);
}
.highlight-body p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 1rem;
}
.highlight-body p strong {
  color: var(--ink);
  font-weight: 600;
}
.highlight-cites {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.highlight-cites li a {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: none;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.highlight-cites li a:hover {
  background: #eeedff;
  border-color: #d9d6ff;
}

.career-fallback-title {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin: 1rem 0 0.75rem;
}

/* Plain-text fallback */
.career-fallback {
  margin-top: 2rem;
}
.career-list {
  list-style: none;
  padding: 0;
  counter-reset: role;
}
.career-list > li {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 0.8rem;
}
.career-list h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
  padding: 0;
  color: var(--ink);
}
.role-meta {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-faint);
  margin: 0.15rem 0 0.5rem;
  font-family: 'Inter', sans-serif;
}
.career-list ul {
  margin: 0;
  padding-left: 1.1rem;
}
.career-list li li {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ============ FOOTER ============ */
.footer {
  text-align: center;
  font-family: 'Inter', sans-serif;
  color: var(--ink-faint);
  padding: 2rem 1rem 3rem;
  font-size: 0.85rem;
}
.footer p { margin: 0.25rem 0; }

/* ============ CONTACT PROMPT ============ */
.contact-prompt {
  text-align: center;
  padding: 3.5rem 1rem 2.5rem;
  border-top: 1px solid var(--line);
}
.contact-label {
  font-size: 0.85rem;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}
.contact-email {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.contact-email:hover { text-decoration: underline; }

/* ============ UTILITY ============ */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .skill-card { transition: none; }
  .skill-card:hover { transform: none; }
  .career-svg .row-bar { transition: none; }
}

/* (Inter font is loaded via <link> in head.html to avoid a render-blocking @import.) */
