html {
  scroll-behavior: smooth;
}

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

html,
body {
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #333;
  background-color: #fff;
  animation: fadeIn 1.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* animação da página */
.fade-body {
  animation: pageFade 1.3s ease-in-out;
}

@keyframes pageFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.fade-slide {
  opacity: 0;
  animation: fadeSlide 1.4s ease forwards;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== HEADER ===== */
.header {
  background-color: #3E5C76;
  padding: 12px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(6px);
}

.header a {
  color: #fff;
  font-weight: 600;
  transition: color 0.3s;
}

.header img {
  width: 400px;
  height: auto;
}

.header nav a {
  margin-left: 25px;
  color: #fff;
  font-weight: 500;
  transition: color 0.3s;
}

.header h2 a:hover,
.header nav a:hover {
  color: #adabab;
}

/* ===== BLOCO ===== */
.bloco1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 10% 3rem;
  background-color: #faf9f6;
  gap: 3rem;
  flex-wrap: wrap;
}

.bloco1 img {
  width: 45%;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.texto-bloco {
  flex: 1;
  min-width: 300px;
}

.texto-bloco h2:hover,
.texto-bloco p:hover {
  color: #2a6f97;
  transition: color 0.3s ease, transform 0.3s ease;
  transform: translateX(5px);
  cursor: pointer;
}

.texto-bloco .descricao:hover {
  color: #355f4f;
  transform: translateX(8px);
}

.bloco1 p {
  font-size: 1.1rem;
  color: #444;
}

.descricao {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.7;
}

.reveal-item {
  opacity: 0;
  transform: translateY(45px) scale(0.98);
  filter: blur(6px);
  transition:
    opacity 1.1s ease,
    transform 1.1s ease,
    filter 1.1s ease;
}

.reveal-item.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.delay-1 {
  transition-delay: .1s;
}

.delay-2 {
  transition-delay: .25s;
}

.delay-3 {
  transition-delay: .45s;
}

.delay-4 {
  transition-delay: .65s;
}

/* ===== SOBRE ===== */
.sobre-mim-box {
  background-color: #f1f1f1;
  padding: 60px 0;
  display: flex;
  justify-content: center;
  border-radius: 20px;
  margin: 40px auto;
  width: 100%;
  max-width: 1400px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.sobre-mim-container {
  display: flex;
  align-items: flex-start;
  gap: 60px;
  padding: 40px;
  width: 100%;
  max-width: 1200px;
  margin: auto;
  box-sizing: border-box;
  overflow: hidden;
}

.sobre-mim-img img {
  width: 100%;
  max-width: 100%;
  border-radius: 18px;
  display: block;
}

.reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.97);
  filter: blur(3px);
  transition: 1s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.h3 {
  color: #8c439e;
  font-weight: 600;
}

.sobre-mim-texto h3 {
  font-size: 48px;
  text-align: center;
  width: 100%;
  margin-bottom: 20px;
  color: #000000;
  font-weight: 700;
}

.hl {
  color: #8c439e;
  font-weight: 600;
}

.hl-soft {
  color: #792d8b;
  font-weight: 500;
}

h2 {
  line-height: 1.7;
  color: #000000;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.25s;
}

.reveal-delay-3 {
  transition-delay: 0.40s;
}

.reveal-delay-4 {
  transition-delay: 0.55s;
}

.reveal-delay-5 {
  transition-delay: 0.70s;
}

.reveal-delay-6 {
  transition-delay: 0.85s;
}

.reveal-delay-7 {
  transition-delay: 1s;
}

.reveal-delay-8 {
  transition-delay: 1.15s;
}

/* ===== CARDS ===== */
.psi-duplo {
  display: flex;
  justify-content: center;
  gap: 25px;
  padding: 40px 20px;
  max-width: 1100px;
  margin: auto;
  flex-wrap: wrap;
}

.card {
  flex: 1;
  background: #e9eeef;
  padding: 35px 30px;
  border-radius: 18px;
  transition: transform .45s ease, box-shadow .45s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border-left: 5px solid #3a5d61;
  min-width: 260px;
}

.card h2 {
  font-size: 1.6rem;
  color: #3a5d61;
  margin-bottom: 12px;
}

.card p {
  font-size: 1.1rem;
  line-height: 1.75rem;
  color: #444;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.15);
}

/* ===== MAIN ===== */
main {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 60px 20px;
  flex-wrap: wrap;
}

section.info,
section.formulario {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  width: 360px;
  transition: transform .25s ease, box-shadow .25s ease;
}

section.info:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.info h2,
.formulario h2 {
  color: #31526a;
  margin-bottom: 18px;
  font-size: 21px;
  font-weight: 600;
}

.info p {
  color: #444;
  line-height: 1.65;
  margin-bottom: 14px;
}

.info .info-destaque {
  background: #f2f8fc;
  border-left: 4px solid #31526a;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14.5px;
}

form {
  display: flex;
  flex-direction: column;
}

label {
  font-weight: bold;
  margin: 8px 0 5px;
  color: #333;
}

input,
textarea {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  outline: none;
}

textarea {
  resize: none;
}

button {
  margin-top: 15px;
  padding: 10px;
  background-color: #2f4f4f;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

button:hover {
  background-color: #3d5a6c;
}

/* ===== FOOTER ===== */
.footer {
  background: #3e5c76;
  color: white;
  padding: 50px 25px 20px;
  margin-top: 60px;
}

.footer-content {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-left img {
  width: 180px;
  border-radius: 14px;
}

.footer-right {
  flex: 1;
  min-width: 280px;
  text-align: right;
}

.footer-right h3 {
  margin-bottom: 15px;
  font-size: 22px;
  color: #fff;
}

.footer-right p {
  margin: 10px 0;
  color: #e4e4e4;
  line-height: 1.6;
}

.footer-right a {
  color: white;
  transition: .3s ease;
}

.footer-right a:hover {
  color: #d3d3d3;
}

.footer-icons {
  margin-top: 20px;
}

.footer-icons img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  transition: transform .3s ease;
}

.footer-icons img:hover {
  transform: scale(1.1);
}

.footer-bottom {
  margin-top: 35px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}

.footer-bottom p {
  font-size: 14px;
  color: #ddd;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 780px) {

  .header {
    padding: 12px 20px;
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .header img {
    width: 240px;
  }

  .header nav a {
    margin: 8px;
  }

  .bloco1 {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 20px;
  }

  .bloco1 img {
    width: 100%;
  }

  .texto-bloco {
    text-align: left;
  }

  .sobre-mim-container {
    flex-direction: column;
    padding: 20px;
  }

  .psi-duplo {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
  }

  .card {
    width: 100%;
  }

  main {
    flex-direction: column;
    padding: 20px;
  }

  section.info,
  section.formulario {
    width: 100%;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-right {
    text-align: center;
  }

  .footer-left img {
    width: 150px;
  }
}