/* Reset and base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Merriweather", Georgia, serif;
  line-height: 1.75;
  background: linear-gradient(180deg, #f8f9fb 0%, #eef0f4 100%);
  color: #111;
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px;
  padding-top: 180px;
  -webkit-font-smoothing: antialiased;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  backdrop-filter: blur(24px) saturate(220%) brightness(105%);
  -webkit-backdrop-filter: blur(24px) saturate(220%) brightness(105%);
  background: linear-gradient(120deg, rgba(255,255,255,0.5), rgba(255,255,255,0.15));
  border-bottom: 1px solid rgba(0,122,255,0.25);
  text-align: center;
  padding: 18px 0 20px;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08), inset 0 0 10px rgba(255,255,255,0.1);
  transition: backdrop-filter 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
  pointer-events: auto;
}

header * {
  pointer-events: auto;
}

header h1 {
  font-size: 2.1em;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: #111;
}

header p {
  font-size: 0.9em;
  color: #444;
  opacity: 0.9;
  margin-bottom: 6px;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

header img.headshot {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(0,122,255,0.25);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: transform 0.35s cubic-bezier(.4,.2,.3,1), box-shadow 0.35s ease;
}

header img.headshot:hover {
  transform: scale(1.06);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
  border-color: rgba(0,122,255,0.45);
}

/* Navigation */
nav a {
  position: relative;
  text-decoration: none;
  color: #222;
  font-weight: 600;
  letter-spacing: 0.2px;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.3s ease, transform 0.3s ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 12%;
  bottom: 0;
  width: 76%;
  height: 2px;
  background: linear-gradient(90deg, rgba(0,122,255,0.4), rgba(0,200,255,0.2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  border-radius: 3px;
}

nav a:hover {
  color: #000;
  transform: translateY(-1.5px);
}

nav a:hover::after {
  transform: scaleX(1);
}

/* Sections */
section {
  scroll-margin-top: 180px;
  margin-bottom: 60px;
  padding: 42px 34px;
  border-radius: 16px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  border-left: 4px solid rgba(0,122,255,0.25);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-left-color 0.35s ease;
}

section:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  border-left-color: rgba(0,122,255,0.45);
}

/* Headings */
h2 {
  font-size: 2em;
  margin-top: -10px;
  margin-bottom: 34px;
  color: #111;
  position: relative;
  padding-bottom: 10px;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, rgba(0,122,255,0.4), rgba(0,200,255,0.2));
  border-radius: 3px;
}

h3 {
  font-size: 1.4em;
  margin-top: 25px;
  margin-bottom: 16px;
  color: #222;
  padding-bottom: 6px;
  position: relative;
}

h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, rgba(0,122,255,0.3), rgba(0,200,255,0.1));
}

/* Lists */
ul li::before,
ul.outputs li::before {
    content: none;
}

ul {
  list-style: none;
  padding-left: 0;
}

ul li {
  margin-bottom: 14px;
  line-height: 1.6;
  color: #333;
  padding-left: 0;
  position: relative;
}

ul li::before {
  content: "•";
  color: rgba(0,122,255,0.4); /* accent bullet */
  position: absolute;
  left: 0;
}

ul.outputs li {
  margin-bottom: 18px;
  line-height: 1.6;
  font-size: 1em;
  color: #333;
  padding-left: 14px;
  border-left: 3px solid rgba(0,122,255,0.25);
  transition: all 0.25s ease;
}

ul.outputs li:hover {
  transform: translateX(3px);
  border-left-color: rgba(0,122,255,0.45);
}

/* Links */
main a, section a, footer a {
  color: #222;
  text-decoration: none;
  border-bottom: 1px dashed rgba(0,122,255,0.25);
  transition: color 0.25s ease, border-bottom-color 0.25s ease;
}

main a:hover, section a:hover, footer a:hover {
  color: #000;
  border-bottom-color: rgba(0,122,255,0.45);
}

/* Footer */
footer {
  text-align: center;
  font-size: 0.9em;
  color: #666;
  margin-top: 80px;
  opacity: 0.85;
  border-top: 3px solid rgba(0,122,255,0.25);
  padding-top: 20px;
}

/* Responsiveness */
@media (max-width: 768px) {
  header {
    position: relative;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  }
  header h1 { font-size: 1.8em; }
  body { padding-top: 20px; }
  h2 { font-size: 1.8em; }
  h3 { font-size: 1.3em; }

  section {
    padding: 36px 22px;
    top: 0;
    position: relative;
    scroll-margin-top: 0;
  }

  section:first-of-type {
    margin-top: 36px;
  }
}