/* ===== Base / Theme ===== */
:root{
  --bg: #0b1220;
  --bg2:#0f1a33;
  --card:#0f1a33cc;
  --text:#eaf0ff;
  --muted:#b8c2e0;
  --line:#213059;
  --brand:#4f8cff;
  --brand2:#7c4dff;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --shadow2: 0 8px 20px rgba(0,0,0,.22);
  --radius: 18px;
  --max: 1120px;
  --ring: 0 0 0 3px rgba(79,140,255,.25);
}

html[data-theme="light"]{
  --bg:#f6f8ff;
  --bg2:#ffffff;
  --card:#ffffffcc;
  --text:#0c1222;
  --muted:#4a5878;
  --line:#d8e1ff;
  --brand:#2f6cff;
  --brand2:#6a3dff;
  --shadow: 0 10px 30px rgba(20,40,90,.12);
  --shadow2: 0 8px 20px rgba(20,40,90,.10);
  --ring: 0 0 0 3px rgba(47,108,255,.18);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  color:var(--text);
  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background:
    radial-gradient(1100px 600px at 15% 5%, rgba(79,140,255,.25), transparent 60%),
    radial-gradient(900px 520px at 85% 25%, rgba(124,77,255,.22), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg));
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; }
img{ max-width:100%; display:block; }
.wrap{ width:min(var(--max), calc(100% - 32px)); margin:0 auto; }

/* ===== Buttons ===== */
.btn{
  border:1px solid var(--line);
  background:transparent;
  color:var(--text);
  padding:10px 14px;
  border-radius: 14px;
  cursor:pointer;
  transition: transform .12s ease, background-color .12s ease, border-color .12s ease;
  display:inline-flex;
  align-items:center;
  gap:8px;
  user-select:none;
}
.btn:hover{ transform: translateY(-1px); border-color: rgba(79,140,255,.55); text-decoration:none; }
.btn:focus{ outline:none; box-shadow: var(--ring); }

.btn.primary{
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  border-color: transparent;
  box-shadow: var(--shadow2);
}
.btn.primary:hover{ filter: brightness(1.03); }

.btn.ghost{
  background: rgba(255,255,255,.04);
}

/* ===== Topbar ===== */
.topbar{
  position: sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(10,18,32,.65);
  border-bottom:1px solid rgba(33,48,89,.7);
}
html[data-theme="light"] .topbar{
  background: rgba(255,255,255,.75);
  border-bottom:1px solid var(--line);
}
.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
  gap:16px;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:700;
  letter-spacing:.2px;
}
.brand-logo{
  width:36px; height:36px; border-radius:50%;
  border:1px solid rgba(255,255,255,.18);
}
.brand-text{ white-space:nowrap; }

.nav{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  justify-content:center;
}
.nav a{
  padding:8px 10px;
  border-radius:12px;
  color:var(--muted);
}
.nav a:hover{
  background: rgba(255,255,255,.05);
  color:var(--text);
  text-decoration:none;
}
.actions{
  display:flex;
  align-items:center;
  gap:10px;
}

/* Language menu */
.lang-menu{
  display:none;
  justify-content:flex-end;
  margin-top: 8px;
}
.lang-menu.open{ display:flex; }
.lang-item{
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 14px;
  cursor:pointer;
  margin-left:10px;
}
.lang-item:hover{ border-color: rgba(79,140,255,.55); }

/* ===== Hero ===== */
.hero{ padding: 56px 0 18px; }
.hero-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 22px;
  align-items: start;
}
.kicker{
  margin:0 0 10px;
  color: var(--muted);
  letter-spacing:.18em;
  text-transform: uppercase;
  font-size: 12px;
}
.h1{
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.15;
}
.lead{
  margin:0 0 18px;
  color: var(--muted);
  font-size: 17px;
}
.hero-cta{ display:flex; gap:12px; flex-wrap:wrap; margin-bottom: 14px; }
.hero-badges{ display:flex; flex-wrap:wrap; gap:10px; }

.pill{
  border:1px solid var(--line);
  padding:8px 10px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.04);
}

/* ===== Cards / Layout ===== */
.section{ padding: 34px 0; }
.section-head{ margin-bottom: 14px; }
.h2{ margin:0 0 6px; font-size: 26px; }
.h3{ margin:0 0 10px; font-size: 18px; }
.muted{ color: var(--muted); }

.card{
  border: 1px solid rgba(33,48,89,.7);
  background: rgba(15,26,51,.55);
  border-radius: var(--radius);
  box-shadow: var(--shadow2);
  padding: 18px;
}
html[data-theme="light"] .card{
  background: rgba(255,255,255,.85);
  border: 1px solid var(--line);
}
.card-link:hover{
  text-decoration:none;
  transform: translateY(-1px);
  transition: transform .12s ease;
  border-color: rgba(79,140,255,.55);
}

.grid-2{ display:grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3{ display:grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.cards{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

.divider{
  height:1px;
  background: var(--line);
  margin: 14px 0;
  opacity:.8;
}

.quick{ display:grid; gap:12px; }
.quick-title{ font-weight:700; margin-bottom:2px; }

/* Profile card */
.profile-card{
  display:flex;
  gap: 14px;
  align-items:center;
}
.profile-img{
  width:78px; height:78px; border-radius: 18px;
  border:1px solid rgba(255,255,255,.18);
  object-fit:cover;
}
.profile-name{ font-weight:800; font-size: 18px; }
.profile-role{ color: var(--muted); font-size: 13px; margin-top:2px; }
.profile-links{ margin-top:8px; display:flex; align-items:center; gap:8px; color: var(--muted); }
.profile-links .link{ color: var(--muted); }
.profile-links .link:hover{ color: var(--text); text-decoration:none; }
.dot{ opacity:.6; }

/* Info card rows */
.info-card{ margin-top: 14px; }
.info-row{ display:flex; justify-content:space-between; gap:12px; padding: 8px 0; }
.info-row + .info-row{ border-top:1px solid rgba(33,48,89,.5); }
html[data-theme="light"] .info-row + .info-row{ border-top:1px solid var(--line); }

/* Timeline */
.timeline{ list-style:none; padding:0; margin:0; display:grid; gap: 10px; }
.timeline li{
  display:grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 10px 12px;
  border:1px solid rgba(33,48,89,.6);
  border-radius: 14px;
  background: rgba(255,255,255,.04);
}
.t-year{ font-weight:800; color: var(--text); }
.t-text{ color: var(--muted); }

/* GPT cards */
.card-top{ display:flex; align-items:center; gap: 12px; }
.mini-logo{
  width:44px; height:44px; border-radius: 14px;
  object-fit:cover;
  border:1px solid rgba(255,255,255,.18);
}
.card-title{ font-weight:800; }
.card-foot{ display:flex; gap:8px; flex-wrap:wrap; margin-top: 14px; }
.tag{
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255,255,255,.03);
}

/* Lists */
.list{ margin:0; padding-left: 18px; color: var(--muted); }
.list li{ margin: 6px 0; }

/* Tabs / iframes */
.tabs{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom: 12px; }
.tab{
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  cursor:pointer;
}
.tab.active{
  background: linear-gradient(135deg, rgba(79,140,255,.20), rgba(124,77,255,.16));
  color: var(--text);
  border-color: rgba(79,140,255,.55);
}
.tabpane{ display:none; padding: 10px; }
.tabpane.active{ display:block; }
.frame{
  width:100%;
  height: 560px;
  border:0;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
}
.note{ margin-top: 10px; }

/* Forms */
.form{ display:grid; gap: 12px; }
.form-row{ display:grid; gap: 8px; }
label{ font-weight:700; font-size: 14px; }
input, textarea{
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--text);
  border-radius: 14px;
  padding: 12px 12px;
  font: inherit;
  outline:none;
}
input:focus, textarea:focus{ box-shadow: var(--ring); border-color: rgba(79,140,255,.55); }
.honeypot{ display:none; }
.status{ margin: 6px 0 0; color: var(--muted); min-height: 22px; }

/* Footer */
.footer{
  padding: 26px 0;
  border-top: 1px solid rgba(33,48,89,.7);
  background: rgba(10,18,32,.35);
}
html[data-theme="light"] .footer{
  background: rgba(255,255,255,.6);
  border-top:1px solid var(--line);
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}
.footer-links{ display:flex; gap:14px; }
.footer a{ color: var(--muted); }
.footer a:hover{ color: var(--text); text-decoration:none; }

/* ===== Responsive ===== */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .cards{ grid-template-columns: repeat(2, 1fr); }
  .grid-3{ grid-template-columns: 1fr; }
}
@media (max-width: 640px){
  .nav{ display:none; }
  .cards{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
  .profile-card{ align-items:flex-start; }
}
/* ===== Timeline (Werdegang) ===== */
.timeline{
  position: relative;
  display: grid;
  gap: 18px;
  margin-top: 18px;
  padding-left: 18px;
}

.timeline::before{
  content:"";
  position:absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: rgba(255,255,255,.12);
}

.timeline-item{
  position: relative;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 14px;
  align-items: start;
}

.timeline-dot{
  width: 12px;
  height: 12px;
  border-radius: 999px;
  margin-top: 18px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 0 0 4px rgba(255,255,255,.08);
}

.timeline-card{
  padding: 18px;
}

.timeline-meta{
  display:flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
