:root {
  --text: #1c1c1e;
  --muted: #5f6368;
  --bg: #fafafa;
  --card: #ffffff;
  --accent: #1b7b83;
  --radius: 14px;
}
* {box-sizing: border-box;}
body {margin: 0; font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Inter, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6;}
header {background: #fff; border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 100;}
.nav {display: flex; justify-content: space-between; align-items: center; max-width: none; margin: 0; padding: 12px 16px;}
.nav a {color: var(--text); text-decoration: none; margin-left: 24px; font-weight: 500;}
.nav a:hover {color: var(--accent);}
main {max-width: 1200px; margin: 0 auto; padding: 60px 16px;}
section {margin-bottom: 80px;}
h1, h2, h3 {color: #111;}
h1 {font-size: 3.6rem; margin-bottom: 0.4em; text-align: center;}
h2 {font-size: 2.2rem; margin-top: 1.4em; text-align: center;}
img {max-width: 100%; border-radius: var(--radius);}
.about {display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start;}
.about-text {flex: 1 1 420px; max-width: 560px;}
.grid {display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 20px;}
.btn {display: inline-block; background: var(--accent); color: #fff; padding: 12px 20px; border-radius: var(--radius); text-decoration: none; margin-top: 10px;}
.card {background: var(--card); border: 1px solid #e3e3e3; padding: 24px; border-radius: var(--radius); margin-bottom: 20px; text-align: left; display:flex; flex-direction:column;}
footer {border-top: 1px solid #eee; padding: 30px; text-align: center; color: var(--muted); font-size: 0.9rem;}
/* card paragraph line-height */
.grid .card p { line-height: 1.6; min-height: 72px; }

.cv-section { text-align: center; }
.cv-section .btn { margin-left: auto; margin-right: auto; }


/* equalize card heights */
.grid .card { display: flex; flex-direction: column; height: 100%; }
.grid .card h3 { min-height: 56px; display: flex; align-items: flex-start; }
.grid .card p { line-height: 1.6; min-height: 96px; margin-top: 8px; }
