/* --- 1. VARIABLES Y RESET --- */
:root {
    --primary: #00ffcc;    /* Verde Esmeralda Neón */
    --primary-glow: rgba(0, 255, 204, 0.4);
    --secondary: #0066ff;  /* Azul Eléctrico para Glitch */
    --bg-dark: #020808;    /* Negro Profundo */
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(0, 255, 204, 0.2);
    --text: #e0fef9;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: var(--bg-dark);
    color: var(--text);
    font-family: 'Space Mono', monospace;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    position: relative;
}

/* --- 2. MOTOR VISUAL: NEBULOSA Y PARTÍCULAS --- */
#canvas-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    background: radial-gradient(circle at center, #051a1a 0%, #020808 100%);
}

.nebula-overlay {
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 255, 204, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 102, 255, 0.08) 0%, transparent 50%);
    z-index: -1;
    filter: blur(100px);
    animation: nebulaMove 20s infinite alternate ease-in-out;
}

@keyframes nebulaMove {
    from { transform: scale(1) translate(0, 0); }
    to { transform: scale(1.2) translate(2%, 2%); }
}

/* --- 3. NAVEGACIÓN: DOCK FLOTANTE --- */
.nav-dock {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 8px 25px;
    border-radius: 100px;
    display: flex;
    gap: 15px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.nav-btn {
    background: none;
    border: none;
    color: var(--text);
    padding: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    transition: 0.3s;
    opacity: 0.6;
}

.nav-btn.active {
    opacity: 1;
    color: var(--primary);
    filter: drop-shadow(0 0 8px var(--primary));
}

.btn-label { font-size: 0.6rem; font-weight: bold; }

/* --- 4. SECCIONES (Lógica SPA) --- */
.section {
    position: absolute;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.section.active { display: flex; animation: fadeIn 0.8s forwards; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 5. EFECTO GLITCH (Hero) --- */
.glitch-title {
    font-family: 'Syncopate', sans-serif;
    font-size: clamp(3rem, 10vw, 6rem);
    position: relative;
    color: white;
}

.glitch-title::before, .glitch-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}

.glitch-title:hover::before {
    left: 2px;
    text-shadow: -2px 0 var(--secondary);
    clip: rect(44px, 999px, 56px, 0);
    animation: glitch-anim 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(10px, 999px, 40px, 0); }
    100% { clip: rect(60px, 999px, 90px, 0); }
}

/* --- 6. ID CARD: GLASSMORPHISM & TIGER --- */
.glass-card {
    width: 500px;
    background: var(--glass);
    backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.4);
}

.card-inner {
    display: flex;
    gap: 30px;
    z-index: 2;
    position: relative;
}

.profile-frame {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    border: 1px solid var(--primary);
    overflow: hidden;
    box-shadow: 0 0 20px var(--primary-glow);
}

.profile-frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.5); }

.tiger-icon {
    position: absolute;
    bottom: -30px;
    right: -20px;
    font-size: 8rem;
    opacity: 0.04; /* Tigre oculto sutil */
    pointer-events: none;
    transform: rotate(-15deg);
}

.user-id { color: var(--primary); font-family: 'Syncopate'; font-size: 1.2rem; margin-bottom: 15px; }

.badge {
    background: rgba(0, 255, 204, 0.1);
    border: 1px solid var(--primary);
    padding: 3px 10px;
    font-size: 0.6rem;
    border-radius: 5px;
    margin-right: 5px;
}

.bio-paragraph {
    font-family: 'Space Mono', monospace; /* Para ese look de consola */
    font-size: 0.85rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    text-align: left;
    margin-bottom: 20px;
}

/* Para que las etiquetas brillen un poco más */
.bio-paragraph b {
    color: var(--primary); /* Tu verde neón */
    text-shadow: 0 0 5px var(--primary);
}


.open-pitch {
    /* Reseteo de estilos base */
    background: rgba(255, 0, 68, 0.05); /* Fondo traslúcido tipo terminal */
    color: #ff0044;
    border: 1px solid rgba(255, 0, 68, 0.4);
    
    /* Tipografía y Espaciado */
    padding: 10px 22px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    
    /* Alineación */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    
    /* Posicionamiento */
    margin: 30px auto 10px; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: fit-content;
}

/* El ícono de YouTube */
.open-pitch i {
    font-size: 0.9rem;
    filter: drop-shadow(0 0 3px rgba(255, 0, 68, 0.5));
}

/* Hover: El botón se "activa" */
.open-pitch:hover {
    background: rgba(255, 0, 68, 0.12);
    border-color: #ff0044;
    box-shadow: 0 0 15px rgba(255, 0, 68, 0.3), 
                inset 0 0 10px rgba(255, 0, 68, 0.1);
    transform: translateY(-2px);
    color: #ff0044; /* Mantenemos el color para no saturar con blanco */
}

/* Efecto de click */
.open-pitch:active {
    transform: translateY(0);
    filter: brightness(0.8);
}

/* --- 7. SIDEBAR SOCIAL --- */
.social-bar {
    position: fixed;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 1000;
}

.social-link {
    color: var(--primary);
    font-size: 1.5rem;
    transition: 0.3s;
    opacity: 0.5;
}

.social-link:hover { opacity: 1; transform: scale(1.2); }

/* --- 8. VIDEO MODAL: INTERFAZ HOLOGRÁFICA --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 8, 8, 0.85); /* Fondo oscuro profundo */
    backdrop-filter: blur(15px);     /* Desenfoque de la nebulosa al abrir video */
    display: none;                   /* Oculto por defecto */
    justify-content: center;
    align-items: center;
    z-index: 2000;                   /* Por encima de todo */
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content.glass {
    width: 90%;
    max-width: 800px;
    background: rgba(0, 255, 204, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 10px;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 255, 204, 0.2);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Relación de aspecto 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 15px;
}

.video-container iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 2rem;
    font-family: 'Space Mono', monospace;
    cursor: pointer;
    transition: 0.3s;
}

.close-btn:hover {
    transform: rotate(90deg);
    color: #ff0044;
}

/* Animación de entrada para el contenido del modal */
.modal-overlay.active .modal-content {
    animation: modalSlide 0.5s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes modalSlide {
    from { transform: scale(0.8) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* Video más grande que el texto */
    gap: 20px;
}

.info-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px;
}

#modal-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

/* Responsivo para móviles */
@media (max-width: 768px) {
    .modal-layout {
        grid-template-columns: 1fr;
    }
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    width: 80%;
    max-width: 1200px;
}

.project-node {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: 15px;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.project-node:hover {
    background: rgba(0, 255, 204, 0.08);
    transform: translateY(-5px);
    box-shadow: 0 0 20px var(--primary-glow);
}

.node-header { display: flex; justify-content: space-between; font-size: 0.7rem; opacity: 0.6; margin-bottom: 15px; }
.node-content h3 { color: var(--primary); font-family: 'Syncopate'; font-size: 1rem; }
.node-tags { margin-top: 10px; display: flex; gap: 5px; }
.node-tags span { font-size: 0.6rem; border: 1px solid var(--primary); padding: 2px 5px; border-radius: 3px; }
.node-footer { margin-top: 20px; font-size: 0.7rem; color: var(--secondary); font-weight: bold; }

/* ELITE NODE: Estilo Base */
.elite-node {
    position: relative;
    border: 1px solid var(--primary) !important;
    background: rgba(0, 255, 194, 0.05) !important;
    overflow: hidden;
}

/* El Resplandor de Partículas (Aura) */
.elite-node::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(0,255,194,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

/* Efecto de Glitch de Colores (Aberración Cromática) en Hover */
.elite-node:hover {
    animation: chromaticGlitch 0.2s infinite;
    box-shadow: 0 0 20px rgba(0, 255, 194, 0.4), 
                inset 0 0 15px rgba(0, 255, 194, 0.2);
    transform: scale(1.03);
}

.elite-node:hover::before {
    opacity: 1;
}

/* Animación de Vibración de Colores */
@keyframes chromaticGlitch {
    0% {
        text-shadow: 2px 0 red, -2px 0 cyan;
        transform: translate(0);
    }
    25% {
        text-shadow: -2px 0 red, 2px 0 cyan;
        transform: translate(-1px, 1px);
    }
    50% {
        text-shadow: 2px 2px red, -2px -2px cyan;
        transform: translate(1px, -1px);
    }
    75% {
        text-shadow: -2px -2px red, 2px 2px cyan;
        transform: translate(-1px, -1px);
    }
    100% {
        text-shadow: 2px 0 red, -2px 0 cyan;
        transform: translate(0);
    }
}

/* Indicador de "PRESIÓNAME" */
.elite-node::after {
    content: 'CRITICAL_DATA';
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 8px;
    color: var(--primary);
    letter-spacing: 2px;
    opacity: 0.5;
}





.carousel-3d-scene {
    height: 220px; /* Un poco más de aire */
    perspective: 1200px; 
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

.carousel-3d-track {
    position: relative;
    width: 180px;
    height: 120px;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.info-card-3d {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 255, 194, 0.05);
    border: 1px solid rgba(0, 255, 194, 0.4);
    padding: 15px;
    border-radius: 10px;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.4s ease;
    
    /* Posicionamiento inicial en el círculo */
    transform: rotateY(calc(var(--i) * 90deg)) translateZ(160px);
}

/* Títulos nítidos */
.info-card-3d h3 {
    color: var(--primary);
    font-size: 0.9rem;
    margin: 5px 0;
    text-shadow: 0 0 5px rgba(0, 255, 194, 0.5);
}

.info-card-3d p {
    font-size: 0.75rem;
    color: #e0e0e0;
    line-height: 1.2;
}

/* Contenedor para centrar y dar espacio */
.custom-scroll-container {
    width: 85%;
    margin: 25px auto 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 194, 0.1);
}

.cyber-range {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(0, 255, 194, 0.1);
    border-radius: 10px;
    outline: none;
    cursor: pointer;
    border: 1px solid rgba(0, 255, 194, 0.2);
}

/* El "Thumb" (el botón que arrastras) - Chrome/Safari/Edge */
.cyber-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 50px; /* Más ancho para que parezca una pieza de hardware */
    height: 14px;
    background: var(--primary); /* El color neón que ya usas */
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 0 15px var(--primary), inset 0 0 5px rgba(255, 255, 255, 0.5);
    border: none;
    transition: all 0.2s ease;
}

/* Efecto al presionar la barrita */
.cyber-range::-webkit-slider-thumb:active {
    width: 60px;
    filter: brightness(1.3);
    box-shadow: 0 0 25px var(--primary);
}

/* El "Thumb" - Firefox */
.cyber-range::-moz-range-thumb {
    width: 50px;
    height: 14px;
    background: var(--primary);
    border: none;
    border-radius: 4px;
    box-shadow: 0 0 15px var(--primary);
}

/* La línea que queda "detrás" del botón (Progreso) */
.cyber-range::-webkit-slider-runnable-track {
    background: linear-gradient(90deg, var(--primary) 0%, rgba(0, 255, 194, 0.1) 100%);
    border-radius: 10px;
}




/* Estilo para los botones de GitHub/Source Code en los proyectos */
.project-btn, .view-source-btn, .modal-content a[href*="github"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(0, 255, 194, 0.05); /* Fondo traslúcido verde */
    color: var(--primary);
    border: 1px solid rgba(0, 255, 194, 0.4);
    padding: 8px 16px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-top: 15px;
}

/* Efecto Hover: El botón se ilumina */
.project-btn:hover, .view-source-btn:hover, .modal-content a[href*="github"]:hover {
    background: rgba(0, 255, 194, 0.15);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 255, 194, 0.3), 
                inset 0 0 10px rgba(0, 255, 194, 0.1);
    transform: translateY(-2px);
    color: #fff; /* Brilla en blanco al pasar el mouse */
}

/* El ícono de GitHub dentro del botón */
.project-btn i, .view-source-btn i {
    font-size: 0.9rem;
}



