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

:root {
  --bg-color: #0B0F19;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --accent-color: #38bdf8;
  --accent-gradient: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
  --border-color: rgba(255, 255, 255, 0.1);
  --glass-border: 1px solid rgba(255, 255, 255, 0.05);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-secondary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(56, 189, 248, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(129, 140, 248, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #7dd3fc;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
header {
  padding: 2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: var(--glass-border);
  margin-bottom: 4rem;
}

header .logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: var(--accent-gradient);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 4rem 0 6rem;
}

.hero .avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 2rem;
  padding: 4px;
  background: var(--accent-gradient);
}

.hero .avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg-color);
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Glass Cards */
.card {
  background: var(--bg-card);
  border: var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s ease, background 0.3s ease;
  margin-bottom: 2rem;
}

.card:hover {
  transform: translateY(-5px);
  background: var(--bg-card-hover);
}

.card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.card .meta {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  display: block;
}

.meta {
  white-space: nowrap;
}

/* Footer */
footer {
  text-align: center;
  padding: 4rem 0 2rem;
  margin-top: 4rem;
  border-top: var(--glass-border);
  font-size: 0.875rem;
}

/* Content specific formatting */
.content h2 { margin-top: 2.5rem; }
.content p { margin-bottom: 1.5rem; }
.content ul, .content ol { margin-bottom: 1.5rem; padding-left: 2rem; }
.content li { margin-bottom: 0.5rem; line-height: 1.7; }

/* Resume Grid */
.resume-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}
@media (max-width: 768px) {
  .resume-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Resume
   ========================================================================== */

.resume-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 3rem;
  align-items: start;
  margin-bottom: 3.5rem;
}

.resume-name {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.resume-role {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
}

.resume-contact {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.9rem;
}

.resume-contact li { color: var(--text-secondary); }

.resume-summary p { margin-bottom: 1rem; }
.resume-summary p:last-child { margin-bottom: 0; }

.resume-summary strong { color: var(--text-primary); font-weight: 600; }

/* Impact metrics band */
.impact-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--border-color);
  border: var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 3.5rem;
}

.impact-item {
  background: var(--bg-color);
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.impact-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.impact-label {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* Sections */
.resume-section { margin-bottom: 3rem; }
.resume-section:last-child { margin-bottom: 0; }

.resume-section > h2 {
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  border-bottom: var(--glass-border);
  padding-bottom: 0.6rem;
  margin-bottom: 1.75rem;
}

.resume-sidebar .resume-section > h2 {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

/* Employer blocks */
.org {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 2.5rem;
}

.org::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  bottom: 0.35rem;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent-color), transparent);
}

.org:last-child { margin-bottom: 0; }

.org-name {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.org-meta {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

/* Publications share the .role markup but carry no timeline rail */
.pub-list .role { margin-bottom: 1.75rem; }
.pub-list .role:last-child { margin-bottom: 0; }

/* Individual roles inside an employer */
.role { margin-bottom: 1.5rem; }
.role:last-child { margin-bottom: 0; }

.role-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.25rem 1rem;
  margin-bottom: 0.25rem;
}

.role-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1rem;
}

.role-dates {
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
  white-space: nowrap;
}

.role-client {
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 0.6rem;
}

.role ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.95rem;
}

.role li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.5rem;
}

.role li:last-child { margin-bottom: 0; }

.role li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border-color);
}

.role li strong { color: var(--text-primary); font-weight: 600; }

/* Sidebar blocks */
.side-item { margin-bottom: 1.25rem; }
.side-item:last-child { margin-bottom: 0; }

.side-item h3 {
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.side-item p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.side-item .side-date {
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  color: var(--accent-color);
}

.side-list {
  list-style: none;
  padding: 0;
  font-size: 0.9rem;
}

.side-list li {
  padding: 0.3rem 0;
  color: var(--text-secondary);
}

.tag-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag-list li {
  font-size: 0.8rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: var(--glass-border);
  background: var(--bg-card);
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .resume-hero {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

/* Print / PDF export */
@media print {
  :root {
    --bg-color: #fff;
    --bg-card: transparent;
    --text-primary: #111;
    --text-secondary: #333;
    --accent-color: #0b63a5;
    --border-color: #ccc;
    --glass-border: 1px solid #ccc;
  }
  body { background: #fff; color: #222; }
  header nav, footer, .impact-band { display: none; }
  .container { max-width: none; padding: 0; }
  .resume-grid { grid-template-columns: 2fr 1fr; }
  .resume-role { -webkit-text-fill-color: #0b63a5; color: #0b63a5; }
  .org, .role, .side-item { break-inside: avoid; }
}

/* Tables */
.content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}
.content th, .content td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: var(--glass-border);
}
.content th {
  background: var(--bg-card);
  font-weight: 600;
  color: var(--text-primary);
}
