@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
  --cor-principal: #FBF4DF;
  --cor-secundaria: #5B57EB;
  --cor-preto: #333333;
  --cor-branco: #fff;
  --cor-fundo: #EFC356;
  --cor-cinza: #E7E7E7;
  --cor-amarelo: #F8D046;
  --cor-rosa: #F8B3B8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: var(--cor-principal);
  color: var(--cor-secundaria);
  line-height: 1.6;
}

header {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 50%;
  height: 60px;
  background: var(--cor-secundaria);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

header a {
  color: var(--cor-branco);
  text-decoration: none;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}

nav a {
  text-decoration: none;
  color: var(--cor-branco);
  font-weight: bold;
}

nav a:hover {
  color: var(--cor-fundo);
  transform: scale(1.1);
}

main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  gap: 2rem;
}

main section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  max-width: 1200px;
  width: 100%;
}

.content {
  flex: 1;
}

.content h1 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--cor-preto);
}

.content p {
  margin-bottom: 1.5rem;
  max-width: 500px;
  color: var(--cor-preto);
}

.buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-primary {
  background: var(--cor-preto);
  color: var(--cor-branco);
  padding: 0.9rem 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--cor-cinza);
  color: var(--cor-preto);
}

.btn-secondary {
  border: 2px solid var(--cor-preto);
  color: var(--cor-preto);
  padding: 0.7rem 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
}

.btn-secondary:hover {
  background: var(--cor-cinza);
}

.image-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-container img {
  border-radius: 20px;
  position: relative;
  z-index: 2;
  animation: flutuar 3s ease-in-out infinite;
}

@keyframes flutuar {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
  
}

/* TECNOLOGIAS */
.tecnologias {
  display: flex;
  justify-content: center;
}

.tecnologias ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--cor-amarelo);
  border-radius: 16px;
  padding: 1rem 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tecnologias li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  color: var(--cor-preto);
}

.tecnologias .icon {
  font-size: 1.2rem;
}


/* SEÇÃO SOBRE MIM */
.sobre-mim {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  background: var(--cor-secundaria);
  padding: 3rem 2rem;
}

.sobre-mim-text {
  max-width: 600px;
  text-align: left;
  padding: 0 1rem;
}

.sobre-mim h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--cor-branco);
}

.sobre-mim p {
  color: var(--cor-branco);
  text-align: justify;
  padding: 1rem 0;
  line-height: 1.8;

}


/* Caixa arredondada de projetos */
.projects-box {
  margin-top: 2rem;
  background: var(--cor-principal);
  border-radius: 16px;
  padding: 2rem;
}

.projects-box h2 {
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  text-align: center;
  color: var(--cor-preto);
}

/* Grid dos projetos */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Card de cada projeto */
.project-card {
  background: var(--cor-amarelo);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.project-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.8rem;
}

.project-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  color: var(--cor-preto);
}

.project-card p {
  color: var(--cor-preto);
  margin-bottom: 1rem;
}

/* Botão dentro do card */
.btn-project {
  display: inline-block;
  background: var(--cor-preto);
  color: var(--cor-branco);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: bold;
  transition: background 0.3s;
}

.btn-project:hover {
  background: var(--cor-fundo);
}

.contact {
  background: var(--cor-secundaria);
  color: var(--cor-branco);
  padding: 4rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 500px;
  gap: 2rem;
}

.contact h2 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  color: var(--cor-amarelo);
  text-align: center;
}

.contact-subtitle {
  font-size: 1.1rem;
  color: var(--cor-branco);
  text-align: center;
  margin-bottom: 1rem;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  width: 100%;
}

.btn-contato {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(90deg, #5B57EB 60%, #F8B3B8 100%);
  color: #fff;
  padding: 1rem 2rem;
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(91, 87, 235, 0.15);
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  letter-spacing: 1px;
}

.btn-contato:hover {
  background: linear-gradient(90deg, #F8B3B8 60%, #5B57EB 100%);
  color: #333;
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(91, 87, 235, 0.25);
}

.contact-social {
  display: flex;
  gap: 1.2rem;
  margin-top: 0.5rem;
}

.contact-social a {
  color: var(--cor-amarelo);
  font-size: 2rem;
  transition: color 0.2s, transform 0.2s;
}

.contact-social a:hover {
  color: var(--cor-rosa);
  transform: scale(1.2);
}

.contact-qrcode {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1.5rem;
}

.contact-qrcode img {
  width: 180px;
  height: 180px;
  border-radius: 16px;
  background: var(--cor-branco);
  padding: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.qrcode-caption {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--cor-amarelo);
  text-align: center;
}

/* Hero de contato lado a lado no desktop */
.contact-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20rem;
  background: var(--cor-secundaria);
  color: var(--cor-branco);
  padding: 4rem 2rem;
}

.contact-hero-qrcode {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 260px;
}

.contact-hero-qrcode img {
  width: 220px;
  height: 220px;
  border-radius: 16px;
  background: var(--cor-branco);
  padding: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.qrcode-caption {
  margin-top: 0.7rem;
  font-size: 1rem;
  color: var(--cor-amarelo);
  text-align: center;
}

.contact-hero-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 400px;
  gap: 1.2rem;
}

.contact-hero-info h2 {
  font-size: 2.2rem;
  color: var(--cor-amarelo);
  margin-bottom: 0.2rem;
}

.contact-subtitle {
  font-size: 1.1rem;
  color: var(--cor-branco);
  margin-bottom: 0.5rem;
}

.btn-contato {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(90deg, #5B57EB 60%, #F8B3B8 100%);
  color: #fff;
  padding: 1rem 2rem;
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(91, 87, 235, 0.15);
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  letter-spacing: 1px;
  margin-bottom: 0.7rem;
}

.btn-contato:hover {
  background: linear-gradient(90deg, #F8B3B8 60%, #5B57EB 100%);
  color: #333;
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(91, 87, 235, 0.25);
}

.contact-social {
  display: flex;
  gap: 1.2rem;
  margin-top: 0.5rem;
}

.contact-social a {
  color: var(--cor-amarelo);
  font-size: 2rem;
  transition: color 0.2s, transform 0.2s;
}

.contact-social a:hover {
  color: var(--cor-rosa);
  transform: scale(1.2);
}

.footer-7 {
  background: var(--cor-amarelo);
  color: var(--cor-preto);
  padding: 2.5rem 1rem 1rem 1rem;
  font-size: 1rem;
  display: flex;
  text-align: center;
}

.footer-7-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-7-col {
  flex: 1 1 220px;
  min-width: 220px;
}

.footer-7 h3, .footer-7 h4 {
  margin-bottom: 1rem;
  color: var(--cor-secundaria);
}

.footer-7 ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-7 ul li {
  margin-bottom: 0.5rem;
}

.footer-7 ul li a {
  color: var(--cor-preto);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-7 ul li a:hover {
  color: var(--cor-secundaria);
}

.footer-7-social {
  margin-top: 0.5rem;
}

.footer-7-social a {
  color: var(--cor-preto);
  font-size: 1.5rem;
  transition: color 0.2s, transform 0.2s;
}

.footer-7-social a:hover {
  color: var(--cor-secundaria);
  transform: scale(1.2);
}


/* Ajustes para deixar os cards do Swiper com mesmo tamanho/alinhamento */
.mySwiper .swiper-wrapper {
  align-items: stretch; /* garante que todos os slides acompanhem a maior altura */
}

.mySwiper .swiper-slide {
  display: flex;
  align-items: stretch;
  height: auto; 
}

.mySwiper .project-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mySwiper .project-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.8rem;
}

.mySwiper .project-card h3,
.mySwiper .project-card p {
  margin: 0 0 0.6rem 0;
}

@media (max-width: 768px) {

  header {
    align-items: center;
    gap: 1rem;
    height: auto;
  }

  .nav {
    flex-direction: column;
    align-items: center;
  }

  .buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
  }

  .tecnologias {
    display: none;
  }

  .content h1 {
    font-size: 2rem;
  }

  .content {
    width: 100%;
    text-align: center;
  }

  .tecnologias ul {
    flex-direction: column;
    align-items: flex-start;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .image-container img {
    max-width: 100%;
    height: auto;
  }

  .sobre-mim {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1rem;
  }

  .sobre-mim-img img {
    width: 220px;
    height: auto;
    margin-bottom: 1rem;
  }

  .sobre-mim-text {
    max-width: 100%;
    text-align: center;
    padding: 0;
  }

   .footer-7-row {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  .footer-7-col {
    text-align: center;
  }

  .footer-7-social {
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .contact-hero {
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 1rem;
    text-align: center;
  }
  .contact-hero-info {
    align-items: center;
    max-width: 100%;
  }
  .contact-hero-qrcode img {
    width: 120px;
    height: 120px;
  }
}
