:root {
    --primary-color: #00ffff; /* Cyan */
    --secondary-color: #ff00ff; /* Magenta */
    --background-color: #0d0d1a;
    --text-color: #e0e0e0;
    --card-background: rgba(10, 25, 47, 0.85);
    --border-color: rgba(0, 255, 255, 0.2);
    --glow-color: rgba(0, 255, 255, 0.7);
    --shadow-color: rgba(0, 255, 255, 0.5);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Rajdhani', sans-serif;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(0, 255, 255, 0.1), transparent 30%),
        radial-gradient(circle at 85% 30%, rgba(255, 0, 255, 0.1), transparent 40%),
        radial-gradient(circle at 50% 90%, rgba(0, 128, 255, 0.1), transparent 40%);
    background-attachment: fixed;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 2rem 0;
}

h1, h2, h3 {
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 5px var(--glow-color);
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; color: var(--primary-color); }
h2 { font-size: 2.2rem; color: var(--secondary-color); text-align: center; margin-bottom: 2rem; }
h3 { font-size: 1.5rem; color: var(--primary-color); }

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 6rem 1rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin-bottom: 2rem;
    font-weight: 300;
}

.cta-button {
    display: inline-block;
    padding: 12px 25px;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    color: var(--primary-color);
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px var(--shadow-color);
}

.cta-button:hover {
    background-color: var(--glow-color);
    color: var(--background-color);
    box-shadow: 0 0 20px var(--shadow-color);
}

/* --- Path Selection --- */
.path-selection {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.path-card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    padding: 2rem;
    width: 300px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.path-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px var(--shadow-color);
    border-color: var(--primary-color);
}

.path-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* --- Archetype Display Grid --- */
#archetype-display {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    min-height: 200px;
}

.character-card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(5px);
}

.character-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--shadow-color);
}

.card-header {
    padding: 1rem;
    background-color: rgba(0,0,0,0.3);
}

.card-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.card-header span {
    font-size: 0.8rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.card-body {
    padding: 1rem;
    font-size: 0.9rem;
}

/* --- Typology Section --- */
.typology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.typology-card {
    background-color: var(--card-background);
    padding: 1.5rem;
    border-left: 3px solid var(--secondary-color);
    transition: background-color 0.3s;
}

.typology-card:hover {
    background-color: rgba(255, 0, 255, 0.1);
}

.typology-card h3 {
    color: var(--secondary-color);
}

/* --- Modal --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.5s;
}

.modal-content {
    background: var(--background-color);
    margin: 5% auto;
    padding: 2rem;
    border: 1px solid var(--primary-color);
    width: 80%;
    max-width: 800px;
    border-radius: 10px;
    box-shadow: 0 0 25px var(--shadow-color);
    animation: slideIn 0.5s;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    transition: color 0.3s;
}

.close-button:hover,
.close-button:focus {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

#modal-title { margin-bottom: 0.5rem; }
#modal-source { font-style: italic; color: var(--secondary-color); margin-bottom: 1.5rem; display: block;}
#modal-description { margin-bottom: 1.5rem; }
#modal-powers {
    list-style: none;
    padding-left: 0;
}
#modal-powers li {
    background: var(--card-background);
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    border-left: 2px solid var(--primary-color);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

/* --- Particles.js Background --- */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: var(--background-color);
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 20px;
    transition: opacity 0.3s;
}
