/* Adicionando regra de media query para dispositivos móveis */

.portfolio-header {
  background-color: #000;
  flex-direction: column;
  text-align: center;
  padding: 0;
}
.portfolio-.portfolio-header .nav-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
}
.portfolio-.portfolio-header .nav-menu div {
  text-align: center;
  padding: 0;
}
.portfolio-.portfolio-header .nav-menu div.change-theme {
  flex-basis: auto;
}
.portfolio-.portfolio-header .nav-menu div.change-theme label {
  margin: 0;
  flex: 0 0 auto; /* Manter o tamanho fixo */
  margin-left: auto; /* Fixar à direita */
}
.title {
  padding: 3rem 0;
  font-size: 2rem;
}

.project img {
  width: 100%;
}

.cols {
  grid-template-columns: repeat(1, 1fr);
}

.project {
  width: 80%;
  margin: 0 auto;
}

.change-theme {
  margin-right: 10px;
  margin-top: -30px;
}

.label {
  height: 8px;
  width: 30px;
  transform: scale(1.2);
}

.label .ball {
  height: 12px;
  width: 12px;
}
.change-theme {
  float: right;
  margin-right: 30px;
  margin-top: -40px;
}
.checkbox {
  opacity: 0;
  position: absolute;
}

.label {
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px;
  position: relative;
  height: 10px;
  width: 40px;
  transform: scale(1.5);
}

.label .ball {
  background-color: #fff;
  border-radius: 50%;
  position: absolute;
  top: 1px;
  left: 2px;
  height: 18px;
  width: 18px;
  transform: translateX(0px);
  transition: transform 0.3s linear;
}

.checkbox:checked + .label .ball {
  transform: translateX(28px);
}

.fa-moon {
  color: #ffffff;
}
.fa-sun {
  color: #ffffff;
  opacity: 0;
  transition: 1s;
}
.a {
  padding-left: 2rem;
  padding-right: 2rem;
}

.project img {
  width: 18 rem;
}

/* Footer Mobile Styles para Projects */
footer {
  padding: 2rem 0 1rem 0;
}

.footer-content {
  padding: 0 1rem;
}

.footer-main {
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: center;
}

.footer-section {
  text-align: center;
}

.contact-item {
  justify-content: center;
  margin-bottom: 1rem;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-info {
  align-items: center;
  text-align: center;
}

.social-links {
  justify-content: center;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.social-link {
  padding: 0.6rem 1rem;
  width: 180px;
  justify-content: center;
}

.social-link img {
  width: 20px;
  height: 20px;
}

.contact-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 0.5rem auto;
}

.contact-icon img {
  width: 20px;
  height: 20px;
}

footer h3 {
  font-size: 1.3rem;
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.5;
}
