:root{
  --bg0:#060914;
  --bg1:#071127;

  --panel: rgba(10,18,42,.55);
  --panel2: rgba(8,14,32,.55);
  --border: rgba(255,255,255,.12);
  --border2: rgba(255,255,255,.08);

  --text:#e9eefc;
  --muted:#9aa6c9;
  --muted2:#7683aa;

  --c1:#2ef2d0;
  --c2:#4aa3ff;
  --c3:#8b5cf6;
  --purple:#a75eff; /* neon purple */

  --shadow: 0 24px 70px rgba(0,0,0,.45);
  --radius: 18px;

  --container: 1120px;
  --navH: 76px;
}

*{ box-sizing:border-box; }

html{
  height:100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--navH) + 14px);
  background:
    radial-gradient(1200px 650px at 50% 35%, rgba(74,163,255,.18), transparent 60%),
    radial-gradient(1000px 650px at 20% 45%, rgba(46,242,208,.12), transparent 55%),
    radial-gradient(900px 600px at 80% 55%, rgba(139,92,246,.14), transparent 55%),
    linear-gradient(180deg, var(--bg1), var(--bg0));
}

/* animated glow */
html::before{
  content:"";
  position: fixed;
  inset:-25%;
  pointer-events:none;
  z-index: -3;
  background:
    radial-gradient(1200px 650px at 50% 35%, rgba(74,163,255,.18), transparent 60%),
    radial-gradient(1000px 650px at 20% 45%, rgba(46,242,208,.12), transparent 55%),
    radial-gradient(900px 600px at 80% 55%, rgba(139,92,246,.14), transparent 55%),
    linear-gradient(180deg, var(--bg1), var(--bg0));
  filter: blur(70px) saturate(1.25);
  opacity: .78;
  transform: translate3d(0,0,0) scale(1.06);
  animation: cosmic 14s ease-in-out infinite alternate;
}

@keyframes cosmic{
  from { transform: translate3d(-3%, -2%, 0) scale(1.06); }
  to   { transform: translate3d( 3%,  2%, 0) scale(1.14); }
}

body{
  height:100%;
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: transparent;
  overflow-x:hidden;
}

a{ color:inherit; text-decoration:none; }
strong{ font-weight:800; }

.bg{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  opacity: .65;
  background:
    linear-gradient(to right, rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(900px 600px at 50% 35%, rgba(0,0,0,1) 35%, rgba(0,0,0,.25) 75%, rgba(0,0,0,0) 100%);
}

/* Layout */
.container{
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

.section{
  padding: clamp(56px, 6vw, 90px) 0;
}

.section-center{
  text-align:center;
  margin-bottom: 34px;
}

.section-kicker{
  color: var(--c1);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 600;
}

.section-sub{
  color: var(--muted2);
  margin: 10px auto 0;
  max-width: 760px;
  line-height: 1.6;
}

h1,h2,h3{ margin: 0; }

h2{
  font-size: clamp(24px, 3.4vw, 38px);
  letter-spacing: -0.02em;
}

.h3{
  font-size: 20px;
  margin-bottom: 10px;
}

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

/* Header/Nav */
.header{
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(6,9,20,.55);
  border-bottom: 1px solid var(--border2);
}

.nav{
  height: var(--navH);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}

.logo{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight: 800;
  letter-spacing: .2px;
}

.logo-mark{
  color: var(--c1);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 700;
}

.nav-links{
  display:flex;
  gap:22px;
  color: rgba(233,238,252,.78);
  font-weight: 600;
  align-items:center;
}

.nav-links a{
  opacity: .85;
  transition: opacity .18s ease;
}

.nav-links a:hover{ opacity: 1; }

.lang-switch{
  display:flex;
  gap:10px;
  align-items:center;
  font-size:18px;
  margin-left: 6px;
}

.lang-switch a{
  opacity:.7;
  transition: opacity .2s ease, transform .2s ease;
}

.lang-switch a.active{ opacity: 1; }

.lang-switch a:hover{
  opacity:1;
  transform: translateY(-1px);
}

.menu-toggle,
.mobile-menu{
  display:none;
}

.menu-toggle{
  width:44px;
  height:44px;
  padding:0;
  border:1px solid var(--border);
  border-radius:14px;
  background:rgba(12,20,44,.72);
  color:var(--text);
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:5px;
  cursor:pointer;
}

.menu-toggle span{
  width:19px;
  height:2px;
  border-radius:999px;
  background:currentColor;
  transition:transform .2s ease, opacity .2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

.menu-toggle:focus-visible{
  outline:none;
  box-shadow:0 0 0 4px rgba(46,242,208,.25);
}

@media (max-width: 900px){
  .nav-links{ display:none; }
  .nav-cta{ display:none; }
  .menu-toggle{ display:flex; }

  .mobile-menu:not([hidden]){
    position:fixed;
    inset:var(--navH) 0 auto;
    width:100%;
    max-height:calc(100dvh - var(--navH));
    padding:18px 24px 24px;
    display:grid;
    overflow-y:auto;
    background:rgba(6,9,20,.97);
    border-bottom:1px solid var(--border);
    box-shadow:0 24px 60px rgba(0,0,0,.55);
  }

  .mobile-menu > a{
    padding:15px 2px;
    border-bottom:1px solid var(--border2);
    color:rgba(233,238,252,.9);
    font-size:17px;
    font-weight:700;
  }

  .mobile-menu > a:hover{ color:var(--c1); }

  .mobile-menu-footer{
    padding-top:20px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
  }

  .mobile-languages{
    display:flex;
    gap:8px;
  }

  .mobile-languages a{
    min-width:44px;
    min-height:40px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border:1px solid var(--border);
    border-radius:12px;
    color:var(--muted);
    font-family:"JetBrains Mono", ui-monospace, monospace;
    font-size:13px;
    font-weight:700;
  }

  .mobile-languages a.active{
    border-color:rgba(46,242,208,.45);
    background:rgba(46,242,208,.1);
    color:var(--c1);
  }

  body.menu-open{ overflow:hidden; }
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 14px 18px;
  border-radius: 16px;
  font-weight: 800;
  letter-spacing:.2px;
  border: 1px solid var(--border);
  background: rgba(12,20,44,.55);
  color: var(--text);
  box-shadow: 0 16px 50px rgba(0,0,0,.35);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.btn:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.22);
  box-shadow: 0 18px 70px rgba(0,0,0,.45);
}

.btn:focus-visible{
  outline:none;
  box-shadow: 0 0 0 4px rgba(46,242,208,.25), 0 18px 70px rgba(0,0,0,.45);
}

.btn-primary{
  background: linear-gradient(135deg, rgba(46,242,208,.95), rgba(74,163,255,.95));
  color:#04121b;
  border-color: rgba(46,242,208,.35);
}

.btn-small{ padding: 10px 14px; border-radius: 14px; }
.btn-wide{ width: 100%; }

/* Hero */
.hero{
  padding-top: clamp(44px, 4.5vw, 70px);
  padding-bottom: 34px;
}

.hero-inner{
  text-align:center;
  max-width: 900px;
  margin: 0 auto;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(8,14,32,.55);
  box-shadow: 0 10px 35px rgba(0,0,0,.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(233,238,252,.78);
  font-weight: 700;
  margin-bottom: 18px;
}

.ring{
  width:12px;
  height:12px;
  border-radius:50%;
  border:2px solid var(--c1);
  box-shadow: 0 0 0 0 rgba(46,242,208,.6);
  animation: pulse 1.8s infinite;
}

@keyframes pulse{
  to { box-shadow: 0 0 0 12px rgba(46,242,208,0); }
}

.hero-title{
  font-size: clamp(34px, 5.2vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-weight: 900;
}

.gradient-text{
  background: linear-gradient(90deg, var(--c1), var(--c2), var(--c3));
  -webkit-background-clip:text;
  background-clip:text;
  color: transparent;
}

.hero-sub{
  margin: 14px auto 0;
  max-width: 760px;
  line-height: 1.6;
  font-size: clamp(15px, 2.0vw, 18px);
  color: var(--muted);
  display:flex;
  flex-direction:column;
  gap:4px;
}

.code-line{
  margin: 26px auto 0;
  width: fit-content;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(10,18,42,.55);
  box-shadow: 0 14px 42px rgba(0,0,0,.35);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: clamp(13px, 1.6vw, 16px);
}

.kw{ color: var(--purple); }
.str{ color: rgba(46,242,208,.95); }
.op{ color: rgba(233,238,252,.75); }

.hero-cta{
  margin-top: 30px;
  display:flex;
  justify-content:center;
  gap:14px;
  flex-wrap:wrap;
}

.social{
  margin-top: 22px;
  display:flex;
  justify-content:center;
  gap: 12px;
  opacity:.9;
}

.icon-link{
  width:44px;
  height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(8,14,32,.35);
  color: rgba(233,238,252,.85);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.icon-link:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.22);
  background: rgba(8,14,32,.55);
}

.icon-link svg{
  width:20px;
  height:20px;
  fill: currentColor;
}

/* Two-column */
.two-col{
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
}

@media (max-width: 980px){
  .two-col{ grid-template-columns: 1fr; }
}

.lead{
  font-size: 18px;
  line-height: 1.7;
  margin: 0 0 14px;
}

.quote{
  margin-top: 18px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  color: var(--c1);
}

/* Card rechts full-height */
.card{
  height: 100%;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Code card */
.code-card{
  position:relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow .25s ease, border-color .25s ease;
}

.code-card:hover{
  border-color: rgba(46,242,208,.35);
  box-shadow:
    0 0 0 1px rgba(46,242,208,.25),
    0 30px 80px rgba(46,242,208,.15),
    var(--shadow);
}

.code-header{
  display:flex;
  align-items:center;
  gap:12px;
  padding: 12px 14px;
  background: rgba(8,14,32,.65);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.dots{ display:flex; gap:8px; }

.dotwin{
  width:10px;
  height:10px;
  border-radius:50%;
}

.dotwin.red{ background:#ff5f56; }
.dotwin.yellow{ background:#ffbd2e; }
.dotwin.green{ background:#27c93f; }

.filename{
  font-size: 13px;
  opacity: .75;
  color: rgba(233,238,252,.85);
}

.code{
  margin:0;
  padding: 16px 18px 18px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 14px;
  line-height: 1.6;
  color: #e9eefc;
}

.key{ color: var(--purple); }
.string{ color: rgba(46,242,208,.95); }
.brace{ color: rgba(233,238,252,.85); }

.line{
  display:block;
  opacity:0;
  transform: translateY(6px);
  animation: reveal .6s ease forwards;
  animation-delay: var(--d);
}

@keyframes reveal{ to{ opacity:1; transform:none; } }

.cursor{
  display:inline-block;
  width:8px;
  height: 1.2em;
  margin-left:4px;
  background: var(--c1);
  vertical-align: bottom;
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink{ 50%{ opacity:0; } }

/* Pills */
.pill-grid{
  margin-top: 16px;
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.pill{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 14px;
  background: var(--panel2);
  border: 1px solid var(--border);
  transition: transform .18s ease, border-color .18s ease;
  font-weight: 700;
  color: rgba(233,238,252,.9);
}

.pill:hover{
  transform: translateY(-2px);
  border-color: rgba(46,242,208,.35);
}

.pill-ic{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background: rgba(46,242,208,.12);
  color: var(--c1);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 800;
}

/* =========================
   Skills
   ========================= */
.skill-grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.skill-card{
  grid-column: span 4;
  background: linear-gradient(180deg, var(--panel), rgba(8,14,32,.35));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,.30);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.skill-card:hover{
  transform: translateY(-2px);
  border-color: rgba(46,242,208,.28);
  box-shadow: 0 22px 60px rgba(0,0,0,.38);
}

.skill-head{
  display:flex;
  justify-content: space-between;
  align-items:center;
  margin-bottom: 14px;
}

.skill-head h3{
  margin:0;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.skill-badge{
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: rgba(233,238,252,.80);
}

.skill-badge.expert{
  color: rgba(46,242,208,.95);
  border-color: rgba(46,242,208,.28);
  background: rgba(46,242,208,.08);
}
.skill-badge.advanced{
  color: rgba(74,163,255,.95);
  border-color: rgba(74,163,255,.28);
  background: rgba(74,163,255,.08);
}
.skill-badge.working{
  color: rgba(233,238,252,.75);
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.03);
}

.skill-item{
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,.08);
}
.skill-item:first-child{ border-top: none; }

.skill-name{
  font-weight: 800;
  margin-bottom: 6px;
}

.skill-chips{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
}

.skill-chips .chip{
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color: rgba(233,238,252,.72);
}

@media (max-width: 900px){
  .skill-card{ grid-column: span 6; }
}
@media (max-width: 600px){
  .skill-card{ grid-column: span 12; }
}

/* =========================
   Projects
   ========================= */
.project-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

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

.project-card{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
}

.project-tag{
  display:inline-flex;
  align-items:center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(46,242,208,.12);
  border: 1px solid rgba(46,242,208,.25);
  color: rgba(46,242,208,.95);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
}

.project-tag.blue{
  background: rgba(74,163,255,.12);
  border-color: rgba(74,163,255,.25);
  color: rgba(74,163,255,.95);
}

.project-tag.purple{
  background: rgba(167,94,255,.12);
  border-color: rgba(167,94,255,.3);
  color: rgba(204,166,255,.98);
}

/* Preview: full image visible */
.project-preview{
  margin-top: 14px;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(8,14,32,.35);
}

.preview-inner{
  width: 100%;
  height: 100%;
  display:flex;
  align-items:center;
  justify-content:center;
}

.project-image{
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display:block;
}

.workflow-image-link{
  position:relative;
  background:#111214;
  cursor:zoom-in;
}

.workflow-image{
  transition:transform .25s ease, filter .25s ease;
}

.workflow-image-link:hover .workflow-image{
  transform:scale(1.015);
  filter:brightness(1.08);
}

.workflow-image-link:focus-visible{
  outline:none;
  box-shadow:inset 0 0 0 3px rgba(46,242,208,.55);
}

.workflow-zoom{
  position:absolute;
  right:10px;
  bottom:10px;
  padding:6px 9px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:9px;
  background:rgba(6,9,20,.86);
  color:rgba(233,238,252,.9);
  font-family:"JetBrains Mono", ui-monospace, monospace;
  font-size:9px;
  box-shadow:0 6px 18px rgba(0,0,0,.35);
}

.emoji{ font-size: 34px; margin-bottom: 8px; }
.preview-text{ font-size: 12px; opacity: .85; }

.ai-assistant-preview{
  padding:clamp(12px, 3vw, 24px);
  background:
    radial-gradient(circle at 15% 20%, rgba(46,242,208,.15), transparent 36%),
    radial-gradient(circle at 90% 85%, rgba(139,92,246,.2), transparent 40%),
    #081127;
}

.ai-window{
  width:min(100%, 470px);
  padding:12px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:14px;
  background:rgba(8,14,32,.84);
  box-shadow:0 18px 45px rgba(0,0,0,.38);
}

.ai-window-head{
  display:flex;
  align-items:center;
  gap:7px;
  padding:0 2px 9px;
  color:rgba(233,238,252,.7);
  font-family:"JetBrains Mono", ui-monospace, monospace;
  font-size:10px;
}

.ai-live-dot{
  width:7px;
  height:7px;
  flex:0 0 auto;
  border-radius:50%;
  background:var(--c1);
  box-shadow:0 0 12px rgba(46,242,208,.8);
}

.ai-demo{
  margin-left:auto;
  padding:3px 6px;
  border:1px solid rgba(167,94,255,.34);
  border-radius:999px;
  color:rgba(204,166,255,.95);
  font-size:8px;
  letter-spacing:.5px;
}

.ai-mail-row,
.ai-draft-row{
  min-width:0;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:9px;
  align-items:center;
  padding:9px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:10px;
  background:rgba(255,255,255,.04);
}

.ai-mail-row strong,
.ai-draft-row strong{
  display:block;
  color:rgba(233,238,252,.92);
  font-size:10px;
}

.ai-mail-row small,
.ai-draft-row small{
  display:block;
  margin-top:2px;
  color:rgba(154,166,201,.8);
  font-size:8px;
}

.ai-mail-icon,
.ai-check{
  width:25px;
  height:25px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  background:rgba(74,163,255,.14);
  color:var(--c2);
  font-family:"JetBrains Mono", ui-monospace, monospace;
  font-size:12px;
  font-weight:800;
}

.ai-check{
  background:rgba(46,242,208,.12);
  color:var(--c1);
}

.ai-label{
  padding:4px 7px;
  border-radius:999px;
  font-family:"JetBrains Mono", ui-monospace, monospace;
  font-size:8px;
}

.ai-label.critical{
  border:1px solid rgba(255,104,133,.28);
  background:rgba(255,104,133,.1);
  color:#ff8ba3;
}

.ai-route{
  padding:7px 13px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  color:rgba(204,166,255,.9);
  font-family:"JetBrains Mono", ui-monospace, monospace;
  font-size:8px;
  font-weight:700;
}

.ai-route i{
  width:20px;
  height:1px;
  background:linear-gradient(90deg, var(--c2), var(--c3));
}

.ai-draft-row{
  grid-template-columns:auto minmax(0,1fr);
  border-color:rgba(46,242,208,.13);
}

.project-note{
  margin:14px 0 0;
  padding:11px 12px;
  border:1px solid rgba(167,94,255,.2);
  border-radius:12px;
  background:rgba(167,94,255,.07);
  color:rgba(233,238,252,.72);
  font-size:12px;
  line-height:1.55;
}

@media (max-width: 480px){
  .ai-assistant-preview{ padding:10px; }
  .ai-window{ padding:9px; }
  .ai-label{ display:none; }
}

.project-card h3{
  margin: 14px 0 8px;
  font-size: 22px;
}

.micro{
  color: rgba(233,238,252,.80);
  font-size: 13px;
  line-height: 1.6;
}

.tag-row{
  margin-top: 10px;
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
}

.tag{
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  font-size: 12px;
  color: rgba(233,238,252,.75);
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

.bullets{
  margin: 8px 0 0;
  padding-left: 18px;
  color: rgba(233,238,252,.72);
}

.bullets li{ margin: 6px 0; }

/* GitHub action link style (your action-link markup) */
.project-actions{
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.08);
  display:flex;
  justify-content: flex-start;
  gap: 14px;
}

.action-link{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  color: rgba(233,238,252,.72);
  font-weight: 700;
  font-size: 13px;
  transition: transform .18s ease, color .18s ease, opacity .18s ease;
}

.action-link:hover{
  color: rgba(46,242,208,.95);
  transform: translateY(-1px);
}

.action-icon{
  width: 18px;
  height: 18px;
  fill: currentColor;
  opacity: .9;
}

/* legacy .link style (for your other cards) */
.link{
  color: rgba(233,238,252,.75);
  font-weight: 700;
  font-size: 13px;
  opacity: .9;
}
.link:hover{ opacity: 1; }
.link[aria-disabled="true"]{ opacity: .5; cursor: not-allowed; }

/* =========================
   Certifications
   ========================= */
.cert-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

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

.cert-card{
  position: relative;
  display:flex;
  align-items:center;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(12,18,40,.60);
  box-shadow: 0 18px 40px rgba(0,0,0,.30);
  color: inherit;
  min-height: 92px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.cert-card:hover{
  border-color: rgba(46,242,208,.28);
  box-shadow: 0 20px 55px rgba(0,0,0,.38);
  transform: translateY(-1px);
}

.cert-icon{
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  overflow:hidden;
  flex: 0 0 auto;
}

.cert-icon img{
  width: 50px;
  height: 50px;
  object-fit: contain;
  display:block;
}

.cert-icon--ghost{ font-size: 26px; }

.cert-meta{ min-width: 0; }

.cert-title{
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.cert-sub{
  margin-top: 3px;
  font-size: 13px;
  color: rgba(233,238,252,.65);
}

.cert-ext{
  margin-left:auto;
  font-size: 16px;
  color: rgba(233,238,252,.55);
}

.cert-card--ghost{
  border-style: dashed;
  border-color: rgba(255,255,255,.16);
  background: rgba(12,18,40,.42);
}

/* =========================
   Timeline
   ========================= */
.timeline{
  position: relative;
  display:grid;
  gap: 18px;
  padding-left: 46px;
}

.tline{
  position:absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255,255,255,.10);
  border-radius: 999px;
}

.tcard{
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
}

.tbullet{
  position:absolute;
  left:-36px;
  top:22px;
  width:12px;
  height:12px;
  border-radius:50%;
  background: var(--c1);
  z-index: 2;

  /* wichtig: beide shadows bereits hier setzen */
  box-shadow:
    0 0 0 5px rgba(46,242,208,.12),
    0 0 0 0 rgba(46,242,208,.55);

}


.tbulletpulse{
  position:absolute;
  left:-36px;
  top:22px;
  width:12px;
  height:12px;
  border-radius:50%;
  background: var(--c1);
  z-index: 2;

  box-shadow:
    0 0 0 5px rgba(46,242,208,.12),
    0 0 0 0 rgba(46,242,208,.55);

   animation: tbPulse 1.8s ease-out infinite;
}


@keyframes tbPulse{
  0%{
    box-shadow:
      0 0 0 5px rgba(46,242,208,.12),
      0 0 0 0 rgba(46,242,208,.55);
  }
  70%{
    box-shadow:
      0 0 0 5px rgba(46,242,208,.12),
      0 0 0 14px rgba(46,242,208,0);
  }
  100%{
    box-shadow:
      0 0 0 5px rgba(46,242,208,.12),
      0 0 0 14px rgba(46,242,208,0);
  }
}


/* tbullet color variants */
.tbullet.green{
  background: var(--c1); /* grün */
  box-shadow: none;
}
.tbullet.tbulletpurple,
.tbulletpurple{
  background: var(--purple); /* lila */
  box-shadow: none;
}

/* ensure pulse variants keep their colored pulse */
.tbulletpulse.green{
  background: var(--c1);
  box-shadow:
    0 0 0 5px rgba(46,242,208,.12),
    0 0 0 0 rgba(46,242,208,.55);
}
.tbulletpulse.purple{
  background: var(--purple);
  box-shadow:
    0 0 0 5px rgba(167,94,255,.12),
    0 0 0 0 rgba(167,94,255,.55);
}

.tbullet.purple{
  background: var(--purple);
  box-shadow: none;
}

.tcard-head{
  display:flex;
  align-items:baseline;
  flex-wrap:wrap;
  gap: 10px 12px;
  margin-bottom: 6px;
}

.tcard-head h3{ font-size: 18px; }

.status{
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(46,242,208,.12);
  border: 1px solid rgba(46,242,208,.25);
  color: rgba(46,242,208,.95);
}

.status.neutral{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.10);
  color: rgba(233,238,252,.7);
}

.when{
  color: rgba(233,238,252,.60);
  font-size: 12px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

/* =========================
   Contact + Card
   ========================= */
.contact-list{
  margin-top: 18px;
  display:grid;
  gap: 12px;
}

.contact-item{
  display:flex;
  gap: 12px;
  align-items:center;
  padding: 14px;
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.contact-ic{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(46,242,208,.12);
  border: 1px solid rgba(46,242,208,.22);
  display:flex;
  align-items:center;
  justify-content:center;
  color: rgba(46,242,208,.95);
  font-weight: 800;
  font-size: 25px;
}

.mailto{
  color: rgba(233,238,252,.92);
  border-bottom: 1px dashed rgba(46,242,208,.35);
  padding-bottom: 2px;
}

.mailto:hover{
  border-bottom-color: rgba(46,242,208,.75);
}

.card{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
}

/* Footer */
.footer{
  margin-top: 34px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.08);
  text-align:center;
}

.footer-links{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:8px 18px;
  margin-top:10px;
  color:var(--muted2);
  font-size:13px;
}

.footer-links a:hover,
.text-link:hover{
  color:var(--c1);
}

.text-link{
  display:inline-flex;
  align-items:center;
  color:var(--muted);
  font-size:14px;
  font-weight:600;
  border-bottom:1px solid rgba(46,242,208,.35);
}

.legal-page{
  width:min(820px, calc(100% - 48px));
  padding:clamp(60px, 8vw, 100px) 0;
}

.legal-page > h1{
  margin-top:10px;
  font-size:clamp(34px, 6vw, 58px);
  letter-spacing:-.035em;
}

.legal-updated{
  margin:12px 0 34px;
  color:var(--muted2);
}

.legal-card{
  margin-top:16px;
  padding:clamp(20px, 4vw, 30px);
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:var(--panel);
  box-shadow:0 18px 50px rgba(0,0,0,.2);
}

.legal-card h2{
  margin-bottom:12px;
  font-size:clamp(20px, 3vw, 26px);
}

.legal-card p{
  margin:10px 0 0;
  color:var(--muted);
  line-height:1.75;
}

.legal-back{ margin:32px 0 0; }

/* =========================
   Email copy row
   ========================= */
.email-row{
  display:flex;
  align-items:center;
  gap:10px;
}

.copy-btn{
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(8,14,32,.35);
  color: rgba(233,238,252,.85);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.copy-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(46,242,208,.35);
  background: rgba(8,14,32,.55);
}

.copy-btn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(46,242,208,.22);
}

.copy-btn svg{
  width: 18px;
  height: 18px;
  fill: currentColor;
  opacity: .95;
}

.copy-toast{
  position: absolute;
  right: 44px;
  top: 50%;
  transform: translateY(-50%);
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(46,242,208,.25);
  background: rgba(8,14,32,.85);
  color: rgba(46,242,208,.95);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.copy-btn.is-copied .copy-toast{ opacity: 1; }

/* Motion reduce */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  html::before{ animation: none; }
  .line{ animation: none; opacity: 1; transform:none; }
  .cursor{ animation: none; }
}

/* Kontakt: rechte Card genau auf Höhe der contact-list bringen */
#contact .two-col{
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;        /* don't stretch rows */
  grid-auto-rows: min-content;
}

#contact .two-col > div:first-child{
  display: block;
}

#contact .contact-list{
  display: flex !important;
  flex-direction: column;
  gap: 14px; /* Abstand zwischen den contact-items */
  margin-top: 12px;
}

#contact .contact-item{
  padding: 8px 0;
}

#contact .two-col > .card{
  align-self: start !important;
  height: auto !important;
  min-height: 0 !important;
  display: block !important;
}
/* Responsive */
@media (max-width: 980px){
  #contact .two-col{ grid-template-columns: 1fr; }
  #contact .two-col > .card{ align-self: auto; height: auto !important; }
}

/* About: make code-card wider so the JSON (Kommas) nicht umbrechen */
#about .two-col{
  display: grid;
  grid-template-columns: 1fr 505px;
  gap: 28px;
  align-items: start;
}

#about .code-card{
  width: 100%;
  max-width: 505px;
  box-sizing: border-box;
}

/* ensure code preserves spacing and can scroll horizontally if needed */
#about .code{
  white-space: pre;
  overflow: auto;
  font-size: 13px;
}

/* Responsive fallback */
@media (max-width: 980px){
  #about .two-col{ grid-template-columns: 1fr; }
  #about .code-card{ max-width: 100%; }
}
