/* =====================
   RESET
   ===================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
}

html, body, header, main, nav, footer, article, blockquote,
div, section, span, iframe, img, video, figure, a, p, h1, h2,
h3, h4, h5, h6, strong, b, i, ul, ol, li, form, fieldset,
label, input, select, textarea, table, button, thead, tbody,
tfoot, th, td, tr, aside, caption, sup, sub, q, small {
  text-decoration: none;
}

blockquote { quotes: none; }
blockquote::after, blockquote::before { content: none; }
table { border-collapse: collapse; border-spacing: 0; }
ol, nav ul { list-style: none; }

/* =====================
   DESIGN TOKENS
   ===================== */
:root {
  --bg:         #0d1117;
  --bg-2:       #161b22;
  --bg-3:       #1f2937;
  --border:     #30363d;
  --border-2:   #3d4451;
  --accent:     #58a6ff;
  --accent-dim: #1f3a5f;
  --text:       #e6edf3;
  --text-muted: #8b949e;
  --text-dim:   #6e7681;
  --white:      #ffffff;
  --danger:     #f85149;

  --font: 'Source Code Pro', monospace;
  --radius: 6px;
  --nav-h: 60px;
  --max-w: 900px;
  --max-w-wide: 1100px;
}

/* =====================
   BASE
   ===================== */
html {
  width: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--white); }

/* =====================
   SCROLLBAR
   ===================== */
::-webkit-scrollbar { width: 6px; height: 6px; background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* =====================
   NAV
   ===================== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

header > nav {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  height: var(--nav-h);
  padding: 0 24px;
  display: flex;
  align-items: center;
}

header > nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  list-style: none;
}

header > nav li a.menu {
  display: block;
  color: var(--text-muted);
  font-size: 0.78em;
  font-weight: 500;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}
header > nav li a.menu:hover {
  color: var(--text);
  background: var(--bg-2);
}

header > nav li > a .download-icon {
  height: 13px;
  margin-left: 6px;
  vertical-align: middle;
  opacity: 0.6;
  filter: invert(1);
}

/* =====================
   LANGUAGE TOGGLE
   ===================== */
.lang-toggle {
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.72em;
  font-weight: 700;
  padding: 4px 9px;
  cursor: pointer;
  letter-spacing: 1.5px;
  border-radius: var(--radius);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.lang-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
}

/* =====================
   BILINGUAL
   ===================== */
.lang-en { display: none; }
[data-lang="en"] .lang-pt { display: none; }
[data-lang="en"] .lang-en { display: inline; }

/* =====================
   PROFILE / HERO
   ===================== */
#profile {
  min-height: 100vh;
  padding: calc(var(--nav-h) + 60px) 24px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: var(--bg);
  position: relative;
}

#profile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(88, 166, 255, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}

.profile-header > img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  box-shadow: 0 0 0 4px var(--bg-2), 0 0 30px rgba(88,166,255,0.15);
}

.basic-informations {
  list-style: none;
}

.basic-informations li p {
  color: var(--text);
  line-height: 1.5;
}

.basic-informations li:first-child p {
  font-size: 2em;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--white);
}

.basic-informations li:nth-child(2) p {
  font-size: 1em;
  color: var(--accent);
  font-weight: 300;
  letter-spacing: 2px;
}

.basic-informations li:nth-child(3) p {
  font-size: 1em;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 1px;
}

.social-media-container {
  margin-bottom: 32px;
}

.social-medias {
  list-style: none;
  display: flex;
  gap: 20px;
  justify-content: center;
}

.social-medias li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.social-medias li a:hover { color: var(--accent); }

.social-medias li a img {
  height: 26px;
  width: 26px;
  filter: grayscale(1) invert(0.7);
  transition: filter 0.2s;
}
.social-medias li a:hover img { filter: grayscale(0) invert(0); }

.social-medias li a label {
  font-size: 0.7em;
  font-weight: 500;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: block;
}

#profile > p {
  max-width: 640px;
  color: var(--text-muted);
  font-size: 0.92em;
  line-height: 1.8;
  margin: 0 auto 14px;
}

#profile > ul {
  list-style: none;
  max-width: 640px;
  width: 100%;
  margin: 16px auto 0;
}

#profile > ul > li {
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
  font-size: 0.8em;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

#profile > ul > li > label {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  flex-shrink: 0;
}

#profile > ul > li > p {
  color: var(--text-muted);
  font-size: 0.9em;
  margin: 0 6px 0 0;
}

/* =====================
   SECTION TITLE
   ===================== */
.section-title {
  text-align: center;
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 48px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--accent);
  margin: 10px auto 0;
  opacity: 0.5;
}

/* =====================
   EXPERIENCE / TIMELINE
   ===================== */
#experience {
  padding: 80px 24px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.timeline {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: 44px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 6px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(var(--border-2), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 36px;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -36px;
  top: 20px;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid var(--bg-2);
  box-shadow: 0 0 0 1px var(--accent);
}

.timeline-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  padding: 22px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.timeline-card:hover {
  border-left-color: var(--accent);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3), -2px 0 0 var(--accent);
}

.timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.role-badge {
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 0.68em;
  font-weight: 700;
  padding: 3px 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border-radius: 3px;
  border: 1px solid rgba(88,166,255,0.25);
}

.timeline-period {
  font-size: 0.75em;
  color: var(--text-dim);
  font-weight: 400;
  letter-spacing: 0.5px;
}

.company-name {
  font-size: 1.2em;
  font-weight: 700;
  color: var(--white);
  margin: 4px 0 3px;
}

.timeline-location {
  font-size: 0.75em;
  color: var(--text-dim);
  display: block;
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}

.timeline-bullets {
  list-style: none;
  margin: 0 0 16px;
}

.timeline-bullets li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 7px;
  font-size: 0.85em;
  color: var(--text-muted);
  line-height: 1.6;
}

.timeline-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75em;
  top: 2px;
  opacity: 0.7;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tech-tags span {
  background: var(--bg-2);
  border: 1px solid var(--border);
  font-size: 0.68em;
  padding: 2px 9px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  border-radius: 3px;
  font-weight: 500;
}

/* =====================
   PROJECTS
   ===================== */
#projects {
  padding: 80px 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

#projects .section-title {
  max-width: var(--max-w-wide);
  margin-left: auto;
  margin-right: auto;
}

.project-list {
  list-style: none;
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding: 8px 4px 24px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  max-width: var(--max-w-wide);
  margin: 0 auto;
}

.project-list::-webkit-scrollbar { height: 4px; }

.project-item {
  flex-shrink: 0;
  width: 280px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.project-item:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  transform: translateY(-2px);
}

.project-item > img {
  height: 64px;
  width: auto;
  max-width: 140px;
  display: block;
  margin: 0 auto 16px;
  object-fit: contain;
}

.project-item .gt-logo {
  height: 64px !important;
  width: 64px !important;
  border-radius: 50%;
  background: var(--bg-3);
  padding: 8px;
}

.project-item .sementes-logo {
  height: 70px !important;
  width: 70px !important;
}

.project-item .round-black-image {
  height: 64px !important;
  width: 64px !important;
  border-radius: 50%;
  background: #000;
  padding: 6px;
  object-fit: contain;
}

.project-item .agro-image {
  height: 54px !important;
  max-width: 140px !important;
}

.project-item > .centoeonze {
  font-size: 3.5em;
  font-weight: 200;
  text-align: center;
  color: var(--accent);
  margin: 0 auto 12px;
  letter-spacing: -2px;
}

.project-item > .cib-title {
  font-size: 2.5em;
  font-weight: 200;
  text-align: center;
  color: var(--accent);
  letter-spacing: -1px;
  margin: 0 auto 16px;
}

.project-item > .project-text-logo {
  font-size: 2.5em;
  font-weight: 200;
  text-align: center;
  color: var(--accent);
  letter-spacing: -1px;
  margin: 0 auto 16px;
}

.project-item > label {
  display: block;
  font-size: 0.95em;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}

.project-item > .content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.project-item > .content > p {
  display: flex;
  gap: 6px;
  align-items: baseline;
  font-size: 0.75em;
}

.project-item > .content > p > label {
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  white-space: nowrap;
}

.project-item > .content > p:last-of-type {
  margin-top: auto;
}

.project-item > .content > .description {
  margin: 6px 0 8px;
  flex: 1;
}

.project-item > .content > .description > label {
  display: none;
}

.project-item > .content > .description > p {
  font-size: 0.78em;
  color: var(--text-muted);
  line-height: 1.7;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
}

/* =====================
   SKILLS
   ===================== */
#knowledge {
  padding: 80px 24px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}

#knowledge > .section-title-wrap {
  max-width: var(--max-w-wide);
  margin: 0 auto 48px;
}

.exp-title {
  font-size: 0.68em;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  margin: 0 auto 20px;
  max-width: var(--max-w-wide);
  padding-top: 32px;
}

.exp-title:first-of-type {
  padding-top: 0;
}

.knowledge-list-container {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: var(--max-w-wide);
  margin: 0 auto 8px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.knowledge-list-container:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.knowledge-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100px;
  min-height: 100px;
  padding: 14px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.knowledge-list:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.knowledge-list > img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.knowledge-list > label {
  font-size: 0.72em;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.3px;
  cursor: default;
}

/* =====================
   FOOTER / CONTACT
   ===================== */
#footer {
  padding: 64px 24px 80px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  text-align: center;
}

#footer > ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

#footer > ul h5 {
  font-size: 0.68em;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  position: relative;
}

#footer > ul h5::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent);
  margin: 8px auto 0;
  opacity: 0.5;
}

#footer > ul .social-row {
  display: flex;
  gap: 32px;
  justify-content: center;
}

#footer > ul > li {
  display: inline-block;
}

/* keep footer contact links visible using the shared social-medias rules */
#footer .social-contact {
  display: flex;
  gap: 32px;
  justify-content: center;
  list-style: none;
}

#footer .social-contact li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  transition: color 0.2s;
}
#footer .social-contact li a:hover { color: var(--accent); }

#footer .social-contact li a img {
  height: 32px;
  width: 32px;
  filter: grayscale(1) brightness(0.6);
  transition: filter 0.2s;
}
#footer .social-contact li a:hover img { filter: grayscale(0) brightness(1); }

#footer .social-contact li a label {
  font-size: 0.75em;
  font-weight: 500;
  letter-spacing: 0.5px;
  cursor: pointer;
}

/* =====================
   RESPONSIVE
   ===================== */
@media screen and (max-width: 768px) {
  header > nav ul {
    gap: 2px;
  }

  header > nav li a.menu {
    font-size: 0.7em;
    padding: 5px 7px;
  }

  #profile {
    padding-top: calc(var(--nav-h) + 40px);
  }

  .basic-informations li:first-child p {
    font-size: 1.5em;
  }

  .timeline {
    padding-left: 28px;
  }
  .timeline::before {
    left: 8px;
  }
  .timeline-dot {
    left: -24px;
    top: 18px;
    width: 8px;
    height: 8px;
  }
  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-list {
    padding-bottom: 16px;
  }
  .project-item {
    width: 250px;
  }

  .knowledge-list {
    width: 86px;
    min-height: 90px;
    padding: 10px 6px;
  }
  .knowledge-list > img {
    width: 32px;
    height: 32px;
  }
}
