:root {
    --space-bg-0: #02030a;
    --space-bg-1: #050814;
    --space-bg-2: #0b1430;

    --glass: rgba(10, 15, 30, 0.56);
    --glass-strong: rgba(8, 12, 22, 0.72);
    --border: rgba(140, 170, 255, 0.22);

    --text: rgba(255, 255, 255, 0.92);
    --muted: rgba(255, 255, 255, 0.70);

    --accent: rgba(120, 150, 255, 1);
    --accent-soft: rgba(120, 150, 255, 0.25);
    --accent-glow: rgba(120, 150, 255, 0.16);

    --danger: rgba(255, 90, 130, 1);
    --danger-soft: rgba(255, 90, 130, 0.20);
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
    background: radial-gradient(circle at 30% 20%, var(--space-bg-2) 0%, var(--space-bg-1) 45%, var(--space-bg-0) 100%);
    color: var(--text);
    font-family: "Open Sans", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    user-select: none;
    -webkit-text-size-adjust: 100%;
}


body.space_panning,
body.space_panning * {
    user-select: none !important;
    -webkit-user-select: none !important;
}



* {
    -webkit-tap-highlight-color: transparent;
}


a {
    color: rgba(170, 200, 255, 0.95);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

#splash-container {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

#dotsCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;

    pointer-events: auto;
    touch-action: none;
    z-index: 0;
}

nav {
    position: fixed;
    top: calc(16px + env(safe-area-inset-top));
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    display: flex;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(8, 10, 18, 0.45);
    border: 1px solid rgba(140, 170, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

nav button {
    appearance: none;
    border: 1px solid rgba(140, 170, 255, 0.18);
    background: rgba(10, 15, 30, 0.45);
    color: var(--text);
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 0.95rem;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

nav button:hover {
    transform: translateY(-1px);
    border-color: rgba(140, 170, 255, 0.35);
    box-shadow: 0 0 0 4px rgba(120, 150, 255, 0.08);
}

nav button.space-nav-active {
    border-color: rgba(140, 170, 255, 0.55);
    box-shadow: 0 0 24px rgba(120, 150, 255, 0.14);
    background: rgba(12, 18, 40, 0.62);
}


#nav-toggle {
    display: none;
}


@media (max-width: 720px) {
    nav {
        left: 50%;
        right: auto;
        transform: translateX(-50%);


        flex-direction: column;
        align-items: stretch;
        gap: 8px;

        width: auto;
        max-width: calc(100vw - 24px - env(safe-area-inset-left) - env(safe-area-inset-right));
        padding: 8px;
        border-radius: 22px;
    }

    #nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;

        width: 44px;
        height: 44px;
        padding: 0;

        border-radius: 999px;
        font-size: 1.15rem;
        line-height: 1;
    }


    nav.nav-collapsed {
        flex-direction: row;
        align-items: center;
        gap: 0;
        padding: 6px;
        border-radius: 999px;
        width: auto;
    }

    nav.nav-collapsed button:not(#nav-toggle) {
        display: none;
    }


    nav.nav-expanded {
        width: min(92vw, 420px);
        max-height: calc(100vh - (24px + env(safe-area-inset-top)) - 24px);
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }

    nav.nav-expanded button:not(#nav-toggle) {
        display: block;
        width: 100%;
        text-align: left;
        white-space: nowrap;
    }

    nav button {
        padding: 10px 14px;
        font-size: 0.92rem;
    }
}

@media (max-width: 480px) {
    nav {
        top: calc(12px + env(safe-area-inset-top));
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        padding: 7px;
        border-radius: 20px;
    }

    #nav-toggle {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }

    nav button {
        padding: 10px 12px;
        font-size: 0.88rem;
    }

    .space-hint {
        left: calc(12px + env(safe-area-inset-left));
        right: calc(12px + env(safe-area-inset-right));
        max-width: calc(100vw - 24px - 146px);
        font-size: 0.82rem;
        padding: 8px 10px;
    }

    #minimap {
        width: 118px;
        height: 118px;
        right: calc(10px + env(safe-area-inset-right));
        bottom: calc(10px + env(safe-area-inset-bottom));
    }
}


@media (hover: none) {

    nav button:hover,
    .contact-icon-btn:hover,
    .project-card:hover,
    .feature-link:hover,
    .feature-open:hover,
    .gallery-tile:hover {
        transform: none;
    }
}

.space-hint {
    position: fixed;
    left: calc(18px + env(safe-area-inset-left));
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 200;
    padding: 10px 12px;
    font-size: 0.9rem;
    color: var(--muted);
    background: rgba(8, 10, 18, 0.40);
    border: 1px solid rgba(140, 170, 255, 0.16);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);


    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    user-select: none;
}

.space-hint-body {
    pointer-events: none;
}

#space-hint-toggle {
    pointer-events: auto;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    border: 1px solid rgba(140, 170, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.92);
    font-size: 16px;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
}

#space-hint-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(120, 150, 255, 0.16);
}

.space-hint.hint-collapsed {

    padding: 0;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    right: auto;
    max-width: none;
    box-sizing: border-box;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    overflow: hidden;
}

.space-hint.hint-collapsed .space-hint-body {
    display: none;
}

.space-hint.hint-collapsed #space-hint-toggle {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    box-sizing: border-box;
}

@media (max-width: 640px) and (min-width: 481px) {


    .space-hint.hint-collapsed {
        bottom: calc(12px + env(safe-area-inset-bottom));
    }
}

@media (max-width: 480px) {


    .space-hint.hint-collapsed {
        bottom: calc(10px + env(safe-area-inset-bottom));
    }
}

#container {
    position: absolute;
    width: 100vw;
    width: 100dvw;
    height: 100vh;
    height: 100dvh;
    touch-action: none;
    transform-origin: 0 0;
    will-change: transform;
    z-index: 1;
}

.space-section {
    position: absolute;
    transform: translate(-50%, -50%);
    width: min(1100px, 84vw);
    height: min(720px, 78vh);
    border-radius: 22px;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
}

@media (max-width: 640px) {
    .space-section {
        width: 92vw;
        height: 82vh;
    }

}

.space-panel {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(18, 24, 48, 0.62), rgba(8, 12, 24, 0.62));
    border: 1px solid var(--border);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.34), 0 0 40px var(--accent-glow);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.space-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 22px;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 0 40px rgba(120, 150, 255, 0.08);
}

.space-planet {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 9999px;
    left: -140px;
    top: -180px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.28), rgba(120, 150, 255, 0.14), rgba(0, 0, 0, 0));
    box-shadow: 0 0 110px rgba(120, 150, 255, 0.10);
    opacity: 0.95;
    pointer-events: none;
    filter: saturate(1.1);
}

.space-planet.planet-home {
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.24), rgba(120, 150, 255, 0.16), rgba(0, 0, 0, 0));
}

.space-planet.planet-info {
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.20), rgba(120, 255, 200, 0.14), rgba(0, 0, 0, 0));
    box-shadow: 0 0 110px rgba(120, 255, 200, 0.09);
}

.space-planet.planet-projects {
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.18), rgba(255, 150, 120, 0.13), rgba(0, 0, 0, 0));
    box-shadow: 0 0 110px rgba(255, 150, 120, 0.09);
}

.space-planet.planet-experience {
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.18), rgba(255, 120, 200, 0.13), rgba(0, 0, 0, 0));
    box-shadow: 0 0 110px rgba(255, 120, 200, 0.09);
}

.space-content {
    position: relative;
    height: 100%;
    width: 100%;
    padding: 34px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

@media (max-width: 640px) {
    .space-content {
        padding: 22px;
    }

}

.space-title {
    font-size: clamp(1.6rem, 3vw, 2.6rem);
    font-weight: 700;
    letter-spacing: 0.2px;
}


#info .space-content {
    min-height: 0;
}

#info .about-grid.space-scroll {
    flex: 1;
    min-height: 0;
    padding-right: 6px;
}

.space-subtitle {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.55;
    max-width: 60ch;
}

.space-divider {
    height: 1px;
    width: 100%;
    background: rgba(140, 170, 255, 0.14);
}

.space-scroll {
    user-select: text;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    overscroll-behavior: contain;
}

.space-scroll::-webkit-scrollbar {
    width: 10px;
}

.space-scroll::-webkit-scrollbar-thumb {
    background: rgba(140, 170, 255, 0.18);
    border-radius: 999px;
    border: 2px solid rgba(0, 0, 0, 0);
    background-clip: padding-box;
}

.space-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(140, 170, 255, 0.28);
    border: 2px solid rgba(0, 0, 0, 0);
    background-clip: padding-box;
}

.projects-shell {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 0;
}

.projects-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.projects-search input {
    width: min(380px, 78vw);
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(140, 170, 255, 0.20);
    background: rgba(8, 10, 18, 0.38);
    color: var(--text);
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.projects-search input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.projects-search input:focus {
    border-color: rgba(140, 170, 255, 0.40);
    box-shadow: 0 0 0 4px rgba(120, 150, 255, 0.10);
    background: rgba(8, 10, 18, 0.48);
}

.projects-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip {
    appearance: none;
    border: 1px solid rgba(140, 170, 255, 0.18);
    background: rgba(10, 15, 30, 0.35);
    color: rgba(255, 255, 255, 0.84);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.92rem;
    cursor: pointer;
    transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.filter-chip:hover {
    transform: translateY(-1px);
    border-color: rgba(140, 170, 255, 0.32);
    box-shadow: 0 0 0 4px rgba(120, 150, 255, 0.08);
}

.filter-chip-active {
    border-color: rgba(140, 170, 255, 0.55);
    background: rgba(12, 18, 40, 0.62);
    box-shadow: 0 0 24px rgba(120, 150, 255, 0.14);
}

.projects-grid-wrap {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 16px;
}

@media (max-width: 980px) {
    .projects-grid-wrap {
        grid-template-columns: 1fr;
    }

}

.projects-grid {
    min-height: 0;
    padding-right: 6px;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    grid-auto-rows: max-content;
}

@media (max-width: 720px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

}

.projects-feature {
    min-height: 0;
}

.feature-card {
    height: 100%;
    border-radius: 18px;
    border: 1px solid rgba(140, 170, 255, 0.16);
    background: rgba(8, 10, 18, 0.38);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28), 0 0 26px rgba(120, 150, 255, 0.10);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.feature-media {
    aspect-ratio: 16 / 9;
    border-bottom: 1px solid rgba(140, 170, 255, 0.14);
    background: rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.feature-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.feature-body {
    padding: 16px;
    min-height: 0;
}

.feature-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.feature-links {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(140, 170, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.feature-link:hover {
    transform: translateY(-1px);
    border-color: rgba(140, 170, 255, 0.32);
    box-shadow: 0 0 0 4px rgba(120, 150, 255, 0.08);
    background: rgba(255, 255, 255, 0.08);
}

.feature-actions {
    margin-top: 14px;
}

.feature-open {
    appearance: none;
    border: 1px solid rgba(140, 170, 255, 0.18);
    background: rgba(12, 18, 40, 0.62);
    color: rgba(255, 255, 255, 0.92);
    padding: 10px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.feature-open:hover {
    transform: translateY(-1px);
    border-color: rgba(140, 170, 255, 0.38);
    box-shadow: 0 0 0 4px rgba(120, 150, 255, 0.10);
}

.empty-state {
    border-radius: 16px;
    border: 1px solid rgba(140, 170, 255, 0.16);
    background: rgba(8, 10, 18, 0.35);
    padding: 18px;
}

.empty-title {
    font-weight: 700;
    font-size: 1.05rem;
}

.empty-sub {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.70);
    line-height: 1.55;
}

.project-card-compact {
    padding: 14px;
    cursor: pointer;
    user-select: none;
    -webkit-text-size-adjust: 100%;
}

* {
    -webkit-tap-highlight-color: transparent;
}


.project-card-selected {
    border-color: rgba(140, 170, 255, 0.45);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28), 0 0 34px rgba(120, 150, 255, 0.16);
}

.project-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.project-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
}

.project-card-tags {
    display: inline-flex;
    gap: 6px;
    flex-wrap: wrap;
}

.mini-tag {
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.82rem;
    border: 1px solid rgba(140, 170, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.78);
}

.project-card-desc {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.70);
    line-height: 1.55;
}

.project-card-skills {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#project-list {
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 6px;
}

.project-card {
    position: relative;
    border-radius: 16px;
    border: 1px solid rgba(140, 170, 255, 0.16);
    background: rgba(8, 10, 18, 0.35);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
    overflow: hidden;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.project-card:hover {
    transform: translateY(-2px);
    border-color: rgba(140, 170, 255, 0.30);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28), 0 0 26px rgba(120, 150, 255, 0.10);
}

@media (hover: hover) {
    .project-card::before {
        content: "";
        position: absolute;
        inset: -2px;
        border-radius: 18px;
        border: 1px solid transparent;
        pointer-events: none;
        transition: border-color 180ms ease, box-shadow 180ms ease;
    }

    .project-card:hover::before {
        border-color: rgba(140, 170, 255, 0.50);
        box-shadow: 0 0 26px rgba(120, 150, 255, 0.18);
    }

}

.skill-badge {
    background: rgba(120, 150, 255, 0.18);
    border: 1px solid rgba(120, 150, 255, 0.22);
    color: rgba(255, 255, 255, 0.92);
    padding: 4px 10px;
    font-size: 0.9rem;
    border-radius: 999px;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.skill-badge:hover {
    transform: translateY(-1px);
    background: rgba(120, 150, 255, 0.24);
    border-color: rgba(120, 150, 255, 0.34);
}

.preview-card {
    width: 100%;
    border-radius: 18px;
    border: 1px solid rgba(140, 170, 255, 0.16);
    background: rgba(8, 10, 18, 0.38);
    overflow: hidden;
}

.exp-shell {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 0;
}

.exp-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.exp-search input {
    width: min(380px, 78vw);
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(140, 170, 255, 0.20);
    background: rgba(8, 10, 18, 0.38);
    color: var(--text);
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.exp-search input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.exp-search input:focus {
    border-color: rgba(140, 170, 255, 0.40);
    box-shadow: 0 0 0 4px rgba(120, 150, 255, 0.10);
    background: rgba(8, 10, 18, 0.48);
}

.exp-grid-wrap {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 16px;
}

@media (max-width: 980px) {
    .exp-grid-wrap {
        grid-template-columns: 1fr;
    }

}

.exp-timeline {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 6px;
}

.exp-item {
    appearance: none;
    text-align: left;
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(140, 170, 255, 0.16);
    background: rgba(8, 10, 18, 0.35);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
    padding: 14px;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.exp-item:hover {
    transform: translateY(-2px);
    border-color: rgba(140, 170, 255, 0.30);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28), 0 0 26px rgba(120, 150, 255, 0.10);
    background: rgba(10, 14, 26, 0.42);
}

.exp-item-active {
    border-color: rgba(140, 170, 255, 0.45);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28), 0 0 34px rgba(120, 150, 255, 0.16);
}

.exp-item-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.exp-item-role {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
}

.exp-item-org {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.82);
}

.exp-item-meta {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.95rem;
}

.exp-detail-head {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.exp-detail-meta {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.98rem;
}

.exp-bullets {
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.6;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 16px;
    min-height: 0;
}

@media (max-width: 980px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

}

.space-card {
    border-radius: 18px;
    border: 1px solid rgba(140, 170, 255, 0.16);
    background: rgba(8, 10, 18, 0.35);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
    padding: 16px;
}

.about-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.about-avatar {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-weight: 800;
    letter-spacing: 0.6px;
    color: rgba(255, 255, 255, 0.92);
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.20), rgba(120, 255, 200, 0.10), rgba(0, 0, 0, 0));
    border: 1px solid rgba(140, 170, 255, 0.18);
    box-shadow: 0 0 26px rgba(120, 255, 200, 0.10);
}

.about-name {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.about-sub {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.70);
    font-size: 0.98rem;
}

.about-facts {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.about-fact {
    border-radius: 14px;
    border: 1px solid rgba(140, 170, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    padding: 10px 12px;
}

.about-fact-label {
    color: rgba(255, 255, 255, 0.60);
    font-size: 0.86rem;
}

.about-fact-value {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.90);
    font-weight: 700;
}

.about-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 0;
}

.about-divider {
    margin: 10px 0 12px;
    height: 1px;
    width: 100%;
    background: rgba(140, 170, 255, 0.14);
}

.about-timeline {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.about-timeline-item {
    display: grid;
    grid-template-columns: 16px 1fr;
    gap: 10px;
    align-items: start;
}

.about-timeline-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    margin-top: 5px;
    background: rgba(120, 255, 200, 0.55);
    box-shadow: 0 0 18px rgba(120, 255, 200, 0.18);
    border: 1px solid rgba(120, 255, 200, 0.32);
}

:root {
    --space-bg-0: #02030a;
    --space-bg-1: #050814;
    --space-bg-2: #0b1430;

    --glass: rgba(10, 15, 30, 0.56);
    --glass-strong: rgba(8, 12, 22, 0.72);
    --border: rgba(140, 170, 255, 0.22);

    --text: rgba(255, 255, 255, 0.92);
    --muted: rgba(255, 255, 255, 0.70);

    --accent: rgba(120, 150, 255, 1);
    --accent-soft: rgba(120, 150, 255, 0.25);
    --accent-glow: rgba(120, 150, 255, 0.16);

    --danger: rgba(255, 90, 130, 1);
    --danger-soft: rgba(255, 90, 130, 0.20);
}

.space-planet.planet-contact {
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.22), rgba(120, 200, 255, 0.16), rgba(0, 0, 0, 0));
    box-shadow: 0 0 110px rgba(120, 200, 255, 0.10);
}

.experience-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 6px;
}

.experience-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 6px;
}

.exp-card {
    border-radius: 16px;
    border: 1px solid rgba(140, 170, 255, 0.16);
    background: rgba(8, 10, 18, 0.35);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
    padding: 14px;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.exp-card:hover {
    transform: translateY(-2px);
    border-color: rgba(140, 170, 255, 0.30);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28), 0 0 26px rgba(120, 150, 255, 0.10);
    background: rgba(10, 14, 26, 0.42);
}

.exp-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.exp-role {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
}

.exp-org {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.82);
}

.exp-meta {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.95rem;
}

.exp-skills {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.home-content {
    align-items: center;
    justify-content: center;
    text-align: center;
}

.home-content .space-subtitle {
    max-width: 62ch;
    text-align: center;
}

.home-content .space-divider {
    width: min(560px, 88%);
}

/* Contact icons layout */
.contact-icons {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.contact-icon-btn {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(140, 170, 255, 0.18);
    background: rgba(8, 10, 18, 0.38);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
    text-decoration: none;
}

.contact-icon-btn i {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.92);
}

.contact-icon-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(140, 170, 255, 0.35);
    background: rgba(12, 18, 40, 0.58);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28), 0 0 26px rgba(120, 150, 255, 0.10);
    text-decoration: none;
}

.contact-icon-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(120, 150, 255, 0.16), 0 18px 55px rgba(0, 0, 0, 0.28);
}

.contact-meta {
    margin-top: 16px;
    max-width: 680px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 720px) {
    .contact-meta {
        grid-template-columns: 1fr;
    }
}

.contact-meta-item {
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(140, 170, 255, 0.16);
    background: rgba(8, 10, 18, 0.35);
}

.contact-meta-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.62);
}

.contact-meta-value {
    margin-top: 4px;
    font-size: 1.05rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
}


.contact-content {
    align-items: center;
    text-align: center;
}

.contact-header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.contact-header button {
    align-self: center;
}


#contact .space-divider {
    width: min(560px, 88%);
    margin-left: auto;
    margin-right: auto;
}

#contact .space-subtitle,
#contact p {
    text-align: center;
}

/* Center the icon row */
.contact-icons {
    justify-content: center;
}

/* Center the meta grid */
.contact-meta {
    margin-left: auto;
    margin-right: auto;
}

.contact-meta-item {
    text-align: center;
}


/* Contact header layout  */
#contact .contact-header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: static;
    padding-right: 0;
}

/* Mini map */
#minimap {
    position: fixed;
    right: calc(16px + env(safe-area-inset-right));
    bottom: calc(16px + env(safe-area-inset-bottom));
    width: 160px;
    height: 160px;
    z-index: 220;
    border-radius: 14px;
    background: rgba(8, 10, 18, 0.40);
    border: 1px solid rgba(140, 170, 255, 0.16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    transition: width 160ms ease, height 160ms ease, border-radius 160ms ease;
}

#minimap-toggle {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    border: 1px solid rgba(140, 170, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.92);
    font-size: 16px;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
}

#minimap-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(120, 150, 255, 0.16);
}

#minimap-label {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(8, 10, 18, 0.45);
    border: 1px solid rgba(140, 170, 255, 0.14);
    font-size: 0.78rem;
    letter-spacing: 0.2px;
    color: rgba(255, 255, 255, 0.80);
    pointer-events: none;
}

#minimap.minimap-collapsed {
    width: 44px;
    height: 44px;
    border-radius: 999px;
}

#minimap.minimap-collapsed #minimapCanvas {
    opacity: 0;
}

#minimap.minimap-collapsed #minimap-label {
    opacity: 0;
    visibility: hidden;
}

#minimap.minimap-collapsed #minimap-toggle {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    border-radius: 999px;
}

#minimapCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

@media (max-width: 640px) {
    #minimap {
        width: 130px;
        height: 130px;
        right: calc(12px + env(safe-area-inset-right));
        bottom: calc(12px + env(safe-area-inset-bottom));
    }
}



.space-gallery {
    position: absolute;
    transform: translate(-50%, -50%);
    width: min(820px, 72vw);
    border-radius: 22px;
    padding: 16px;
    background: linear-gradient(180deg, rgba(18, 24, 48, 0.45), rgba(8, 12, 24, 0.45));
    border: 1px solid rgba(140, 170, 255, 0.16);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.34), 0 0 40px var(--accent-glow);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow: hidden;
    will-change: transform;
    animation: galleryFloat 6.5s ease-in-out infinite;
}

@keyframes galleryFloat {
    0% {
        transform: translate(-50%, -50%) translateY(0px);
    }

    50% {
        transform: translate(-50%, -50%) translateY(-8px);
    }

    100% {
        transform: translate(-50%, -50%) translateY(0px);
    }
}

.space-gallery::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 22px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), inset 0 0 40px rgba(120, 150, 255, 0.06);
}

.space-gallery-head {
    position: relative;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    z-index: 1;
}

.space-gallery-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.space-gallery-sub {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.65);
}

.space-gallery-grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 112px;
}

@media (max-width: 980px) {
    .space-gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-auto-rows: 120px;
    }
}

.gallery-tile {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(140, 170, 255, 0.14);
    background: rgba(0, 0, 0, 0.22);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
    transform: translateZ(0);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.gallery-tile:hover {
    transform: translateY(-2px);
    border-color: rgba(140, 170, 255, 0.30);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28), 0 0 26px rgba(120, 150, 255, 0.10);
}

.gallery-media,
.gallery-media video,
.gallery-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 10px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 35%, rgba(0, 0, 0, 0.72) 100%);
    opacity: 0;
    transition: opacity 160ms ease;
}

.gallery-tile:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 6px 16px rgba(0, 0, 0, 0.55);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gallery-swap {
    opacity: 0.35;
    filter: blur(1px);
    transition: opacity 220ms ease, filter 220ms ease;
}


#zoom-ui {
    position: fixed;
    right: calc(14px + env(safe-area-inset-right));
    top: 50%;
    transform: translateY(-50%);
    z-index: 260;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 12px 10px;
    border-radius: 16px;


    opacity: 0.18;
    border: 1px solid rgba(140, 170, 255, 0.10);
    background: rgba(8, 10, 18, 0.10);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    transition: opacity 220ms ease, background 220ms ease, border-color 220ms ease,
        backdrop-filter 220ms ease, -webkit-backdrop-filter 220ms ease;

    pointer-events: auto;
    touch-action: none;
}


#zoom-ui.zoom-ui-active,
#zoom-ui:focus-within {
    opacity: 1;
    border-color: rgba(140, 170, 255, 0.16);
    background: rgba(8, 10, 18, 0.40);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#zoom-ui .zoom-btn {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(140, 170, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.92);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
}

#zoom-ui .zoom-btn:active {
    transform: scale(0.98);
}

#zoom-slider {
    touch-action: none;
    width: 34px;
    height: 180px;


    -webkit-appearance: none;
    appearance: none;
    writing-mode: vertical-lr;
    direction: rtl;

    background: transparent;
}

#zoom-slider::-webkit-slider-runnable-track {
    width: 10px;
    margin: 0 auto;
    border-radius: 999px;
    background: rgba(140, 170, 255, 0.16);
    border: 1px solid rgba(140, 170, 255, 0.18);
}

#zoom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 2px solid rgba(140, 170, 255, 0.55);
    box-shadow: 0 0 0 6px rgba(120, 150, 255, 0.10);
    margin-left: -8px;
}

#zoom-slider::-moz-range-track {
    width: 10px;
    margin: 0 auto;
    border-radius: 999px;
    background: rgba(140, 170, 255, 0.16);
    border: 1px solid rgba(140, 170, 255, 0.18);
}

#zoom-slider::-moz-range-thumb {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 2px solid rgba(140, 170, 255, 0.55);
    box-shadow: 0 0 0 6px rgba(120, 150, 255, 0.10);
}

@media (pointer: coarse),
(hover: none) {
    #zoom-ui {
        display: flex;
    }
}


.space-hint .hint-touch {
    display: none;
}

@media (pointer: coarse),
(hover: none) {
    .space-hint .hint-desktop {
        display: none;
    }

    .space-hint .hint-touch {
        display: inline;
    }
}


@media (max-width: 720px),
(pointer: coarse),
(hover: none) {
    body:not(.standard-view) .projects-feature {
        display: none;
    }

    body:not(.standard-view) .projects-grid-wrap {
        grid-template-columns: 1fr;
    }
}


:root {
    --page-bg: #000;
    --splash-bg: #000;
    --link-color: rgba(170, 200, 255, 0.95);


    --star-cool-rgb: 210, 225, 255;
    --star-warm-rgb: 255, 235, 220;
    --constellation-rgb: 120, 150, 255;
    --nebula-alpha-mult: 1;
}

a {
    color: var(--link-color);
}

#themeButton {
    position: relative;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#themeButton span {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    line-height: 1;
}

body.light {
    --text: rgba(15, 23, 42, 0.94);
    --muted: rgba(15, 23, 42, 0.74);
    --border: rgba(15, 23, 42, 0.12);
    --accent: rgba(29, 78, 216, 1);
    --accent-glow: rgba(29, 78, 216, 0.16);

    --page-bg: #fff;
    --splash-bg: #fff;
    --link-color: rgba(29, 78, 216, 0.95);

    --star-cool-rgb: 10, 10, 10;
    --star-warm-rgb: 10, 10, 10;
    --constellation-rgb: 10, 10, 10;
    --nebula-alpha-mult: 0;
}

body.light,
body.light html {
    color: var(--text) !important;
    background: var(--page-bg) !important;
}

body.light nav {
    background: rgba(255, 255, 255, 0.70);
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.14);
}

body.light nav button {
    background: rgba(255, 255, 255, 0.65);
    border-color: rgba(15, 23, 42, 0.12);
}

body.light nav button:hover {
    border-color: rgba(15, 23, 42, 0.18);
    box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.06);
}

body.light nav button.space-nav-active {
    background: rgba(15, 23, 42, 0.05);
    border-color: rgba(15, 23, 42, 0.20);
    box-shadow: 0 0 24px rgba(15, 23, 42, 0.10);
}

body.light .space-panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(245, 247, 255, 0.82));
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 18px 55px rgba(15, 23, 42, 0.12), 0 0 40px rgba(29, 78, 216, 0.10);
}

body.light .space-panel::after {
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06), inset 0 0 40px rgba(29, 78, 216, 0.06);
}

body.light .space-gallery {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(245, 247, 255, 0.82));
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 18px 55px rgba(15, 23, 42, 0.12), 0 0 40px rgba(29, 78, 216, 0.10);
}

body.light .space-gallery::after {
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06), inset 0 0 40px rgba(29, 78, 216, 0.06);
}

body.light .space-gallery-sub {
    color: rgba(15, 23, 42, 0.62);
}



body.solar .space-gallery {
    background: linear-gradient(180deg, rgba(44, 26, 10, 0.50), rgba(14, 9, 5, 0.50));
    border-color: rgba(255, 196, 96, 0.16);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.34), 0 0 40px var(--accent-glow);
}

body.solar .space-gallery::after {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), inset 0 0 40px rgba(245, 158, 11, 0.08);
}

body.solar .space-gallery-sub {
    color: rgba(255, 247, 236, 0.70);
}


body.light .project-card,
body.light .feature-card,
body.light .exp-card,
body.light .exp-item,
body.light .contact-meta-item,
body.light .contact-icon-btn,
body.light .gallery-tile,
body.light .empty-state {
    background: rgba(255, 255, 255, 0.70);
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
}

body.light .project-card:hover,
body.light .feature-link:hover,
body.light .feature-open:hover,
body.light .gallery-tile:hover,
body.light .exp-card:hover,
body.light .exp-item:hover,
body.light .contact-icon-btn:hover {
    border-color: rgba(15, 23, 42, 0.18);
    box-shadow: 0 18px 55px rgba(15, 23, 42, 0.14), 0 0 26px rgba(29, 78, 216, 0.08);
    background: rgba(255, 255, 255, 0.82);
}

body.light .mini-tag {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.10);
    color: rgba(15, 23, 42, 0.74);
}

body.light .skill-badge {
    background: rgba(29, 78, 216, 0.10);
    border-color: rgba(29, 78, 216, 0.18);
    color: rgba(15, 23, 42, 0.88);
}

body.light .project-card-desc,
body.light .exp-org,
body.light .exp-meta,
body.light .exp-item-org,
body.light .exp-item-meta,
body.light .exp-detail-meta,
body.light .exp-bullets,
body.light .contact-meta-label,
body.light .contact-meta-value,
body.light .space-subtitle,
body.light .space-hint {
    color: rgba(15, 23, 42, 0.74);
}

body.light .contact-icon-btn i {
    color: rgba(15, 23, 42, 0.92);
}

body.light .filter-chip,
body.light .projects-search input,
body.light .pagination-btn {
    background: rgba(255, 255, 255, 0.65);
    border-color: rgba(15, 23, 42, 0.12);
    color: rgba(15, 23, 42, 0.86);
}

body.light .projects-search input::placeholder {
    color: rgba(15, 23, 42, 0.46);
}

body.light .filter-chip:hover,
body.light .pagination-btn:hover {
    border-color: rgba(15, 23, 42, 0.18);
    box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.06);
}

body.light .filter-chip-active,
body.light .pagination-btn-active {
    background: rgba(15, 23, 42, 0.05);
    border-color: rgba(15, 23, 42, 0.20);
    box-shadow: 0 0 24px rgba(15, 23, 42, 0.10);
}

body.light #minimap,
body.light #zoom-ui,
body.light .space-hint {
    background: rgba(255, 255, 255, 0.70);
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.14);
}

body.light #minimap-toggle,
body.light #zoom-ui .zoom-btn,
body.light #space-hint-toggle {
    background: rgba(15, 23, 42, 0.05);
    border-color: rgba(15, 23, 42, 0.12);
    color: rgba(15, 23, 42, 0.92);
}

body.light #zoom-slider::-webkit-slider-runnable-track {
    background: rgba(15, 23, 42, 0.10);
    border-color: rgba(15, 23, 42, 0.12);
}

body.light #zoom-slider::-moz-range-track {
    background: rgba(15, 23, 42, 0.10);
    border-color: rgba(15, 23, 42, 0.12);
}

body.light #zoom-slider::-webkit-slider-thumb,
body.light #zoom-slider::-moz-range-thumb {
    background: rgba(15, 23, 42, 0.92);
    border-color: rgba(29, 78, 216, 0.30);
    box-shadow: 0 0 0 6px rgba(29, 78, 216, 0.10);
}


body.light .text-white,
body.light [class~="text-white/95"],
body.light [class~="text-white/90"],
body.light [class~="text-white/85"],
body.light [class~="text-white/80"],
body.light [class~="text-white/75"] {
    color: rgba(15, 23, 42, 0.92) !important;
}

body.light [class~="text-white/70"],
body.light [class~="text-white/60"],
body.light [class~="text-white/55"],
body.light [class~="text-white/50"],
body.light [class~="text-white/40"] {
    color: rgba(15, 23, 42, 0.74) !important;
}

body.light .bg-black {
    background-color: transparent !important;
}


body.light #project-modal {
    background: rgba(255, 255, 255, 0.65) !important;
    backdrop-filter: blur(6px) !important;
}

body.light #project-modal-card {
    background: rgba(255, 255, 255, 0.92) !important;
    border-color: rgba(15, 23, 42, 0.12) !important;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18) !important;
}

body.light #project-modal-card img {
    border-color: rgba(15, 23, 42, 0.12) !important;
}

body.light #project-modal-card a {
    background: rgba(15, 23, 42, 0.05) !important;
    border-color: rgba(15, 23, 42, 0.12) !important;
    color: rgba(15, 23, 42, 0.92) !important;
}

body.light #pm-close {
    background: rgba(15, 23, 42, 0.05) !important;
    border-color: rgba(15, 23, 42, 0.12) !important;
    color: rgba(15, 23, 42, 0.92) !important;
}




body.solar {

    --space-bg-0: #120803;
    --space-bg-1: #2a0f03;
    --space-bg-2: #6a2408;

    --glass: rgba(18, 12, 6, 0.56);
    --glass-strong: rgba(16, 10, 6, 0.72);
    --border: rgba(255, 196, 96, 0.22);

    --text: rgba(255, 247, 236, 0.92);
    --muted: rgba(255, 247, 236, 0.72);

    --accent: rgba(245, 158, 11, 1);
    --accent-soft: rgba(245, 158, 11, 0.22);
    --accent-glow: rgba(245, 158, 11, 0.18);

    --link-color: rgba(255, 196, 96, 0.95);

    --star-cool-rgb: 255, 235, 210;
    --star-warm-rgb: 255, 210, 160;
    --constellation-rgb: 255, 196, 96;
    --nebula-alpha-mult: 1;
}

body.solar nav {
    background: rgba(12, 8, 4, 0.55);
    border-color: rgba(255, 196, 96, 0.20);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

body.solar nav button {
    color: rgba(255, 247, 236, 0.92);
    background: rgba(12, 8, 4, 0.36);
    border-color: rgba(255, 196, 96, 0.20);
}

body.solar nav button:hover {
    border-color: rgba(255, 196, 96, 0.38);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.10);
}

body.solar nav button.space-nav-active {
    border-color: rgba(255, 196, 96, 0.58);
    box-shadow: 0 0 26px rgba(245, 158, 11, 0.18);
    background: rgba(26, 14, 6, 0.58);
}

body.solar .space-panel {
    background: linear-gradient(180deg, rgba(44, 26, 10, 0.62), rgba(14, 9, 5, 0.62));
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.34), 0 0 40px var(--accent-glow);
}

body.solar .project-card,
body.solar .feature-link,
body.solar .feature-open,
body.solar .gallery-tile,
body.solar .exp-card,
body.solar .exp-item,
body.solar .contact-icon-btn {
    border-color: rgba(255, 196, 96, 0.16);
    background: rgba(14, 9, 5, 0.38);
}

body.solar .project-card:hover,
body.solar .feature-link:hover,
body.solar .feature-open:hover,
body.solar .gallery-tile:hover,
body.solar .exp-card:hover,
body.solar .exp-item:hover,
body.solar .contact-icon-btn:hover {
    border-color: rgba(255, 196, 96, 0.32);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28), 0 0 26px rgba(245, 158, 11, 0.10);
}

body.solar .space-hint {
    background: rgba(12, 8, 4, 0.55);
    border-color: rgba(255, 196, 96, 0.20);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.34);
}


body.solar #minimap {
    background: rgba(12, 8, 4, 0.55);
    border-color: rgba(255, 196, 96, 0.20);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.34);
}

body.solar #minimap-label {
    background: rgba(12, 8, 4, 0.45);
    border-color: rgba(255, 196, 96, 0.18);
    color: rgba(255, 247, 236, 0.80);
}

body.solar #zoom-ui {
    border-color: rgba(255, 196, 96, 0.10);
    background: rgba(12, 8, 4, 0.10);
}

body.solar #zoom-ui.zoom-ui-active,
body.solar #zoom-ui:focus-within {
    border-color: rgba(255, 196, 96, 0.16);
    background: rgba(12, 8, 4, 0.40);
}

body.solar #zoom-slider::-webkit-slider-runnable-track {
    background: rgba(255, 196, 96, 0.14);
    border-color: rgba(255, 196, 96, 0.20);
}

body.solar #zoom-slider::-moz-range-track {
    background: rgba(255, 196, 96, 0.14);
    border-color: rgba(255, 196, 96, 0.20);
}

body.solar #zoom-slider::-webkit-slider-thumb,
body.solar #zoom-slider::-moz-range-thumb {
    background: rgba(255, 247, 236, 0.92);
    border-color: rgba(245, 158, 11, 0.55);
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.12);
}

body.solar #minimap-toggle,
body.solar #zoom-ui .zoom-btn,
body.solar #space-hint-toggle {
    background: rgba(12, 8, 4, 0.36);
    border-color: rgba(255, 196, 96, 0.20);
    color: rgba(255, 247, 236, 0.92);
}

body.solar #project-modal-card {
    background: rgba(12, 8, 4, 0.72) !important;
    border-color: rgba(255, 196, 96, 0.22) !important;
}

body.solar #project-modal-card a,
body.solar #pm-close {
    background: rgba(12, 8, 4, 0.36) !important;
    border-color: rgba(255, 196, 96, 0.22) !important;
    color: rgba(255, 247, 236, 0.92) !important;
}


body.light .space-card {
    background: rgba(255, 255, 255, 0.70);
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
    color: rgba(15, 23, 42, 0.92);
}

body.light .space-card:hover {
    border-color: rgba(15, 23, 42, 0.18);
    box-shadow: 0 18px 55px rgba(15, 23, 42, 0.14), 0 0 26px rgba(29, 78, 216, 0.08);
    background: rgba(255, 255, 255, 0.82);
}

body.light .about-sub {
    color: rgba(15, 23, 42, 0.70);
}

body.light .about-divider {
    background: rgba(15, 23, 42, 0.12);
}

body.light .about-avatar {
    color: rgba(15, 23, 42, 0.92);
    background: radial-gradient(circle at 30% 30%, rgba(15, 23, 42, 0.08), rgba(29, 78, 216, 0.10), rgba(255, 255, 255, 0));
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 0 26px rgba(29, 78, 216, 0.12);
}

body.light .about-fact {
    border-color: rgba(15, 23, 42, 0.12);
    background: rgba(15, 23, 42, 0.04);
}

body.light .about-fact-label {
    color: rgba(15, 23, 42, 0.62);
}

body.light .about-fact-value {
    color: rgba(15, 23, 42, 0.92);
}

body.light #info .text-white\/90 {
    color: rgba(15, 23, 42, 0.92) !important;
}

body.light #info .text-white\/80 {
    color: rgba(15, 23, 42, 0.82) !important;
}

body.light #info .text-white\/75 {
    color: rgba(15, 23, 42, 0.78) !important;
}

body.light #info .text-white\/70 {
    color: rgba(15, 23, 42, 0.72) !important;
}

body.light #info .text-white\/60 {
    color: rgba(15, 23, 42, 0.62) !important;
}


body.solar .space-card {
    border-color: rgba(255, 196, 96, 0.16);
    background: rgba(14, 9, 5, 0.38);
}

body.solar .about-sub {
    color: rgba(255, 247, 236, 0.72);
}

body.solar .about-divider {
    background: rgba(255, 196, 96, 0.16);
}

body.solar .about-avatar {
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.18), rgba(245, 158, 11, 0.18), rgba(0, 0, 0, 0));
    border-color: rgba(255, 196, 96, 0.20);
    box-shadow: 0 0 26px rgba(245, 158, 11, 0.14);
}

body.solar .about-fact {
    border-color: rgba(255, 196, 96, 0.16);
    background: rgba(255, 255, 255, 0.03);
}