body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  text-align: center;
  background: linear-gradient(135deg, #fddde6 0%, #b8f2d9 100%);
  color: #222;
  line-height: 1.6;
  font-size: 16px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Scrollbar estilizada */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f0f0f0;
}

::-webkit-scrollbar-thumb {
  background: #ff84a7;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #d96890;
}

header {
  display: none;
  background: rgba(255, 182, 197, 0.7);
  backdrop-filter: saturate(180%) blur(12px);
  display: flex;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  padding: 5px 0;
  border-radius: 0 0 10px 10px;
}

.navigation {
  max-width: 900px;
  width: 100%;
  padding: 0 10px;
}

.nav-list {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: #444;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  position: relative;
  padding-bottom: 3px;
  transition: color 0.3s ease;
}

.nav-list a:hover,
.nav-list a:focus {
  color: #e94f6d;
}

.nav-list a::after {
  content: '';
  display: block;
  width: 0%;
  height: 3px;
  background: #e94f6d;
  transition: width 0.3s ease;
  position: absolute;
  bottom: 0;
  left: 0;
}

.nav-list a:hover::after,
.nav-list a:focus::after {
  width: 100%;
}

#home {
  min-height: 60vh;;
  padding: 100px 0;
  background: linear-gradient(255, 255, 255, 0.2);
}

.home-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.home-texto {
  flex: 1;
  text-align: left;
}

.home-texto h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.home-texto p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.buttons-container {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.buttons-container a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background-color: #fa779c;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  color: #000;
  transition: 0.3s ease;
}

.buttons-container a:hover {
  background-color: #f1a2b7;
  color: white;
}

.home-foto {
  flex: 1;
  display: flex;
  justify-content: center;
}

.home-foto img {
  width: 310px;
  height: auto;
  border-radius: 50%;
  border: 5px solid #ff84a7;
  object-fit: cover;
}

.profile:hover,
.download-cv:hover {
  background-color: #ca3a58;
  box-shadow: 0 8px 20px rgba(202, 58, 88, 0.6);
}

.profile .material-symbols-outlined,
.download-cv .material-symbols-outlined {
  font-size: 1.3rem;
  vertical-align: middle;
  user-select: none;
}


footer {
  margin-top: 4rem;
  padding: 1.5rem 1rem;
  background: rgba(255, 182, 197, 0.2); /* tom pastel rosa claro */
  text-align: center;
  font-size: 0.95rem;
  color: #333;
  border-top: 1px solid #f3cdd8;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
  font-family: 'Poppins', sans-serif;
}

footer strong {
  color: #e91e63;
}

footer .emoji {
  font-size: 0.9rem;
  vertical-align: middle;
  opacity: 0.8;
}

.tech-icons {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.tech-icons img {
  width: 32px;
  height: 32px;
  transition: transform 0.3s ease;
}

.tech-icons img:hover {
  transform: scale(1.15);
}

#works {
  margin-bottom: 4rem; /* ou ajuste para 5rem se preferir mais espaço */
}

#sobre {
  padding: 1rem 2rem;
  text-align: center;
  background-color: #fce4ec;
  border-radius: 16px;
  max-width: 640px;
  margin: 0 auto 4rem auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  font-family: 'Poppins', sans-serif;
  color: #333;
  scroll-margin-top: 100px;
  margin-top: -2rem; /* 🔼 sobe a caixa */
  margin-bottom: 4rem;
  scroll-margin-top: 10px;
}

#sobre h1 {
  font-size: 2.4rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  color: #e91e63;
}

#sobre p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #555;
  margin: 0;
}

#sobre p strong {
  color: #111;
  font-weight: 600;
}

/* body.sobre-active {
  background: linear-gradient(to right, #db6e8d, #86ca80);
  transition: background 0.5s ease;
}

body.works-active {
  background: linear-gradient(135deg, #ebbe7f 0%, #ff88d2 100%);
  transition: background 0.5s ease;
} */
/*  */
.titulo-projetos {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.titulo-projetos.visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

#titulo-sobre {
  transition: opacity 1s ease;
}

#titulo-sobre.visible {
  opacity: 1;
}


.nav-list li.dropdown {
  position: relative;
  /* cria uma “área de hover” maior */
  padding-bottom: 6px; /* mesmo valor do espaço */
}

/* Dropdown escondido por padrão */
.dropdown-content {
  display: none !important; /* força esconder */
  position: absolute;
  top: 100%; /* aumenta 6px o espaço */   /* aparece logo abaixo do menu */
  left: 0;
  background-color: #ffe6ec; /* rosa pastel */
  color: #7a2f45; /* tom escuro para texto */
  border-radius: 3px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 8px 14px;
  min-width: 160px;
  z-index: 1000;
  margin-top: 6px;
  font-size: 0.85rem;
}

/* Itens dentro do dropdown */
.dropdown-content li {
  list-style: none;
}

/* Links do dropdown */
.dropdown-content a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  color: #333;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

/* Hover dos links */
.dropdown-content a:hover {
  background-color: #fce4ec;
  color: #e91e63;
}

/* Mostrar dropdown apenas no hover do li.dropdown */
.nav-list li.dropdown:hover > .dropdown-content {
  display: block !important;
}

.dropdown-content a .material-symbols-outlined {
  font-size: 1.1rem;         /* ícone menor */
  user-select: none;
}

@media (max-width: 768px) {
  .home-container {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 1rem;
  }

  .home-texto {
    text-align: center;
    padding: 0 1rem;
  }

  .home-texto h1 {
    font-size: 2.2rem;
    line-height: 2.6rem;
  }

  .home-texto p {
    font-size: 1.1rem;
    max-width: 90%;
    margin: 0 auto;
  }

  .buttons-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1rem;
  }

  .buttons-container a {
    width: 80%;
    max-width: 220px;
    text-align: center;
  }

  .home-foto {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
  }

  .home-foto img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
  }

  #sobre {
    padding: 1.5rem 1rem;
    max-width: 90%;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .home-texto h1 {
    font-size: 1.8rem;
    line-height: 2.2rem;
  }

  .home-texto p {
    font-size: 1rem;
  }

  .buttons-container {
    gap: 0.6rem;
  }

  .buttons-container a {
    font-size: 0.85rem;
    padding: 10px 16px;
  }

  .home-foto img {
    width: 160px;
    height: 160px;
  }

  .nav-list {
    flex-wrap: nowrap;
    gap: 15px;
    font-size: 0.8rem;
    justify-content: center;
  }

  .nav-list a {
    font-size: 0.8rem;
  }

  #sobre h1 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
  }

  #sobre p {
    font-size: 0.95rem;
  }

  footer {
    font-size: 12px;
    padding: 15px 10px;
    line-height: 1.4;
  }
}

@media (max-width: 480px) {
  .dropdown-content {
    min-width: 110px;
    padding: 2px 0;
    border-radius: 3px;
  }

  .dropdown-content li a {
    padding: 5px 8px;
    font-size: 10.5px;
  }

  .material-symbols-outlined {
    font-size: 14px !important;
  }
}

@media (max-width: 480px) {
  .repo-grid {
    padding: 1rem;
    max-width: 90%;
  }

  .repo-grid h3 {
    font-size: 1rem;
  }

  .repo-grid p {
    font-size: 0.9rem;
  }
}
