.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--bg-color);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: space-between; 
  align-items: center;
  transform: translateY(-100%);
  transition: transform 0.4s ease;
  padding: 5rem 2rem 2rem;
  overflow-y: auto;
}
.mobile-menu.active {
  transform: translateY(0);
}
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  transition: all 0.3s ease;
}
.mobile-menu-close:hover {
  transform: rotate(90deg);
  background-color: var(--accent-color);
}
.dark-theme .mobile-menu-close {
  background-color: var(--accent-color);
  color: #fff;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
}
.mobile-menu-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
  width: 100%;
}
.mobile-menu-nav li {
  margin-bottom: 1.5rem;
}
.mobile-menu-nav .nav-link {
  font-size: 1.5rem;
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
  padding: 0.5rem 0;
}
.mobile-menu-nav .nav-link:hover {
  color: var(--primary-color);
}
.mobile-menu-theme-toggle {
  margin: 2rem 0;
  width: 100%;
  display: flex;
  justify-content: center;
}
.mobile-menu-content {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mobile-social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
  padding: 1.5rem 0;
  margin-top: auto; 
  border-top: 1px solid rgba(var(--text-color-rgb), 0.1);
}
.mobile-social-link {
  font-size: 1.5rem;
  color: var(--text-color);
  transition: color 0.3s ease, transform 0.3s ease;
  padding: 0.5rem;
}
.mobile-social-link:hover {
  color: var(--primary-color);
  transform: translateY(-3px);
}
.menu-btn {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 1000;
}
.menu-btn__lines {
  height: 2px;
  background-color: var(--text-color);
  position: absolute;
  width: 100%;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s ease;
}
.menu-btn__lines::before,
.menu-btn__lines::after {
  content: '';
  position: absolute;
  height: 2px;
  background-color: var(--text-color);
  width: 100%;
  left: 0;
  transition: all 0.3s ease;
}
.menu-btn__lines::before {
  top: -8px;
}
.menu-btn__lines::after {
  top: 8px;
}
.menu-btn.active .menu-btn__lines {
  background-color: transparent;
}
.menu-btn.active .menu-btn__lines::before {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-btn.active .menu-btn__lines::after {
  transform: rotate(-45deg) translate(5px, -5px);
}
@media screen and (max-width: 768px) {
  .menu-btn {
    display: block;
  }
  .nav-items {
    display: none;
  }
  .header-social-links {
    display: none;
  }
  .desktop-only {
    display: none !important;
  }
  body.no-scroll {
    overflow: hidden;
  }
}
