:root {
  --color-bg: #181818;
  --color-text: #fafafa;
  --color-accent: #fff;
  --color-secondary: #232323;
  --color-border: #fff;
  --color-btn: #fff;
  --color-btn-text: #181818;
  --shadow: 0 4px 20px rgba(0,0,0,0.09);
  --transition: 0.3s;
}
:root.light {
  --color-bg: #f6f8fa;
  --color-text: #23272f;
  --color-accent: #666;
  --color-secondary: #fff;
  --color-border: #bdbdbd;
  --color-btn: #666;
  --color-btn-text: #fff;
}

body, html {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  transition: background var(--transition), color var(--transition);
  min-height: 100vh;
  overflow-x: hidden;
}
.container {
  width: 92%;
  max-width: 1150px;
  margin: 0 auto;
}

/* --- HEADER, NAVIGATION --- */
header.navbar-transparent {
  position: fixed;
  top: 0; left: 0; width: 100vw;
  z-index: 100;
  background: rgba(24,24,24,0.2);
  box-shadow: none;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
  padding-top: 0.6em;
  padding-bottom: 0.6em;
  backdrop-filter: none;
}
:root.light header.navbar-transparent {
  background: rgba(255,255,255,0.85);
  box-shadow: 0 4px 24px #8882;
  backdrop-filter: blur(16px);
}
header.navbar-sticky {
  background: rgba(24,24,24,0.97) !important;
  box-shadow: 0 6px 24px #0003;
  padding-top: 0.2em;
  padding-bottom: 0.2em;
  backdrop-filter: blur(16px);
}
:root.light header.navbar-sticky {
  background: rgba(255,255,255,0.97) !important;
  box-shadow: 0 6px 24px #8883;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 70px;
  background: transparent;
}
.logo {
  font-weight: 800;
  font-size: 2.2rem;
  margin: 0;
  color: var(--color-accent);
  letter-spacing: 1.5px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.logo-wrap {
  display: flex; align-items: center; gap: 0.7em;
}
.nav {
  list-style: none;
  display: flex;
  gap: 2em;
  align-items: center;
  margin: 0;
  padding: 0;
  background: transparent;
}
.nav a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.08rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
  padding: 0.45em 0.9em;
  border-radius: 30px;
  white-space: nowrap;
}
.nav a:hover {
  background: var(--color-accent);
  color: var(--color-bg);
}
:root.light .nav a {
  color: var(--color-accent);
}
:root.light .nav a:hover {
  background: var(--color-accent);
  color: #fff;
}
#themeToggle, .lang-btn {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
  border-radius: 32px;
  font-size: 1.1em;
  font-weight: 700;
  padding: 0.28em 1.25em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border 0.2s;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
#themeToggle:hover, .lang-btn:hover {
  background: var(--color-accent);
  color: var(--color-bg);
  border: 2px solid var(--color-accent);
}
:root.light #themeToggle, :root.light .lang-btn {
  border: 2px solid var(--color-accent);
  background: rgba(255,255,255,0.8);
  color: var(--color-accent);
}
:root.light #themeToggle:hover, :root.light .lang-btn:hover {
  background: var(--color-accent);
  color: #fff;
}

/* --- HAMBURGER MENU --- */
.hamburger {
  display: none;
}
@media (max-width: 700px) {
  .nav {
    display: none;
  }
  .nav.mobile-visible {
    display: flex;
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(24,24,24,0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2em;
    z-index: 999;
  }
  :root.light .nav.mobile-visible {
    background: rgba(255,255,255,0.97);
  }
  .hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: transparent;
    border: none;
    font-size: 2em;
    color: var(--color-accent);
    cursor: pointer;
    z-index: 1001;
    margin-left: 1em;
  }
}

/* --- HERO sekce: profilovka vedle textu, na mobilu skrytá, větší text --- */
.hero-fullscreen-only {
  width: 100vw;
  min-height: 100vh;
  height: 100svh;
  background: linear-gradient(125deg, #181e27 60%, #fff1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 0;
  transition: background 0.3s;
}
:root.light .hero-fullscreen-only {
  background: linear-gradient(120deg, #e8f1fa 40%, #eee 100%);
}
.hero-full-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5vw;
  min-height: 100vh;
  width: 100vw;
  z-index: 2;
}
.container.hero-full-content {
  width: 92%;
  max-width: 1150px;
  margin: 0 auto;
}
.hero-texts {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 270px;
  max-width: 680px;
}
.hero-texts h2 {
  font-size: 3.1rem;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 0.3em;
  letter-spacing: 0.2px;
  transition: color 0.3s;
}
.hero-texts p {
  font-size: 1.4rem;
  margin-bottom: 2.1em;
  color: var(--color-text);
  font-weight: 400;
  transition: color 0.3s;
}
.hero-cta-btn:hover {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}
:root.light .hero-cta-btn {
  background: var(--color-btn);
  color: #fff;
  border: 2px solid var(--color-btn);
}
:root.light .hero-cta-btn:hover {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}
.hero-avatar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-avatar img {
  border-radius: 50%;
  width: 180px;
  height: 180px;
  object-fit: cover;
  border: 5px solid var(--color-accent);
  box-shadow: 0 6px 32px #fff2;
}
@media (max-width: 700px) {
  .hero-avatar {
    display: none !important;
  }
  .hero-full-content {
    flex-direction: column;
    gap: 0.7em;
    padding-top: 4em;
    align-items: center;
    justify-content: center;
  }
  .hero-texts h2 {
    font-size: 2.5em !important;
    line-height: 1.2;
  }
  .hero-texts p {
    font-size: 1.28em !important;
    line-height: 1.45;
    margin-bottom: 2em;
  }
}
.hero-cta-btn {
  background: var(--color-btn);
  color: var(--color-btn-text);
  border-radius: 32px;
  padding: 0.7em 2.3em;
  border: 2px solid var(--color-btn);
  font-weight: 700;
  font-size: 1.18em;
  letter-spacing: 1px;
  box-shadow: 0 4px 16px #fff4;
  text-decoration: none;
  transition: background 0.23s, color 0.23s, box-shadow 0.23s, border-color 0.23s;
  display: inline-block;
  margin-top: 0.6em;
}
.hero-cta-btn:hover {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}
:root.light .hero-cta-btn {
  background: var(--color-btn);
  color: #fff;
  border: 2px solid var(--color-btn);
}
:root.light .hero-cta-btn:hover {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}
.hero-avatar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-avatar img {
  border-radius: 50%;
  width: 180px;
  height: 180px;
  object-fit: cover;
  border: 5px solid var(--color-accent);
  box-shadow: 0 6px 32px #fff2;
}

/* RESPONSIVITA hero sekce */
@media (max-width: 700px) {
  .hero-full-content {
    flex-direction: column-reverse;
    gap: 1.6em;
    padding-top: 4em;
  }
  .hero-avatar img {
    width: 110px;
    height: 110px;
  }
  .hero-texts {
    align-items: center;
    text-align: center;
    max-width: 100vw;
  }
  .hero-texts h2 {
    font-size: 1.5em;
  }
  .hero-texts p {
    font-size: 1em;
  }
}

/* --- O MNĚ (about) --- */
.about-section-inspire {
  background: var(--color-bg);
  padding: 4em 0 2.5em 0;
  border-bottom: 1.5px solid var(--color-border);
  text-align: center;
}
.about-inspire-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.about-inspire-left {
  max-width: 650px;
  margin: 0 auto;
  text-align: center;
}
.section-title {
  color: var(--color-accent);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 1.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1em;
}
.section-title::after { content: ''; display: none; }
.about-inspire-heading {
  font-size: 2em;
  font-weight: 800;
  margin-bottom: 1.2em;
  color: var(--color-text);
}
.about-inspire-text p {
  color: var(--color-text);
  font-size: 1.08em;
  margin-bottom: 1em;
  line-height: 1.65;
  font-weight: 400;
}

/* --- PROJECTS CAROUSEL + MODAL --- */
.projects-section-pretty {
  background: var(--color-secondary);
  padding: 4em 0 3em 0;
  transition: background 0.3s;
  text-align: center;
}
:root.light .projects-section-pretty {
  background: #f7fbff;
}
.projects-section-pretty h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 2em;
}
.projects-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  gap: 1em;
  margin-bottom: 1.6em;
  flex-wrap: nowrap;
}
.projects-carousel-inner {
  display: flex;
  gap: 2.7em;
  width: 100%;
  justify-content: flex-start;
  align-items: stretch;
  min-height: 390px;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(.4,1.05,.49,.98);
}
.project-card {
  background: #181818;
  border-radius: 28px;
  box-shadow: 0 6px 28px #0003;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1.5px solid transparent;
  text-align: left;
  min-width: 340px;
  max-width: 400px;
  flex: 0 0 32%;
  margin: 0 0.6em 0 0.6em;
  transition: none;
  cursor: default;
}
:root.light .project-card {
  background: #fff;
  box-shadow: 0 8px 32px #8881;
}
.project-card-divider {
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #fff 0%, #ccc 100%);
  border: none;
  margin: 0.8em 0 0.8em 0;
  box-shadow: 0 2px 8px #0001;
  border-radius: 2px;
  display: block;
}
.project-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  background: #222;
  border-bottom: none;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 2px 18px #1112;
}
:root.light .project-card img {
  background: #eee;
  border-bottom: none;
}
.project-card-body {
  padding: 1.6em 1.5em 1.1em 1.5em;
  display: flex;
  flex-direction: column;
  flex: 1;
  border-radius: 0 0 28px 28px;
}
.project-card-body h3 {
  margin: 0 0 0.7em 0;
  font-size: 1.30em;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.2px;
}
.project-card-body p {
  font-size: 1.09em;
  margin-bottom: 1.4em;
  color: #e0e0e0;
  transition: color 0.3s;
  font-weight: 400;
  line-height: 1.45;
}
:root.light .project-card-body p {
  color: #333;
}
.project-links {
  margin-top: auto;
  display: flex;
  gap: 1em;
}
.project-links a {
  background: var(--color-accent);
  color: var(--color-bg);
  padding: 0.48em 1.7em;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.22s, color 0.22s;
  font-size: 1.1em;
  box-shadow: 0 2px 18px #fff3;
  display: flex;
  align-items: center;
  gap: 0.55em;
  letter-spacing: 0.2px;
}
.project-links a i {
  font-size: 1.18em;
  margin-right: 0.2em;
}
.project-links a:hover {
  background: var(--color-bg);
  color: var(--color-accent);
}
:root.light .project-links a {
  background: var(--color-accent);
  color: #fff;
}
:root.light .project-links a:hover {
  background: #fff;
  color: var(--color-accent);
}
.carousel-arrow {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  border-radius: 50%;
  transition: opacity 0.18s, background 0.18s;
  box-shadow: none;
}
.carousel-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}
.circle-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: var(--color-bg);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.43em;
  transition: background 0.2s, color 0.2s;
}
.carousel-arrow:not(:disabled):hover .circle-arrow {
  background: var(--color-bg);
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.75em;
  margin-top: 0.6em;
}
.carousel-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #bdbdbd;
  display: inline-block;
  cursor: pointer;
  transition: background 0.2s;
}
.carousel-dot.active {
  background: var(--color-accent);
}

/* RESPONSIVE - jeden projekt na mobilu + zaoblení */
@media (max-width: 700px) {
  .projects-carousel-inner {
    gap: 0.3em;
    min-height: 0;
    touch-action: pan-x;
    will-change: transform;
  }
  .project-card {
    border-radius: 22px !important;
    min-width: 95vw;
    max-width: 99vw;
    margin: 0 0.18em;
    flex: 0 0 100vw;
    box-shadow: 0 4px 18px #0002 !important;
  }
  .project-card img {
    border-radius: 22px 22px 0 0 !important;
    box-shadow: none !important;
    border-bottom: none !important;
  }
  .project-card-body {
    border-radius: 0 0 22px 22px !important;
    padding: 1.1em 0.7em 1em 0.7em !important;
  }
  .project-links a {
    border-radius: 30px !important;
    font-size: 1.08em !important;
    padding: 0.42em 1.15em !important;
    box-shadow: 0 2px 10px #0002 !important;
  }
  .project-card-divider {
    border-radius: 2px !important;
  }
  .carousel-dots {
    margin-bottom: 0.6em;
  }
}

/* --- MODALY --- */
.project-modal {
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.60);
  display: none;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
}
.project-modal.open {
  display: flex;
  animation: fadeInModal 0.18s;
}
@keyframes fadeInModal {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.modal-content {
  background: #191b1f;
  color: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 60px #fff5;
  padding: 2.2em 2em 1.2em 2em;
  max-width: 480px;
  width: 96vw;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  animation: modalUp 0.15s;
}
@keyframes modalUp {
  0% { transform: translateY(50px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.modal-content h2 {
  color: var(--color-accent);
  margin-top: 0;
  font-size: 1.47em;
  font-weight: 800;
  margin-bottom: 1em;
}
.modal-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2em;
  position: absolute;
  top: 16px; right: 16px;
  cursor: pointer;
  z-index: 2;
  padding: 0.08em 0.25em;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}
.modal-close:hover {
  background: #fff;
  color: var(--color-accent);
}
.modal-body {
  margin-bottom: 0.5em;
}
.modal-video {
  margin: 1.1em 0 1.2em 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.modal-video iframe, .modal-video img {
  width: 100%;
  min-height: 180px;
  max-height: 280px;
  border-radius: 10px;
  background: #000;
  border: none;
}
.project-modal .project-links {
  gap: 1em;
  margin-top: 1.2em;
  justify-content: center;
}
.project-modal .project-links a {
  font-size: 1.09em;
  padding: 0.5em 1.3em;
  border-radius: 50px;
  background: var(--color-accent);
  color: var(--color-bg);
  transition: background 0.18s, color 0.18s;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  margin-bottom: 0.25em;
}
.project-modal .project-links a i {
  margin-right: 0.13em;
  font-size: 1.07em;
}
.project-modal .project-links a:hover {
  background: var(--color-bg);
  color: var(--color-accent);
}
:root.light .project-modal .modal-content {
  background: #fff;
  color: #23272f;
}
:root.light .project-modal .modal-close {
  color: #23272f;
}
:root.light .project-modal .modal-close:hover {
  background: var(--color-accent);
  color: #fff;
}
:root.light .project-modal .project-links a {
  background: var(--color-accent);
  color: #fff;
}
:root.light .project-modal .project-links a:hover {
  background: #fff;
  color: var(--color-accent);
}
body.modal-open {
  overflow: hidden;
}

.modal-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em;
  margin: 0.8em 0 1.2em 0;
  justify-content: flex-start;
}
.tech-chip {
  background: var(--color-bg);
  color: var(--color-accent);
  font-size: 0.97em;
  padding: 0.36em 1.08em;
  border-radius: 18px;
  font-weight: 600;
  letter-spacing: 0.2px;
  box-shadow: 0 2px 8px #0001;
  display: flex;
  align-items: center;
  gap: 0.4em;
  border: 1.5px solid var(--color-border);
  transition: background 0.18s, color 0.18s, border 0.18s;
}
:root.light .tech-chip {
  background: #f7f7fa;
  color: #666;
  border: 1.5px solid #bdbdbd;
}
.tech-chip i, .tech-chip img {
  font-size: 1.16em;
  min-width: 1.16em;
  min-height: 1.16em;
  display: flex;
  align-items: center;
  justify-content: center;
  vertical-align: -0.2em;
}

/* --- DOVEDNOSTI --- */
.skills-section-pretty {
  background: var(--color-bg);
  padding: 4em 0 3em 0;
  transition: background 0.3s;
  text-align: center;
}
:root.light .skills-section-pretty {
  background: #f6f8fa;
}
.skills-section-pretty h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 2em;
}
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5em;
  max-width: 800px;
  margin: 0 auto;
  justify-content: center;
  align-items: center;
}
.skill-item {
  background: #111;
  border-radius: 17px;
  box-shadow: 0 1px 9px #0003;
  padding: 1.4em 0.6em;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 120px;
  transition: transform 0.18s, box-shadow 0.18s, background 0.3s;
  margin: 0;
}
:root.light .skill-item {
  background: #fff;
  box-shadow: 0 2px 10px #8881;
}
.skill-item:hover {
  transform: scale(1.07);
  box-shadow: 0 4px 20px #8882;
}
.skill-item img, .skill-faicon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  margin-bottom: 0.7em;
  color: var(--color-accent);
  display: block;
}
.skill-item span {
  font-size: 1.05em;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.4px;
}

/* --- KONTAKT --- */
.contact-section-pretty {
  background: var(--color-secondary);
  padding: 4em 0 3em 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  text-align: center;
}
:root.light .contact-section-pretty {
  background: #e8f1fa;
}
.contact-card {
  background: #181818;
  border-radius: 20px;
  box-shadow: 0 2px 24px #fff2;
  max-width: 420px;
  margin: 0 auto;
  padding: 2.1em 2.2em 1.7em 2.2em;
  text-align: center;
  border: 1.5px solid var(--color-accent);
  transition: background 0.3s, color 0.3s;
}
:root.light .contact-card {
  background: #fff;
  color: #23272f;
  box-shadow: 0 2px 18px #8881;
}
.contact-card h2 {
  font-size: 1.6em;
  margin-bottom: 0.6em;
  color: var(--color-accent);
}
.contact-card p {
  color: #e0e0e0;
  font-size: 1.1em;
  margin-bottom: 1.2em;
  transition: color 0.3s;
}
:root.light .contact-card p {
  color: #23272f;
}
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.65em;
  align-items: center;
}
.contact-links a {
  background: var(--color-btn);
  color: var(--color-btn-text);
  border-radius: 30px;
  padding: 0.7em 1.5em;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.07em;
  box-shadow: 0 2px 12px #8882;
  display: flex;
  align-items: center;
  gap: 0.8em;
  border: 1.5px solid var(--color-border);
  transition: background 0.22s, color 0.22s, border 0.22s;
}
.contact-links a i, .contact-links a img {
  font-size: 1.22em;
  width: 1.2em;
  height: 1.2em;
}
.contact-links a:hover, .contact-links a:focus {
  background: transparent;
  color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
}

/* --- FOOTER --- */
/* ...původní styly... */

/* --- FOOTER --- */
.footer {
  background: #181818;
  color: #fff;
  text-align: center;
  padding: 1.3em 0 1em 0;
  font-size: 1rem;
  margin-top: 2em;
  position: relative;
  width: 100vw;
  box-sizing: border-box;
}

.footer-divider {
  border: none;
  height: 2.5px;
  width: 60px;
  background: var(--color-accent);
  border-radius: 2px;
  box-shadow: 0 2px 8px #8882;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0.5em;
  margin-bottom: 1.5em;
}
.footer-github-link i {
  font-size: 1.16em;
}
.footer-github-link {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.32em;
  margin: 0 0.3em;
  transition: color 0.2s;
}
.footer-github-link:hover {
  color: #bdbdbd;
  text-decoration: underline;
}

:root.light .footer {
  background: #e6f0fa;
  color: #23272f;
}

:root.light .footer-divider {
  background: #2952a3; /* například modrá z palety, nebo jiný accent */
  box-shadow: 0 2px 8px #2952a322; /* jemný modrý stín */
}

:root.light .footer-github-link {
  color: #2952a3; /* accent barva v light theme */
}
:root.light .footer-github-link:hover {
  color: #23272f;
  text-decoration: underline;
}

@media (max-width: 700px) {
  .footer {
    padding: 1em 0 0.7em 0;
    font-size: 0.91rem;
    text-align: center;
    width: 100vw;
  }
  .footer-divider {
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 1em;
    margin-bottom: 1em;
    display: block;
  }
}



/* --- HAMBURGER MENU --- */
.hamburger {
  display: none;
  background: transparent;
  border: none;
  padding: 0;
  font-size: 2.1em;
  color: var(--color-accent);
  cursor: pointer;
  z-index: 1002;
  transition: color 0.2s;
}
.hamburger.active {
  color: var(--color-btn);
}
@media (max-width: 700px) {
  .nav {
    display: none;
  }
  .nav.mobile-visible {
    display: flex;
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(24,24,24,0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.2em;
    z-index: 999;
    animation: fadein 0.25s;
  }
  :root.light .nav.mobile-visible {
    background: rgba(255,255,255,0.97);
  }
  .hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-left: 1em;
  }
  @keyframes fadein {
    from { opacity: 0;}
    to { opacity: 1;}
  }
}

/* --- PROJECTS CAROUSEL --- */
.projects-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  /* Šipky jsou zarovnané vedle karet */
}
.projects-carousel-inner {
  display: flex;
  gap: 2.7em; /* mezera mezi kartami, uprav podle vkusu */
  justify-content: center; /* vycentruje 3 karty na střed stránky */
  align-items: stretch;
  width: auto; /* nebo 100%, podle rodiče */
  min-height: 390px;
  overflow: visible; /* NE hidden, ať nejsou karty useknuté */
  transition: transform 0.35s cubic-bezier(.4,1.05,.49,.98);
  box-sizing: border-box;
}
.project-card {
  flex: 0 0 340px;
  min-width: 290px;
  max-width: 360px;
  margin: 0 0.5em 0 0.5em;
  transition: opacity 0.2s;
}
@media (max-width: 900px) {
  .project-card { min-width: 170px; }
}
@media (max-width: 700px) {
  .project-card {
    min-width: 95vw;
    max-width: 99vw;
    margin: 0 0.18em;
  }
  .project-card-divider {
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #fff 0%, #ccc 100%);
  border: none;
  margin: 0.8em 0 0.8em 0;
  box-shadow: 0 2px 8px #0001;
  border-radius: 2px;
  display: block;
}
@media (max-width: 700px) {
  .projects-carousel-inner {
    justify-content: center;
    gap: 0;
    min-height: 320px;
  }
  .project-card {
    flex: 0 0 95vw;
    max-width: 95vw;
    min-width: 95vw;
    border-radius: 28px; /* stejný rádius jako na PC */
    margin: 0 auto;
    box-shadow: 0 6px 28px #0003;
  }
}
}

/* --- Šipky carouselu --- */
.carousel-arrow {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  border-radius: 50%;
  transition: opacity 0.18s, background 0.18s;
  box-shadow: none;
}
.carousel-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}
@media (max-width: 700px) {
  .carousel-arrow {
    display: none !important;
  }
}

/* --- CAROUSEL DOTS --- */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.75em;
  margin-top: 0.6em;
}
.carousel-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #bdbdbd;
  display: inline-block;
  cursor: pointer;
  transition: background 0.2s;
}
.carousel-dot.active {
  background: var(--color-accent);
}

/* --- SCROLL TO TOP BUTTON --- */
#scrollToTopBtn {
  position: fixed;
  bottom: 30px; right: 30px; z-index: 100;
  background-color: #fff;
  border: none;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  display: none; /* Skrytý při načtení */
  transition: opacity 0.3s ease;
  box-shadow: 0 4px 20px #8883;
  width: 48px; height: 48px;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
}
#scrollToTopBtn.visible {
  display: flex !important;
  opacity: 1;
  pointer-events: auto;
}
#scrollToTopBtn:hover {
  background-color: #bdbdbd;
}
#scrollToTopBtn .circle-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #191b1f !important;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.5em;
}
#scrollToTopBtn .fa-arrow-up {
  color: #191b1f !important;
  font-size: 1.3em;
  filter: drop-shadow(0 1px 8px #fff) drop-shadow(0 0 2px #fff);
}
:root.light #scrollToTopBtn {
  background: #fafafa;
}
:root.light #scrollToTopBtn .fa-arrow-up {
  color: #232323 !important;
  filter: none;
}
:root.light #scrollToTopBtn .circle-arrow {
  background: #fff;
  border: 1.5px solid #bdbdbd;
}

/* --- RESPONSIVE --- */
@media (max-width: 1150px) {
  .projects-carousel-inner { gap: 1em; }
  .project-card { min-width: 210px; }
}
@media (max-width: 950px) {
  .hero-full-content { flex-direction: column-reverse; align-items: center; gap: 2em; padding: 3em 0 2em 0; min-height: 100vh;}
  .hero-avatar img { margin-bottom: 2em;}
}
@media (max-width: 900px) {
  .projects-carousel-inner { gap: 0.7em; }
  .project-card { min-width: 170px; }
}
@media (max-width: 700px) {
  .hero-full-content { flex-direction: column-reverse; gap: 1.5em; }
  .hero-texts h2 { font-size: 2rem;}
  .nav { gap: 0.6em;}
  .logo { font-size: 1.5rem;}
  .hero-avatar img { width: 95px; height: 95px;}
  .projects-carousel-inner { gap: 0.3em;}
  .project-card { min-width: 95vw; max-width: 99vw;}
  .about-inspire-right, .about-profile-img, .about-avatar, .about-inspire-img {
    display: none !important;
  }
  .about-inspire-heading { font-size: 1.15em; }
  .about-inspire-text { font-size: 1em; }
  .skills-grid { flex-direction: column; gap: 0.8em; }
  .skill-item { font-size: 0.98em; }
  .skill-item i, .skill-item img { font-size: 1.5em !important; }
  .contact-card { padding: 1.5em 0.5em !important; font-size: 1em !important; }
  .footer-content { font-size: 0.95em; text-align: center; }
  .footer-divider { margin: 1em 0; }
  h2.section-title, h2 { font-size: 1.3em !important; }
  h3 { font-size: 1.08em !important; }
  .hero-cta-btn { font-size: 1em !important; padding: 0.7em 1.5em !important; }
  .project-links a, .contact-links a { font-size: 1em !important; padding: 0.32em 1em !important; }
}
/* --- ÚPRAVA PRO ŠTÍTKY DOVEDNOSTÍ --- */

/* Kontejner pro nové informace (štítek + roky) */
.skill-info {
  margin-top: 10px; /* Odsazení od názvu dovednosti */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px; /* Mezera mezi štítkem a roky */
}

/* Samotný štítek (Začátečník, Pokročilý...) */
.skill-level {
  padding: 4px 12px;
  border-radius: 12px; /* Dělá z toho "pilulku" */
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Text s roky (3 roky, 2 roky...) */
.skill-duration {
  font-size: 0.85rem;
  opacity: 0.7; /* Lehce průhledný */
  font-style: italic;
}


/* --- BARVY PRO JEDNOTLIVÉ ÚROVNĚ --- */

/* Zelená pro pokročilé */
.skill-level.advanced {
  background-color: #27ae60; 
}

/* Modrá pro středně zkušené */
.skill-level.intermediate {
  background-color: #2980b9; 
}

/* Oranžová pro začátečníky */
.skill-level.beginner {
  background-color: #f39c12;
}