/* --- ZÁKLADNÍ STYLY STRÁNKY --- */
.fade-in {
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
}
.fade-delay-1 { animation-delay: 1.2s; }
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}
#canvas-bg {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
}

/* --- SEKCE DOVEDNOSTÍ (HEXAGONY) --- */
.hexagon-section-wrapper {
  color: #EAEAEA;
  font-family: 'Inter', sans-serif;
  padding: 0rem 0;
  overflow: hidden;
  margin-bottom: 5rem;
  margin-top: 2rem;
}
.skill-cluster-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 650px;
  margin: 0 auto;
}
.skill-hex {
  position: absolute;
  width: 120px;
  height: 138px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.skill-hex-label {
  position: relative;
  z-index: 2;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  padding: 10px;
  pointer-events: none;
}
.hexagon-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.hex-bg {
  fill: #18181B;
  transition: fill 0.3s ease;
}
.skill-hex:hover .hex-bg {
    fill: #27272A;
}
.hex-progress {
  fill: none;
  stroke: var(--c);
  stroke-width: 4;
  stroke-linecap: round;
}
.skill-hud {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 250px;
  height: 250px;
  background: rgba(10, 10, 10, 0.8);
  border: 2px solid #555;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  transition: opacity 0.3s;
  pointer-events: none;
}
.skill-hud-title {
  font-size: 1.5rem;
  font-weight: 700;
}
.skill-hud-description {
  font-size: 0.9rem;
  color: #aaa;
  margin-top: 0.5rem;
}
.skill-hud-level-bar {
  width: 80%;
  height: 8px;
  background: #333;
  border-radius: 4px;
  margin-top: 1rem;
}
.skill-hud-level-progress {
  width: 0%;
  height: 100%;
  background: var(--c);
  border-radius: 4px;
  transition: width 0.5s ease;
}

/* --- BOČNÍ ODKAZY --- */
.side-links-container {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 50;
    opacity: 1 !important;
}
.side-links-left {
    left: 2rem;
}
.side-links-right {
    right: 2rem;
}
.side-hex-link {
    width: 80px;
    height: 92px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    pointer-events: auto;
}
.side-hex-link .hexagon-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    fill: none;
    stroke-width: 3;
}
.side-hex-link .hex-bg-side {
    stroke: rgba(255, 255, 255, 0.2);
    fill: #18181B;
}
.side-hex-link .hex-progress-side {
    stroke: var(--c);
    stroke-dasharray: 230;
    stroke-dashoffset: 230;
    transition: stroke-dashoffset 0.6s ease-out;
}
.side-hex-link:hover .hex-progress-side {
    stroke-dashoffset: 0;
}
.side-hex-link img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    position: relative;
    z-index: 2;
}
.side-hex-link span {
    display: none; 
}

/* --- STYLY PRO VYSOUVACÍ PANEL --- */
#hero-area {
    height: 100vh;
    width: 100%;
    position: relative;
    transition: filter 1.2s ease-in-out;
}
body.panel-is-open #hero-area {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1;
}
body.panel-is-open #content-panel {
    z-index: 40;
}
#content-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(10, 10, 10, 0.5); 
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 40;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    overflow-y: auto;
    padding: 2rem;
    padding-top: 4rem;
}
.panel-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}
#hide-panel-arrow {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    color: white;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 45;
}
#hide-panel-arrow:hover {
    opacity: 1;
    transform: translateX(-50%) scale(1.1);
}

/* --- KARTY (ACHIEVEMENTS, PROJEKTY) --- */
.achievement-card {
  display: inline-flex;
  align-items: center;
  padding: 20px;
  border: 4px solid white;
  border-radius: 20px;
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.0);
  background-color: rgba(28, 28, 28, 0.5);
  max-width: 400px;
  margin-bottom: 40px;
  margin-right: 40px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.achievement-card:hover {
  transform: translateY(-6px) scale(1.1);
  box-shadow: 0 6px 16px rgba(255, 255, 255, 0.0);
  border-color: rgba(255, 255, 255, 1.0);
}
.achievement-card img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  object-position: center;
}
.project-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: rgba(28, 28, 28, 0.7);
  border-radius: 1rem;
}
.project-card:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 6px 16px rgba(0,0,0, 0.2);
}

/* --- HEADER --- */
.site-header { 
    transition: background-color .4s, color .4s; 
}
.site-header.invert {
  background-color: transparent; !important;
  color: transparent; !important;
}
.site-header.invert a { color: #000 !important; }
.site-header.invert a:hover { color: #555 !important; }


/* --- NOVÉ: BLBUVZDORNÝ DVOUFÁZOVÝ LOADER --- */

#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    pointer-events: none; /* Důležité, aby po zmizení nepřekážel */
}

/* Vrstva pro BLUR efekt */
#blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fadeOut 2.5s ease-out 0.9s forwards; /* Zmizí za 500ms s malým zpožděním */
}

/* Vrstva pro ČERNÝ efekt */
#black-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    animation: fadeOut 0.5s ease-out 0.1s forwards; /* Zmizí za 300ms */
}

/* Společná animace pro mizení */
@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}