:root {
  --primary: #1a1a2e;
  --accent: #0f3460;
  --highlight: #e94560;
  --light: #f5f5f5;
  --text: #333;
  --text-light: #666;
  --max-width: 800px;
}

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

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: #fff;
}

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

a:hover {
  color: var(--highlight);
}

/* Header / Hero */
header {
  background: var(--primary);
  color: #fff;
  padding: 3rem 1.5rem;
  text-align: center;
}

header .container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

/* Photo Gallery */
.photo-gallery {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.photo-gallery.single .photo-nav {
  visibility: hidden;
}

.photo-frame {
  text-align: center;
}

.photo-nav {
  background: none;
  border: 1px solid #ccc;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.4rem;
  color: var(--text-light);
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.photo-nav:hover {
  background: var(--light);
  color: var(--primary);
}

.profile-photo {
  display: block;
  width: 100%;
  max-width: 360px;
  border-radius: 8px;
  object-fit: cover;
  border: 3px solid var(--accent);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

header h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

header .tagline {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
}

header .tagline a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

header .tagline a:hover {
  color: var(--highlight);
}

.links {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}

.links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.links a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Main Content */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

section {
  margin-bottom: 2.5rem;
}

section h2 {
  font-size: 1.4rem;
  color: var(--primary);
  border-bottom: 2px solid var(--highlight);
  padding-bottom: 0.3rem;
  margin-bottom: 1rem;
}

.photo-caption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
  font-style: italic;
  margin-top: 0.4rem;
}

/* About */
.about p {
  color: var(--text-light);
  font-size: 1rem;
}

/* Experience */
.job {
  margin-bottom: 1.2rem;
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.job-title {
  font-weight: 600;
  font-size: 1.05rem;
}

.job-date {
  color: var(--text-light);
  font-size: 0.9rem;
  white-space: nowrap;
}

.job p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-top: 0.2rem;
}

/* Education */
.edu-item {
  margin-bottom: 1rem;
}

.edu-item .degree {
  font-weight: 600;
}

.edu-item .school {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Publications */
.pub-list {
  list-style: none;
}

.pub-list li {
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  color: var(--text-light);
  padding-left: 1rem;
  position: relative;
}

.pub-list li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  color: var(--highlight);
}

.pub-list .me {
  font-weight: 600;
  color: var(--text);
}

/* Awards */
.award {
  margin-bottom: 0.6rem;
}

.award strong {
  color: var(--text);
}

.award span {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem;
  color: var(--text-light);
  font-size: 0.85rem;
  border-top: 1px solid #eee;
}

/* Responsive */
@media (max-width: 600px) {
  header {
    padding: 2rem 1rem;
  }
  header h1 {
    font-size: 1.6rem;
  }
  .profile-photo {
    max-width: 280px;
  }
  .job-header {
    flex-direction: column;
    gap: 0.1rem;
  }
}
