/* Jeffrey Appiagyei - Personal Website
   Modern, professional design with warm accents */

:root {
  --bg: #0f0f0f;
  --bg-alt: #1a1a1a;
  --bg-card: #222;
  --text: #e8e8e8;
  --text-muted: #999;
  --accent: #d4a853;
  --accent-hover: #e5bc6b;
  --border: #333;
  --radius: 8px;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--accent-hover);
}

.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 1.5rem;
  background: rgba(15, 15, 15, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}
.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

/* Hero */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-accent {
  position: absolute;
  top: 20%;
  right: -10%;
  width: 40%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(212, 168, 83, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.hero-location {
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 2rem;
}

.hero-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--bg);
}

.btn-outline {
  border: 1.5px solid var(--border);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Sections */
.section {
  padding: 4rem 0;
}

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

.section-dark {
  background: var(--bg-card);
  color: var(--text);
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 2rem;
  color: var(--text);
}

/* About */
.about-content p {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}
.about-content strong {
  color: var(--accent);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.skill-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.skill-card ul {
  list-style: none;
}
.skill-card li {
  padding-left: 1.2em;
  position: relative;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.skill-card li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.skill-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.timeline-date {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
  flex-shrink: 0;
}

.timeline-item h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.timeline-item .org {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.timeline-item ul {
  list-style: none;
}
.timeline-item li {
  padding-left: 1.2em;
  position: relative;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.timeline-item li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.8em;
}

@media (max-width: 640px) {
  .timeline-item {
    grid-template-columns: 1fr;
  }
  .timeline-date {
    margin-bottom: -0.5rem;
  }
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s;
}
.project-card:hover {
  border-color: rgba(212, 168, 83, 0.4);
}

.project-card.featured {
  grid-column: 1 / -1;
  border-color: rgba(212, 168, 83, 0.3);
}

.project-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.project-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.project-tags span {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  background: rgba(212, 168, 83, 0.15);
  color: var(--accent);
  border-radius: 4px;
}

.project-link {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Publications */
.publications-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.pub-item h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pub-item ul {
  list-style: none;
}
.pub-item li {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  padding-left: 1rem;
  border-left: 2px solid var(--border);
}

/* Awards */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

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

.award-year {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.award-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.award-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Certifications */
.certs-list {
  list-style: none;
}
.certs-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-muted);
}
.certs-list li:last-child {
  border-bottom: none;
}

/* Contact */
.contact-info {
  text-align: center;
  font-size: 1rem;
}
.contact-info p {
  margin-bottom: 0.5rem;
}
.contact-info a {
  color: var(--accent);
}

/* Footer */
.site-footer {
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}
