:root {
  --bg-color: #f0f4f8;
  --text-color: #222222;
  --primary-color: #4a90e2;
  --secondary-bg: rgba(74, 144, 226, 0.15);
  --card-bg: rgba(255, 255, 255, 0.15);
  --card-border: rgba(74, 144, 226, 0.3);
  --shadow-color: rgba(74, 144, 226, 0.2);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: "Poppins", sans-serif;
  scroll-behavior: smooth;
}

body.dark-theme {
  --bg-color: #121212;
  --text-color: #e0e0e0;
  --secondary-bg: rgba(255, 255, 255, 0.1);
  --card-bg: rgba(26, 26, 26, 0.6);
  --card-border: rgba(255, 255, 255, 0.2);
  --shadow-color: rgba(0, 120, 255, 0.4);
}

.theme-btn {
  color: #222;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

body.dark-theme .theme-btn {
  color: #F0F4F8; 
}
a {
  text-decoration: none;
}
li {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}
section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px;
}

.navbar {
  width: 100%;
  margin: 20px;
}

.nav-menu {
  width: 100%;
  margin-top: 15px;
  display: flex;
  align-items: center;
}
.curriculo {
  background-color: #1a3c72;
  padding: 5px 10px;
  border-radius: 5px;
  color: #FFF;
  margin-right: 5px;
  transition: all .3s normal;
}
.curriculo:hover {
  background-color: var(--secondary-bg);
}
.nav-menu ul{
  background-color: var(--primary-color);
  padding: 5px 10px;
  border-radius: 5px;
  display: flex;
  gap: 5px;
}
.nav-menu ul li a{
  color: var(--text-color);
  transition: all .3s ease;
}
.nav-menu ul li a:hover {
  color: #1a3c72;
}

.navbar button {
  background-color: transparent;
  border: none;
  font-size: 2rem;
  position: absolute;
  top: 20px;
  right: 50px;
  cursor: pointer;
}

.name {
  color: var(--primary-color);
}

.text-main {
  width: 50%;
  display: flex;
  padding: 15px;
  flex-direction: column;
}

.text-main h1 {
  font-size: 2rem;
}


.intro {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.img-me {
  max-width: 350px;
}

.cards-techs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.card-tech {
  width: 180px;
  height: 150px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 15px;
  box-shadow: 0 8px 24px var(--shadow-color);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 1rem;
  text-align: center;
  cursor: default;
}

.card-tech:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 40px var(--primary-color);
}

.img-card {
  max-width: 80px;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 4px var(--primary-color));
}

.text-techs, .sobre {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 60vh;
}

.title-port {
  text-align: center;
  margin-top: 2rem;
  font-size: 2.2rem;
  color: var(--text-color);
}

.portifolios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
  margin: 2rem auto;
  padding: 0 1rem;
  max-width: 1080px;
}

.project.hidden-project {
  display: none;
}

.project {
  min-height: 260px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 15px;
  box-shadow: 0 8px 24px var(--shadow-color);
  backdrop-filter: blur(12px);
  padding: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 40px var(--primary-color);
}

.img-project img {
  width: 90%;
  max-width: 220px;
  height: auto;
  border-radius: 15px;
  margin-bottom: 0.8rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.img-project img:hover {
  transform: scale(1.05);
}

.project h3 {
  margin: 0.6rem 0 0.3rem;
  font-size: 1.2rem;
  color: var(--text-color);
}

.project p {
  font-size: 0.9rem;
  line-height: 1.3;
  color: var(--text-color);
  margin-bottom: 1rem;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.buttons-group {
  margin-top: auto;
  width: 100%;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.container-ver-mais {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

#verMaisBtn {
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 8px 16px;
  border-radius: 5px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: none;
  cursor: pointer;
}

#verMaisBtn:hover {
  background-color: var(--primary-color);
  color: white;
  transform: scale(1.03);
}

.btn-port {
  width: 60%;
  background-color: var(--primary-color);
  border: none;
  color: white;
  padding: 10px 8px;
  border-radius: 5px;
  font-weight: 600;
  margin: 0.2rem auto;
  font-size: 0.9rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-port:hover {
  background-color: #1a3c72;
  transform: scale(1.05);
  cursor: pointer;
}

.btn-port a {
  color: white;
  text-decoration: none;
}


.sections {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.sections.show {
  opacity: 1;
  transform: translateY(0);
}
.footer {
  background-color: #1a1a1a; /* fundo escuro */
  margin-top: 50px;
  color: #ddd;
  padding: 2rem 1rem;
  font-family: 'Poppins', sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1000px;
  margin: auto;
  gap: 1.5rem;
}

.footer-contact, .footer-email {
  flex: 1 1 300px;
}

.footer-contact h3,
.footer-email h3 {
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 1.25rem;
}

.social-icons a {
  color: #ddd;
  font-size: 1.5rem;
  margin-right: 1rem;
  transition: color 0.3s ease;
  display: inline-block;
}

.social-icons a:hover {
  color: #4a90e2; /* azul claro no hover */
}

.email-link {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s ease;
}

.email-link:hover {
  color: #4a90e2;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #888;
}
.button-up {
  position: fixed;
  right: 40px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 999;
}
.button-up a i {
  color: var(--text-color);
  transition: transform 0.3s ease;
}

.button-up a i:hover {
  transform: translateY(-5px);
}

@media screen and (max-width: 780px) {
  .intro {
    margin-top: 50px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
  }

  .text-main {
    width: 90%;
    padding: 0;
  }

  .cards-techs {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    justify-items: center;
  }

  .email {
    text-align: center;
  }

  .portifolios {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .project {
    min-height: 240px;
  }

  .img-project img {
    max-width: 180px;
  }

  .project h3 {
    font-size: 1.1rem;
  }

  .project p {
    font-size: 0.85rem;
    line-clamp: 3;
  }

  .btn-port {
    width: 70%;
    padding: 8px 6px;
    font-size: 0.85rem;
  }
}

@media (max-width: 600px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
  }

  .footer-contact, .footer-email {
    flex: unset;
    text-align: center;
  }

  .social-icons a {
    margin: 0 0.5rem;
  }
}

@media screen and (max-width: 560px) {
  .text-main {
    width: 100%;
  }

  .footer {
   flex-direction: column; 
  }
}

@media screen and (max-width: 480px) {
  .title-port {
    font-size: 1.8rem;
  }

  .portifolios {
    grid-template-columns: 1fr;
    max-width: 100%;
    padding: 0 0.5rem;
  }

  .project {
    min-height: auto;
    padding-bottom: 1rem;
  }

  .img-project img {
    max-width: 100%;
  }

  .btn-port {
    width: 80%;
    font-size: 0.85rem;
  }
}

@media (max-width:380px) {
  .nav-menu {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }
  .curriculo {
    width: 100%;
    display: flex;
    margin: 0;
    align-items: center;
    justify-content: center;
  }
  .nav-menu ul {
    width: 100%;
    align-items: center;
    justify-content: space-between;
  }
}