/* ==========================================================
   SHUBHAM.SYS — DESKTOP WORKSTATION
   Zorin-inspired | Obsidian | Metallic Gold | Electric Cyan
========================================================== */

:root {
    --topbar-height: 42px;
    --dock-height: 76px;
    --sidebar-width: 220px;
}

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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 70% 15%, rgba(0,229,255,.07), transparent 38%),
        radial-gradient(ellipse at 15% 85%, rgba(216,180,106,.08), transparent 38%),
        var(--bg);
    color: var(--text);
    font-family: Inter, sans-serif;
    font-size: 14px;
}

/* Background grid */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
    background-size: 48px 48px;
}

/* TOP SYSTEM BAR */
.system-topbar {
    height: var(--topbar-height);
    position: absolute;
    inset: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background: rgba(5,7,12,.88);
    border-bottom: 1px solid var(--border);
    z-index: 50;
    font-size: 11px;
    letter-spacing: .5px;
}

.topbar-brand {
    color: var(--gold);
    font-family: Orbitron, sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
}

.topbar-center, .topbar-right {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--muted);
}

.system-indicator {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.system-indicator::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 9px var(--green);
}

/* WORKSPACE */
.workspace {
    position: absolute;
    top: var(--topbar-height);
    bottom: var(--dock-height);
    left: 0;
    right: 0;
    padding: 22px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    min-height: 0;
}

/* APPLICATION WINDOW */
.window-shell {
    width: min(1450px, 100%);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: rgba(13,16,23,.94);
    border: 1px solid rgba(216,180,106,.22);
    border-radius: 13px;
    box-shadow: 0 22px 90px rgba(0,0,0,.55), 0 0 35px rgba(0,229,255,.035);
    transition: opacity .25s, transform .25s;
}

.window-shell.is-maximized {
    width: 100%;
    height: 100%;
}

.window-shell.is-minimized,
.window-shell.is-closed {
    opacity: 0;
    pointer-events: none;
    transform: translateY(25px) scale(.97);
}

/* WINDOW TITLEBAR */
.window-titlebar {
    flex: 0 0 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    background: linear-gradient(90deg, #171b25, #11141c);
    border-bottom: 1px solid var(--border);
}

.window-title {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 12px;
    font-weight: 600;
}

.window-title i {
    color: var(--gold);
}

.window-subtitle {
    color: var(--muted);
    font-size: 11px;
    font-weight: 400;
}

.window-controls {
    display: flex;
    gap: 9px;
    align-items: center;
}

.window-control {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.window-control.minimize { background: #e5bd52; }
.window-control.maximize { background: #42c982; }
.window-control.close { background: #e45d64; }

.window-control:hover {
    filter: brightness(1.25);
    box-shadow: none;
}

/* WINDOW BODY */
.window-body {
    flex: 1;
    min-height: 0;
    display: flex;
}

/* SIDEBAR */
.sidebar {
    flex: 0 0 var(--sidebar-width);
    display: flex;
    flex-direction: column;
    padding: 22px 13px;
    background: rgba(9,12,18,.95);
    border-right: 1px solid var(--border);
    overflow-y: auto;
}

.sidebar-heading {
    padding: 0 12px;
    margin: 8px 0 12px;
    color: #697386;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.sidebar-profile {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 10px 20px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.sidebar-avatar {
    width: 39px;
    height: 39px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid var(--gold);
}

.sidebar-profile strong {
    display: block;
    font-size: 11px;
}

.sidebar-profile small {
    display: block;
    margin-top: 4px;
    color: var(--green);
    font-size: 9px;
}

.app-navigation {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-item {
    width: 100%;
    min-height: 41px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: #929bad;
    font-family: Inter, sans-serif;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
    transition: .2s ease;
}

.nav-item i {
    width: 17px;
    color: #7c8798;
    text-align: center;
}

.nav-item:hover {
    background: var(--panel-hover);
    color: var(--text);
}

.nav-item.active {
    background: rgba(216,180,106,.10);
    border-color: rgba(216,180,106,.18);
    color: var(--gold);
}

.nav-item.active i {
    color: var(--gold);
}

.sidebar-bottom {
    margin-top: auto;
    padding: 18px 10px 0;
    border-top: 1px solid var(--border);
}

.sidebar-bottom p {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.8;
}

/* CONTENT VIEWPORT */
.view-container {
    position: relative;
    flex: 1;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 90% 0%, rgba(0,229,255,.035), transparent 35%);
}

.app-view {
    position: absolute;
    top: 48px;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    padding: clamp(20px, 4vw, 48px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(216,180,106,.35) transparent;
    animation: view-enter .25s ease;
}

.app-view.active {
    display: block;
}

@keyframes view-enter {
    from { opacity: 0; transform: translateY(7px); }
    to { opacity: 1; transform: translateY(0); }
}

.view-kicker {
    margin-bottom: 12px;
    color: var(--cyan);
    font-family: Orbitron, sans-serif;
    font-size: 10px;
    letter-spacing: 2px;
}

.view-heading {
    margin-bottom: 24px;
    color: var(--text);
    font-family: Orbitron, sans-serif;
}

.view-heading h1 {
    font-size: clamp(22px, 2.5vw, 32px);
    letter-spacing: -0.5px;
    margin: 6px 0 10px 0;
    line-height: 1.25;
}

.view-heading p {
    font-size: 14px;
    color: var(--muted);
    font-family: Inter, sans-serif;
    line-height: 1.6;
    margin: 0;
}

.view-description {
    max-width: 720px;
    margin-bottom: 30px;
    color: var(--muted);
    line-height: 1.8;
}

.accent {
    color: var(--gold);
}

/* GENERAL CARDS */
.panel-card, .card, .glass, .service-card {
    background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 22px;
    transition: border-color .2s, transform .2s, background .2s;
}

.panel-card:hover, .card:hover, .glass:hover, .service-card:hover {
    border-color: rgba(216,180,106,.38);
    background: rgba(255,255,255,.065);
}

.profile {
    display: flex;
    align-items: center;
    gap: 28px;
}

.profile img {
    width: 145px;
    height: 145px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
}

.profile h3 {
    margin-bottom: 12px;
    color: var(--gold);
    font-family: Orbitron, sans-serif;
    font-size: 20px;
}

.profile p, .intro p, .panel-card p, .service-card p {
    color: var(--muted);
    line-height: 1.8;
}

.socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.socials a {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--muted);
    text-decoration: none;
    transition: .2s;
}

.socials a:hover {
    color: var(--gold);
    border-color: var(--gold);
}

/* HERO */
.hero {
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    padding: 20px 2%;
}

.hero-content {
    max-width: 680px;
}

.hero .system {
    color: var(--green);
    font-family: Orbitron, sans-serif;
    font-size: 10px;
    letter-spacing: 2px;
}

.hero h1 {
    margin: 20px 0;
    font-family: Orbitron, sans-serif;
    font-size: clamp(28px, 4vw, 57px);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.hero h2 {
    color: var(--gold);
    font-size: clamp(16px, 2vw, 22px);
    font-weight: 500;
    line-height: 1.6;
}

.hero p {
    max-width: 520px;
    margin-top: 18px;
    color: var(--muted);
    line-height: 1.8;
}

.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 20px;
    border: 1px solid rgba(216,180,106,.55);
    border-radius: 7px;
    color: var(--gold);
    background: rgba(216,180,106,.07);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .6px;
    text-decoration: none;
    cursor: pointer;
    transition: .2s;
}

.btn:hover {
    background: var(--gold);
    color: #090a0f;
}

/* REACTOR */
.reactor {
    position: relative;
    width: clamp(180px, 25vw, 290px);
    aspect-ratio: 1;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border: 1px solid rgba(216,180,106,.2);
    border-radius: 50%;
    box-shadow: 0 0 60px rgba(216,180,106,.10), inset 0 0 40px rgba(216,180,106,.05);
}

.orbit-wrap {
    position: absolute;
    inset: 8%;
    display: grid;
    place-items: center;
    border: 1px solid rgba(0,229,255,.35);
    border-radius: 50%;
    animation: orbit 8s linear infinite;
}

.w2 { transform: rotateX(65deg) rotateY(55deg); animation-duration: 11s; }
.w3 { transform: rotateX(65deg) rotateY(125deg); animation-duration: 14s; }

.orbit-track {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(216,180,106,.3);
    border-radius: 50%;
}

.particle {
    position: absolute;
    top: -4px;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 15px var(--cyan);
}

.w2 .particle { background: var(--green); box-shadow: 0 0 15px var(--green); }
.w3 .particle { background: var(--gold); box-shadow: 0 0 15px var(--gold); }

.core {
    width: 32%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, white, var(--gold) 42%, transparent 75%);
    box-shadow: 0 0 35px rgba(216,180,106,.65);
    animation: core-pulse 2.5s ease-in-out infinite;
}

@keyframes orbit { to { rotate: 360deg; } }
@keyframes core-pulse { 50% { transform: scale(1.18); opacity: .8; } }

/* GRIDS */
.grid, .projects, .services-grid, .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 15px;
}

.card {
    text-align: left;
    color: var(--text);
    line-height: 1.7;
}

.projects {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.project img {
    width: 100%;
    max-height: 170px;
    margin-top: 14px;
    border-radius: 8px;
    object-fit: cover;
}

.project h3 {
    margin-bottom: 10px;
    color: var(--gold);
    font-family: Orbitron, sans-serif;
    font-size: 14px;
}

.project p {
    color: var(--muted);
    line-height: 1.7;
}

.project a {
    display: inline-block;
    margin-top: 15px;
    color: var(--cyan);
    font-size: 11px;
    text-decoration: none;
}

.gallery img {
    width: 100%;
    height: 180px;
    border-radius: 9px;
    object-fit: cover;
}

.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.service-card h3 {
    margin: 12px 0;
    color: var(--gold);
    font-size: 14px;
}

/* CONTACT */
form {
    display: flex;
    flex-direction: column;
    gap: 13px;
    max-width: 600px;
}

input, textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid var(--border);
    border-radius: 7px;
    outline: none;
    background: #0b0e14;
    color: var(--text);
    font: inherit;
}

input:focus, textarea:focus {
    border-color: var(--cyan);
}

textarea {
    min-height: 130px;
    resize: vertical;
}

form button {
    min-height: 43px;
    border: 1px solid var(--gold);
    border-radius: 7px;
    background: rgba(216,180,106,.1);
    color: var(--gold);
    cursor: pointer;
}

/* PROJECT STATUS */
.project-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
    color: var(--green);
    font-size: 10px;
    letter-spacing: 1px;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

/* DOCK */
.system-dock {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    max-width: calc(100% - 24px);
    padding: 9px 13px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    background: rgba(18,22,31,.88);
    box-shadow: 0 10px 35px rgba(0,0,0,.45);
    backdrop-filter: blur(18px);
    z-index: 60;
}

.dock-item {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: #aeb7c6;
    font-size: 17px;
    cursor: pointer;
    transition: .2s;
}

.dock-item:hover, .dock-item.active {
    color: var(--gold);
    background: rgba(216,180,106,.10);
    border-color: rgba(216,180,106,.2);
    transform: translateY(-3px);
}

/* WINDOW STATUS */
.system-footer {
    position: absolute;
    bottom: calc(var(--dock-height) + 7px);
    left: 24px;
    color: #697386;
    font-size: 9px;
    letter-spacing: .5px;
    pointer-events: none;
}

/* IFRAME VIEWS */
.iframe-view {
    padding: 0;
    overflow: hidden;
}

.iframe-view iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background: var(--bg);
}

/* SCROLLBARS */
.app-view::-webkit-scrollbar, .sidebar::-webkit-scrollbar {
    width: 6px;
}

.app-view::-webkit-scrollbar-thumb, .sidebar::-webkit-scrollbar-thumb {
    background: rgba(216,180,106,.3);
    border-radius: 10px;
}

/* TABLET */
@media (max-width: 1024px) {
    :root { --sidebar-width: 185px; }
    .workspace { padding: 14px; }
    .hero { gap: 20px; }
    .system-footer { display: none; }
}

/* MOBILE */
@media (max-width: 700px) {
    :root { --dock-height: 65px; }

    .system-topbar {
        padding: 0 12px;
    }

    .topbar-center { display: none; }

    .workspace {
        top: var(--topbar-height);
        bottom: var(--dock-height);
        padding: 0;
    }

    .window-shell {
        width: 100%;
        height: 100%;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }

    .window-titlebar {
        flex-basis: 43px;
        padding: 0 12px;
    }

    .window-subtitle { display: none; }

    .window-body {
        flex-direction: column;
    }

    .sidebar {
        order: 2;
        flex: 0 0 58px;
        width: 100%;
        padding: 5px 8px;
        overflow-x: auto;
        overflow-y: hidden;
        border-top: 1px solid var(--border);
        border-right: 0;
    }

    .sidebar-profile, .sidebar-heading, .sidebar-bottom {
        display: none;
    }

    .app-navigation {
        flex-direction: row;
        width: max-content;
        gap: 5px;
    }

    .nav-item {
        width: auto;
        min-width: 67px;
        min-height: 45px;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        padding: 4px 8px;
        font-size: 9px;
    }

    .nav-item i { font-size: 14px; }

    .view-container {
        order: 1;
        flex: 1;
    }

    .app-view {
        padding: 22px 17px;
    }

    .hero {
        flex-direction: column-reverse;
        justify-content: center;
        text-align: center;
        gap: 15px;
        padding: 10px 0;
    }

    .hero-content { width: 100%; }
    .hero p { margin-left: auto; margin-right: auto; }
    .buttons { justify-content: center; }
    .reactor { width: min(190px, 48vw); }

    .profile {
        flex-direction: column;
        text-align: center;
    }

    .profile img {
        width: 115px;
        height: 115px;
    }

    .socials { justify-content: center; }

    .grid, .projects, .services-grid {
        grid-template-columns: 1fr;
    }

    .system-dock {
        bottom: 5px;
        gap: 4px;
        padding: 6px 8px;
    }

    .dock-item {
        width: 37px;
        height: 39px;
        font-size: 15px;
    }

    .system-footer { display: none; }
}

/* SMALL PHONES */
@media (max-width: 380px) {
    .topbar-right { gap: 8px; font-size: 9px; }
    .dock-item { width: 32px; }
    .nav-item { min-width: 58px; }
    .app-view { padding: 17px 12px; }
}

/* ACCESSIBILITY */
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

/* ==========================================================
   SHUBHAM.SYS — IMAGE CONTAINMENT & PROFILE LAYOUT FIX
   Fixes oversized images, sidebar overflow and image overlap
========================================================== */

/* Global image safety */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* SIDEBAR AVATAR */
.sidebar-profile {
    min-width: 0;
    flex-wrap: wrap;
    align-items: center;
}

.avatar-frame {
    position: relative;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    min-width: 58px;
    overflow: hidden;
    border-radius: 50%;
    border: 2px solid var(--gold);
}

.avatar-frame img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center 30%;
    border-radius: 50%;
}

.avatar-status {
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 10px;
    height: 10px;
    border: 2px solid #090c12;
    border-radius: 50%;
    background: #38d99b;
}

/* SIDEBAR TEXT CONTAINMENT */
.sidebar-profile h2,
.sidebar-profile p {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* PROFILE CARD */
.profile-card {
    display: grid;
    grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
    align-items: center;
    gap: 25px;
    min-width: 0;
    margin: 20px 0;
    padding: 22px;
    overflow: hidden;
    background: linear-gradient(
        145deg,
        rgba(255,255,255,.055),
        rgba(255,255,255,.018)
    );
    border: 1px solid var(--border);
    border-radius: 14px;
}

.profile-card > img {
    width: 100%;
    height: 230px;
    max-width: 210px;
    object-fit: cover;
    object-position: center 30%;
    border-radius: 10px;
    border: 1px solid rgba(216,180,106,.4);
}

.profile-copy {
    min-width: 0;
}

.profile-copy h3 {
    margin-bottom: 12px;
    color: var(--gold);
    font-family: Orbitron, sans-serif;
    font-size: 17px;
}

.profile-copy p {
    margin: 10px 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.profile-roles {
    color: var(--cyan) !important;
}

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 16px;
}

/* INTRODUCTION PANEL */
.intro-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(150px, 230px);
    align-items: center;
    gap: 25px;
    min-width: 0;
    overflow: hidden;
}

.intro-panel > div {
    min-width: 0;
}

.intro-panel > img {
    width: 100%;
    height: 230px;
    max-width: 230px;
    object-fit: cover;
    object-position: center 30%;
    border-radius: 12px;
}

/* PROJECT IMAGES */
[data-view-panel="projects"] img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 170px;
    object-fit: cover;
    object-position: center;
    border-radius: 9px;
}

/* CREATIVE GALLERY */
[data-view-panel="creative"] img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 190px;
    object-fit: cover;
    object-position: center;
    border-radius: 9px;
}

/* VIEWPORT WIDTH PROTECTION */
.app-view,
.view-container,
.window-body,
.profile-card,
.intro-panel {
    min-width: 0;
}

.app-view img {
    max-width: 100%;
}

/* TABLET AND MOBILE */
@media (max-width: 900px) {
    .profile-card {
        grid-template-columns: 150px minmax(0, 1fr);
        gap: 18px;
    }

    .profile-card > img {
        height: 190px;
    }

    .intro-panel {
        grid-template-columns: minmax(0, 1fr) 170px;
    }

    .intro-panel > img {
        height: 190px;
    }
}

@media (max-width: 600px) {
    .profile-card {
        grid-template-columns: 1fr;
    }

    .profile-card > img {
        width: 100%;
        max-width: 100%;
        height: 240px;
    }

    .intro-panel {
        grid-template-columns: 1fr;
    }

    .intro-panel > img {
        width: 100%;
        max-width: 100%;
        height: 220px;
    }

    .avatar-frame {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
        min-width: 48px;
    }
}


/* ==========================================================
   CURATED TEXT-FIRST PROJECT ARCHIVE
========================================================== */

.project-archive {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 24px 0;
}

.archive-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 22px;
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 14px;
    background: linear-gradient(
        145deg,
        rgba(255,255,255,0.045),
        rgba(255,255,255,0.012)
    );
    transition: border-color .25s ease, transform .25s ease,
                background .25s ease;
}

.archive-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0,229,255,0.4);
    background: rgba(0,229,255,0.035);
}

.archive-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 17px;
}

.archive-number {
    color: rgba(255,255,255,0.35);
    font-size: 12px;
    font-family: monospace;
}

.archive-card h3 {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.35;
    color: #f1f3f5;
}

.archive-card > p {
    margin: 0 0 18px;
    color: rgba(230,235,242,0.7);
    font-size: 13px;
    line-height: 1.75;
    flex: 1;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 20px;
}

.tech-stack span {
    padding: 5px 9px;
    border: 1px solid rgba(0,229,255,0.16);
    border-radius: 5px;
    background: rgba(0,229,255,0.055);
    color: #9bdce5;
    font-size: 10px;
    letter-spacing: .25px;
}

.archive-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 13px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.archive-links a {
    color: #00d9ed;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .7px;
    text-decoration: none;
}

.archive-links a:hover {
    color: #ffffff;
}

.archive-links a i {
    margin-left: 4px;
    font-size: 9px;
}

@media (max-width: 900px) {
    .project-archive {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .archive-card {
        padding: 17px;
    }
}

@media (max-width: 600px) {
    .project-archive {
        grid-template-columns: 1fr;
    }

    .archive-card {
        padding: 19px;
    }

    .archive-card h3 {
        font-size: 18px;
    }

    .archive-links {
        gap: 12px;
    }
}


/* ==========================================================
   MODERN VISUAL SYSTEM — GRAPHITE / ELECTRIC BLUE / VIOLET
========================================================== */



body {
    background:
        radial-gradient(ellipse at 12% 12%, rgba(58, 111, 255, .13), transparent 35%),
        radial-gradient(ellipse at 88% 85%, rgba(124, 79, 255, .10), transparent 34%),
        #080b12;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

body::before {
    background-image:
        radial-gradient(rgba(150, 180, 230, .13) .7px, transparent .7px);
    background-size: 26px 26px;
    opacity: .22;
}

.topbar-brand {
    color: #9dbaff;
    font-family: Inter, sans-serif;
    letter-spacing: 1.5px;
}

.system-topbar {
    background: rgba(8, 11, 18, .82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.window-shell {
    background: rgba(13, 19, 30, .94);
    border: 1px solid rgba(137, 166, 220, .16);
    border-radius: 19px;
    box-shadow:
        0 30px 100px rgba(0,0,0,.48),
        0 0 70px rgba(57, 113, 255, .055);
}

.window-titlebar {
    background: rgba(255,255,255,.018);
    border-bottom: 1px solid var(--border);
}

.nav-item,
.dock-item,
.shortcut-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: rgba(22, 24, 29, 0.65);
    border: 1px solid rgba(216, 180, 106, 0.2);
    color: var(--text);
    text-align: left;
    width: 100%;
    cursor: pointer;
}

.shortcut-card i {
    font-size: 18px;
    color: var(--gold);
    min-width: 24px;
    text-align: center;
}

.shortcut-card strong {
    display: block;
    font-family: Orbitron, sans-serif;
    font-size: 13px;
    letter-spacing: 0.5px;
    color: #f1f3f5;
    margin-bottom: 2px;
}

.shortcut-card span {
    display: block;
    font-size: 12px;
    color: var(--muted);
    font-family: Inter, sans-serif;
}

.shortcut-card:hover {
    border-color: rgba(216, 180, 106, 0.5);
    background: rgba(216, 180, 106, 0.05);
}

.nav-item,
.dock-item,
.service-card,
.skill-card {
    border-radius: 13px;
    transition: background .22s ease, border-color .22s ease,
                color .22s ease, transform .22s ease,
                box-shadow .22s ease;
}

.nav-item:hover,
.shortcut-card:hover,
.service-card:hover {
    transform: translateY(-2px);
}

.nav-item.active {
    background: linear-gradient(110deg, rgba(216, 180, 106, 0.18), rgba(216, 180, 106, 0.05));
    border: 1px solid rgba(216, 180, 106, 0.3);
    color: #f1f3f5;
}

.nav-item.active i {
    color: var(--gold);
}

.app-view h1 {
    letter-spacing: -1.1px;
    font-weight: 750;
}

.gold-text {
    color: var(--gold);
}

.eyebrow {
    color: #79b8ed;
    letter-spacing: 1.7px;
}

.section-index {
    display: inline-block;
    border: 1px solid rgba(216, 180, 106, 0.3);
    border-radius: 999px;
    padding: 7px 16px;
    margin: 18px 0 20px 0;
    background: rgba(216, 180, 106, 0.08);
    color: var(--gold);
    font-size: 11px;
    letter-spacing: 1.5px;
}

/* Modern buttons */

.btn,
button.btn,
.app-view a.btn,
.app-view button:not(.nav-item):not(.dock-item):not(.shortcut-card) {
    border-radius: 11px;
}

.btn {
    min-height: 43px;
    padding: 11px 18px;
    font-weight: 650;
    letter-spacing: .1px;
    transition: transform .2s ease, box-shadow .2s ease,
                background .2s ease, border-color .2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 25px rgba(54, 117, 255, .18);
}

.primary-btn {
    background: linear-gradient(115deg, #3979ed, #5869e8);
    border: 1px solid rgba(150, 180, 255, .28);
    color: #fff;
}

.primary-btn:hover {
    background: linear-gradient(115deg, #4a89ff, #6979f5);
}

.secondary-btn {
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(160,180,220,.20);
    color: #e1eaff;
}

.secondary-btn:hover {
    background: rgba(83, 125, 220, .13);
    border-color: rgba(130, 170, 255, .4);
}

/* Convert content hyperlinks into consistent button actions.
   Sidebar social icons and navigation remain unchanged. */

#app-window .app-view a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    min-height: 37px;
    padding: 9px 13px;
    border: 1px solid rgba(130, 166, 235, .22);
    border-radius: 9px;
    background: rgba(82, 126, 220, .075);
    color: #b8d0ff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .45px;
    line-height: 1.4;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease,
                border-color .2s ease, color .2s ease,
                box-shadow .2s ease;
}

#app-window .app-view a:hover {
    transform: translateY(-2px);
    background: rgba(73, 126, 235, .17);
    border-color: rgba(112, 164, 255, .48);
    color: #fff;
    box-shadow: 0 7px 20px rgba(40, 95, 210, .12);
}

#app-window .app-view a.btn.primary-btn {
    background: linear-gradient(115deg, #3979ed, #5869e8);
    color: white;
}

#app-window .app-view a.btn.secondary-btn {
    background: rgba(255,255,255,.045);
    color: #e1eaff;
}

/* Keep action groups tidy */

.archive-links,
.github-panel,
.gallery-action,
.blog-list,
.contact-links {
    gap: 10px;
}

/* ==========================================================
   ANIMATED CAPABILITY MAP
========================================================== */

.skill-map-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 20px 0 12px;
    color: #8496b2;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 1.15px;
}

.skill-map-intro > div {
    display: flex;
    align-items: center;
    gap: 9px;
}

.map-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #53dfb0;
    box-shadow: 0 0 13px rgba(83,223,176,.7);
    animation: mapPulse 2s infinite;
}

.skill-map {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px minmax(0, 1fr);
    grid-template-rows: repeat(3, minmax(145px, auto));
    grid-template-areas:
        "embedded hub ai"
        "web hub backend"
        "systems hub creative";
    gap: 14px;
    padding: 16px 4px;
}

.skill-connections {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: visible;
    pointer-events: none;
}

.connection-lines path {
    fill: none;
    stroke: url(#skillLine);
    stroke-width: 1.7;
    stroke-dasharray: 7 9;
    animation: connectionFlow 18s linear infinite;
}

.skill-node {
    position: relative;
    min-width: 0;
    padding: 17px;
    border: 1px solid rgba(129, 159, 211, .16);
    border-radius: 15px;
    background: linear-gradient(145deg, rgba(25, 36, 55, .93), rgba(15, 22, 35, .95));
    box-shadow: 0 12px 28px rgba(0,0,0,.12);
    backdrop-filter: blur(10px);
    transition: transform .25s ease, border-color .25s ease,
                box-shadow .25s ease;
}

.skill-node:hover {
    transform: translateY(-4px);
    border-color: rgba(105, 159, 255, .5);
    box-shadow: 0 14px 35px rgba(38, 93, 195, .15);
}

.node-embedded { grid-area: embedded; }
.node-ai { grid-area: ai; }
.node-web { grid-area: web; }
.node-backend { grid-area: backend; }
.node-systems { grid-area: systems; }
.node-creative { grid-area: creative; }

.node-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin-bottom: 10px;
    border: 1px solid rgba(112, 160, 255, .2);
    border-radius: 11px;
    background: rgba(75, 125, 235, .12);
    color: #91baff;
    font-size: 15px;
}

.node-index {
    position: absolute;
    top: 20px;
    right: 15px;
    color: #7488a7;
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .7px;
}

.skill-node h3 {
    margin-bottom: 7px;
    color: #e9f0ff;
    font-size: 15px;
    font-weight: 700;
}

.skill-node p {
    color: #a4b2c8;
    font-size: 11px;
    line-height: 1.65;
}

.node-application {
    display: block;
    margin-top: 11px;
    padding-top: 9px;
    border-top: 1px solid rgba(140,165,210,.11);
    color: #78cbd3;
    font-size: 10px;
    line-height: 1.5;
}

.skill-hub {
    grid-area: hub;
    align-self: center;
    justify-self: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 174px;
    height: 174px;
    border: 1px solid rgba(107, 157, 255, .26);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(66, 117, 225, .19), rgba(17, 26, 44, .94) 67%);
    box-shadow: 0 0 55px rgba(65, 119, 245, .12), inset 0 0 30px rgba(95, 142, 255, .08);
    text-align: center;
}

.hub-core {
    display: grid;
    place-items: center;
    width: 57px;
    height: 57px;
    margin-bottom: 12px;
    border-radius: 18px;
    background: linear-gradient(145deg, #4c8df7, #6c67e9);
    color: white;
    font-size: 23px;
    box-shadow: 0 0 30px rgba(86, 132, 255, .38);
    animation: hubFloat 4s ease-in-out infinite;
}

.skill-hub strong {
    color: #eaf1ff;
    font-size: 10px;
    letter-spacing: 1px;
}

.skill-hub > span {
    margin-top: 5px;
    color: #8ca6d4;
    font-size: 8px;
    letter-spacing: .8px;
}

.hub-orbit {
    position: absolute;
    inset: -10px;
    border: 1px solid rgba(105, 155, 255, .18);
    border-radius: 50%;
    pointer-events: none;
}

.orbit-one {
    animation: orbitSpin 18s linear infinite;
    border-top-color: #6b9fff;
}

.orbit-two {
    inset: -19px;
    border-style: dashed;
    opacity: .5;
    animation: orbitSpin 30s linear infinite reverse;
}

.skill-philosophy {
    display: flex;
    align-items: center;
    gap: 17px;
    margin-top: 20px;
    padding: 22px;
    border: 1px solid rgba(116, 157, 235, .15);
    border-radius: 15px;
    background: linear-gradient(110deg, rgba(54, 94, 174, .12), rgba(255,255,255,.018));
}

.philosophy-icon {
    flex: 0 0 46px;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(93, 139, 240, .15);
    color: #91baff;
    font-size: 19px;
}

.skill-philosophy h2 {
    margin: 5px 0 7px;
    color: #eaf1ff;
    font-size: 18px;
}

.skill-philosophy p {
    max-width: 760px;
    color: #a5b2c7;
    font-size: 12px;
    line-height: 1.7;
}

@keyframes connectionFlow {
    to { stroke-dashoffset: -160; }
}

@keyframes mapPulse {
    50% { opacity: .45; box-shadow: 0 0 4px rgba(83,223,176,.25); }
}

@keyframes hubFloat {
    50% { transform: translateY(-4px); }
}

@keyframes orbitSpin {
    to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
    .skill-map {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-rows: auto;
        grid-template-areas:
            "hub hub"
            "embedded ai"
            "web backend"
            "systems creative";
        gap: 12px;
    }

    .skill-hub {
        width: 145px;
        height: 145px;
        margin: 15px auto 25px;
    }

    .skill-connections {
        display: none;
    }
}

@media (max-width: 600px) {
    .skill-map-intro {
        align-items: flex-start;
        flex-direction: column;
    }

    .skill-map {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "hub"
            "embedded"
            "ai"
            "web"
            "backend"
            "systems"
            "creative";
    }

    .skill-node {
        padding: 18px;
    }

    .skill-philosophy {
        align-items: flex-start;
        padding: 17px;
    }

    .skill-philosophy h2 {
        font-size: 16px;
    }

    #app-window .app-view a {
        min-height: 39px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .connection-lines path,
    .map-live-dot,
    .hub-core,
    .orbit-one,
    .orbit-two {
        animation: none !important;
    }

    .skill-node,
    #app-window .app-view a,
    .btn {
        transition: none !important;
    }
}


/* ==========================================================
   SIGNATURE THEME — OBSIDIAN × CHAMPAGNE GOLD
   Gold = identity | Blue = technical accent
========================================================== */



/* Ambient background */
body {
    background:
        radial-gradient(ellipse at 12% 8%, rgba(214,173,96,.105), transparent 32%),
        radial-gradient(ellipse at 88% 85%, rgba(69,214,232,.075), transparent 34%),
        #080b12;
}

/* Brand identity */
.topbar-brand {
    color: var(--gold-bright) !important;
    text-shadow: 0 0 22px rgba(214,173,96,.22);
}

/* Active navigation */
.nav-item.active,
.nav-item[aria-current="page"] {
    color: var(--gold-bright) !important;
    background: linear-gradient(
        100deg,
        rgba(214,173,96,.16),
        rgba(214,173,96,.035)
    ) !important;
    border-color: var(--gold-border) !important;
    box-shadow: inset 3px 0 0 var(--gold);
}

/* Headings */
.gold-text {
    color: var(--gold-bright) !important;
    text-shadow: 0 0 24px rgba(214,173,96,.16);
}

.eyebrow {
    color: var(--gold) !important;
    letter-spacing: .16em;
}

/* Primary buttons — gold is the main action */
#app-window .app-view a.btn.primary-btn,
#app-window .app-view button.primary-btn,
#app-window .app-view .btn.primary-btn {
    color: #17130c !important;
    background: linear-gradient(135deg, #f2d18a, #c99b4d) !important;
    border: 1px solid rgba(255,225,164,.65) !important;
    box-shadow: 0 5px 22px rgba(214,173,96,.19);
    font-weight: 750;
}

#app-window .app-view a.btn.primary-btn:hover,
#app-window .app-view button.primary-btn:hover,
#app-window .app-view .btn.primary-btn:hover {
    background: linear-gradient(135deg, #ffe5ad, #d6ad60) !important;
    box-shadow: 0 8px 28px rgba(214,173,96,.30);
    transform: translateY(-2px);
}

/* Other content links — restrained gold outline */
#app-window .app-view a:not(.btn) {
    border-color: rgba(214,173,96,.24);
}

#app-window .app-view a:not(.btn):hover {
    color: var(--gold-bright) !important;
    border-color: var(--gold) !important;
    background: rgba(214,173,96,.09);
    box-shadow: 0 5px 18px rgba(214,173,96,.09);
}

/* Skill map — gold central hub */
.skill-hub .hub-core {
    border-color: rgba(242,209,138,.72) !important;
    background:
        radial-gradient(circle, rgba(214,173,96,.24), rgba(16,22,34,.96) 72%) !important;
    box-shadow:
        0 0 0 8px rgba(214,173,96,.045),
        0 0 35px rgba(214,173,96,.20),
        inset 0 0 25px rgba(214,173,96,.09);
}

.skill-hub .hub-core strong,
.skill-hub .hub-core span {
    color: var(--gold-bright);
}

.skill-node:hover {
    border-color: var(--gold-border) !important;
    box-shadow: 0 10px 32px rgba(214,173,96,.12);
}

.skill-node h3 {
    color: var(--gold-bright);
}

/* Network — blue remains technical, gold marks the core */
.connection-lines path {
    stroke: rgba(214,173,96,.43);
}

.skill-map::after {
    background: radial-gradient(circle, rgba(214,173,96,.12), transparent 68%);
}

/* Small achievement / status accents */
.archive-number,
.archive-topline,
.info-panel strong {
    color: var(--gold-bright);
}

.archive-card:hover {
    border-color: var(--gold-border);
    box-shadow: 0 10px 28px rgba(214,173,96,.09);
}

/* Gold focus state */
#app-window .app-view a:focus-visible,
#app-window .app-view button:focus-visible,
.nav-item:focus-visible {
    outline: 2px solid var(--gold-bright);
    outline-offset: 4px;
}

/* Reduced visual noise */
@media (prefers-reduced-motion: reduce) {
    .skill-map *,
    .skill-map::before,
    .skill-map::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* ==========================================================
   LUXURY MOTION — GOLD × VIOLET
   Lightweight transforms and opacity; mobile-aware
========================================================== */



/* Subtle violet atmosphere */
body {
    background:
        radial-gradient(ellipse at 12% 8%, rgba(214,173,96,.10), transparent 32%),
        radial-gradient(ellipse at 85% 16%, rgba(118,86,168,.11), transparent 34%),
        radial-gradient(ellipse at 88% 88%, rgba(69,214,232,.055), transparent 34%),
        #080b12;
}

/* Premium, consistent transitions */
.nav-item,
#app-window .app-view a,
#app-window .app-view button,
.archive-card,
.skill-node {
    transition:
        transform .28s cubic-bezier(.2,.75,.25,1),
        border-color .28s ease,
        background-color .28s ease,
        box-shadow .28s ease,
        color .28s ease;
}

/* Buttons */
#app-window .app-view a:hover,
#app-window .app-view button:hover {
    transform: translateY(-2px);
}

/* Cards */
.archive-card:hover,
.skill-node:hover {
    transform: translateY(-4px);
}

/* Violet hover atmosphere */
.skill-node:hover {
    box-shadow:
        0 12px 30px rgba(118,86,168,.10),
        0 5px 20px rgba(214,173,96,.08);
}

/* Skill network hub */
.skill-hub .hub-core {
    animation: luxuryBreath 5s ease-in-out infinite;
}

@keyframes luxuryBreath {
    0%, 100% {
        box-shadow:
            0 0 0 7px rgba(214,173,96,.035),
            0 0 24px rgba(214,173,96,.13),
            0 0 45px rgba(118,86,168,.07);
    }
    50% {
        box-shadow:
            0 0 0 11px rgba(214,173,96,.06),
            0 0 34px rgba(214,173,96,.22),
            0 0 60px rgba(118,86,168,.13);
    }
}

/* Violet depth around the network */
.skill-map::before {
    background: radial-gradient(
        circle,
        rgba(118,86,168,.10),
        transparent 68%
    );
}

/* Slow, elegant network flow */
.connection-lines path {
    stroke: rgba(167,139,218,.48);
    stroke-dasharray: 7 13;
    animation: luxuryFlow 24s linear infinite;
}

@keyframes luxuryFlow {
    to {
        stroke-dashoffset: -200;
    }
}

/* Gentle skill-node entrance */
@keyframes nodeEntrance {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.skill-node {
    animation: nodeEntrance .7s ease both;
}

.skill-node:nth-of-type(1) { animation-delay: .08s; }
.skill-node:nth-of-type(2) { animation-delay: .16s; }
.skill-node:nth-of-type(3) { animation-delay: .24s; }
.skill-node:nth-of-type(4) { animation-delay: .32s; }
.skill-node:nth-of-type(5) { animation-delay: .40s; }
.skill-node:nth-of-type(6) { animation-delay: .48s; }

/* Active navigation: gold with a violet undertone */
.nav-item.active,
.nav-item[aria-current="page"] {
    box-shadow:
        inset 3px 0 0 var(--gold),
        0 4px 20px rgba(118,86,168,.09);
}

/* Touch devices: no hover lift or hover-dependent effects */
@media (hover: none) {
    .archive-card:hover,
    .skill-node:hover,
    #app-window .app-view a:hover,
    #app-window .app-view button:hover {
        transform: none;
    }
}

/* Smaller devices: reduce motion workload */
@media (max-width: 700px) {
    .connection-lines path {
        animation-duration: 36s;
    }

    .skill-hub .hub-core {
        animation-duration: 7s;
    }

    .skill-node {
        animation-duration: .45s;
    }
}

/* Accessibility: respect motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================
   LIQUID GLASS — OBSIDIAN / GOLD / VIOLET
   Layered over the existing responsive design
========================================================== */



/* Main application window */
#app-window {
    background:
        linear-gradient(145deg,
            rgba(255,255,255,.035),
            transparent 38%),
        rgba(12, 16, 26, .78);

    border: 1px solid var(--glass-border);

    box-shadow:
        0 24px 75px rgba(0,0,0,.38),
        inset 0 1px 0 rgba(255,255,255,.07),
        0 0 35px rgba(118,86,168,.055);
}

/* Floating topbar */
.system-topbar {
    background: rgba(12, 15, 25, .68);
    border-bottom: 1px solid rgba(214,173,96,.13);
    box-shadow: 0 8px 30px rgba(0,0,0,.12);
}

/* Sidebar glass */
.sidebar {
    background:
        linear-gradient(160deg,
            rgba(214,173,96,.035),
            transparent 40%),
        rgba(13, 17, 28, .74);

    border-right: 1px solid rgba(214,173,96,.13);
}

/* Frosted content cards */
.skill-node,
.archive-card,
.info-panel {
    background:
        linear-gradient(135deg,
            rgba(255,255,255,.065),
            rgba(255,255,255,.012) 48%,
            rgba(118,86,168,.045)),
        var(--glass-bg);

    border: 1px solid var(--glass-border);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.075),
        0 12px 35px rgba(0,0,0,.13);
}

/* Gold-tinted reflective top edge */
.skill-node,
.archive-card {
    position: relative;
    overflow: hidden;
}

.skill-node::before,
.archive-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(242,209,138,.52),
        rgba(167,139,218,.25),
        transparent
    );
    pointer-events: none;
}

/* Premium hover reflection */
.skill-node:hover,
.archive-card:hover {
    background:
        linear-gradient(135deg,
            rgba(214,173,96,.075),
            rgba(118,86,168,.09)),
        var(--glass-bg-strong);

    border-color: var(--glass-gold-edge);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.11),
        0 16px 40px rgba(0,0,0,.24),
        0 0 25px rgba(118,86,168,.09);
}

/* Glass secondary buttons */
#app-window .app-view a.btn.secondary-btn,
#app-window .app-view button.secondary-btn {
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(214,173,96,.27);
    color: #f2dcae;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.07),
        0 5px 18px rgba(0,0,0,.12);
}

#app-window .app-view a.btn.secondary-btn:hover,
#app-window .app-view button.secondary-btn:hover {
    background: rgba(214,173,96,.105);
    border-color: rgba(242,209,138,.55);
    box-shadow: 0 8px 24px rgba(214,173,96,.12);
}

/* Better glass rendering where supported */
@supports ((backdrop-filter: blur(16px)) or
           (-webkit-backdrop-filter: blur(16px))) {

    #app-window,
    .system-topbar,
    .sidebar,
    .skill-node,
    .archive-card,
    .info-panel {
        -webkit-backdrop-filter: blur(18px) saturate(135%);
        backdrop-filter: blur(18px) saturate(135%);
    }

    .system-topbar,
    .sidebar {
        -webkit-backdrop-filter: blur(22px) saturate(145%);
        backdrop-filter: blur(22px) saturate(145%);
    }
}

/* Mobile: lighter blur for performance */
@media (max-width: 700px) {
    #app-window,
    .system-topbar,
    .sidebar,
    .skill-node,
    .archive-card,
    .info-panel {
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }

    .skill-node,
    .archive-card {
        box-shadow: 0 8px 22px rgba(0,0,0,.16);
    }
}

/* No blur when the user prefers reduced transparency */
@media (prefers-reduced-motion: reduce) {
    .skill-node,
    .archive-card {
        transition: none;
    }
}

@media (prefers-reduced-transparency: reduce) {
    #app-window,
    .system-topbar,
    .sidebar,
    .skill-node,
    .archive-card,
    .info-panel {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        background-color: #111827;
    }
}



/* MOBILE NAVIGATION REFINEMENT — SINGLE NAVIGATION SYSTEM */
@media (max-width: 700px) {

    /* Keep the existing sidebar as the only mobile navigation */
    .sidebar {
        order: 2;
        flex: 0 0 70px;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        padding: 6px 9px 8px;
        display: flex;
        flex-direction: row;
        align-items: center;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(214,173,96,.45) transparent;
        border-top: 1px solid rgba(214,173,96,.18);
        border-right: 0;
    }

    .app-navigation {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 7px;
        width: max-content;
        min-width: max-content;
        height: 100%;
    }

    /* Comfortable touch targets with readable labels */
    .sidebar .nav-item {
        flex: 0 0 84px;
        width: 84px;
        min-width: 84px;
        min-height: 56px;
        height: 56px;
        padding: 6px 5px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        border: 1px solid transparent;
        border-radius: 12px;
        font-size: 10px;
        line-height: 1.15;
        text-align: center;
        white-space: normal;
        scroll-snap-align: center;
        transform: none;
    }

    .sidebar .nav-item i {
        width: auto;
        font-size: 16px;
        line-height: 1;
    }

    .sidebar .nav-item span {
        display: block;
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    /* Gold active state: bottom indicator suits horizontal navigation */
    .sidebar .nav-item.active,
    .sidebar .nav-item[aria-current="page"] {
        color: var(--gold-bright) !important;
        background: linear-gradient(
            180deg,
            rgba(214,173,96,.15),
            rgba(118,86,168,.07)
        ) !important;
        border-color: rgba(214,173,96,.24) !important;
        box-shadow:
            inset 0 -3px 0 var(--gold),
            0 3px 14px rgba(118,86,168,.10);
    }

    .sidebar .nav-item.active i {
        color: var(--gold-bright);
    }

    .sidebar .nav-item:hover {
        transform: none;
    }

    .sidebar::-webkit-scrollbar {
        height: 3px;
    }

    .sidebar::-webkit-scrollbar-thumb {
        background: rgba(214,173,96,.4);
        border-radius: 10px;
    }
}

/* Narrow phones: preserve touch size without squeezing labels */
@media (max-width: 380px) {
    .sidebar .nav-item {
        flex-basis: 78px;
        width: 78px;
        min-width: 78px;
    }
}

/* ==========================================================
   OVERVIEW REFINEMENT — ENGINEERING PROFILE
   Gold identity | Violet atmosphere | Liquid Glass
========================================================== */

[data-view-panel="profile"] .view-heading {
    position: relative;
    margin-bottom: 18px;
}

[data-view-panel="profile"] .view-heading h1 {
    font-size: clamp(25px, 3vw, 38px);
    letter-spacing: -0.8px;
}

[data-view-panel="profile"] .view-heading p {
    max-width: 680px;
    line-height: 1.75;
}

[data-view-panel="profile"] .hero {
    position: relative;
    min-height: 330px;
    padding: clamp(22px, 4vw, 48px);
    margin: 16px 0 30px;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(214,173,96,.24);
    border-radius: 22px;
    background:
        radial-gradient(ellipse at 85% 45%, rgba(118,86,168,.17), transparent 42%),
        linear-gradient(120deg, rgba(214,173,96,.075), transparent 48%),
        rgba(15,19,30,.56);
    box-shadow:
        inset 0 1px rgba(255,255,255,.07),
        0 18px 55px rgba(0,0,0,.16);
}

[data-view-panel="profile"] .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(
        115deg,
        transparent 20%,
        rgba(255,255,255,.025) 48%,
        transparent 72%
    );
}

[data-view-panel="profile"] .hero-content {
    position: relative;
    z-index: 1;
    max-width: 650px;
}

[data-view-panel="profile"] .hero .system {
    display: inline-block;
    margin-bottom: 15px;
    padding: 8px 12px;
    border: 1px solid rgba(214,173,96,.24);
    border-radius: 999px;
    background: rgba(214,173,96,.07);
    color: var(--gold-bright);
    letter-spacing: 1.7px;
}

[data-view-panel="profile"] .hero h2 {
    color: var(--text);
    font-size: clamp(17px, 2vw, 23px);
    line-height: 1.55;
}

[data-view-panel="profile"] .hero p {
    max-width: 510px;
    font-size: 14px;
    line-height: 1.9;
}

[data-view-panel="profile"] .hero .btn {
    min-height: 46px;
    padding: 0 22px;
    border-radius: 10px;
    font-weight: 600;
    transition: transform .25s ease, box-shadow .25s ease;
}

[data-view-panel="profile"] .hero .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(214,173,96,.15);
}

[data-view-panel="profile"] .section-heading {
    margin-top: 30px;
    margin-bottom: 15px;
    letter-spacing: .5px;
}

[data-view-panel="profile"] .profile-card {
    position: relative;
    background:
        radial-gradient(circle at 100% 0%, rgba(118,86,168,.10), transparent 42%),
        rgba(19,23,36,.62);
    border-color: rgba(214,173,96,.20);
    border-radius: 18px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: border-color .25s ease, transform .25s ease;
}

[data-view-panel="profile"] .profile-card:hover {
    transform: translateY(-3px);
    border-color: rgba(214,173,96,.42);
}

[data-view-panel="profile"] .profile-card > img {
    border-radius: 13px;
    box-shadow: 0 8px 28px rgba(0,0,0,.25);
}

[data-view-panel="profile"] .profile-roles {
    color: var(--gold-bright) !important;
    font-weight: 600;
    line-height: 1.8;
}

[data-view-panel="profile"] .profile-copy p:not(.profile-roles) {
    font-size: 13.5px;
    line-height: 1.9;
}

[data-view-panel="profile"] .profile-actions {
    gap: 10px;
}

[data-view-panel="profile"] .profile-actions .text-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(214,173,96,.28);
    border-radius: 9px;
    background: rgba(214,173,96,.06);
    color: var(--gold-bright);
    text-decoration: none;
    font-size: 12px;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

[data-view-panel="profile"] .profile-actions .text-action:hover {
    transform: translateY(-2px);
    background: rgba(214,173,96,.13);
    border-color: var(--gold);
}

[data-view-panel="profile"] .intro-panel {
    padding: 24px;
    margin-top: 16px;
    border: 1px solid rgba(214,173,96,.18);
    border-radius: 16px;
    background:
        linear-gradient(125deg, rgba(118,86,168,.09), transparent 60%),
        rgba(19,23,36,.52);
}

[data-view-panel="profile"] .intro-panel h2 {
    margin: 10px 0;
    color: var(--gold-bright);
}

[data-view-panel="profile"] .intro-panel p {
    line-height: 1.9;
}

[data-view-panel="profile"] .intro-panel > img {
    border: 1px solid rgba(214,173,96,.22);
    border-radius: 13px;
    box-shadow: 0 10px 30px rgba(0,0,0,.2);
}

@media (max-width: 700px) {
    [data-view-panel="profile"] .hero {
        min-height: auto;
        padding: 22px 16px;
        border-radius: 16px;
    }

    [data-view-panel="profile"] .hero-content {
        width: 100%;
    }

    [data-view-panel="profile"] .hero h2 {
        font-size: 17px;
    }

    [data-view-panel="profile"] .profile-card {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        text-align: center;
        padding: 18px;
    }

    [data-view-panel="profile"] .profile-card > img {
        width: min(190px, 65%);
        height: 190px;
    }

    [data-view-panel="profile"] .profile-actions {
        justify-content: center;
    }

    [data-view-panel="profile"] .intro-panel {
        grid-template-columns: minmax(0, 1fr);
        padding: 18px;
    }

    [data-view-panel="profile"] .intro-panel > img {
        max-width: 100%;
        height: 190px;
    }
}

@media (prefers-reduced-motion: reduce) {
    [data-view-panel="profile"] .hero .btn,
    [data-view-panel="profile"] .profile-card,
    [data-view-panel="profile"] .profile-actions .text-action {
        transition: none;
    }
}


/* ==========================================================
   OBSIDIAN BLACK — FINAL GLOBAL THEME
   Pitch black | Champagne gold | Subtle royal violet
========================================================== */



/* Pure black foundation */
body {
    background:
        radial-gradient(
            ellipse at 80% 15%,
            rgba(118,86,168,.055),
            transparent 42%
        ),
        radial-gradient(
            ellipse at 12% 85%,
            rgba(214,173,96,.045),
            transparent 38%
        ),
        #030303 !important;
}

/* Workstation window */
#app-window {
    background: rgba(5,5,5,.94) !important;
    border-color: rgba(214,173,96,.18);
}

/* Top bar */
.system-topbar {
    background: rgba(5,5,5,.88) !important;
    border-color: rgba(214,173,96,.16);
}

/* Sidebar */
.sidebar {
    background: rgba(7,7,8,.94) !important;
    border-color: rgba(214,173,96,.14);
}

/* Main workspace */
.view-container,
.app-view {
    background: transparent;
}

/* Glass surfaces */
.skill-node,
.archive-card,
.info-panel,
.profile-card,
.intro-panel {
    background-color: rgba(10,10,11,.76);
    border-color: rgba(214,173,96,.16);
}

/* General panels */
.panel-card,
.card,
.glass,
.service-card {
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.035),
            rgba(255,255,255,.008)
        );
    border-color: rgba(214,173,96,.15);
}

/* Gold hover instead of blue */
.panel-card:hover,
.card:hover,
.glass:hover,
.service-card:hover {
    background: rgba(214,173,96,.045);
    border-color: rgba(214,173,96,.38);
}

/* Skill network — gold and violet atmosphere */
.skill-node {
    background: rgba(10,10,11,.86);
    border-color: rgba(214,173,96,.23);
}

.skill-node:hover {
    background: rgba(22,18,14,.94);
    border-color: var(--gold);
    box-shadow: 0 0 28px rgba(214,173,96,.10);
}

/* Project cards */
.archive-card {
    background:
        linear-gradient(
            145deg,
            rgba(214,173,96,.035),
            rgba(10,10,11,.92)
        );
}

/* Liquid Glass — black tinted */
#app-window,
.system-topbar,
.sidebar,
.skill-node,
.archive-card,
.info-panel {
    backdrop-filter: blur(22px) saturate(115%);
    -webkit-backdrop-filter: blur(22px) saturate(115%);
}

/* Focus remains visible */
:focus-visible {
    outline-color: var(--gold);
}

/* Reduced transparency compatibility */
@media (prefers-reduced-transparency: reduce) {
    #app-window,
    .system-topbar,
    .sidebar,
    .skill-node,
    .archive-card,
    .info-panel {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background-color: #080808;
    }
}


/* --- WORKSTATION SPACING REFINEMENTS --- */
.app-view .panel-card,
.app-view .archive-card,
.app-view .info-panel {
    margin-bottom: 28px !important;
    padding: 28px !important;
}

.app-view .panel-card > *:not(:last-child),
.app-view .archive-card > *:not(:last-child),
.app-view .info-panel > *:not(:last-child) {
    margin-bottom: 16px;
}

.app-view p {
    line-height: 1.75;
}


/* ==========================================================
   LAYOUT PASS 1 — SPACING, HIERARCHY, RESPONSIVE, GOLD CLEANUP
   Append-only block: remove it to roll back.
========================================================== */

:root {
    --sp-1: 8px;
    --sp-2: 16px;
    --sp-3: 24px;
    --sp-4: 32px;
    --sp-5: 48px;
    --card-radius: 16px;
    --card-line: rgba(214, 173, 96, .16);
    --card-line-hover: rgba(214, 173, 96, .42);
    --card-fill: linear-gradient(145deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
    --content-max: 1180px;
}

/* ---------- 1. View frame ---------- */
.app-view {
    top: 0;
    padding: clamp(22px, 3vw, 40px) clamp(18px, 3.5vw, 48px) clamp(48px, 6vw, 72px);
    scroll-padding-top: 24px;
}

.app-view:not([data-view-panel="profile"]) > * {
    max-width: var(--content-max);
    margin-left: auto;
    margin-right: auto;
}

/* ---------- 2. View heading ---------- */
.app-view:not([data-view-panel="profile"]) .view-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--sp-2) var(--sp-3);
    margin-bottom: clamp(24px, 3.5vw, 40px);
    padding-bottom: var(--sp-3);
    border-bottom: 1px solid var(--card-line);
}

.view-heading > div {
    flex: 1 1 320px;
    min-width: 0;
}

.view-heading .eyebrow {
    display: block;
    margin-bottom: 10px;
    font-size: 11px;
}

.view-heading h1 {
    margin: 0 0 12px;
}

.view-heading p {
    max-width: 62ch;
    color: var(--text-2);
}

.live-badge,
.section-index {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 8px 14px;
    border: 1px solid var(--gold-border);
    border-radius: 999px;
    background: rgba(214, 173, 96, .06);
    color: var(--gold);
    font: 600 10px/1 Orbitron, sans-serif;
    letter-spacing: .16em;
    white-space: nowrap;
}

.live-badge > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 10px var(--green);
    animation: sysPulse 2.4s ease-in-out infinite;
}

@keyframes sysPulse {
    50% { opacity: .35; }
}

/* ---------- 3. One card language ---------- */
.app-view .panel-card,
.app-view .archive-card,
.app-view .info-panel,
.app-view .contact-information,
.app-view .contact-form,
.app-view .service-card,
.app-view .skill-philosophy {
    border: 1px solid var(--card-line);
    border-radius: var(--card-radius);
}

.app-view .info-panel {
    margin-top: var(--sp-4);
}

.app-view .info-panel h2,
.app-view .archive-card h2 {
    margin: 4px 0 10px;
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.35;
}

.app-view .info-panel p,
.app-view .archive-card p {
    max-width: 68ch;
    color: var(--text-1);
}

.app-view .archive-card:has(> .archive-icon) {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--sp-3);
}

.app-view .archive-card:has(> .archive-icon) > * {
    margin-bottom: 0 !important;
}

.archive-icon {
    flex: 0 0 56px;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border: 1px solid var(--gold-border);
    border-radius: 14px;
    background: rgba(214, 173, 96, .08);
    color: var(--gold);
    font-size: 22px;
}

.archive-card .eyebrow {
    display: block;
    margin-bottom: 6px;
}

.hero-actions,
.profile-actions,
.gallery-action,
.archive-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.hero-actions { margin-top: var(--sp-3); }
.gallery-action { margin: var(--sp-4) 0; }

/* ---------- 4. Project archive ---------- */
.project-archive {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
    gap: var(--sp-3);
    margin: 0 0 var(--sp-4);
}

#app-window .project-archive .archive-card {
    margin-bottom: 0 !important;
    padding: var(--sp-3) !important;
}

#app-window .project-archive .archive-card > .archive-topline { margin-bottom: var(--sp-2); }
#app-window .project-archive .archive-card > h3 { margin-bottom: 10px; }
#app-window .project-archive .archive-card > p { margin-bottom: var(--sp-2); }
#app-window .project-archive .archive-card > .tech-stack { margin-bottom: var(--sp-3); }

#app-window .project-archive .archive-card > .archive-links {
    margin-bottom: 0;
    margin-top: auto;
    padding-top: var(--sp-2);
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.project-tag {
    color: var(--gold);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .14em;
}

.tech-stack span {
    border-color: rgba(214, 173, 96, .22);
    background: rgba(214, 173, 96, .06);
    color: var(--text-1);
}

.github-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    margin-top: var(--sp-4);
    padding: var(--sp-4);
    border: 1px solid var(--card-line);
    border-radius: var(--card-radius);
    background: var(--card-fill);
}

.github-panel h2 { margin: 4px 0 8px; font-size: 20px; }
.github-panel p { color: var(--text-2); }

/* ---------- 5. Services ---------- */
.services-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: var(--sp-3);
}

.service-card { padding: var(--sp-3); }

/* ---------- 6. Skill matrix ---------- */
.skill-map-intro {
    margin: 0 auto var(--sp-2);
    padding: 0 4px;
}

.skill-map {
    gap: var(--sp-2);
    padding: var(--sp-2) 0;
    margin-bottom: var(--sp-4);
}

.skill-node { padding: 20px; }

.skill-node:hover {
    box-shadow: 0 14px 35px rgba(0, 0, 0, .3), 0 0 24px rgba(214, 173, 96, .10);
}

.node-icon {
    border-color: var(--gold-border);
    background: rgba(214, 173, 96, .09);
    color: var(--gold-bright);
}

.node-index { color: var(--text-2); }
.skill-node h3 { font-size: 16px; }
.skill-node p { color: var(--text-1); font-size: 12px; }

.node-application {
    border-top-color: rgba(214, 173, 96, .14);
    color: var(--gold-soft);
    font-size: 11px;
}

.skill-philosophy { gap: var(--sp-3); padding: var(--sp-4); }

.skill-map-intro { color: var(--text-2); }

.skill-hub {
    border-color: rgba(214, 173, 96, .30);
    background: radial-gradient(circle, rgba(214, 173, 96, .14), rgba(10, 10, 11, .95) 67%);
    box-shadow: 0 0 55px rgba(214, 173, 96, .10), inset 0 0 30px rgba(214, 173, 96, .06);
}

.skill-hub strong { color: var(--gold-bright); }
.skill-hub > span { color: var(--text-2); }
.skill-hub .hub-core { color: var(--gold-bright); }
.hub-orbit { border-color: rgba(214, 173, 96, .18); }
.orbit-one { border-top-color: var(--gold-bright); }

.skill-philosophy {
    border-color: var(--card-line);
    background: linear-gradient(110deg, rgba(214, 173, 96, .07), rgba(255, 255, 255, .015));
}

.philosophy-icon { background: rgba(214, 173, 96, .10); color: var(--gold-bright); }
.skill-philosophy h2 { color: var(--text); }
.skill-philosophy p { color: var(--text-1); font-size: 13px; }

/* ---------- 7. Creative lab ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
    gap: var(--sp-2);
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid var(--card-line);
    border-radius: 14px;
    background: #0b0b0c;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.gallery-grid img:hover {
    transform: translateY(-3px) scale(1.012);
    border-color: var(--card-line-hover);
    box-shadow: 0 16px 36px rgba(0, 0, 0, .4);
}

/* ---------- 8. Knowledge archive link list ---------- */
.blog-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
    gap: 12px;
}

#app-window .blog-links a {
    width: 100%;
    justify-content: space-between;
    min-height: 46px;
    padding: 12px 16px;
}

/* ---------- 9. Resume / CV credentials (overrides inline styles) ---------- */
.panel-card > h3[style] {
    margin: 8px 0 var(--sp-3) !important;
    font-size: clamp(16px, 1.8vw, 19px) !important;
    line-height: 1.4;
}

.panel-card > div[style*="grid"] {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)) !important;
    gap: var(--sp-3) !important;
}

.panel-card .card[style] {
    display: flex;
    flex-direction: column;
    padding: 22px !important;
    border-radius: 14px;
}

.panel-card .card[style] > div:first-child {
    gap: 12px;
    margin-bottom: 10px !important;
}

.panel-card .card[style] strong { line-height: 1.45; }

.panel-card .card[style] p {
    flex: 1;
    margin-bottom: 16px !important;
    font-size: 13px !important;
    line-height: 1.65 !important;
}

#app-window .panel-card .card[style] a {
    align-self: flex-start;
    font-size: 11px !important;
}

/* ---------- 9b. Content links: gold, not legacy blue ---------- */
#app-window .app-view a:not(.btn) {
    color: var(--gold-bright);
    background: rgba(214, 173, 96, .06);
    border-color: rgba(214, 173, 96, .24);
}

/* ---------- 10. Contact terminal ---------- */
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--sp-4);
    align-items: stretch;
    margin-bottom: var(--sp-4);
}

.contact-information,
.contact-form {
    padding: clamp(22px, 3vw, 34px);
    background: var(--card-fill);
}

.contact-information {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-information h2 {
    margin: 0;
    font-size: clamp(20px, 2.2vw, 26px);
    line-height: 1.3;
}

.contact-information p {
    margin: 0 0 var(--sp-1);
    color: var(--text-1);
}

#app-window .contact-information a {
    width: 100%;
    justify-content: flex-start;
    min-height: 48px;
    padding: 12px 16px;
    font-size: 12px;
    overflow-wrap: anywhere;
}

#app-window .contact-information a i {
    width: 18px;
    text-align: center;
    color: var(--gold);
}

.contact-form {
    display: flex;
    flex-direction: column;
    max-width: none;
}

.contact-form label {
    margin: 0 0 8px;
    color: var(--text-2);
    font: 600 10px/1.2 Orbitron, sans-serif;
    letter-spacing: .16em;
}

.contact-form input,
.contact-form textarea {
    margin-bottom: 22px;
    padding: 14px 16px;
    border-radius: 10px;
    border-color: rgba(214, 173, 96, .2);
    background: rgba(5, 5, 6, .7);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--gold);
    background: rgba(214, 173, 96, .04);
    box-shadow: 0 0 0 3px rgba(214, 173, 96, .14);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(153, 147, 138, .65);
}

.contact-form textarea {
    min-height: 150px;
}

#app-window .contact-form .btn {
    align-self: flex-start;
    margin-top: 4px;
    min-height: 48px;
    padding: 12px 26px;
}

/* ---------- 9. Resume / CV credentials (overrides inline styles) ---------- */
.panel-card > h3[style] {
    margin: 8px 0 var(--sp-3) !important;
    font-size: clamp(16px, 1.8vw, 19px) !important;
    line-height: 1.4;
}

.panel-card > div[style*="grid"] {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)) !important;
    gap: var(--sp-3) !important;
}

.panel-card .card[style] {
    display: flex;
    flex-direction: column;
    padding: 22px !important;
    border-radius: 14px;
}

.panel-card .card[style] > div:first-child {
    gap: 12px;
    margin-bottom: 10px !important;
}

.panel-card .card[style] strong { line-height: 1.45; }

.panel-card .card[style] p {
    flex: 1;
    margin-bottom: 16px !important;
    font-size: 13px !important;
    line-height: 1.65 !important;
}

#app-window .panel-card .card[style] a {
    align-self: flex-start;
    font-size: 11px !important;
}

/* ---------- 9b. Content links: gold, not legacy blue ---------- */
#app-window .app-view a:not(.btn) {
    color: var(--gold-bright);
    background: rgba(214, 173, 96, .06);
    border-color: rgba(214, 173, 96, .24);
}

/* ---------- 10. Contact terminal ---------- */
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--sp-4);
    align-items: stretch;
    margin-bottom: var(--sp-4);
}

.contact-information,
.contact-form {
    padding: clamp(22px, 3vw, 34px);
    background: var(--card-fill);
}

.contact-information {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-information h2 {
    margin: 0;
    font-size: clamp(20px, 2.2vw, 26px);
    line-height: 1.3;
}

.contact-information p {
    margin: 0 0 var(--sp-1);
    color: var(--text-1);
}

#app-window .contact-information a {
    width: 100%;
    justify-content: flex-start;
    min-height: 48px;
    padding: 12px 16px;
    font-size: 12px;
    overflow-wrap: anywhere;
}

#app-window .contact-information a i {
    width: 18px;
    text-align: center;
    color: var(--gold);
}

.contact-form {
    display: flex;
    flex-direction: column;
    max-width: none;
}

.contact-form label {
    margin: 0 0 8px;
    color: var(--text-2);
    font: 600 10px/1.2 Orbitron, sans-serif;
    letter-spacing: .16em;
}

.contact-form input,
.contact-form textarea {
    margin-bottom: 22px;
    padding: 14px 16px;
    border-radius: 10px;
    border-color: rgba(214, 173, 96, .2);
    background: rgba(5, 5, 6, .7);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--gold);
    background: rgba(214, 173, 96, .04);
    box-shadow: 0 0 0 3px rgba(214, 173, 96, .14);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(153, 147, 138, .65);
}

.contact-form textarea {
    min-height: 150px;
}

#app-window .contact-form .btn {
    align-self: flex-start;
    margin-top: 4px;
    min-height: 48px;
    padding: 12px 26px;
}

/* ---------- 9. Resume / CV credentials (overrides inline styles) ---------- */
.panel-card > h3[style] {
    margin: 8px 0 var(--sp-3) !important;
    font-size: clamp(16px, 1.8vw, 19px) !important;
    line-height: 1.4;
}

.panel-card > div[style*="grid"] {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)) !important;
    gap: var(--sp-3) !important;
}

.panel-card .card[style] {
    display: flex;
    flex-direction: column;
    padding: 22px !important;
    border-radius: 14px;
}

.panel-card .card[style] > div:first-child {
    gap: 12px;
    margin-bottom: 10px !important;
}

.panel-card .card[style] strong { line-height: 1.45; }

.panel-card .card[style] p {
    flex: 1;
    margin-bottom: 16px !important;
    font-size: 13px !important;
    line-height: 1.65 !important;
}

#app-window .panel-card .card[style] a {
    align-self: flex-start;
    font-size: 11px !important;
}

/* ---------- 9b. Content links: gold, not legacy blue ---------- */
#app-window .app-view a:not(.btn) {
    color: var(--gold-bright);
    background: rgba(214, 173, 96, .06);
    border-color: rgba(214, 173, 96, .24);
}

/* ---------- 10. Contact terminal ---------- */
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--sp-4);
    align-items: stretch;
    margin-bottom: var(--sp-4);
}

.contact-information,
.contact-form {
    padding: clamp(22px, 3vw, 34px);
    background: var(--card-fill);
}

.contact-information {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-information h2 {
    margin: 0;
    font-size: clamp(20px, 2.2vw, 26px);
    line-height: 1.3;
}

.contact-information p {
    margin: 0 0 var(--sp-1);
    color: var(--text-1);
}

#app-window .contact-information a {
    width: 100%;
    justify-content: flex-start;
    min-height: 48px;
    padding: 12px 16px;
    font-size: 12px;
    overflow-wrap: anywhere;
}

#app-window .contact-information a i {
    width: 18px;
    text-align: center;
    color: var(--gold);
}

.contact-form {
    display: flex;
    flex-direction: column;
    max-width: none;
}

.contact-form label {
    margin: 0 0 8px;
    color: var(--text-2);
    font: 600 10px/1.2 Orbitron, sans-serif;
    letter-spacing: .16em;
}

.contact-form input,
.contact-form textarea {
    margin-bottom: 22px;
    padding: 14px 16px;
    border-radius: 10px;
    border-color: rgba(214, 173, 96, .2);
    background: rgba(5, 5, 6, .7);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--gold);
    background: rgba(214, 173, 96, .04);
    box-shadow: 0 0 0 3px rgba(214, 173, 96, .14);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(153, 147, 138, .65);
}

.contact-form textarea {
    min-height: 150px;
}

#app-window .contact-form .btn {
    align-self: flex-start;
    margin-top: 4px;
    min-height: 48px;
    padding: 12px 26px;
}

/* ---------- 11. Sidebar polish ---------- */
.sidebar-label {
    padding: 0 12px;
    margin: var(--sp-1) 0 10px;
    color: var(--text-2);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .22em;
}

.app-navigation { gap: 6px; }
.nav-item { min-height: 40px; }

.sidebar-profile h2 { font-size: 15px; line-height: 1.3; margin-bottom: 4px; }

@media (min-width: 701px) and (max-height: 900px) {
    .sidebar { padding: 16px 13px; }
    .sidebar-profile { padding: 4px 10px 14px; margin-bottom: 8px; }
    .app-navigation { gap: 4px; }
    .nav-item { min-height: 37px; }
}

/* ---------- 12. Responsive ---------- */
@media (max-width: 1024px) {
    .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
    .app-view { padding: 20px 16px 36px; }

    .sidebar-label { display: none; }

    .app-view:not([data-view-panel="profile"]) .view-heading {
        align-items: flex-start;
        padding-bottom: var(--sp-2);
    }

    .app-view .archive-card:has(> .archive-icon) {
        flex-direction: column;
        gap: var(--sp-2);
    }

    .project-archive { grid-template-columns: 1fr; gap: var(--sp-2); }

    #app-window .project-archive .archive-card { padding: 20px !important; }

    .github-panel,
    .skill-philosophy { padding: var(--sp-3); }

    .github-panel > a { width: 100%; }

    .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

    .hero-actions > .btn,
    .gallery-action > .btn,
    #app-window .contact-form .btn { width: 100%; }

    .contact-layout { gap: var(--sp-3); }
}

@media (max-width: 380px) {
    .gallery-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 13. Motion safety ---------- */
@media (prefers-reduced-motion: reduce) {
    .gallery-grid img,
    .live-badge > span { animation: none; transition: none; }
}

/* ===== END LAYOUT PASS 1 ===== */

/* ===== MOBILE: single navigation (hide duplicate bottom dock) ===== */
@media (max-width: 700px) {
    :root { --dock-height: 0px; }

    .system-dock { display: none !important; }

    #restore-window:not([hidden]) { bottom: 20px !important; }
}
/* ===== END MOBILE NAV FIX ===== */
