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

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #ffffff;
  color: #222;
  line-height: 1.6;

  max-width: 800px;
  margin: 40px auto;
  padding: 0 16px;

  animation: fadeUp 2s ease-in-out;
}

img {
  display: block;
  margin: 0 auto 16px;
  border-radius: 10px;

  width: 200px;
  max-width: 100%;
  height: auto;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

h1 {
  text-align: center;
  margin-bottom: 8px;
}

h2 {
  text-align: center;
  font-weight: normal;
  color: #444;
  margin-bottom: 16px;
}

p {
  text-align: center;
  margin-bottom: 16px;
}

a {
  color: #001e46;
  text-decoration: none;
  font-weight: 600;
  opacity: 0.55;
  transition: opacity 0.2s;
}

a:hover {
  text-decoration: underline;
  opacity: 1;
}

hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 24px 0;
}

/* (linha + título) */
.divider {
  position: relative;
  margin: 50px 0 22px; /* controla a distância pro UL */
  height: 1px;
  background: #ddd;
}

.divider h2 {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 0 12px;
  margin: 0;
  white-space: nowrap;
}

.projects {
  list-style: none;
  padding: 0;
  margin-top: 0;
  line-height: 2;
}

.projects li {
  background: #f6f6f6;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.projects li a {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media screen and (max-width: 768px) {
  body {
    margin: 20px auto;
    padding: 0 12px;
  }

  img {
    width: 100%;
    max-width: 240px;
  }

  h1 {
    font-size: 22px;
  }

  h2 {
    font-size: 18px;
  }

  p {
    font-size: 15px;
  }

  .divider {
    margin: 30px 0 18px;
  }

  .projects li {
    padding: 12px;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}