/* Variáveis de cor e tipografia */
:root {
  --background-color: #f7f9fb;
  --primary-color: #0077c8;
  --secondary-color: #005e99;
  --text-color: #222;
  --light-color: #ffffff;
  --border-radius: 8px;
  --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  --font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Reset básico */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Cabeçalho e navegação */
header {
  background: var(--light-color);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
  background: var(--light-color);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  padding: 0.5rem;
  position: relative;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--secondary-color);
}

.nav-links a.active::after,
.nav-links a:hover::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  background: var(--primary-color);
}

/* Seções gerais */
.section {
  padding: 4rem 0;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

/* Hero */
.hero {
  text-align: center;
  padding: 6rem 0 4rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.hero h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.hero-summary {
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-image {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 3px solid var(--light-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Botões */
.btn {
  background: var(--primary-color);
  color: var(--light-color);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background 0.3s ease;
}

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

.btn-wp {
  background: #00ff00;
  color: #000000;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-wp:hover,
.btn-wp:focus {
  background: #539653b9;
  outline: none;
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

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

.btn-small {
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
}



/* Lista com marcadores */
.bullet-list {
  list-style: disc;
  margin-left: 1.5rem;
}

/* Sobre */

#about p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* Skills */
/* Skills no formato barra */
.skills-bars {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.skill-bar {
  background: var(--light-color);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  padding: 1rem 1.1rem;
}

.skill-bar__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.skill-bar__left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.skill-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(154, 161, 166, 0.1);
  border: 1px solid  rgba(154, 161, 166, 0.1);
  font-size: 1rem;
  flex-shrink: 0;
}

.skill-title {
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.skill-percent {
  font-weight: 700;
  color: #444;
  flex-shrink: 0;
}

.skill-bar__track {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.skill-bar__fill {
  height: 100%;
  border-radius: 999px;
  background: var(--primary-color);
  width: 0;
  transition: width 600ms ease;
}

/* Pequeno hover para “modernizar” */
.skill-bar:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  .skill-bar,
  .skill-bar__fill {
    transition: none;
  }
  .skill-bar:hover {
    transform: none;
  }
}


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

/* Projetos */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--light-color);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-card h3 {
  margin-bottom: 0.5rem;
}

.project-context {
  margin-bottom: 0.75rem;
  color: #555;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.project-tags span {
  background: var(--primary-color);
  color: var(--light-color);
  padding: 0.25rem 0.5rem;
  border-radius: var(--border-radius);
  font-size: 0.8rem;
}

.project-impact {
  list-style: none;
  margin-bottom: 1rem;
}

.project-impact li::before {
  content: '•';
  color: var(--primary-color);
  margin-right: 0.5rem;
}

.project-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Timeline de experiência */
.timeline {
  position: relative;
  margin-left: 1rem;
  border-left: 2px solid var(--primary-color);
  padding-left: 1.5rem;
}

.timeline-item {
  margin-bottom: 2rem;
  position: relative;
}

.timeline-marker {
  width: 8px;
  height: 8px;
  background: var(--primary-color);
  border-radius: 50%;
  position: absolute;
  left: -14px;
  top: 0.7rem;
}

.timeline-date {
  font-size: 0.875rem;
  color: #555;
}

.timeline-content h3 {
  margin-bottom: 0.25rem;
}

.timeline-content ul {
  list-style: disc;
  margin-left: 1.25rem;
}

/* Formação */
.education-list {
  list-style: none;
}

.education-list li {
  margin-bottom: 1rem;
}

.education-list strong {
  display: block;
  font-weight: 600;
}

.education-list li span {
  display: block;
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0.25rem;
}

.education-list li p {
  margin-top: 0.25rem;
  line-height: 1.6;
}


/* Formulário de contato */
form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

form input,
form textarea {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: var(--border-radius);
  font-family: inherit;
}

form input:focus,
form textarea:focus {
  border-color: var(--primary-color);
  outline: none;
}

.contact-info p,
.contact-info .social-links {
  display: flex;
  margin-bottom: 0.5rem;
  text-align: left;
  align-items: center;
  gap: 0.6rem;
}

.social-links a {
  margin-top: 1rem;
  margin-right: 0.7rem;
  display: flex;
  text-align: left;
  align-items: bottom;
  gap: 0.4rem;
}

/* Botão voltar ao topo */
#back-to-top {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  background: var(--primary-color);
  color: var(--light-color);
  padding: 0.2rem;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow);
  display: none;
  z-index: 1000;
  justify-content: center;
  width: 35px;
  height: 35px;
}

#back-to-top:hover,
#back-to-top:focus {
  background: var(--secondary-color);
}

/* Rodapé */
.footer {
  background: var(--light-color);
  padding: 2rem 0;
  text-align: center;
  margin-top: 3rem;
  border-top: 1px solid #e0e0e0;
}

.footer-nav a {
  margin: 0 0.5rem;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 2000;
}

.modal.active {
  display: block;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--light-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  width: 90%;
  max-width: 600px;
  box-shadow: var(--shadow);
  overflow-y: auto;
  max-height: 80vh;
}

.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-color);
}

.modal-close:hover,
.modal-close:focus {
  color: var(--secondary-color);
}

/* Responsividade */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--light-color);
    flex-direction: column;
    width: 200px;
    padding: 1rem;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open {
    display: flex;
  }
  .menu-toggle {
    display: flex;
  }
  nav {
    position: relative;
  }
}

/* Reduzir movimentos para quem prefere */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}