@font-face {
    font-family: 'Kunika';
    src: url('../font/Kunika/Kunika.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Scout';
    src: url('../font/Scout Font Family/Scout-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Scout';
    src: url('../font/Scout Font Family/Scout-RegularItalic.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'Scout';
    src: url('../font/Scout Font Family/Scout-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Scout';
    src: url('../font/Scout Font Family/Scout-BoldItalic.otf') format('opentype');
    font-weight: 700;
    font-style: italic;
}

@font-face {
    font-family: 'Scout';
    src: url('../font/Scout Font Family/Scout-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Scout';
    src: url('../font/Scout Font Family/Scout-LightItalic.otf') format('opentype');
    font-weight: 300;
    font-style: italic;
}

body {
    background-color: #000000;
    color: #ffffff;
    font-family: 'Kunika', 'Scout', serif;
    font-style: italic;
    text-align: justify;
    overflow-x: hidden;
}

.bg-shapes-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
}

.blur-shape {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.15);
    filter: blur(40px);
    background-color: rgba(255, 255, 255, 0.02);
}

.shape-1 {
    top: 10%;
    left: -10%;
    width: 40vw;
    height: 40vw;
}

.shape-2 {
    top: 40%;
    left: 5%;
    width: 35vw;
    height: 35vw;
}

/* Container do Sistema Nervoso */
.new-nervous-container {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    width: 33.33vw;
}

.nervous-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    transform: translateX(-50%);
}

/* Esconde o lado esquerdo no Mobile */
.branch-left {
    display: none;
}

@media (min-width: 768px) {
    .new-nervous-container {
        width: 25vw;
    }

    .nervous-svg {
        width: 100%;
        transform: none;
        left: 0;
        position: relative;
    }

    .branch-left {
        display: block;
    }
}

@media (min-width: 1024px) {
    .new-nervous-container {
        width: 33.33vw;
    }

    .nervous-svg {
        width: 50%;
        margin: 0 auto;
        display: block;
    }
}

/* --- ESTILOS DA ILUSTRAÇÃO DO DIAGRAMA --- */
.nervous-svg path,
.nervous-svg line,
.nervous-svg rect,
.nervous-svg ellipse {
    vector-effect: non-scaling-stroke;
}

/* Vértebras (Background sutil) */
.vertebra {
    fill: rgba(255, 255, 255, 0.02);
    stroke: rgba(255, 255, 255, 0.06);
    stroke-width: 1px;
}

.sacrum {
    fill: rgba(255, 255, 255, 0.015);
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 1px;
}

/* Medula Central */
.medula-spine {
    fill: url(#cord-grad);
    opacity: 0.9;
    filter: drop-shadow(0 0 4px rgba(220, 50, 50, 0.6));
}

.medula-fissure {
    stroke: rgba(100, 0, 0, 0.4);
    stroke-width: 0.8px;
    fill: none;
}

/* Ramificações Nervosas (Amarelo/Dourado Médico) */
.nerve-system {
    opacity: 0.2;
    transition: opacity 0.4s ease, filter 0.4s ease;
}

/* Tronco principal (1º path de cada lado) */
.nerve-system path:nth-child(3n+1) {
    stroke: #F5A623;
    stroke-width: 1.6px;
    fill: none;
    stroke-linecap: round;
}

/* Sub-ramo secundário (2º path) */
.nerve-system path:nth-child(3n+2) {
    stroke: #E8C468;
    stroke-width: 1.0px;
    fill: none;
    opacity: 0.8;
    stroke-linecap: round;
}

/* Sub-ramo terciário (3º path) */
.nerve-system path:nth-child(3n) {
    stroke: #D4A84A;
    stroke-width: 0.7px;
    fill: none;
    opacity: 0.6;
    stroke-linecap: round;
}

.cauda-equina path {
    stroke: #F5A623;
    stroke-width: 0.8px;
    fill: none;
    opacity: 0.4;
    stroke-linecap: round;
}

/* Estado Ativo (Proximidade do Círculo) */
.nerve-system.branch-active {
    opacity: 1.0;
    filter: drop-shadow(0 0 8px rgba(245, 166, 35, 0.9));
}

.cauda-equina.branch-active path {
    opacity: 1.0;
    filter: drop-shadow(0 0 5px rgba(245, 166, 35, 0.8));
}

/* Círculo Viajante */
.traveling-circle {
    fill: #ffffff;
    will-change: cy;
}

/* Outros estilos base */
.content-container {
    position: relative;
    z-index: 10;
    max-width: 64rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.fade-text {
    transition: opacity 0.6s ease-in-out;
}

.input-dark {
    background-color: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    padding: 0.5rem 0;
    color: white;
    outline: none;
    width: 100%;
    transition: border-color 0.3s;
}

.input-dark:focus {
    border-color: white;
}

/* Textos longos (parágrafos) */
p {
    font-family: 'Scout', 'Kunika', serif;
    font-size: 1.125rem;
    /* ~18px */
    line-height: 1.7;
}