*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(1200px 800px at 20% 0%, var(--glow1), transparent 60%),
              radial-gradient(900px 600px at 80% 20%, var(--glow2), transparent 55%),
              var(--bg);
  color:var(--text);
  line-height:1.55;
}

a{color:inherit;text-decoration:none}
a:hover{color:var(--accent)}
.container{max-width:980px;margin:0 auto;padding:0 20px}

.site-header{
  position:sticky; top:0;
  backdrop-filter: blur(10px);
  background: rgba(11,15,23,.6);
  border-bottom:1px solid rgba(31,41,55,.6);
  z-index: 10;
}
.header-row{display:flex;align-items:center;justify-content:space-between;padding:14px 0}
.brand{font-weight:700;letter-spacing:.2px}
.nav{display:flex;gap:14px;flex-wrap:wrap}
.nav-link{color:var(--muted)}
.nav-link:hover{color:var(--text)}

.h1{font-size:42px;line-height:1.1;margin:0 0 12px}
.h2{font-size:22px;margin:0 0 10px}
.h3{font-size:18px;margin:10px 0 6px}
.lead{color:var(--muted);font-size:18px;max-width:62ch;margin:0 0 18px}

.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:10px 14px;border-radius:999px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  color:#08101d;font-weight:700;
}
.btn:hover{filter:brightness(1.05);color:#08101d}
.btn-secondary{
  background: rgba(17,24,39,.9);
  border:1px solid rgba(31,41,55,.8);
  color:var(--text);
}
.btn-secondary:hover{border-color: var(--accent)}

.muted{color:var(--muted)}
.meta{font-size:13px;color:var(--muted)}

/* cards */
.card{
  background: rgba(17,24,39,.78);
  border:1px solid rgba(31,41,55,.75);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.card-link{
  transition: transform .12s ease, border-color .12s ease;
}
.card-link:hover{transform: translateY(-2px); border-color: var(--accent)}
.card-body{padding:16px 16px 14px}

/* pill */
.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  background: rgba(17,24,39,.78);
  border:1px solid rgba(31,41,55,.75);
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.pill-link:hover{border-color: var(--accent)}
.icon{color: var(--muted); flex: 0 0 auto}

/* HERO */
.hero{
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 64px 0;
}
.hero-split{
  display: grid;
  gap: 96px;
  align-items: center;
}
.hero-left{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.hero-location{color: var(--muted);}
.avatar{
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: rgba(17,24,39,.78);
  border:1px solid rgba(31,41,55,.75);
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
.hero-kicker{
  color: var(--muted);
  font-size: 14px;
  letter-spacing: .3px;
  margin: 0 0 6px;
}
.hero-subtitle{color: var(--text); opacity: .95}
.hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0 0}

/* slabs */
.slab{
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 56px 0;
}
.slab-a{ background: var(--slabA); }
.slab-b{ background: var(--slabB); }

.section-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}
.inline-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
}

/* grid */
.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:12px;
}
.grid-2 > *{ grid-column: span 12; }

.tags{display:flex;flex-wrap:wrap;gap:10px;padding:12px 0}
.tag{
  display:inline-flex;gap:8px;align-items:center;
  padding:8px 12px;border-radius:999px;
  background: rgba(17,24,39,.78);
  border:1px solid rgba(31,41,55,.75);
}
.tag:hover{border-color: var(--accent)}

.stack{display:flex;flex-direction:column;gap:10px}

.prose a{color:var(--accent)}
.prose code{
  background: rgba(17,24,39,.9);
  border:1px solid rgba(31,41,55,.9);
  padding:2px 6px;border-radius:8px;
}

/* CV Timeline (inspired by the "Experience" section pattern: period + card) */
.cv-profile{margin-bottom: 18px}
.timeline{
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tl-item{
  display: grid;
  gap: 12px;
}
.tl-period{
  font-size: 13px;
  color: var(--text);
}
.tl-card{border-color: rgba(31,41,55,.85)}
.tl-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom: 10px;
}
.tl-company{font-weight: 750; letter-spacing: .2px}
.tl-role{font-size: 14px}
.tl-loc{white-space: nowrap}
.tl-list{
  margin: 0;
  padding-left: 18px;
  color: var(--text);
}
.tl-list li{margin: 6px 0}
.cv-skills{margin-top: 18px}

/* footer */
.site-footer{border-top:1px solid rgba(31,41,55,.6);margin-top:0}
.footer-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 0}
.footer-links{display:flex;gap:12px}

@media (min-width: 700px){
  .hero-split{ grid-template-columns: 260px 1fr; }
  .grid > .card{ grid-column: span 6; }
  .grid-2 > *{ grid-column: span 6; }
  .tl-item{
    grid-template-columns: 180px 1fr;
    gap: 22px;
    align-items: start;
  }
}
@media (min-width: 980px){
  .grid > .card{ grid-column: span 4; }
}
@media (max-width: 699px){
  .hero{ min-height: auto; padding: 48px 0; }
  .hero-split{ gap: 28px; }
}

/* 404 page */
.hero-404{
  min-height: 100vh;
}
.hero-404-inner{
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 62ch;
}
.hero-404-inner .hero-actions{
  margin-top: 12px;
}


/* Contact form */
.contact-form{display:flex;flex-direction:column;gap:12px}
.form-row{display:flex;flex-direction:column;gap:6px}
.form-label{font-size:13px;color:var(--muted)}
.form-input,.form-textarea{
  width:100%;
  color:var(--text);
  background: rgba(17,24,39,.65);
  border:1px solid rgba(31,41,55,.85);
  border-radius: 12px;
  padding:10px 12px;
  outline: none;
}
.form-textarea{resize:vertical; min-height: 140px}
.form-input:focus,.form-textarea:focus{border-color: var(--accent)}
.form-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:6px}
.form-note{margin: 0}
.hp{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}


/* Wider container for sections that need more breathing room */
.container-wide{max-width: 1120px}

/* Contact section: make form wider and push links to the right */
.contact-grid > :first-child{grid-column: span 12}
.contact-grid > :last-child{grid-column: span 12}

@media (min-width: 700px){
  .contact-grid > :first-child{grid-column: span 7}
  .contact-grid > :last-child{
    grid-column: span 5;
    justify-self: end;
  }
}

@media (min-width: 980px){
  .contact-grid > :first-child{grid-column: span 8}
  .contact-grid > :last-child{grid-column: span 4}
}






/* Language dropdown */
.lang-switch{display:flex;align-items:center;margin-left:14px}
.lang-select{
  background: rgba(17,24,39,.75);
  border:1px solid rgba(31,41,55,.8);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 13px;
}
.lang-select:focus{outline:none;border-color: var(--accent)}


/* Hero: center location under photo */
.hero-left{align-items:center}
.hero-location{justify-content:center;text-align:center}


/* 404: emphasize error code */
.error-code{
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (min-width: 700px){
  .error-code{font-size: 72px}
}


/* Secondary button hover: keep accent border, improve contrast for dark themes */
.btn-ghost:hover{
  border-color: var(--accent);
  background: rgba(255,255,255,.06);
  color: var(--text);
  box-shadow: 0 0 0 4px rgba(255,255,255,.02);
}


.btn-ghost:focus-visible{
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255,255,255,.03);
}
