/* adicionar fonte localmente:

@font-face {
  font-family: 'fonte';
  src: url('fonts/fonte.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: 'fonte', sans-serif;
}

*/

* {
    box-sizing: border-box;
}

body {
    background-color: #111111;
    font-family: 'Poppins', sans-serif; 
    margin: 0;                                      /* reinicia a margem do body para tirar o espaçamento */
    user-select: none;                              /* impede de arrastar e selecionar */
    overflow: hidden;                               /* esconde o scroll */
    -webkit-user-drag: none;                        /* bloqueia arrastar imagens */
    /* pointer-events: none -> imagem não recebe clique */
}

header { /* centraliza conteúdo dentro (navbar) */
    display: flex;                                  
    justify-content: center;                        
    align-items: center;    
}

.navbar {
    display: flex;                                  /* coloca tudo em linha */
    justify-content: space-around;                        /* espaça o contéudo */
    align-items: center;                            /* centraliza na vertical */
    overflow: hidden;
    position: relative;                        
    padding-right: 2%;                              /* espaço interno */
    background: #1e1e1e;
    box-shadow:
      inset 0 0 0 1px rgba(255,255,255,0.05),
      0 10px 30px rgba(0,0,0,0.6);  
    /* adiciona uma sombra no conteúdo           
    ordem: desloc-x desloc-y desfoque cor;
    */ 
    margin-top: 15px; /* espaça das laterais */
    width: 20%;
    outline: 1px solid rgba(255,255,255,0.15);
    border-radius: 999px;
    
}

.navbar-outline {
    position: absolute; /* encaixa na navbar junto ao relative */
    inset: 0; /* faz ocupar o mesmo espaço da navbar */
    width: 100%;
    height: 100%;
    pointer-events: none; /* intercepta cliques */
    z-index: 1; /* atribui camada */
}

.navbar-outline rect { /* seleção do retângulo svg */
    fill: none; /* remove o preenchimente interno */
    stroke: rgb(180, 1, 235);
    stroke-width: 1.2;
    stroke-linecap: round; /* formato das extremidades */
    stroke-dasharray: 0.20 0.80; /* define segmentos visíveis e invisíveis */
    animation: dashMove 15s linear infinite; /* aplica animação de forma contínua */
    filter: drop-shadow(0 0 6px rgba(177, 51, 216, 0.9)); /* cria um glow externo */
}


@keyframes dashMove { /* declara animação */
    to {
        stroke-dashoffset: -1; /* move os segmentos */
    }
}

.menu {
  display: flex;
  gap: 50px; /* distancia entre os elementos */
  list-style: none;
}

.menu a {
  display: flex;
  align-items: center;
  gap: 0px; /* distancia entre textos e icons*/
  color: white;
  text-decoration: none; /* remove o sublinhado */
  font-size: 16px;
  font-weight: 500;
  opacity: 0.85;
  margin-top: 5px;
}

.menu a:hover { /* quando o mouse passa por cima */
  opacity: 1;
}

.nav-link {
  display: flex;
  flex-direction: column; /* empilha */
  align-items: center;
  text-decoration: none;
  color: white;
}

.nav-link:hover {
  opacity: 1;
}

.icon img {
    height: 25px;
    filter: invert(1); /* inverte a cor da imagem deixando ela branca (preto -> branco) */
    z-index: 2;
}

.item {
    position: relative;
    z-index: 2;
}
.item::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;

    background: radial-gradient(
      circle at center,
      rgba(201, 50, 214, 0.205),
      rgba(161, 23, 196, 0.555) 35%,
      transparent 60%
    );

    opacity: 0;
    filter: blur(8px);
    transition: 0.4s ease;
}

.item.active::before {
    opacity: 1;
}

.item:hover::before {
    opacity: 0.8;
}

.item.active {
    background: radial-gradient(
      circle at center,
      rgba(255, 255, 255, 0.12),
      transparent 60%
    );
    border-radius: 50%;
}

.menu,
.item,
.icon img {
    position: relative;
    z-index: 2;
}

.content {
    padding: 40px 5%;
}

.pdf-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.pdf-card {
    background: #1e1e1e;
    border-radius: 16px;
    padding: 12px;
    cursor: pointer;
    transition: transform .3s ease, box-shadow .3s ease;
    color: white;
}

.pdf-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0,0,0,.6);
}

.pdf-preview {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    pointer-events: none;
}

.pdf-preview iframe {
    width: 100%;
    height: 100%;
    border: none;
    transform: scale(1.15);
    transform-origin: top center;
}

.pdf-card span {
    display: block;
    margin-top: 10px;
    text-align: center;
    font-weight: 500;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.75);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    width: 80%;
    height: 85%;
    background: #111;
    border-radius: 20px;
    overflow: hidden;
}

.modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.close {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 32px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

