@import url('../style.css');

:root {
    --theme-primary: #8b5cf6;
    /* Violet */
    --theme-secondary: #e2e8f0;
    --theme-accent: #a78bfa;
    --bg-dark: #0f172a;
    /* Match Hub Dark (Slate 900) */
}

body {
    background-color: var(--bg-dark);
}

/* Clear Global Hub BGs */
body::before,
body::after {
    display: none;
}

/* Dark Brain Background */
body {
    background: radial-gradient(circle at 50% 50%, #1e1b4b 0%, #0f172a 80%);
    position: relative;
    overflow-x: hidden;
}

/* The Pulsing Brain Core */
.brain-core {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(closest-side, rgba(139, 92, 246, 0.15), transparent);
    border-radius: 50%;
    z-index: -2;
    animation: deepPulse 4s infinite ease-in-out alternate;
}

@keyframes deepPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.5;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

/* Neural Synapses Network (Overlay) */
.neural-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at center, rgba(167, 139, 250, 0.3) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    opacity: 0.2;
    mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 80%);
    pointer-events: none;
}

/* Firing Neurons */
.neuron {
    position: fixed;
    width: 6px;
    height: 6px;
    background: #a78bfa;
    border-radius: 50%;
    box-shadow: 0 0 15px #8b5cf6;
    z-index: -1;
    opacity: 0;
    animation: fireNeuron 3s infinite linear;
}

.n1 {
    top: 40%;
    left: 40%;
    animation-delay: 0s;
}

.n2 {
    top: 60%;
    left: 60%;
    animation-delay: 1.5s;
}

.n3 {
    top: 30%;
    right: 40%;
    animation-delay: 0.5s;
}

.n4 {
    bottom: 40%;
    left: 30%;
    animation-delay: 2s;
}

@keyframes fireNeuron {
    0% {
        opacity: 0;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(2);
        box-shadow: 0 0 30px #a78bfa;
    }

    100% {
        opacity: 0;
        transform: scale(1);
    }
}

header.hero h1 {
    background: linear-gradient(to right, #ddd6fe, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}