:root,
[data-theme="light"] {
  --bg-color: #8fbc8b;
  --text-color: #ffffff;
  --logo-filter: brightness(0) invert(1);
  --label-opacity: 0.9;
  --time-opacity: 0.8;
  --progress-bg-opacity: 0.45;
}

[data-theme="dark"] {
  --bg-color: #121212;
  --text-color: #8fbc8b;
  --logo-filter: brightness(0) invert(81%) sepia(23%) saturate(440%) hue-rotate(68deg) brightness(82%) contrast(91%);
  --label-opacity: 0.55;
  --time-opacity: 0.4;
  --progress-bg-opacity: 0.25;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: "Tiny5", sans-serif;
  overflow: hidden;
  user-select: none;
}



#pixel-trail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.6;
}

.stage {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
    visibility 0s 0.6s;
}

#stage-hero {
  transform: translateY(-50px);
}

#stage-menu {
  transform: translateY(50px);
}

.stage.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) !important;
  transition:
    opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
    visibility 0s 0s;
}

#stage-menu {
  display: block;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0px, transparent 40px, black 70px, black calc(100% - 140px), transparent calc(100% - 90px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0px, transparent 40px, black 70px, black calc(100% - 140px), transparent calc(100% - 90px), transparent 100%);
}

.scroll-wrapper {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 10vh 2rem 150px 2rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scroll-wrapper::-webkit-scrollbar {
  display: none;
}

.menu-content {
  display: flex;
  flex-direction: row;
  gap: 6rem;
  width: 100%;
  max-width: 1200px;
  justify-content: center;
  align-items: flex-start;
  margin: auto;
}

@media (max-width: 900px) {
  .menu-content {
    flex-direction: column;
    gap: 4rem;
    align-items: center; /* Centraliza a coluna na tela */
  }
  .eyebrow {
    text-align: center;
    width: 100%;
    padding-left: 0;
  }
  .contact-section {
    margin-top: 6rem;
  }
}

h1, h2 {
  font-size: clamp(2.5rem, 8vw, 6rem);
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.05em;
}
p {
  margin: 0.5rem 0 0;
  font-size: clamp(1rem, 3.5vw, 2.5rem);
}

.hint {
  margin-top: 3rem;
  font-size: clamp(0.7rem, 2vw, 1.1rem);
  opacity: 0.55;
  animation: fade 2.4s ease-in-out infinite;
}

@keyframes fade {
  50% {
    opacity: 0.15;
  }
}

.eyebrow {
  font-size: clamp(0.8rem, 2vw, 1.1rem);
  opacity: 0.5;
  margin-bottom: 1.5rem;
  padding-left: calc(10px + 0.8rem); /* Alinha com o texto, já que o .sq é invisível por padrão */
}

.projects {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  pointer-events: auto;
  max-width: 90vw;
}

.projects li {
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  text-align: left;
}

@keyframes listItemIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
  }
}

#stage-menu.active .projects li {
  animation: listItemIn 0.5s ease backwards;
}

#stage-menu.active .projects li:nth-child(1) {
  animation-delay: 0.15s;
}

#stage-menu.active .projects li:nth-child(2) {
  animation-delay: 0.25s;
}

#stage-menu.active .projects li:nth-child(3) {
  animation-delay: 0.35s;
}

#stage-menu.active .projects li:nth-child(4) {
  animation-delay: 0.45s;
}

#stage-menu.active .projects li:nth-child(5) { animation-delay: 0.55s; }
#stage-menu.active .projects li:nth-child(6) { animation-delay: 0.65s; }
#stage-menu.active .projects li:nth-child(7) { animation-delay: 0.75s; }
#stage-menu.active .projects li:nth-child(8) { animation-delay: 0.85s; }
#stage-menu.active .projects li:nth-child(9) { animation-delay: 0.95s; }
#stage-menu.active .projects li:nth-child(10) { animation-delay: 1.05s; }
#stage-menu.active .projects li:nth-child(11) { animation-delay: 1.15s; }
#stage-menu.active .projects li:nth-child(12) { animation-delay: 1.25s; }

.projects .sq {
  width: 10px;
  height: 10px;
  margin-top: 0.5em;
  background: var(--text-color);
  opacity: 0;
  flex: none;
  transition: opacity 0.15s steps(2);
}

.projects li:hover .sq,
.projects li:focus-visible .sq,
.projects li.is-clicked .sq {
  opacity: 1;
}

.projects .label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.projects .name {
  font-family: "Tiny5", sans-serif;
  font-size: clamp(1.1rem, 2.8vw, 1.7rem);
  letter-spacing: 0.04em;
  display: inline-flex;
  perspective: 800px;
}

.letter-3d-wrapper {
  position: relative;
  display: inline-block;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  line-height: 1;
}

.projects li:hover .letter-3d-wrapper,
.projects li:focus-visible .letter-3d-wrapper,
.projects li.is-clicked .letter-3d-wrapper {
  transform: rotateX(90deg);
}

.letter-3d-front {
  display: inline-block;
  transform: translateZ(0.4em);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.letter-3d-bottom {
  display: inline-block;
  position: absolute;
  top: 0;
  left: 0;
  transform: rotateX(-90deg) translateZ(0.4em);
  opacity: 0.65;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.projects .desc {
  font-size: clamp(0.7rem, 1.6vw, 0.95rem);
  opacity: 0.55;
}

.shimmer {
  position: relative;
  display: inline-block;
  opacity: 1;
  color: transparent;
  background: linear-gradient(
    110deg,
    var(--text-color) 0%,
    var(--text-color) 35%,
    #fff 50%,
    var(--text-color) 65%,
    var(--text-color) 100%
  );
  background-size: 400% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shimmerLight 4s ease-in-out infinite;
}

.shimmer::before,
.shimmer::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 2px;
  background: currentColor;
  box-shadow:
    -2px 0 0 currentColor,
     2px 0 0 currentColor,
     0 -2px 0 currentColor,
     0  2px 0 currentColor;
  opacity: 0;
  pointer-events: none;
}

.shimmer::before {
  top: 1px;
  right: -1px;
  color: #fff;
  animation: sparklePos1 5s ease-in-out infinite;
}

.shimmer::after {
  bottom: 2px;
  left: 0px;
  color: #fff;
  animation: sparklePos2 5s ease-in-out infinite;
}

[data-theme="light"] .shimmer::before,
[data-theme="light"] .shimmer::after {
  color: #ffeb3b;
}

[data-theme="light"] .shimmer {
  background: linear-gradient(
    110deg,
    var(--text-color) 0%,
    var(--text-color) 35%,
    #ffeb3b 50%,
    var(--text-color) 65%,
    var(--text-color) 100%
  );
  background-size: 400% 100%;
  -webkit-background-clip: text;
  background-clip: text;
}

@keyframes shimmerLight {
  0%, 15%   { background-position: 100% 0; }
  85%, 100% { background-position: 0% 0; }
}

@keyframes sparklePos1 {
  0%, 10% { opacity: 0; transform: translate(0, 0); }
  15%     { opacity: 1; transform: translate(0, 0); }
  20%, 40% { opacity: 0; transform: translate(0, 0); }

  50%       { opacity: 0; transform: translate(-18px, 6px); }
  55%       { opacity: 1; transform: translate(-18px, 6px); }
  60%, 100% { opacity: 0; transform: translate(-18px, 6px); }
}

@keyframes sparklePos2 {
  0%, 30% { opacity: 0; transform: translate(0, 0); }
  35%     { opacity: 1; transform: translate(0, 0); }
  40%, 75% { opacity: 0; transform: translate(0, 0); }

  80%       { opacity: 0; transform: translate(14px, -12px); }
  85%       { opacity: 1; transform: translate(14px, -12px); }
  90%, 100% { opacity: 0; transform: translate(14px, -12px); }
}

.education-section {
  width: 100%;
}

.desktop-edu {
  position: absolute;
  top: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  max-width: 320px;
  width: 90%;
  text-align: center;
}

.desktop-edu .eyebrow {
  display: none;
}

.desktop-edu .education-card {
  align-items: center;
}

.desktop-edu .education-progress-bar {
  transition: width 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s;
}

.mobile-edu {
  max-width: 1200px;
  margin: 4rem auto 0;
  padding-left: calc(10px + 0.8rem);
  display: none;
}

@keyframes blockIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
  }
}

#stage-menu.active .mobile-edu {
  animation: blockIn 0.6s ease 1.3s backwards;
}

.contact-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 4rem auto 0;
}

.contact-section .eyebrow {
  width: auto;
  padding-left: 0;
  text-align: center;
  margin-bottom: 1.25rem;
}

.contact-email {
  display: inline-block;
  font-size: clamp(1rem, 3vw, 1.6rem);
  color: var(--text-color);
  text-decoration: none;
  border-bottom: 1px dashed currentColor;
  padding-bottom: 0.2rem;
  transition:
    transform 0.15s steps(3),
    filter 0.15s steps(3);
}

/* Keyframes reiniciam a cada entrada no stage; transition nao, por causa do delay */
@keyframes contactIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
  }
}

@keyframes contactEyebrowIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 0.5;
  }
}

#stage-menu.active .contact-email {
  animation: contactIn 0.5s ease 0.9s backwards;
}

.contact-email:hover,
.contact-email:focus-visible {
  transform: translateY(-6px);
  filter: drop-shadow(0 10px 15px var(--shadow-color, rgba(0, 0, 0, 0.4)));
  border-bottom-style: solid;
}

.contact-email:active {
  transform: translateY(2px);
  transition: transform 0.05s steps(2);
}

.education-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 420px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease, transform 0.2s steps(4);
}

.education-card:hover,
.education-card:focus-visible {
  opacity: 0.8;
  transform: translateY(-4px);
}

.education-card:active {
  opacity: 0.6;
  transform: translateY(2px);
  transition: transform 0.05s steps(2);
}

.education-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.education-name {
  font-size: clamp(1.1rem, 2.8vw, 1.7rem);
  letter-spacing: 0.04em;
}

.education-institution {
  font-size: clamp(0.7rem, 1.6vw, 0.95rem);
  opacity: 0.55;
}

.education-progress-wrapper {
  position: relative;
  width: 100%;
  height: 4px;
}

.education-progress-bg {
  position: absolute;
  inset: 0;
  background-color: currentColor;
  opacity: 0.15;
}

.education-progress-bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background-color: currentColor;
  width: 0%;
  transition: width 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) 1.6s;
}

.education-elapsed {
  font-size: clamp(0.65rem, 1.4vw, 0.8rem);
  opacity: 0.4;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
  .desktop-edu {
    display: none;
  }
  .mobile-edu {
    display: flex;
    padding-left: 0;
    flex-direction: column;
    align-items: center;
  }
  .education-card {
    align-items: center;
  }
  .education-progress-wrapper {
    max-width: 300px;
  }
}

.socials {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  z-index: 100;
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  height: 50px;
}

.github-status {
  font-size: 0.75rem;
  color: var(--text-color);
  opacity: 0.6;
  text-align: right;
  pointer-events: none;
}

.socials a {
  display: flex;
  align-items: center;
  transition: transform 0.15s steps(3), filter 0.15s steps(3);
}

.socials a:hover,
.socials a:focus-visible {
  transform: translateY(-6px);
  filter: drop-shadow(0 10px 15px var(--shadow-color, rgba(0, 0, 0, 0.4)));
}

.socials a:active {
  transform: translateY(2px);
  transition: transform 0.05s steps(2);
}

.socials img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: var(--logo-filter);
  image-rendering: pixelated;
}

.theme-toggle {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 100;
  cursor: pointer;
  color: var(--text-color);
  transition: transform 0.15s steps(3);
}

.theme-toggle:hover {
  transform: translateY(-6px);
}

.theme-toggle:active {
  transform: translateY(2px);
  transition: transform 0.05s steps(2);
}

#pixel-transition {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
}

#pixel-transition.active {
  opacity: 1;
}


.spotify-widget {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  height: 50px;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
}

@keyframes spotifyRise {
  0% { transform: translateY(20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes spotifyDrop {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(20px); opacity: 0; }
}

.spotify-widget.active {
  visibility: visible;
  animation: spotifyRise 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.spotify-widget.hide {
  visibility: visible;
  animation: spotifyDrop 0.4s ease forwards;
}



.spotify-widget a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s steps(3);
}

.spotify-widget a.listen-along-btn {
  font-size: clamp(0.7rem, 2vw, 0.9rem);
  opacity: 0;
  visibility: hidden;
  padding: 0 0.6rem;
  max-height: 0;
  border: 0px solid currentColor;
  overflow: hidden;
  border-radius: 0;
  white-space: nowrap;
  font-smooth: never;
  -webkit-font-smoothing: none;
  transition: max-height 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), padding 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), border-width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), margin-top 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease, visibility 0.3s ease;
}

.spotify-widget.is-playing a.listen-along-btn {
  opacity: 0.8;
  visibility: visible;
  max-height: 50px;
  padding: 0.3rem 0.6rem;
  border-width: 2px;
}

.spotify-widget.is-playing a.listen-along-btn:hover,
.spotify-widget.is-playing a.listen-along-btn:focus-visible {
  background-color: var(--text-color);
  color: var(--bg-color);
  opacity: 1;
}

.spotify-widget a#spotifyLink:hover,
.spotify-widget a#spotifyLink:focus-visible {
  transform: translateY(-6px);
}

.spotify-widget a#spotifyLink:active {
  transform: translateY(2px);
  transition: transform 0.05s steps(2);
}

.spotify-icon svg, .spotify-icon img {
  width: 38px;
  height: 38px;
}

.spotify-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  max-width: 280px;
}

.spotify-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.2rem;
  gap: 0.5rem;
}

.spotify-label {
  font-size: clamp(0.7rem, 2vw, 0.9rem);
  opacity: var(--label-opacity);
  line-height: 1;
  white-space: nowrap;
}

.spotify-time {
  font-size: clamp(0.6rem, 1.8vw, 0.8rem);
  opacity: var(--time-opacity);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.spotify-track {
  font-size: clamp(0.9rem, 2.5vw, 1.2rem);
  line-height: 1;
  white-space: nowrap;
}

.spotify-progress-wrapper {
  width: 100%;
  height: 0;
  opacity: 0;
  position: relative;
  margin-top: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, height 0.3s ease, margin-top 0.3s ease;
}

.spotify-widget.is-playing .spotify-progress-wrapper {
  height: 2px;
  opacity: 1;
  margin-top: 0.35rem;
}

.spotify-progress-bg {
  position: absolute;
  inset: 0;
  background-color: currentColor;
  opacity: var(--progress-bg-opacity);
}

.spotify-progress-bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background-color: currentColor;
  width: 0%;
  transition: width 1s linear;
}

.custom-notification {
  position: fixed;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.8rem 1.5rem;
  font-family: "Tiny5", sans-serif;
  font-size: clamp(0.9rem, 2.5vw, 1.2rem);
  text-align: center;
  z-index: 1000;
  pointer-events: none;
  font-smooth: never;
  -webkit-font-smoothing: none;
  color: var(--bg-color);
  filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.2));
  white-space: nowrap;
}

.tetris-msg {
  position: relative;
  z-index: 2;
  opacity: 0;
}

.custom-notification.show .tetris-msg {
  animation: msgAppear 0.1s 0.6s forwards;
}

@keyframes msgAppear {
  to { opacity: 1; }
}

.tetris-chunk {
  position: absolute;
  top: -150px;
  height: 100%;
  background-color: var(--text-color);
  border-top: 2px solid var(--bg-color);
  border-bottom: 2px solid var(--bg-color);
  z-index: 1;
}

.tetris-chunk:first-child { border-left: 2px solid var(--bg-color); }
.tetris-chunk:last-child { border-right: 2px solid var(--bg-color); }

.custom-notification.show .tetris-chunk {
  animation-name: chunkDrop;
  animation-duration: 0.3s;
  animation-timing-function: steps(6, end);
  animation-delay: var(--delay-in);
  animation-fill-mode: forwards;
}

.custom-notification.hide .tetris-chunk {
  animation-name: chunkRise;
  animation-duration: 0.3s;
  animation-timing-function: steps(6, end);
  animation-delay: var(--delay-out);
  animation-fill-mode: forwards;
}
.custom-notification.hide .tetris-msg {
  animation: msgDisappear 0.1s forwards;
}

@keyframes msgAppear {
  to { opacity: 1; }
}

@keyframes msgDisappear {
  0% { opacity: 1; top: 0; }
  100% { opacity: 0; top: -10px; }
}

@keyframes chunkDrop {
  0% { top: -150px; }
  100% { top: 0; }
}

@keyframes chunkRise {
  0% { top: 0; }
  100% { top: -150px; }
}

@media (max-width: 600px) {
  .theme-toggle {
    top: 0.11rem; /* Visually aligns with social icons which have more internal padding */
    right: 1.5rem;
    left: auto;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .socials {
    top: 0.2rem;
    bottom: auto;
    left: 1.5rem;
    right: auto;
    align-items: flex-start;
  }
  .github-status {
    position: fixed;
    top: 0.2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: max-content;
    height: 50px;
    display: flex;
    align-items: center;
  }
  .socials img {
    width: 28px;
    height: 28px;
  }
  .projects {
    gap: 1.8rem; /* Melhor para tocar no celular */
  }
  .scroll-wrapper {
    padding-bottom: 25vh; /* Evita que a nav bar do iOS/Android coma o final */
  }
  .spotify-widget {
    bottom: 0.8rem;
    left: 1.5rem;
    right: 1.5rem;
    height: auto;
    flex-direction: column;
    align-items: stretch;
  }
  .spotify-widget a#spotifyLink {
    width: 100%;
  }
  .spotify-widget a.listen-along-btn {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    width: 100%;
    font-size: 0.7rem;
    padding: 0;
    justify-content: center;
    margin: 0;
  }
  .spotify-widget.is-playing a.listen-along-btn {
    padding: 0.3rem;
    margin-top: 0.8rem;
  }
  .spotify-icon svg, .spotify-icon img {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }
  .spotify-info {
    min-width: 0;
    flex: 1;
    max-width: none;
  }
  .spotify-label {
    font-size: 0.7rem;
  }
  .spotify-track {
    font-size: 0.9rem;
  }
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-color);
  color: var(--text-color);
  border: 1px solid var(--text-color);
  padding: 3rem 2.5rem;
  max-width: 600px;
  width: 90%;
  position: relative;
  text-align: justify;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal-content p {
  font-size: clamp(0.7rem, 1.2vw, 0.95rem);
  line-height: 1.6;
  margin: 0;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: transparent;
  color: var(--text-color);
  border: none;
  font-family: inherit;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.modal-close:hover {
  opacity: 1;
}

/* Fix hover flickering on buttons */
.socials a, #spotifyLink, .contact-email {
  position: relative;
}
.socials a::after, .theme-toggle::after, #spotifyLink::after, .contact-email::after {
  content: "";
  position: absolute;
  inset: -5px;
  transition: transform 0.15s steps(3);
}
.socials a:hover::after, .theme-toggle:hover::after, #spotifyLink:hover::after, .contact-email:hover::after,
.socials a:focus-visible::after, .theme-toggle:focus-visible::after, #spotifyLink:focus-visible::after, .contact-email:focus-visible::after {
  transform: translateY(6px);
}
.socials a:active::after, .theme-toggle:active::after, #spotifyLink:active::after, .contact-email:active::after {
  transform: translateY(-2px);
  transition: transform 0.05s steps(2);
}
