/* Premium CV — blue theme, subtle motion, vertical engineering timeline */
:root{
  --bg: #f6f7f9;
  --card: #ffffff;
  --text: #0f1720;
  --muted: #586575;
  --line: #e6e8ee;

  --accent: #004b8d;      /* LEMO-like blue */
  --accent2: #0b64b5;     /* brighter blue */
  --soft: rgba(0,75,141,.10);
  --shadow: 0 10px 30px rgba(16,24,40,.08);

  --radius: 18px;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(0,75,141,.10), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(11,100,181,.10), transparent 55%),
    var(--bg);

  background-repeat: no-repeat;
  background-attachment: fixed;
  line-height: 1.55;
}

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

.wrap{ max-width: 1080px; margin: 0 auto; padding: 20px; }

.skip{
  position:absolute; left:-999px; top:-999px;
  background: var(--card); padding: 10px 12px; border-radius: 10px; box-shadow: var(--shadow);
}
.skip:focus{ left: 20px; top: 20px; z-index: 999; }

/* Topbar */
.topbar{
  position: sticky; top: 0;
  background: rgba(246,247,249,.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  z-index: 50;
}
.topbar__inner{
  display:flex; align-items:center; justify-content:space-between;
  gap: 16px;
  padding-top: 14px; padding-bottom: 14px;
}
.brand__name{ font-weight: 820; letter-spacing: .2px; }
.brand__role{ color: var(--muted); font-size: 14px; }

.nav{ display:flex; gap: 14px; align-items:center; }
.nav__link{
  color: var(--muted);
  font-weight: 650;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 12px;
}
.nav__link:hover{
  color: var(--text);
  background: rgba(0,75,141,.08);
  text-decoration:none;
}

.actions{ display:flex; gap: 10px; align-items:center; }

.btn{
  border: 1px solid var(--accent);
  background: var(--accent);
  color: white;
  padding: 10px 12px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 750;
  display:inline-flex;
  align-items:center;
  gap: 8px;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  box-shadow: 0 6px 18px rgba(0,75,141,.16);
}
.btn:hover{
  text-decoration:none;
  background: var(--accent2);
}
.btn:active{ transform: translateY(1px); }

.btn--ghost{
  background: transparent;
  color: var(--accent);
  box-shadow: none;
}
.btn--ghost:hover{
  background: rgba(0,75,141,.08);
}
.btn--soft{
  background: rgba(0,75,141,.10);
  color: var(--accent);
  box-shadow: none;
}
.btn--soft:hover{
  background: rgba(0,75,141,.14);
}

.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin: 14px 0;
}

.card__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.pill{
  font-size: 12px;
  color: var(--accent);
  background: rgba(0,75,141,.10);
  border: 1px solid rgba(0,75,141,.18);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 750;
}

.eyebrow{
  display:inline-flex;
  gap: 8px;
  align-items:center;
  color: var(--accent);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
}
.hero__title{ margin: 6px 0 0; font-size: 40px; letter-spacing: -0.5px; }
.hero__subtitle{ margin: 6px 0 12px; color: var(--muted); font-weight: 700; }
.meta{ list-style:none; padding:0; margin: 0 0 14px; color: var(--muted); }
.meta li{ display:flex; align-items:center; gap: 10px; padding: 4px 0; }
.meta .k{ width: 22px; text-align:center; }
.summary p{ margin: 8px 0; }

.hero__cta{ display:flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

.panel{
  border-radius: 16px;
  border: 1px solid rgba(0,75,141,.18);
  background: linear-gradient(180deg, rgba(0,75,141,.08), rgba(255,255,255,1) 65%);
  padding: 14px;
}
.panel__title{
  font-weight: 850;
  margin-bottom: 10px;
}
.note{
  margin-top: 12px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 12px;
  color: var(--muted);
  font-size: 14px;
}

.grid{
  display:grid;
  grid-template-columns: 1.4fr .6fr;
  gap: 14px;
}

h2{
  margin: 0;
  font-size: 18px;
  letter-spacing: .2px;
  font-weight: 850;
}

.skill-group{ padding: 12px 0; border-top: 1px solid var(--line); }
.skill-group:first-child{ border-top: none; padding-top: 0; }
.skill-group__title{ font-weight: 850; margin: 0 0 8px; }
.badges{ display:flex; flex-wrap: wrap; gap: 8px; }
.badge{
  border: 1px solid var(--line);
  background: #fbfbfd;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  color: #243240;
}

/* Generic card items (e.g. languages) — NO timeline dot */
.item{
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: #fff;
}
.item__top{
  display:flex;
  justify-content:space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.item__title{ font-weight: 900; }
.item__meta{ color: var(--muted); font-size: 13px; }
.item__role{ font-weight: 700; color: #223041; margin-top: 2px; }
.item__bullets{ margin: 10px 0 0; padding-left: 18px; }
.item__bullets li{ margin: 6px 0; }

/* Vertical engineering timeline — only for experience/education containers */
.timeline{
  position: relative;
  display:flex;
  flex-direction:column;
  gap: 14px;
  padding-left: 18px;
}
.timeline::before{
  content:"";
  position:absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, rgba(0,75,141,.45), rgba(0,75,141,.10));
  border-radius: 999px;
}
.timeline .item{
  position: relative;
}
.timeline .item::before{
  content:"";
  position:absolute;
  left: -15px;
  top: 18px;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border: 2px solid #fff;
  box-shadow: 0 0 0 3px rgba(0,75,141,.18);
  border-radius: 999px;
}

.project{
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.project__head{
  display:flex;
  justify-content:space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.project__title{ font-weight: 820; }
.project__tags{ margin-top: 8px; display:flex; flex-wrap: wrap; gap: 8px; }
.project__links{ margin-top: 8px; display:flex; gap: 10px; flex-wrap: wrap; font-size: 14px; }

.footer{ color: var(--muted); text-align:center; padding: 20px 0 40px; font-size: 13px; }

/* Subtle reveal animation */
.reveal{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .reveal{ transition: none; }
  .btn{ transition: none; }
}

@media (max-width: 980px){
  .nav{ display:none; }
}
@media (max-width: 860px){
  .hero{ grid-template-columns: 1fr; }
  .grid{ grid-template-columns: 1fr; }
  .hero__title{ font-size: 32px; }
}

/* Print */
@media print{
  .topbar{ position: static; background: transparent; border-bottom: none; }
  .actions, .nav, .hero__cta{ display:none !important; }
  body{ background: #fff; }
  .card{ box-shadow: none; }
  a{ color: var(--text); text-decoration: none; }
  .reveal{ opacity:1 !important; transform:none !important; }
}
