:root {
  --primary: #0167aa;
  --text-color: #222;
  --bg-color: #fdfdfd;
  --max-width: 800px;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;  /* Full viewport height */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
}

header {
  background: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  padding: 1.5rem 0;
  text-align: center; /* Center header content */
}

header h1 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 600;
}

header h1 a {
  text-decoration: none;
  color: var(--primary);
}

nav {
  margin-top: 0.5rem;
  text-align: center; /* Ensure nav links are centered */
}

nav a {
  margin: 0 1rem;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--primary);
}

main {
  max-width: var(--max-width);
  margin: 3rem auto;
  padding: 0 1.5rem;
  line-height: 1.7;
  flex: 1; /* Expand main to push footer down */
}

h2 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

a {
  color: var(--primary);
}

footer {
  background: #f5f5f5;
  padding: 1rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: #555;
}

hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 1rem 0;
}

.corresponding {
  font-size: 0.95em;
  vertical-align: super;
  color: #555;
}

#contact a svg {
  transition: transform 0.2s, fill 0.2s;
}

#contact a:hover svg {
  transform: scale(1.2);
  fill: #0074D9;
}

.profile-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3rem;
}

.profile-left {
  flex: 0 0 220px;
  text-align: center;
}

.profile-picture {
  width: 200px;
  border-radius: 8px;
  display: block;
  margin-bottom: 1rem;
}

.profile-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.profile-buttons a {
  width: 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-weight: 400;
  text-decoration: none;
  color: white;
  transition: transform 0.2s, filter 0.2s, background-color 0.2s;
}

.profile-buttons a svg.icon {
  width: 16px;
  height: 16px;
  margin-right: 0.5rem;
  fill: white;
}

/* Light blue buttons */
.button-cv, .button-email {
  background-color: #0167aa;
}

.profile-buttons a:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.profile-right {
  flex: 1;
  min-width: 250px;
  line-height: 1.7;
}