:root {
  --bg: #08080a;
  --panel: #111115;
  --panel-hover: #16161c;
  --line: #26262e;
  --text: #f4f5f7;
  --mute: #a0a3ab;
  --red: #ff1a12;
  --red-d: #c40000;
  --red-glow: rgba(255, 26, 18, 0.16);
  --green: #10b981;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(255, 26, 18, 0.08), transparent 45%),
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 100% 100%, 28px 28px;
  background-position: 0 0, 0 0;
  color: var(--text);
  font: 400 1.05rem/1.65 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hlavička a Navigace */
header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(8, 8, 10, 0.82);
  backdrop-filter: blur(14px);
  z-index: 100;
}

header .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.brand .prompt {
  color: var(--mute);
}

.brand .cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: var(--red);
  animation: blink 1.2s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

header nav {
  display: flex;
  gap: 24px;
  font-size: .92rem;
  align-items: center;
}

header nav a {
  text-decoration: none;
  color: var(--mute);
  transition: color 0.2s;
  font-weight: 500;
}

header nav a:hover {
  color: var(--text);
}

.lang {
  font-family: var(--mono);
  font-size: 0.82rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 10px;
  color: var(--text) !important;
  transition: all 0.2s;
}

.lang:hover {
  border-color: var(--red);
  background: rgba(255, 26, 18, 0.08);
}

/* Status badge v Hero sekci */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--mute);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--green);
  animation: pulse 2.5s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.65; }
}

/* Hero sekce (Úvod) */
.hero {
  padding: 84px 0 76px;
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 48px;
  align-items: center;
}

.hero img {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--line);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.hero img:hover {
  transform: scale(1.02);
  border-color: var(--red);
}

h1 {
  font-size: clamp(2.5rem, 8vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0 0 24px;
  font-weight: 700;
}

h1 span {
  display: block;
  width: 1.2em;
  height: 0.1em;
  background: var(--red);
  margin: 0.25em 0 0;
  transform: skewX(-35deg);
  box-shadow: 0 0 15px var(--red-glow);
}

.lead {
  font-size: 1.22rem;
  color: var(--text);
  max-width: 34em;
  margin: 0 0 14px;
  font-weight: 500;
}

.sub {
  color: var(--mute);
  max-width: 36em;
  margin: 0 0 36px;
}

/* Tlačítka */
.btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 26px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  background: var(--red);
  color: #fff;
  transition: all 0.2s ease;
  border: 1px solid var(--red);
  display: inline-block;
  text-align: center;
}

.btn:hover {
  background: #ff332b;
  border-color: #ff332b;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--red-glow);
}

.btn.o {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  color: var(--text);
}

.btn.o:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--mute);
  box-shadow: none;
}

/* Obecné sekce */
section {
  padding: 76px 0;
  border-top: 1px solid var(--line);
}

h2 {
  font-size: 1.9rem;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
  padding-left: 16px;
  border-left: 5px solid var(--red);
  line-height: 1.2;
}

h3 {
  font-size: 1.15rem;
  margin: 0 0 8px 0;
  letter-spacing: -0.01em;
}

/* Pracovní zkušenosti */
.job {
  margin-bottom: 38px;
  padding-left: 20px;
  border-left: 2px solid var(--line);
  position: relative;
}

.job::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}

.job p.meta {
  font-family: var(--mono);
  margin: 4px 0 12px;
  color: var(--mute);
  font-size: 0.85rem;
}

ul {
  margin: 0;
  padding-left: 20px;
}

li {
  margin: 8px 0;
}

li::marker {
  color: var(--red);
}

/* Grid a Karty (Projekty) */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%), var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  background: var(--panel-hover);
  border-color: rgba(255, 26, 18, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 20px rgba(255, 26, 18, 0.06);
}

.card.f {
  border-top: 3px solid var(--red);
}

.card p {
  margin: 8px 0 0;
  color: var(--mute);
  font-size: 0.98rem;
  flex-grow: 1;
}

.card-tech {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--text);
  opacity: 0.75;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.card a {
  color: var(--text);
  font-weight: 600;
  text-decoration-color: var(--red);
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  transition: color 0.2s;
}

.card a:hover {
  color: var(--red);
}

/* Štítky (Technologie a Dovednosti) */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 32px;
  padding: 0;
  list-style: none;
}

.tags li {
  font-family: var(--mono);
  margin: 0;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.tags li:hover {
  background: rgba(255, 26, 18, 0.1);
  border-color: var(--red);
  transform: translateY(-1px);
}

.tags li::marker {
  content: '';
}

.intro {
  max-width: 42em;
  margin: 0 0 32px;
  color: var(--mute);
  font-size: 1.08rem;
}

/* Patička */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  color: var(--mute);
  font-family: var(--mono);
  font-size: 0.85rem;
  text-align: center;
}

footer a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.2s;
}

footer a:hover {
  border-color: var(--red);
}

/* Mobilní optimalizace */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 56px;
    gap: 28px;
  }
  
  .hero img {
    order: -1;
    width: 130px;
    margin: 0 auto;
  }
  
  h1 span {
    margin: 0.25em auto 0;
  }
  
  .lead, .sub {
    margin-left: auto;
    margin-right: auto;
  }
  
  .btns {
    justify-content: center;
  }
  
  header nav a:not(.lang) {
    display: none;
  }
  
  section {
    padding: 56px 0;
  }
}

@media (max-width: 480px) {
  .wrap {
    padding: 0 18px;
  }
  
  h2 {
    font-size: 1.65rem;
  }
  
  .btn {
    width: 100%;
  }
}