/* Custom Global Variables Matrix */
:root {
    --bg-pure: #0b0714; /* Midnight abyss purple-black */
    --bg-card: #140f24; /* Deep violet workspace cards */
    --purple-neon: #a020f0; /* Intense purple core accent */
    --purple-glow: rgba(160, 32, 240, 0.4);
    --amethyst-light: #da70d6; /* Light purple highlights */
    --text-primary: #f1ecf7;
    --text-muted: #9e95b0;
    --border-line: #2a1f42;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Georgia', serif;
    background-color: var(--bg-pure);
    color: var(--text-primary);
}

/* Scroll Progress Header Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(to right, var(--purple-neon), var(--amethyst-light));
    z-index: 2000;
}

/* Void Mist Particle System Layout */
.void-particles {
    position: fixed;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: var(--purple-glow);
    border-radius: 50%;
    filter: blur(40px);
}

.particle:nth-child(1) { width: 300px; height: 300px; top: 10%; left: -10%; }
.particle:nth-child(2) { width: 400px; height: 400px; bottom: -10%; right: -5%; }
.particle:nth-child(3) { width: 250px; height: 250px; top: 50%; left: 60%; }

/* Fixed Navigation Bar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background-color: #0b0714;
    border-bottom: 1px solid var(--border-line);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar .logo {
    font-size: 1.4rem;
    font-weight: bold;
    letter-spacing: 4px;
    color: #fff;
    text-shadow: 0 0 10px var(--purple-neon);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.3s;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--amethyst-light);
    text-shadow: 0 0 8px var(--purple-neon);
}

/* Action Buttons Elements */
.btn-primary {
    background: linear-gradient(135deg, var(--purple-neon), #6a0dad);
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 4px;
    box-shadow: 0 4px 15px var(--purple-glow);
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(160, 32, 240, 0.7);
}

.btn-secondary {
    display: inline-block;
    border: 1px solid #fff;
    color: #fff;
    padding: 12px 30px;
    text-decoration: none;
    letter-spacing: 2px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #fff;
    color: var(--bg-pure);
}

.btn-purple-glow {
    display: inline-block;
    border: 1px solid var(--purple-neon);
    color: var(--amethyst-light);
    padding: 12px 30px;
    text-decoration: none;
    letter-spacing: 2px;
    font-size: 0.85rem;
    background-color: rgba(160, 32, 240, 0.05);
    box-shadow: inset 0 0 10px var(--purple-glow);
    transition: all 0.3s ease;
}

.btn-purple-glow:hover {
    background-color: var(--purple-neon);
    color: #fff;
    box-shadow: 0 0 20px var(--purple-neon);
}
.soundtrack-container {
    background-color: var(--bg-card);
    border: 1px solid var(--border-line);
    padding: 40px;
    border-radius: 8px;
    margin-top: 40px;
    text-align: center;
}

.tag-soundtrack {
    font-size: 0.75rem;
    color: var(--amethyst-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 10px;
}

.soundtrack-container h4 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #fff;
    letter-spacing: 1px;
}

.spotify-player-box {
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    overflow: hidden;
}


/* Hero Section layout */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(11,7,20,0.8), var(--bg-pure)), url('https://unsplash.com') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 10;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    letter-spacing: 3px;
    color: #fff;
    text-shadow: 0 0 30px var(--purple-neon);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 35px;
}

/* Universal Layout Sections */
.section {
    padding: 120px 8%;
    position: relative;
    z-index: 10;
}

.dark-bg {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-line);
    border-bottom: 1px solid var(--border-line);
}

.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: 3px;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background-color: var(--purple-neon);
    margin: 15px auto 0 auto;
    box-shadow: 0 0 8px var(--purple-neon);
}
/* Books Layout Card */
.book-container {
    display: flex;
    align-items: center;
    gap: 60px;
    background-color: var(--bg-card);
    padding: 50px;
    border-radius: 8px;
    border: 1px solid var(--border-line);
    margin-bottom: 50px;
}

.book-img-box { flex: 1; display: flex; justify-content: center; }

.book-cover {
    max-width: 280px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.8);
    border-radius: 4px;
}

.book-details { flex: 2; }

.tag {
    font-size: 0.75rem;
    color: var(--amethyst-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
}

.book-details h3 {
    font-size: 2.6rem;
    margin: 12px 0 20px 0;
    color: #fff;
}

.book-description {
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.purchase-links { display: flex; gap: 20px; }

.buy-btn {
    text-decoration: none;
    color: #fff;
    background-color: rgba(25, 18, 46, 0.5);
    padding: 12px 25px;
    border-radius: 4px;
    font-size: 0.85rem;
    border: 1px solid var(--border-line);
    transition: all 0.3s;
}

.buy-btn:hover {
    background-color: var(--purple-neon);
    border-color: var(--purple-neon);
    box-shadow: 0 0 15px var(--purple-neon);
}

/* Progress Tracking Interface Element */
.next-project-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-line);
    padding: 40px;
    border-radius: 8px;
}

.tag-alert {
    font-size: 0.75rem;
    color: #ffaa00;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.next-project-card h4 {
    font-size: 1.8rem;
    margin: 10px 0;
    color: #fff;
}

.next-project-card p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.tracker-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 10px;
    color: var(--text-muted);
}

.purple-text { color: var(--amethyst-light); font-weight: bold; }

.progress-bar-container {
    width: 100%;
    height: 8px;
    background-color: #22183d;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, var(--purple-neon), var(--amethyst-light));
    box-shadow: 0 0 10px var(--purple-neon);
}

/* Character Dossiers Card Layout Grid */
.lore-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    gap: 30px;
}

.lore-card {
    background-color: var(--bg-pure);
    border: 1px solid var(--border-line);
    padding: 30px;
    border-radius: 6px;
    text-align: center;
}

.lore-icon {
    font-size: 2rem;
    color: var(--amethyst-light);
    margin-bottom: 15px;
}

.lore-card h4 { font-size: 1.3rem; margin-bottom: 5px; color: #fff; }

.role {
    font-size: 0.75rem;
    color: var(--purple-neon);
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* Cinematic Map Interface Structure */
.map-subtitle, .tech-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-top: -35px;
    margin-bottom: 60px;
}

.map-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 900px;
    margin: 0 auto;
    gap: 20px;
}

.map-node {
    flex: 1;
    background-color: var(--bg-card);
    border: 1px solid var(--border-line);
    padding: 25px;
    border-radius: 6px;
}

.map-node strong {
    color: #fff;
    display: block;
    margin-bottom: 8px;
}

.map-node p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

.map-connector {
    width: 30px;
    height: 2px;
    background-color: var(--border-line);
    margin-top: 35px;
    flex-shrink: 0;
}

/* Tech Hub Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
    gap: 30px;
}

.tech-card {
    background-color: var(--bg-pure);
    border: 1px solid var(--border-line);
    padding: 30px;
    border-radius: 6px;
}

.tech-icon { font-size: 1.8rem; color: var(--purple-neon); margin-bottom: 15px; }

.tech-card h5 { font-size: 1.2rem; margin-bottom: 10px; color: #fff; }

.tech-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* About Panel Setup */
.about-container { max-width: 700px; margin: 0 auto; text-align: center; }

.about-container p { line-height: 1.8; color: var(--text-muted); margin-bottom: 20px; }

.social-icons { display: flex; justify-content: center; gap: 30px; margin-top: 30px; }

.social-icons a { color: var(--text-muted); font-size: 1.6rem; transition: color 0.3s; }

.social-icons a:hover { color: var(--amethyst-light); }

/* Footer */
footer { text-align: center; padding: 40px 20px; border-top: 1px solid var(--border-line); font-size: 0.8rem; color: #555; }

/* Overlay Subscription Box Form Modal */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(11, 7, 20, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-backdrop.active { opacity: 1; pointer-events: auto; }

.modal-box {
    background-color: var(--bg-card);
    padding: 45px;
    border-radius: 8px;
    max-width: 450px;
    width: 90%;
    position: relative;
    border: 1px solid var(--border-line);
    text-align: center;
}

.close-modal { position: absolute; top: 15px; right: 20px; background: none; border: none; color: #fff; font-size: 1.8rem; cursor: pointer; }

.modal-box h3 { font-size: 1.6rem; margin-bottom: 12px; color: #fff; }

.modal-box p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; margin-bottom: 25px; }

.input-group { margin-bottom: 15px; }

.input-group input {
    width: 100%;
    padding: 12px;
    background-color: var(--bg-pure);
    border: 1px solid var(--border-line);
    color: #fff;
    border-radius: 4px;
    font-family: inherit;
}

.input-group input:focus { border-color: var(--purple-neon); outline: none; }

.btn-submit { width: 100%; padding: 12px; background: var(--purple-neon); color: #fff; border: none; border-radius: 4px; cursor: pointer; font-family: inherit; font-weight: bold; }

.hidden-msg { display: none; margin-top: 15px; color: #00ffaa; font-size: 0.85rem; }

.hidden-msg.visible { display: block; }

/* Mobile View Rules Configuration */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .book-container { flex-direction: column; text-align: center; padding: 30px; }
    .purchase-links { flex-direction: column; gap: 10px; }
    .lore-grid { grid-template-columns: 1fr; }
    .map-wrapper { flex-direction: column; gap: 20px; }
    .map-connector { display: none; }
    .tech-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2.5rem; }
}
