:root {
  --font-sans: 'DM Sans', 'Open Sans', sans-serif;
  --font-display: 'Space Grotesk', 'Saira Extra Condensed', sans-serif;
  --nav-height: 4.3rem;
  --section-space: clamp(4.5rem, 7vw, 7rem);
  --section-vh: calc(100vh - var(--nav-height));
  --about-vh: 100vh;
  --radius-sm: 0.75rem;
  --radius-md: 1rem;
  --radius-lg: 1.6rem;
  --shadow-sm: 0 10px 28px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 20px 55px rgba(15, 23, 42, 0.12);

  --surface-0: #f5f8ff;
  --surface-1: #ffffff;
  --surface-2: #edf3ff;
  --surface-3: #e3ecff;
  --text-1: #101828;
  --text-2: #3f4a5a;
  --border: #d7e1f2;
  --accent: #2663eb;
  --accent-2: #3b82f6;
  --accent-ink: #1742a7;

  --nav-surface: rgba(245, 248, 255, 0.78);
  --nav-border: rgba(38, 99, 235, 0.18);
  --section-band: rgba(227, 236, 255, 0.45);
  --hero-glow-a: rgba(59, 130, 246, 0.24);
  --hero-glow-b: rgba(56, 189, 248, 0.22);
  --about-bg: #edf3ff;
  --about-heading: #3a3f4b;
  --about-body: #636978;
  --about-accent: #2663eb;
  --about-accent-contrast: #ffffff;
  --about-outline-btn: #2663eb;
  --skill-group-software: #0ea5a8;
  --skill-group-cloud: #3b82f6;
  --skill-group-practices: #f59e0b;

  --navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(16,24,40,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

html[data-theme='dark'] {
  --shadow-sm: 0 14px 34px rgba(2, 6, 23, 0.36);
  --shadow-md: 0 24px 64px rgba(2, 6, 23, 0.5);

  --surface-0: #020617;
  --surface-1: #0f172a;
  --surface-2: #162034;
  --surface-3: #1a2842;
  --text-1: #f1f5f9;
  --text-2: #b7c6df;
  --border: #294063;
  --accent: #60a5fa;
  --accent-2: #38bdf8;
  --accent-ink: #bfdbfe;

  --nav-surface: rgba(2, 6, 23, 0.8);
  --nav-border: rgba(96, 165, 250, 0.22);
  --section-band: rgba(15, 23, 42, 0.52);
  --hero-glow-a: rgba(37, 99, 235, 0.32);
  --hero-glow-b: rgba(14, 165, 233, 0.25);
  --about-bg: #0f172a;
  --about-heading: #eef2ff;
  --about-body: #b8c1d4;
  --about-accent: #60a5fa;
  --about-accent-contrast: #0b1020;
  --about-outline-btn: #60a5fa;

  --navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(241,245,249,0.92)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  padding-top: 0;
  font-family: var(--font-sans);
  color: var(--text-2);
  background: radial-gradient(circle at 12% 8%, var(--hero-glow-a), transparent 38%),
    radial-gradient(circle at 86% 10%, var(--hero-glow-b), transparent 34%),
    var(--surface-0);
  background-attachment: fixed;
  transition: background-color 0.3s ease, color 0.3s ease;
}

#app {
  height: 100vh;
  overflow: hidden;
  overflow-x: clip;
}

.main-sections {
  width: 100%;
  height: var(--section-vh);
  margin-top: var(--nav-height);
  max-width: none;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.main-sections::-webkit-scrollbar {
  display: none;
}

.section-dots {
  position: fixed;
  top: 50%;
  right: 1.4rem;
  z-index: 1050;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.68rem;
}

.dot-link {
  position: relative;
  display: block;
  width: 0.78rem;
  height: 0.78rem;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: color-mix(in srgb, var(--surface-1) 75%, transparent);
  box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.dot-link:hover,
.dot-link:focus-visible {
  border-color: var(--accent);
  transform: scale(1.08);
}

.dot-link.is-active {
  border-color: var(--accent);
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  transform: scale(1.18);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 26%, transparent);
}

.dot-link::before {
  content: '';
  position: absolute;
  top: 50%;
  right: calc(100% + 0.42rem);
  width: 0;
  height: 0;
  border-top: 0.3rem solid transparent;
  border-bottom: 0.3rem solid transparent;
  border-left: 0.4rem solid color-mix(in srgb, var(--surface-1) 92%, var(--border) 8%);
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease;
}

.dot-link::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 50%;
  right: calc(100% + 0.82rem);
  transform: translateY(-50%);
  padding: 0.36rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 0.45rem;
  background: color-mix(in srgb, var(--surface-1) 92%, var(--surface-2));
  color: var(--text-1);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  box-shadow: var(--shadow-sm);
  transition: opacity 0.16s ease;
}

.dot-link:hover::before,
.dot-link:hover::after,
.dot-link:focus-visible::before,
.dot-link:focus-visible::after {
  opacity: 1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  color: var(--text-1);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: none;
}

h1 {
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  line-height: 0.95;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  margin-bottom: 2.3rem;
}

h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
}

a {
  color: var(--accent);
  transition: color 0.2s ease;
}

a:hover,
a:focus,
a:active {
  color: var(--accent-ink);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(96, 165, 250, 0.5);
  outline-offset: 2px;
}

.text-primary {
  color: var(--accent) !important;
}

.subheading {
  color: var(--text-2);
  font-family: var(--font-display);
  font-size: 1.08rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.container-fluid {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.container {
  width: min(1120px, calc(100% - 2.4rem));
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.app-nav {
  min-height: var(--nav-height);
  backdrop-filter: blur(14px);
  background: var(--nav-surface);
  border-bottom: 1px solid var(--nav-border);
}

.nav-shell {
  width: min(1120px, calc(100% - 2.4rem));
  max-width: 1120px;
  padding: 0.4rem 0;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text-1);
  font-family: var(--font-display);
  font-size: 1.28rem;
}

.nav-avatar {
  width: 2.15rem;
  height: 2.15rem;
  border: 2px solid var(--border);
}

#mainNav .navbar-toggler {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
}

#mainNav .navbar-toggler-icon {
  background-image: var(--navbar-toggler-icon-bg);
}

#mainNav .navbar-nav .nav-link {
  position: relative;
  color: var(--text-1);
  opacity: 0.82;
  font-weight: 600;
  padding: 0.65rem 0.92rem;
}

#mainNav .navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  left: 0.92rem;
  right: 0.92rem;
  bottom: 0.4rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

#mainNav .navbar-nav .nav-link:hover,
#mainNav .navbar-nav .nav-link.active {
  opacity: 1;
  color: var(--accent);
}

#mainNav .navbar-nav .nav-link:hover::after,
#mainNav .navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

.nav-theme-item {
  margin-left: 0.45rem;
}

.nav-lang-item {
  margin-left: 0.45rem;
}

.lang-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-1);
  color: var(--text-1);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.lang-toggle-btn:hover,
.lang-toggle-btn:focus-visible {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.lang-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--surface-2);
}

.lang-menu {
  min-width: 11.5rem;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: var(--surface-1);
  box-shadow: var(--shadow-sm);
  padding: 0.35rem;
}

.lang-menu .dropdown-item {
  border-radius: 0.55rem;
  color: var(--text-1);
  font-weight: 600;
}

.lang-menu .dropdown-item:hover,
.lang-menu .dropdown-item:focus-visible,
.lang-menu .dropdown-item.active {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-1);
  color: var(--text-1);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.theme-toggle-btn:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.theme-toggle-icon {
  line-height: 1;
}

section.resume-section {
  position: relative;
  min-height: var(--section-vh);
  max-height: var(--section-vh);
  height: -webkit-fill-available;
  padding: 0 !important;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  scroll-margin-top: 0;
}

.section-scroll-body {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: clamp(2rem, 4vw, 2.6rem) 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.section-scroll-body::-webkit-scrollbar {
  display: none;
}

section.resume-section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

section.resume-section:nth-of-type(odd)::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--section-band) 55%, rgba(255, 255, 255, 0));
}

.section-hero {
  border-bottom: 0;
  min-height: var(--about-vh);
  max-height: var(--about-vh);
  padding-bottom: 0 !important;
  background: var(--about-bg);
}

.section-hero .section-scroll-body {
  height: 100%;
  padding: 0 !important;
  overflow-y: hidden;
}

.section-hero .container.my-auto {
  height: 100%;
}

.section-hero .hero-grid {
  height: 100%;
  align-items: stretch;
}

.section-hero .hero-grid > .col-lg-6 {
  display: flex;
}

.section-hero::before {
  background: none;
}

.hero-grid {
  align-items: center;
  row-gap: 2.4rem;
}

.hero-kicker {
  margin-bottom: 0.9rem;
  color: var(--about-accent);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.section-hero .hero-copy {
  max-width: 38rem;
}

.section-hero .hero-title {
  color: var(--about-heading);
  font-size: clamp(3rem, 6vw, 5.1rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.section-hero .hero-title .text-primary {
  color: var(--about-accent) !important;
}

.section-hero .hero-subtitle {
  color: var(--about-heading);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.section-hero .hero-subtitle a {
  color: var(--about-accent);
}

.hero-blurb {
  max-width: 52ch;
  font-size: 1.08rem;
  line-height: 1.8;
}

.section-hero .hero-description {
  max-width: 42ch;
  color: var(--about-body);
  font-size: 1.12rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.35rem;
}

.section-hero .hero-cta-row {
  gap: 0.95rem;
  margin-bottom: 1.5rem;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.75rem 1.25rem;
}

.hero-button-primary {
  background: var(--about-accent);
  color: var(--about-accent-contrast);
  box-shadow: var(--shadow-sm);
}

.hero-button-primary:hover,
.hero-button-primary:focus {
  color: var(--about-accent-contrast);
  filter: brightness(1.04);
}

.hero-button-ghost {
  border-color: var(--about-outline-btn);
  background: transparent;
  color: var(--about-outline-btn);
}

.hero-button-ghost:hover,
.hero-button-ghost:focus {
  border-color: var(--about-accent);
  color: var(--about-accent);
  background: color-mix(in srgb, var(--about-accent) 12%, transparent);
}

.list-social-icons a {
  color: var(--about-body);
}

.list-social-icons a:hover {
  color: var(--about-accent);
}

.list-social-icons a .fa-lg {
  font-size: 1.65rem;
}

html[data-theme='dark'] .section-hero .list-social-icons a .fa-circle {
  color: color-mix(in srgb, var(--about-bg) 76%, #f8fafc 24%);
  transition: color 0.2s ease;
}

html[data-theme='dark'] .section-hero .list-social-icons a .fa-stack-1x {
  color: #e2e8f0;
  transition: color 0.2s ease;
}

html[data-theme='dark'] .section-hero .list-social-icons a:hover .fa-circle,
html[data-theme='dark'] .section-hero .list-social-icons a:focus-visible .fa-circle {
  color: var(--about-accent);
}

html[data-theme='dark'] .section-hero .list-social-icons a:hover .fa-stack-1x,
html[data-theme='dark'] .section-hero .list-social-icons a:focus-visible .fa-stack-1x {
  color: #ffffff;
}

.hero-image-shell {
  width: 100%;
  height: 100%;
  min-height: clamp(22rem, 44vh, 34rem);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0;
  margin: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: bottom right;
  display: block;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  filter: drop-shadow(0 20px 26px rgba(15, 23, 42, 0.24));
}

.modern-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: linear-gradient(175deg, var(--surface-1), var(--surface-2));
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.modern-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.resume-item {
  gap: 1rem;
}

.resume-item .resume-content {
  width: 100%;
}

.resume-item .resume-date {
  align-self: flex-start;
  white-space: nowrap;
}

.resume-item .resume-date .text-primary {
  color: var(--accent-ink) !important;
  font-weight: 700;
}

.education-timeline {
  --education-rail-column: 9.8rem;
  --education-item-gap: 0.95rem;
  --education-dot-size: 0.8rem;
  --education-rail-x: calc(var(--education-rail-column) - 1.1rem);
  position: relative;
  display: grid;
  gap: 0.85rem;
}

.education-timeline::before {
  content: '';
  position: absolute;
  left: var(--education-rail-x);
  top: 0.4rem;
  bottom: 0.4rem;
  width: 2px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 42%, var(--border));
}

.education-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: var(--education-rail-column) 1fr;
  gap: var(--education-item-gap);
}

.education-rail {
  position: relative;
  min-height: 3.35rem;
  padding-top: 0.5rem;
  padding-right: 2.5rem;
  text-align: right;
}

.education-marker-dot {
  position: absolute;
  left: calc(var(--education-rail-x) - (var(--education-dot-size) / 2));
  top: 0.95rem;
  width: var(--education-dot-size);
  height: var(--education-dot-size);
  border-radius: 999px;
  border: 2px solid var(--accent);
  background: var(--surface-1);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
}

.education-rail-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent-ink);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.32rem 0.56rem;
}

.education-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: linear-gradient(165deg, var(--surface-1), color-mix(in srgb, var(--surface-2) 76%, var(--surface-3)));
  padding: 0.95rem 1.05rem;
  box-shadow: var(--shadow-sm);
}

.education-card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.2rem;
}

.education-logo-wrap {
  flex: 0 0 3.5rem;
  width: 3.5rem;
  height: 3.5rem;
  border: 1px solid var(--border);
  border-radius: 0.72rem;
  background: var(--surface-1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem;
}

.education-logo {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.education-logo--dark {
  display: none;
}

html[data-theme='dark'] .education-logo--light {
  display: none;
}

html[data-theme='dark'] .education-logo--dark {
  display: block;
}

.education-title-wrap .subheading {
  margin-top: 0.2rem;
}

.education-program-blurb {
  margin: 0.58rem 0 0;
  color: var(--text-2);
  font-size: 0.93rem;
  line-height: 1.58;
  font-weight: 450;
}

.education-badges {
  margin-top: 0.72rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.education-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-1);
  color: var(--text-1);
  font-size: 0.73rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.3rem 0.62rem;
}

.education-badge-alt {
  border-color: color-mix(in srgb, var(--accent) 33%, var(--border));
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent-ink);
}

.skills-toolbar {
  display: grid;
  gap: 0.8rem;
}

.skills-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skills-filter-btn {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-1);
  color: var(--text-1);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.48rem 0.78rem;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.skills-filter-btn:hover,
.skills-filter-btn:focus-visible {
  border-color: var(--accent);
}

.skills-filter-btn.is-active {
  color: var(--accent-ink);
  border-color: color-mix(in srgb, var(--accent) 44%, var(--border));
  background: color-mix(in srgb, var(--accent) 16%, var(--surface-1));
}

.skills-chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.skill-chip {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 0.58rem;
  row-gap: 0.18rem;
  border: 1px solid var(--border);
  border-left-width: 4px;
  border-left-color: color-mix(in srgb, var(--accent) 42%, var(--border));
  border-radius: 0.9rem;
  background: linear-gradient(175deg, var(--surface-1), var(--surface-2));
  padding: 0.7rem 0.78rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.skill-chip:hover {
  transform: translate3d(0, -2px, 0);
  box-shadow: var(--shadow-md);
}

.skill-chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
  color: var(--accent);
  font-size: 1rem;
  position: relative;
  z-index: 1;
}

.skill-chip-label {
  color: var(--text-1);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.3;
  position: relative;
  z-index: 1;
}

.skill-chip-group {
  grid-column: 1 / -1;
  color: var(--text-2);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

.skill-chip.group-software-development,
.skill-chip.group-desenvolvimento-software,
.skill-chip.group-desarrollo-software {
  border-left-color: var(--skill-group-software);
  background: linear-gradient(
    175deg,
    color-mix(in srgb, var(--skill-group-software) 7%, var(--surface-1)),
    color-mix(in srgb, var(--skill-group-software) 5%, var(--surface-2))
  );
}

.skill-chip.group-cloud-infrastructure,
.skill-chip.group-nuvem-infraestrutura,
.skill-chip.group-nube-infraestructura {
  border-left-color: var(--skill-group-cloud);
  background: linear-gradient(
    175deg,
    color-mix(in srgb, var(--skill-group-cloud) 7%, var(--surface-1)),
    color-mix(in srgb, var(--skill-group-cloud) 5%, var(--surface-2))
  );
}

.skill-chip.group-engineering-practices,
.skill-chip.group-praticas-engenharia,
.skill-chip.group-practicas-ingenieria {
  border-left-color: var(--skill-group-practices);
  background: linear-gradient(
    175deg,
    color-mix(in srgb, var(--skill-group-practices) 7%, var(--surface-1)),
    color-mix(in srgb, var(--skill-group-practices) 5%, var(--surface-2))
  );
}

.skill-chip.tier-core {
  border-top-color: var(--border);
  border-right-color: var(--border);
  border-bottom-color: var(--border);
}

.skill-chip.tier-core .skill-chip-label {
  font-weight: 800;
}

.skill-chip-core-star {
  position: absolute;
  bottom: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  color: #fbbf24;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
  opacity: 0.28;
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.35);
  pointer-events: none;
  z-index: 0;
}

.skill-chip.tier-advanced {
  opacity: 0.97;
}

.skill-chip.tier-working {
  opacity: 0.88;
  border-top-style: dashed;
  border-right-style: dashed;
  border-bottom-style: dashed;
  border-left-style: solid;
}

.skills-empty-state {
  margin: 0;
  color: var(--text-2);
  font-size: 0.95rem;
}

.motion-safe .reveal-on-load,
.motion-safe .reveal-on-scroll,
.motion-safe .reveal-card {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
}

.motion-safe .is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity 0.42s ease, transform 0.42s ease;
}

.motion-safe .stagger-1 {
  transition-delay: 0.04s;
}

.motion-safe .stagger-2 {
  transition-delay: 0.1s;
}

.motion-safe .stagger-3 {
  transition-delay: 0.16s;
}

.motion-safe .stagger-4 {
  transition-delay: 0.22s;
}

.motion-safe .stagger-5 {
  transition-delay: 0.28s;
}

.motion-safe .stagger-6 {
  transition-delay: 0.34s;
}

@media (min-width: 768px) {
  .resume-item {
    flex-direction: row !important;
    justify-content: space-between;
    align-items: flex-start;
  }

  .resume-item .resume-date {
    margin-left: 1.25rem;
    text-align: right;
  }
}

@media (max-width: 991.98px) {
  :root {
    --nav-height: 4.15rem;
  }

  .nav-lang-item,
  .nav-theme-item {
    margin-left: 0;
    margin-top: 0.55rem;
  }

  #mainNav .navbar-collapse {
    margin-top: 0.45rem;
    padding-top: 0.6rem;
    border-top: 1px solid var(--border);
  }

  .hero-image-shell {
    display: none;
  }

  .section-dots {
    display: none;
  }
}

@media (min-width: 992px) {
  .resume-section:not(.section-hero) .section-scroll-body {
    padding-top: clamp(3rem, 6vh, 4rem);
    padding-bottom: clamp(3rem, 6vh, 4rem);
  }

  .section-hero .hero-grid > .col-lg-6 {
    position: relative;
    display: flex;
    align-items: flex-end;
    margin: 0;
    padding-bottom: 0;
  }

  .section-hero .hero-image-shell {
    position: absolute;
    left: 0;
    right: 0;
    top: clamp(2rem, 4vh, 3rem);
    bottom: 0;
    padding: 0;
    margin: 0;
  }

  .section-hero .hero-image {
    width: 146%;
    height: 180%;
    max-width: 146%;
    object-fit: contain;
    object-position: bottom right;
    display: block;
    margin: 0;
    padding: 0;
  }
}

@media (max-width: 767.98px) {
  :root {
    --nav-height: 4rem;
    --section-space: 4.2rem;
  }

  .container,
  .nav-shell {
    width: calc(100% - 1.6rem);
  }

  h1 {
    font-size: clamp(2.4rem, 13vw, 3.5rem);
  }

  .subheading {
    font-size: 0.98rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-button {
    width: 100%;
  }

  .resume-item .resume-date {
    white-space: normal;
  }

  .education-timeline::before {
    left: var(--education-rail-x);
  }

  .education-timeline {
    --education-rail-x: 0.72rem;
    --education-dot-size: 0.66rem;
  }

  .education-timeline-item {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .education-rail {
    padding-top: 0;
    padding-right: 0;
    padding-left: 1.35rem;
    text-align: left;
    min-height: 1.2rem;
  }

  .education-marker-dot {
    left: calc(var(--education-rail-x) - (var(--education-dot-size) / 2));
    top: 0.42rem;
  }

  .education-rail-date {
    font-size: 0.72rem;
    padding: 0.3rem 0.55rem;
  }

  .education-card {
    padding: 0.95rem;
  }

  .education-card-header {
    gap: 0.65rem;
    margin-bottom: 0.6rem;
  }

  .education-logo-wrap {
    width: 3rem;
    height: 3rem;
    flex-basis: 3rem;
  }

  .skills-toolbar {
    padding: 1rem;
    gap: 0.8rem;
  }

  .skills-chip-grid {
    grid-template-columns: 1fr;
    gap: 0.58rem;
  }

  .skill-chip {
    padding: 0.62rem 0.68rem;
  }

  .skills-filter-btn {
    font-size: 0.78rem;
    padding: 0.42rem 0.68rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
