:root {
  --radius-xl: 18px;
  --radius-lg: 12px;
  --radius-pill: 999px;
  --transition-fast: 0.18s ease-out;
  --bento-radius: 22px;
  --bento-border: rgba(15, 23, 42, 0.08);
  --bento-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

/* RESET BÁSICO */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* =========================
   LIGHT MODE (DEFAULT)
   ========================= */

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  min-height: 100vh;
  color: #111827;
  display: flex;
  flex-direction: column;
  align-items: center;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.04) 0, transparent 55%),
    linear-gradient(135deg, #050608, #050608); /* desktop escuro */
  background-attachment: fixed;
}

/* =========================
   BOOT SCREEN
   ========================= */

.boot-screen {
  position: fixed;
  inset: 0;
  background: #000000;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.45s ease-out, visibility 0.45s ease-out;
}

.boot-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.boot-logo {
  width: 54px;
  height: 54px;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.boot-progress {
  width: 160px;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  overflow: hidden;
}

.boot-progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: #ffffff;
  border-radius: inherit;
}

/* layout principal */
.desktop {
  max-width: 1080px;
  width: 100%;
  margin-top: 60px;   /* espaço pro menu bar */
  margin-bottom: 70px;/* espaço pro dock */
  padding: 24px 16px;
}

/* =========================
   MENU BAR (TOPO)
   ========================= */

.menu-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100vw;
  height: 26px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #111827;
  backdrop-filter: blur(30px);
  background: linear-gradient(
    to bottom,
    rgba(248, 250, 252, 0.92),
    rgba(241, 245, 249, 0.82)
  );
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  z-index: 20;
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}

.menu-bar-sensor {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 12px;
  z-index: 21;
  background: transparent;
}

body.menubar-scroll-hidden .menu-bar {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

body.menubar-scroll-hidden.menubar-reveal .menu-bar {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.menu-left,
.menu-center,
.menu-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dynamic-island {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 24px;
  border-radius: 999px;
  background: #000000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.apple-logo {
  font-size: 16px;
  margin-right: 4px;
}

.menu-item {
  opacity: 0.85;
  color: inherit;
}

.menu-item.active {
  font-weight: 600;
  opacity: 1;
}

.menu-icon {
  font-size: 13px;
  opacity: 0.9;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
}

.menu-icon img,
.apple-logo img {
  width: 14px;
  height: 14px;
  display: block;
}

.menu-icon img.status-icon {
  width: 18px;
  height: 18px;
}

.menu-icon img.status-battery {
  width: 22px;
  height: 22px;
}

.apple-logo img {
  width: 15px;
  height: 15px;
}

.control-center img {
  width: 14px;
  height: 14px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.control-center {
  position: relative;
  width: 20px;
  height: 20px;
  border: none;
  padding: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

/* =========================
   JANELA PRINCIPAL
   ========================= */

.window {
  background: #f5f5f7;
  border-radius: 26px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  backdrop-filter: blur(22px);
}

/* titlebar estilo Finder/Safari */
.titlebar {
  display: flex;
  align-items: center;
  padding: 8px 14px;
  background: linear-gradient(to bottom, #f8f8fa, #e9e9ef);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.traffic-lights {
  display: flex;
  gap: 8px;
  margin-right: 12px;
}

.traffic-light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.traffic-light.red {
  background: #ff5f57;
}

.traffic-light.yellow {
  background: #febc2e;
}

.traffic-light.green {
  background: #28c840;
}

.titlebar-label {
  font-size: 13px;
  color: #4b5563;
}

.spacer {
  flex: 1;
}

.titlebar-dots {
  display: flex;
  gap: 4px;
  opacity: 0.6;
}

.titlebar-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
}

/* nav interna (About / Experience / ...) */
.nav {
  display: flex;
  gap: 16px;
  padding: 10px 18px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background: linear-gradient(to right, #f5f5f7, #ececf2);
}

.nav-link {
  font-size: 13px;
  color: #9ca3af;
  text-decoration: none;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast),
    border-color var(--transition-fast), transform var(--transition-fast);
}

.nav-link:hover {
  color: #111827;
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.nav-link.active {
  color: #111827;
  background: rgba(10, 132, 255, 0.15);
  border-color: #0a84ff;
}

/* conteúdo geral da janela */
.content {
  padding: 26px 26px 30px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.bento-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 4px 2px 8px;
}

.hero-kicker {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 8px;
}

.hero-name {
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #111827;
  margin-bottom: 6px;
}

.hero-role {
  font-size: 14px;
  color: #374151;
  margin-bottom: 10px;
}

.hero-bio {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.5;
  max-width: 520px;
}

.hero-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-avatar {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.hero-meta {
  display: grid;
  gap: 12px;
  align-content: start;
}

.meta-block {
  padding: 12px 14px;
  border-radius: var(--bento-radius);
  border: 1px solid var(--bento-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.85));
  box-shadow: var(--bento-shadow);
  position: relative;
  overflow: hidden;
}

.meta-block::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
  pointer-events: none;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  grid-auto-rows: minmax(140px, auto);
  grid-auto-flow: dense;
}

.bento-anchor {
  height: 0;
  width: 0;
  overflow: hidden;
}

.bento-card {
  border-radius: var(--bento-radius);
  padding: 16px 18px 12px;
  border: 1px solid var(--bento-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92));
  box-shadow: var(--bento-shadow);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.bento-card.is-link {
  cursor: pointer;
}

.bento-card.no-media {
  padding-bottom: 10px;
}

.bento-card:hover,
.bento-card:focus-within {
  transform: translateY(-6px);
}

.card-cover {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 2;
}

.card-cover:focus-visible {
  outline: 2px solid #0a84ff;
  outline-offset: 2px;
}

.card-media {
  width: 100%;
  height: 120px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.08);
  overflow: hidden;
  margin-bottom: 10px;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.reveal {
  --reveal-y: 14px;
  --parallax-y: 0px;
  opacity: 0;
  transform: translateY(calc(var(--reveal-y) + var(--parallax-y)));
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal.is-visible {
  --reveal-y: 0px;
  opacity: 1;
}

.parallax {
  will-change: transform;
}

.bento-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
  pointer-events: none;
}

.bento-card.large {
  grid-column: 1 / -1;
  grid-row: span 2;
  min-height: 280px;
}

.bento-card.medium {
  grid-column: span 2;
  min-height: 170px;
}

.bento-card.small {
  grid-column: span 1;
  min-height: 110px;
}

.bento-card.wide {
  grid-column: 1 / -1;
}

.card-kicker {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b7280;
}

.card-title {
  font-size: 19px;
  font-weight: 600;
  color: #111827;
}

.card-desc {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.5;
}

.card-meta {
  font-size: 12px;
  color: #6b7280;
}

.card-list {
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: #4b5563;
}

.card-list.compact {
  gap: 6px;
  font-size: 12px;
}

.project-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.project-name {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}

.project-desc {
  font-size: 12px;
  color: #6b7280;
}

.card-links {
  display: grid;
  gap: 6px;
  font-size: 12px;
}

.card-links a {
  color: #111827;
  text-decoration: none;
  border-bottom: 1px solid rgba(15, 23, 42, 0.15);
  width: fit-content;
}

.card-links a:hover {
  border-bottom-color: rgba(15, 23, 42, 0.5);
}

@media (max-width: 900px) {
  .bento-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .bento-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .bento-card.large,
  .bento-card.medium,
  .bento-card.small,
  .bento-card.wide {
    grid-column: 1 / -1;
  }

  .project-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 20px;
}

@media (max-width: 840px) {
  .desktop {
    padding: 18px 10px;
    margin-top: 52px;
    margin-bottom: 80px;
  }

  .window {
    border-radius: 20px;
  }

  .grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* =========================
   PAINEL ESQUERDO (ABOUT)
   ========================= */

.panel {
  background: #f9fafb;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 0;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  overflow: hidden;
}

@media (max-width: 640px) {
  .panel {
    grid-template-columns: minmax(0, 1fr);
  }
}

.panel-sidebar {
  background: #f2f2f7;
  border-right: 1px solid rgba(0, 0, 0, 0.05);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12px;
  color: #4b5563;
}

.sidebar-section-label {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #9ca3af;
  margin-bottom: 2px;
}

.sidebar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-item {
  padding: 4px 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: inherit;
}

.sidebar-item.active {
  background: rgba(0, 0, 0, 0.08);
  color: #111827;
}

.sidebar-bullet {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
}

.panel-main {
  padding: 18px 18px 20px;
  position: relative;
  overflow: hidden;
}

.panel-main::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.7), transparent 65%);
  opacity: 0.6;
  pointer-events: none;
}

.panel-inner {
  position: relative;
  z-index: 1;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.badge {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: #4b5563;
  background: #ffffff;
}

.badge.accent {
  border-color: #0a84ff;
  background: rgba(10, 132, 255, 0.1);
  color: #0b3a7a;
}

.name {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.role {
  font-size: 14px;
  color: #4b5563;
  margin-bottom: 16px;
}

.summary {
  font-size: 13px;
  line-height: 1.6;
  color: #4b5563;
  margin-bottom: 18px;
}

.summary strong {
  color: #111827;
  font-weight: 500;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.pill {
  font-size: 11px;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: #6b7280;
  background: #ffffff;
  white-space: nowrap;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast),
    border-color var(--transition-fast), transform var(--transition-fast),
    box-shadow var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #0a84ff, #4f46e5);
  color: #f9fafb;
  border-color: rgba(15, 23, 42, 0.4);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.5);
  font-weight: 500;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.7);
}

.btn-ghost {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.06);
  color: #4b5563;
}

.btn-ghost:hover {
  background: #f3f4f6;
  border-color: rgba(0, 0, 0, 0.1);
  color: #111827;
  transform: translateY(-1px);
}

.btn .icon {
  font-size: 15px;
  line-height: 1;
}

.meta-list {
  margin-top: 8px;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
  padding-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  font-size: 12px;
  color: #6b7280;
}

.meta-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
  margin-bottom: 2px;
}

.meta-value {
  color: #4b5563;
}

@media (max-width: 840px) {
  .meta-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* =========================
   COLUNA DIREITA (EXPERIENCE/PROJECTS/...)
   ========================= */

.sections {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.section {
  background: #f5f5f7;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 14px 16px 15px;
  position: relative;
  overflow: hidden;
}

.section-inner {
  position: relative;
  z-index: 1;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 10px;
}

.section-title {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9ca3af;
}

.section-tag {
  font-size: 11px;
  color: #4b5563;
  opacity: 0.9;
}

.timeline {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: #4b5563;
}

.timeline-item {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr);
  gap: 8px 14px;
}

@media (max-width: 720px) {
  .timeline-item {
    grid-template-columns: minmax(0, 1fr);
  }
}

.timeline-meta {
  font-size: 12px;
  color: #9ca3af;
}

.timeline-role {
  font-weight: 500;
  color: #111827;
  margin-bottom: 2px;
}

.timeline-org {
  color: #4b5563;
  margin-bottom: 2px;
}

.timeline-bullets {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.timeline-bullets li::before {
  content: "– ";
  color: #0a84ff;
}

/* projetos */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: #4b5563;
  margin-top: 4px;
}

.project-item {
  padding: 8px 10px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.project-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.project-name {
  font-weight: 500;
  color: #111827;
}

.project-tag {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: #f3f4f6;
  border: 1px solid rgba(0, 0, 0, 0.04);
  color: #6b7280;
  white-space: nowrap;
}

.project-desc {
  font-size: 12px;
  color: #4b5563;
}

.project-meta {
  margin-top: 4px;
  font-size: 11px;
  color: #9ca3af;
}

.project-meta span + span::before {
  content: " • ";
  margin: 0 4px;
}

/* chips */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.chip {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #ffffff;
  color: #6b7280;
  white-space: nowrap;
}

/* contato */
.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  margin-top: 6px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-label {
  font-size: 11px;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-value a {
  color: #4b5563;
  text-decoration: none;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.3);
}

.contact-value a:hover {
  color: #111827;
  border-bottom-style: solid;
}

.footnote {
  margin-top: 6px;
  font-size: 11px;
  color: #9ca3af;
}

/* footer */
.footer {
  margin-top: 18px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.footer-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 6px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-link {
  font-size: 13px;
  color: #111827;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #ffffff;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.footer-link:hover,
.footer-link:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* =========================
   DOCK
   ========================= */

.dock {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 10px;
  border-radius: 18px;
  background: linear-gradient(
    to bottom,
    rgba(248, 250, 252, 0.92),
    rgba(226, 232, 240, 0.9)
  );
  backdrop-filter: blur(26px);
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
  display: flex;
  gap: 10px;
  z-index: 15;
}

.dock-item {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: radial-gradient(circle at top left, #ffffff 0, #c9d0ff 25%, #5162ff 100%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: default;
  transform-origin: bottom;
  transition: transform 0.16s ease-out, box-shadow 0.16s ease-out;
}

.dock-item img {
  width: 20px;
  height: 20px;
  display: block;
}

.dock-item:nth-child(2) {
  background: radial-gradient(circle at top left, #ffffff 0, #ffe7cf 25%, #ff9951 100%);
}

.dock-item:nth-child(3) {
  background: radial-gradient(circle at top left, #ffffff 0, #f8dfff 25%, #b451ff 100%);
}

.dock-item:nth-child(4) {
  background: radial-gradient(circle at top left, #ffffff 0, #d5ffef 25%, #2bd492 100%);
}

.dock-item:nth-child(6) {
  background: radial-gradient(circle at top left, #ffffff 0, #dff2ff 25%, #2f93ff 100%);
}

.dock-item:hover {
  transform: scale(1.25) translateY(-4px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.8);
}

.dock-divider {
  width: 1px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.05)
  );
  margin: 0 2px;
}

@media (max-width: 600px) {
  .dock {
    padding: 6px 8px;
    gap: 8px;
  }

  .dock-item {
    width: 30px;
    height: 30px;
    border-radius: 10px;
  }
}

/* =========================
   iOS MODE
   ========================= */

@media (max-width: 820px), (pointer: coarse) {
  body {
    padding-bottom: env(safe-area-inset-bottom);
  }

  .menu-bar {
    display: none;
  }

  .menu-left,
  .menu-center {
    display: none;
  }

  .dynamic-island {
    display: block;
    pointer-events: none;
  }

  .menu-right {
    width: auto;
    position: absolute;
    right: 12px;
    justify-content: flex-end;
    gap: 10px;
  }

  .menu-right #clock {
    position: absolute;
    left: 12px;
  }

  .menu-right .control-center-toggle,
  .menu-right img[alt="Search"] {
    display: none;
  }

  .desktop {
    margin-top: 52px;
    margin-bottom: 24px;
    padding: 16px 12px;
  }

  .dock {
    display: none;
  }

  .control-center-panel {
    top: calc(36px + env(safe-area-inset-top));
    right: 12px;
    width: min(92vw, 360px);
  }

  .safari-bar {
    display: none;
  }
}

.safari-bar {
  position: fixed;
  bottom: calc(8px + env(safe-area-inset-bottom));
  left: 12px;
  right: 12px;
  height: 48px;
  padding: 6px;
  border-radius: 18px;
  background: rgba(245, 247, 250, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(18px);
  display: none;
  align-items: center;
  gap: 10px;
  z-index: 18;
}

.safari-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.08);
  color: #111827;
  font-size: 18px;
}

.safari-pill {
  flex: 1;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #111827;
  font-size: 12px;
}

.safari-icon {
  opacity: 0.6;
}

.safari-domain {
  font-weight: 500;
}

body[data-theme="dark"] .safari-bar {
  background: rgba(15, 16, 20, 0.92);
  border-color: rgba(255, 255, 255, 0.08);
}

body[data-theme="dark"] .safari-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #f5f5f7;
}

body[data-theme="dark"] .safari-pill {
  background: rgba(26, 28, 35, 0.95);
  border-color: rgba(255, 255, 255, 0.08);
  color: #f5f5f7;
}

/* =========================
   CONTROL CENTER PANEL
   ========================= */

.control-center-panel {
  position: fixed;
  top: 32px;
  right: 12px;
  width: 280px;
  max-width: 90vw;
  border-radius: 22px;
  background: rgba(22, 24, 34, 0.85);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
  padding: 10px;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.16s ease-out, transform 0.16s ease-out;
  z-index: 30;
}

.control-center-panel.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cc-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cc-row {
  display: flex;
  gap: 8px;
}

.cc-plain {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.cc-tile {
  flex: 1;
  border-radius: 18px;
  padding: 10px 12px;
  background: rgba(15, 17, 25, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e5e7eb;
  font-size: 12px;
}

.cc-tile.cc-wide {
  width: 100%;
}

.cc-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
  margin-bottom: 4px;
}

.cc-song {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 2px;
}

.cc-song-sub {
  font-size: 11px;
  color: #9ca3af;
}

.cc-small {
  font-size: 11px;
  color: #d1d5db;
}

.status-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px) saturate(1.1);
}

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

.status-moon {
  width: 16px;
  height: 16px;
  display: block;
  filter: brightness(0) invert(1);
}

.status-title {
  font-size: 12px;
  font-weight: 600;
  color: #f9fafb;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.status-sub {
  font-size: 11px;
  color: #d1d5db;
}

.cc-theme-btn {
  margin-top: 4px;
  font-size: 11px;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
  color: #f9fafb;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 10px 20px rgba(0, 0, 0, 0.4);
  transition: background 0.15s ease-out, transform 0.15s ease-out,
    box-shadow 0.15s ease-out;
}

.cc-theme-icon {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
  transition: transform 0.2s ease-out;
}

.cc-tile.status-wide {
  flex: 1.6;
}

.cc-theme-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.7);
}

/* ajuste para light mode: painel mais claro */
body[data-theme="light"] .control-center-panel {
  background: rgba(248, 250, 252, 0.9);
  border-color: rgba(15, 23, 42, 0.1);
}

body[data-theme="light"] .cc-tile {
  background: rgba(243, 244, 246, 0.95);
  border-color: rgba(148, 163, 184, 0.5);
  color: #111827;
}

body[data-theme="light"] .cc-label {
  color: #6b7280;
}

body[data-theme="light"] .cc-song-sub,
body[data-theme="light"] .cc-small {
  color: #4b5563;
}

body[data-theme="light"] .status-card {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(15, 23, 42, 0.12);
}

body[data-theme="light"] .status-moon {
  filter: none;
}

body[data-theme="light"] .status-title {
  color: #111827;
}

body[data-theme="light"] .status-sub {
  color: #4b5563;
}

body[data-theme="light"] .cc-theme-btn {
  background: rgba(243, 244, 246, 0.95);
  color: #111827;
  border-color: rgba(148, 163, 184, 0.5);
  box-shadow: none;
}

body[data-theme="light"] .cc-theme-icon {
  filter: brightness(0) invert(1);
}

/* =========================
   DARK MODE OVERRIDES
   ========================= */

body[data-theme="dark"] {
  color: #f5f5f7;
  background:
    radial-gradient(circle at top left, #283956 0, transparent 55%),
    linear-gradient(135deg, #02030a, #02030a);
}

body[data-theme="dark"] .menu-bar {
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 15, 0.9),
    rgba(10, 10, 15, 0.7)
  );
  color: #f8f8f8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body[data-theme="dark"] .menu-item,
body[data-theme="dark"] .menu-icon {
  color: #e5e7eb;
}

body[data-theme="dark"] .cc-theme-btn {
  color: #0b0f1a;
}

body[data-theme="dark"] .cc-theme-icon {
  transform: scaleX(-1);
}

body[data-theme="dark"] .menu-icon img,
body[data-theme="dark"] .apple-logo img {
  filter: brightness(0) invert(1);
}

body[data-theme="dark"] .window {
  background: radial-gradient(circle at top left, #273146 0, #1c1f27 60%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body[data-theme="dark"] .titlebar {
  background: linear-gradient(to bottom, #2e3341, #181b23);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body[data-theme="dark"] .titlebar-label {
  color: #9ca3af;
}

body[data-theme="dark"] .nav {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.03),
    rgba(0, 0, 0, 0.25)
  );
}

body[data-theme="dark"] .nav-link {
  color: #9ca3af;
}

body[data-theme="dark"] .nav-link:hover {
  color: #f5f5f7;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

body[data-theme="dark"] .nav-link.active {
  color: #f5f5f7;
  background: rgba(91, 141, 255, 0.2);
  border-color: #5b8dff;
}

body[data-theme="dark"] .dock {
  background: linear-gradient(
    to bottom,
    rgba(25, 25, 30, 0.85),
    rgba(10, 10, 14, 0.95)
  );
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
}

body[data-theme="dark"] .hero-kicker,
body[data-theme="dark"] .card-kicker,
body[data-theme="dark"] .card-meta,
body[data-theme="dark"] .project-desc,
body[data-theme="dark"] .card-list {
  color: #9ca3af;
}

body[data-theme="dark"] .hero-name,
body[data-theme="dark"] .card-title,
body[data-theme="dark"] .project-name {
  color: #f5f5f7;
}

body[data-theme="dark"] .hero-role,
body[data-theme="dark"] .hero-bio {
  color: #d1d5db;
}

body[data-theme="dark"] .meta-block,
body[data-theme="dark"] .bento-card {
  background:
    linear-gradient(180deg, rgba(22, 24, 31, 0.95), rgba(12, 13, 18, 0.95));
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
}

body[data-theme="dark"] .meta-block::after,
body[data-theme="dark"] .bento-card::after {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

body[data-theme="dark"] .card-links a {
  color: #f5f5f7;
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

body[data-theme="dark"] .card-links a:hover {
  border-bottom-color: rgba(255, 255, 255, 0.6);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-visible {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

body[data-theme="dark"] .panel {
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0.02),
    rgba(3, 5, 15, 0.9)
  );
  border: 1px solid #2b2f3a;
}

body[data-theme="dark"] .panel-sidebar {
  background: linear-gradient(to bottom, #222633, #131521);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  color: #d1d5db;
}

body[data-theme="dark"] .sidebar-section-label {
  color: #9ca3af;
}

body[data-theme="dark"] .sidebar-item {
  color: #d1d5db;
}

body[data-theme="dark"] .sidebar-item.active {
  background: rgba(255, 255, 255, 0.08);
}

body[data-theme="dark"] .panel-main::before {
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.07), transparent 60%);
  opacity: 0.9;
}

body[data-theme="dark"] .badge {
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.12);
  color: #e5e7eb;
}

body[data-theme="dark"] .badge.accent {
  border-color: #5b8dff;
  background: rgba(91, 141, 255, 0.2);
  color: #e5edff;
}

body[data-theme="dark"] .pill,
body[data-theme="dark"] .chip {
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.07);
  color: #9ca3af;
}

body[data-theme="dark"] .section {
  background: radial-gradient(circle at top, #262a34 0, #181a21 60%);
  border: 1px solid #2b2f3a;
}

body[data-theme="dark"] .section-title {
  color: #9ca3af;
}

body[data-theme="dark"] .section-tag {
  color: #e5e7eb;
}

body[data-theme="dark"] .timeline-meta {
  color: #9ca3af;
}

body[data-theme="dark"] .timeline-role {
  color: #f5f5f7;
}

body[data-theme="dark"] .timeline-org {
  color: #e5e7eb;
}

body[data-theme="dark"] .project-item {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

body[data-theme="dark"] .project-name {
  color: #f5f5f7;
}

body[data-theme="dark"] .contact-value a {
  color: #e5e7eb;
  border-bottom-color: rgba(255, 255, 255, 0.4);
}

body[data-theme="dark"] .footer-link {
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.12);
  color: #e5e7eb;
}

body[data-theme="dark"] .footer-link:hover,
body[data-theme="dark"] .footer-link:focus-visible {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

/* dock já é escuro, mas reforçamos */
body[data-theme="dark"] .dock {
  background: linear-gradient(
    to bottom,
    rgba(25, 25, 30, 0.85),
    rgba(10, 10, 14, 0.95)
  );
  border: 1px solid rgba(255, 255, 255, 0.16);
}
