@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;800;900&family=Jost:wght@300;400;500;700&family=Orbitron:wght@400;700;900&display=swap');

:root {
    --bg-void: #05040e;
    --bg-card: rgba(12, 10, 24, 0.75);
    --color-crimson: #e90052;
    --color-cyan: #00f2ff;
    --color-purple: #8000ff;
    --color-crimson-glow: rgba(233, 0, 82, 0.4);
    --color-cyan-glow: rgba(0, 242, 255, 0.4);
    --text-primary: #f5f5fa;
    --text-muted: #828099;
    --border-glass: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(128, 0, 255, 0.2);
    --font-heading: 'Cinzel', serif;
    --font-tech: 'Orbitron', sans-serif;
    --font-sans: 'Jost', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-void);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--color-crimson), var(--color-purple), var(--color-cyan));
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #fff;
}

body {
    background-color: var(--bg-void);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* CRT Scanline Scan Overlay */
body::after {
    content: " ";
    display: block;
    position: fixed;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 28, 0) 50%, rgba(0, 0, 0, 0.2) 50%);
    z-index: 9999;
    background-size: 100% 4px;
    pointer-events: none;
    opacity: 0.6;
}

/* Custom Cursor */
.custom-cursor {
    width: 22px;
    height: 22px;
    border: 1.5px solid var(--color-cyan);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
    transition: width 0.2s, height 0.2s, background-color 0.2s, border-color 0.2s;
    box-shadow: 0 0 8px var(--color-cyan-glow);
}
.custom-cursor-dot {
    width: 4px;
    height: 4px;
    background-color: var(--color-crimson);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10001;
    box-shadow: 0 0 6px var(--color-crimson-glow);
}

/* Floating stardust mesh */
.bg-mesh {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -2;
    background: 
        radial-gradient(circle at 10% 20%, rgba(233, 0, 82, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 242, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, #060410 0%, #000000 100%);
}

.ambient-stars {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0; left: 0;
    z-index: -1;
    background-image: 
        radial-gradient(white, rgba(255,255,255,.2) 1.5px, transparent 35px),
        radial-gradient(white, rgba(255,255,255,.1) 1.5px, transparent 25px);
    background-size: 400px 400px, 300px 300px;
    background-position: 0 0, 50px 70px;
    opacity: 0.12;
    animation: starsRotate 240s linear infinite;
}

@keyframes starsRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    padding: 1rem 0;
    background: rgba(5, 4, 14, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    font-family: var(--font-tech);
    font-weight: 900;
    font-size: 1.3rem;
    letter-spacing: 2px;
    color: #fff;
}

.logo span {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--color-cyan);
    letter-spacing: 4px;
    margin-top: -2px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--color-cyan);
}

/* Language Selection Row */
.lang-switcher-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-family: var(--font-tech);
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    transition: all 0.3s;
}

.lang-btn:hover {
    color: #fff;
    border-color: var(--color-cyan);
}

.lang-btn.active {
    color: #fff;
    background: linear-gradient(135deg, var(--color-crimson), var(--color-cyan));
    border-color: var(--color-cyan);
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.2);
}

.sound-toggle {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-family: var(--font-tech);
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    transition: all 0.3s;
    margin-left: 0.5rem;
}

.sound-toggle:hover {
    border-color: var(--color-crimson);
    color: #fff;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, transparent, var(--bg-void) 95%);
    z-index: 1;
}

.hero-grid-pattern {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%; left: -50%;
    background-image: 
        linear-gradient(rgba(128, 0, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(128, 0, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    transform: perspective(600px) rotateX(65deg);
    z-index: 0;
    pointer-events: none;
    mask-image: radial-gradient(circle at center, black 10%, transparent 60%);
    -webkit-mask-image: radial-gradient(circle at center, black 10%, transparent 60%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 0 1.5rem;
}

.hero-kicker {
    font-family: var(--font-tech);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 6px;
    color: var(--color-cyan);
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    text-shadow: 0 0 10px var(--color-cyan-glow);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4.8rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 1px;
    color: #fff;
    text-shadow: 0 0 30px rgba(128, 0, 255, 0.3), 0 0 10px rgba(0, 242, 255, 0.2);
    margin-bottom: 1.5rem;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 750px;
    margin: 0 auto 2.5rem auto;
    font-weight: 300;
    line-height: 1.8;
}

.cta-group {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.btn {
    font-family: var(--font-tech);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 1rem 2.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-crimson), var(--color-purple));
    color: #fff;
    box-shadow: 0 0 15px var(--color-crimson-glow);
}

.btn-primary:hover {
    box-shadow: 0 0 30px var(--color-crimson-glow), 0 0 15px rgba(128,0,255,0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    border: 1px solid var(--color-cyan);
    color: var(--color-cyan);
    background: transparent;
}

.btn-secondary:hover {
    background: rgba(0, 242, 255, 0.08);
    box-shadow: 0 0 20px var(--color-cyan-glow);
    transform: translateY(-2px);
}

/* Sections Global */
.section {
    padding: 120px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: #fff;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(128, 0, 255, 0.2);
    display: inline-block;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-cyan), transparent);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    display: block;
    font-family: var(--font-tech);
    font-size: 0.75rem;
    color: var(--color-crimson);
    letter-spacing: 5px;
    margin-top: 0.8rem;
    text-transform: uppercase;
}

/* Glassmorphism panel */
.glass-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    padding: 2.5rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transition: all 0.4s;
}

.glass-panel:hover {
    border-color: var(--color-cyan);
    box-shadow: 0 0 25px rgba(0, 242, 255, 0.12);
    transform: translateY(-3px);
}

/* Interactive Universe Map layout */
.map-wrapper {
    display: grid;
    grid-template-columns: 1.4fr 1.6fr;
    gap: 3.5rem;
    align-items: center;
    max-width: 1050px;
    margin: 0 auto;
}

.map-svg-box {
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    background: radial-gradient(circle, rgba(128,0,255,0.05) 0%, transparent 80%), #030209;
    padding: 2rem;
    box-shadow: 0 15px 45px rgba(0,0,0,0.6);
    position: relative;
    overflow: hidden;
}

/* SVG nodes styling */
.svg-node {
    cursor: none;
    transition: fill 0.3s, r 0.3s;
}
.svg-node:hover {
    fill: #fff !important;
    r: 8px !important;
}

.svg-link {
    stroke: rgba(255, 255, 255, 0.05);
    stroke-dasharray: 2 4;
}

.map-readout h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: #fff;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
}

.map-readout-type {
    font-family: var(--font-tech);
    color: var(--color-crimson);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: block;
}

.map-readout-desc {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
}

/* Franchise Hub cards */
.franchise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.franchise-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.franchise-card h3::before {
    content: '✦';
    color: var(--color-crimson);
}

.franchise-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Enlistment Terminal / Passport form */
.enlistment-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 3.5rem;
    align-items: center;
    max-width: 1050px;
    margin: 0 auto;
}

.form-box {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-family: var(--font-tech);
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--color-cyan);
    text-transform: uppercase;
}

.form-input {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 4px;
    padding: 0.8rem 1.2rem;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s;
}

.form-input:focus {
    border-color: var(--color-cyan);
    background: rgba(0, 242, 255, 0.02);
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.1);
}

.form-select {
    background: #0d0c18;
    border: 1px solid var(--border-glass);
    border-radius: 4px;
    padding: 0.8rem 1.2rem;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s;
}

.form-select:focus {
    border-color: var(--color-cyan);
}

/* Passport Card Display */
.passport-card-container {
    perspective: 1000px;
}

.passport-card {
    background: linear-gradient(135deg, #100b26 0%, #05030b 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.7), 0 0 30px rgba(128, 0, 255, 0.1);
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 1.5rem;
}

/* Passport glow line */
.passport-card::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, var(--color-crimson), var(--color-cyan));
    top: 0; left: 0;
}

.passport-avatar-box {
    width: 100px;
    height: 130px;
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 6px;
    background: #030206;
    overflow: hidden;
    position: relative;
}

.passport-hologram {
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        transparent, transparent 2px,
        rgba(0, 242, 255, 0.05) 2px, rgba(0, 242, 255, 0.05) 4px
    );
}

.passport-holo-graphic {
    width: 70%;
    height: 70%;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    stroke: var(--color-cyan);
    fill: none;
    stroke-width: 1.5;
    opacity: 0.65;
    filter: drop-shadow(0 0 5px var(--color-cyan-glow));
    animation: holoPulse 4s infinite ease-in-out;
}

@keyframes holoPulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.85; transform: translate(-50%, -50%) scale(1.06); }
}

.passport-details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.passport-details h4 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 0.2rem;
}

.passport-class {
    font-family: var(--font-tech);
    color: var(--color-cyan);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.passport-stats {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.75rem;
}

.passport-stat-row {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-tech);
    color: var(--text-muted);
}

.passport-stat-row span:last-child {
    color: #fff;
}

.passport-bottom {
    margin-top: 1.2rem;
    border-top: 1px dashed rgba(255,255,255,0.06);
    padding-top: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.passport-barcode {
    width: 110px;
    height: 24px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='20'><rect x='2' width='2' height='20'/><rect x='6' width='4' height='20'/><rect x='12' width='1' height='20'/><rect x='15' width='2' height='20'/><rect x='19' width='3' height='20'/><rect x='24' width='1' height='20'/><rect x='27' width='4' height='20'/><rect x='33' width='2' height='20'/><rect x='37' width='3' height='20'/><rect x='42' width='1' height='20'/><rect x='45' width='2' height='20'/><rect x='49' width='4' height='20'/><rect x='55' width='1' height='20'/><rect x='58' width='3' height='20'/><rect x='63' width='2' height='20'/><rect x='67' width='1' height='20'/><rect x='70' width='4' height='20'/><rect x='76' width='2' height='20'/><rect x='80' width='3' height='20'/><rect x='85' width='1' height='20'/><rect x='88' width='2' height='20'/><rect x='92' width='4' height='20'/><rect x='98' width='1' height='20'/></svg>") no-repeat;
    opacity: 0.5;
    filter: invert(1);
}

.passport-id {
    font-family: var(--font-tech);
    font-size: 0.7rem;
    color: var(--color-crimson);
}

/* Audio Player */
.music-bar {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 998;
    background: rgba(5,4,14,0.9);
    border: 1px solid var(--border-glass);
    border-radius: 4px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 15px;
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.music-bar-play {
    background: transparent;
    border: none;
    color: var(--color-cyan);
    font-size: 1rem;
}

.music-bar-title {
    font-family: var(--font-tech);
    font-size: 0.75rem;
    letter-spacing: 1px;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-glass);
    padding: 5rem 0 3rem 0;
    background: #010103;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-top: 1rem;
}

.footer-col h5 {
    font-family: var(--font-tech);
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--color-cyan);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--color-cyan);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
}

.footer-socials a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-socials a:hover {
    color: var(--color-cyan);
}

/* Scroll Reveal Helper Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.1, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.1, 0.8, 0.2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Responsiveness adjustments */
@media (max-width: 900px) {
    .hero-title { font-size: 3rem; }
    .map-wrapper { grid-template-columns: 1fr; gap: 3rem; }
    .enlistment-wrapper { grid-template-columns: 1fr; gap: 3rem; }
    nav ul { display: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
}
