/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:        #1e3a5f;
  --navy-dark:   #152b47;
  --accent:      #2563eb;
  --accent-light:#eff6ff;
  --text:        #111827;
  --text-muted:  #6b7280;
  --border:      #e5e7eb;
  --bg:          #ffffff;
  --bg-alt:      #f3f4f6;
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:   0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.04);
  --font:        'Inter', system-ui, -apple-system, sans-serif;
  --max-width:   880px;
  --radius:      10px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-alt);
  line-height: 1.6;
}

/* ===== LAYOUT ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #2a4d7f 100%);
  color: #ffffff;
  padding: 3.5rem 0 3rem;
}

.hero-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-name {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.hero-title {
  font-size: 1rem;
  font-weight: 600;
  color: #93c5fd;
  margin-bottom: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-summary {
  font-size: 0.95rem;
  color: #cbd5e1;
  max-width: 520px;
  line-height: 1.7;
}

.hero-contact {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex-shrink: 0;
}

.hero-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #bfdbfe;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s;
}

.hero-link:hover {
  color: #ffffff;
}

.hero-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ===== STICKY NAV ===== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-dark);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

.nav-links a {
  display: block;
  padding: 0.7rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: #94a3b8;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.07);
}

/* ===== MAIN ===== */
main {
  padding-bottom: 1.5rem;
}

/* ===== SECTIONS ===== */
.section {
  background: var(--bg);
  margin: 1.25rem 0;
  padding: 2.25rem 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.section:first-child { margin-top: 1.5rem; }

.section-title {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 1.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--accent-light);
}

/* ===== ABOUT ===== */
.about-text {
  font-size: 0.975rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 700px;
}

/* ===== EXPERIENCE ===== */
/*
  Consistent structure for every employer:
    .job-card
      .job-company-row  ← employer name, always on top
      .job-role         ← one block per role (repeated for multi-role)
        .job-role-header  ← title + dates on one line
        .job-bullets      ← optional
*/

.job-card {
  border-left: 3px solid var(--border);
  padding-left: 1.25rem;
  margin-bottom: 2rem;
  transition: border-left-color 0.2s;
}

.job-card:last-child { margin-bottom: 0; }

.job-card:hover { border-left-color: var(--accent); }

.job-company-row {
  margin-bottom: 0.6rem;
}

.job-company {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.job-role {
  padding: 0.5rem 0;
}

.job-role + .job-role {
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
}

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

.job-title {
  font-size: 0.975rem;
  font-weight: 600;
  color: var(--text);
}

.job-dates {
  font-size: 0.775rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 0.15rem 0.55rem;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.job-bullets {
  list-style: none;
  padding: 0;
  margin-top: 0.4rem;
}

.job-bullets li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  line-height: 1.65;
}

.job-bullets li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.4;
}

/* ===== EDUCATION ===== */
.edu-card {
  border-left: 3px solid var(--border);
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
  transition: border-left-color 0.2s;
}

.edu-card:last-child { margin-bottom: 0; }
.edu-card:hover { border-left-color: var(--accent); }

.edu-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.edu-degree {
  font-size: 0.975rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.edu-school {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.edu-dates {
  font-size: 0.775rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 0.15rem 0.55rem;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ===== SKILLS ===== */
.skills-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skill-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border-left: 4px solid transparent;
}

.skill-category {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  min-width: 90px;
  flex-shrink: 0;
  padding-top: 0.25rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.22rem 0.65rem;
  border-radius: 20px;
}

/* Skill color themes */
.skill-purple { background: #f5f3ff; border-left-color: #7c3aed; }
.skill-purple .skill-category { color: #6d28d9; }
.skill-purple .tag { background: #ede9fe; color: #5b21b6; }

.skill-blue { background: #eff6ff; border-left-color: #2563eb; }
.skill-blue .skill-category { color: #1d4ed8; }
.skill-blue .tag { background: #dbeafe; color: #1e40af; }

.skill-orange { background: #fff7ed; border-left-color: #ea580c; }
.skill-orange .skill-category { color: #c2410c; }
.skill-orange .tag { background: #ffedd5; color: #9a3412; }

.skill-sky { background: #f0f9ff; border-left-color: #0284c7; }
.skill-sky .skill-category { color: #0369a1; }
.skill-sky .tag { background: #e0f2fe; color: #075985; }

.skill-teal { background: #f0fdfa; border-left-color: #0f766e; }
.skill-teal .skill-category { color: #0f766e; }
.skill-teal .tag { background: #ccfbf1; color: #115e59; }

/* ===== CERTIFICATIONS ===== */
.cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.cert-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.cert-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.cert-issuer {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.cert-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.cert-year {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy-dark);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: #64748b;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .hero-name { font-size: 1.9rem; }

  .section {
    padding: 1.75rem 1.25rem;
    border-radius: 0;
    margin: 0.5rem 0;
  }

  .job-role-header,
  .edu-header {
    flex-direction: column;
    gap: 0.4rem;
  }

  .cert-grid { grid-template-columns: 1fr 1fr; }

  .skill-row {
    flex-direction: column;
    gap: 0.5rem;
  }

  .skill-category { min-width: unset; }
}

@media (max-width: 400px) {
  .cert-grid { grid-template-columns: 1fr; }
}
