:root {
  /* Cursor personalizado: default = círculo; pointer = alvo/clicável (hotspot no centro) */
  --cursor-default: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26'%3E%3Ccircle cx='13' cy='13' r='5' fill='%23f5f5f5' stroke='%230b0b0b' stroke-width='1.5'/%3E%3C/svg%3E") 13 13, auto;
  --cursor-pointer: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26'%3E%3Ccircle cx='13' cy='13' r='6' fill='none' stroke='%23a3a3a3' stroke-width='2'/%3E%3Ccircle cx='13' cy='13' r='2.5' fill='%23f5f5f5'/%3E%3C/svg%3E") 13 13, pointer;

  /* Dark greys - high contrast */
  --background: #0b0b0b;
  --text-color: #f5f5f5;
  --text-muted: #737373;
  --border-color: #262626;

  --edge: color-mix(in srgb, var(--border-color) 80%, var(--background));

  --card-bg: #141414;
  --bg-color: var(--background);
  --hero-text: var(--text-color);
  --button-bg: #f5f5f5;
  --button-text: #0c0c0c;
  --accent-color: #a3a3a3;
  --link-color: #f5f5f5;

  --hover-bg-color: #262626;
  --hover-color: #ffffff;

  --font-sans: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: transform 0.25s var(--ease-smooth), opacity 0.25s ease-out;

  /* Layout */
  --layout-max: 1400px;
  --layout-padding: clamp(24px, 5vw, 48px);

  /* Sidebar (themeable) */
  --sidebar-bg: linear-gradient(180deg, #050505 0%, #070707 35%, #080808 70%, #060606 100%);
  --sidebar-border: #151515;
  --sidebar-toggle-bg: #1a1a1a;
  --sidebar-toggle-color: #a3a3a3;
  --sidebar-toggle-hover-bg: #262626;
  --sidebar-toggle-hover-color: #f5f5f5;
  --sidebar-divider-bg: #252525;
  --sidebar-link-color: #737373;
  --sidebar-link-hover-color: #f5f5f5;
  --sidebar-link-hover-bg: rgba(255, 255, 255, 0.06);
  --sidebar-active-bg: rgba(255, 255, 255, 0.1);
  --sidebar-lang-color: #737373;
  --sidebar-lang-hover-color: #f5f5f5;
  --sidebar-lang-hover-bg: rgba(255, 255, 255, 0.06);
  --sidebar-lang-active-bg: #252525;
  --sidebar-lang-active-border: #333;
}

/* Tema claro (invertido: data-theme="light" = visual escuro, data-theme="dark" = visual claro) */
[data-theme="light"] {
  --background: #0b0b0b;
  --text-color: #f5f5f5;
  --text-muted: #737373;
  --border-color: #262626;
  --card-bg: #141414;
  --bg-color: var(--background);
  --hero-text: var(--text-color);
  --button-bg: #f5f5f5;
  --button-text: #0c0c0c;
  --accent-color: #a3a3a3;
  --link-color: #f5f5f5;
  --hover-bg-color: #262626;
  --hover-color: #ffffff;
  --cursor-default: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26'%3E%3Ccircle cx='13' cy='13' r='5' fill='%23f5f5f5' stroke='%230b0b0b' stroke-width='1.5'/%3E%3C/svg%3E") 13 13, auto;
  --cursor-pointer: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26'%3E%3Ccircle cx='13' cy='13' r='6' fill='none' stroke='%23a3a3a3' stroke-width='2'/%3E%3Ccircle cx='13' cy='13' r='2.5' fill='%23f5f5f5'/%3E%3C/svg%3E") 13 13, pointer;
  --sidebar-bg: linear-gradient(180deg, #050505 0%, #070707 35%, #080808 70%, #060606 100%);
  --sidebar-border: #151515;
  --sidebar-toggle-bg: #1a1a1a;
  --sidebar-toggle-color: #a3a3a3;
  --sidebar-toggle-hover-bg: #262626;
  --sidebar-toggle-hover-color: #f5f5f5;
  --sidebar-divider-bg: #252525;
  --sidebar-link-color: #737373;
  --sidebar-link-hover-color: #f5f5f5;
  --sidebar-link-hover-bg: rgba(255, 255, 255, 0.06);
  --sidebar-active-bg: rgba(255, 255, 255, 0.1);
  --sidebar-lang-color: #737373;
  --sidebar-lang-hover-color: #f5f5f5;
  --sidebar-lang-hover-bg: rgba(255, 255, 255, 0.06);
  --sidebar-lang-active-bg: #252525;
  --sidebar-lang-active-border: #333;
}

[data-theme="dark"] {
  --background: #f5f5f5;
  --text-color: #171717;
  --text-muted: #525252;
  --border-color: #d4d4d4;
  --card-bg: #e5e5e5;
  --bg-color: var(--background);
  --hero-text: var(--text-color);
  --button-bg: #171717;
  --button-text: #f5f5f5;
  --accent-color: #525252;
  --link-color: #171717;
  --hover-bg-color: #e5e5e5;
  --hover-color: #0a0a0a;
  --cursor-default: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26'%3E%3Ccircle cx='13' cy='13' r='5' fill='%23171717' stroke='%23f5f5f5' stroke-width='1.5'/%3E%3C/svg%3E") 13 13, auto;
  --cursor-pointer: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26'%3E%3Ccircle cx='13' cy='13' r='6' fill='none' stroke='%23525252' stroke-width='2'/%3E%3Ccircle cx='13' cy='13' r='2.5' fill='%23171717'/%3E%3C/svg%3E") 13 13, pointer;
  --sidebar-bg: linear-gradient(180deg, #fafafa 0%, #f0f0f0 35%, #ebebeb 70%, #f5f5f5 100%);
  --sidebar-border: #d4d4d4;
  --sidebar-toggle-bg: #e5e5e5;
  --sidebar-toggle-color: #525252;
  --sidebar-toggle-hover-bg: #d4d4d4;
  --sidebar-toggle-hover-color: #171717;
  --sidebar-divider-bg: #d4d4d4;
  --sidebar-link-color: #737373;
  --sidebar-link-hover-color: #171717;
  --sidebar-link-hover-bg: rgba(0, 0, 0, 0.06);
  --sidebar-active-bg: rgba(0, 0, 0, 0.08);
  --sidebar-lang-color: #737373;
  --sidebar-lang-hover-color: #171717;
  --sidebar-lang-hover-bg: rgba(0, 0, 0, 0.06);
  --sidebar-lang-active-bg: #e5e5e5;
  --sidebar-lang-active-border: #a3a3a3;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero .terminal-card {
    animation: none;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Cursor personalizado em elementos clicáveis */
a, button, [role="button"], [tabindex="0"]:not([tabindex="-1"]), .card-link, .sidebar-link, .sidebar-lang-btn, .hamburger-menu, .language-toggle, .language-option, .mobile-lang-btn {
  cursor: var(--cursor-pointer);
}

/* Screen-reader only: visible to assistive tech, hidden visually */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link - visible on focus for keyboard/screen reader users */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--button-bg);
  color: var(--button-text);
  font-weight: 500;
  text-decoration: none;
  border-radius: 4px;
  transition: left 0.2s ease;
}
.skip-link:focus {
  left: 1rem;
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  max-width: 100%;
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  margin: 0 auto;
  -ms-overflow-style: none;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  cursor: var(--cursor-default);
  color: var(--text-color);
  position: relative;
  transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Theme transition on main content */
.layout-with-sidebar,
#main-content {
  transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* ========== Sidebar: uma coluna, centralizada, sem pontilhado ========== */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 72px;
  z-index: 1000;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 0;
  transition: width 0.25s ease, border-color 0.4s ease, background 0.4s ease;
  box-shadow: 2px 0 24px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .sidebar {
  box-shadow: 2px 0 24px rgba(0, 0, 0, 0.08);
}

.sidebar-toggle {
  position: absolute;
  right: -12px;
  top: 20px;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: var(--sidebar-toggle-bg);
  color: var(--sidebar-toggle-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  z-index: 1;
  transition: background 0.2s ease, color 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.sidebar-toggle:hover {
  background: var(--sidebar-toggle-hover-bg);
  color: var(--sidebar-toggle-hover-color);
}
.sidebar-toggle i {
  transition: transform 0.25s ease;
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  flex: 1;
  min-height: 0;
  width: 72px;
}

.sidebar-nav,
.sidebar-external {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.sidebar-link {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sidebar-link-color);
  text-decoration: none;
  transition: color 0.2s ease;
  flex-shrink: 0;
  box-sizing: border-box;
}

.sidebar-icon-wrap {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.sidebar-link:hover,
.sidebar-link:focus-visible {
  color: var(--sidebar-link-hover-color);
}
.sidebar-link:hover .sidebar-icon-wrap,
.sidebar-link:focus-visible .sidebar-icon-wrap {
  background: var(--sidebar-link-hover-bg);
}

.sidebar-nav-internal .sidebar-link.is-active {
  color: var(--sidebar-link-hover-color);
  transition: color 0.25s ease;
}
.sidebar-nav-internal .sidebar-link.is-active .sidebar-icon-wrap {
  background: var(--sidebar-active-bg);
  transition: background 0.25s ease;
}
.sidebar-nav-internal .sidebar-link.is-active i {
  color: inherit;
}

.sidebar-link i {
  font-size: 18px;
}

.sidebar-label {
  position: absolute;
  left: 100%;
  margin-left: 12px;
  padding: 6px 10px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-color);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, background 0.4s ease, border-color 0.4s ease, color 0.4s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .sidebar-label {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.sidebar-link:hover .sidebar-label,
.sidebar-link:focus-visible .sidebar-label {
  opacity: 1;
}

/* Divisor: linha sólida, sem pontilhado; cresce quando sidebar expande */
.sidebar-divider {
  width: 32px;
  height: 1px;
  margin: 14px 0;
  flex-shrink: 0;
  align-self: center;
  background: var(--sidebar-divider-bg);
  border: none;
  transition: width 0.25s ease, margin 0.25s ease, background 0.4s ease;
}

.sidebar-resume {
  margin-top: 0;
}

/* Theme toggle in sidebar */
.sidebar-theme {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.sidebar-theme-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--sidebar-link-color);
  cursor: pointer;
  transition: color 0.2s ease;
  border-radius: 8px;
}

.sidebar-theme-btn:hover {
  color: var(--sidebar-link-hover-color);
}

.sidebar-theme-btn:hover .sidebar-theme-icon-wrap {
  background: var(--sidebar-link-hover-bg);
}

.sidebar-theme-icon-wrap {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.2s ease;
  position: relative;
}

.sidebar-theme-icon {
  font-size: 18px;
  position: absolute;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

/* Ícone = modo para o qual vamos mudar: em dark mostramos sol (ir para claro), em light mostramos lua (ir para escuro) */
.sidebar-theme-icon--light {
  opacity: 1;
  transform: rotate(0) scale(1);
}

.sidebar-theme-icon--dark {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

[data-theme="light"] .sidebar-theme-icon--light {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

[data-theme="light"] .sidebar-theme-icon--dark {
  opacity: 1;
  transform: rotate(0) scale(1);
}

.sidebar-theme-label {
  display: none;
}

.sidebar-lang {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.sidebar-lang-btn {
  width: 36px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--sidebar-lang-color);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease;
}

.sidebar-lang-indicator {
  width: 36px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.sidebar-lang-btn .lang-full {
  display: none;
}

.sidebar-lang-btn:hover {
  color: var(--sidebar-lang-hover-color);
}
.sidebar-lang-btn:hover .sidebar-lang-indicator {
  background: var(--sidebar-lang-hover-bg);
}

.sidebar-lang-btn.sidebar-lang-active {
  color: var(--sidebar-lang-hover-color);
}
.sidebar-lang-btn.sidebar-lang-active .sidebar-lang-indicator {
  background: var(--sidebar-lang-active-bg);
  border: 1px solid var(--sidebar-lang-active-border);
}

.layout-with-sidebar {
  margin-left: 0;
  min-height: 100vh;
  transition: margin-left 0.25s ease;
}

/* Section dividers (hr between topics) */
.section-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 2.5rem auto;
  width: 100%;
  max-width: var(--layout-max);
  padding: 0 var(--layout-padding);
  box-sizing: border-box;
  transition: border-color 0.4s ease;
}

/* Desktop: sidebar sempre aberta, esconder topbar e botão recolher */
@media (min-width: 1025px) {
  #navbar {
    display: none !important;
  }
  .sidebar-toggle {
    display: none;
  }
  .layout-with-sidebar {
    margin-left: 220px;
  }
}

/* Sidebar expandida: largura maior e labels visíveis */
@media (min-width: 1025px) {
  .sidebar.expanded {
    width: 220px;
    align-items: stretch;
  }
  .sidebar.expanded .sidebar-toggle i {
    transform: rotate(180deg);
  }
  .sidebar.expanded .sidebar-inner {
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
    padding: 0 18px;
    max-width: none;
  }
  .sidebar.expanded .sidebar-nav,
  .sidebar.expanded .sidebar-external {
    align-items: stretch;
  }
  .sidebar.expanded .sidebar-link {
    width: auto;
    min-width: 44px;
    height: 44px;
    justify-content: flex-start;
    padding-left: 14px;
    padding-right: 14px;
    gap: 10px;
  }
  .sidebar.expanded .sidebar-label {
    position: static;
    margin-left: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    font-size: 13px;
  }
  /* Risco centralizado com espaçamento dos dois lados (respeita padding do inner) */
  .sidebar.expanded .sidebar-divider {
    width: 100%;
    min-width: 0;
    align-self: stretch;
    margin: 12px 0;
    box-sizing: border-box;
  }
  .sidebar.expanded .sidebar-theme {
    align-items: stretch;
    width: 100%;
  }
  .sidebar.expanded .sidebar-theme-btn {
    width: 100%;
    min-width: 0;
    height: 44px;
    justify-content: flex-start;
    padding-left: 0;
    padding-right: 14px;
    gap: 10px;
  }
  .sidebar.expanded .sidebar-theme-icon-wrap {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }
  .sidebar.expanded .sidebar-theme-label {
    display: inline;
    font-size: 13px;
    margin-left: 0;
  }
  .sidebar.expanded .sidebar-lang {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .sidebar.expanded .sidebar-lang-btn {
    width: 100%;
    min-width: 0;
    height: 44px;
    justify-content: flex-start;
    align-items: center;
    padding-left: 0;
    padding-right: 14px;
    gap: 10px;
    font-size: 13px;
  }
  .sidebar.expanded .sidebar-lang-indicator {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 8px;
  }
  .sidebar.expanded .sidebar-lang-btn.sidebar-lang-active .sidebar-lang-indicator {
    background: var(--sidebar-active-bg);
    border-color: var(--sidebar-lang-active-border);
  }
  .sidebar.expanded .sidebar-lang-btn:hover .sidebar-lang-indicator {
    background: var(--sidebar-link-hover-bg);
  }
  .sidebar.expanded .sidebar-lang-btn .lang-short {
    display: inline;
    font-size: 11px;
    font-weight: 500;
  }
  .sidebar.expanded .sidebar-lang-btn .lang-full {
    display: inline;
  }
  .layout-with-sidebar {
    margin-left: 72px;
  }
  .sidebar.expanded + .layout-with-sidebar {
    margin-left: 220px;
  }
}

@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
  }
  .sidebar-toggle {
    display: none;
  }
  .layout-with-sidebar {
    margin-left: 0;
  }
}

/* Layout wrapper - full width up to 1400px, centered */
.layout-wrap {
  width: 100%;
  max-width: var(--layout-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--layout-padding);
  padding-right: var(--layout-padding);
}

/* Scroll-in transitions (viewport reveal on scroll) */
.scroll-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-smooth), transform 0.6s var(--ease-smooth);
}

.scroll-in.scroll-in-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .scroll-in {
    opacity: 1;
    transform: none;
  }
}

/* Divisões sólidas (estilo alinhado à sidebar) */
.dashed-border-left {
  border-left: 1px solid var(--edge);
  padding-left: 24px;
}

.dashed-border-right {
  border-right: 1px solid var(--edge);
  padding-right: 24px;
}

.dashed-border-top {
  border-top: 1px solid var(--edge);
  padding-top: 24px;
}

.dashed-border-bottom {
  border-bottom: 1px solid var(--edge);
  padding-bottom: 24px;
}

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

/* NAV - Monochrome Terminal Style (só #navbar; sidebar não usa esses estilos) */
#navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
  padding: 0 var(--layout-padding);
  max-width: 100%;
  margin: 0 auto;
  height: 80px;
  position: relative;
  background: var(--bg-color);
  transition: background-color 0.3s ease;
  overflow: visible;
  z-index: 1000;
}

@media (min-width: 1400px) {
  #navbar {
    max-width: var(--layout-max);
  }
}

#navbar::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100vw;
  border-bottom: 1px solid var(--edge);
  height: 0;
  pointer-events: none;
  z-index: 1;
  transition: border-color 0.3s ease;
}

#navbar .left {
  display: flex;
  align-items: center;
  padding-left: 0;
  position: relative;
  z-index: 2;
  min-width: 0;
}

#navbar .left .logo {
  font-family: var(--font-mono);
  font-size: 20px;
  margin: 0;
  line-height: 1.2;
  vertical-align: middle;
}

/* Navbar Right - Social Pills */
#navbar .right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

#navbar .right .language-dropdown {
  z-index: 10001;
}

#navbar .right a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: transparent;
  color: var(--text-color);
  border: 1px solid var(--border-color);
  opacity: 0.85;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.22s var(--ease-smooth), opacity 0.22s ease-out, background-color 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

#navbar .right a:hover,
#navbar .right a:focus {
  opacity: 1;
  background: var(--hover-bg-color);
  border-color: var(--border-color);
  outline: none;
  transform: translateY(-2px);
}

#navbar .right a:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

#navbar .right a i {
  font-size: 16px;
  flex-shrink: 0;
}

#navbar .right a span {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Hamburger Menu */
.hamburger-menu {
  display: none;
  flex-shrink: 0;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  cursor: pointer;
  padding: 6px;
  z-index: 10003;
  transition: all 0.3s ease;
}

.hamburger-menu:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.hamburger-menu:focus {
  outline: none;
}

.hamburger-menu:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.hamburger-menu.active {
  border-color: rgba(255, 255, 255, 0.5);
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background: var(--text-color);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Language Dropdown */
/* Desktop/Tablet Language Dropdown */
.language-dropdown.desktop-language-selector {
  position: relative;
  display: inline-block;
  z-index: 10002;
  isolation: isolate;
  margin: 0;
  padding: 0;
}

/* Nav theme toggle (tablet/mobile) - hidden on desktop */
.nav-theme-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 8px 16px;
  margin: 0;
  min-height: 40px;
  height: auto;
  width: auto;
  min-width: 44px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.22s ease;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

.nav-theme-toggle:hover,
.nav-theme-toggle:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  outline: none;
}

.nav-theme-toggle:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

.nav-theme-icon-wrap {
  position: relative;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-theme-icon {
  position: absolute;
  font-size: 18px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Ícone = modo para o qual vamos mudar: em dark mostramos sol (ir para claro), em light mostramos lua (ir para escuro) */
.nav-theme-icon--light {
  opacity: 1;
  transform: rotate(0) scale(1);
}

.nav-theme-icon--dark {
  opacity: 0;
  transform: rotate(90deg) scale(0.6);
}

[data-theme="light"] .nav-theme-icon--light {
  opacity: 0;
  transform: rotate(-90deg) scale(0.6);
}

[data-theme="light"] .nav-theme-icon--dark {
  opacity: 1;
  transform: rotate(0) scale(1);
}

/* Mobile Language Selector - Hidden by default */
.mobile-language-selector {
  display: none;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  margin: 0;
  background: transparent;
  color: var(--text-color);
  border: 1px solid var(--border-color);
  opacity: 0.8;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  white-space: nowrap;
  font-family: var(--font-sans);
  box-sizing: border-box;
}

.language-toggle:hover,
.language-toggle:focus {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  outline: none;
  transform: translateY(-1px);
}

.language-toggle:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

.language-toggle .fa-chevron-down {
  font-size: 12px;
  transition: transform 0.3s ease;
  margin-left: 6px;
}

.language-toggle span {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Language Dropdown Menu */
.language-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  min-width: 80px;
  width: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 99999;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  pointer-events: none;
  display: block;
  margin: 0;
  padding: 0;
  transform-origin: top right;
}

.language-dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.language-option {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 16px;
  background: transparent;
  border: none;
  color: var(--text-color);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  font-family: var(--font-sans);
}

.language-option:hover {
  background: rgba(255, 255, 255, 0.1);
}

.language-option:focus {
  outline: none;
}

.language-option:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: -2px;
  background: rgba(255, 255, 255, 0.15);
}

.language-option:first-child {
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

.language-option:last-child {
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}

.language-option span {
  font-size: 14px;
  font-weight: 500;
}

/* Tooltip Styles */
.tooltip-container {
  max-width: 300px;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.tooltip-dark {
  background: rgba(0, 0, 0, 0.9);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========== Hero (refatorado: texto branco, layout limpo, títulos rodando) ========== */
.hero {
  padding: 24px var(--layout-padding);
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-inner {
  width: 100%;
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 28px 24px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  position: relative;
  transition: background 0.5s ease, border-color 0.5s ease;
}

.hero-grid {
  display: grid;
  gap: 32px;
  align-items: start;
  grid-template-columns: 1fr;
}

@media (min-width: 886px) {
  .hero-grid {
    grid-template-columns: 200px 1fr;
    gap: 40px;
  }
}

.hero-photo-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
  transition: border-color 0.5s ease;
}

@media (min-width: 886px) {
  .hero-photo-wrap {
    width: 200px;
    height: 200px;
    margin: 0;
  }
}

.hero-photo-wrap img,
.hero-photo-wrap .profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 1s ease-in-out;
}

.hero-photo-wrap .hero-photo-cycle {
  opacity: 0;
  z-index: 1;
}

.hero-photo-wrap.show-musashi .hero-photo-default {
  opacity: 0;
}

.hero-photo-wrap.show-musashi .hero-photo-cycle {
  opacity: 1;
}

.hero-body {
  min-width: 0;
}

.hero-name {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0 0 4px 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.5s ease;
}

.hero-verified {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.hero-role {
  font-size: 0.95rem;
  color: var(--text-color);
  margin: 0 0 16px 0;
  opacity: 0.9;
  min-height: 1.5em;
  transition: color 0.5s ease;
}

.hero-role .role-text {
  color: var(--text-color);
}

.hero-bio {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text-color);
  margin: 0 0 20px 0;
  opacity: 0.92;
  transition: color 0.5s ease;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
  font-size: 0.875rem;
  color: var(--text-color);
  transition: color 0.5s ease, border-color 0.5s ease;
}

.hero-meta i {
  opacity: 0.8;
}

.hero-meta-label {
  opacity: 0.85;
}

.hero-meta-value {
  font-weight: 600;
  color: var(--text-color);
  transition: color 0.5s ease;
}

.hero-metrics-summary {
  margin: 0 0 12px 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.hero-location,
.hero-languages {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 8px 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hero-location i,
.hero-languages i {
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.85;
}

.hero-languages {
  margin-bottom: 16px;
}

.hero-diffs-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0 0 12px 0;
  transition: color 0.5s ease;
}

.hero-diffs-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-diffs-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-color);
  opacity: 0.9;
  transition: color 0.5s ease;
}

.hero-diffs-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--text-color);
  opacity: 0.7;
  transition: color 0.5s ease;
}

/* Hero: botão único de copiar email */
.hero-email-wrap {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  width: 100%;
}

.hero-email-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--card-bg);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: var(--font-mono);
  font-weight: 500;
  cursor: var(--cursor-pointer);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease-smooth), box-shadow 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-email-copy-btn:hover {
  background: var(--hover-bg-color);
  border-color: var(--border-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .hero-email-copy-btn:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.hero-email-copy-btn:focus {
  outline: none;
}

.hero-email-copy-btn:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
  border-color: var(--accent-color);
}

.hero-email-copy-btn .fa-envelope {
  font-size: 1rem;
  opacity: 0.9;
}

.hero-email-copy-btn__text {
  letter-spacing: 0.02em;
}

.hero-email-copy-btn__copy-icon {
  font-size: 0.75rem;
  opacity: 0.6;
  margin-left: 2px;
}

/* Estado "copiado" no hero */
.hero-email-copy-btn.is-copied {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.5);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.2);
}

.hero-email-copy-btn.is-copied .hero-email-copy-btn__copy-icon::before {
  content: "\f00c";
}

/* Terminal Header */
.terminal-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 32px 0 0 0;
}

.terminal-icons {
  display: flex;
  gap: 8px;
}

.icon-button {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-color);
  background: transparent;
  transition: all 0.3s ease;
  text-decoration: none;
  flex-shrink: 0;
}

.icon-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text-color);
}

/* Terminal Content */
.terminal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  margin-bottom: 0;
}

/* Hero horizontal layout: foto à esquerda, texto à direita (desktop) */
@media (min-width: 769px) {
  .terminal-content {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 32px;
  }

  .profile-image-wrapper {
    margin: 0;
    width: 160px;
    height: 160px;
    flex-shrink: 0;
  }

  .profile-info {
    flex: 1;
    min-width: 0;
  }

  .profile-bio,
  .profile-highlights,
  .profile-differentiators,
  .profile-differentiators .differentiators-list {
    text-align: left;
  }

  .profile-highlights {
    justify-content: flex-start;
  }
}

.profile-image-wrapper {
  flex-shrink: 0;
  position: relative;
  width: 120px;
  height: 120px;
  max-width: 100%;
  margin: 0 auto 24px;
  border-radius: 4px;
  overflow: hidden;
  cursor: default;
  border: 1px solid var(--border-color);
}

.profile-image {
  width: 100%;
  height: 100%;
  max-width: 100%;
  border-radius: 4px;
  object-fit: cover;
  object-position: center;
  background: var(--bg-color);
  display: block;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: absolute;
  top: 0;
  left: 0;
}

.profile-image.hover-image {
  opacity: 0;
  z-index: 1;
}

.profile-image-wrapper:hover .profile-image.default-image {
  opacity: 0;
  transform: scale(1.1);
}

.profile-image-wrapper:hover .profile-image.hover-image {
  opacity: 1;
  transform: scale(1);
}

.profile-image-wrapper:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

/* Profile Info */
.profile-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}

.profile-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 4px;
}

.profile-description {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 8px;
}

.profile-bio {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-color);
  opacity: 0.85;
  margin: 12px 0 0 0;
  text-align: center;
}

.profile-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  justify-content: center;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.highlight-item i {
  font-size: 14px;
  color: var(--text-color);
  opacity: 0.7;
}

.highlight-label {
  color: var(--text-color);
  opacity: 0.6;
  font-weight: 500;
}

.highlight-value {
  color: var(--text-color);
  opacity: 0.9;
  font-weight: 600;
}

.profile-differentiators {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  max-width: 90%;
  margin: 0 auto;
}

.differentiators-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
  opacity: 0.9;
}

.differentiators-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.differentiators-list li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-color);
  opacity: 0.8;
}

.differentiators-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--text-color);
  opacity: 0.6;
  font-weight: bold;
}

.profile-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 20px;
  padding-bottom: 0;
  margin-top: 8px;
  border-top: 1px solid var(--border-color);
}

.profile-footer .profile-email {
  margin: 0 auto;
}

.name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.profile-name {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-color);
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  vertical-align: middle;
}

.verified-badge {
  width: 24px;
  height: 24px;
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
  margin: 0;
  fill: var(--accent-color);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 16px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-color);
  background: transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-color);
  display: inline-block;
}

.profile-title {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-color);
  margin: 4px 0 0 0;
  opacity: 0.7;
  min-height: 20px;
}

.role-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  filter: blur(0px);
  opacity: 0.9;
  transition: color 0.3s ease;
  will-change: opacity, filter, transform;
}

.role-enter {
  animation: roleBlurIn 0.55s ease forwards;
}

.role-exit {
  animation: roleBlurOut 0.35s ease forwards;
}

@keyframes roleBlurIn {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(10px) scale(0.98);
  }

  60% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }

  100% {
    opacity: 0.9;
  }
}

@keyframes roleBlurOut {
  0% {
    opacity: 0.9;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }

  100% {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(-8px) scale(0.98);
  }
}

.profile-email {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-color);
  opacity: 0.8;
  justify-content: center;
}

.profile-email i {
  font-size: 13px;
}

/* Terminal Tagline - Removed, content moved to profile-description */

/* GitHub Activity Section - Between Hero and Projects */
.github-activity-section {
  padding: 24px 64px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--bg-color);
  margin-bottom: 30px;
  transition: background-color 0.3s ease;
}

.building-activity {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: transparent;
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.building-activity:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.building-activity i {
  font-size: 16px;
}

.building-info {
  display: flex;
  flex-direction: column;
}

.building-label {
  font-size: 13px;
  font-weight: 500;
}

/* CLI Command Section - Minimal */
.cli-section {
  padding: 32px 48px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cli-top {
  padding: 24px 48px 8px;
}

.cli-minimal {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 8px 16px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  background-clip: padding-box;
}

/* Skills Section - Pill-Shaped Layout */
.skills-section {
  position: relative;
  background: var(--bg-color);
  color: var(--text-color);
  padding: 60px 24px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.skills-section::before,
.projects::before,
.contact::before,
.site-footer::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 100vw;
  border-top: 1px solid var(--edge);
  height: 0;
  pointer-events: none;
  z-index: 0;
  transition: border-color 0.3s ease;
}

.skills-wrap {
  max-width: 700px;
  margin: 0 auto;
}

.skills-title {
  text-align: left;
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 2rem 0;
  letter-spacing: -0.02em;
  color: var(--text-color);
}

.skills-subtitle {
  text-align: center;
  font-size: 16px;
  font-weight: 400;
  color: var(--text-color);
  opacity: 0.6;
  margin: 0 0 3rem 0;
  font-style: italic;
}

/* Category Filter Buttons */
.skills-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 2.5rem;
  padding: 6px;
  background: rgba(128, 128, 128, 0.05);
  border-radius: 14px;
  border: 1px solid var(--border-color);
  opacity: 0.6;
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
  transition: opacity 0.3s ease, border-color 0.3s ease;
}

/* Section Heading */
.section-heading {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 32px;
  color: var(--text-color);
  letter-spacing: -0.025em;
}

/* Stack Grid */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.stack-item {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.2s ease;
  aspect-ratio: 1;
  text-decoration: none;
}

.stack-item:hover {
  opacity: 0.7;
}

.stack-item img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

/* GitHub Chart */
.github-chart-link {
  display: block;
  transition: opacity 0.2s ease;
  max-width: 700px;
  margin: 0 auto;
}

.github-chart-link:hover {
  opacity: 0.85;
}

.github-chart {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  overflow: hidden;
}

/* ========== TABLET RESPONSIVE (1024px and below) ========== */
@media (max-width: 1024px) {

    /* Navigation */
  nav {
    padding: 0 var(--layout-padding);
  }

  nav .right {
    gap: 10px;
  }

  nav .right a {
    padding: 7px 14px;
    font-size: 13px;
  }

  nav .right a i {
    font-size: 15px;
  }

  nav .right a span {
    font-size: 13px;
  }

  .language-toggle {
    padding: 7px 14px;
    font-size: 13px;
  }

  /* Hero Section */
  .hero {
    padding: 40px 32px;
  }

  .terminal-card {
    max-width: 850px;
  }
  
  .terminal-content {
    gap: 24px;
  }
  
  .profile-image-wrapper {
    width: 140px;
    height: 140px;
  }

  .profile-name {
    font-size: 32px;
  }

  /* GitHub Activity Section */
  .github-activity-section {
    padding: 18px 32px;
  }

  /* Projects Section */
  .projects {
    padding: 40px 32px;
  }

  .projects-title {
    font-size: 32px;
    margin-bottom: 24px;
  }

  .projects-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0;
  }

  .project-card {
    width: 100%;
    height: auto;
    min-height: 350px;
  }

  .card-image-container {
    width: 100%;
    height: 140px;
  }

  .card-content {
    padding: 16px;
  }

  .card-label {
    font-size: 11px;
  }

  .card-title {
    font-size: 18px;
    line-height: 1.1;
  }

  .card-tag {
    font-size: 10px;
    padding: 3px 8px;
  }

  /* Skills Section */
  .skills-section {
    padding: 40px 32px;
  }

  .skills-title {
    font-size: 32px;
    margin-bottom: 24px;
  }

  /* Contact Section */
  .contact {
    padding: 40px 32px 40px;
  }

  .contact-title {
    font-size: 32px;
  }
}

/* ========== MOBILE (885px and below: hamburger, menu dropdown) ========== */
/* Tablet & mobile: show theme toggle in nav + top bar fixo com animação */
@media (max-width: 1024px) {
  .nav-theme-toggle {
    display: inline-flex;
  }

  /* Top bar fixa (sticky) que segue o usuário ao rolar */
  #navbar {
    position: sticky;
    top: 0;
    z-index: 10005;
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
  }

  #navbar.nav-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  }

  [data-theme="light"] #navbar.nav-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  }
}

/* ~870px: navbar mais compacta para não quebrar o layout */
@media (max-width: 900px) {
  #navbar {
    padding: 0 16px;
    gap: 8px;
    height: 64px;
  }

  #navbar .left .logo {
    font-size: 16px;
  }

  #navbar .right {
    gap: 8px;
  }

  #navbar .right a,
  .nav-theme-toggle,
  .language-toggle {
    padding: 6px 12px;
    font-size: 13px;
  }

  #navbar .right a i {
    font-size: 14px;
  }

  #navbar .right a span {
    font-size: 13px;
  }

  .language-toggle span {
    font-size: 13px;
  }
}

@media (max-width: 885px) {

  /* Navigation */
  nav {
    padding: 0 20px;
    height: 70px;
  }

  /* Logo: uma linha, reticências em telas pequenas para não quebrar o layout */
  #navbar .left {
    flex: 1;
    min-width: 0;
    overflow: hidden;
  }
  #navbar .left .logo {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Hamburger Menu - Show on Mobile */
  .hamburger-menu {
    display: flex;
  }

  /* Hide nav links by default on mobile */
  nav .right {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 12px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    z-index: 10002;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  nav .right .language-dropdown {
    z-index: 10004;
    position: relative;
  }

  nav .right.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  /* Equalizar altura dos itens do menu mobile */
  nav .right a,
  nav .right .nav-theme-toggle {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }

  /* Hide desktop dropdown on mobile */
  .desktop-language-selector {
    display: none !important;
  }
  
  /* Show mobile language selector */
  .mobile-language-selector {
    display: flex !important;
    gap: 8px;
    width: 100%;
    justify-content: center;
    align-items: center;
  }
  
  .mobile-lang-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-sans);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 48px;
  }
  
  .mobile-lang-btn:hover,
  .mobile-lang-btn:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    outline: none;
  }
  
  .mobile-lang-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
  }
  
  .mobile-lang-btn.active {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
  }
  
  .mobile-lang-btn span {
    font-size: 14px;
    font-weight: inherit;
  }

  nav .right a,
  nav .right .nav-theme-toggle,
  nav .right .mobile-language-selector {
    width: 100%;
    justify-content: center;
  }

  nav .right .nav-theme-toggle {
    width: 100%;
    height: 48px;
    min-height: 48px;
  }

  nav .right a {
    padding: 12px 16px;
    font-size: 14px;
  }

  nav .right a i {
    font-size: 16px;
  }

  nav .right a span {
    display: inline;
  }

  .language-toggle {
    padding: 6px 12px;
    font-size: 13px;
  }

  .language-dropdown-menu {
    right: 20px !important;
    left: auto !important;
    min-width: 100px;
    max-width: calc(100vw - 40px);
    z-index: 100000 !important;
  }
  
  .language-dropdown {
    z-index: 10003;
  }
  
  .language-toggle {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  
  .language-option {
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
    touch-action: manipulation;
    min-height: 44px; /* Better touch target on mobile */
  }

  /* Hero Section - mobile */
  .hero {
    padding: 30px 20px;
    min-height: auto;
  }

  .hero-inner {
    padding: 20px 16px;
  }

  .hero-grid {
    gap: 24px;
  }

  .terminal-card {
    padding: 24px;
    max-width: 100%;
  }
  
  .terminal-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-image-wrapper {
    width: 100px;
    height: 100px;
    max-width: calc(100% - 40px);
    margin-left: auto;
    margin-right: auto;
  }
  
  .profile-info {
    text-align: center;
    align-items: center;
  }
  
  .name-row {
    justify-content: center;
  }
  
  .profile-name {
    justify-content: center;
  }
  
  .profile-bio {
    text-align: center;
  }
  
  .profile-highlights {
    justify-content: center;
    align-items: center;
    gap: 12px;
  }
  
  .profile-differentiators {
    text-align: center;
    max-width: 100%;
  }
  
  .differentiators-list {
    text-align: left;
  }
  
  .profile-footer {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  
  .profile-email {
    justify-content: center;
  }

  /* Terminal Header - Mobile */
  .terminal-header {
    flex-direction: column;
    gap: 12px;
  }

  .terminal-icons {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .terminal-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-image-wrapper {
    width: 120px;
    height: 120px;
    max-width: calc(100% - 40px);
    margin: 0 auto 24px;
  }
  
  .profile-info {
    text-align: center;
    align-items: center;
  }
  
  .name-row {
    justify-content: center;
  }
  
  .profile-name {
    justify-content: center;
  }
  
  .profile-highlights {
    justify-content: center;
    align-items: center;
    gap: 12px;
  }
  
  .profile-footer {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  
  .profile-email {
    justify-content: center;
  }

  .profile-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
  }

  .profile-name {
    font-size: 28px;
  }

  .name-row {
    flex-direction: column;
    gap: 8px;
  }

  .status-badge {
    font-size: 11px;
    padding: 4px 10px;
  }

  .profile-title {
    font-size: 15px;
  }

  .profile-email {
    justify-content: center;
    font-size: 13px;
  }

  .profile-bio {
    font-size: 14px;
    text-align: center;
  }
  
  .profile-differentiators {
    text-align: center;
  }
  
  .differentiators-list {
    text-align: left;
  }

  /* CLI Section */
  .cli-section {
    padding: 25px 20px;
  }

  .cli-minimal {
    gap: 10px;
    padding: 8px 12px;
  }

  /* GitHub Activity Section */
  .github-activity-section {
    padding: 16px 20px;
  }

  .activity-pills-container {
    flex-direction: column;
    gap: 10px;
  }

  .building-activity {
    padding: 7px 12px;
    gap: 8px;
    max-width: 100%;
  }

  .building-activity i {
    font-size: 14px;
  }

  .building-label {
    font-size: 11px;
  }

  .cli-label {
    font-size: 12px;
  }

  .cli-code {
    font-size: 13px;
    padding: 3px 8px;
  }

  /* Projects Section */
  .projects {
    padding: 30px 20px;
  }

  .projects-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }

  .projects-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .project-card {
    border-radius: 14px;
  }

  /* Stack Section */
  .stack-grid {
    grid-template-columns: repeat(auto-fill, minmax(36px, 1fr));
    gap: 8px;
  }

  .stack-item img {
    width: 36px;
    height: 36px;
  }

  /* Skills Section */
  .skills-section {
    padding: 30px 20px;
  }

  .skills-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }

  .skills-subtitle {
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
  }

  .skills-categories {
    gap: 6px;
    margin-bottom: 2rem;
    padding: 6px;
    max-width: 95%;
  }

  .skills-grid {
    gap: 12px;
  }

  .tags {
    gap: 8px;
    justify-content: center;
  }

  .tag {
    padding: 8px 14px;
    font-size: 13px;
  }

  /* Contact Section */
  .contact {
    padding: 30px 20px 30px;
    gap: 32px;
  }

  .contact-title {
    font-size: 1.75rem;
  }

  .contact-text {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
  }

  .contact-text-highlight {
    font-size: 1rem;
  }

  .contact-button {
    width: 100%;
    max-width: 320px;
    font-size: 14px;
    padding: 12px 20px;
  }

  .contact-quote {
    margin-top: 40px;
  }

  .contact-quote p {
    font-size: 1rem;
  }
}

/* ========== MOBILE PORTRAIT (480px and below) ========== */
@media (max-width: 480px) {

  /* Navigation */
  nav {
    padding: 0 16px;
    height: 65px;
  }

  nav .right {
    gap: 6px;
  }

  nav .right a {
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 18px;
  }

  nav .right a i {
    font-size: 13px;
  }

  /* Hero Section */
  .hero {
    padding: 10px 16px;
  }

  .terminal-card {
    padding: 20px;
    border-radius: 4px;
  }
  
  .terminal-content {
    gap: 16px;
  }
  
  .profile-image-wrapper {
    width: 100px;
    height: 100px;
  }
  
  .profile-info {
    gap: 14px;
  }
  
  .profile-description {
    gap: 14px;
  }
  
  .profile-bio {
    font-size: 13px;
  }
  
  .profile-highlights {
    gap: 12px;
    padding: 10px 0;
  }
  
  .highlight-item {
    font-size: 12px;
  }
  
  .differentiators-title {
    font-size: 14px;
  }
  
  .differentiators-list {
    gap: 8px;
  }
  
  .differentiators-list li {
    font-size: 12px;
  }

  .corner-highlight {
    width: 10px;
    height: 10px;
  }

  .terminal-header {
    flex-direction: column-reverse;
    gap: 12px;
    margin-bottom: 24px;
  }

  .icon-button {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .terminal-clock {
    font-size: 13px;
  }

  .profile-image-wrapper {
    width: 90px;
    height: 90px;
    max-width: calc(100% - 32px);
    margin-left: auto;
    margin-right: auto;
  }

  .profile-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
  }

  .profile-name {
    font-size: 24px;
  }

  .status-badge {
    font-size: 10px;
    padding: 3px 8px;
  }

  .status-dot {
    width: 5px;
    height: 5px;
  }

  .profile-title {
    font-size: 14px;
  }

  .profile-email {
    font-size: 12px;
  }

  .profile-bio {
    font-size: 13px;
    text-align: center;
  }
  
  .profile-highlights {
    font-size: 13px;
  }
  
  .differentiators-title {
    font-size: 15px;
  }
  
  .differentiators-list li {
    font-size: 13px;
  }

  /* CLI Section */
  .cli-section {
    padding: 20px 16px;
  }

  .cli-minimal {
    gap: 8px;
    padding: 6px 10px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .cli-label {
    font-size: 11px;
  }

  .cli-code {
    font-size: 12px;
    padding: 2px 6px;
  }

  .cli-copy-mini i {
    font-size: 12px;
  }

  /* GitHub Activity Section - Small Mobile */
  .github-activity-section {
    padding: 12px 16px;
  }

  .building-activity {
    padding: 6px 10px;
    gap: 7px;
  }

  .building-activity i {
    font-size: 13px;
  }

  .building-label {
    font-size: 10px;
  }

  .building-project {
    font-size: 8px;
  }

  /* Projects Section */
  .projects {
    padding: 30px 16px;
  }

  .projects-title {
    font-size: 2rem;
    margin-bottom: 2.5rem;
  }

  .projects-list {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0 16px;
  }

  .projects-footer-text {
    margin-top: 40px;
    padding: 0 16px;
  }

  .projects-footer-text p {
    font-size: 0.875rem;
  }

  .project-card {
    width: 100%;
    height: auto;
    min-height: 380px;
  }

  .card-image-container {
    width: 100%;
    height: 120px;
  }

  .card-content {
    padding: 16px;
  }

  .card-label {
    font-size: 10px;
    margin: 0 0 6px 0;
  }

  .card-title {
    font-size: 16px;
    line-height: 1.3;
    margin: 0 0 10px 0;
  }

  .card-tags {
    margin: 0 0 12px 0;
  }

  .card-tag {
    font-size: 9px;
    padding: 2px 6px;
  }

  .placeholder-icon {
    font-size: 40px;
  }

  /* Skills Section */
  .skills-section {
    padding: 30px 16px;
  }

  .skills-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }

  .skills-subtitle {
    font-size: 0.9375rem;
    margin-bottom: 2.5rem;
  }

  .skills-categories {
    gap: 5px;
    margin-bottom: 2rem;
    padding: 5px;
    max-width: 100%;
  }

  .skills-grid {
    gap: 10px;
  }

  /* Contact Section */
  .contact {
    padding: 30px 16px 30px;
    gap: 28px;
  }

  .contact-title {
    font-size: 2rem;
  }

  .contact-text {
    font-size: 0.9375rem;
    margin-bottom: 1rem;
  }

  .contact-text-highlight {
    font-size: 1rem;
    margin-top: 1.5rem;
  }

  .contact-button {
    max-width: 100%;
    font-size: 13px;
    padding: 11px 18px;
  }

  .contact-button i {
    font-size: 14px;
  }

  .contact-quote {
    margin-top: 32px;
  }

  .contact-quote p {
    font-size: 0.9375rem;
  }
}

/* ========== EXTRA SMALL MOBILE (360px and below) ========== */
@media (max-width: 360px) {

  nav {
    padding: 0 12px;
  }

  nav .right {
    gap: 5px;
  }

  nav .right a {
    padding: 5px 9px;
    font-size: 11px;
    border-radius: 16px;
  }

  nav .right a i {
    font-size: 12px;
  }

  .hero {
    padding: 40px 12px;
  }

  .terminal-card {
    padding: 16px;
  }

  .profile-name {
    font-size: 22px;
  }

  .projects {
    padding: 60px 12px;
  }

  .projects-title {
    font-size: 1.75rem;
    margin-bottom: 2.5rem;
  }

  .skills-section {
    padding: 60px 12px;
  }

  .skills-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }

  .skills-subtitle {
    font-size: 0.875rem;
  }

  .skills-categories {
    gap: 4px;
    padding: 4px;
    max-width: 100%;
  }

  .skills-grid {
    gap: 8px;
  }

  .tags {
    gap: 6px;
  }

  .tag {
    padding: 6px 12px;
    font-size: 12px;
  }

  .contact {
    padding: 60px 12px 40px;
  }

  .contact-title {
    font-size: 1.75rem;
  }

  .contact-text {
    font-size: 0.875rem;
  }

  .contact-quote {
    margin-top: 25px;
  }

  .contact-quote p {
    font-size: 0.875rem;
  }
}

/* Projects Section - Minimal List Design */
.projects {
  padding: 40px 0;
  background: var(--bg-color);
  position: relative;
  transition: background-color 0.3s ease;
}

.projects-wrap {
  width: 100%;
  max-width: var(--layout-max);
  margin: 0 auto;
  padding-left: var(--layout-padding);
  padding-right: var(--layout-padding);
}

.projects-title {
  text-align: left;
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 2rem 0;
  letter-spacing: -0.02em;
  color: var(--text-color);
}

/* Bento Grid Layout */
.bento-grid {
  max-width: 480px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  padding: 0 10px;
}

@media (min-width: 886px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 320px;
  }
}

/* Blogs Grid */
.blogs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.blog-card {
  width: 100%;
  height: 200px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  opacity: 0.9;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(128, 128, 128, 0.15);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover {
  opacity: 1;
  box-shadow: 0 16px 48px rgba(128, 128, 128, 0.25);
  transform: translateY(-4px);
}

.blog-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-image-container {
  width: 100%;
  height: 120px;
  overflow: hidden;
  background: linear-gradient(135deg,
      rgba(99, 102, 241, 0.1) 0%,
      rgba(168, 85, 247, 0.1) 100%);
}

.blog-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-link:hover .blog-image {
  transform: scale(1.05);
}

.blog-content {
  display: flex;
  flex-direction: column;
  padding: 16px 20px;
  flex: 1;
}

.blog-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0 0 6px 0;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.blog-date {
  font-size: 0.75rem;
  color: var(--text-color);
  opacity: 0.6;
  margin: 0;
}

/* Work Experience Section */
.experience-section {
  position: relative;
  background: var(--bg-color);
  color: var(--text-color);
  padding: 16px 24px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.experience-section .section-heading {
  margin-bottom: 20px;
}

.experience-section::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 100vw;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  height: 0;
  pointer-events: none;
  z-index: 0;
  transition: border-color 0.3s ease;
}

/* Education Section */
.education-section {
  position: relative;
  background: var(--bg-color);
  color: var(--text-color);
  padding: 24px 24px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.education-section::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 100vw;
  border-top: 1px solid var(--border-color);
  height: 0;
  pointer-events: none;
  z-index: 0;
  transition: border-color 0.3s ease;
}

.soft-skills-section {
  padding: 24px 0 40px 0;
}

.soft-skills-wrap {
  width: 100%;
  max-width: var(--layout-max);
  margin: 0 auto;
  padding-left: var(--layout-padding);
  padding-right: var(--layout-padding);
}

.soft-skills-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 24px;
}

.soft-skill-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.soft-skill-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--accent-color);
  font-size: 18px;
}

.soft-skill-content {
  flex: 1;
}

.soft-skill-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-color);
  margin: 0 0 6px 0;
}

.soft-skill-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}

/* Curiosidades section */
.curiosidades-section {
  padding: 24px 0 40px 0;
}

.curiosidades-wrap {
  width: 100%;
  max-width: var(--layout-max);
  margin: 0 auto;
  padding-left: var(--layout-padding);
  padding-right: var(--layout-padding);
}

.curiosidades-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 24px;
}

.curiosidade-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.curiosidade-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--accent-color);
  font-size: 18px;
}

.curiosidade-content {
  flex: 1;
}

.curiosidade-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-color);
  margin: 0 0 6px 0;
}

.curiosidade-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}

.curiosidade-link {
  color: var(--accent-color);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.curiosidade-link:hover,
.curiosidade-link:focus-visible {
  color: var(--hover-color);
  border-bottom-color: var(--accent-color);
}

.education-wrap {
  width: 100%;
  max-width: var(--layout-max);
  margin: 0 auto;
  padding-left: var(--layout-padding);
  padding-right: var(--layout-padding);
  position: relative;
  z-index: 1;
}

.education-item {
  padding: 8px 0 4px;
}

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

.education-institution {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
  transition: color 0.5s ease;
}

.education-location {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
  transition: color 0.5s ease;
}

.education-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.education-degree {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-color);
  transition: color 0.5s ease;
}

.education-period {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.5s ease;
}

.education-curriculum {
  margin: 12px 0 0 0;
  padding-left: 20px;
  list-style: disc;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-color);
  transition: color 0.5s ease;
}

.education-curriculum li {
  margin-bottom: 6px;
  color: var(--text-color);
  transition: color 0.5s ease;
}

.education-curriculum li:last-child {
  margin-bottom: 0;
}

.experience-wrap {
  width: 100%;
  max-width: var(--layout-max);
  margin: 0 auto;
  padding-left: var(--layout-padding);
  padding-right: var(--layout-padding);
  position: relative;
  z-index: 1;
}

.experience-item {
  padding: 4px 0 2px;
}

.experience-item+.experience-item {
  border-top: 1px solid var(--border-color);
  margin-top: 2px;
  transition: border-color 0.5s ease;
}

.company-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.company-name {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-color);
}

.company-blur {
  filter: blur(3px);
  user-select: none;
  pointer-events: none;
}

.current-employer-indicator {
  position: relative;
  width: 12px;
  height: 12px;
  margin-left: 4px;
}

.current-employer-indicator::before,
.current-employer-indicator::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
}

.current-employer-indicator::before {
  background: rgba(56, 189, 248, 0.45);
  transform: scale(1);
  animation: ping 1.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.current-employer-indicator::after {
  background: #38bdf8;
  transform: scale(0.55);
}

@keyframes ping {
  0% {
    transform: scale(0.9);
    opacity: 0.9;
  }

  75%,
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.positions-wrapper {
  position: relative;
  margin-top: 2px;
  padding-left: 16px;
}

.positions-wrapper::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 2px;
  width: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.position {
  position: relative;
  padding: 2px 0 0;
}

.position:last-child::after {
  content: "";
  position: absolute;
  left: 6px;
  bottom: 0;
  width: 16px;
  height: 10px;
  background: var(--bg-color);
}

.position-toggle {
  position: relative;
  display: block;
  width: 100%;
  border: none;
  background: none;
  padding: 4px 4px 4px 0;
  text-align: left;
  cursor: var(--cursor-pointer);
  border-radius: 4px;
  color: var(--text-color);
}

.position-toggle::before {
  content: "";
  position: absolute;
  inset: -2px -3px -3px 16px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  opacity: 0;
  transition: opacity 0.15s ease-out;
}

.position-toggle:hover::before {
  opacity: 1;
}

.position-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 1;
  margin-bottom: 0;
}

.position-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  color: var(--text-color);
  opacity: 0.6;
}

.position-title {
  flex: 1;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-color);
}

.position-chevron {
  font-size: 0.7rem;
  color: var(--text-color);
  opacity: 0.4;
  transform-origin: center;
  transition: transform 0.15s ease-out;
}

.position[data-open="true"] .position-chevron {
  transform: rotate(180deg);
}

.position-meta {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 26px;
  font-size: 0.75rem;
  color: var(--text-color);
  opacity: 0.6;
  z-index: 1;
}

.meta-separator {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.2);
}

.position-body {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  padding-left: 26px;
  transition: max-height 0.22s ease-out, opacity 0.2s ease-out,
    padding-top 0.22s ease-out, padding-bottom 0.22s ease-out;
}

.position[data-open="true"] .position-body {
  max-height: 400px;
  opacity: 1;
  padding-top: 2px;
  padding-bottom: 1px;
}

.position-description {
  margin: 0 0 2px;
  padding-left: 0;
  list-style: none;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  color: var(--text-color);
  line-height: 1.45;
}

.position-description li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 1px;
}

.position-description li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--text-color);
  opacity: 0.5;
}

@media (max-width: 885px) {
  .experience-wrap {
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
  }

  .experience-card {
    width: 100%;
    padding: 20px;
    margin-left: 0;
    box-sizing: border-box;
  }

  .experience-description li {
    white-space: normal;
    /* Ensure text wraps */
    word-wrap: break-word;
  }

  .company-name {
    font-size: 0.95rem;
  }

  .position-title {
    font-size: 0.85rem;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .stack-grid {
    grid-template-columns: repeat(auto-fill, minmax(32px, 1fr));
    gap: 6px;
  }

  .stack-item img {
    width: 32px;
    height: 32px;
  }

  .projects-list {
    gap: 16px;
  }

  .project-card {
    min-height: 320px;
  }

  .card-image-container {
    height: 120px;
  }

  .blogs-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Mobile responsiveness for projects */
@media (max-width: 885px) {
  .projects-list {
    grid-template-columns: 1fr !important;
  }
}

.projects-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: stretch;
}

/* Clients Section - Swiper (refatorado: só logos, visual moderno) */
.clients-section {
  padding: 40px var(--layout-padding);
  background: var(--bg-color);
}

.clients-section .section-heading {
  margin-bottom: 8px;
}

.clients-intro {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0 0 24px 0;
  max-width: 480px;
}

.clients-intro strong {
  color: var(--text-color);
  font-weight: 500;
}

.clients-swiper {
  width: 100%;
  padding: 8px 4px 52px 4px;
  overflow: hidden;
  box-sizing: border-box;
}

.clients-swiper .swiper-wrapper {
  align-items: stretch;
}

.client-slide {
  height: auto;
  display: flex;
  align-items: stretch;
  min-width: 0;
  box-sizing: border-box;
}

.client-slide-inner {
  width: 100%;
  min-width: 0;
  padding: 20px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 130px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  overflow: hidden;
  box-sizing: border-box;
}

.client-slide-inner:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.client-logo-wrap {
  width: 100%;
  height: 90px;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.client-logo {
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 72px;
  object-fit: contain;
  filter: brightness(0.98);
  transition: filter 0.2s ease;
}

@media (min-width: 520px) {
  .client-logo-wrap {
    height: 100px;
  }
  .client-logo {
    max-height: 88px;
  }
}

@media (min-width: 860px) {
  .client-logo-wrap {
    height: 110px;
  }
  .client-logo {
    max-height: 88px;
  }
}

.client-slide-inner:hover .client-logo {
  filter: brightness(1);
}

/* Swiper overrides - dark theme */
.clients-swiper .swiper-pagination {
  position: relative !important;
  bottom: auto !important;
  margin-top: 20px;
}

.clients-swiper .swiper-pagination-bullet {
  background: var(--text-muted);
  opacity: 0.5;
  width: 8px;
  height: 8px;
}

.clients-swiper .swiper-pagination-bullet-active {
  background: var(--text-color);
  opacity: 1;
  width: 10px;
  height: 10px;
}

.clients-swiper .swiper-button-prev,
.clients-swiper .swiper-button-next {
  color: var(--text-color);
  --swiper-navigation-size: 24px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: var(--cursor-pointer);
}

.clients-swiper .swiper-button-prev::after,
.clients-swiper .swiper-button-next::after {
  font-weight: 700;
}

@media (max-width: 480px) {
  .clients-swiper .swiper-button-prev,
  .clients-swiper .swiper-button-next {
    display: none;
  }
}

/* Project Card - Modern Featured Style */
.project-card {
  width: 100%;
  height: 100%;
  min-height: 500px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  opacity: 0.95;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: var(--cursor-pointer);
  transition: transform 0.22s var(--ease-smooth), opacity 0.22s ease-out, box-shadow 0.22s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

/* Ensure all project cards have the same height */
.projects-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .projects-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.projects-list .project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.25s var(--ease-smooth);
  cursor: var(--cursor-pointer);
}

.card-link:hover {
  transform: translateY(-3px);
}

.card-link:focus {
  outline: none;
}

.card-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Card Image Container - Gradient Header */
.card-image-container {
  width: 100%;
  height: 160px;
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, rgba(20, 20, 20, 0.95) 0%, rgba(38, 38, 38, 0.9) 50%, rgba(26, 26, 26, 0.95) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* border-radius: 16px 16px 0 0; */
}

.invoicegen-image {
  object-position: center 40%;
}

.container {
  width: 100%;
  max-width: var(--layout-max);
  margin: 0 auto;
  padding-left: var(--layout-padding);
  padding-right: var(--layout-padding);
}

h2 {
  font-size: 18px;
  margin-top: 50px;
  margin-bottom: 20px;
  color: #ffffff;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card-bg);
  padding: 10px 18px;
  border-radius: 25px;
  font-size: 15px;
  border: 1px solid var(--border-color);
  cursor: default;
  user-select: none;
  transition: transform 0.22s var(--ease-smooth), opacity 0.22s ease-out, background-color 0.22s ease;
}

.tag:hover {
  background: var(--hover-bg-color);
  transform: translateY(-1px);
}

/* Placeholder for projects without images */
.card-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  /* border-radius: 16px 16px 0 0; */
}

.placeholder-icon {
  font-size: 48px;
  color: rgba(255, 255, 255, 0.8);
}

/* Card Content */
.card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: var(--card-bg);
  transition: background-color 0.3s ease;
  min-height: 0;
}

/* Ensure card status section stays at bottom */
.card-status-section {
  margin-top: auto;
  padding-top: 16px;
}

/* Card Label */
.card-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-color);
  opacity: 0.5;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0 0 8px 0;
}

/* Card Title */
.card-title {
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.3;
  color: var(--text-color);
  font-weight: 700;
  margin: 0 0 12px 0;
  hyphens: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title strong {
  font-weight: 700;
  color: var(--text-color);
}

/* Card Description */
.card-description {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-color);
  opacity: 0.7;
  margin: 0 0 16px 0;
  flex: 1;
}

/* Card Tags */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 16px 0;
}

/* Technologies Label */
.technologies-label {
  font-size: 11px;
  color: var(--text-color);
  opacity: 0.5;
  margin: 0 0 8px 0;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-tag {
  padding: 3px 8px;
  background: rgba(128, 128, 128, 0.1);
  border: 1px solid var(--border-color);
  opacity: 0.8;
  border-radius: 6px;
  font-size: 10px;
  color: var(--text-color);
  font-weight: 600;
  font-family: var(--font-sans);
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.card-link:hover .card-tag {
  opacity: 1;
}

/* Status and Action Section */
.card-status-section {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  opacity: 0.7;
  transition: border-color 0.3s ease, opacity 0.3s ease;
}

.card-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
}

.status-indicator.building {
  background: #ef4444;
}

.status-text {
  font-size: 12px;
  color: var(--text-color);
  font-weight: 500;
}

.card-action {
  color: var(--text-color);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-action:hover {
  opacity: 0.7;
  transform: translateX(2px);
}

.card-action::after {
  content: "→";
  font-size: 14px;
  transition: transform 0.2s ease;
}

.card-action:hover::after {
  transform: translateX(2px);
}

.card-action-btn {
  background: transparent;
  border: none;
  color: var(--text-color);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  font-family: var(--font-sans);
}

.card-action-btn:hover {
  opacity: 0.7;
  transform: translateX(2px);
}

.card-action-btn:focus {
  outline: none;
}

.card-action-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 4px;
  border-radius: 2px;
  opacity: 1;
}

/* Removed arrow from View Details button */

.card-github-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.2s ease;
  opacity: 0.7;
}

.card-github-link:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.card-github-link:focus {
  outline: none;
}

.card-github-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.card-github-link i {
  font-size: 16px;
}

/* Projects Footer Text */
.projects-footer-text {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 56px;
  padding: 0 24px;
}

.projects-footer-text p {
  font-size: 0.9375rem;
  color: var(--text-color);
  opacity: 0.45;
  margin: 0;
  text-align: center;
  line-height: 1.6;
  font-style: italic;
}

.projects-footer-text a {
  color: var(--text-color);
  opacity: 0.7;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  border-bottom: 1px solid var(--border-color);
}

.projects-footer-text a:hover {
  opacity: 0.95;
  border-bottom-color: var(--border-color);
}

/* GitHub Activity - Between Hero and Projects */
.github-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.3;
}

.loading-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.activity-pills-container {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

/* Building Activity Pill */
.building-activity {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(128, 128, 128, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  opacity: 0.85;
  border-radius: 4px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
}

.building-activity:hover {
  background: rgba(128, 128, 128, 0.15);
  opacity: 1;
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.25);
}

.building-activity i {
  font-size: 18px;
  color: var(--text-color);
  flex-shrink: 0;
  opacity: 0.9;
}

.building-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.building-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-color);
  opacity: 0.95;
  margin: 0;
  letter-spacing: 0.02em;
}

.building-project {
  font-size: 11px;
  color: var(--text-color);
  opacity: 0.6;
  margin: 0;
  font-weight: 500;
}

.github-icon {
  font-size: 16px;
  color: #ffffff;
  flex-shrink: 0;
  opacity: 0.7;
}

.github-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.github-action {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.github-repo {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.github-link-icon {
  flex-shrink: 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.github-activity:hover .github-link-icon {
  color: rgba(255, 255, 255, 0.5);
  transform: translate(2px, -2px);
}

.theme-icon {
  font-size: inherit;
}

/* contact - Monochrome Terminal Style */
.contact {
  padding: 120px var(--layout-padding);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  background: var(--bg-color);
  position: relative;
  transition: background-color 0.3s ease;
}

.contact-title {
  text-align: left;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 2rem 0;
  letter-spacing: -0.02em;
  color: var(--text-color);
}

.contact-content {
  max-width: 680px;
  text-align: center;
}

.contact-text {
  color: var(--text-color);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.contact-text-highlight {
  color: var(--text-color);
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 2rem;
  opacity: 1;
}

.contact-actions {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  background: transparent;
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.25s var(--ease-smooth), background-color 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  font-family: var(--font-sans);
}

.contact-button i {
  font-size: 16px;
}

.contact-button:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.contact-button:focus {
  outline: none;
}

.contact-button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.email-button {
  word-break: break-all;
}

.email-button span {
  font-size: 14px;
  font-family: var(--font-mono);
}

/* Contact Quote */
.contact-quote {
  margin-top: 48px;
  max-width: 700px;
  text-align: center;
}

.contact-quote p {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-color);
  opacity: 0.5;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.projectLink,
.resume {
  background: transparent;
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.projectLink i,
.resume i {
  font-size: 14px;
}

.projectLink:hover,
.resume:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.projectLink:hover i,
.resume:hover i {
  color: var(--text-color);
}

.github-logo-projects {
  font-size: 35px;
  color: var(--text-color);
  text-decoration: none;
  margin-top: 50px;
}

.paper-button-wrapper {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.paper-button-wrapper .paper-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.project-image {
  width: 90%;
  max-width: 500px;
  border-radius: 4px;
  margin: 10px 0;
  height: 250px;
  margin-left: 17px;
}

/* Animations */
@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes popIn {
  0% {
    transform: scale(0.95);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-in {
  animation: slideInLeft 1s ease-out forwards;
}

/* Footer */
.site-footer {
  background: var(--bg-color);
  padding: 40px 24px;
  margin-top: 60px;
  position: relative;
  transition: background-color 0.3s ease;
  overflow: hidden;
}

.footer-content {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding-left: var(--layout-padding);
  padding-right: var(--layout-padding);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.footer-location {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-location i {
  opacity: 0.85;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-color);
  opacity: 0.7;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 4px 0;
}

.footer-link:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.footer-link:focus {
  outline: none;
}

.footer-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
  opacity: 1;
}

.footer-link i {
  font-size: 16px;
  color: var(--text-color);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.footer-link:hover i {
  opacity: 1;
}

.footer-copyright {
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  opacity: 0.3;
  width: 100%;
  max-width: 600px;
}

.footer-copyright p {
  font-size: 13px;
  color: var(--text-color);
  opacity: 0.6;
  margin: 0;
  font-weight: 400;
}

/* Footer Responsive */
@media (max-width: 885px) {
  .site-footer {
    padding: 32px 20px;
    margin-top: 40px;
  }

  .footer-content {
    gap: 20px;
  }

  .footer-links {
    gap: 20px;
  }

  .footer-link {
    font-size: 13px;
  }

  .footer-link i {
    font-size: 15px;
  }

  .footer-copyright p {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .site-footer {
    padding: 28px 16px;
    margin-top: 32px;
  }

  .footer-links {
    gap: 16px;
  }

  .footer-link span {
    display: none;
  }

  .footer-link i {
    font-size: 18px;
  }

  .footer-copyright {
    padding-top: 12px;
  }

  .footer-copyright p {
    font-size: 11px;
  }
}

/* Profile image clickable cursor */
.profile-image-wrapper {
  cursor: default;
  position: relative;
  display: inline-block;
}

/* Project Modal Styles - Optimized for performance */
.project-modal,
#project-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s linear, visibility 0.12s linear;
  pointer-events: none;
}

.project-modal.active,
#project-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  /* Removed backdrop-filter for better performance */
  transition: opacity 0.12s linear;
}

.project-modal.active .modal-overlay,
#project-modal.active .modal-overlay {
  opacity: 1;
}

.modal-content {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 100001;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.12s linear, transform 0.12s linear;
  margin: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  /* Force GPU acceleration */
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.project-modal.active .modal-content,
#project-modal.active .modal-content {
  transform: translateY(0) translateZ(0);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-color);
  width: 32px;
  height: 32px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 100002;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.modal-close:focus {
  outline: none;
}

.modal-close:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.modal-close i {
  font-size: 16px;
}

.modal-header {
  margin-bottom: 24px;
}

.modal-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-color);
  margin: 0 0 16px 0;
  line-height: 1.2;
}

.modal-github-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: transparent;
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-top: 12px;
}

.modal-github-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.modal-github-btn:focus {
  outline: none;
}

.modal-github-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.modal-github-btn i {
  font-size: 16px;
}

.modal-body {
  margin-top: 24px;
}

.modal-images {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.modal-image {
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

.modal-video-wrapper {
  width: 100%;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  background: var(--bg-color);
}

.modal-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 4px;
}

.modal-description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  margin-bottom: 24px;
  opacity: 0.9;
}

.modal-section {
  margin: 24px 0;
  padding: 20px 0;
  border-top: 1px solid var(--border-color);
}

.modal-section:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.modal-section-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-color);
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.modal-section-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-color);
  margin: 0;
  opacity: 0.85;
}

.modal-diagram-container {
  width: 100%;
  margin: 24px 0;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}

.mermaid-controls {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-color);
  align-items: center;
  flex-wrap: wrap;
}

.mermaid-control-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  padding: 0;
}

.mermaid-control-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.mermaid-control-btn:focus {
  outline: none;
}

.mermaid-control-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.mermaid-control-btn:active {
  transform: translateY(0);
}

.mermaid-control-btn i {
  font-size: 14px;
}

.mermaid-diagram-wrapper {
  padding: 20px;
  overflow: auto;
  max-height: 600px;
  transition: transform 0.3s ease;
  position: relative;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}

.mermaid-diagram-wrapper:active {
  cursor: grabbing;
}

.mermaid-diagram-wrapper::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.mermaid-diagram-wrapper::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.mermaid-diagram-wrapper::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.mermaid-diagram-wrapper::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.modal-diagram-container .mermaid {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  width: 100%;
}

.modal-diagram-container svg {
  max-width: 100%;
  height: auto;
}

.modal-code-container {
  width: 100%;
  margin: 24px 0;
}

.modal-code-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
  margin: 0 0 12px 0;
}

.modal-code {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 16px;
  overflow-x: auto;
  margin: 0;
  font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
  font-size: 14px;
  line-height: 1.6;
}

.modal-code code {
  color: var(--text-color);
  white-space: pre;
  display: block;
}

.modal-technologies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.modal-tag {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 13px;
  color: var(--text-color);
  font-weight: 500;
}

@media (max-width: 885px) {
  .modal-content {
    padding: 20px;
    width: 95%;
    max-height: 95vh;
  }

  .modal-title {
    font-size: 24px;
  }

  .modal-description {
    font-size: 14px;
  }
}