/* Aplica o cursor personalizado APENAS em dispositivos com rato/trackpad */
@media (pointer: fine) and (hover: hover) {
  
  /* Oculta o rato padrão em TODA a página e elementos */
  html, body, a, button, input, textarea, [role="button"] {
    cursor: none !important;
  }

  /* O cursor base (Quadrado 16x16px) */
  #custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 16px;
    height: 16px;
    background-color: #0A2EE2;
    border-radius: 0px;
    pointer-events: none;
    z-index: 999999;
    mix-blend-mode: multiply;

    /* Garante que o crescimento acontece a partir do centro exato */
    transform-origin: center center;

    /* Animação suave para a transformação (scale) e arredondamento */
    transition: 
      transform 0.25s cubic-bezier(0.25, 1, 0.5, 1),
      border-radius 0.25s cubic-bezier(0.25, 1, 0.5, 1),
      mix-blend-mode 0.2s ease;
      
    will-change: transform, border-radius;
  }

  /* Estado de Hover (Redondo) */
  #custom-cursor.is-hovered {
    border-radius: 50%;
  }
}

/* Oculta o elemento do cursor em ecrãs táteis / mobile */
@media (pointer: coarse), (hover: none) {
  #custom-cursor {
    display: none !important;
  }
}

/* SCROLLBAR */
/* 1. Remove a barra de scroll real do navegador */
html::-webkit-scrollbar {
  display: none;
}

html {
  scrollbar-width: none;
}
 
/* 2. Cria uma barra e um manípulo falsos numa posição fixa no ecrã */
body::before {
  content: '';
  position: fixed;
  top: 0;
  right: 0;
  width: 8px;
  height: 100vh;
  background: #ffffff00; /* Fundo da barra */
  z-index: 9999;
}
 
body::after {
  content: '';
  position: fixed;
  top: 20px; /* Posição fixa do manípulo */
  right: 0;
  width: 8px;
  height: 60px; /* Tamanho do manípulo */
  background: #0A2EE2; /* Cor do manípulo */
  border-radius: 0;
  z-index: 10000;
}

