@font-face {
  font-family: "Fixedsys";
  src: url("Fonts/Fixedsys Excelsior 3.01 Regular/Fixedsys Excelsior 3.01 Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

/* Intro loading: čáry, splat a section-indicator skryté na začátku */
body.intro-loading .overlay-lines-orange,
body.intro-loading .splat-overlay,
body.intro-loading .section-indicator,
body.intro-loading .rukasipky-lottie-wrap {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
body.intro-loading.intro-lines-visible .overlay-lines-orange,
body.intro-loading.intro-lines-visible .section-indicator {
  opacity: 1;
  visibility: visible;
}
body.intro-loading.intro-folder-visible .overlay-svg {
  opacity: 0 !important;
}
body.intro-loading.intro-folder-visible .overlay-folder {
  opacity: 0.9;
}
body.intro-loading.intro-splat-visible .splat-overlay {
  opacity: 1;
  visibility: visible;
  animation: intro-splat-pop-in 0.5s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
}
body.intro-loading.intro-splat-visible .rukasipky-lottie-wrap {
  visibility: visible;
}
.rukasipky-lottie-wrap {
  opacity: 0;
  transition: opacity 0.5s ease;
}
.rukasipky-lottie-wrap.is-visible,
body.intro-loading .rukasipky-lottie-wrap.is-visible {
  opacity: 1;
}
@keyframes intro-splat-pop-in {
  0%   { transform: translateY(10%) scale(0); }
  70%  { transform: translateY(10%) scale(1.08); }
  100% { transform: translateY(10%) scale(1); }
}

/* Loading screen při načítání stránky */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#block-appearance .block-content {
  position: relative;
}

.intro-typing-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.9375rem;
  margin-left: 0.9375rem;
  font-family: "Forum", serif;
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 400;
  color: #000000;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0);
  z-index: 10;
  transform: translateX(0);
  transition: transform 0.6s ease-out;
}

.intro-typing-text.slide-left {
  /* Střed textu na první čáru (cca 20%) */
  transform: translateX(-30%);
}

.intro-lottie-wrap {
  pointer-events: none;
}

.intro-lottie {
  width: min(100%, 75vw);
  max-width: 40rem;
  height: auto;
  aspect-ratio: 1920 / 1080;
  margin: -0.625rem auto 0;
}

.intro-lottie svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Rukasipky Lottie animace – vycentrovaná na dolní hraně prvního bloku, ohraničení podle SVG (842×500) */
.rukasipky-lottie-wrap {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(10rem, 28vw);
  height: auto;
  aspect-ratio: 842 / 500;
  pointer-events: none;
  z-index: 10000;
}

.rukasipky-lottie-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Section indicator – navigace vpravo (kde na stránce jsem) */
.section-indicator {
  position: fixed;
  right: 2.5rem;
  top: calc(50% + 1.875rem);
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  z-index: 1000;
  align-items: flex-end;
  pointer-events: none;
}

.section-indicator .circle {
  width: 0.25rem;
  height: 0.1875rem;
  background-color: rgb(142 142 142);
  border-radius: 0.125rem;
  transition: width 0.18s ease-out, background-color 0.18s ease-out, opacity 0.18s ease-out;
}

.section-indicator .circle.active {
  width: 1.25rem;
  background-color: rgb(77 77 77);
}

.section-indicator .circle.below-active,
.section-indicator .circle.above-active {
  width: 0.875rem;
}

.section-indicator .circle.far-active {
  width: 0.5rem;
}

body.active-block-appearance .section-indicator .circle {
  background-color: rgba(255, 255, 255, 0.7);
}
body.active-block-appearance .section-indicator .circle.active {
  background-color: rgba(255, 255, 255, 0.95);
}

/* Scroll kontejner: scroll je jen tady, sticky headery se vážou na něj */
/* Reels-style: volný scroll vypnut, přepínání jen na další/předchozí blok */
.page-scroll {
  height: 100vh;
  height: 100dvh; /* Fix pro Safari iOS */
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overscroll-behavior: none;
  padding-top: env(safe-area-inset-top); /* Zabrání překryvu s notchem/status barem */
}

:root {
  --block-header-height: 1.875rem;
  --block-transition-duration: 0.3s;
  --block-transition-ease: ease;
  --block-headers-height: calc(var(--block-header-height) * 2);
}

.block {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--block-header-height, 1.875rem) * 2);
  box-sizing: border-box;
  border-bottom: 1px solid #cccccc93;
  background-image: radial-gradient(circle, #f1f1f183 1px, transparent 1px);
  background-size: 1.25rem 1.25rem;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  scroll-margin: 0;
}



 .block-logo {
  transition: opacity var(--block-transition-duration) var(--block-transition-ease),
              visibility var(--block-transition-duration) var(--block-transition-ease);
   position: absolute;
   left: 1.25rem;
   bottom: 1.25rem;
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 0.5rem;
   width: max-content;
   height: fit-content;
   z-index: 100;
 }

 .block-logo-icon {
   display: block;
   height: var(--block-logo-height, var(--block-logo-size, 3rem));
   object-fit: contain;
 }

 #logo-software {
display: none; }

/* Velikost ikony pro každý blok – uprav podle potřeby (--block-logo-size nebo --block-logo-width + --block-logo-height) */
#block-appearance {
  --block-logo-size: 10rem;
  padding-top: var(--block-header-height, 1.875rem);
  background: none;
  background-image: none;
}
#block-languages { --block-logo-size: 2.5rem; }
#block-education { --block-logo-size: 1.25rem; }
#block-contact { --block-logo-size: 4rem; }
#block-experience { --block-logo-size: 10rem; }
#block-software { --block-logo-size: 3rem; position: relative; }
#block-works { --block-logo-size: 3rem; }
#block-projects { --block-logo-size: 4rem; }

 .block-thats-all .block-content {
   display: flex;
   justify-content: center;
   align-items: center;
   height: calc(100vh - var(--block-headers-height));
 }

 .block-thats-all .block-content img {
   max-width: 30%;
   height: auto;
   display: block;
   opacity: 0.5;
 }

 .block-logo-text {
   font-family: "Fragment Mono", monospace;
   font-size: 0.5625rem;
   text-transform: uppercase;
   letter-spacing: 0.05em;
   color: #333;
 }

 .block-content {
   /* obsah bloku – doplň podle potřeby */
   padding: 0;
   box-sizing: border-box;
 }

#block-languages .block-content {
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(100vh - var(--block-headers-height));
  position: relative;
}

#block-software .block-content {
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(100vh - var(--block-headers-height));
  position: relative;
}

.software-static {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  cursor: pointer;
  transition: opacity var(--block-transition-duration) var(--block-transition-ease),
              visibility var(--block-transition-duration) var(--block-transition-ease);
}

.software-static.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.software-custom {
  display: flex;
  flex-direction: column;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--block-transition-duration) var(--block-transition-ease),
              visibility var(--block-transition-duration) var(--block-transition-ease);
}

.software-custom.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.software-custom-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  width: 100%;
}

.software-custom-main-desktop {
  display: block;
  height: calc(100dvh - var(--block-headers-height));
}

.software-custom-main-mobile {
  display: none;

}

.software-custom-top {
  display: grid;
  grid-template-columns: 5fr 1fr;
  flex: 1;
  min-height: 0;
  min-width: 0;
  height: 87.5%;
}

.software-custom-bottom-wrap {
  display: grid;
  grid-template-columns: 5fr 1fr;
  flex: 0 0 auto;
  min-height: 2.5rem;
  width: 100%;
  height: 12.5%;
}

.software-custom-bottom {
  padding: 1rem 1.5rem;
  font-family: "Fragment Mono", monospace;
  font-size: 0.6875rem;
  line-height: 1.5;
  color: #333;
  box-sizing: border-box;
  border-right: 1px solid #ccc;
}

.software-custom-bottom-blank {
  min-width: 0;
}

/* Levá část 5/6 – horizontálně 10 % + 90 % */
.software-custom-left {
  display: grid;
  grid-template-rows: 5% 95%;
  min-height: 0;
  min-width: 0;
}

.software-custom-left-top {
  min-height: 0;
  min-width: 0;
  border-bottom: 1px solid #ccc;
  border-right: 1px solid #ccc;
  background-color: #fae138;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.software-custom-left-top .software-banner-img {
  width: 100%;
  height: 80%;
  object-fit: contain;
  display: block;

}

.software-custom-left-bottom {
  display: grid;
  grid-template-rows: 1fr 1fr;
  grid-template-columns: repeat(5, 1fr);
  min-height: 0;
  min-width: 0;
  border-right: 1px solid #ccc;
}

.software-lb-cell {
  display: grid;
  grid-template-rows: 90% 10%;
  min-height: 0;
  min-width: 0;
  border-bottom: 1px solid #ccc;
  border-right: 1px solid #ccc;
 
}

.software-lb-cell-main {
  display: flex;
  justify-content: center;
  align-items: center;
  justify-items: center;
  min-height: 0;
  min-width: 0;
  position: relative;
  overflow: hidden;
}

.software-lb-cell-main video {
  inset: 0;
  width: 100%;
  height: 80%;
  display: block;
  transition: scale 0.15s ease-in-out;
}

.software-lb-cell-main video:hover {
  scale: 1.1;
}

.software-lb-cell-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 0;
  min-width: 0;
  padding: 0 0.375rem;
  gap: 0.5rem;
}

.software-lb-cell-name {
  font-family: "Fragment Mono", monospace;
  font-size: 0.625rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #333;
  text-align: left;
  flex: 1;
  min-width: 0;
  padding-left: 1rem;
}

.software-lb-cell-num {
  font-family: "Fragment Mono", monospace;
  font-size: 0.625rem;
  letter-spacing: 0.05em;
  color: #333;
  text-align: right;
  flex-shrink: 0;
  padding-right: 1rem;
  
}

.software-lb-cell:nth-child(5) {
  border-right: none;
}

.software-lb-cell:nth-child(6),.software-lb-cell:nth-child(7),.software-lb-cell:nth-child(8),.software-lb-cell:nth-child(9),.software-lb-cell:nth-child(10) {
  border-bottom: 1px solid #ccc;
}

.software-lb-cell:nth-child(10) {
  border-right: none;
}

/* Pravá část 1/6 – horizontálně 10 % + 90 % */
.software-custom-right {
  display: grid;
  grid-template-rows: 5% 40% 55%;
  min-height: 0;
  min-width: 0;
}

.software-custom-right-top-banner {
  border-bottom: 1px solid #ccc;

  background: #fae138;
  font-family: "Fragment Mono", monospace;
  font-size: 0.625rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #333;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.software-custom-right-top.software-card-photo-wrap {
  min-height: 0;
  min-width: 0;
  border-bottom: 1px solid #ccc;
  /* Diagonální čáry přes SVG vzor – stejná tloušťka všech čar */
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cline x1='0' y1='12' x2='12' y2='0' stroke='%23ccc' stroke-width='0.5'/%3E%3C/svg%3E"),
    #ffffff;
  background-size: 0.75rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.software-card-photo {
  width: auto;
  height: 90%;
  display: none;
}

.software-custom-right.software-card-visible .software-card-photo[src] {
  display: block;
}

.software-custom-right-bottom {
  display: grid;
  grid-template-rows: 50% 50%;
  min-height: 0;
  min-width: 0;
  

}

.software-custom-right-bottom-top {
  min-height: 0;
  min-width: 0;
  border-bottom: 1px solid #ccc;
}

.software-custom-right-bottom-bottom {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  gap: 0;
}

.software-rb-part {
  flex: 0 0 auto;
  min-height: 0;
  min-width: 0;
  padding: 0.375rem 0.625rem;
  border-bottom: 1px solid #ccc;
}

.software-card-line {
  font-family: "Fragment Mono", monospace;
  font-size: 0.6875rem;
  line-height: 1.4;
  color: #333;
  display: block;
}

.software-rb-part:last-child {
  border-bottom: none;
}

body.software-custom-active #block-software .block-content {
  height: calc(100vh - var(--block-headers-height));
  min-height: calc(100vh - var(--block-headers-height));
  overflow: hidden;
  align-items: flex-start;
}
body.software-custom-active #block-software .block-logo,
body.education-custom-active #block-education .block-logo,
body.experience-custom-active #block-experience .block-logo,
body.contact-custom-active #block-contact .block-logo,
body.carousel-active #block-languages .block-logo {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}


.skill-image {
  max-width: 80%;
  max-height: 75%;
  height: auto;
  display: block;
}

 .lp-stack {
   position: relative;
   width: 50%;
   max-width: 31.25rem;
 }

 .lp-stack img {
   width: 100%;
   height: auto;
   display: block;
 }

 .lp-shadow {
   position: absolute;
   top: 0;
   left: 0;
   z-index: 0;
   opacity: 0.5;
 }

 .lp-record {
   position: relative;
   z-index: 1;
   animation: lp-spin 10s ease-in-out infinite;
 }

 @keyframes lp-spin {
   0% { transform: rotate(0deg); }
   50% { transform: rotate(720deg); }
   100% { transform: rotate(720deg); }
 }

#block-appearance .block-content {
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(100vh - var(--block-header-height, 1.875rem));
  overflow: hidden;
}
#block-education .block-content,
#block-contact .block-content {
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(100vh - var(--block-headers-height));
  overflow: hidden;
}

#block-experience .block-content{
  height: auto;
}

#block-appearance .block-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.splat-overlay {
  z-index: 1000;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  transform: translateY(10%) scale(1);
  transform-origin: center bottom;
  transition: transform 0.3s ease-out;
  overflow: hidden;
  pointer-events: none;
}
#splat-viewer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: transparent;
}
#splat-viewer .scene,
#splat-viewer #message {
  position: absolute;
  top: 0; right: 0; left: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
#splat-viewer #message {
  font-weight: bold;
  font-size: large;
  color: #f87171;
  pointer-events: none;
}
#splat-viewer #progress {
  position: absolute;
  top: 0;
  height: 0.25rem;
  background: #3b82f6;
  z-index: 99;
  transition: width 0.1s ease-out;
}
#splat-viewer #spinner {
  width: 3.75rem;
  height: 3.75rem;
  border: 4px solid rgba(255,255,255,0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: splat-spin 0.8s linear infinite;
}
@keyframes splat-spin {
  to { transform: rotate(360deg); }
}
#splat-viewer #canvas {
  display: block;
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
}
#splat-viewer #fps,
#splat-viewer #camid {
  display: none;
}
body:not(.active-block-appearance) .splat-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#block-education .block-content video {
  max-width: 100%;
  max-height: 68%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}



#block-contact .block-content {
  position: relative;
}

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

.contact-static.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  position: absolute;
  inset: 0;
}

#block-contact .contact-static video {
  max-width: 100%;
  max-height: 40%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.contact-custom {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.contact-custom.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.contact-custom-inner {
  text-align: center;
  font-family: "Fragment Mono", monospace;
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: #333;
}

.contact-line {
  margin-bottom: 0.75rem;
}

.contact-line:last-child {
  margin-bottom: 0;
}

#block-works .block-content {
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(100dvh - 3.750rem);}

.works-static {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
}

.works-static img {
  max-width: 60%;
  max-height: 50vh;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 1;
  transition: opacity 0.15s ease, filter 0s ease, transform 0.15s ease;
}

.works-static:hover img {
  opacity: 1;
  filter: brightness(1.05);
  transform: scale(0.99);
}

 .block-header {
  --block-header-height: 1.875rem;
  position: -webkit-sticky; /* Pro podporu Safari */
  position: sticky;
  z-index: 800; /* Zvýšeno, aby byly hlavičky nad obsahem */
  width: 100%;
  height: 1.875rem;
  border-bottom: 1px dashed #ccc;
  border-left: 5px solid #000000;
  box-sizing: border-box;
  text-align: left;
  padding-left: 20px; /* Sníženo pro ikony */
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-family: "Fragment Mono", monospace;
  background: #ffffff; /* Pozadí je nutné, jinak uvidíte text pod ním */
}

.header-icon-container {
  width: 1.125rem;
  height: 1.125rem;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 0.625rem;
  flex-shrink: 0;
}

.header-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.block-header-1,.block-header-2,.block-header-3,.block-header-4,.block-header-5,.block-header-6,.block-header-7 {
  border-left: 3px solid #d1d1d1;
}


 /* sticky stack: max 2 headery, při příjezdu 3. se posune (JS) */
 .block-header.stuck-1 { top: 0; }
 .block-header.stuck-2 { top: 1.875rem; }
 .block-header.stuck-released {
   position: relative;
   top: auto;
 }

 .block-header-title {
   font-weight: 100;
   text-transform: lowercase;
   font-size: 0.5625rem;
   letter-spacing: -0.05em;
   color: #000000;
   text-transform: uppercase;   
   flex-shrink: 0;
 }

 .block-header-extra {
   margin-left: 0.3125rem;
   font-size: 0.5625rem;
   font-weight: 200;
   text-transform: none;
   color: #888;
   text-transform: uppercase;   
   flex-shrink: 0;
   letter-spacing: -0.05em;

 }

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  caret-color: transparent;
}

 body {
   position: relative;
   font-family: "Inter", sans-serif;
   font-weight: 500;
 }

 .overlay-lines-orange {
   position: fixed;
   inset: 0;
   z-index: 1000;
   pointer-events: none;
 }

 .overlay-lines-orange .overlay-line {
   position: absolute;
   top: 0;
   bottom: 0;
   width: 1px;
   background: #dfdfdfc2;
 }

 /* Posun o polovinu scrollbaru, aby čáry procházely středem obsahu v page-scroll */
 .overlay-lines-orange .overlay-line:nth-child(1) { left: calc(20% - 0.25rem); }
 .overlay-lines-orange .overlay-line:nth-child(2) { left: calc(50% - 0.5625rem); }
 .overlay-lines-orange .overlay-line:nth-child(3) { left: calc(80% - 0.75rem); }

 .overlay-lines-orange .overlay-line-h {
   position: absolute;
   left: 0;
   right: 0;
   top: calc(50% + 1.875rem);
   height: 1px;
   background: #dfdfdfc2;
 }

 .overlay-lines-orange .overlay-circle {
   position: absolute;
   left: calc(80% - 0.75rem);
   top: calc(50% + 1.875rem);
   transform: translate(-50%, -50%);
   width: 40vmin;
   height: 40vmin;
   border-radius: 50%;
   border: 1px solid #dfdfdfc2;
   background: transparent;
   display: flex;
   justify-content: center;
   align-items: center;
   pointer-events: none; /* Defaultně vypnuto */
   cursor: default;
   z-index: 1;
 }

 body.active-block-appearance .overlay-lines-orange .overlay-circle {
   pointer-events: auto; /* Zapnuto jen na prvním bloku */
   cursor: pointer;
 }

 @keyframes overlay-bounce-in {
   0%   { transform: scale(1); }
   30%  { transform: scale(1.22); }
   50%  { transform: scale(0.96); }
   70%  { transform: scale(1.05); }
   85%  { transform: scale(0.99); }
   100% { transform: scale(1); }
 }

 @keyframes overlay-bounce-out {
   0%   { transform: scale(1); opacity: 0.9; }
   100% { transform: scale(0); opacity: 0; }
 }

 .overlay-svg {
   width: 25%;
   height: auto;
   opacity: 1;
   transition: transform 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
   pointer-events: none;
   transform: scale(1);
 }

 /* Bounce-in při přechodu na blok (kromě appearance a posledního bloku) */
 body:not(.active-block-appearance):not(.active-block-thats-all) .overlay-circle.overlay-bounce .overlay-svg {
   animation: overlay-bounce-in 0.55s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
 }

 /* Na posledním bloku (that's all): SVG plynule zmizí (bez bounce) */
 body.active-block-thats-all .overlay-svg {
   animation: overlay-bounce-out 0.4s ease-out forwards;
 }

 .overlay-svg path:not(.cls-1), 
 .overlay-svg rect:not(.cls-1), 
 .overlay-svg polygon:not(.cls-1) {
   fill: #000; /* Černé části */
 }

 .overlay-svg .cls-1 {
   fill: #fff; /* Bílé části */
 }

 .overlay-folder {
   position: absolute;
   width: 50%;
   height: auto;
   opacity: 0;
   transition: opacity 0.4s ease;
   pointer-events: none;
   transform: scale(1);
 }

 /* Když je aktivní blok appearance: zobraz folder, skryj SVG (zachováno) */
 body.active-block-appearance .overlay-svg {
   opacity: 0 !important;
 }
 body.active-block-appearance .overlay-folder {
   opacity: 0.9;
 }

 body.active-block-appearance .overlay-circle:hover .overlay-folder {
   opacity: 1;
   filter: brightness(1.05);
   scale: 0.98;
   transition: opacity 0.3s ease, filter 0.3s ease, scale 0.3s ease;
 }

 /* Když je carousel nebo custom view aktivní: skryj celý overlay (čáry + SVG) */
body.carousel-active .overlay-lines-orange,
body.education-custom-active .overlay-lines-orange,
body.experience-custom-active .overlay-lines-orange,
body.contact-custom-active .overlay-lines-orange,
body.software-custom-active .overlay-lines-orange,
body.carousel-active .splat-overlay,
body.education-custom-active .splat-overlay,
body.experience-custom-active .splat-overlay,
body.contact-custom-active .splat-overlay,
body.software-custom-active .splat-overlay {
   opacity: 0;
   pointer-events: none;
   transition: opacity 0.3s ease;
 }

/* Indikátor zmizí pouze u software skills */
body.software-custom-active .section-indicator {
   opacity: 0;
   pointer-events: none;
   transition: opacity 0.3s ease;
}

/* Při najetí na neaktivní blok: overlay (čáry + SVG + splat) znovu zobraz */
body.carousel-active.overlay-on-inactive-hover .overlay-lines-orange,
body.education-custom-active.overlay-on-inactive-hover .overlay-lines-orange,
body.experience-custom-active.overlay-on-inactive-hover .overlay-lines-orange,
body.contact-custom-active.overlay-on-inactive-hover .overlay-lines-orange,
body.software-custom-active.overlay-on-inactive-hover .overlay-lines-orange,
body.software-custom-active.overlay-on-inactive-hover .section-indicator {
   opacity: 1;
   pointer-events: auto;
 }

 /* Bounce animace folderu při přechodu na appearance (z původní velikosti) */
 body.active-block-appearance .overlay-circle.overlay-bounce .overlay-folder {
   animation: overlay-bounce-in 0.55s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
 }

 

 .overlay-image-parent {
   position: fixed;
   bottom: 15%;
   left: calc(50% - 0.5rem);
   transform: translateX(-50%) translateY(50%);
   z-index: 999;
   width: 14.0625rem;
   height: auto;
 }

 .overlay-image-parent .overlay-image {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   object-fit: contain;
 }

 .overlay-image-parent .overlay-blur {
   position: absolute;
   left: 50%;
   top: 15.625rem;
   transform: translate(-50%, -50%);
   width: 40%;
   height: 5rem;
   backdrop-filter: blur(5px);
   -webkit-backdrop-filter: blur(10px);
   background-color: rgba(255, 255, 255, 0.274);
 }

 .overlay-image-parent .overlay-image-back {
   z-index: 0;
 }

 .overlay-image-parent .overlay-image:not(.overlay-image-back) {
   z-index: 1;
 }

/* ===== Languages carousel ===== */

.languages-static {
  display: block;
  cursor: pointer;
  transition: opacity var(--block-transition-duration) var(--block-transition-ease),
              visibility var(--block-transition-duration) var(--block-transition-ease);
}

.languages-static.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.languages-carousel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 80%;
  max-width: 50%;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--block-transition-duration) var(--block-transition-ease),
              visibility var(--block-transition-duration) var(--block-transition-ease);
}

.languages-carousel.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.languages-carousel-swipe-hint {
  display: none;
}

#block-languages {
  position: relative;
  min-height: auto;
}

.lang-close-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  background: transparent;
  border: none;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: opacity 0.15s ease;
  padding: 0;
  color: #8b8b8b;
  padding-right: 2.5rem;
}

.lang-close-btn.is-visible {
  display: flex;
}

.lang-close-btn:hover {
  opacity: 0.7;
}

.lang-close-btn:active {
  opacity: 0.5;
}

.lang-close-btn svg {
  height: 7.125rem;
  width: auto;
  display: block;
}

/* BACK ikona – oranžová #ff790b */





/* ===== Block Education – přepínání na vlastní div ===== */
#block-education {
  position: relative;
}

.education-static {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  cursor: pointer;
  transition: opacity var(--block-transition-duration) var(--block-transition-ease),
              visibility var(--block-transition-duration) var(--block-transition-ease);
}

.education-static.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.education-custom {
  display: flex;
  flex-direction: column;
  position: absolute;
  inset: 0;
  align-items: stretch;
  justify-content: flex-start;
  min-height: calc(100vh - var(--block-headers-height));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--block-transition-duration) var(--block-transition-ease),
              visibility var(--block-transition-duration) var(--block-transition-ease);
}

.education-custom.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ===== Block Work Experience – přepínání na vlastní div ===== */
#block-experience {
  position: relative;
  display: flex;
  justify-content: center;
}

.experience-static {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  cursor: pointer;
  transition: opacity var(--block-transition-duration) var(--block-transition-ease),
              visibility var(--block-transition-duration) var(--block-transition-ease);
}

.experience-static video{
  height: 80%;
}

.experience-static.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.experience-custom {
  display: flex;
  flex-direction: column;
  position: absolute;
  inset: 0;
  align-items: stretch;
  justify-content: flex-start;
  min-height: calc(100vh - var(--block-headers-height));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--block-transition-duration) var(--block-transition-ease),
              visibility var(--block-transition-duration) var(--block-transition-ease);
}

.experience-custom.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  position: relative;
  inset: auto;
  width: 100%;
  max-height: calc(100vh - var(--block-headers-height));
  background-image: url('images/Experience_block/background2.webp');
  background-size: 100% auto;
  background-position: center;
  background-repeat: repeat;
}

.experience-swipe-hint {
  display: none;
}

/* Výška block-content se přizpůsobí obsahu experience-custom při zobrazení */
body.experience-custom-active #block-experience .block-content {
  height: auto;
  min-height: calc(100vh - var(--block-headers-height));
  overflow: visible;
  align-items: flex-start;
}

.experience-bottom-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70%;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 100, 231, 0) 30%, rgba(255, 255, 255, 0.541) 52%, rgba(255, 255, 255, 0.76));
  z-index: 1;
}

@keyframes experience-swipe-nudge {
  0%, 50% { transform: translateX(0); }
  12.5% { transform: translateX(12px); }
  25% { transform: translateX(0); }
  37.5% { transform: translateX(12px); }
  50%, 100% { transform: translateX(0); }
}

@keyframes experience-levitate {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
/* Experience navigation dots – hidden by default (desktop) */
.experience-dots {
  display: none;
}

.experience-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background-color: #ffffff;
  border: 1px solid #0025fa;
}

.experience-dot.is-active {
  background-color: #0025fa;
  border-color: #0025fa;
}

/* Experience top bar (banner bez tlačítka) */
.experience-top-bar.top-bar {
  display: none;
  width: 100%;
  flex-shrink: 0;
}

.experience-top-bar .bar2 {
  width: 100%;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, #4495ff 10%, #69aaff 90%, rgba(255, 255, 255, 0) 100%);
  border-bottom: 3px solid transparent;
  box-shadow: 0px 15px 10px -15px #0000008f;
  border-image: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.904) 10%, rgba(255, 255, 255, 0.904) 90%, rgba(255, 255, 255, 0) 100%) 1;
}

.experience-top-bar .bar_data {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 1.5rem;
  box-sizing: border-box;
}

.experience-top-bar .bar_data > div:first-child,
.experience-top-bar .bar_data > div:last-child {
  flex: 1;
  min-width: 0;
}

.experience-top-bar .bar_middle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.experience-top-bar .bar_middle img {
  display: block;
  height: 2.5rem;
  width: auto;
  max-width: 23.75rem;
  object-fit: contain;
}

.experience-three-cols {
  display: flex;
  justify-items: center;
  flex: 1;
  min-height: 0;
  z-index: 2;
  /* 4 sloupce – každý .experience-col má flex: 1 */
}

.experience-col {
  flex: 1;
  min-width: 0;
  padding-left: 4rem;
  padding-right: 4rem;
}

.experience-col:first-child{
  padding: 0rem 1rem 1rem 4rem;

}

.experience-col:last-child{
  padding-right: 4rem;
  border-right: none;


}


.experience-col-3,
.experience-col-4,
.experience-col-5 {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0 1rem 1rem;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
}

.experience-col-5 {

  gap: 0rem;

}



.experience-col-2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0rem 1rem 1rem 1rem;
  box-sizing: border-box;
  gap: 1.5rem;
  overflow-y: auto;
  overflow-x: hidden;

}

.experience-col-2-inner {
  width: fit-content;
  height: fit-content;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  filter: drop-shadow(0px 1px 3px #000000);
}

.experience-col-2-inner .experience-landing-img {
  margin-top: 2vw;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Experience card (UX/UI blok ve středu) */
.experience-card {
  width: 100%;
  max-width: 32.5rem;
  box-sizing: border-box;
}

.experience-card-inner {
  width: 100%;
  box-sizing: border-box;
}

.experience-card-layout {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.experience-card-top {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.experience-card-title-wrap,
.experience-card-title-inner,
.experience-card-data {
  display: flex;
  align-items: center;
  justify-content: center;
}

.experience-card-data img {
  height: 2.25rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.experience-card-bottom {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  padding: 1rem 1.25rem;
  box-sizing: border-box;
}

.experience-card-left {
  flex: 1;
  min-width: 0;
}

.experience-card-company {
  font-weight: 600;
  font-size: 1rem;
  color: #1a1a1a;
  margin-bottom: 0.25rem;
}

.experience-card-year {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.experience-card-banner {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #4495ff;
  margin-bottom: 0.75rem;
}

.experience-points {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.experience-point {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.experience-point img {
  width: 1rem;
  height: 1rem;
  object-fit: contain;
}

.experience-point-text {
  font-size: 0.9rem;
  line-height: 1.4;
  color: #333;
}

.experience-card-right {
  flex-shrink: 0;
  width: 7.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.experience-card-right img {
  max-width: 100%;
  max-height: 8.75rem;
  object-fit: contain;
}

.experience-job-card {
  margin-top: 1.5rem;
  width: 100%;
  max-height: calc(100% - 2rem);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  background-color: transparent;
  box-shadow: 0px 10px 15px -10px #000;
  border: solid 1px #000;
  border-radius: 0.875rem;
  overflow: hidden;
}

.experience-job-card-outer{
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 0.3125rem;
  border-radius: 0.75rem;
  background: linear-gradient(180deg, #2d8bff, #005fd3);
  height: 100%;
  min-height: 0;
}

.experience-job-card-inner{
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 1rem 1rem 1.5rem 1rem;
  border-radius: 0.4375rem;
  position: relative;
  background: linear-gradient(180deg, #6caeff, #fff);
  mix-blend-mode: normal;
  height: 100%;
  min-height: 0;
}

.experience-job-card-layout{
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.experience-job-card-layout-top{
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}

.experience-job-card-title-wrap{
  display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    width: 100%;
}

.experience-job-card-title-inner{
  display: flex;
  width: 100%;
  flex-direction: row;
  cursor: pointer;
}

.experience-job-card-title-box{
  width: 100%;
    display: block;
    box-sizing: border-box;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgb(0, 119, 255) 15%, rgb(0, 119, 255) 85%, rgba(255, 255, 255, 0) 100%);
    border-top: 1px solid transparent;
    border-bottom: 1px solid transparent;
    box-shadow: 0px 15px 10px -15px #0000008f;
    border-image: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(0, 0, 0, 0.904) 15%, rgba(0, 0, 0, 0.904) 85%, rgba(255, 255, 255, 0) 100%) 1;
}

.experience-job-card-title-data{
  border-image: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.904) 15%, rgba(255, 255, 255, 0.904) 85%, rgba(255, 255, 255, 0) 100%) 1;
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
    display: flex;
    justify-content: center;
    padding-top: 0.3125rem;
    padding-bottom: 0.3125rem;
    color: #fdfdfd;
    font-size: 1rem;
    font-weight: 450;
}

.experience-job-card-title-svg{
  max-width: 55%;
  height: auto;
}

.experience-job-card-layout-bottom{
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
}

.experience-job-card-layout-bottom::-webkit-scrollbar {
  display: none;
}

.experience-job-card-layout-bottom-left{
  padding-right: 0;
  width: 100%;
}

.experience-job-card-layout-bottom-left-company{
  font-size: 1.0625rem;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  color: #0026ff;
  text-transform: capitalize;
  line-height: 1.2;
}

.experience-job-card-layout-bottom-left-year{
  box-sizing: border-box;
  display: block;
  font-family: "Inter", sans-serif;
  color: #000000b7;
  font-size: 0.9375rem;
  margin-top: 0.25rem;
}

.experience-job-card-layout-bottom-left-banner{
  margin-top: 1rem;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  color: white;
  text-transform: capitalize;
  background: linear-gradient(90deg, #0025fa 49.48%, hsla(0, 0%, 100%, 0));
  padding: 0.125rem 0.625rem;
  margin-bottom: 1rem;
  width: fit-content;
}

.experience-job-card-layout-bottom-left-points{
  display: flex;
    flex-direction: row;
    padding-bottom: 0.75rem;
    gap: 0.75rem;
}

.experience-job-card-layout-bottom-left-points:last-child{
  padding-bottom: 0px;
}

.experience-job-card-layout-bottom-left-points-point{
  width: 1rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.experience-job-card-layout-bottom-left-points-text{
  box-sizing: border-box;
  display: block;
  font-family: "Inter", sans-serif;
  color: rgba(25, 20, 82, 0.815);
  font-size: 0.75rem;
  line-height: 1.4;
  width: 100%;
}

.experience-job-card-layout-bottom-right{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

#experience-job-card-layout-bottom-right-cmn{
  padding-right: 0vw;
  padding-left: 0vw;
}

#experience-job-card-layout-bottom-right-mvrdv{
  padding-right: 0vw;
  padding-left: 0vw;
}

#experience-job-card-layout-bottom-right-future{
  padding-right: 0vw;
  padding-left: 0vw;}
 

#experience-job-card-layout-bottom-right-img-future{
  flex-direction: column;
  align-items: center;
  justify-content: center;
  justify-items: center;
  width: 25%;
}

#experience-job-card-layout-bottom-right-img-mvrdv{
  flex-direction: column;
  align-items: center;
  justify-content: center;
  justify-items: center;
  width: 50%;
}

#experience-job-card-layout-bottom-right-img-cmn{
  flex-direction: column;
  align-items: center;
  justify-content: center;
  justify-items: center;
  width: 70%;
}

#experience-job-card-layout-bottom-right-img-olc{
  flex-direction: column;
  align-items: center;
  justify-content: center;
  justify-items: center;
  width: 40%;
}

.experience-job-card-layout-bottom-right-img{
  display: flex;
}

.experience-job-card-layout-bottom-right-img img {
  width: 100%;
  max-height: 15vh;
  object-fit: contain;
}

.experience-job-card-layout-bottom-right-link-button{
  text-align: center;
  font-family: "Inter", sans-serif;
  color: #0025fa;
  font-size: 0.8125rem;
  text-decoration: underline;

}

.experience-media-card{
  display: flex;
  margin-top: 2vw;
  border: solid;
  border-width: 1px;
  border-color: #000000;
  filter: drop-shadow(3px 3px 0px #00000056);
  width: 100%;
  object-fit: fit;
  overflow-x: hidden;

}

.experience-media-card-parent{
  width: 100%;
  height: 100%;
  object-fit: fit;
  max-height: 100%;
  overflow-x: hidden;

}

#block-experience .block-content video{
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: contain;
  overflow-x: hidden;
}

.experience-media-card video{
  width: 100%;
  height: 100%;
  max-height: 100%;
  overflow-x: hidden;
}

.experience-image-card{
  margin-top: 2vw;
  border: solid;
  border-width: 1px;
  border-color: #00000000;
  filter: drop-shadow(3px 3px 0px #00000000);
  width: 100%;
  overflow-x: hidden;
  width: 100%;
  margin-bottom: 10vw;

}

.experience-image-card-parent{
  display: flex;
  justify-content: center;
  align-items: center;
  

}

.experience-image-card-parent img{
  width: 70%;
  height: 100%;
  object-fit: fit;
  max-height: 100%;
  overflow-x: hidden;

}




.education-banner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  box-sizing: border-box;
  background: #0008ff;
  color: #fff;
  margin-top: var(--block-headers-height);
}

.education-banner-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 31.25rem;
}

.education-banner svg {
  width: 100%;
  max-width: min(100rem, 90vw);
  height: auto;
  display: block;
  min-width: 0;
}

.education-banner svg .portfolio {
  fill: currentColor;
}

.education-banner-subtitle {
  font-family: "Fixedsys", monospace;
  font-size: 0.75rem;
  margin: 0;
  color: #fff;
}

/* Dvě části pod bannerem: tlačítka + panely */
.education-tabs-and-panels {
  margin-top: 5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  min-height: 0;
  overflow-y: hidden;
}

.education-tabs {
  display: flex;
  align-items: center;
  justify-content: left;
  gap: 1.5rem;
  padding: 1rem 1rem 1rem 25%;
  flex-shrink: 0;
  box-sizing: border-box;
}

.education-tab-btn {
  background: none;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #333;
}

.education-tab-btn:hover {
  background: #ececec;
}

.education-tab-btn.is-active {
  color: #fff;
  border-color: #000;
  background: #000;
}

.education-tab-btn svg {
  width: 7.5rem;
  height: auto;
  display: block;
}

.education-tab-btn svg .cls-1,
.education-tab-btn svg .ACD_button {
  fill: currentColor;
}

.education-panels {
  flex: 1;
  position: relative;
  width: 100%;
  min-height: 12.5rem;
  overflow: hidden;
}

.education-panel {
  display: none;
  position: absolute;
  inset: 0;
  padding: 2rem 1rem 1rem 25%;
  box-sizing: border-box;
  overflow: auto;
}

.education-panel.is-active {
  display: block;
  overflow-y: hidden;
}

.education-panel-fixedsys {
  font-family: "Fixedsys", monospace;
  color: #000;
  background: #fff;
}

.education-panel-fixedsys .education-entry {
  margin-bottom: 2rem;
}

.education-panel-fixedsys .education-entry:last-child {
  margin-bottom: 0;
}

.education-panel-fixedsys .education-label {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.education-panel-fixedsys .education-year,
.education-panel-fixedsys .education-level,
.education-panel-fixedsys .education-school {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.education-panel-fixedsys .music-entry {
  margin-bottom: 1.8rem;
}

.education-panel-fixedsys .music-entry:last-child {
  margin-bottom: 0;
}

.education-panel-fixedsys .music-artist {
  font-size: 1.5rem;
  margin-bottom: 0.15rem;
}

.education-panel-fixedsys .music-song {
  font-size: 1.5rem;
  margin-bottom: 0;
}

.education-panel-fixedsys .education-panel-title {
  font-family: "Fixedsys", monospace;
  font-size: 1.5rem;
  font-weight: normal;
  margin: 0 0 1rem 0;
  color: #000;
}

.education-panel-video {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
  max-height: 80%;
  object-fit: contain;
}

/* Tlačítko zavření (stejné jako u Languages) */
.block-close-btn,
.lang-close-btn,
.education-close-btn,
.experience-close-btn,
.contact-close-btn,
.software-close-btn {
  position: absolute;
  bottom: 1.25rem;
  right: 0;
  background: transparent;
  border: none;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  padding: 0;
  padding-right: 2.5rem;
  color: #8b8b8b;
}

.education-close-btn.is-visible,
.experience-close-btn.is-visible,
.contact-close-btn.is-visible,
.software-close-btn.is-visible {
  display: flex;
}

.block-close-btn:hover,
.education-close-btn:hover,
.experience-close-btn:hover,
.contact-close-btn:hover,
.software-close-btn:hover {
  opacity: 0.9;
}

.block-close-btn:active,
.education-close-btn:active,
.experience-close-btn:active,
.contact-close-btn:active,
.software-close-btn:active {
  opacity: 0.5;
}

.block-close-btn svg,
.education-close-btn svg,
.experience-close-btn svg,
.contact-close-btn svg,
.software-close-btn svg {
  height: 7.125rem;
  width: auto;
  display: block;
}
.lang-close-btn svg .cls-1,
.education-close-btn svg .cls-1,
.experience-close-btn svg .cls-1,
.contact-close-btn svg .cls-1,
.software-close-btn svg .cls-1 {
  fill: #000000;
  fill-rule: evenodd;
  stroke-width: 0;
}



.lang-close-btn svg .cls-2,
.experience-close-btn svg .cls-2,
.education-close-btn svg .cls-2,
.contact-close-btn svg .cls-2,
.software-close-btn svg .cls-2 {
  fill: #ffffff;
  fill-rule: evenodd;
  stroke-width: 0;
}

.languages-carousel-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  position: relative;
}

.languages-carousel-viewport {
  position: relative;
  flex: 1;
}

.languages-carousel-viewport {
  position: relative;
  overflow: hidden;
  flex: 1;
  min-height: 18.75rem;
  height: 31.25rem;
  width: 100%;
}

.languages-carousel-track {
  display: flex;
  width: 400%; /* 4 slidů po 100% viewportu */
  height: 100%;
  transform: translateX(0%);
  transition: transform 0.4s cubic-bezier(0.3, 0.7, 0.4, 1);
}

.language-card {
  flex: 0 0 25%; /* Každá karta je 25% šířky tracku = 100% šířky viewportu */
  width: 25%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  box-sizing: border-box;
  text-align: center;
  min-height: 100%;
}

.language-card-image {
  width: 25rem;
  height: 25rem;
  object-fit: contain;
  margin-bottom: 1.875rem;
}

.language-card-texts {
  font-family: "Fragment Mono", monospace;
  font-size: 0.625rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  overflow: visible;
  white-space: normal;
}

.language-card-title {
  color: #000000;
  font-weight: 600;
  margin-bottom: 0.0625rem;
}

.language-card-subtitle {
  font-weight: 400;
  color: #666;
  overflow: visible;
  white-space: normal;
}

.lang-arrow {
  border: none;
  background: #d4d4d400;
  border-radius: 999px;
  width: 6.25rem;
  height: 6.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, color 0.15s ease;
  color: #afafaf;
  padding: 0;
}

.lang-arrow:hover {
  color: #000000;
  
}

.lang-arrow:active {
  color: #808080;
}

.lang-arrow svg {
  width: 2.5rem;
  height: auto;
  display: block;
}

.lang-arrow:hover:not(.disabled) {
  background-color: #33333300;
}

.lang-arrow:active:not(.disabled) {
  transform: translateY(0);
}

.lang-arrow.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.lang-arrow.disabled svg {
  opacity: 0.5;
}

.languages-carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  width: 100%;
}

.lang-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: #d4d4d4;
  transition: background-color 0.3s ease;
}

.lang-dot.active {
  background-color: #707070;
  width: 0.5rem;
  border-radius: 0.25rem;
}

/* RESPONSIVE - MOBILE */
@media (max-width: 768px) {
  .block {
    border-bottom: none;
  }

  .splat-overlay {
    display: none !important;
  }
  
  .intro-typing-text.slide-left {
    transform: translateY(-25%); /* Posun nahoru */

  }

  .overlay-lines-orange .overlay-line:nth-child(1),
  .overlay-lines-orange .overlay-line:nth-child(3) {
    display: none !important;
  }

  .section-indicator {
    right: 1rem;
  }

  .overlay-lines-orange .overlay-line:nth-child(2) {
    left: calc(50%);
  }

  .intro-lottie {
    width: min(100%, 100vw);
    max-width: 60rem;
    height: auto;
    aspect-ratio: 1920 / 1080;
    margin: -0.625rem auto 0;
    transform: scale(1.3); /* Zvětšení na telefonu */
  }

  .block-close-btn, .lang-close-btn, .education-close-btn, .experience-close-btn, .contact-close-btn, .software-close-btn {
    position: absolute;
    bottom: 1.25rem;
    right: 0;
    background: transparent;
    border: none;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    padding: 0;
    padding-right: 1rem;
    color: #8b8b8b;
  }

  .block-close-btn svg, .education-close-btn svg, .experience-close-btn svg, .contact-close-btn svg, .software-close-btn svg {
    height: 5rem;
    width: auto;
    display: block;
}


  .overlay-lines-orange .overlay-circle {
    position: absolute;
    left: calc(50% );
    top: calc(50% + 1.875rem);
    transform: translate(-50%, -50%);
    width: 60vmin;
    height: 60vmin;
    border-radius: 50%;
    border: 1px solid #dfdfdfc2;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    cursor: default;
    z-index: 1;
  }

  .rukasipky-lottie-wrap {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: min(10rem, 28vw);
    height: auto;
    aspect-ratio: 842 / 500;
    pointer-events: none;
    z-index: 10000;
  }

  #block-appearance{
    height:100dvh;
    min-height: 100dvh;
    padding-top: 0px;
  }

  #block-languages .block-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100dvh - 3.750rem);
    position: relative;
  }

  #block-languages {
    --block-logo-size: 2rem;
}

  #block-languages{
    height:100dvh;
    min-height: 100dvh;
  }

  .languages-carousel {
    width: 100%;
    max-width: none;
    padding: 0 0.5rem;
    box-sizing: border-box;
    gap: 2rem;
  }

  .languages-carousel-wrapper {
    width: 100%;
    gap: 0.5rem;
  }

  .languages-carousel-viewport {
    min-height: 12rem;
    height: 20rem;
    touch-action: pan-y;
  }

  .language-card-texts {
    flex-shrink: 0;
  }

  .language-card-image {
    width: 15rem;
    height: 15rem;
  }

  .lang-arrow {
    display: none !important;
  }

  .languages-carousel.is-visible .languages-carousel-swipe-hint {
    display: block;
  }

  .languages-carousel-swipe-hint {
    display: none;
    margin: 0 0 0.5rem 0;
    font-family: "Fragment Mono", monospace;
    font-size: 0.625rem;
    color: #888;
    text-align: center;
    text-transform: uppercase;
  }

  /* Software – mobile vs desktop variants */
  .software-custom-main-desktop {
    display: none;
  }

  .software-custom-main-mobile {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    width: 100%;
    height: 100dvh;
  }

  .software-mobile-top {
    box-sizing: border-box;
    background-color: #fae138;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem;
  }

  .software-mobile-top .software-banner-img {
    width: 20%;
    height: auto;
    object-fit: contain;
    display: block;
  }

  .software-mobile-carousel {
    flex: 1;
    min-height: 0;
    max-height: 60vh;
    padding: 0.5rem 0 1rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .software-mobile-viewport-wrap {
    position: relative;
    flex: 1;
    min-height: 0;
  }

  .software-mobile-viewport {
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  .software-mobile-track {
    display: flex;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    will-change: transform;
  }

  .software-custom-main-mobile .software-lb-cell {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    border: none;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    pointer-events: none;
  }

  .software-custom-main-mobile .software-lb-cell-main {
    flex: 1;
    min-height: 0;
    padding: 1rem;
  }

  .software-custom-main-mobile .software-lb-cell-main video {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .software-custom-main-mobile .software-lb-cell-foot {
    flex-shrink: 0;
    padding: 0 0;
  }

  .software-mobile-info {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    font-family: "Fragment Mono", monospace;
    font-size: 0.65rem;
    line-height: 1.5;
    color: #333;
    box-sizing: border-box;
    border-top: 1px solid #ccc;
    border-bottom: 1px dashed #ccc;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;

    text-align: left;
  }

  .software-mobile-info-line {
    margin-bottom: 0.15rem;
  }

  .software-mobile-info-line:last-child {
    margin-bottom: 0;
  }

  .software-mobile-viewport-wrap {
    --software-mobile-btn-bg: #fae138;
    --software-mobile-btn-ring: #584d01;
    --software-mobile-btn-arrow: #584d01;
  }

  .software-mobile-prev-btn,
  .software-mobile-next-btn {
    -webkit-tap-highlight-color: transparent;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .software-mobile-prev-btn svg,
  .software-mobile-next-btn svg {
    outline: none;
    pointer-events: none;
  }

  .software-mobile-prev-btn svg path:first-of-type,
  .software-mobile-next-btn svg path:first-of-type {
    fill: var(--software-mobile-btn-bg);
  }

  .software-mobile-prev-btn svg path:nth-of-type(2),
  .software-mobile-next-btn svg path:nth-of-type(2) {
    fill: var(--software-mobile-btn-ring);
  }

  .software-mobile-prev-btn svg path:nth-of-type(3),
  .software-mobile-prev-btn svg path:nth-of-type(4),
  .software-mobile-next-btn svg path:nth-of-type(3),
  .software-mobile-next-btn svg path:nth-of-type(4) {
    stroke: var(--software-mobile-btn-arrow);
  }

  .software-mobile-prev-btn {
    left: 1rem;
  }

  .software-mobile-prev-btn svg {
    transform: scaleX(-1);
    width: 100%;
    height: 100%;
  }

  .software-mobile-next-btn {
    right: 1rem;
  }

  .software-mobile-next-btn svg {
    width: 100%;
    height: 100%;
  }

  .software-mobile-prev-btn:active,
  .software-mobile-next-btn:active {
    transform: translateY(-50%) scale(0.82);
  }

  .software-mobile-prev-btn:focus,
  .software-mobile-next-btn:focus,
  .software-mobile-prev-btn:focus-visible,
  .software-mobile-next-btn:focus-visible {
    outline: none;
    box-shadow: none;
  }


  .software-mobile-bottom {
    padding: 0 10rem 0 1rem;
    font-family: "Fragment Mono", monospace;
    font-size: 0.7rem;
    line-height: 1.5;
    color: #ccc;
    box-sizing: border-box;
  }

  .lp-stack {
    position: relative;
    width: 80%;
    max-width: 31.25rem;
  }

  .languages-carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0rem;
    width: 100%;
  }

  .language-card {
    flex: 0 0 25%;
    width: 25%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0rem 1.5rem;
    box-sizing: border-box;
    text-align: center;
    min-height: 100%;
}

  .lang-dot {

    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background-color: #d4d4d4;
    transition: background-color 0.3s ease;
  }

 

  .lang-dot.active {
    background-color: #707070;
    width: 0.4rem;
    border-radius: 0.4rem;
  }

  #block-education .block-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100dvh - 3.750rem);
    position: relative;
  }

  #block-education .block-content video {
    
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
  }

  .education-banner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    box-sizing: border-box;
    background: #0008ff;
    color: #fff;
    margin-top: 0px;
  }

  .education-tabs-and-panels {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    min-height: 0;
    overflow-y: hidden;
  }

  .education-tabs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 1rem 1rem 1rem;
    flex-shrink: 0;
    box-sizing: border-box;
  }

  .education-tab-btn svg {
    width: 5rem;
    height: auto;
    display: block;
  }

  .education-panel {
    display: none;
    position: absolute;
    inset: 0;
    padding: 1rem 1rem 1rem 1rem;
    box-sizing: border-box;
    overflow: auto;
  }

  .education-panel-fixedsys .education-label {
    font-size: 1rem;
    margin-bottom: 0.25rem;
  }

  .education-panel-fixedsys .music-artist {
    font-size: 1rem;
    margin-bottom: 0.1rem;
  }

  .education-panel-fixedsys .music-song {
    font-size: 1rem;
    margin-bottom: 0;
  }

  .education-panel-fixedsys .music-entry {
    margin-bottom: 1.5rem;
  }

  .education-panel-fixedsys .education-year, .education-panel-fixedsys .education-level, .education-panel-fixedsys .education-school {
    font-size: 1rem;
    margin-bottom: 0.25rem;
  }

  .education-panel-fixedsys .education-panel-title {
    font-family: "Fixedsys", monospace;
    font-size: 1rem;
    font-weight: normal;
    margin: 0 0 1rem 0;
    color: #000;
  }

  #block-education {
    --block-logo-size: 1rem;
  }

  #block-education{
    height:100dvh;
    min-height: 100dvh;
  }

  #block-contact .block-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100dvh - 3.750rem);
    position: relative;
  } 

  #block-contact{
    height:100dvh;
    min-height: 100dvh;
  }

  #block-contact {
    --block-logo-size: 3rem;
  }
  
  #block-contact .contact-static video {
    max-width: 80%;
    max-height: 40%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
  }

  #block-experience .block-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100dvh - 3.750rem);
    position: relative;
  }

  body.experience-custom-active #block-experience .block-content {
    align-items: stretch;
  }

  /* Experience navigation dots – mobile only */
  .experience-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    z-index: 3;
  }

  .experience-dot {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background-color: #ffffff;
    border: 1px solid #0025fa;
  }

  #block-experience{
    height:100dvh;
    min-height: 100dvh;
  }

  body.experience-custom-active #block-experience .block-content {
    height: calc(100dvh - var(--block-headers-height));
    min-height: calc(100dvh - var(--block-headers-height));
    overflow: visible;
}

  .experience-col:first-child {
    display: flex;
    flex-direction: column;
  }

  /* Experience carousel na mobilu – swipe mezi sloupci */
  .experience-custom.is-visible .experience-col-1 .experience-media-card {
    display: none;
  }

  .experience-custom.is-visible {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
  }

  .experience-custom.is-visible .experience-swipe-hint {
    flex-shrink: 0;
  }

  .experience-custom.is-visible .experience-three-cols {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    min-height: 0;
    width: 100vw;
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .experience-custom.is-visible .experience-col {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    padding-bottom: 0rem;
    padding-top: 0rem;
    padding-left: 3rem;
    padding-right: 3rem;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    margin-top: 1rem;
  }

  .experience-job-card {
    margin-top: 0rem;
    width: 100%;
    max-height: calc(100% - 2rem);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    background-color: transparent;
    box-shadow: 0px 10px 15px -10px #000;
    border: solid 1px #000;
    border-radius: 0.875rem;
    overflow: hidden;
  }

  .experience-job-card-layout-bottom-left-points-text {
    box-sizing: border-box;
    display: block;
    font-family: "Inter", sans-serif;
    color: rgba(25, 20, 82, 0.815);
    font-size: 0.65rem;
    line-height: 1.4;
    width: 100%;
  }

  .experience-custom.is-visible .experience-col:first-child {
    padding: 1rem;
    gap: 5rem;
  }

  .experience-col-2-inner img {
    animation: experience-levitate 3s ease-in-out infinite;
  }

  .experience-custom.is-visible .experience-col:last-child {
    padding: 0rem 2rem 2rem 2rem;
  }

  .experience-custom.is-visible .experience-col-3,
  .experience-custom.is-visible .experience-col-4,
  .experience-custom.is-visible .experience-col-5 {
    overflow-y: auto;
    overflow-x: hidden;
  }

  .experience-custom.is-visible .experience-col-2 {
    overflow-y: auto;
    overflow-x: hidden;
  }

  .experience-custom.is-visible .experience-swipe-hint {
    display: block;
    margin: 0 0 0.5rem 0;
    font-family: "Fragment Mono", monospace;
    font-size: 0.625rem;
    color: #888;
    text-align: center;
    text-transform: uppercase;
  }

  #block-experience {
    --block-logo-size: 8rem;
  }

  #block-software .block-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100dvh - 3.750rem);
    position: relative;
  }

  #block-software{
    height:100dvh;
    min-height: 100dvh;
  }

  #block-software {
    --block-logo-size: 2rem;
    position: relative;
  }

  #block-works .block-content {
    height: calc(100dvh - 3.750rem);
  }

  #block-works {
    height:100dvh;
    min-height: 100dvh;  
  }

  #block-works .block-logo img {
    max-width: 50%;

  }

  .block-logo {
    flex-direction: row;
  }


  .block-logo img{
    max-width: 85%;
    left: 0;
  }

  #block-works { --block-logo-size: 2.25rem; }


  .block{
    height:100dvh;
  }

  .block-content {
    height: 100dvh;
  }

  #block-appearance .block-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100dvh;
    overflow: hidden;
  }

  .block-thats-all .block-content img {
    max-width: 70%;
    height: auto;
    display: block;
    opacity: 0.5;
  }



}

  