/* --- Base --- */
:root {
  --bg: #0f1115;
  --panel: #171a21;
  --text: #f2f5f7;
  --muted: #a7b0bd;
  --accent: #5aa9ff;
  --border: #242936;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
}

.container {
  width: min(100%, 900px);
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.title h1 {
  margin: 0 0 .25rem 0;
  font-weight: 700;
  letter-spacing: .2px;
}

.subtitle {
  margin: 0;
  color: var(--muted);
}

.summary {
  margin-top: .75rem;
  color: var(--text);
  opacity: .9;
}

.contact {
  margin-top: 1rem;
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  align-items: center;
  color: var(--muted);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

main {
  padding: 2rem 0 2.5rem;
  margin-top: 1rem;
}

section {
  background: var(--panel);
  /* slightly lighter gray */
  border: 1px solid var(--border);
  /* subtle border around the card */
  border-radius: 12px;
  /* smooth edges */
  padding: 1.5rem 1.5rem;
  margin: 1.25rem 0;
  /* space between cards */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  /* gentle shadow */
}


h2 {
  margin: 0 0 .75rem 0;
  font-size: 1.15rem;
  letter-spacing: .3px;
  font-weight: 700;
  color: var(--text);

  /* gradient text effect */
  background: linear-gradient(90deg, var(--accent) 0%, #66c2ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.item {
  margin-bottom: 1rem;
}

.item-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem 1rem;
}

.item-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

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

.sub-role-head h4 {
  margin: 0;
  font-size: .95rem;
  font-weight: normal;
  font-style: italic;
}

.sub-role ul {
  margin-top: 0.25rem;
}

.meta {
  color: var(--muted);
  font-size: .95rem;
}

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

.tags span {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: .35rem .6rem;
  border-radius: .5rem;
  font-size: .9rem;
}

.bullets {
  margin: 0;
  padding-left: 1.1rem;
}

.indent {
  margin-left: 1.5rem;
}

/* Certifications */
.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.certification-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.certification-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(90, 169, 255, 0.15);
}

.certification-badge img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.certification-placeholder {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 2rem;
}

.credly-link {
  text-align: center;
  margin-top: 1rem;
}

.credly-link a {
  font-size: 0.9rem;
  color: var(--accent);
}

.footer {
  border-top: 1px solid var(--border);
  margin-top: 1rem;
  color: var(--muted);
  background: #0c0e12;
}

.footer-inner {
  display: flex;
  gap: .75rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 1rem 0 2rem;
}

.divider {
  color: #2c3343;
}

@media (max-width: 540px) {
  .container {
    padding: 0 1.5rem 2rem;
  }

  .header {
    padding: 1rem 0;
  }

  .title {
    margin: 0 1rem;
  }

  .title h1 {
    font-size: 1.25rem;
    margin-bottom: 0.1rem;
  }

  .subtitle {
    font-size: .85rem;
    margin-bottom: 0.25rem;
  }

  .summary {
    font-size: .9rem;
    margin-top: 0.5rem;
  }

  .contact {
    margin-top: 0.75rem;
    font-size: .85rem;
    margin: 0 1rem;
  }

  .certifications-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.75rem;
  }

  .certification-badge {
    padding: 0.5rem;
  }

  .certification-badge img {
    width: 80px;
    height: 80px;
  }
}