/* ── Typography ─────────────────────────────────────────── */
body { font-family: 'Inter', system-ui, sans-serif; color: #2d3436; line-height: 1.7; }
h1,h2,h3,h4,h5 { font-family: 'Playfair Display', Georgia, serif; }

/* ── Colours ────────────────────────────────────────────── */
:root {
  --navy: #1a2744;
  --gold: #c8973a;
  --light: #f8f9fa;
}
.text-accent { color: var(--gold) !important; }
.bg-navy { background-color: var(--navy) !important; }

/* ── Buttons ────────────────────────────────────────────── */
.btn-accent { background-color: var(--gold); color: #fff; border: none; }
.btn-accent:hover { background-color: #b07e2c; color: #fff; }
.btn-outline-accent { border: 2px solid var(--gold); color: var(--gold); background: transparent; }
.btn-outline-accent:hover { background-color: var(--gold); color: #fff; }

/* ── Hero ───────────────────────────────────────────────── */
.hero-section {
  min-height: 92vh;
  background: linear-gradient(135deg, #1a2744 0%, #0d1a38 60%, #162040 100%);
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.hero-section::after {
  content: ''; position: absolute; top: -50%; right: -10%;
  width: 600px; height: 600px; border-radius: 50%;
  background: rgba(200,151,58,0.06); pointer-events: none;
}
.hero-photo {
  width: 220px; height: 220px; border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--gold);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

/* ── Section headings ───────────────────────────────────── */
.section-heading {
  border-left: 4px solid var(--gold);
  padding-left: 14px;
  margin-bottom: 2rem;
}

/* ── Cards ──────────────────────────────────────────────── */
.card { border: none; box-shadow: 0 2px 12px rgba(0,0,0,0.07); transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-5px); box-shadow: 0 8px 28px rgba(0,0,0,0.13); }
.card-img-top { height: 200px; object-fit: cover; }

/* ── Stat cards ─────────────────────────────────────────── */
.stat-card { text-align: center; padding: 2rem 1rem; }
.stat-card .stat-number { font-size: 3rem; font-weight: 700; color: var(--gold); line-height: 1; font-family: 'Playfair Display', serif; }
.stat-card .stat-label { font-size: 0.9rem; color: #636e72; margin-top: 0.5rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* ── Tag badges ─────────────────────────────────────────── */
.tag-badge { display: inline-block; background: var(--navy); color: #fff; font-size: 0.72rem; padding: 2px 10px; border-radius: 20px; margin: 2px; }
.tag-pill { display: inline-block; background: #e9ecef; color: var(--navy); font-size: 0.8rem; padding: 4px 14px; border-radius: 20px; margin: 3px; text-decoration: none; transition: background 0.2s; }
.tag-pill:hover, .tag-pill.active { background: var(--gold); color: #fff; }

/* ── Timeline ───────────────────────────────────────────── */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before { content:''; position:absolute; left:0; top:0; bottom:0; width:3px; background: linear-gradient(to bottom, var(--gold), var(--navy)); border-radius: 2px; }
.timeline-item { position: relative; padding: 0 0 2rem 1.5rem; }
.timeline-item::before { content:''; position:absolute; left:-0.45rem; top:6px; width:14px; height:14px; border-radius:50%; background:var(--gold); border:3px solid #fff; box-shadow:0 0 0 2px var(--gold); }
.timeline-date { font-size: 0.82rem; color: var(--gold); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

/* ── Publication entries ────────────────────────────────── */
.pub-entry { border-left: 3px solid var(--gold); padding: 1rem 1.25rem; margin-bottom: 1.25rem; background: #fff; border-radius: 0 8px 8px 0; box-shadow: 0 1px 6px rgba(0,0,0,0.05); }
.pub-type-badge { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }

/* ── Blog ───────────────────────────────────────────────── */
.blog-body { max-width: 720px; margin: 0 auto; font-size: 1.05rem; }
.blog-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 1rem 0; }
.blog-body h2,h3 { margin-top: 2rem; }
.blog-body iframe { max-width: 100%; border-radius: 8px; }

/* ── Gallery ────────────────────────────────────────────── */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.photo-grid-item { position: relative; overflow: hidden; border-radius: 8px; cursor: pointer; aspect-ratio: 4/3; }
.photo-grid-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; user-select: none; -webkit-user-drag: none; }
.photo-grid-item:hover img { transform: scale(1.05); }
.photo-overlay { position:absolute; bottom:0; left:0; right:0; background:linear-gradient(transparent, rgba(0,0,0,0.6)); color:#fff; padding:8px 12px; font-size:0.82rem; transform:translateY(100%); transition:transform 0.3s; }
.photo-grid-item:hover .photo-overlay { transform:translateY(0); }

/* ── Profile links grid ─────────────────────────────────── */
.profile-link-card { display:flex; align-items:center; gap:12px; padding:1rem; border:1px solid #e9ecef; border-radius:10px; text-decoration:none; color:inherit; transition:all 0.2s; }
.profile-link-card:hover { border-color:var(--gold); background:#fffdf7; color:inherit; box-shadow:0 4px 16px rgba(200,151,58,0.15); }
.profile-link-card i { font-size:1.5rem; color:var(--gold); }

/* ── Presentation badges ────────────────────────────────── */
.badge-keynote { background:#6f42c1; }
.badge-invited { background:#0d6efd; }
.badge-competitive { background:#198754; }

/* ── Misc ───────────────────────────────────────────────── */
.page-header { background: linear-gradient(135deg, var(--navy) 0%, #243660 100%); color:#fff; padding: 4rem 0 3rem; margin-bottom:3rem; }
.page-header h1 { color:#fff; }
.page-header p { color:rgba(255,255,255,0.75); }
.section-alt { background: var(--light); }
