/* Full page reset */
body {
    margin: 0;
    overflow: hidden;
    font-family: "JetBrains Mono", monospace;
    background: #0a0b0f;
    color: #e8e8e8;
}

/* Top panel */
#top-panel {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 30px;
    background: linear-gradient(180deg, #0f121a 0%, #0b0d12 100%);
    color: #dfe7ff;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 12px;
    font-size: 12px;
    letter-spacing: 0.2px;
    box-shadow: 0 1px 0 #1c2433, 0 10px 25px #00000080;
    z-index: 5;
}

.panel-left, .panel-center, .panel-right {
    display: flex;
    align-items: center;
}

.panel-left { gap: 10px; }
.panel-center { justify-content: center; }
.panel-right { gap: 10px; justify-content: flex-end; }

.panel-menu {
    padding: 4px 8px;
    border-radius: 4px;
    background: #111826;
    color: #dfe7ff;
    border: 1px solid #1f2a3c;
    box-shadow: inset 0 1px 0 #1c2534;
}

.panel-title { font-weight: 600; color: #c9d7ff; }
.panel-icon { filter: drop-shadow(0 0 2px #0af); }
.panel-clock {
    padding: 3px 6px;
    background: #0f172a;
    border-radius: 4px;
    border: 1px solid #1f2a3c;
    color: #dfe7ff;
}
.panel-user { color: #8fb7ff; }

/* Kali background */
#desktop {
    position: fixed;
    inset: 0;
    background: url('thumb-1920-1355119.jpeg') no-repeat center center fixed;
    background-size: cover;
    filter: brightness(0.6) saturate(1.05);
    z-index: 0;
}

/* Bottom dock */
#dock {
    position: fixed;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    background: #0b0f18cc;
    border: 1px solid #1c2436;
    border-radius: 10px;
    padding: 8px 10px;
    display: flex;
    gap: 10px;
    box-shadow: 0 10px 30px #0008, inset 0 1px 0 #1a2232;
    z-index: 4;
    backdrop-filter: blur(4px);
}

.dock-icon {
    width: 34px;
    height: 34px;
    background: #111827;
    border-radius: 6px;
    border: 1px solid #1f2a3c;
    display: grid;
    place-items: center;
    color: #dce9ff;
    font-size: 16px;
    box-shadow: inset 0 1px 0 #1c2534, 0 3px 8px #0006;
    transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.dock-icon:hover {
    transform: translateY(-3px) scale(1.05);
    background: #132035;
    box-shadow: inset 0 1px 0 #1f2f44, 0 8px 20px #0009;
}

/* Terminal window */
.window {
    width: 720px;
    height: 400px;
    background: #0b0b0b;
    border: 1px solid #222;
    border-radius: 6px;
    position: absolute;
    top: 18%;
    left: 24%;
    box-shadow: 0 0 40px #000a;
    z-index: 2;

    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Hide utility */
.hidden {
    display: none !important;
}

/* Title bar */
.title-bar {
    height: 28px;
    background: #131313;
    color: #c4c4c4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    cursor: grab;
    user-select: none;
}

.title-bar .title {
    font-size: 13px;
}

/* Window buttons like Kali Terminal */
.buttons {
    display: flex;
    gap: 6px;
}

.btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red    { background: #ff4f4f; }
.yellow { background: #ffb634; }
.green  { background: #64da69; }

/* Terminal Body */
.term-body {
    padding: 20px;
    color: #e8e8e8;
    font-size: 18px;
    line-height: 1.4;
    position: relative;
    flex: 1;
    overflow-y: auto;
}

/* ASCII banner */
.ascii-art {
    font-size: 11px;
    line-height: 1.1;
    color: #5af5ff;
    text-shadow: 0 0 6px #39d5ff;
    margin: 0 0 8px 0;
    white-space: pre;
}

/* Output block */
.output {
    font-size: 16px;
    line-height: 1.35;
    white-space: pre-wrap;
    margin-bottom: 6px;
}

/* Cursor line */
.cursor-line {
    display: flex;
    align-items: center;
}

.prompt {
    color: #ffc233;
    margin-right: 6px;
    text-shadow: 0 0 6px #ffda73;
}

/* Blinking cursor */
.cursor {
    width: 14px;
    height: 24px;
    background: #ffd34d;
    margin-left: 4px;
    animation: blink 0.45s steps(1) infinite;
    border-radius: 2px;
    box-shadow: 0 0 8px #ffdd66dd, 0 0 18px #ffdd6688;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
}

/* Typing text */
#typed {
    color: #f7f7ef;
}

/* Screen grain */
.term-body::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAEklEQVQI12P4//8/AwMDAwMjAANAAgPheBZ/AAAAAElFTkSuQmCC");
    opacity: 0.12;
}

/* ==== FAKE APP STYLES ==== */

.app {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 6;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* starts fully hidden */
.app.app-hidden {
    opacity: 0;
    pointer-events: none;
}

/* becomes visible only when we add .app-visible */
.app.app-visible {
    opacity: 1;
    pointer-events: auto;
}

.app-window {
    width: 900px;
    height: 520px;
    background: radial-gradient(circle at top left, #10263a 0, #050910 55%, #020408 100%);
    border-radius: 14px;
    border: 1px solid #22384d;
    box-shadow: 0 0 40px #000c;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.app-header {
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #cfe7ff;
    background: linear-gradient(90deg, #0c1723, #101a28);
    border-bottom: 1px solid #23354b;
}

.app-status {
    font-size: 11px;
    color: #8fb7ff;
}

.status-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: #10b98122;
    color: #6ee7b7;
    border: 1px solid #059669aa;
}

/* App body layout */
.app-body {
    display: flex;
    flex: 1;
}

/* Sidebar */
.app-sidebar {
    width: 170px;
    border-right: 1px solid #22384d;
    background: linear-gradient(180deg, #050b12, #071019);
    padding: 10px 8px;
}

.app-item {
    padding: 8px 10px;
    margin-bottom: 4px;
    border-radius: 6px;
    font-size: 13px;
    color: #9eb5d6;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, transform 0.1s ease;
}

.app-item:hover {
    background: #111d2c;
    color: #dbeafe;
    transform: translateX(2px);
}

.app-item.active {
    background: linear-gradient(90deg, #1e293b, #0f172a);
    color: #e0f2fe;
    border: 1px solid #1d4ed8aa;
}

/* Main area */
.app-main {
    flex: 1;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
}

/* Views */
.app-view {
    display: none;
    flex: 1;
    flex-direction: column;
    gap: 10px;
}

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

/* Metrics row */
.app-metrics-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 10px;
}

.metric-card {
    background: radial-gradient(circle at top left, #18253a, #050913);
    border-radius: 10px;
    border: 1px solid #1f2a3c;
    padding: 10px 12px;
    box-shadow: 0 0 18px #020617cc inset;
}

.metric-label {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 4px;
}

.metric-value {
    font-size: 24px;
    color: #e5f2ff;
    text-shadow: 0 0 10px #38bdf8aa;
}

.metric-sub {
    font-size: 11px;
    color: #64748b;
}

/* Overview text */
.overview-blurb {
    margin-top: 10px;
    background: #020617;
    border-radius: 10px;
    border: 1px solid #111827;
    padding: 10px 12px;
    box-shadow: 0 0 18px #000a inset;
}

.overview-title {
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 4px;
}

.overview-text {
    font-size: 13px;
    color: #cbd5f5;
}

/* Resume view */
.resume-card {
    background: #020617;
    border-radius: 10px;
    border: 1px solid #1f2937;
    padding: 16px 16px 14px;
    box-shadow: 0 0 22px #000c inset;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.resume-title {
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #9ca3af;
}

.resume-text {
    font-size: 13px;
    color: #e5e7eb;
}

.resume-button {
    display: inline-block;
    margin-top: 4px;
    padding: 7px 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, #1d4ed8, #0ea5e9);
    color: #e0f2fe;
    font-size: 12px;
    text-decoration: none;
    text-transform: lowercase;
    letter-spacing: 0.08em;
    border: 1px solid #38bdf8aa;
    box-shadow: 0 0 14px #0ea5e9aa;
}

.resume-button:hover {
    filter: brightness(1.1);
}

.resume-note {
    font-size: 11px;
    color: #6b7280;
}

/* Projects view */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 10px;
}

.project-card {
    background: #020617;
    border-radius: 10px;
    border: 1px solid #111827;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.project-title {
    font-size: 13px;
    color: #e5f2ff;
}

.project-meta {
    font-size: 11px;
    color: #9ca3af;
}

.project-text {
    font-size: 12px;
    color: #cbd5f5;
}

.project-link {
    margin-top: 4px;
    font-size: 11px;
    color: #60a5fa;
    text-decoration: none;
}

.project-link:hover {
    text-decoration: underline;
}

/* Links view */
.links-list {
    background: #020617;
    border-radius: 10px;
    border: 1px solid #111827;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.links-title {
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 4px;
}

.link-item {
    font-size: 13px;
    color: #bfdbfe;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.link-item:hover {
    color: #e0f2fe;
}

.link-tag {
    font-size: 11px;
    color: #9ca3af;
}

/* Log area for console view */
.app-log-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #020617;
    border-radius: 10px;
    border: 1px solid #1f2937;
    overflow: hidden;
    box-shadow: 0 0 18px #000a inset;
}

.app-log-header {
    padding: 6px 10px;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #9ca3af;
    background: linear-gradient(90deg, #020617, #020617);
    border-bottom: 1px solid #111827;
}

.app-log {
    flex: 1;
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.4;
    color: #bfdbfe;
    white-space: pre-wrap;
    overflow-y: auto;
    scrollbar-width: thin;
}

.app-log::-webkit-scrollbar {
    width: 6px;
}
.app-log::-webkit-scrollbar-thumb {
    background: #1f2933;
    border-radius: 999px;
}
