body {
  padding-top: 70px;
}

body.dark-mode {
  background-color: #0d1117;
  color: #f5f5f5;
}

body.dark-mode .navbar {
  background-color: #1e1e1e !important;
}

body.dark-mode h2,
body.dark-mode h3,
body.dark-mode ul,
body.dark-mode li,
body.dark-mode span,
body.dark-mode p {
  color: #f5f5f5 !important;
}

body.dark-mode .badge {
  background-color: #333 !important;
  color: #f5f5f5 !important;
}

body.dark-mode .navbar img {
  filter: brightness(0) invert(1);
}

body.dark-mode .navbar-toggler {
  border-color: #f5f5f5;
}

body.dark-mode .navbar-light .navbar-toggler-icon {
  filter: invert(1) grayscale(100%) brightness(200%);
}

body.dark-mode .brands img[title="github"],
body.dark-mode .brands img[title="git"] {
  filter: brightness(0) invert(1);
}

body.dark-mode .nav-link {
  color: #f5f5f5;
}

body.dark-mode .project-card-no-image {
  box-shadow: 0 2px 8px #444;
}

.brands-container {
  margin-bottom: 50px;
}

.brands {
  color: #313437;
}

.brands a {
  display: block;
  text-align: center;
}

.brands a img {
  display: inline-block;
  margin: 10px 20px;
  vertical-align: middle;
}

.footer-basic {
  flex-shrink: 0;
  margin-bottom: 20px;
  padding: 10px 0px;
}

.footer-basic ul {
  padding: 0;
  list-style: none;
  text-align: center;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 0;
}

.footer-basic li {
  padding: 0 10px;
}

.footer-basic ul a {
  color: #313437;
  text-decoration: none;
  opacity: 0.8;
}

.footer-basic ul a:hover {
  opacity: 1;
}

.footer-basic .social {
  text-align: center;
  padding-bottom: 25px;
}

.footer-basic .social > a {
  font-size: 24px;
  width: 40px;
  height: 40px;
  line-height: 40px;
  display: inline-block;
  text-align: center;
  border-radius: 50%;
  border: 1px solid #aaa;
  margin: 0 8px;
  color: inherit;
  opacity: 0.75;
}

.footer-basic .social > a:hover {
  opacity: 0.9;
  color: black;
}

.footer-basic .copyright {
  margin-top: 15px;
  text-align: center;
  font-size: 13px;
  margin-bottom: 0;
}

.nav-link.active {
  font-weight: 800;
}

.avatar {
  border-radius: 50%;
  max-width: 150px;
}

.intro-text {
  font-size: 1.3em;
  font-weight: 300;
  max-width: 800px;
}

.text-justify {
  text-align: justify !important;
  text-justify: inter-word;
}

.portfolio-block.block-intro p {
  margin-bottom: 30px;
  margin-top: 0;
}

.section-divider {
  border: 0;
  height: 1px;
  background: #dee2e6;
  margin: 2rem 0;
}

@media (max-width: 767px) {
  .brands a {
    padding: 30px 0;
  }
}

@media (max-width: 767.98px) {
  .mobile-sidebar {
    position: fixed !important;
    top: 0;
    right: -240px;
    height: 100vh;
    width: 200px;
    background: #fff;
    box-shadow: -2px 0 6px rgba(0, 0, 0, 0.25);
    transition: right 0.1s ease-in-out;
    padding: 4rem 1rem 1rem;
    z-index: 1050;
  }

  .mobile-sidebar.show {
    right: 0 !important;
  }

  .mobile-sidebar .navbar-nav {
    flex-direction: column;
    gap: 0.75rem;
  }

  .mobile-sidebar .close-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
  }

  .mobile-sidebar .close-btn:hover {
    color: #000;
  }
}

body.dark-mode .mobile-sidebar {
  background: #1e1e1e;
  color: #f0f0f0;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .mobile-sidebar .nav-link {
  color: #ddd !important;
}

body.dark-mode .mobile-sidebar .nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
}

body.dark-mode .mobile-sidebar .close-btn {
  color: #f5f5f5;
}
