* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  text-decoration: none;
  outline: none;
}

:root {
  /* Paleta de Cores - Purple */
  --purple-50: #f4eaff;
  --purple-100: #e9dcfa;
  --purple-200: #cdb3f0;
  --purple-300: #b186e5;
  --purple-400: #9460db;
  --purple-500: #6b36c8;
  --purple-600: #5b2ca0;
  --purple-700: #4c2177;
  --purple-800: #441f88;
  --purple-900: #2a0e4d;

  /* Cores Neutras */
  --gray-200: #e8e8e8;
  --gray-400: #505861;
  --black: #171717;
  --white: #FAF7FF;

  /* Cores de Estado */
  --error: #e63946;

  /* Sombras */
  --shadow-sm: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.05);
  --shadow-md: 0 0.25rem 0.75rem rgba(107, 54, 200, 0.3);
  --shadow-lg: 0 0.5rem 1.5rem rgba(107, 54, 200, 0.2);

  /* Espaçamentos */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;

  /* Tamanhos de Fonte */
  --text-sm: 0.75rem;
  --text-base: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --text-3xl: 2.5rem;

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 2rem;
  --radius-full: 50%;

  /* Animação Padrão */
  --transition-default: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--white);
  line-height: 1.6;
  color: var(--black);
}

main {
  flex: 1;
}

.section-container {
  max-width: 70rem;
  margin: 0 auto;
  padding: var(--spacing-xl) var(--spacing-md);
  scroll-margin-top: 6rem;
}

.buttons-container {
  display: flex;
  gap: var(--spacing-sm);
}

.botao,
.botao-outline {
  display: inline-block;
  padding: 0.75rem 2rem;
  border: 0.15rem solid transparent;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-default);
}

/* Botão preenchido - Primário */
.botao {
  border-color: var(--purple-800);
  background-color: var(--purple-500);
  color: var(--white); 
  box-shadow: var(--shadow-md);
}

.botao:hover {
  background-color: var(--purple-600);
  transform: translateY(-0.25rem);
}

/* Botão outline (secundário) */
.botao-outline {
  border: 1px solid var(--purple-500);
  background-color: transparent;
  color: var(--purple-500);
  transition: all 0.3s ease;
}

.botao-outline:hover {
  border-color: var(--purple-500);
  background-color: var(--purple-100);
  color: var(--white);
  transform: translateY(-0.25rem);
}

/* HEADER */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  height: 5rem;
  border-bottom: var(--spacing-xs) solid var(--gray-200);
  background-color: var(--purple-800);
  box-shadow: var(--shadow-sm);
}

header a {
  font-weight: 600;
  color: var(--white);
  transition: color 0.3s ease;
}

header a:hover {
  color: var(--purple-100);
}

#titulo {
  font-size: var(--text-2xl);
  font-weight: 700;
}

.menu-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 70rem;
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.menu-list {
  display: flex;
  gap: var(--spacing-lg);
  list-style: none;
}

.menu-list a {
  padding: var(--spacing-xs);
}

.hero-container {
  display: flex;
  align-items: center;
  gap: var(--spacing-2xl);
  min-height: calc(100vh - 5rem);
}

.hero-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--spacing-md);
}

.hero-content span {
  font-size: var(--text-xl);
  font-weight: 700;
}

.hero-content h1 {
  font-size: var(--text-3xl);
  font-weight: 700;
}

.hero-content p,
.about-content p,
.contact-info p {
  font-size: var(--text-lg);
  color: var(--gray-400);
}

.hero-image {
  display: flex;
  flex: 1;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius-xl);
}

/* Animação flutuante */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1.25rem);
  }
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

.about-container {
  display: flex;
  align-items: center;
  gap: var(--spacing-2xl);
  margin: var(--spacing-2xl) auto;
  border-radius: var(--radius-lg);
  background-color: var(--gray-200);
}

.about-image {
  flex: 0 0 17.5rem;
}

.about-image img {
  width: 100%;
  border: 0.35rem solid var(--purple-500);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
}

.about-content h2,
.projects-container h2,
.contact-info h2 {
  margin-bottom: var(--spacing-md);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--purple-800);
}

.about-content p {
  margin-bottom: var(--spacing-sm);
  text-align: justify;
}

.about-buttons-data {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.about-buttons-data .botao {
  margin-right: auto;
}

.data-container {
  display: flex;
  gap: var(--spacing-lg);
  margin-top: 0;
}

.data-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.data-number {
  font-size: var(--text-xl);
  font-weight: 700;
  text-align: center;
  color: var(--purple-500);
}

.data-label {
  font-size: var(--text-base);
  text-align: center;
  color: var(--gray-400);
}

.projects-container {
  scroll-margin-top: 3rem;
  margin: var(--spacing-2xl) auto;
  text-align: center;
}

.projects-swiper {
  position: relative;
  width: 100%;
  padding: var(--spacing-md) var(--spacing-2xl);
  overflow: visible;
}

.project-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border: 0.15rem solid var(--gray-200);
  border-radius: var(--radius-lg);
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition-default);
}

.project-card:hover {
  box-shadow: var(--shadow-lg);
}

.project-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 10rem;
  background: linear-gradient(135deg, var(--purple-50) 0%, var(--purple-100) 100%);
}

.project-image img {
  width: 75%;
  height: 75%;
  max-width: 7rem;
  max-height: 7rem;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.project-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: var(--spacing-md);
  text-align: left;
}

.project-content h3 {
  margin-bottom: 0.75rem;
  font-size: var(--text-lg);
  font-weight: 700;
}

.project-content p {
  flex: 1;
  margin-bottom: var(--spacing-sm);
  font-size: 0.95rem;
  color: var(--gray-400);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}

.tag {
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-sm);
  background-color: var(--purple-100);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--purple-800);
}

.project-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: var(--spacing-sm);
}

.swiper-wrapper {
  align-items: stretch;
}

.swiper-slide {
  display: flex;
  height: auto;
}

/* Botões do Swiper (navegação) */
.swiper-button-next,
.swiper-button-prev {
  width: 3rem;
  height: 3rem;
}

.swiper-button-prev {
  left: -2.5rem;
}

.swiper-button-next {
  right: -2.5rem;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: var(--text-lg);
  color: var(--purple-500);
}

.swiper-button-next:hover:after,
.swiper-button-prev:hover:after {
  color: var(--purple-800);
}

/* Indicadores de paginação */
.swiper-pagination-bullet {
  width: 0.75rem;
  height: 0.75rem;
  background-color: var(--gray-200);
  opacity: 1;
}

.swiper-pagination-bullet-active {
  width: var(--spacing-lg);
  border-radius: var(--radius-sm);
  background-color: var(--purple-500);
}


.contact-info h2 {
  margin-bottom: var(--spacing-md);
}

.contact-info p {
  margin-bottom: var(--spacing-lg);
}

/* REDES SOCIAIS */
.social-container {
  display: flex;
  justify-content: center;
  gap: var(--spacing-xl); 
}

.social-icon {
  width: 5rem;
  height: 5rem;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  transition: var(--transition-default);
  
  background-color: var(--gray-200); 
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icon:hover {
  background-color: var(--purple-100);
  transform: translateY(-0.25rem);      
}

.social-icon img {
  width: 100%;
  filter: brightness(0) saturate(100%);
  transition: filter 0.3s ease;
}

.social-icon:hover img {
  filter: brightness(0)
          saturate(100%)
          invert(42%)
          sepia(93%)
          saturate(1352%)
          hue-rotate(243deg)
          brightness(79%)
          contrast(91%);
}

/* Formulário */
form {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

#formulario label {
    color: var(--purple-800);
    font-weight: 600;
}

#formulario input, 
#formulario textarea {
    border: 2px solid var(--purple-500);
    border-radius: var(--radius-md);
    padding: 10px;
    width: 100%;
}

#formulario button.botao {
    background-color: var(--purple-600);
    color: white;
    border: none;
    cursor: pointer;

    width: 200px; 
    padding: 12px 0;       
    font-size: 1.3rem;     
    font-weight: bold;
    border-radius: 50px;      
    display: block;
    margin: 0 auto; 
}

#formulario input:focus, 
#formulario textarea:focus {
    outline: none;
    border-color: var(--purple-800);
    box-shadow: 0 0 5px var(--purple-300);
}

form textarea {
  min-height: 5rem;
  resize: none;
}

form span {
  margin-top: -0.75rem;
  font-size: var(--text-sm);
  color: var(--error);
}

footer {
    padding: 2.5rem;
    background: linear-gradient(to right, var(--purple-500), var(--purple-800));
    font-weight: 600;
    text-align: center;
    color: var(--white);
}

.success-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: calc(100vh - 12.5rem);
    padding: var(--spacing-xl) var(--spacing-md);
}

.success-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    max-width: 37.5rem;
    text-align: center;
}

.success-content h1 {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--purple-800);
}

.success-content h2 {
    font-size: var(--text-lg);
    color: var(--gray-400);
}

.success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 7.5rem;
  height: 7.5rem;
  border-radius: var(--radius-full);
  background-color: var(--purple-100);
}

.success-icon img {
  width: 6rem;
  height: 6rem;
  filter: brightness(0)
          saturate(100%)
          invert(11%)
          sepia(69%)
          saturate(3759%)
          hue-rotate(256deg)
          brightness(101%)
          contrast(96%);
}

@media screen and (max-width: 1024px) {

  /* Layout */
  .section-container {
    padding: var(--spacing-lg) var(--spacing-md);
  }

  /* Tipografia */
  .section-container h1 {
    font-size: var(--text-3xl);
  }

  .section-container h2 {
    font-size: var(--text-2xl);
  }

  .section-container p {
    font-size: var(--text-base);
  }

  .section-container span {
    font-size: var(--text-lg);
  }

  .success-content h1 {
    font-size: var(--text-3xl);
  }

  .success-content h2 {
    font-size: var(--text-xl);
  }
}

/* Header - oculta menu em telas pequenas */
@media (max-width: 768px) {
  .menu-list {
    display: none;
  }

  /* Hero */
  .hero-container {
      flex-direction: column-reverse;
      gap: var(--spacing-lg);
      min-height: 60vh;
      text-align: center;
  }

  .hero-content,
  .hero-image {
      width: 90%;
  }

  .hero-image img {
      object-fit: cover;
  }

  .buttons-container {
      justify-content: center;
      width: 100%;
  }

  .hero-container .botao,
  .hero-container .botao-outline {
      padding: 0.75rem 1.5rem;
      font-size: 0.95rem;
      white-space: nowrap;
  }

  /* About */
  .about-container {
      flex-direction: column;
      gap: var(--spacing-md);
      margin: var(--spacing-lg);
      padding: var(--spacing-lg);
  }

  .about-image {
      flex: 0 0 auto;
      width: 100%;
      display: flex;
      justify-content: center;
  }

  .about-image img {
      max-width: 16rem;
      width: 100%;
  }

  .about-content {
      width: 100%;
  }

  .about-buttons-data {
      flex-direction: column;
      gap: var(--spacing-md);
      align-items: stretch;
  }

  .about-buttons-data .botao {
      margin-right: 0;
  }

  .data-container {
      justify-content: center;
      width: 100%;
  }

  /* Projects */
  .projects-container {
      margin: var(--spacing-lg) auto 0;
  }

  .projects-swiper {
      margin: 0;
      padding: var(--spacing-sm) var(--spacing-lg) 2.5rem;
  }

  .project-card {
      width: 100%;
      height: 30rem;
      min-height: 30rem;
      max-height: 30rem;
      max-width: 100%;
  }

  .project-content {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      height: 100%;
  }

  .project-content p {
      flex: 1;
      overflow: hidden;
  }

  .project-tags {
      min-height: 2.5rem;
      align-items: flex-start;
  }

  .swiper-wrapper {
      align-items: stretch;
  }

  .swiper-slide {
      display: flex;
      justify-content: center;
      align-items: stretch;
      height: auto;
  }

  .swiper-button-next,
  .swiper-button-prev {
      display: none;
  }

  /* Contact */
  .contact-container {
      grid-template-columns: 1fr;
      gap: var(--spacing-lg);
      width: 90%;
      margin: 0 auto;
  }

  /* Success Page */
  .success-container {
      padding: var(--spacing-xl) var(--spacing-md);
      min-height: calc(100vh - 10rem);
  }

  .success-content {
      gap: var(--spacing-lg);
      max-width: 35rem;
  }

  .success-icon {
      width: 6rem;
      height: 6rem;
  }

  .success-icon img {
      width: 5rem;
      height: 5rem;
  }
} /* AQUI fecha o bloco de 768px da forma correta */

@media screen and (max-width: 480px) {
  
  /* Layout */
  .section-container {
    padding: var(--spacing-md) var(--spacing-sm);
  }

  /* Tipografia Mobile */
  .section-container h1 {
    font-size: var(--text-xl);
  }

  .section-container h2 {
    font-size: var(--text-xl);
  }

  .section-container p {
    font-size: var(--text-base);
  }

  .section-container span {
    font-size: var(--text-lg);
  }

  .success-content h1 {
    font-size: var(--text-xl);
  }

  .success-content h2 {
    font-size: var(--text-base);
  }

  /* Header */
  #titulo {
    font-size: var(--text-xl);
  }

  .menu-list {
    display: none;
  }

  /* Hero */
  .hero-container {
    gap: var(--spacing-sm);
  }

  .hero-content {
    gap: var(--spacing-xs);
    width: 100%;
  }

  .buttons-container {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }

  .buttons-container .botao,
  .buttons-container .botao-outline {
    width: 100%;
  }

  .hero-container .botao,
  .hero-container .botao-outline {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    white-space: nowrap;
  }

  .hero-image {
    width: 100%;
  }

  .hero-image img {
    max-width: 20rem;
  }

  /* About */
  .about-container {
    margin: var(--spacing-lg) 0.5rem;
    padding: var(--spacing-md);
  }

  .about-image img {
    max-width: 14rem;
  }

  .about-buttons-data .botao,
  .about-buttons-data .botao-outline {
    width: 100%;
    padding: 0.75rem var(--spacing-lg);
    font-size: var(--text-base);
    text-align: center;
  }

  .data-number {
    font-size: var(--text-lg);
  }

  .data-label {
    font-size: var(--text-sm);
  }

  /* Projects */
  .projects-container {
    margin: var(--spacing-lg) auto 0;
  }

  .projects-swiper {
    position: relative;
    margin: 0;
    padding: var(--spacing-sm) 0 2rem 0;
    overflow: visible;
  }

  .project-card {
    width: 100%;
    height: 20rem;
    max-width: 20rem;
  }

  .project-image {
    height: 10rem;
  }

  .project-content {
    padding: var(--spacing-md);
  }

  .project-content h3 {
    font-size: 1.25rem;
  }

  .project-content p {
      font-size: 0.95rem;
  }

  /* Contact */
  .contact-container {
    width: 100%;
  }

  .contact-info p {
    margin-bottom: var(--spacing-md);
  }

  .social-container {
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xs);
  }

  .social-icon {
    width: 4rem;
    height: 4rem;
  }

  /* Formulário */
  form {
    gap: var(--spacing-sm);
  }

  form label {
    font-size: 0.95rem;
  }

  form input,
  form textarea {
    padding: 0.75rem;
    font-size: var(--text-base);
  }

  form button {
    padding: 0.75rem var(--spacing-md);
    font-size: var(--text-base);
  }

  /* Footer */
  footer {
    padding: var(--spacing-md) var(--spacing-sm);
    font-size: var(--text-sm);
  }

  /* Success Page */
  .success-container {
    padding: var(--spacing-lg) var(--spacing-sm);
    min-height: calc(100vh - 8rem);
  }

  .success-content {
    gap: var(--spacing-md);
    max-width: 100%;
    padding: 0 var(--spacing-sm);
  }

  .success-icon {
    width: 5rem;
    height: 5rem;
  }

  .success-icon img {
    width: 4rem;
    height: 4rem;
  }

  .success-content .botao {
    width: 100%;
    max-width: 20rem;
    padding: 0.75rem var(--spacing-lg);
  }
}

#contact p {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--purple-800);
    margin-bottom: 0rem;
}

.projects-swiper {
    overflow: hidden !important;
    position: relative;
    width: 100%;
    padding: 0 40px !important;
    box-sizing: border-box;
}

.swiper-wrapper {
    display: flex !important;
    flex-direction: row !important;
    will-change: transform;
}

.projects-swiper .swiper-slide {
    flex-shrink: 0 !important;
    width: auto;
}

.swiper-button-next {
    right: 10px !important;
}

.swiper-button-prev {
    left: 10px !important;
}

/* Mensagens de validação do formulário (Padrão Cookbook) */
#formulario span {
    color: #e74c3c;          /* Vermelho destacado para indicar o erro */
    font-size: 0.875rem;     /* Tamanho de fonte ligeiramente menor que o label */
    display: block;          /* Move o span obrigatoriamente para a linha de baixo */
    margin-top: 4px;         /* Espaçamento sutil entre o input e o texto do erro */
    margin-bottom: 12px;     /* Espaço para o próximo campo respirar */
    font-weight: 500;        /* Deixa o texto com um peso médio legível */
}