* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --palevioletred: #db7093;
    --lightpink: #ffb6c1;
    --deeppink: #ff1493;
    --black-800: #171717;
    --gray-200: #cccccc;
    --white: #f9f9f9;
    --pink-100: #fff0f5; 
    --pink-300: #f8b4c4;
    --pink-500: #db7093; 
    --pink-700: #c45a7a; 
    --purple-100: #f3e8ff; 
    --purple-300: #d8b4fe; 
    --purple-500: #8b5cf6; 
    --purple-700: #6d28d9; 
    --color-rex: #FF00EB;
}

body {
    background: var(--black-800);
    color: var(--white);
    font-family: sans-serif;

}

h2, h3 {
font-weight: 700;
}

h1 {
    color: var(--white);
    font-size: 2.4rem;
}
.h1 {
  font-family: 'JetBrains Mono', monospace;
}

.h2 {
    color: var(--white);
    font-size: 2.2rem;
    padding: 1.5rem 0;
    font-weight: 600;
    margin-left: 0;
    text-align: center;
    
}

h3{
   color: var(--white);
   font-size: 1.2rem;
   text-align: center;
}

p{
   font-size: 1.25rem;
   line-height: 1.5rem;
   text-align: justify;
}

section{
    width: 90%;
    margin: 2rem auto;
}

header {
    background: var(--deeppink);
    padding: 1rem 2rem;
    display: flex;
    justify-content:space-between;
    align-items: center;
    position: sticky;
    top: 0;
}

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

nav a {
    color: var(--white);
    font-size: 1.1rem;
    text-decoration: none;
}

nav a:hover {
    color: var(--palevioletred);
    text-decoration: underline;
}

#about article{
    display: flex;
    align-items: center;
    gap: 2rem;
}

#about img {
    width: 200px;
    flex-shrink: 0;
}

#about p {
    flex: 1;
}

#video figure {
    display: flex;
    justify-content: center;
}

#video iframe{
  width: 100%;
  max-width: 560px;
  aspect-ratio: 16 / 9;
  height: auto;
}

footer {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    color: var(--white);
    background-color: var(--deeppink);
    font-weight: bold;
    text-align: center;
}

footer section {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

footer img {
    width: 2.4rem;
    height: 2.4rem;
    display: block;
    filter: invert(100%);
    transition: filter 0.3s;
}

footer img:hover {
    filter: brightness(0) saturate(100%) invert(54%) sepia(13%) saturate(1576%) hue-rotate(289deg) brightness(98%) contrast(96%)
}

.heart {
  text-shadow:
    0 0 3px #333,
    0 0 2px #333;
}
.main_contato {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    width: 90%;
    margin: 2rem auto;
}

form { 
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.5rem;
    border-radius: 0.75rem;
}

form input, textarea {
    padding: 0.5rem;
    border-radius: 0.75rem;
    border: none;
    font-size: 1rem;
}

textarea {
    resize: none;
    height: 10rem;
}

form button {
    background: var(--deeppink);
    color: var(--white);
    padding: 0.75rem;
    border: 1px solid var(--black-800);
    border-radius: 0.75rem;
    font-weight: 700;
    cursor: pointer;
}

form button:hover {
    background: var(--deeppink);
}

form span {
    color:#c45a7a;
    font-size: 0.75rem;
}


.article_mapa {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    background: var(--pink-500);
    padding: 1.5rem;
    border-radius: 0.75rem;
}

.article_mapa address {
    width: 90%;
}

.article_mapa address p {
    font-weight: 600;
}

.article_mapa iframe {
    align-self: center;
}

.mapa {
  width: 90%;
  height: 400px;   
  border: 0;
}

#projetos {
  margin: 40px auto;
  padding: 0 16px;
  max-width: 1100px;
}

#projetos h2 {
  margin-bottom: 16px;
}

#projetos img {
  width: 100%;
  max-width: 280px; /* tamanho máximo */
  height: auto;     /* mantém proporção */
}

.projetos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 por linha */
  gap: 20px;
}

.projeto-card {
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 12px;
  padding: 18px;
  background: var(--pink-100);
}

.projeto-card h3 {
  color: var(--deeppink);         
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.projeto-card a {
  font-weight: 600;
  text-decoration: none;
  color: #6a5acd;
}

.projeto-card a:hover {
  text-decoration: underline;
}

#tecnologias {
  margin: 40px auto;
  max-width: 1100px;
  padding: 0 16px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  justify-content: center;
}

@media (max-width: 768px) {
  .badges {
    gap: 8px;
  }
}


.badges img {
  height: 32px; /* controla o tamanho */
}

/* ===== RESPONSIVO (celular) ===== */
@media (max-width: 768px) {
  header{
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  nav ul{
    justify-content: center;
    flex-wrap: wrap;
  }

  #about article{
    flex-direction: column;
    text-align: center;
  }

  #about img{
    width: 160px;
  }

  p{
    font-size: 1rem;
    line-height: 1.6rem;
  }
}


@media (max-width: 768px) {
  .main_contato{
    grid-template-columns: 1fr;
  }

  form{
    padding: 1rem;
  }

  .mapa{
    height: 300px;
  }
}
