body {
  background-color: var(--bs-body-bg);
}

[data-bs-theme="dark"] body {
  background-color: var(--bs-body-bg);
}

.subheading {
  font-family: "Saira Extra Condensed", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-weight: 500;
  text-transform: uppercase;
}

#sideNav {
  box-shadow: 0 1rem 3rem rgba(33, 37, 41, 0.08);
}

#sideNav .nav-link {
  font-weight: 800;
  letter-spacing: 0.05rem;
  opacity: 0.82;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

#sideNav .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.14);
  color: #fff;
  opacity: 1;
}

#sideNav .nav-link.active {
  background-color: rgba(255, 255, 255, 0.22);
  color: #fff;
  opacity: 1;
  transform: translateX(0.2rem);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

#sideNav .navbar-toggler:focus {
  outline-color: #fbc66f;
}

.dev-icons iconify-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
}

.resume-section {
  max-width: 75rem;
}

.resume-section-content {
  box-shadow: 0 1rem 2.5rem rgba(52, 58, 64, 0.08) !important;
}

.resume-section-content > h2 {
  position: relative;
}

.resume-section-content > h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 4.25rem;
  height: 0.3rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(var(--bs-primary-rgb), 1), rgba(var(--bs-primary-rgb), 0.28));
}

.experience-item,
.skills-panel,
.contact-panel,
#sluzby .col-12 > div,
.project-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(var(--bs-emphasis-color-rgb), 0.08) !important;
}

.experience-item::before,
.skills-panel::before,
.contact-panel::before,
#sluzby .col-12 > div::before,
.project-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--bs-primary-rgb), 0.3), transparent 55%);
}

#projekty a {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

#projekty a:hover {
  transform: translateY(-0.2rem);
  border-color: rgba(var(--bs-primary-rgb), 0.35) !important;
  box-shadow: 0 1rem 2.25rem rgba(52, 58, 64, 0.1) !important;
}

.contact-panel {
  background: var(--bs-tertiary-bg);
}

.progress {
  height: 0.7rem;
  border-radius: 999px;
  background-color: rgba(108, 117, 125, 0.14);
  overflow: hidden;
}

.progress-bar {
  border-radius: 999px;
}

[data-bs-theme="dark"] .resume-section-content {
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.28) !important;
}

[data-bs-theme="dark"] #projekty a:hover {
  box-shadow: 0 1rem 2.25rem rgba(0, 0, 0, 0.28) !important;
}

[data-bs-theme="dark"] .experience-item,
[data-bs-theme="dark"] .skills-panel,
[data-bs-theme="dark"] .contact-panel,
[data-bs-theme="dark"] #sluzby .col-12 > div,
[data-bs-theme="dark"] .project-card {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-bs-theme="dark"] .progress {
  background-color: rgba(255, 255, 255, 0.12);
}

[data-bs-theme="dark"] .contact-panel {
  background: rgba(255, 255, 255, 0.03);
}

@media (min-width: 992px) {
  #sideNav {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    width: 17rem;
    height: 100vh;
    text-align: center;
  }

  #sideNav .navbar-brand {
    display: flex;
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  #sideNav .navbar-brand .img-profile {
    display: block;
    max-width: 9rem;
    max-height: 9rem;
    border: 0.5rem solid rgba(255, 255, 255, 0.22);
  }

  #sideNav .navbar-collapse {
    display: flex;
    align-items: flex-start;
    flex-grow: 1;
    width: 100%;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
  }

  #sideNav .navbar-nav {
    flex-direction: column;
  }

  #sideNav .nav-item,
  #sideNav .nav-link {
    display: block;
  }

  .layout-with-sidebar {
    width: calc(100% - 17rem);
    margin-left: 17rem;
    min-height: 100vh;
  }

  .footer-with-sidebar {
    width: calc(100% - 17rem);
    margin-left: 17rem;
  }

  body.admin-bar #sideNav {
    top: 32px;
    height: calc(100vh - 32px);
  }
}

@media (max-width: 991.98px) {
  #sideNav {
    box-shadow: none;
  }

  #sideNav .nav-link.active {
    transform: none;
  }

  .img-profile {
    border: 0.5rem solid rgba(73, 80, 87, 0.2);
  }

}

.letter-spacing-wide {
  letter-spacing: 0.15em;
}
