/* ============================================
   DIGITAL EXPLORER
   CORE STYLESHEET
============================================ */

:root {

    --bg: #08111f;
    --panel: rgba(18,26,40,.75);
    --panel-dark: rgba(10,18,30,.88);

    --text: #f4f8fc;
    --muted: #9eb2c6;

    --azure: #0078d4;
    --cyan: #00e5ff;
    --red: #ff4a57;
    --success: #00ffaa;

    --glass-border: rgba(255,255,255,.08);

    --card-radius: 20px;
    --transition: .25s ease;
}

/* ============================================
   LIGHT MODE
============================================ */

body.light {

    --bg: #eef4fa;
    --panel: rgba(255,255,255,.85);
    --panel-dark: rgba(255,255,255,.95);

    --text: #102030;
    --muted: #526476;

    --glass-border: rgba(0,0,0,.08);
}

/* ============================================
   RESET
============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {

    background: var(--bg);
    color: var(--text);

    font-family:
        "Segoe UI",
        Inter,
        sans-serif;

    line-height: 1.7;

    overflow-x: hidden;

    transition:
        background .3s ease,
        color .3s ease;
}

/* ============================================
   STARFIELD
============================================ */

#starfield {

    position: fixed;
    inset: 0;

    width: 100%;
    height: 100%;

    pointer-events: none;

    z-index: -100;
}

/* ============================================
   CONTAINERS
============================================ */

.container {

    width: min(1400px, 92vw);

    margin: 0 auto;
}

section {

    position: relative;

    padding: 100px 0;
}

/* ============================================
   NAVIGATION
============================================ */

nav {

    position: sticky;

    top: 0;

    z-index: 1000;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 14px 24px;

    backdrop-filter: blur(16px);

    background:
        rgba(8,17,31,.72);
}

body.light nav {

    background:
        rgba(255,255,255,.75);
}

.logo {

    display: flex;
    align-items: center;

    gap: 14px;
}

.logo a {

    text-decoration: none;

    color: var(--text);

    font-size: 1.2rem;
    font-weight: 700;
}

.nav-logo {

    width: 46px;
    height: 46px;
}

.nav-links {

    display: flex;
    gap: 20px;
}

.nav-links a {

    text-decoration: none;

    color: var(--text);

    transition: var(--transition);
}

.nav-links a:hover {

    color: var(--cyan);
}

/* ============================================
   THEME BUTTON
============================================ */

.theme-toggle {

    width: 44px;
    height: 44px;

    border: none;
    border-radius: 50%;

    cursor: pointer;

    background: var(--panel);

    color: var(--text);

    font-size: 1rem;
}

/* ============================================
   HERO
============================================ */

.hero {

    min-height: 90vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;

    padding: 40px;
}

.hero-title {

    font-size:
        clamp(
            3rem,
            8vw,
            6rem
        );
}

.hero-subtitle {

    margin: 20px 0;

    color: var(--cyan);

    letter-spacing: 1px;
}

.hero-description {

    max-width: 900px;

    color: var(--muted);

    font-size: 1.15rem;
}

/* ============================================
   PAGE HEADER
============================================ */

.page-header {

    text-align: center;

    padding:
        140px 20px
        60px;
}

.page-header h1 {

    font-size:
        clamp(
            3rem,
            6vw,
            5rem
        );
}

.page-header p {

    color: var(--muted);
}

/* ============================================
   SECTION HEADERS
============================================ */

.section-title {

    text-align: center;

    margin-bottom: 20px;

    font-size:
        clamp(
            2rem,
            5vw,
            3.5rem
        );
}

.section-subtitle {

    max-width: 900px;

    margin:
        0 auto
        60px;

    text-align: center;

    color: var(--muted);
}

/* ============================================
   GLASS PANELS
============================================ */

.glass-panel {

    background: var(--panel);

    backdrop-filter: blur(20px);

    border:
        1px solid
        var(--glass-border);

    border-radius:
        var(--card-radius);

    padding: 30px;
}

/* ============================================
   GRID SYSTEMS
============================================ */

.section-grid,
.dashboard-grid,
.contact-grid,
.observatory-grid {

    display: grid;

    gap: 24px;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(
                280px,
                1fr
            )
        );
}

/* ============================================
   DASHBOARD
============================================ */

.metric {

    display: block;

    color: var(--cyan);

    font-size: 3rem;
    font-weight: 700;
}

.dashboard-card {

    text-align: center;
}

.dashboard-skills {

    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 40px;
}

.dashboard-badge {

    padding: 10px 18px;

    border-radius: 999px;

    background:
        rgba(0,229,255,.10);

    border:
        1px solid
        rgba(0,229,255,.25);
}

.dashboard-categories {

    display: grid;

    gap: 20px;

    margin-top: 40px;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(
                220px,
                1fr
            )
        );
}

/* ============================================
   FILTERS
============================================ */

.career-filters {

    text-align: center;

    margin-bottom: 30px;
}

.career-filter {

    margin: 5px;

    padding: 10px 18px;

    border: none;
    border-radius: 999px;

    cursor: pointer;

    background: var(--panel);

    color: var(--text);
}

.career-filter.active {

    background: var(--azure);

    color: white;
}

/* ============================================
   CHAT
============================================ */

.chat-log {

    min-height: 300px;
    max-height: 500px;

    overflow-y: auto;

    margin-bottom: 20px;
}

.chat-user,
.chat-assistant {

    padding: 16px;

    border-radius: 16px;

    margin-bottom: 14px;
}

.chat-user {

    background:
        rgba(
            0,
            120,
            212,
            .12
        );
}

.chat-assistant {

    background:
        rgba(
            0,
            229,
            255,
            .08
        );
}

.chat-input {

    display: flex;
    gap: 10px;
}

.chat-input input {

    flex: 1;

    padding: 12px;

    border: none;
    border-radius: 12px;
}

.chat-input button {

    padding: 12px 20px;

    border: none;
    border-radius: 12px;

    cursor: pointer;
}

/* ============================================
   TAGS
============================================ */

.skill-tags,
.tag-cloud {

    display: flex;
    flex-wrap: wrap;

    gap: 10px;
}

.skill-tags span,
.tag-cloud span {

    padding: 8px 16px;

    border-radius: 999px;

    background:
        var(--panel-dark);

    border:
        1px solid
        var(--glass-border);
}

/* ============================================
   STATUS
============================================ */

.status-online {

    display: inline-flex;
    align-items: center;

    gap: 10px;

    color: var(--success);
}

.status-online::before {

    content: "";

    width: 10px;
    height: 10px;

    border-radius: 50%;

    background: var(--success);
}

/* ============================================
   BUTTONS
============================================ */

.primary-btn {

    padding: 12px 20px;

    border: none;
    border-radius: 12px;

    cursor: pointer;

    color: white;

    background: var(--azure);
}

/* ============================================
   FOOTER
============================================ */

.mission-footer {

    text-align: center;

    margin-top: 80px;

    padding: 60px 20px;
}

.mission-footer p {

    color: var(--muted);
}

/* ============================================
   RESPONSIVE
============================================ */

@media (max-width: 900px) {

    nav {

        flex-direction: column;

        gap: 15px;
    }

    .nav-links {

        flex-wrap: wrap;

        justify-content: center;
    }

    .chat-input {

        flex-direction: column;
    }
}