/* 1. IMPORTACIÓN DE FUENTES ELEGANTES */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Rajdhani:wght@300;500;700&display=swap');

/* 2. CONFIGURACIÓN BASE */
body {
    margin: 0;
    background-color: #000;
    color: #e0e0e0;
    font-family: 'Rajdhani', sans-serif;
    height: 100vh;
    overflow-x: hidden; /* Evita que la galaxia se mueva de lado */
}

/* 3. LA GALAXIA (Ajustada para que no te dé problemas de zoom) */
#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Esto cubre toda la pantalla perfectamente */
    z-index: -100;
    filter: brightness(40%) contrast(110%);
}

/* 4. CONTENEDOR PRINCIPAL - GLASSMORPHISM (Tu estética intacta) */
.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    z-index: 1;
    position: relative;
}

.glass-card {
    background: rgba(255, 255, 255, 0.03); /* Transparencia fina */
    backdrop-filter: blur(15px); /* Efecto esmerilado que te gusta */
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(188, 19, 254, 0.2);
    border-radius: 20px; /* Bordes redondos de regreso */
    padding: 35px;
    width: 100%; /* Mejor control de ancho */
    max-width: 850px;
    box-sizing: border-box; /* Para que el padding no desborde el panel */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
    text-align: center;
    margin-bottom: 30px;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* EFECTO DE MOVIMIENTO AL PASAR EL MOUSE (La animación Kirara) */
.glass-card:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: rgba(188, 19, 254, 0.6);
    box-shadow: 0 0 25px rgba(188, 19, 254, 0.4); /* Le añadí que también brille la sombra para más estilo */
}

/* 5. TEXTOS Y TÍTULOS */
.glow-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    letter-spacing: 12px;
    color: #bc13fe;
    text-shadow: 0 0 15px rgba(188, 19, 254, 0.8);
    margin: 0;
}

.highlight {
    color: #bc13fe;
    font-weight: bold;
    letter-spacing: 2px;
}

/* 6. EL GRID DE PROYECTOS (AQUÍ ESTÁ EL TOQUE INGENIERIL) */
.grid-container {
    display: grid;
    /* MAGIA: En lugar de forzar 3 columnas fijas, esto lo hace responsivo automáticamente */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 20px;
    width: 100%;
}

/* Hacemos que la terminal ocupe todo el ancho arriba */
.terminal-box {
    grid-column: 1 / -1;
    margin-bottom: 20px;
}

/* Los otros cuadros se acomodarán solos abajo en una fila */
.section-box {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* =========================================
   8. COMPONENTES: NEKOMATA ZOMBIE MOD
   ========================================= */

.text-neon {
    color: #bc13fe;
}

.mod-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(188, 19, 254, 0.25);
    padding-bottom: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.header-main {
    display: flex;
    align-items: center;
    gap: 20px;
}

.project-subtitle {
    font-size: 0.85rem;
    color: #a0a0b0;
    font-family: 'Orbitron', sans-serif;
}

.badge-version {
    background: rgba(188, 19, 254, 0.15);
    border: 1px solid #bc13fe;
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-family: 'Orbitron', sans-serif;
    box-shadow: 0 0 10px rgba(188, 19, 254, 0.2);
}

.mod-description {
    color: #e2e2e8;
    line-height: 1.6;
    font-size: 1.05rem;
    margin-bottom: 25px;
    text-align: left;
}

/* Tarjetas internas del mod */
.mod-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    text-align: left;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.mod-card:hover {
    background: rgba(188, 19, 254, 0.03);
    transform: translateY(-3px);
    border-color: rgba(188, 19, 254, 0.3);
}

.card-title {
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 15px;
    font-family: 'Orbitron', sans-serif;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

.card-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.95rem;
    color: #c0c0d0;
}

.card-list li {
    position: relative;
    padding-left: 15px;
    line-height: 1.4;
}

.card-list li::before {
    content: ">";
    position: absolute;
    left: 0;
    color: #bc13fe;
    font-family: 'Orbitron', sans-serif;
}

/* Terminal de logs */
.mod-terminal {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    padding: 15px 20px;
    font-size: 0.9rem;
    color: #d0d0e0;
    border-left: 3px solid #bc13fe;
    font-family: 'Courier New', Courier, monospace;
    text-align: left;
}

.terminal-line { margin: 5px 0; }

.cursor-blink {
    animation: blink-anim 1s infinite;
}

@keyframes blink-anim {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.animate-fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* 7. BOTONES / LINKS */
.footer-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap; /* Si la pantalla es chica, los botones bajan en lugar de aplastarse */
}

.footer-links a {
    text-decoration: none;
    color: white;
    border: 1px solid #bc13fe;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.3s;
    background: rgba(188, 19, 254, 0.1);
}

.footer-links a:hover {
    background: #bc13fe;
    box-shadow: 0 0 25px #bc13fe;
    color: black;
    transform: translateY(-3px); /* Un pequeño salto estético al botón para que amarre */
}
