:root {
  --bg: #181927;
  --panel: #1f2031;
  --inner: #3a3b56;
  --text: #ffffff;
  --muted: #d2d6e9;
  --blue: #14a8ff;
  --blue-hover: #0693e3;
  --border: rgba(255, 255, 255, 0.08);
  --container: 580px;
  --radius-panel: 4px;
  --radius-card: 3px;
  --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.18);
  --reveal-distance: 18px;
  --reveal-duration: 720ms;
  --reveal-stagger: 90ms;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(80, 90, 160, 0.08), transparent 28%),
    var(--bg);
}

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

img {
  display: block;
  max-width: 100%;
}

input,
textarea,
button {
  font: inherit;
}

.page {
  width: min(100% - 18px, var(--container));
  margin: 20px auto 60px;
}

.hero-panel,
.section-panel {
  background: var(--panel);
  border-radius: var(--radius-panel);
  margin-bottom: 8px;
  box-shadow: var(--shadow-soft);
}

.hero-cover {
  height: 128px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05)),
    url("img/capa.jpg") center/cover no-repeat;
  margin: 16px 16px 0;
}

.hero-body {
  text-align: center;
  padding: 0 18px 18px;
}

.hero-avatar {
  width: 125px;
  height: 125px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #c5d4e3;
  margin: -62px auto 14px;
  background: #111;
}

.hero-body h1 {
  margin: 0;
  color: var(--blue);
  font-size: 1.06rem;
  font-weight: 700;
}

.hero-subtitle {
  margin: 6px auto 0;
  max-width: 440px;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.6;
}

.hero-social {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

.hero-social a {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: white;
  opacity: 0.95;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero-social a:hover {
  transform: translateY(-1px);
  opacity: 1;
}

.hero-social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.section-panel {
  padding: 14px 16px 16px;
}

.section-title {
  margin: 0 0 10px;
  font-size: 0.88rem;
  font-weight: 600;
}

.section-subtitle {
  margin: -3px 0 12px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.5;
}

.info-card,
.text-box,
.project-card,
.contact-box {
  background: var(--inner);
  border-radius: var(--radius-card);
}

.info-card {
  padding: 11px 12px;
}

.info-card + .info-card {
  margin-top: 14px;
}

.year {
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 700;
}

.info-card h3 {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 600;
}

.info-card p,
.text-box p,
.project-content p {
  margin: 0;
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.6;
}

.text-box {
  padding: 12px;
}

.text-box p + p {
  margin-top: 3px;
}

.project-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 14px;
  padding: 12px;
}

.project-card + .project-card {
  margin-top: 14px;
}

.project-media img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.project-media-mobile {
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-media-mobile img {
  width: auto;
  max-width: 100%;
  max-height: 155px;
}

.project-content h3 {
  margin: 0 0 7px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 500;
}

.project-url {
  display: inline-block;
  margin-top: 8px;
  color: #dce4ff;
  font-size: 0.66rem;
  line-height: 1.5;
  word-break: break-word;
  text-decoration: underline;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  height: 30px;
  padding: 0 16px;
  margin-top: 10px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-primary:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

/* mensagem de status do formulário */
.form-status {
  margin-top: 12px;
  font-size: 0.72rem;
  color: var(--muted);
  min-height: 20px;
}

.form-status.success {
  color: #6ee7a8;
}

.form-status.error {
  color: #ff8e8e;
}

.btn-primary[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}
/**************************************/

.btn-icon {
  gap: 8px;
}

.btn-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.contact-box {
  padding: 12px;
}

.contact-box input,
.contact-box textarea {
  width: 100%;
  border: 1px solid rgba(221, 228, 255, 0.5);
  background: transparent;
  color: #fff;
  outline: none;
  border-radius: 4px;
  padding: 11px 12px;
  font-size: 0.72rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-box input::placeholder,
.contact-box textarea::placeholder {
  color: #d2d8f1;
}

.contact-box input:focus,
.contact-box textarea:focus {
  border-color: rgba(20, 168, 255, 0.75);
  box-shadow: 0 0 0 3px rgba(20, 168, 255, 0.14);
}

.contact-box input + input,
.contact-box input + textarea,
.contact-box textarea + button {
  margin-top: 12px;
}

.brand-badge {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--blue);
  color: #fff;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 0.64rem;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}

.brand-badge strong {
  font-weight: 700;
}

/* Animações */
.reveal,
.reveal-item {
  opacity: 0;
  transform: translateY(var(--reveal-distance));
  transition:
    opacity var(--reveal-duration) ease,
    transform var(--reveal-duration) ease;
  will-change: opacity, transform;
}

.reveal.is-visible,
.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-item {
  transition-delay: var(--delay, 0ms);
}

@media (max-width: 640px) {
  .page {
    width: min(100% - 12px, var(--container));
    margin-top: 8px;
  }

  .hero-cover {
    height: 94px;
    margin: 10px 10px 0;
  }

  .hero-avatar {
    width: 96px;
    height: 96px;
    margin-top: -48px;
  }

  .hero-body h1 {
    font-size: 0.98rem;
  }

  .hero-subtitle {
    font-size: 0.66rem;
  }

  .section-panel {
    padding: 12px;
  }

  .project-card {
    grid-template-columns: 1fr;
  }

  .project-media-mobile img {
    max-height: none;
    width: 100%;
  }

  .brand-badge {
    font-size: 0.58rem;
    padding: 8px 10px;
    right: 8px;
    bottom: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .reveal-item {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn-primary,
  .hero-social a,
  .contact-box input,
  .contact-box textarea {
    transition: none;
  }
}
