/* =============================================================================
UK DRI Portfolio Template — Stylesheet
Purpose:
- Provide a clean, professional default style for a personal portfolio site
- Use the UK DRI colour palette as sensible defaults (easy to customise)

How to customise:
- Change the CSS variables in :root to re-theme the template.
- Keep colour use minimal (navbar + small accents) for readability.
============================================================================= */

/* -----------------------------------------------------------------------------
UK DRI official colour palette (UK DRI Brand Guide Sept 2020)
Tip: Use dark blue for navigation, and one accent colour sparingly.
----------------------------------------------------------------------------- */
:root{
  /* Core neutrals */
  --ukdri-dark-blue: #00326e;   /* UK DRI dark blue */
  --ukdri-light-grey: #c4d1d9;  /* UK DRI light grey */
  --ukdri-dark-grey: #415767;   /* UK DRI dark grey */

  /* Optional blue accents (pick ONE for highlights) */
  --ukdri-petrol-blue: #007faf; /* UK DRI petrol blue */
  --ukdri-sky-blue:    #0ac8ff; /* UK DRI sky blue */
  --ukdri-bright-blue: #4682ff; /* UK DRI bright blue */
  --ukdri-cobalt:      #325ad7; /* UK DRI cobalt */

  /* Template theme choices (change these to re-theme quickly) */
  --brand-nav: var(--ukdri-dark-blue);
  --brand-accent: var(--ukdri-petrol-blue);
  --page-bg: #ffffff;
}

/* -----------------------------------------------------------------------------
Base typography & page feel
----------------------------------------------------------------------------- */
body{
  background: var(--page-bg);
}

a { text-decoration: none; }
a:hover { text-decoration: underline; }

/* Slightly crisper headings (subtle on purpose) */
h1, h2, h3 { letter-spacing: 0.2px; }

/* -----------------------------------------------------------------------------
Navbar branding
----------------------------------------------------------------------------- */
.navbar{
  background-color: var(--brand-nav) !important;
}

.navbar .nav-link,
.navbar .navbar-brand{
  color: rgba(255,255,255,0.88) !important;
}

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

/* Name styling in navbar (matches the “bold first name” look) */
.site-name{
  font-size: 1.35rem;
  letter-spacing: 0.2px;
}

.site-name strong{
  font-weight: 800;
  color: var(--brand-accent);
}

/* -----------------------------------------------------------------------------
CV page styling (cv.qmd)
Goal: clean, scannable, “web CV” layout (inspired by academic templates)
----------------------------------------------------------------------------- */
.cv-header {
  position: relative;
  text-align: center;
  margin-top: 0.5rem;
  margin-bottom: 1.75rem;
}

.cv-header h1 {
  margin-bottom: 0.25rem;
  font-size: 2.1rem;
  font-weight: 600;
}

.cv-subtitle {
  font-size: 1.05rem;
  font-weight: 600;
  opacity: 0.85;
  margin-bottom: 0.75rem;
}

.cv-links {
  font-size: 0.98rem;
  line-height: 1.3;
  margin: 0 auto;
  max-width: 980px;
  opacity: 0.95;
}

.cv-links a {
  text-decoration: none;
}

.cv-links a:hover {
  text-decoration: underline;
}

.cv-sep {
  margin: 0 0.35rem;
  opacity: 0.55;
}

/* Small “PDF” button in the top-right (optional) */
.cv-pdf {
  position: absolute;
  right: 0;
  top: 0.2rem;
  font-size: 0.95rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(0,0,0,0.18);
  border-radius: 0.4rem;
  text-decoration: none;
  background: rgba(255,255,255,0.65);
}

.cv-pdf:hover {
  background: rgba(255,255,255,0.95);
}

/* Make CV section headers feel bold and structured */
main h2 {
  margin-top: 1.6rem;
  font-weight: 700;
  font-size: 1.55rem;
}

main h2 + p,
main h2 + ul,
main h2 + div {
  margin-top: 0.35rem;
}

/* Horizontal rule spacing */
hr {
  margin: 1.4rem 0;
}

/* -----------------------------------------------------------------------------
Homepage hero (index.qmd)
Goal: intro text + avatar/banner image with a calm, professional feel
----------------------------------------------------------------------------- */
.home-hero {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  align-items: center;
}

.home-subtitle {
  font-size: 1.15rem;
  font-weight: 600;
  opacity: 0.85;
  margin-top: 0.2rem;
  margin-bottom: 0.9rem;
}

/* Avatar / banner image styling */
.profile-pic {
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.10);
  width: 100%;
  max-width: 380px;
  display: block;
  margin-left: auto;
}

/* -----------------------------------------------------------------------------
Résumé for Research: tighter spacing inside contribution cards
----------------------------------------------------------------------------- */

/* Reduce padding inside cards */
.card {
  padding: 1.1rem 1.25rem;
}

/* Tighten space under contribution titles */
.card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

/* Tighten list spacing inside cards */
.card ul {
  margin-top: 0.4rem;
  margin-bottom: 0;
  padding-left: 1.1rem;
}

/* Slightly reduce spacing between list items */
.card li {
  margin-bottom: 0.3rem;
}
/* Reusable profile link block */
.profile-links {
  display: flex;
  flex-wrap: wrap;        /* allows wrapping on small screens */
  gap: 0.4rem;            /* spacing between items */
  align-items: center;
  font-size: 1rem;
  opacity: 0.95;
}

.profile-links a {
  text-decoration: none;
  white-space: nowrap;
}

.profile-links a:hover {
  text-decoration: underline;
}

.profile-links .sep {
  opacity: 0.6;
}

/* Center profile links when used in CV header */
.cv-links .profile-links {
  justify-content: center;
}


/* Improve project cards */

.card {
  border: none;
  border-radius: 10px;
  padding: 1.5rem;
  background: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}