@charset "UTF-8";
/** Até tablet — layout mobile do hero */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  min-height: 100vh;
  background: linear-gradient(-45deg, #faf9f7 0%, #f0eeeb 25%, #e8e6e3 50%, #f5f4f2 75%, #faf9f7 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  color: #1a1a1a;
  position: relative;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.06) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.05) 0%, transparent 50%), radial-gradient(circle at 40% 40%, rgba(34, 197, 94, 0.03) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}
body[data-theme=dark] {
  background: linear-gradient(-45deg, #0f0f0f 0%, #1a1a1a 25%, #141414 50%, #1a1a1a 75%, #0f0f0f 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  color: #f5f5f5;
}
body[data-theme=dark]::before {
  background: radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.08) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.06) 0%, transparent 50%), radial-gradient(circle at 40% 40%, rgba(34, 197, 94, 0.04) 0%, transparent 40%);
}
body[data-theme=dark]::after {
  background-image: linear-gradient(rgba(99, 102, 241, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(99, 102, 241, 0.06) 1px, transparent 1px);
}
@media (max-width: 767px) {
  body::after {
    background-size: 24px 24px, 24px 24px;
    opacity: 0.95;
  }
  body[data-theme=dark]::after {
    background-image: linear-gradient(rgba(56, 189, 248, 0.09) 1px, transparent 1px), linear-gradient(90deg, rgba(56, 189, 248, 0.07) 1px, transparent 1px), linear-gradient(rgba(99, 102, 241, 0.05) 1px, transparent 1px);
    background-size: 24px 24px, 24px 24px, 8px 8px;
  }
}

.bg-tech {
  display: none;
}
@media (max-width: 767px) {
  .bg-tech {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 100% 45% at 50% -5%, rgba(99, 102, 241, 0.14) 0%, transparent 55%), radial-gradient(circle at 10% 90%, rgba(34, 211, 238, 0.06) 0%, transparent 35%), radial-gradient(circle at 92% 40%, rgba(139, 92, 246, 0.08) 0%, transparent 30%), repeating-linear-gradient(-18deg, transparent, transparent 40px, rgba(99, 102, 241, 0.025) 40px, rgba(99, 102, 241, 0.025) 41px);
    overflow: hidden;
  }
  .bg-tech::before {
    content: "";
    position: absolute;
    inset: -50% 0;
    background: linear-gradient(180deg, transparent 0%, rgba(99, 102, 241, 0.04) 48%, rgba(99, 102, 241, 0.07) 50%, rgba(99, 102, 241, 0.04) 52%, transparent 100%);
    background-size: 100% 200%;
    animation: techScan 7s linear infinite;
  }
  body[data-theme=dark] .bg-tech {
    background: radial-gradient(ellipse 100% 50% at 50% -10%, rgba(56, 189, 248, 0.12) 0%, transparent 50%), radial-gradient(circle at 8% 85%, rgba(99, 102, 241, 0.1) 0%, transparent 32%), radial-gradient(circle at 95% 35%, rgba(168, 85, 247, 0.09) 0%, transparent 28%), repeating-linear-gradient(0deg, transparent, transparent 31px, rgba(34, 211, 238, 0.04) 31px, rgba(34, 211, 238, 0.04) 32px), repeating-linear-gradient(90deg, transparent, transparent 31px, rgba(99, 102, 241, 0.035) 31px, rgba(99, 102, 241, 0.035) 32px);
  }
}

@keyframes techScan {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(50%);
  }
}
.bg-code {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.bg-code__sym {
  position: absolute;
  font-family: "Fira Code", "Consolas", "Monaco", monospace;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #ffffff;
  opacity: 0.08;
  animation: floatCode 22s ease-in-out infinite;
  white-space: nowrap;
}
body[data-theme=dark] .bg-code__sym {
  opacity: 0.12;
}
@media (max-width: 767px) {
  .bg-code__sym {
    font-size: 0.65rem;
    opacity: 0.1;
  }
  body[data-theme=dark] .bg-code__sym {
    opacity: 0.16;
    color: #a5f3fc;
  }
}
.bg-code__sym:nth-child(1) {
  left: 8%;
  top: 12%;
  animation-delay: 0s;
  animation-duration: 20s;
}
.bg-code__sym:nth-child(2) {
  left: 85%;
  top: 8%;
  animation-delay: -3s;
  animation-duration: 24s;
}
.bg-code__sym:nth-child(3) {
  left: 15%;
  top: 75%;
  animation-delay: -6s;
  animation-duration: 18s;
}
.bg-code__sym:nth-child(4) {
  left: 78%;
  top: 65%;
  animation-delay: -2s;
  animation-duration: 26s;
}
.bg-code__sym:nth-child(5) {
  left: 45%;
  top: 25%;
  animation-delay: -8s;
  animation-duration: 22s;
}
.bg-code__sym:nth-child(6) {
  left: 25%;
  top: 45%;
  animation-delay: -4s;
  animation-duration: 19s;
}
.bg-code__sym:nth-child(7) {
  left: 70%;
  top: 40%;
  animation-delay: -10s;
  animation-duration: 25s;
}
.bg-code__sym:nth-child(8) {
  left: 5%;
  top: 50%;
  animation-delay: -1s;
  animation-duration: 21s;
}
.bg-code__sym:nth-child(9) {
  left: 92%;
  top: 30%;
  animation-delay: -5s;
  animation-duration: 23s;
}
.bg-code__sym:nth-child(10) {
  left: 55%;
  top: 80%;
  animation-delay: -7s;
  animation-duration: 20s;
}
.bg-code__sym:nth-child(11) {
  left: 35%;
  top: 15%;
  animation-delay: -9s;
  animation-duration: 27s;
}
.bg-code__sym:nth-child(12) {
  left: 65%;
  top: 88%;
  animation-delay: -11s;
  animation-duration: 17s;
}

@keyframes floatCode {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(12px, -18px) rotate(3deg);
  }
  50% {
    transform: translate(-10px, 12px) rotate(-2deg);
  }
  75% {
    transform: translate(8px, 6px) rotate(1deg);
  }
}
@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.bio,
.theme-toggle {
  position: relative;
  z-index: 1;
}

.theme-toggle {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 250ms ease;
}
.theme-toggle:hover {
  transform: scale(1.05);
}
.theme-toggle .theme-toggle__icon--moon {
  display: none;
}
body[data-theme=dark] .theme-toggle {
  background: #1a1a1a;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}
body[data-theme=dark] .theme-toggle .theme-toggle__icon--sun {
  display: none;
}
body[data-theme=dark] .theme-toggle .theme-toggle__icon--moon {
  display: block;
}

.bio {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  /** Tablet: coluna única um pouco mais arejada (mobile < md inalterado) */
}
@media (min-width: 768px) {
  .bio {
    max-width: 720px;
    padding-top: 2.75rem;
  }
}
.bio {
  /**
   * Desktop amplo: estilo link-in-bio premium — identidade à esquerda,
   * links num painel glass à direita (só ≥ lg; mobile/tablet portrait mantém layout atual).
   */
}
@media (min-width: 1024px) {
  .bio {
    max-width: 1120px;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(300px, 400px);
    grid-template-rows: 1fr auto;
    column-gap: clamp(2rem, 4.5vw, 3.75rem);
    row-gap: 0;
    align-items: center;
    padding: clamp(2.25rem, 5vh, 3.5rem) clamp(1.5rem, 3vw, 2.5rem) 2rem;
  }
}

.bio__profile {
  text-align: center;
  margin-bottom: 3rem;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
@media (min-width: 768px) {
  .bio__profile {
    position: relative;
  }
  .bio__profile::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 52px;
    width: 200px;
    height: 200px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, rgba(34, 211, 238, 0.08) 35%, transparent 70%);
    filter: blur(28px);
    pointer-events: none;
    z-index: 0;
  }
  body[data-theme=dark] .bio__profile::before {
    background: radial-gradient(circle, rgba(129, 140, 248, 0.35) 0%, rgba(34, 211, 238, 0.12) 40%, transparent 72%);
  }
}
@media (min-width: 1024px) {
  .bio__profile {
    grid-column: 1;
    grid-row: 1;
    text-align: left;
    margin-bottom: 0;
    justify-self: start;
    max-width: 520px;
  }
  .bio__profile::before {
    left: 70px;
    top: 70px;
    width: 240px;
    height: 240px;
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 767px) {
  .bio__hero {
    perspective: 1200px;
    transform-style: preserve-3d;
    /** Evita 100vw (barra de rolagem / iOS) — compensa o padding horizontal de .bio */
    width: calc(100% + 2 * 1.5rem);
    max-width: calc(100% + 2 * 1.5rem);
    margin-left: calc(-1 * 1.5rem);
    margin-right: calc(-1 * 1.5rem);
    box-sizing: border-box;
    position: relative;
    isolation: isolate;
    padding-bottom: 1.5rem;
    overflow-x: clip;
  }
  .bio__hero::before {
    content: "";
    position: absolute;
    inset: -5% 0 15%;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 90% 70% at 50% 95%, rgba(99, 102, 241, 0.28) 0%, transparent 58%), radial-gradient(ellipse 70% 55% at 22% 88%, rgba(34, 211, 238, 0.14) 0%, transparent 52%), radial-gradient(ellipse 65% 50% at 82% 85%, rgba(168, 85, 247, 0.2) 0%, transparent 50%), radial-gradient(ellipse 50% 40% at 50% 40%, rgba(236, 72, 153, 0.06) 0%, transparent 55%);
    filter: blur(1px);
    opacity: 0.95;
    animation: heroAurora 14s ease-in-out infinite alternate;
  }
  .bio__hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 28%;
    bottom: -8%;
    z-index: 0;
    pointer-events: none;
    border-radius: 58% 42% 52% 48%/48% 52% 48% 52%;
    background: linear-gradient(125deg, rgba(99, 102, 241, 0.12) 0%, rgba(34, 211, 238, 0.08) 45%, rgba(168, 85, 247, 0.1) 100%);
    filter: blur(36px);
    opacity: 0.85;
    animation: heroBlob 22s ease-in-out infinite;
  }
  body[data-theme=dark] .bio__hero::before {
    background: radial-gradient(ellipse 95% 75% at 50% 100%, rgba(99, 102, 241, 0.35) 0%, transparent 55%), radial-gradient(ellipse 75% 60% at 18% 90%, rgba(34, 211, 238, 0.18) 0%, transparent 50%), radial-gradient(ellipse 70% 55% at 85% 88%, rgba(192, 132, 252, 0.22) 0%, transparent 48%);
  }
  body[data-theme=dark] .bio__hero::after {
    background: linear-gradient(130deg, rgba(79, 70, 229, 0.14) 0%, rgba(34, 211, 238, 0.1) 50%, rgba(168, 85, 247, 0.14) 100%);
  }
  body:not([data-theme=dark]) .bio__hero::before {
    opacity: 0.75;
    filter: blur(2px);
  }
}
@media (min-width: 768px) {
  .bio__hero {
    display: contents;
  }
}

@media (max-width: 767px) {
  .bio__intro {
    position: relative;
    z-index: 2;
    margin-top: -3.25rem;
    padding: 2rem 1rem 1.5rem;
    transform: translateZ(28px);
    border-radius: 16px 16px 0 0;
    background: linear-gradient(180deg, rgba(15, 15, 15, 0) 0%, rgba(15, 15, 15, 0.28) 22%, rgba(15, 15, 15, 0.55) 55%, rgba(12, 10, 22, 0.78) 100%);
    backdrop-filter: blur(20px) saturate(1.15);
    -webkit-backdrop-filter: blur(20px) saturate(1.15);
    mask-image: linear-gradient(180deg, transparent 0%, black 16%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 16%);
    box-shadow: 0 -32px 64px rgba(99, 102, 241, 0.12), 0 -8px 40px rgba(34, 211, 238, 0.08), 0 24px 48px rgba(0, 0, 0, 0.35);
  }
  body:not([data-theme=dark]) .bio__intro {
    background: linear-gradient(180deg, rgba(250, 249, 247, 0) 0%, rgba(250, 249, 247, 0.5) 30%, rgba(248, 246, 255, 0.88) 100%);
    box-shadow: 0 -24px 48px rgba(99, 102, 241, 0.08), 0 16px 40px rgba(0, 0, 0, 0.06);
  }
}

.avatar {
  margin: 0 auto 1.5rem;
  width: 120px;
  height: 120px;
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
  border: 3px solid #e8e6e3;
  transition: border-color 250ms ease;
}
body[data-theme=dark] .avatar {
  border-color: #2a2a2a;
}
@media (max-width: 767px) {
  .avatar {
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 220px;
    max-height: none;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
    border-radius: 0;
    border: none;
    overflow: visible;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 1;
    transform: translateZ(0);
    background: transparent;
    isolation: isolate;
    filter: drop-shadow(0 28px 56px rgba(79, 70, 229, 0.38)) drop-shadow(0 12px 36px rgba(0, 0, 0, 0.42)) drop-shadow(0 4px 20px rgba(34, 211, 238, 0.22)) drop-shadow(0 -6px 32px rgba(192, 132, 252, 0.12));
    perspective: none;
  }
  .avatar::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 95%;
    height: min(70%, 340px);
    max-height: 55vh;
    transform: translateX(-50%) translateY(8%);
    background: radial-gradient(ellipse 55% 65% at 50% 100%, rgba(129, 140, 248, 0.55) 0%, rgba(34, 211, 238, 0.22) 38%, rgba(168, 85, 247, 0.15) 55%, transparent 72%);
    filter: blur(22px);
    z-index: -1;
    pointer-events: none;
    animation: rimPulse 6s ease-in-out infinite alternate;
  }
  body:not([data-theme=dark]) .avatar::before {
    background: radial-gradient(ellipse 55% 65% at 50% 100%, rgba(99, 102, 241, 0.35) 0%, rgba(34, 211, 238, 0.14) 42%, transparent 68%);
    filter: blur(20px);
  }
}
.avatar__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 767px) {
  .avatar__img {
    height: auto;
    max-height: min(62vh, 540px);
    width: 100%;
    object-fit: contain;
    object-position: center bottom;
    transform: translateY(4px) scale(1.1);
    transform-origin: center bottom;
    background: transparent;
    animation: figureFloat 7s ease-in-out infinite;
    mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.85) 10%, black 22%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.85) 10%, black 22%, black 92%, transparent 100%);
    mask-size: 100% 100%;
    -webkit-mask-size: 100% 100%;
  }
}
.avatar__fallback {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
  background: linear-gradient(135deg, #e8e6e3 0%, #d4d2cf 100%);
  color: #6b6b6b;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease;
}
body[data-theme=dark] .avatar__fallback {
  background: linear-gradient(135deg, rgba(42, 42, 42, 0.85) 0%, rgba(26, 26, 26, 0.75) 100%);
  color: #a3a3a3;
}
@media (max-width: 767px) {
  .avatar__fallback {
    min-height: 220px;
    max-height: min(56vh, 480px);
    border-radius: 0;
    font-size: 3rem;
    background: linear-gradient(180deg, transparent 0%, rgba(99, 102, 241, 0.08) 40%, rgba(15, 15, 15, 0.5) 100%);
  }
  body:not([data-theme=dark]) .avatar__fallback {
    background: linear-gradient(180deg, transparent 0%, rgba(99, 102, 241, 0.06) 45%, rgba(250, 249, 247, 0.85) 100%);
  }
}
.avatar__fallback--visible {
  opacity: 1;
}
@media (min-width: 768px) {
  .avatar {
    margin: 0 auto 1.5rem;
    width: 120px;
    height: 120px;
    border-radius: 9999px;
    overflow: hidden;
    border: 3px solid #e8e6e3;
    filter: none;
  }
  body[data-theme=dark] .avatar {
    border-color: #2a2a2a;
  }
  .avatar .avatar__img {
    max-height: none;
    object-fit: cover;
    object-position: center;
    transform: none;
    animation: none;
    mask-image: none;
    -webkit-mask-image: none;
  }
  .avatar::before {
    display: none;
  }
  .avatar .avatar__fallback {
    min-height: 0;
    max-height: none;
    font-size: 2rem;
  }
}
@media (min-width: 1024px) {
  .avatar {
    width: 140px;
    height: 140px;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 2rem;
    border-width: 3px;
    box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.2), 0 12px 40px rgba(79, 70, 229, 0.18), 0 4px 16px rgba(0, 0, 0, 0.12);
  }
  body[data-theme=dark] .avatar {
    box-shadow: 0 0 0 1px rgba(165, 180, 252, 0.28), 0 16px 48px rgba(0, 0, 0, 0.45), 0 0 80px rgba(99, 102, 241, 0.12);
  }
  body:not([data-theme=dark]) .avatar {
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.12), 0 12px 32px rgba(99, 102, 241, 0.1), 0 4px 12px rgba(0, 0, 0, 0.06);
  }
}

.bio__name {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
@media (max-width: 767px) {
  .bio__name {
    font-size: clamp(1.7rem, 7vw, 2.25rem);
    line-height: 1.12;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.08), 0 2px 24px rgba(0, 0, 0, 0.82), 0 6px 48px rgba(0, 0, 0, 0.5), 0 0 80px rgba(129, 140, 248, 0.35), 0 0 120px rgba(34, 211, 238, 0.12);
    transform: translateZ(44px) rotateX(5deg) scale(1.03);
    transform-origin: center top;
  }
}
@media (max-width: 767px) {
  body:not([data-theme=dark]) .bio__name {
    text-shadow: 0 2px 0 rgba(255, 255, 255, 0.95), 0 0 20px rgba(255, 255, 255, 0.9), 0 4px 24px rgba(0, 0, 0, 0.35), 0 8px 40px rgba(0, 0, 0, 0.2);
  }
}
@media (min-width: 768px) {
  .bio__name {
    font-size: 2.25rem;
    text-shadow: none;
    transform: none;
  }
}
@media (min-width: 1024px) {
  .bio__name {
    font-size: clamp(2.35rem, 2.5vw, 2.85rem);
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
  }
}

.bio__description {
  font-size: 1rem;
  color: #6b6b6b;
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.6;
}
body[data-theme=dark] .bio__description {
  color: #ffffff;
}
@media (max-width: 767px) {
  .bio__description {
    margin-top: 1.5rem;
    padding-top: 1rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85), 0 4px 24px rgba(0, 0, 0, 0.45), 0 0 40px rgba(99, 102, 241, 0.15);
    transform: translateZ(18px);
    position: relative;
  }
  .bio__description::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 130%;
    max-width: 440px;
    height: 2px;
    transform: translateX(-50%);
    border-radius: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(99, 102, 241, 0.2) 15%, rgba(129, 140, 248, 0.95) 35%, rgba(34, 211, 238, 0.85) 50%, rgba(168, 85, 247, 0.9) 65%, rgba(99, 102, 241, 0.2) 85%, transparent 100%);
    box-shadow: 0 0 12px rgba(129, 140, 248, 0.65), 0 0 28px rgba(34, 211, 238, 0.35), 0 4px 20px rgba(168, 85, 247, 0.25);
    opacity: 1;
    animation: dividerShimmer 4s ease-in-out infinite;
  }
  .bio__description::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 1.25rem;
    width: 140%;
    max-width: 400px;
    height: 80px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse 80% 100% at 50% 0%, rgba(129, 140, 248, 0.12) 0%, rgba(34, 211, 238, 0.06) 45%, transparent 70%);
    pointer-events: none;
    z-index: -1;
  }
  body:not([data-theme=dark]) .bio__description::before {
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.35), 0 0 24px rgba(34, 211, 238, 0.2);
  }
  body:not([data-theme=dark]) .bio__description::after {
    background: radial-gradient(ellipse 80% 100% at 50% 0%, rgba(99, 102, 241, 0.1) 0%, transparent 65%);
  }
}
@media (min-width: 768px) {
  .bio__description {
    text-shadow: none;
    transform: none;
  }
  .bio__description::before, .bio__description::after {
    display: none;
  }
}
@media (min-width: 1024px) {
  .bio__description {
    margin-left: 0;
    margin-right: 0;
    max-width: 42ch;
    font-size: 1.0625rem;
    line-height: 1.65;
  }
}

@keyframes heroAurora {
  0% {
    transform: scale(1) translateY(0);
    opacity: 0.88;
  }
  50% {
    transform: scale(1.06) translateY(-8px);
    opacity: 1;
  }
  100% {
    transform: scale(1.03) translateY(5px);
    opacity: 0.93;
  }
}
@keyframes rimPulse {
  0% {
    opacity: 0.85;
    transform: translateX(-50%) translateY(8%) scale(1);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(6%) scale(1.05);
  }
}
@keyframes figureFloat {
  0%, 100% {
    transform: translateY(4px) scale(1.1);
  }
  50% {
    transform: translateY(0) scale(1.105);
  }
}
@keyframes dividerShimmer {
  0%, 100% {
    opacity: 0.85;
    filter: brightness(1);
  }
  50% {
    opacity: 1;
    filter: brightness(1.25);
  }
}
@keyframes heroBlob {
  0%, 100% {
    border-radius: 58% 42% 52% 48%/48% 52% 48% 52%;
    transform: rotate(0deg) scale(1);
  }
  33% {
    border-radius: 45% 55% 48% 52%/52% 48% 52% 48%;
    transform: rotate(4deg) scale(1.03);
  }
  66% {
    border-radius: 52% 48% 42% 58%/45% 55% 50% 50%;
    transform: rotate(-3deg) scale(0.98);
  }
}
.links {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}
.links .link-item {
  animation: linkFadeIn 0.5s ease both;
}
.links .link-item:nth-child(1) {
  animation-delay: 0.06s;
}
.links .link-item:nth-child(2) {
  animation-delay: 0.12s;
}
.links .link-item:nth-child(3) {
  animation-delay: 0.18s;
}
.links .link-item:nth-child(4) {
  animation-delay: 0.24s;
}
.links .link-item:nth-child(5) {
  animation-delay: 0.3s;
}
.links .link-item:nth-child(6) {
  animation-delay: 0.36s;
}
.links .link-item:nth-child(7) {
  animation-delay: 0.42s;
}
.links .link-item:nth-child(8) {
  animation-delay: 0.48s;
}
.links .link-item:nth-child(9) {
  animation-delay: 0.54s;
}
.links .link-item:nth-child(10) {
  animation-delay: 0.6s;
}
.links .link-item:nth-child(11) {
  animation-delay: 0.66s;
}
.links .link-item:nth-child(12) {
  animation-delay: 0.72s;
}
.links .link-item:nth-child(13) {
  animation-delay: 0.78s;
}
.links .link-item:nth-child(14) {
  animation-delay: 0.84s;
}
.links .link-item:nth-child(15) {
  animation-delay: 0.9s;
}
.links .link-item:nth-child(16) {
  animation-delay: 0.96s;
}
.links .link-item:nth-child(17) {
  animation-delay: 1.02s;
}
.links .link-item:nth-child(18) {
  animation-delay: 1.08s;
}
.links .link-item:nth-child(19) {
  animation-delay: 1.14s;
}
.links .link-item:nth-child(20) {
  animation-delay: 1.2s;
}
@media (min-width: 1024px) {
  .links {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 0;
    align-self: stretch;
    gap: 1rem;
    padding: 1.75rem 1.5rem;
    border-radius: 22px;
    position: relative;
    z-index: 0;
    isolation: isolate;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.75) 0%, rgba(250, 249, 255, 0.65) 100%);
    border: 1px solid rgba(99, 102, 241, 0.12);
    box-shadow: 0 4px 24px rgba(99, 102, 241, 0.08), 0 24px 64px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
  }
  .links::before {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 25px;
    z-index: -1;
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.45) 0%, rgba(34, 211, 238, 0.2) 42%, rgba(168, 85, 247, 0.4) 100%);
    opacity: 0.35;
    filter: blur(14px);
    pointer-events: none;
  }
  body[data-theme=dark] .links {
    background: linear-gradient(155deg, rgba(28, 28, 32, 0.92) 0%, rgba(18, 18, 22, 0.88) 100%);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.12), 0 24px 80px rgba(0, 0, 0, 0.45), 0 0 120px rgba(79, 70, 229, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }
  body[data-theme=dark] .links::before {
    opacity: 0.5;
    filter: blur(18px);
  }
}

/** Botão “Portfólio” no estilo Instagram/WhatsApp só em ≥ md; no telefone usa o carrossel. */
.link-item--desktop-portfolio {
  display: none !important;
}
@media (min-width: 768px) {
  .link-item--desktop-portfolio {
    display: flex !important;
  }
}

@keyframes linkFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.link-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem 1.5rem;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 12px;
  transition: all 250ms ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #f8f8f6 100%);
  color: #1a1a1a !important;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
  transition: all 250ms ease cubic-bezier(0.4, 0, 0.2, 1);
}
.link-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 250ms ease;
  pointer-events: none;
}
.link-item:hover {
  transform: translateY(-4px) scale(1.01);
  animation: none;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.06);
  background: linear-gradient(135deg, #fff 0%, #f0f0ee 100%);
}
.link-item:hover::before {
  opacity: 1;
}
.link-item:hover .link-item__arrow {
  transform: translateX(4px);
  opacity: 1;
}
.link-item:active {
  transform: translateY(-2px) scale(1);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05);
}
body[data-theme=dark] .link-item {
  background: linear-gradient(135deg, #252525 0%, #1f1f1f 100%);
  color: #f5f5f5 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
body[data-theme=dark] .link-item::before {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
}
body[data-theme=dark] .link-item:hover {
  background: linear-gradient(135deg, #2d2d2d 0%, #262626 100%);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.12);
}
body[data-theme=dark] .link-item:active {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.1);
}
@media (min-width: 1024px) {
  .link-item {
    border-radius: 14px;
  }
  body[data-theme=dark] .link-item:hover {
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(129, 140, 248, 0.22), 0 0 40px rgba(99, 102, 241, 0.08);
  }
  body:not([data-theme=dark]) .link-item:hover {
    box-shadow: 0 14px 32px rgba(99, 102, 241, 0.12), 0 0 0 1px rgba(99, 102, 241, 0.1);
  }
}
.link-item__icon {
  font-size: 1.25rem;
  display: flex;
  align-items: center;
}
.link-item__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}
.link-item__text {
  flex: 1;
  text-align: left;
  color: inherit;
}
.link-item__arrow {
  opacity: 0.7;
  color: inherit;
  transition: all 250ms ease;
  font-weight: 600;
}

.footer {
  margin-top: auto;
  padding-top: 2rem;
}
@media (min-width: 1024px) {
  .footer {
    grid-column: 1/-1;
    grid-row: 2;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
  }
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer__copyright {
  font-size: 0.875rem;
  color: #6b6b6b;
}
body[data-theme=dark] .footer__copyright {
  color: #a3a3a3;
}

.admin-link {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 150ms ease;
  padding: 0.25rem;
}
.admin-link:hover {
  opacity: 0.9;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal__content {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  padding: 3rem;
  max-width: 360px;
  width: 100%;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
}
body[data-theme=dark] .modal__content {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
}

.modal__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}
body[data-theme=dark] .modal__title {
  color: #f5f5f5;
}

.modal__hint {
  font-size: 0.875rem;
  color: #6b6b6b;
  margin-bottom: 1rem;
}
body[data-theme=dark] .modal__hint {
  color: #a3a3a3;
}

.modal__input {
  width: 100%;
  padding: 1rem 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  border: 2px solid #e8e6e3;
  border-radius: 12px;
  margin-bottom: 1rem;
  background: #faf9f7;
  color: #1a1a1a;
}
.modal__input:focus {
  outline: none;
  border-color: #6366f1;
}
body[data-theme=dark] .modal__input {
  background: #0f0f0f;
  color: #f5f5f5;
  border-color: #2a2a2a;
}

.modal__error {
  font-size: 0.875rem;
  color: #dc2626;
  margin-bottom: 1rem;
  min-height: 1.25rem;
}

.modal__btn {
  width: 100%;
  padding: 1rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 150ms ease, filter 150ms ease;
}
.modal__btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #6b6b6b;
  line-height: 1;
  padding: 0.25rem;
}
.modal__close:hover {
  color: #1a1a1a;
}
body[data-theme=dark] .modal__close {
  color: #a3a3a3;
}
body[data-theme=dark] .modal__close:hover {
  color: #f5f5f5;
}

.portfolio-strip {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-bottom: 1.5rem;
  text-align: left;
  opacity: 0;
  animation: stripEnter 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/** Carrossel só no celular; no desktop usa o botão .link-item--desktop-portfolio */
@media (min-width: 768px) {
  .portfolio-strip--mobile-only {
    display: none !important;
  }
}

@keyframes stripEnter {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.portfolio-strip__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0 2px;
}

.portfolio-strip__title {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #1a1a1a;
}
body[data-theme=dark] .portfolio-strip__title {
  color: #f5f5f5;
}

.portfolio-strip__hint {
  font-size: 0.75rem;
  font-family: "Fira Code", monospace;
  color: #6b6b6b;
  opacity: 0.75;
  white-space: nowrap;
  animation: hintPulse 2.8s ease-in-out infinite;
}
body[data-theme=dark] .portfolio-strip__hint {
  color: #a3a3a3;
}

@keyframes hintPulse {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}
.portfolio-strip__viewport {
  position: relative;
  margin: 0 calc(-1 * 1.5rem);
  padding: 4px 0 12px;
  min-width: 0;
  max-width: calc(100% + 2 * 1.5rem);
  box-sizing: border-box;
}
.portfolio-strip__viewport::before, .portfolio-strip__viewport::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 12px;
  width: 28px;
  z-index: 2;
  pointer-events: none;
}
.portfolio-strip__viewport::before {
  left: 0;
  background: linear-gradient(90deg, #faf9f7 0%, transparent 100%);
}
body[data-theme=dark] .portfolio-strip__viewport::before {
  background: linear-gradient(90deg, #0f0f0f 0%, transparent 100%);
}
.portfolio-strip__viewport::after {
  right: 0;
  background: linear-gradient(270deg, #faf9f7 0%, transparent 100%);
}
body[data-theme=dark] .portfolio-strip__viewport::after {
  background: linear-gradient(270deg, #0f0f0f 0%, transparent 100%);
}

.portfolio-strip__track {
  display: flex;
  gap: 1rem;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 1.5rem;
  padding: 8px 1.5rem 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-x;
}
.portfolio-strip__track::-webkit-scrollbar {
  display: none;
}

.portfolio-card {
  flex: 0 0 min(78%, 280px);
  scroll-snap-align: center;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 168px;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.12) 0%, rgba(30, 30, 35, 0.92) 45%, rgba(15, 15, 18, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(99, 102, 241, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateZ(0);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  animation: cardPop 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}
.portfolio-card:nth-child(1) {
  animation-delay: 0.15s;
}
.portfolio-card:nth-child(2) {
  animation-delay: 0.22s;
}
.portfolio-card:nth-child(3) {
  animation-delay: 0.29s;
}
.portfolio-card:nth-child(4) {
  animation-delay: 0.36s;
}
body[data-theme=dark] .portfolio-card {
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.15) 0%, rgba(35, 35, 42, 0.95) 50%, rgba(18, 18, 22, 0.98) 100%);
  border-color: rgba(129, 140, 248, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 40px rgba(99, 102, 241, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
body:not([data-theme=dark]) .portfolio-card {
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.08) 0%, #ffffff 40%, #f8f7fc 100%);
  border-color: rgba(99, 102, 241, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04);
}
.portfolio-card:active {
  transform: scale(0.98);
}

@media (hover: hover) {
  .portfolio-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 40px rgba(99, 102, 241, 0.2), 0 0 0 1px rgba(129, 140, 248, 0.35), 0 0 48px rgba(34, 211, 238, 0.1);
  }
  body[data-theme=dark] .portfolio-card:hover {
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(167, 139, 250, 0.35), 0 0 56px rgba(99, 102, 241, 0.15);
  }
}
@keyframes cardPop {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.portfolio-card__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.portfolio-card__media--fallback {
  background: linear-gradient(145deg, #4f46e5 0%, #7c3aed 50%, #1e1b4b 100%);
}
.portfolio-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.portfolio-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.15) 40%, rgba(0, 0, 0, 0.75) 100%);
}

@media (hover: hover) {
  .portfolio-card:hover .portfolio-card__media img {
    transform: scale(1.06);
  }
}
.portfolio-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 1rem;
  text-align: left;
}

.portfolio-card__name {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portfolio-card--solo {
  flex: 1 1 100%;
  max-width: 100%;
}

.portfolio-card--cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(168, 85, 247, 0.18) 50%, rgba(34, 211, 238, 0.12) 100%);
  border: 1px dashed rgba(129, 140, 248, 0.45);
}
body:not([data-theme=dark]) .portfolio-card--cta {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(236, 72, 153, 0.08) 100%);
  border-color: rgba(99, 102, 241, 0.35);
}

.portfolio-card--cta .portfolio-card__cta-icon {
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: ctaBounce 2.4s ease-in-out infinite;
}

@keyframes ctaBounce {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(4px);
  }
}
.portfolio-card__cta-text {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #f5f5f5;
  letter-spacing: 0.02em;
}
body[data-theme=dark] .portfolio-card__cta-text {
  color: #f5f5f5;
}
body:not([data-theme=dark]) .portfolio-card__cta-text {
  color: #1a1a1a;
}

.portfolio-card__cta-sub {
  font-size: 0.75rem;
  opacity: 0.8;
  color: #a3a3a3;
}
body:not([data-theme=dark]) .portfolio-card__cta-sub {
  color: #6b6b6b;
}

.portfolio-card--placeholder {
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.1) 0%, rgba(40, 40, 48, 0.6) 100%);
  min-height: 140px;
}
.portfolio-card--placeholder .portfolio-card__placeholder-text {
  font-size: 0.875rem;
  color: #a3a3a3;
  text-align: center;
  padding: 1rem;
}
body:not([data-theme=dark]) .portfolio-card--placeholder .portfolio-card__placeholder-text {
  color: #6b6b6b;
}
