:root {
    --joy: #f9d71c;
    --sadness: #0047ab;
    --fear: #9b59b6;
    --disgust: #27ae60;
    --console-bg: #1a1a2e;
    --background: #1b2735;

}

body {
    background-color: var(--console-bg);
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background: radial-gradient(circle at center, var(--background) 0%, black 100%);
    overflow: hidden;
    transition: var(--console-bg) 1s ease;
}

.nav-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-btn:hover {
    background: white;
    color: black;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.sphere-group small {
    display: block;
    margin-bottom: 5px;
    color: #888;
    text-transform: uppercase;
    font-size: 0.7rem;
}

.skills-container {
    display: flex;
    justify-content: space-around;
    width: 100%;
    text-align: left;
}

.skill-col ul {
    list-style: none;
    padding: 0;
}

.skill-col li {
    margin-bottom: 8px;
    color: #ddd;
}

.skill-col li::before {
    content: "✦ ";
    color: var(--joy);
}

.console-container {
    width: 90%;
    max-width: 1000px;
    text-align: center;
}

.sphere {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    margin: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    filter: blur(1px);
}

.sphere:hover {
    transform: scale(1.2);
    filter: blur(0px);
}

.music-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
}

#music-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid white;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    backdrop-filter: blur(5px);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.info-view {
    display: block;
    width: 100%;
}

.joy { background: radial-gradient(circle, var(--joy), #f39c12); box-shadow: 0 0 15px var(--joy); }
.sadness { background: radial-gradient(circle, var(--sadness), #2980b9); box-shadow: 0 0 15px var(--sadness); }
.fear { background: radial-gradient(circle, var(--fear), #8e44ad); box-shadow: 0 0 15px var(--fear); }
.disgust { background: radial-gradient(circle, var(--disgust), #2ecc71); box-shadow: 0 0 15px var(--disgust); }

.grid-projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
    min-height: 300px;
}

.project-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeIn 0.5s ease-in;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.15); /* Sombra blanca sutil */
}

/* Bordes de colores para emociones */
.border-joy { border-bottom: 4px solid #f1c40f; }
.border-sadness { border-bottom: 4px solid #3498db; }
.border-fear { border-bottom: 4px solid #9b59b6; }
.border-disgust { border-bottom: 4px solid #2ecc71; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Efecto de Partículas */
@keyframes float {
    0% { transform: translateY(0px) translateX(0px); opacity: 0.5; }
    50% { transform: translateY(-20px) translateX(10px); opacity: 0.8; }
    100% { transform: translateY(0px) translateX(0px); opacity: 0.5; }
}

.particle {
    position: absolute;
    background: white;
    border-radius: 50%;
    filter: blur(2px);
    animation: float 5s infinite ease-in-out;
    pointer-events: none;
    z-index: -1;
}

/* Pantalla de inicio */
#overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, #1a1a2e, #000);
    display: flex; justify-content: center; align-items: center;
    z-index: 1000; cursor: pointer; transition: 1s;
}

/* Estilo Isla (Personalidad) */
.island-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50% 50% 10px 10px;
    padding: 20px;
    border-top: 4px solid var(--joy);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    animation: floatingIsland 3s infinite ease-in-out;
    border-left: none !important;
}

@keyframes floatingIsland {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Sistema de Creencias (Conexión) */
.belief-line {
    border-left: 2px dashed rgba(155, 89, 182, 0.5);
    margin-left: 20px;
    padding-left: 20px;
    position: relative;
}

.belief-line::before {
    content: ''; position: absolute; left: -6px; top: 10px;
    width: 10px; height: 10px; background: #9b59b6; border-radius: 50%;
    box-shadow: 0 0 10px #9b59b6;
}

.memory-link {
    color: #fff !important;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 5px 10px;
    border-radius: 15px;
    display: inline-block;
    margin-top: 10px;
    background: rgba(255,255,255,0.1);
    transition: 0.3s;
}

.memory-link:hover {
    background: white;
    color: black !important;
}

/* Botones de Contacto Coloridos */
.contact-grid {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.btn-contact {
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    color: white;
    transition: 0.3s;
}

.joy-btn { background: #f1c40f; color: black; }
.fear-btn { background: #9b59b6; }
.sadness-btn { background: #3498db; }

.btn-contact:hover { transform: scale(1.1); filter: brightness(1.2); }

/* Barra de Estado */
.status-bar {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 30px;
    background: rgba(0, 0, 0, 0.5); 
    backdrop-filter: blur(5px);
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 0 20px; 
    font-size: 0.8rem; 
    color: #aaa; 
    z-index: 1001;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.power-btn {
    background: none; 
    border: none; 
    color: #ff4d4d; 
    cursor: pointer;
    font-size: 1.2rem; 
    margin-left: 15px; 
    transition: 0.3s;
}
.power-btn:hover { 
    transform: scale(1.2); 
    text-shadow: 0 0 10px #ff4d4d; 
}

/* Personajes */
.character-container {
    position: fixed; bottom: 80px; width: 100%;
    display: flex; justify-content: center; gap: 40px; pointer-events: none;
}
.char-sprite {
    width: 60px; height: auto; opacity: 0.3; transition: 0.5s; filter: grayscale(1);
}
.char-active { opacity: 1 !important; filter: grayscale(0) drop-shadow(0 0 10px white); transform: scale(1.2); }

/* Frases */
.quote-footer {
    position: fixed; bottom: 10px; width: 100%; text-align: center;
    font-style: italic; color: #666; font-size: 0.75rem;
}

/* Botones de Links (Recuerdos y Conexión) */
.btn-memory {
    display: inline-block; 
    margin-top: 15px; 
    padding: 8px 20px;
    background: rgba(255,255,255,0.1); 
    border: 1px solid white;
    color: white !important; 
    text-decoration: none; 
    border-radius: 20px;
    font-size: 0.8rem; 
    font-weight: bold; 
    transition: 0.3s;
}
.btn-memory:hover { background: white; color: black !important; }

/* Ajuste para el avatar */
#avatar-container img, .main-screen img { 
    width: 180px; 
    height: 200px;
    object-fit: fill;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

#avatar-container img:hover {
    transform: scale(1.05); /* Efecto sutil al pasar el mouse */
}