:root {
  --mm-primary: #0d2c4e;
  --mm-primary-soft: #1a4a7e;
  --mm-accent: #c9952b;
  --mm-text: #1f2937;
  --mm-muted: #6b7280;
  --mm-bg: #ffffff;
  --mm-bg-alt: #f6f8fb;
  --mm-border: #e5e7eb;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  color: var(--mm-text);
  background-color: var(--mm-bg);
  line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--mm-primary);
  letter-spacing: -0.01em;
}

a {
  color: var(--mm-primary-soft);
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}

a:hover {
  color: var(--mm-accent);
  text-decoration: underline;
}

.navbar {
  background-color: var(--mm-primary) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.navbar .navbar-brand,
.navbar .nav-link {
  color: #ffffff !important;
  font-weight: 500;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link.active {
  color: var(--mm-accent) !important;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.4);
}

.hero {
  background: linear-gradient(135deg, var(--mm-primary) 0%, var(--mm-primary-soft) 100%);
  color: #ffffff;
  padding: 6rem 0 5rem;
}

.hero h1,
.hero h2,
.hero p {
  color: #ffffff;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.9);
}

.hero .badge-role {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.page-header {
  background: var(--mm-bg-alt);
  border-bottom: 1px solid var(--mm-border);
  padding: 3rem 0 2rem;
}

.page-header h1 {
  margin-bottom: 0.25rem;
}

.page-header .lead {
  color: var(--mm-muted);
  margin-bottom: 0;
}

section {
  padding: 4rem 0;
}

section.section-alt {
  background-color: var(--mm-bg-alt);
}

.section-title {
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  background-color: var(--mm-accent);
  border-radius: 3px;
}

.card {
  border: 1px solid var(--mm-border);
  border-radius: 0.75rem;
  transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 44, 78, 0.08);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(13, 44, 78, 0.08);
  color: var(--mm-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--mm-border);
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.6rem;
  top: 0.4rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--mm-accent);
  border: 3px solid var(--mm-bg);
  box-shadow: 0 0 0 2px var(--mm-accent);
}

.timeline-period {
  font-weight: 700;
  color: var(--mm-primary);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.timeline-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0.25rem 0 0.5rem;
  color: var(--mm-text);
}

.timeline-body {
  color: var(--mm-text);
}

.publication-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.publication-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--mm-border);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.publication-list li:last-child {
  border-bottom: none;
}

.publication-tag {
  flex: 0 0 auto;
  min-width: 56px;
  text-align: center;
  background: var(--mm-bg-alt);
  border: 1px solid var(--mm-border);
  color: var(--mm-primary);
  font-weight: 600;
  font-size: 0.78rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.4rem;
  letter-spacing: 0.04em;
}

.publication-meta {
  color: var(--mm-muted);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.publication-meta .award {
  color: var(--mm-accent);
  font-weight: 600;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
}

.contact-row a {
  color: inherit;
}

footer {
  background: var(--mm-primary);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 0 2rem;
  margin-top: 4rem;
}

footer a {
  color: #ffffff;
}

footer a:hover {
  color: var(--mm-accent);
}

.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin: 1.25rem 0;
}

.btn-primary {
  background-color: var(--mm-primary);
  border-color: var(--mm-primary);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--mm-primary-soft);
  border-color: var(--mm-primary-soft);
}

.btn-outline-primary {
  color: var(--mm-primary);
  border-color: var(--mm-primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--mm-primary);
  border-color: var(--mm-primary);
  color: #ffffff;
}

.btn-accent {
  background-color: var(--mm-accent);
  border-color: var(--mm-accent);
  color: #ffffff;
}

.btn-accent:hover,
.btn-accent:focus {
  background-color: #b88122;
  border-color: #b88122;
  color: #ffffff;
}

.requirements-card {
  background: var(--mm-bg-alt);
  border: 1px solid var(--mm-border);
  border-radius: 0.75rem;
  padding: 1.25rem;
}

.requirements-card h5 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.requirements-card ul {
  margin-bottom: 0;
  padding-left: 1.1rem;
}

.requirements-card ul li {
  margin-bottom: 0.25rem;
  color: var(--mm-muted);
}

.skill-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(13, 44, 78, 0.06);
  border: 1px solid rgba(13, 44, 78, 0.12);
  color: var(--mm-primary);
  font-size: 0.85rem;
  font-weight: 500;
  margin: 0.2rem 0.25rem 0.2rem 0;
}

.skill-pill i {
  color: var(--mm-accent);
}

.skill-group h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mm-muted);
  margin-bottom: 0.75rem;
}

.timeline-sub {
  position: relative;
  padding: 0.85rem 0 0.85rem 0;
  border-top: 1px dashed var(--mm-border);
  margin-top: 0.85rem;
}

.timeline-sub:first-child {
  border-top: none;
  margin-top: 0;
}

.timeline-sub-period {
  font-weight: 600;
  color: var(--mm-primary);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}

.timeline-sub-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
  color: var(--mm-text);
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

@media (max-width: 767.98px) {
  .hero {
    padding: 4rem 0 3rem;
  }
  section {
    padding: 3rem 0;
  }
}
