:root {
  --color-bg: #f5f5f5;
  --color-surface: #ffffff;
  --color-surface-soft: #f0f4f8;
  --color-text: #1f2933;
  --color-muted: #52606d;
  --color-primary: #1565c0;
  --shadow-1: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08);
  --shadow-2: 0 4px 8px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --content-width: 1000px;
  --nav-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image: url("assets/images/backgrounds/backgroud-page.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  position: relative;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("assets/images/backgrounds/backgroud-page-5.png") center / cover no-repeat;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  transform: scale(0.18);
  transform-origin: center;
  width: 556%;
  height: 556%;
  left: -228%;
  top: -228%;
  z-index: -1;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-1);
  z-index: 10;
}

.header-inner {
  max-width: var(--content-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--space-2);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.site-nav {
  flex: 1;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  overflow-x: auto;
  white-space: nowrap;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(82, 96, 109, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.2rem;
  flex-shrink: 0;
}

.lang-toggle-input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.lang-link {
  border: 0;
  background: transparent;
  color: var(--color-muted);
  font-weight: 700;
  font-size: 0.78rem;
  line-height: 1;
  border-radius: 999px;
  padding: 0.4rem 0.55rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.lang-en {
  display: inline;
}

.lang-pt {
  display: none;
}

#lang-pt:checked ~ .page-shell .lang-en {
  display: none;
}

#lang-pt:checked ~ .page-shell .lang-pt {
  display: inline;
}

#lang-en:checked ~ .page-shell .lang-link[for="lang-en"],
#lang-pt:checked ~ .page-shell .lang-link[for="lang-pt"] {
  background: var(--color-primary);
  color: #ffffff;
}

.lang-link:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.site-nav a {
  color: var(--color-muted);
  text-decoration: none;
  font-weight: 600;
  padding: var(--space-1) var(--space-2);
  border-radius: 999px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--color-primary);
  background: var(--color-surface-soft);
}

.page-main {
  max-width: 100%;
  margin: 0;
  padding: var(--nav-height) 0 0;
}

.content-section {
  scroll-margin-top: var(--nav-height);
  min-height: calc(100vh - var(--nav-height));
  padding: var(--space-2);
  display: flex;
  align-items: stretch;
}

.section-card {
  width: min(var(--content-width), 100%);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: var(--space-3);
}

.section-title {
  width: 100%;
  text-align: center;
  margin: 0 0 var(--space-2);
  font-size: 1.5rem;
}

.section-layout {
  display: flex;
  align-items: stretch;
  gap: calc(var(--space-3) + 0.35rem);
}

.section-media {
  margin: 0;
  flex: 0 0 240px;
}

.section-image {
  width: 100%;
  min-height: 160px;
  border-radius: 10px;
  display: block;
  object-fit: cover;
  box-shadow: var(--shadow-1);
}

.profile-photo {
  object-fit: contain;
  object-position: center;
  background: rgba(255, 255, 255, 0.95);
}

.section-content {
  flex: 1;
}

.section-content p {
  margin: 0;
  color: var(--color-muted);
}

.under-construction-layout {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  text-align: center;
}

.under-construction-image {
  width: min(560px, 100%);
  height: auto;
  border-radius: 10px;
  box-shadow: var(--shadow-1);
}

.under-construction-text {
  font-weight: 600;
  color: var(--color-muted);
}

.experience-intro {
  margin-bottom: var(--space-2);
}

.about-my-experience {
  display: grid;
  gap: var(--space-2);
}

.talking-about-my-experience {
  margin: 0;
}

.office-leandro {
  flex: 0 0 320px;
  align-self: stretch;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: end;
  gap: var(--space-1);
  p {
    text-align: center;
    font-weight: bold;
  }
}

.office-leandro-image {
  width: 100%;
  height: 200px;
  display: block;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: var(--shadow-1);
}

.carousel-of-logos {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 10px;
  padding: 0.4rem 0;
}

.carousel-track {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: max-content;
  animation: logos-scroll 24s linear infinite;
}

.company-logo {
  flex: 0 0 auto;
  width: 88px;
  height: 54px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  padding: 0.35rem;
  box-shadow: var(--shadow-1);
}

@keyframes logos-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.experience-topics {
  display: grid;
  gap: var(--space-2);
}

.experience-topic {
  background: rgba(240, 244, 248, 0.94);
  border-radius: 10px;
  padding: var(--space-2);
}

.experience-topic-title {
  margin: 0 0 var(--space-1);
  font-size: 1.05rem;
}

.experience-topic-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: var(--space-2);
}

.experience-topic-image {
  width: 100%;
  height: 120px;
  object-fit: contain;
  background: #ffffff;
  padding: 0.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-1);
}

.experience-subtopics {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-1);
}

.experience-subtopic {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: var(--space-1);
  align-items: start;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 8px;
  padding: 0.6rem;
}

.experience-subtopic-image {
  width: 100%;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
}

.experience-subtopic h4 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
}

.experience-subtopic p {
  margin: 0;
  font-size: 0.92rem;
}

.site-footer {
  text-align: center;
  padding: var(--space-3) var(--space-2) var(--space-4);
  color: var(--color-muted);
}

@media (max-width: 900px) {
  :root {
    --nav-height: 64px;
  }

  .section-layout {
    gap: calc(var(--space-2) + 0.25rem);
  }

  .section-media {
    flex-basis: 200px;
  }

  .office-leandro {
    flex-basis: 260px;
  }

  .office-leandro-image {
    height: 160px;
  }

  .experience-topic-layout {
    grid-template-columns: 1fr;
  }

  .experience-topic-image {
    height: 150px;
  }

  .carousel-of-logos {
    max-width: 560px;
  }
}

@media (max-width: 700px) {
  .header-inner {
    gap: 0.4rem;
    padding: 0 var(--space-1);
  }

  .site-nav {
    gap: var(--space-1);
    padding: 0;
  }

  .site-nav a {
    font-size: 0.92rem;
    padding: 0.4rem 0.75rem;
  }

  .lang-link {
    font-size: 0.72rem;
    padding: 0.35rem 0.48rem;
  }

  .page-main {
    padding-top: var(--nav-height);
  }

  .section-card {
    padding: var(--space-2);
  }

  .section-title {
    font-size: 1.3rem;
  }

  .section-layout {
    flex-direction: column;
  }

  .section-media {
    flex-basis: auto;
  }

  .section-image {
    min-height: 140px;
  }

  .office-leandro {
    flex: 1 1 auto;
    width: 100%;
  }

  .office-leandro-image {
    height: 150px;
  }

  .experience-subtopic {
    grid-template-columns: 1fr;
  }

  .experience-subtopic-image {
    height: 120px;
  }

  .company-logo {
    width: 74px;
    height: 46px;
  }
}
