/* styles.css */
:root{
  --bg: #ffffff;
  --text: #111111;
  --muted: #555555;
  --faint: #777777;
  --border: #e8e8e8;
  --link: #0b63ce;
  --link-hover: #084a99;

  --maxw: 820px;
  --pad: 28px;

  --radius: 14px;
}

[data-theme="dark"] {
  --bg: #0e0f12;
  --text: #e9e9ea;
  --muted: #b8b8ba;
  --faint: #9a9aa0;
  --border: #24262c;
  --link: #6aa6ff;
  --link-hover: #9bc2ff;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]){
    --bg: #0e0f12;
    --text: #e9e9ea;
    --muted: #b8b8ba;
    --faint: #9a9aa0;
    --border: #24262c;
    --link: #6aa6ff;
    --link-hover: #9bc2ff;
  }
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  line-height: 1.55;
  font-size: 16px;
  transition: background 0.3s ease, color 0.3s ease;
}

a{
  color: var(--link);
  text-decoration: none;
}
a:hover{ color: var(--link-hover); text-decoration: underline; }

/* Theme Toggle Button */
.theme-toggle{
  position: fixed;
  top: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.theme-toggle:hover{
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

[data-theme="dark"] .theme-toggle{
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

[data-theme="dark"] .theme-toggle:hover{
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.theme-toggle svg{
  position: absolute;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.sun-icon{
  opacity: 0;
  transform: rotate(90deg);
}

.moon-icon{
  opacity: 1;
  transform: rotate(0deg);
}

[data-theme="dark"] .sun-icon{
  opacity: 1;
  transform: rotate(0deg);
  color: #ffffff;
}

[data-theme="dark"] .moon-icon{
  opacity: 0;
  transform: rotate(-90deg);
}

@media (max-width: 640px){
  .theme-toggle{
    top: 16px;
    right: 16px;
  }
}

.page{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--pad);
}

.skip-link{
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus{
  left: var(--pad);
  top: var(--pad);
  width: auto;
  height: auto;
  padding: 8px 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 10px;
}

.hero{
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  align-items: start;
}

@media (max-width: 640px){
  .hero{ grid-template-columns: 1fr; }
}

.avatar{
  width: 110px;
  height: 110px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid var(--border);
}

h1{
  margin: 0;
  font-size: 34px;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.lead{
  margin: 12px 0 14px;
  color: var(--muted);
  max-width: 70ch;
  font-size: 17px;
  line-height: 1.6;
}

.icon-row{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.icon-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  transition: all 0.2s ease;
  font-weight: 500;
}

.icon-link:hover{
  background: var(--border);
  transform: translateY(-1px);
  text-decoration: none;
}

.icon-link img{
  width: 18px;
  height: 18px;
  opacity: 0.85;
}

.hr{
  border: 0;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

/* Navigation Menu */
.menu{
  margin-top: 18px;
  position: relative;
}

.menu-toggle{
  display: none;
  flex-direction: column;
  gap: 5px;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 12px;
  cursor: pointer;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 1000;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.menu-toggle:hover{
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

@media (prefers-color-scheme: dark) {
  .menu-toggle{
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  }
  
  .menu-toggle:hover{
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  }
}

.menu-toggle span{
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1){
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2){
  opacity: 0;
}

.menu-toggle.active span:nth-child(3){
  transform: rotate(-45deg) translate(6px, -6px);
}

.menu-links{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.menu-links a{
  white-space: nowrap;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background 0.2s ease;
  font-weight: 500;
}

.menu-links a:hover{
  background: var(--border);
  text-decoration: none;
}

/* Mobile menu styles */
@media (max-width: 640px){
  .menu-toggle{
    display: flex;
  }

  .menu-links{
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: var(--bg);
    border-right: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 60px 0 20px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 999;
  }

  @media (prefers-color-scheme: dark) {
    .menu-links{
      box-shadow: 2px 0 20px rgba(0,0,0,0.5);
    }
  }

  .menu-links.active{
    transform: translateX(0);
  }

  .menu-links a{
    padding: 16px 24px;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
  }

  .menu-links a:hover{
    background: var(--border);
  }
}

blockquote{
  margin: 18px 0 0;
  padding: 14px 16px;
  border-left: 4px solid var(--border);
  color: var(--muted);
}
blockquote footer{
  margin-top: 8px;
  color: var(--faint);
}

section{
  scroll-margin-top: 24px;
  margin-top: 40px;
}

h2{
  margin: 0 0 18px;
  font-size: 24px;
  letter-spacing: -0.01em;
  font-weight: 700;
}

.entry{
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}
.entry:first-of-type{ border-top: 0; }

@media (max-width: 720px){
  .entry{ 
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.meta{
  color: var(--faint);
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
}

@media (max-width: 720px){
  .meta{
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
}

.meta img{
  width: 128px;
  height: 128px;
  object-fit: contain;
  border-radius: 0;
  border: none;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

@media (max-width: 720px){
  .meta img{
    width: 48px;
    height: 48px;
  }
}

[data-theme="dark"] .meta img{
  box-shadow: none;
}

/* Swap VC logo in dark mode */
[data-theme="dark"] .vc-logo{
  content: url('assets/vc_logo_grijs.png');
}

/* Swap Gimeg logo in dark mode */
[data-theme="dark"] .gimeg-logo{
  content: url('assets/gimeg_dark2.png');
}

.role{
  margin: 0 0 4px;
  font-weight: 700;
  font-size: 17px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.org{
  margin: 0 0 16px;
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
}

.desc{
  margin: 0;
  color: var(--text);
  line-height: 1.6;
}

/* Multiple roles at same company */
.multi-role .role-item{
  margin-bottom: 20px;
}

.multi-role .role-item:last-child{
  margin-bottom: 0;
}

.role-dates{
  color: var(--faint);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  flex-shrink: 0;
}

.list{
  margin: 0;
  padding-left: 20px;
}

.list li{ 
  margin: 12px 0;
  line-height: 1.6;
}

.pub-year{
  margin-top: 18px;
  color: var(--faint);
  font-weight: 700;
  font-size: 15px;
}

.pub{
  padding: 14px 0;
  border-top: 1px solid var(--border);
  line-height: 1.6;
}

.pub:first-of-type{ border-top: 0; }

/* Certificates Section */
.cert-entry{
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}

.cert-entry:first-of-type{ 
  border-top: 0; 
}

@media (max-width: 720px){
  .cert-entry{ 
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.cert-meta{
  color: var(--faint);
  font-weight: 700;
  font-size: 15px;
}

.cert-content{
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cert-title{
  margin: 0;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
}

.cert-issuer{
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
}

.cert-desc{
  margin: 4px 0 0;
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
}

.footer-icons{
  margin-top: 14px;
}

.small{
  color: var(--faint);
  font-size: 14px;
  margin-top: 18px;
}
