:root {
    --neon-color: #ffffff; /* Puedes cambiarlo a #00ff41 para verde o #ffae00 para naranja */
    --bg-color: #0a0a0b;
    --border-style: 1px solid var(--neon-color);
}

@font-face {
    font-family: 'VT323';
    src: url(../assets/fonts/VT323-Regular.ttf);
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'TechMono';
    src: url(../assets/fonts/ShareTechMono-Regular.ttf);
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Silkscreen';
    src: url(../assets/fonts/Silkscreen-Regular.ttf);
    font-weight: normal;
    font-style: normal;
}

body {
    background-color: var(--bg-color);
    color: var(--neon-color);
    font-family: 'VT323', monospace;
    margin: 0;
    padding: 20px;
    height: 100vh;
    box-sizing: border-box;
}

.dashboard {
    display: grid;
    height: 100%;
    grid-template-columns: 250px 1fr;
    grid-template-rows: 150px 50px 1fr 120px;
    grid-template-areas: 
        "profile header"
        "profile nav"
        "info main"
        "info terminal";
    gap: 15px;
}

.profile-pic, .header-main, .nav-bar, .personal-info, .main-content, .terminal {
    border: var(--border-style);
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.02);
}

.profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

/* Asignación de áreas */
.profile-pic { grid-area: profile; flex-direction: column; }
.header-main { grid-area: header; flex-direction: column; }
.nav-bar     { grid-area: nav; }
.personal-info { grid-area: info; align-items: flex-start; justify-content: flex-start; }
.main-content { grid-area: main; }
.terminal    { grid-area: terminal; }

/* Estilo de la Navegación */
.nav-bar ul {
    list-style: none;
    display: flex;
    width: 100%;
    justify-content: space-around;
    padding: 0;
}

.nav-bar a {
    color: var(--neon-color);
    text-decoration: none;
    font-size: 0.9em;
}

.nav-bar a:hover {
    background: var(--neon-color);
    color: var(--bg-color);
}

/* Capa superior que crea las líneas y el tinte */
.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.1) 50%
    ), 
    linear-gradient(
        90deg, 
        rgba(255, 0, 0, 0.03), 
        rgba(0, 255, 0, 0.01), 
        rgba(0, 0, 255, 0.03)
    );
    background-size: 100% 3px, 3px 100%; /* Tamaño de las scanlines */
    z-index: 9999; /* Siempre encima de todo */
    pointer-events: none; /* Permite hacer clic en los botones de abajo */
    opacity: 0.8;
}

/* Animación de parpadeo sutil para el fondo */
@keyframes flicker {
    0% { opacity: 0.89; }
    5% { opacity: 0.95; }
    10% { opacity: 0.9; }
    15% { opacity: 0.98; }
    20% { opacity: 0.92; }
    100% { opacity: 1; }
}

body {
    animation: flicker 0.12s infinite;
    text-shadow: 0 0 25px rgba(255, 255, 255, 0.5); 
}

/* Efecto de curvatura en las esquinas (Vignette) */
body::after {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: radial-gradient(
        circle, 
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.4) 100%
    );
    z-index: 10000;
    pointer-events: none;
}

.main-content {
    display: flexbox;
    flex-direction: column;
    align-items: center;
}

.main-content p::after{
    content: "|";
    animation: blink 1s infinite;
    margin-left: 5px;
}

.personal-info p::after {
    content: "|";
    animation: blink 1s infinite;
    margin-left: 5px;
}

.personal-info {
    font-family: 'TechMono', monospace;
    font-size: 0.9em;
    display: inline-block;
}

.personal-info p2 {
    color: #00ff41;
}

.personal-info .sucess {
    text-decoration: underline;
}

.personal-info ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.terminal {
    flex-direction: column;
}

@keyframes blink {
    50% { opacity: 0; }
}