@import url(./projects.css);

* {
  padding: 0;
  box-sizing: border-box;
}

/* Garantir que nenhum elemento ultrapasse a tela */
.portfolio-body,
html {
  width: 100%;
  overflow-x: hidden;
}

.portfolio-header {
  background-color: #000;
  text-align: center;
  padding: 0.75rem 0.5rem;
  width: 100%;
  box-sizing: border-box;
}

.portfolio-.portfolio-header .nav-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
  gap: 0.75rem;
}

.portfolio-.portfolio-header .nav-menu div {
  text-align: center;
  padding: 0;
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: center;
}

.portfolio-.portfolio-header .nav-menu div:first-child {
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.portfolio-.portfolio-header .nav-menu div.change-theme {
  justify-content: center;
  width: auto;
}

.portfolio-.portfolio-header .nav-menu div.change-theme label {
  margin: 0;
  flex: 0 0 auto;
}

/* Estilos específicos para links do header no mobile */
.portfolio-.portfolio-header .nav-link {
  color: white;
  text-decoration: none;
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}

.portfolio-.portfolio-header .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.portfolio-.portfolio-header .nav-item {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Linha separadora */
.portfolio-.portfolio-header hr {
  border: none;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  margin: 0.5rem 0 0 0;
}

#photo {
  width: 100%;
  height: auto;
  padding-right: 0;
}

.icons-favicon img {
  margin-top: -25px;
}
.infos {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}
#text-message {
  margin-right: 0;
}
.skills {
  text-align: center;
  background-color: #c1c1c1;
  display: flex;
  flex-wrap: wrap;
  padding: 2rem 1rem 3rem 1rem;
  border-radius: 16px;
  margin: 1rem;
}

.skills h1 {
  font-size: 2rem;
  margin: 1rem 0 1.5rem 0;
  width: 100%;
}

.skill-image {
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
  display: grid;
  width: 100%;
  padding: 1rem 0.75rem;
  justify-items: center;
}

.skills #code_icon {
  color: #fff;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  width: 140px;
  height: 140px;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 1rem;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.skills #code_icon:active {
  transform: scale(0.95);
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.15) 0%,
    rgba(147, 197, 253, 0.1) 100%
  );
}

.skills img {
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.5rem;
  filter: brightness(1.1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  transition: all 0.3s ease;
}

.skills p {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
  text-align: center;
}

/* Para telas muito pequenas */
@media screen and (max-width: 360px) {
  .skill-image {
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    padding: 0.8rem 0.5rem;
  }

  .skills #code_icon {
    width: 120px;
    height: 120px;
    padding: 0.8rem;
  }

  .skills img {
    width: 2.5rem;
    height: 2.5rem;
  }

  .skills p {
    font-size: 0.8rem;
  }
}
.about {
  display: flex;
  padding: 2rem;
  flex-direction: column;
}

.about img {
  max-width: 100%;
  margin-bottom: 1rem;
}

.about h1 {
  font-size: 2rem;
  margin: 0.75rem 0;
}

.about p {
  font-size: 1rem;
  text-align: justify;
  margin: 0.5rem 0;
  text-align: center;
}

/* Toggle de tema no header - posicionamento integrado */
.change-theme {
  /* Removendo float e margin negativos para integrar melhor no header */
  position: relative;
  margin: 0;
}
.checkbox {
  opacity: 0;
  position: absolute;
}

.label {
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px;
  position: relative;
  height: 20px;
  width: 45px;
  transform: scale(1.2); /* Reduzindo um pouco o tamanho */
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.label .ball {
  background-color: #fff;
  border-radius: 50%;
  position: absolute;
  top: 1px;
  left: 2px;
  height: 16px;
  width: 16px;
  transform: translateX(0px);
  transition: transform 0.3s linear;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.checkbox:checked + .label .ball {
  transform: translateX(22px); /* Ajustando para o novo tamanho */
}

.fa-moon {
  color: #ffffff;
}
.fa-sun {
  color: #ffffff;
  opacity: 0;
  transition: 1s;
}

/* Footer Mobile Styles */
footer {
  padding: 1rem 0 0.75rem 0;
}

.footer-content {
  padding: 0 0.5rem;
  text-align: center;
}

.footer-main {
  grid-template-columns: 1fr;
  gap: 1rem;
  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.6rem;
}

.social-link {
  padding: 0.65rem 1rem;
  width: 100%;
  max-width: 320px;
  justify-content: center;
  border-radius: 10px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.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;
  margin-bottom: 0.6rem;
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.5;
}

.texts h2::after {
  content: "";
  position: absolute;
  bottom: -12px; /* Mais espaço para respiro */
  left: 50%; /* Centralizar horizontalmente */
  transform: translateX(-50%); /* Ajustar para o centro exato */
  width: 120px; /* Linha mais longa para destaque */
  height: 6px; /* Mais espessa */
  background: linear-gradient(
    90deg,
    var(--space-blue-deep) 0%,
    var(--space-blue-medium) 100%
  );
  border-radius: 3px;
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
}

/* Media query para dispositivos muito pequenos */
@media screen and (max-width: 360px) {
  header {
    padding: 0.5rem 0.25rem;
  }

  .portfolio-header .nav-menu div:first-child {
    gap: 0.25rem;
  }

  .portfolio-header .nav-link {
    font-size: 0.75rem;
    padding: 0.35rem 0.45rem;
  }

  .label {
    transform: scale(1);
  }
}

/* Media query para telas ainda menores */
@media screen and (max-width: 320px) {
  .portfolio-header .nav-menu div:first-child {
    flex-direction: column;
    gap: 0.5rem;
  }

  .portfolio-header .nav-link {
    width: 100%;
    max-width: 120px;
    text-align: center;
  }
}

/* ===== ESTILOS MOBILE PARA EXPERIÊNCIAS ===== */

/* Timeline mobile - layout simplificado */
.timeline {
  padding: var(--space-lg) 0;
}

.timeline::before {
  left: 20px;
  width: 2px;
}

.timeline-item {
  margin-bottom: var(--space-xl);
  display: block;
}

.timeline-item::before {
  left: 20px;
  top: 15px;
  width: 12px;
  height: 12px;
  transform: none;
}

.timeline-date {
  position: static;
  display: inline-block;
  margin-bottom: var(--space-sm);
  font-size: 0.8rem;
}

.timeline-content {
  margin-left: 50px !important;
  max-width: none;
  text-align: left;
}

.timeline-content h3 {
  font-size: 1.1rem;
}

.timeline-content h4 {
  font-size: 0.9rem;
}

.timeline-content p {
  font-size: 0.85rem;
}

.tech-tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
}

/* Para telas muito pequenas */
@media screen and (max-width: 320px) {
  .timeline-content {
    margin-left: 40px !important;
    padding: var(--space-md);
  }

  .timeline::before {
    left: 15px;
  }

  .timeline-item::before {
    left: 15px;
  }
}

/* ===== ESTILOS MOBILE PARA EDUCAÇÃO ===== */

/* Grid responsivo para educação */
.education-grid {
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.education-item {
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
}

.education-icon {
  width: 50px;
  height: 50px;
  font-size: 1.2rem;
  margin-bottom: var(--space-md);
}

.education-content h3 {
  font-size: 1.1rem;
  line-height: 1.4;
}

.education-content h4 {
  font-size: 0.9rem;
}

.education-period {
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
}

.education-content p {
  font-size: 0.85rem;
  line-height: 1.5;
}

.achievement-tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
}

/* Para telas muito pequenas */
@media screen and (max-width: 320px) {
  .education-item {
    padding: var(--space-md);
  }

  .education-icon {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }

  .education-content h3 {
    font-size: 1rem;
  }

  .education-content h4 {
    font-size: 0.85rem;
  }
}
