:root {
  --accent: #22c55e;
  --accent-soft: rgba(34, 197, 94, 0.12);
  --bg: #0b0f14;
  --bg-alt: #10161d;
  --surface: #151c24;
  --border: #232d38;
  --text: #e6edf3;
  --muted: #9aa7b4;
  --radius: 14px;
  --nav-height: 68px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg);
  color: var(--text);
}

[id^="section_"] {
  scroll-margin-top: var(--nav-height);
}

.accent {
  color: var(--accent);
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* HEADER */
.navbar {
  min-height: var(--nav-height);
  background-color: rgba(11, 15, 20, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.logo {
  width: 36px;
  height: 36px;
}

.navbar-toggler {
  border: none;
}

.buttons-header {
  color: var(--muted);
  font-weight: 500;
  transition: color 200ms;
}

.buttons-header:hover,
.buttons-header:focus {
  color: var(--text);
}

.navbar .buttons-header.active {
  color: var(--accent);
}

/* HERO */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: calc(var(--nav-height) + 40px) 0 110px;
  background:
    radial-gradient(circle at 75% 40%, rgba(34, 197, 94, 0.15), transparent 45%),
    var(--bg);
}

.foto {
  width: 280px;
  max-width: 70vw;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  /* Valor negativo sobe a imagem dentro do círculo */
  object-position: center -15px;
  border-radius: 50%;
  border: 4px solid var(--accent);
  box-shadow: 0 0 0 10px var(--accent-soft);
}

.hero-name {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero-role {
  margin-top: 8px;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 500;
  color: var(--muted);
}

.hero-text {
  max-width: 540px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn-accent {
  display: inline-block;
  padding: 12px 26px;
  border: 2px solid var(--accent);
  border-radius: 10px;
  background-color: var(--accent);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 200ms, color 200ms;
}

.btn-accent:hover,
.btn-accent:focus {
  background-color: transparent;
  color: var(--accent);
}

.btn-accent-outline {
  background-color: transparent;
  color: var(--accent);
}

.btn-accent-outline:hover,
.btn-accent-outline:focus {
  background-color: var(--accent);
  color: var(--bg);
}

/* SECTIONS */
.section {
  padding: 96px 0;
}

.section-alt {
  background-color: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  margin-bottom: 48px;
  text-align: center;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  text-align: center;
}

.description {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

/* PROJECTS */
.card_projects {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--surface);
  transition: border-color 200ms, transform 200ms;
}

.card_projects:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  padding: 24px;
  background-color: #f1f5f9;
}

.card-media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.card-body-custom {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
}

.card-title-custom {
  font-size: 1.25rem;
  font-weight: 600;
}

.description-card {
  flex: 1;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.card-note {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
}

.card-note a {
  color: var(--accent);
}

.card-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.card-link:hover {
  text-decoration: underline;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0 0 12px;
  list-style: none;
}

.tags li {
  padding: 4px 10px;
  border-radius: 999px;
  background-color: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
}

.tags .tag-status {
  background-color: rgba(250, 204, 21, 0.12);
  color: #facc15;
}

/* SKILLS */
.skill-group {
  height: 100%;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--surface);
}

.skill-group-title {
  margin-bottom: 18px;
  font-size: 1.1rem;
  font-weight: 600;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.div-card-skills {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background-color: var(--bg);
  font-size: 0.9rem;
  font-weight: 500;
}

.skill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: #f1f5f9;
}

.skill-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

/* SOBRE */
.highlights {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.highlight {
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background-color: var(--surface);
  font-weight: 500;
}

.highlight-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* CONTATO */
.contact-form {
  max-width: 560px;
  margin: 0 auto;
}

.label-form {
  margin: 14px 0 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-form .form-control {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background-color: var(--surface);
  color: var(--text);
}

.contact-form .form-control::placeholder {
  color: #5f6b78;
}

.contact-form .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.div-button {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 20px;
}

.enviar:disabled {
  opacity: 0.6;
  cursor: wait;
}

.contact-form .form-control.is-invalid {
  border-color: #f87171;
}

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

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: border-color 200ms;
}

.social-links a:hover,
.social-links a:focus {
  border-color: var(--accent);
}

.social-links img,
.social-links svg {
  width: 24px;
  height: 24px;
}

.social-links svg {
  color: var(--text);
}

/* FOOTER */
.footer {
  padding: 24px 16px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

/* BARRA DE PROGRESSO */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1040;
  width: 100%;
  height: 3px;
  background-color: var(--accent);
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
}

/* INDICADOR DE ROLAGEM */
.scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  display: flex;
  justify-content: center;
  width: 30px;
  height: 48px;
  padding-top: 8px;
  border: 2px solid var(--muted);
  border-radius: 999px;
  transform: translateX(-50%);
  transition: border-color 200ms;
}

.scroll-indicator:hover,
.scroll-indicator:focus {
  border-color: var(--accent);
}

.scroll-indicator span {
  width: 4px;
  height: 10px;
  border-radius: 2px;
  background-color: var(--accent);
  animation: scroll-wheel 1.6s ease-in-out infinite;
}

@keyframes scroll-wheel {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(16px); }
}

/* VOLTAR AO TOPO */
/* BOTÃO WHATSAPP */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1030;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #25d366;
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: transform 250ms;
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
}

.whatsapp-float:hover,
.whatsapp-float:focus {
  color: #fff;
  transform: translateY(-3px);
}

.back-to-top {
  position: fixed;
  right: 25px;
  bottom: 88px;
  z-index: 1030;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: var(--accent);
  color: var(--bg);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 250ms, transform 250ms, visibility 250ms;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-to-top:hover,
.back-to-top:focus {
  color: var(--bg);
  transform: translateY(-3px);
}

/* Entrada ao rolar (só quando o JS está ativo) */
main {
  overflow-x: clip;
}

.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
  transition-delay: var(--delay, 0ms);
}

.js .reveal-left {
  transform: translateX(-60px);
}

.js .reveal-right {
  transform: translateX(60px);
}

.js .reveal.visible {
  opacity: 1;
  transform: none;
}

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

  .js .reveal,
  .card_projects:hover,
  .back-to-top:hover,
  .whatsapp-float:hover {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .scroll-indicator span {
    animation: none;
  }
}
