/* ============================================================
   PORTFOLIO IDE — style.css
   Shadow Glow Palette: #0A0A1A | #1F51FF | #39FF14
   Font stack: Limelight (name/display) · Cal Sans (heads) · DM Sans (body) · JetBrains Mono (IDE code)
   ============================================================ */

/* ===== RESET & ROOT ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Core IDE Bg */
    --ide-bg: #0A0A1A;
    --ide-bg2: #0D0D22;
    --ide-bg3: #111130;
    --ide-sidebar: #0C0C20;
    --ide-titlebar: #070714;
    --ide-statusbar: #1F51FF;
    --ide-tabbar: #0D0D22;
    --ide-terminal: #060612;
    --ide-line-hl: rgba(31, 81, 255, 0.07);
    --ide-gutter: #0C0C1E;

    /* Accent */
    --blue: #1F51FF;
    --blue-dim: rgba(31, 81, 255, 0.15);
    --blue-glow: 0 0 18px rgba(31, 81, 255, 0.55), 0 0 50px rgba(31, 81, 255, 0.2);
    --green: #39FF14;
    --green-dim: rgba(57, 255, 20, 0.1);
    --green-glow: 0 0 12px rgba(57, 255, 20, 0.65);

    /* Text */
    --text: #ABB2BF;
    --text-bright: #E6EBF4;
    --text-muted: #3D4A60;
    --text-dim: #2A3347;

    /* Border */
    --border: rgba(31, 81, 255, 0.18);
    --border-hard: rgba(31, 81, 255, 0.35);

    /* Syntax tokens */
    --syn-kw: #569CD6;
    /* keywords */
    --syn-str: #39FF14;
    /* strings */
    --syn-cmt: #3D5068;
    /* comments */
    --syn-num: #B5CEA8;
    /* numbers */
    --syn-cls: #FF79C6;
    /* class names */
    --syn-fn: #7EC8FC;
    /* function names */
    --syn-prop: #9CDCFE;
    /* properties/keys */
    --syn-type: #FF79C6;
    /* types */
    --syn-op: #C6C6C6;
    /* operators */
    --syn-bool: #569CD6;
    /* booleans */
    --syn-tag: #FF6188;
    /* md headers */
    --syn-yaml-k: #9CDCFE;
    /* yaml keys */
    --syn-bash-v: #7EC8FC;
    /* bash vars */
    --syn-bash-k: #1F51FF;
    /* bash keywords */
    --syn-shebang: #39FF14;
    /* shebang line */

    /* Layout */
    --titlebar-h: 36px;
    --activity-w: 48px;
    --sidebar-w: 240px;
    --statusbar-h: 24px;
    --tabbar-h: 38px;
    --breadcrumb-h: 26px;
    --terminal-h: 260px;
    --resize-h: 5px;

    --font-display: 'Limelight', sans-serif;
    --font-head: 'Cal Sans', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
    --font: var(--font-body);
    --radius: 4px;
    --transition: 0.18s ease;
}

html,
body {
    height: 100%;
    overflow: hidden;
    background: var(--ide-bg);
}

body {
    font-family: var(--font-body);
    font-optical-sizing: auto;
    font-size: 13px;
    color: var(--text);
}

/* ===== Typography utilities ===== */
.limelight-regular {
    font-family: var(--font-display);
    font-weight: 400;
    font-style: normal;
}

.cal-sans-regular {
    font-family: var(--font-head);
    font-weight: 400;
    font-style: normal;
}

.dm-sans-regular {
    font-family: var(--font-body);
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

/* IDE / terminal surfaces keep monospace */
.ide {
    font-family: var(--font-mono);
}

/* SEO: accessible heading for crawlers, hidden visually */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: var(--font);
    cursor: pointer;
}

::selection {
    background: var(--blue);
    color: #fff;
}

.card-back {
    transform: rotateY(180deg);
}

/* End of flexible card fix */
.card-front h3 {
    font-size: 1.8rem;
    color: var(--light-bg);
    font-weight: bold;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.card-front p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 1rem 0;
    color: var(--ivory-color);
}

.project-image {
    width: 250px;
    height: auto;
    border-radius: 15px;
    object-fit: cover;
    border: 3px solid var(--secondary-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.project-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(253, 172, 85, 0.5);
}

.card-back h4 {
    font-size: 1.8rem;
    color: var(--light-bg);
    font-weight: bold;
}

.card-back ul {
    list-style: none;
    padding: 0 1rem;
    margin: 1rem 0;
    text-align: left;
}

.card-back li {
    font-size: 1.1rem;
    margin: 0.8rem 0;
    color: var(--ivory-color);
}

.project-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: auto;
}

.project-links a {
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    background: var(--gradient);
    color: var(--text-light);
    text-decoration: none;
    font-family: 'SpaceGrotesk', sans-serif;
    font-size: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.carousel-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.carousel-button {
    border: none;
    color: white;
    padding: 1vmin 2vmin;
    cursor: pointer;
    border-radius: 20%;
    transition: all 0.3s ease;
    margin: 0 1rem;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 1vmin;
    margin-top: 2vmin;
}

.carousel-indicators .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.carousel-indicators .dot.active {
    background: var(--secondary-color);
}

.github-stats-section {
    text-align: center;
    margin-top: 4rem;
    padding: 2rem 0;
}

.collaboration-note {
    color: var(--ivory-color);
    max-width: 600px;
    margin: 0 auto 2rem auto;
    font-size: 1.1rem;
    line-height: 1.7;
}

.github-cards {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.github-cards img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.github-cards img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.card-back {
    transform: rotateY(180deg);
}

/* End of flexible card fix */
.card-front h3 {
    font-size: 1.8rem;
    color: var(--light-bg);
    font-weight: bold;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.card-front p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 1rem 0;
    color: var(--ivory-color);
}

.project-image {
    width: 250px;
    height: auto;
    border-radius: 15px;
    object-fit: cover;
    border: 3px solid var(--secondary-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.project-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(253, 172, 85, 0.5);
}

.card-back h4 {
    font-size: 1.8rem;
    color: var(--light-bg);
    font-weight: bold;
}

.card-back ul {
    list-style: none;
    padding: 0 1rem;
    margin: 1rem 0;
    text-align: left;
}

.card-back li {
    font-size: 1.1rem;
    margin: 0.8rem 0;
    color: var(--ivory-color);
}

.project-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: auto;
}

.project-links a {
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    background: var(--gradient);
    color: var(--text-light);
    text-decoration: none;
    font-family: 'SpaceGrotesk', sans-serif;
    font-size: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.carousel-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.carousel-button {
    border: none;
    color: white;
    padding: 1vmin 2vmin;
    cursor: pointer;
    border-radius: 20%;
    transition: all 0.3s ease;
    margin: 0 1rem;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 1vmin;
    margin-top: 2vmin;
}

.carousel-indicators .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.carousel-indicators .dot.active {
    background: var(--secondary-color);
}

.github-stats-section {
    text-align: center;
    margin-top: 4rem;
    padding: 2rem 0;
}

.collaboration-note {
    color: var(--ivory-color);
    max-width: 600px;
    margin: 0 auto 2rem auto;
    font-size: 1.1rem;
    line-height: 1.7;
}

.github-cards {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.github-cards img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.github-cards img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(31, 81, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(31, 81, 255, 0.6);
}

/* ============================================================
   IDE GRID LAYOUT
   ============================================================ */
.ide {
    display: grid;
    grid-template:
        "titlebar  titlebar   titlebar " var(--titlebar-h) "actbar    sidebar    main     " 1fr
        "statusbar statusbar  statusbar" var(--statusbar-h) / var(--activity-w) var(--sidebar-w) 1fr;
    height: 100vh;
    overflow: hidden;
    background: var(--ide-bg);
}

/* ============================================================
   TITLE BAR
   ============================================================ */
.ide-titlebar {
    grid-area: titlebar;
    background: var(--ide-titlebar);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0;
    user-select: none;
    -webkit-app-region: drag;
    position: relative;
    z-index: 100;
}

/* macOS window controls */
.win-controls {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 14px;
    flex-shrink: 0;
    -webkit-app-region: no-drag;
}

.wc {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
    cursor: pointer;
    transition: filter var(--transition);
}

.wc-close {
    background: #FF5F57;
}

.wc-min {
    background: #FEBC2E;
}

.wc-max {
    background: #28C840;
}

.wc:hover {
    filter: brightness(1.3);
}

/* Menu items */
.title-menus {
    display: flex;
    gap: 0;
    -webkit-app-region: no-drag;
}

.t-menu {
    padding: 0 10px;
    height: var(--titlebar-h);
    display: flex;
    align-items: center;
    font-size: 12px;
    color: var(--text);
    cursor: pointer;
    transition: background var(--transition);
}

.t-menu:hover {
    background: rgba(255, 255, 255, 0.07);
}

/* Center title */
.title-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: none;
}

.title-ide-icon {
    color: var(--blue);
    font-size: 11px;
}

/* Right user tag */
.title-right {
    margin-left: auto;
    padding-right: 14px;
    -webkit-app-region: no-drag;
}

.title-user {
    font-size: 11px;
    color: var(--text-muted);
}

/* ============================================================
   ACTIVITY BAR
   ============================================================ */
.ide-activitybar {
    grid-area: actbar;
    background: var(--ide-titlebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 0;
    gap: 4px;
    z-index: 50;
}

.activity-btn {
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    border-radius: var(--radius);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: color var(--transition), background var(--transition);
    position: relative;
}

.activity-btn:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.activity-btn.active {
    color: var(--text-bright);
    border-left: 2px solid var(--blue);
}

.activity-btn.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--blue);
    box-shadow: var(--blue-glow);
}

.activity-spacer {
    flex: 1;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.ide-sidebar {
    grid-area: sidebar;
    background: var(--ide-sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 40;
}

.sidebar-panel {
    display: none;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.sidebar-panel.active {
    display: flex;
}

.sidebar-section-title {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    padding: 12px 14px 8px;
    flex-shrink: 0;
}

/* File Tree */
.file-tree {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 1rem;
}

.tree-folder-header {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    cursor: pointer;
    color: var(--text);
    font-size: 12px;
    font-weight: 500;
    transition: background var(--transition);
    user-select: none;
}

.tree-folder-header:hover {
    background: rgba(255, 255, 255, 0.04);
}

.tree-chevron {
    font-size: 9px;
    color: var(--text-muted);
    transition: transform var(--transition);
}

.tree-folder-icon {
    color: #E8B04B;
    font-size: 13px;
}

.tree-folder-name {
    font-size: 11px;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tree-folder-body {
    padding-left: 10px;
}

.tree-file {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px 5px 20px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text);
    border-radius: var(--radius);
    margin: 1px 4px;
    transition: background var(--transition), color var(--transition);
    position: relative;
}

.tree-file:hover {
    background: rgba(255, 255, 255, 0.05);
}

.tree-file.active {
    background: var(--blue-dim);
    color: var(--text-bright);
}

.tree-file.active::after {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 2px;
    background: var(--blue);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(31, 81, 255, 0.7);
}

.tree-filename {
    font-size: 13px;
}

/* File type dots */
.file-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-md {
    background: #7EC8FC;
    box-shadow: 0 0 5px rgba(126, 200, 252, 0.6);
}

.dot-py {
    background: #4EC9B0;
    box-shadow: 0 0 5px rgba(78, 201, 176, 0.6);
}

.dot-json {
    background: #E8B04B;
    box-shadow: 0 0 5px rgba(232, 176, 75, 0.6);
}

.dot-yaml {
    background: #FF79C6;
    box-shadow: 0 0 5px rgba(255, 121, 198, 0.6);
}

.dot-ts {
    background: #1F51FF;
    box-shadow: 0 0 5px rgba(31, 81, 255, 0.8);
}

.dot-sh {
    background: #39FF14;
    box-shadow: 0 0 5px rgba(57, 255, 20, 0.7);
}

/* Search Panel */
.search-box {
    padding: 8px 12px;
}

.search-input {
    width: 100%;
    background: var(--ide-bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 6px 10px;
    color: var(--text-bright);
    font-family: var(--font);
    font-size: 12px;
    outline: none;
}

.search-input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 8px rgba(31, 81, 255, 0.3);
}

.search-results {
    padding: 4px 12px;
    overflow-y: auto;
}

.search-hint {
    color: var(--text-muted);
    font-size: 12px;
}

.search-result-item {
    padding: 6px 8px;
    border-radius: var(--radius);
    cursor: pointer;
    margin-bottom: 2px;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.sr-file {
    font-size: 11px;
    color: var(--text-muted);
}

.sr-match {
    font-size: 12px;
    color: var(--text-bright);
}

.sr-match mark {
    background: rgba(57, 255, 20, 0.3);
    color: var(--green);
    border-radius: 2px;
}

/* ============================================================
   MAIN EDITOR AREA
   ============================================================ */
.ide-main {
    grid-area: main;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--ide-bg);
}

/* ===== TAB BAR ===== */
.ide-tabbar {
    height: var(--tabbar-h);
    background: var(--ide-tabbar);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-end;
    overflow-x: auto;
    overflow-y: hidden;
    flex-shrink: 0;
}

.ide-tabbar::-webkit-scrollbar {
    height: 2px;
}

.ide-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    height: 35px;
    background: var(--ide-bg2);
    border-right: 1px solid var(--border);
    border-top: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    font-size: 12px;
    color: var(--text-muted);
    transition: background var(--transition), color var(--transition);
    position: relative;
    flex-shrink: 0;
    user-select: none;
}

.ide-tab:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.ide-tab.active {
    background: var(--ide-bg);
    color: var(--text-bright);
    border-top: 1px solid var(--blue);
}

.ide-tab.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--blue);
    box-shadow: 0 0 10px rgba(31, 81, 255, 0.8);
}

.tab-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 3px;
    font-size: 11px;
    color: var(--text-muted);
    opacity: 0;
    transition: opacity var(--transition), background var(--transition), color var(--transition);
    border: none;
    background: none;
    padding: 0;
}

.ide-tab:hover .tab-close,
.ide-tab.active .tab-close {
    opacity: 1;
}

.tab-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #FF5F57;
}

.tab-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ===== BREADCRUMBS ===== */
.ide-breadcrumbs {
    height: var(--breadcrumb-h);
    background: var(--ide-bg);
    border-bottom: 1px solid rgba(31, 81, 255, 0.08);
    display: flex;
    align-items: center;
    padding: 0 14px;
    gap: 6px;
    flex-shrink: 0;
}

.bc-item {
    font-size: 12px;
    color: var(--text-muted);
}

.bc-active {
    color: var(--text);
}

.bc-sep {
    font-size: 9px;
    color: var(--text-dim);
}

/* ===== EDITOR WRAPPER ===== */
.editor-wrapper {
    flex: 1;
    display: flex;
    overflow: hidden;
    position: relative;
}

/* Line number gutter */
.editor-gutter {
    width: 52px;
    padding: 14px 0;
    background: var(--ide-gutter);
    text-align: right;
    font-size: 12px;
    line-height: 1.65;
    color: var(--text-dim);
    overflow: hidden;
    flex-shrink: 0;
    border-right: 1px solid rgba(31, 81, 255, 0.06);
    user-select: none;
}

.gutter-line {
    padding-right: 10px;
    display: block;
}

.gutter-line.hl {
    color: var(--text-muted);
    background: var(--ide-line-hl);
}

/* Code area */
.editor-code {
    flex: 1;
    padding: 14px 20px 40px;
    overflow: auto;
    font-size: 13px;
    line-height: 1.65;
    white-space: pre;
    tab-size: 2;
    outline: none;
    color: var(--text);
    position: relative;
}

.editor-code .active-line {
    background: var(--ide-line-hl);
    margin: 0 -20px;
    padding: 0 20px;
}

/* Minimap (decorative right panel) */
.editor-minimap {
    width: 80px;
    background: rgba(10, 10, 26, 0.8);
    border-left: 1px solid rgba(31, 81, 255, 0.06);
    overflow: hidden;
    flex-shrink: 0;
    opacity: 0.6;
}

#minimapCanvas {
    width: 100%;
}

/* ===== SYNTAX TOKEN COLORS ===== */
.kw {
    color: var(--syn-kw);
}

.str {
    color: var(--syn-str);
}

.cmt {
    color: var(--syn-cmt);
    font-style: italic;
}

.num {
    color: var(--syn-num);
}

.cls {
    color: var(--syn-cls);
}

.fn {
    color: var(--syn-fn);
}

.prop {
    color: var(--syn-prop);
}

.type {
    color: var(--syn-type);
}

.op {
    color: var(--syn-op);
}

.bool {
    color: var(--syn-bool);
}

.tag {
    color: var(--syn-tag);
    font-weight: 700;
}

.tag2 {
    color: #E8B04B;
    font-weight: 600;
}

.tag3 {
    color: #7EC8FC;
    font-weight: 600;
}

.shbng {
    color: var(--syn-shebang);
}

.bvar {
    color: var(--syn-bash-v);
}

.bkw {
    color: var(--blue);
}

.ykey {
    color: var(--syn-yaml-k);
}

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

.ycat {
    color: var(--syn-cls);
}

.ycom {
    color: var(--syn-cmt);
    font-style: italic;
}

.punc {
    color: #5A6575;
}

.mdbold {
    color: var(--text-bright);
    font-weight: 700;
}

.mdcode {
    color: var(--green);
    background: rgba(57, 255, 20, 0.08);
    padding: 0 3px;
    border-radius: 3px;
}

.mdlink {
    color: var(--syn-kw);
    text-decoration: underline;
}

.mdhr {
    color: var(--text-dim);
}

/* ===== RESIZE HANDLE ===== */
.resize-handle {
    height: var(--resize-h);
    background: var(--border);
    cursor: ns-resize;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
    position: relative;
    z-index: 10;
}

.resize-handle:hover,
.resize-handle.dragging {
    background: var(--blue);
    box-shadow: 0 0 8px rgba(31, 81, 255, 0.5);
}

.resize-line {
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

/* ============================================================
   TERMINAL PANEL
   ============================================================ */
.terminal-panel {
    background: var(--ide-terminal);
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    height: var(--terminal-h);
    min-height: 60px;
    max-height: 70vh;
    transition: height 0.1s;
}

/* Panel header */
.terminal-panel-header {
    height: 36px;
    background: var(--ide-bg2);
    border-bottom: 1px solid rgba(31, 81, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 0 6px;
    flex-shrink: 0;
}

.panel-tabs {
    display: flex;
    align-items: center;
}

.panel-tab {
    height: 36px;
    padding: 0 14px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: color var(--transition), border-color var(--transition);
}

.panel-tab:hover {
    color: var(--text);
}

.panel-tab.active {
    color: var(--text-bright);
    border-bottom-color: var(--blue);
}

.panel-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    padding-right: 8px;
}

.panel-action-btn {
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    border-radius: 4px;
    color: var(--text-muted);
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition), background var(--transition);
}

.panel-action-btn:hover {
    color: var(--text-bright);
    background: rgba(255, 255, 255, 0.07);
}

/* Terminal output scrollable area */
.terminal-output {
    flex: 1;
    overflow-y: auto;
    padding: 8px 16px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Terminal line types */
.t-line {
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-all;
}

.t-cmd-line {
    color: var(--text-bright);
}

.t-out-line {
    color: var(--text);
}

.t-err-line {
    color: #FF5F57;
}

.t-ok-line {
    color: var(--green);
    text-shadow: var(--green-glow);
}

.t-info-line {
    color: var(--syn-kw);
}

.t-muted-line {
    color: var(--text-muted);
}

.t-ascii-line {
    color: var(--blue);
    font-size: 11px;
    line-height: 1.3;
}

/* Terminal input row */
.terminal-inputline {
    display: flex;
    align-items: center;
    padding: 6px 16px 10px;
    flex-shrink: 0;
    position: relative;
}

.term-prompt-text {
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 13px;
}

.tp-user {
    color: var(--green);
    text-shadow: var(--green-glow);
}

.tp-at {
    color: var(--text-muted);
}

.tp-host {
    color: var(--syn-kw);
}

.tp-colon {
    color: var(--text-muted);
}

.tp-path {
    color: var(--blue);
    text-shadow: 0 0 6px rgba(31, 81, 255, 0.5);
}

.tp-dollar {
    color: var(--text-bright);
    margin-left: 4px;
    margin-right: 6px;
}

.term-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-bright);
    font-family: var(--font);
    font-size: 13px;
    caret-color: var(--green);
}

.term-input::selection {
    background: var(--blue-dim);
}

/* Prompt timestamp prefix */
.t-prompt-prefix {
    color: var(--green);
    text-shadow: var(--green-glow);
    margin-right: 4px;
}

/* ============================================================
   STATUS BAR
   ============================================================ */
.ide-statusbar {
    grid-area: statusbar;
    height: var(--statusbar-h);
    background: var(--ide-statusbar);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    font-size: 11px;
    box-shadow: 0 -2px 20px rgba(31, 81, 255, 0.3);
}

.status-left,
.status-right {
    display: flex;
    align-items: center;
    gap: 0;
}

.status-item {
    padding: 0 10px;
    height: var(--statusbar-h);
    display: flex;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.85);
    transition: background var(--transition);
    white-space: nowrap;
    cursor: default;
}

.status-item:hover {
    background: rgba(255, 255, 255, 0.12);
}

.status-git {
    background: rgba(0, 0, 0, 0.2);
}

.status-ok {
    background: rgba(0, 0, 0, 0.15);
}

.status-name {
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(4, 4, 18, 0.7);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.15s ease;
}

.modal-overlay.open {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-window {
    background: var(--ide-bg2);
    border: 1px solid var(--border-hard);
    border-radius: 8px;
    width: 90vw;
    max-width: 1000px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--blue-glow), 0 30px 80px rgba(0, 0, 0, 0.8);
    animation: slideUp 0.2s ease;
    overflow: hidden;
}

.modal-titlebar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--ide-titlebar);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.modal-win-controls {
    display: flex;
    gap: 7px;
}

.modal-title {
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
    flex: 1;
    text-align: center;
    margin-left: -80px;
}

.modal-header-actions {
    margin-left: auto;
}

.modal-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color var(--transition), background var(--transition);
}

.modal-close-btn:hover {
    color: #FF5F57;
    background: rgba(255, 95, 87, 0.1);
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* ===== PROJECTS GRID IN MODAL ===== */
.modal-output-header {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-output-header span {
    color: var(--green);
}

.projects-output-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.proj-output-card {
    background: var(--ide-bg3);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 14px;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
    cursor: default;
}

.proj-output-card:hover {
    border-color: var(--green);
    box-shadow: 0 0 16px rgba(57, 255, 20, 0.12);
    transform: translateY(-2px);
}

.poc-id {
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.poc-name {
    font-size: 13px;
    color: var(--text-bright);
    font-weight: 600;
    margin-bottom: 6px;
}

.poc-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 10px;
}

.poc-impact {
    font-size: 11px;
    color: var(--green);
    margin-bottom: 8px;
    text-shadow: var(--green-glow);
}

.poc-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.poc-tag {
    background: rgba(31, 81, 255, 0.12);
    color: var(--blue);
    border: 1px solid rgba(31, 81, 255, 0.3);
    padding: 2px 7px;
    border-radius: 3px;
    font-size: 10px;
}

.poc-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--syn-kw);
    margin-top: 8px;
    transition: color var(--transition);
}

.poc-link:hover {
    color: var(--blue);
}

/* Articles output */
.articles-output-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.art-output-card {
    background: var(--ide-bg3);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 14px 18px;
    transition: border-color var(--transition);
    cursor: pointer;
}

.art-output-card:hover {
    border-color: var(--blue);
}

.art-tag {
    display: inline-block;
    background: var(--blue-dim);
    color: var(--blue);
    border: 1px solid rgba(31, 81, 255, 0.3);
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 10px;
    margin-bottom: 8px;
}

.art-title {
    font-size: 13px;
    color: var(--text-bright);
    font-weight: 600;
    margin-bottom: 6px;
}

.art-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.55;
}

.art-read {
    font-size: 11px;
    color: var(--green);
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ============================================================
   STACK MODAL — NEON BADGES
   ============================================================ */
.stack-output {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


.stack-cat-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 400;
    color: var(--cat-color, var(--text-bright));
    margin: 0 0 10px 0;
    font-family: var(--font);
    letter-spacing: 0.3px;
}

.stack-cat-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.stack-cat-count {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: auto;
    background: var(--ide-bg3);
    padding: 1px 7px;
    border-radius: 8px;
}

.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
}

.stack-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 8px;
    border-radius: 8px;
    background: var(--ide-bg3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: default;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.stack-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    border: 1px solid var(--badge-color, var(--accent));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.stack-badge:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-2px);
    box-shadow: 0 0 16px color-mix(in srgb, var(--badge-color) 30%, transparent),
        0 4px 12px rgba(0, 0, 0, 0.3);
}

.stack-badge:hover::before {
    opacity: 1;
}

.stack-badge-icon {
    font-size: 22px;
    color: var(--badge-color, var(--accent));
    transition: color 0.25s, text-shadow 0.25s;
}

.stack-badge:hover .stack-badge-icon {
    text-shadow: 0 0 10px var(--badge-color);
}

.stack-badge-name {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
    letter-spacing: 0.2px;
}

.stack-badge:hover .stack-badge-name {
    color: var(--text-bright);
}

@media (max-width: 768px) {
    .stack-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 6px;
    }

    .stack-badge {
        padding: 10px 6px;
    }

    .stack-badge-icon {
        font-size: 18px;
    }

    .stack-badge-name {
        font-size: 9px;
    }
}

/* ============================================================
   ABOUT MODAL — PROFILE HERO
   ============================================================ */
.about-output {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px;
    background: linear-gradient(135deg, rgba(31, 81, 255, 0.08), rgba(57, 255, 20, 0.04));
    border: 1px solid rgba(31, 81, 255, 0.2);
    border-radius: 10px;
    animation: aboutSlideUp 0.4s ease both;
}

@keyframes aboutSlideUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-avatar {
    position: relative;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.about-avatar-text {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #1F51FF, #39FF14);
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    font-family: var(--font);
    border-radius: 50%;
}

.about-avatar-text img {
    border-radius: 50%;

}

.about-avatar-ring {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: #39FF14;
    border-right-color: #1F51FF;
    animation: aboutRingSpin 3s linear infinite;
}

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

.about-name {
    font-size: 22px;
    font-weight: 400;
    font-family: var(--font-display);
    color: var(--text-bright);
    margin: 0;
}

.about-role,
.about-loc {
    font-size: 12px;
    color: var(--text-muted);
    margin: 3px 0 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.about-role i {
    color: var(--blue);
}

.about-loc i {
    color: var(--green);
}

/* Stats row */
.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    animation: aboutSlideUp 0.5s ease both;
    animation-delay: 0.1s;
}

.about-stat {
    text-align: center;
    padding: 12px 6px;
    background: var(--ide-bg3);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.about-stat-num {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
    font-family: var(--font);
}

.about-stat-label {
    display: block;
    font-size: 9px;
    color: var(--text-muted);
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Intern toggle button */
.about-exp-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    padding: 2px 8px;
    font-size: 9px;
    font-family: var(--font);
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.about-exp-toggle:hover {
    border-color: var(--blue);
    color: var(--text-bright);
}

.about-exp-toggle.active {
    background: rgba(31, 81, 255, 0.15);
    border-color: var(--blue);
    color: var(--blue);
}

/* Focus areas */
.about-section-title {
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 400;
    color: var(--text-bright);
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.about-section-title i {
    color: var(--blue);
    font-size: 12px;
}

.about-focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 6px;
}

.about-focus-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--ide-bg3);
    border-radius: 6px;
    font-size: 11px;
    color: var(--text-muted);
    border: 1px solid transparent;
    transition: all 0.2s;
}

.about-focus-item:hover {
    border-color: var(--blue);
    color: var(--text-bright);
}

.about-focus-item i {
    color: var(--green);
    font-size: 12px;
    width: 16px;
    text-align: center;
}

/* Education */
.about-edu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.about-edu-card {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 14px;
    background: var(--ide-bg3);
    border-radius: 6px;
    border-left: 3px solid var(--blue);
}

.about-edu-degree {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-bright);
}

.about-edu-school {
    font-size: 11px;
    color: var(--text-muted);
}

.about-edu-year {
    font-size: 10px;
    color: var(--accent);
}

/* Contact links */
.about-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    animation: aboutSlideUp 0.5s ease both;
    animation-delay: 0.25s;
}

.about-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-bright);
    background: var(--ide-bg3);
    border: 1px solid var(--border);
    transition: all 0.2s;
    text-decoration: none;
}

.about-link-btn:hover {
    border-color: var(--accent);
    background: rgba(31, 81, 255, 0.1);
    box-shadow: 0 0 12px rgba(31, 81, 255, 0.2);
}

@media (max-width: 768px) {
    .about-hero {
        flex-direction: column;
        text-align: center;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-focus-grid {
        grid-template-columns: 1fr;
    }

    .about-links {
        justify-content: center;
    }
}

/* ============================================================
   EXPERIENCE MODAL — TIMELINE
   ============================================================ */
.exp-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
}

.exp-card {
    display: flex;
    gap: 16px;
    opacity: 0;
    animation: expSlideIn 0.45s ease forwards;
}

@keyframes expSlideIn {
    from {
        opacity: 0;
        transform: translateX(-16px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.exp-card-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 20px;
}

.exp-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--text-muted);
    background: var(--ide-bg);
    flex-shrink: 0;
    z-index: 1;
}

.exp-dot.current {
    border-color: #39FF14;
    background: rgba(57, 255, 20, 0.2);
    box-shadow: 0 0 8px rgba(57, 255, 20, 0.4);
}

.exp-line {
    width: 2px;
    flex: 1;
    background: var(--border);
    min-height: 20px;
}

.exp-card-body {
    flex: 1;
    padding: 0 0 24px;
}

.exp-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.exp-role {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-bright);
    margin: 0;
    font-family: var(--font);
}

.exp-company,
.exp-location {
    font-size: 11px;
    color: var(--text-muted);
    margin: 2px 0 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.exp-company i {
    color: var(--blue);
    font-size: 10px;
}

.exp-location i {
    color: var(--green);
    font-size: 10px;
}

.exp-period {
    font-size: 10px;
    padding: 3px 10px;
    border-radius: 10px;
    white-space: nowrap;
    font-weight: 500;
    flex-shrink: 0;
    background: var(--ide-bg3);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.exp-period.current {
    background: rgba(57, 255, 20, 0.1);
    color: #39FF14;
    border-color: rgba(57, 255, 20, 0.3);
}

.exp-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.exp-highlights li {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.5;
    padding-left: 14px;
    position: relative;
}

.exp-highlights li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent);
}

@media (max-width: 768px) {
    .exp-card-header {
        flex-direction: column;
    }

    .exp-period {
        align-self: flex-start;
    }
}

/* ============================================================
   CONTACT MODAL
   ============================================================ */
.modal-contact-window {
    max-width: 750px;
}

.contact-modal-body {
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* Script animation output terminal */
.contact-script-output {
    background: var(--ide-terminal);
    padding: 14px 18px;
    font-size: 12px;
    line-height: 1.7;
    min-height: 80px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

/* Contact form area (shown after script animation) */
.contact-form-area {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 0;
    flex: 1;
    overflow: auto;
}

.contact-left-info {
    padding: 18px 20px;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--ide-bg3);
}

.contact-cmd-line {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.contact-channel {
    display: flex;
}

.channel-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-size: 12px;
    padding: 8px 10px;
    border-radius: 4px;
    border: 1px solid var(--border);
    background: var(--ide-bg2);
    width: 100%;
    transition: border-color var(--transition), color var(--transition);
}

.channel-link i {
    color: var(--blue);
    font-size: 13px;
}

.channel-link:hover {
    border-color: var(--green);
    color: var(--green);
}

.channel-link:hover i {
    color: var(--green);
}

.contact-form-container {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ide-contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ide-form-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ide-label {
    font-size: 11px;
    color: var(--syn-cmt);
    display: flex;
    align-items: center;
    gap: 5px;
}

.ide-label .tp-dollar {
    color: var(--green);
    font-size: 11px;
}

.ide-contact-form input,
.ide-contact-form textarea {
    background: var(--ide-bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 7px 10px;
    color: var(--str);
    color: var(--syn-str);
    font-family: var(--font);
    font-size: 12px;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    resize: none;
}

.ide-contact-form input::placeholder,
.ide-contact-form textarea::placeholder {
    color: var(--text-muted);
}

.ide-contact-form input:focus,
.ide-contact-form textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 10px rgba(31, 81, 255, 0.25);
}

.ide-form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.ide-submit-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-family: var(--font);
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 0 14px rgba(31, 81, 255, 0.4);
    transition: background var(--transition), box-shadow var(--transition);
}

.ide-submit-btn:hover {
    background: #3060ff;
    box-shadow: 0 0 24px rgba(31, 81, 255, 0.7);
}

.ide-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-status-msg {
    font-size: 11px;
}

.form-status-msg.ok {
    color: var(--green);
}

.form-status-msg.err {
    color: #FF5F57;
}

/* ============================================================
   LIGHT THEME
   ============================================================ */
.light-theme {
    --ide-bg: #F5F5F5;
    --ide-bg2: #EAEAEF;
    --ide-bg3: #E0E0E8;
    --ide-sidebar: #E8E8F0;
    --ide-titlebar: #DDDDEA;
    --ide-statusbar: #1F51FF;
    --ide-tabbar: #EAEAEF;
    --ide-terminal: #E2E2EA;
    --ide-line-hl: rgba(31, 81, 255, 0.06);
    --ide-gutter: #E5E5ED;
    --text: #383A42;
    --text-bright: #1A1A2E;
    --text-muted: #9A9AB0;
    --text-dim: #B0B0C0;
    --border: rgba(31, 81, 255, 0.15);
    --border-hard: rgba(31, 81, 255, 0.3);
    --blue-dim: rgba(31, 81, 255, 0.1);
    --green: #16A34A;
    --green-dim: rgba(22, 163, 74, 0.1);
    --green-glow: 0 0 6px rgba(22, 163, 74, 0.3);
    --syn-kw: #0550AE;
    --syn-str: #16A34A;
    --syn-cmt: #8B8FA3;
    --syn-num: #6F42C1;
    --syn-cls: #C41E3A;
    --syn-fn: #0969DA;
    --syn-prop: #953800;
    --syn-type: #C41E3A;
    --syn-op: #383A42;
    --syn-bool: #0550AE;
    --syn-tag: #C41E3A;
    --syn-yaml-k: #953800;
    --syn-bash-v: #0969DA;
    --syn-bash-k: #1F51FF;
    --syn-shebang: #16A34A;
}

.light-theme ::-webkit-scrollbar-thumb {
    background: rgba(31, 81, 255, 0.2);
}

.light-theme ::-webkit-scrollbar-thumb:hover {
    background: rgba(31, 81, 255, 0.4);
}

.light-theme .t-menu:hover {
    background: rgba(0, 0, 0, 0.06);
}

.light-theme .activity-btn:hover {
    background: rgba(0, 0, 0, 0.06);
}

.light-theme .tree-file:hover {
    background: rgba(0, 0, 0, 0.04);
}

.light-theme .ide-tab:hover {
    background: rgba(0, 0, 0, 0.04);
}

.light-theme .editor-minimap {
    background: rgba(240, 240, 250, 0.8);
}

.light-theme .tp-user {
    color: var(--green);
    text-shadow: none;
}

.light-theme .tp-path {
    text-shadow: none;
}

.light-theme .t-ok-line {
    text-shadow: none;
}

.light-theme .wc-close {
    background: #FF5F57;
}

.light-theme .wc-min {
    background: #FEBC2E;
}

.light-theme .wc-max {
    background: #28C840;
}

/* ============================================================
   SETTINGS PANEL
   ============================================================ */
.settings-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(4, 4, 18, 0.5);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
}

.settings-overlay.open {
    display: flex;
}

.settings-panel {
    background: var(--ide-bg2);
    border: 1px solid var(--border-hard);
    border-radius: 8px;
    width: 380px;
    max-width: 90vw;
    box-shadow: var(--blue-glow), 0 20px 60px rgba(0, 0, 0, 0.6);
    animation: slideUp 0.2s ease;
    overflow: hidden;
}

.settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--ide-titlebar);
    border-bottom: 1px solid var(--border);
}

.settings-title {
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 400;
    color: var(--text-bright);
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-title i {
    color: var(--text-muted);
}

.settings-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color var(--transition), background var(--transition);
}

.settings-close:hover {
    color: #FF5F57;
    background: rgba(255, 95, 87, 0.1);
}

.settings-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.setting-label {
    font-size: 12px;
    color: var(--text-bright);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.font-size-val {
    color: var(--green);
    font-weight: 400;
    font-size: 11px;
    background: var(--green-dim);
    padding: 1px 8px;
    border-radius: 3px;
}

/* Theme toggle switch */
.theme-toggle-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-label-text {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 22px;
    display: inline-block;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--ide-bg3);
    border: 1px solid var(--border);
    border-radius: 22px;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 3px;
    width: 14px;
    height: 14px;
    background: var(--blue);
    border-radius: 50%;
    transition: transform 0.3s;
    box-shadow: 0 0 6px rgba(31, 81, 255, 0.5);
}

.toggle-switch input:checked+.toggle-slider::before {
    transform: translateX(22px);
    background: #E8B04B;
    box-shadow: 0 0 6px rgba(232, 176, 75, 0.5);
}

/* Font size slider */
.font-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: var(--ide-bg3);
    border-radius: 4px;
    outline: none;
    border: none;
}

.font-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--blue);
    cursor: pointer;
    box-shadow: 0 0 8px rgba(31, 81, 255, 0.5);
    border: 2px solid var(--ide-bg);
}

.font-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--blue);
    cursor: pointer;
    box-shadow: 0 0 8px rgba(31, 81, 255, 0.5);
    border: 2px solid var(--ide-bg);
}

.slider-marks {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--text-muted);
    padding: 0 2px;
}

/* Shortcuts */
.shortcut-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.shortcut-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 8px;
    border-radius: 4px;
    background: var(--ide-bg);
}

.sc-key {
    font-size: 11px;
    color: var(--text-bright);
    background: var(--ide-bg3);
    padding: 2px 8px;
    border-radius: 3px;
    border: 1px solid var(--border);
}

.sc-desc {
    font-size: 11px;
    color: var(--text-muted);
}

/* ============================================================
   TERMINAL COLLAPSED STATE (all screens)
   ============================================================ */
.terminal-panel.collapsed {
    height: 36px !important;
    min-height: 36px !important;
    overflow: hidden;
}

.terminal-panel.collapsed .terminal-output,
.terminal-panel.collapsed .terminal-inputline {
    display: none;
}

/* ============================================================
   MOBILE HAMBURGER (hidden on desktop)
   ============================================================ */
.mobile-hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.mobile-hamburger:hover {
    background: var(--sidebar-bg);
    color: var(--accent);
}

/* ============================================================
   RESPONSIVE IDE — MOBILE (≤768px)
   ============================================================ */
@media (max-width: 768px) {

    /* Show hamburger, hide desktop-only items */
    .mobile-hamburger {
        display: inline-flex;
    }

    .win-controls {
        display: none;
    }

    .title-menus {
        display: none;
    }

    .title-user {
        display: none;
    }

    .title-center {
        font-size: 12px;
    }

    /* IDE grid → single column stack */
    .ide {
        grid-template-columns: 1fr;
        grid-template-rows: 32px 1fr 22px;
        grid-template-areas:
            "titlebar"
            "main"
            "statusbar";
    }

    /* Activity bar → horizontal strip inside sidebar drawer */
    .ide-activitybar {
        position: fixed;
        top: 32px;
        left: 0;
        width: 75vw;
        max-width: 280px;
        height: auto;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2px;
        padding: 8px 4px;
        z-index: 710;
        border-top: 1px solid var(--border);
        border-right: 1px solid var(--border);
        background: var(--titlebar-bg);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .ide-activitybar.mobile-visible {
        transform: translateX(0);
    }

    /* Sidebar sits below activity bar on mobile */
    .ide-sidebar {
        top: calc(32px + 52px) !important;
        height: calc(100vh - 32px - 52px - 22px) !important;
    }

    .activity-btn {
        font-size: 16px;
        padding: 6px 10px;
    }

    .activity-spacer {
        display: none;
    }

    /* Sidebar → slide-in overlay drawer */
    .ide-sidebar {
        position: fixed;
        top: 32px;
        left: 0;
        width: 75vw;
        max-width: 280px;
        height: calc(100vh - 32px - 22px);
        z-index: 700;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
    }

    .ide-sidebar.mobile-open {
        transform: translateX(0);
    }

    /* Sidebar backdrop */
    .sidebar-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 699;
    }

    .sidebar-backdrop.active {
        display: block;
    }

    /* Main area fills screen */
    .ide-main {
        grid-area: main;
        overflow: hidden;
    }

    /* Tab bar — horizontal scroll */
    .ide-tabbar {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .ide-tabbar::-webkit-scrollbar {
        display: none;
    }

    .tab {
        min-width: auto;
        white-space: nowrap;
        font-size: 11px;
        padding: 0 10px;
    }

    /* Breadcrumbs */
    .ide-breadcrumbs {
        font-size: 10px;
        padding: 2px 10px;
    }

    /* Editor */
    .editor-wrapper {
        font-size: 12px;
    }

    .editor-gutter {
        min-width: 30px;
        font-size: 10px;
    }

    .editor-code {
        padding: 4px 8px;
    }

    .editor-minimap {
        display: none;
    }

    /* Terminal — starts showing header, expandable via tap */
    .terminal-panel {
        min-height: 36px;
        max-height: 60vh;
        transition: height 0.3s ease;
    }

    .terminal-panel.mobile-expanded {
        height: 45vh !important;
    }

    .terminal-panel-header {
        cursor: pointer;
    }

    .terminal-output {
        font-size: 11px;
    }

    .term-input {
        font-size: 12px;
    }

    .term-prompt-text {
        font-size: 11px;
    }

    /* Resize handle hidden on mobile (use tap to expand) */
    .resize-handle {
        display: none;
    }

    /* Status bar */
    .ide-statusbar {
        font-size: 10px;
        padding: 0 6px;
    }

    .status-item {
        padding: 0 4px;
    }

    /* Modals */
    .modal-window {
        width: 95vw;
        max-width: 95vw;
        max-height: 85vh;
    }

    .modal-contact-window {
        width: 95vw;
        max-width: 95vw;
    }

    .contact-form-area {
        grid-template-columns: 1fr !important;
    }

    .projects-output-grid {
        grid-template-columns: 1fr !important;
    }

    /* Settings panel responsive */
    .settings-panel {
        width: 90vw;
        max-width: 320px;
    }
}

/* Even smaller screens */
@media (max-width: 480px) {
    .title-center {
        font-size: 11px;
    }

    .ide-sidebar {
        width: 85vw;
    }

    .tab {
        font-size: 10px;
        padding: 0 8px;
    }
}

/* ============================================================
   ONBOARDING HINTS OVERLAY
   ============================================================ */
.onboarding-overlay {
    position: fixed;
    inset: 0;
    z-index: 9500;
    pointer-events: all;
    cursor: pointer;
    background: rgba(5, 5, 20, 0.75);
    opacity: 0;
    animation: obFadeIn 0.6s ease forwards;
}

.onboarding-overlay.ob-fade-out {
    animation: obFadeOut 0.6s ease forwards;
}

.onboarding-overlay.ob-hidden {
    display: none;
}

@keyframes obFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes obFadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.ob-hint {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    background: rgba(10, 15, 40, 0.85);
    border: 1px solid rgba(31, 81, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 0 20px rgba(31, 81, 255, 0.5), 0 4px 16px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    opacity: 0;
    transform: translateY(6px);
    animation: obHintIn 0.5s ease forwards;
    pointer-events: none;
}

.ob-hint i {
    color: #39FF14;
    font-size: 13px;
}

/* Staggered entrance */
.ob-hint-explorer {
    top: 80px;
    left: 60px;
    animation-delay: 0.3s;
}

.ob-hint-search {
    top: 130px;
    left: 60px;
    animation-delay: 0.5s;
}

.ob-hint-settings {
    bottom: 80px;
    left: 10px;
    animation-delay: 0.7s;
}

.ob-hint-terminal {
    bottom: 200px;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    animation-delay: 0.9s;
}

.ob-hint-github {
    top: 180px;
    left: 60px;
    animation-delay: 1.1s;
}

.ob-hint-shortcuts {
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    animation-delay: 1.3s;
}

.ob-hint kbd {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-family: var(--font);
    font-size: 11px;
}

@keyframes obHintIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ob-dismiss {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
    opacity: 0;
    animation: obHintIn 0.5s ease 1.5s forwards;
    pointer-events: none;
}

/* Mobile hint positions */
@media (max-width: 768px) {
    .ob-hint-explorer {
        top: 50px;
        left: 20px;
    }

    .ob-hint-search {
        top: 50px;
        right: 20px;
        left: auto;
    }

    .ob-hint-settings {
        bottom: 60px;
        left: 20px;
    }

    .ob-hint-terminal {
        bottom: 100px;
    }

    .ob-hint-github {
        top: 100px;
        left: 20px;
    }

    .ob-hint-shortcuts {
        display: none;
    }
}

/* ============================================================
   RECRUITER VIEW (typical portfolio layout)
   ============================================================ */
body {
    /* baseline: IDE works with overflow hidden */
    overflow: hidden;
}

body.mode-recruiter {
    overflow: auto;
}

/* Toggle views via body classes */
body.mode-recruiter #ide {
    display: none;
}

#recruiterView {
    display: none;
    height: 100vh;
    overflow-y: auto;
    background: #f6f7fb;
    color: #0f172a;
    font-family: var(--font-body);
    font-optical-sizing: auto;

    /* Recruiter theme variables (scoped to recruiter view) */
    --ide-bg: #f6f7fb;
    --ide-bg2: #ffffff;
    --ide-bg3: #f1f5f9;
    --ide-sidebar: #ffffff;
    --ide-titlebar: #ffffff;
    --ide-statusbar: #ffffff;
    --ide-terminal: #f8fafc;
    --ide-line-hl: rgba(22, 163, 74, 0.10);
    --ide-gutter: #eef2f7;

    --blue: #059669; /* teal/emerald, not blue */
    --blue-dim: rgba(5, 150, 105, 0.12);
    --blue-glow: 0 0 18px rgba(5, 150, 105, 0.25);

    --green: #16a34a;
    --green-dim: rgba(22, 163, 74, 0.10);
    --green-glow: 0 0 10px rgba(22, 163, 74, 0.35);

    --text: #0f172a;
    --text-bright: #0b1220;
    --text-muted: #475569;
    --text-dim: #64748b;
    --border: rgba(15, 23, 42, 0.12);
    --border-hard: rgba(15, 23, 42, 0.18);

    --accent: #16a34a;
    --gradient: linear-gradient(135deg, rgba(22, 163, 74, 0.95), rgba(245, 158, 11, 0.95));

    --syn-kw: #0f766e;
    --syn-str: #16a34a;
    --syn-cmt: #64748b;
    --syn-num: #7c3aed;
    --syn-cls: #ea580c;
    --syn-fn: #0f766e;
    --syn-prop: #b45309;
    --syn-type: #ea580c;
    --syn-op: #0f172a;
    --syn-bool: #0f766e;
    --syn-tag: #ea580c;
    --syn-yaml-k: #0f766e;
    --syn-bash-v: #0f766e;
    --syn-bash-k: #059669;
    --syn-shebang: #16a34a;
}

body.mode-recruiter #recruiterView {
    display: block;
}

body.mode-tech #recruiterView {
    display: none;
}

.recruiter-shell {
    max-width: 1120px;
    margin: 0 auto;
    padding: 18px 18px 72px;
}

.recruiter-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0 14px;
    background: rgba(255, 255, 255, 0.78);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(10px);
}

.recruiter-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    user-select: none;
}

.recruiter-brand i {
    color: var(--blue);
    text-shadow: var(--blue-glow);
    font-size: 14px;
}

.recruiter-brand-name {
    color: var(--text-bright);
    font-size: 15px;
    font-weight: 400;
    font-family: var(--font-display);
}

.recruiter-brand-sub {
    color: var(--text-muted);
    font-size: 12px;
}

.recruiter-mode-btn {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-bright);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-family: var(--font);
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.recruiter-mode-btn:hover {
    border-color: var(--blue);
    background: rgba(5, 150, 105, 0.10);
    transform: translateY(-1px);
}

.recruiter-section {
    margin-top: 22px;
}

.recruiter-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 400;
    font-family: var(--font-head);
    color: var(--text-bright);
    margin-bottom: 12px;
}

.recruiter-section-header i {
    color: var(--blue);
}

.recruiter-hero-cta-row {
    margin-top: 14px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.recruiter-cta-btn {
    border: none;
    border-radius: 10px;
    background: var(--blue);
    color: #fff;
    padding: 10px 18px;
    cursor: pointer;
    font-family: var(--font);
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 0 18px rgba(31, 81, 255, 0.35);
    transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}

.recruiter-cta-btn:hover {
    transform: translateY(-1px);
    background: #0b7b53;
    box-shadow: 0 0 26px rgba(5, 150, 105, 0.35);
}

.recruiter-ghost-btn {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-bright);
    border-radius: 10px;
    padding: 10px 16px;
    cursor: pointer;
    font-family: var(--font);
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.recruiter-ghost-btn:hover {
    border-color: var(--green);
    background: rgba(57, 255, 20, 0.08);
    transform: translateY(-1px);
}

.recruiter-footer {
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid rgba(31, 81, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 12px;
}

.recruiter-footer-links {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.recruiter-footer-sep {
    color: rgba(255, 255, 255, 0.35);
}

.recruiter-footer a {
    color: var(--text-bright);
    text-decoration: none;
}

.recruiter-footer a:hover {
    color: var(--green);
}

/* ============================================================
   Recruiter Collapsible UI
   ============================================================ */
.rec-details {
    margin-top: 6px;
    border: 1px solid var(--rec-border, rgba(15, 23, 42, 0.12));
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.rec-summary {
    list-style: none;
    cursor: pointer;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-weight: 900;
    color: var(--rec-text, #0f172a);
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.rec-summary::-webkit-details-marker {
    display: none;
}

.rec-summary-hint {
    font-weight: 800;
    color: var(--rec-muted, #475569);
    font-size: 12px;
}

.rec-details-inner {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

body.mode-recruiter #recruiterView #recruiterStackOutput {
    padding: 14px;
}

/* Scoped "de-neon" overrides for recruiter palette */
body.mode-recruiter #recruiterView .about-hero {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.12), rgba(245, 158, 11, 0.06));
    border: 1px solid rgba(22, 163, 74, 0.20);
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.06);
    animation: none;
}

body.mode-recruiter #recruiterView .about-avatar-ring {
    border-top-color: #16a34a;
    border-right-color: #f59e0b;
    animation: none;
}

body.mode-recruiter #recruiterView .poc-tag {
    background: rgba(5, 150, 105, 0.10);
    border: 1px solid rgba(5, 150, 105, 0.22);
    color: var(--blue);
}

body.mode-recruiter #recruiterView .proj-output-card,
body.mode-recruiter #recruiterView .art-output-card {
    background: var(--ide-bg2);
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.04);
}

body.mode-recruiter #recruiterView .stack-badge {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(15, 23, 42, 0.10);
}

/* ============================================================
   Recruiter View — Clean Portfolio UI
   (scoped to #recruiterView to avoid affecting Tech/IDE mode)
   ============================================================ */
#recruiterView {
    --rec-bg: #f6f7fb;
    --rec-surface: #ffffff;
    --rec-surface-2: #f8fafc;
    --rec-text: #0f172a;
    --rec-muted: #475569;
    --rec-border: rgba(15, 23, 42, 0.10);
    --rec-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    --rec-accent: #16a34a;
    --rec-accent-2: #f59e0b;
}

#recruiterView .rec-loading {
    padding: 10px 0;
    color: var(--rec-muted);
    font-weight: 700;
}

#recruiterView .recruiter-section-header {
    font-family: var(--font-head);
    font-weight: 400;
}

#recruiterView .recruiter-section-header i {
    color: var(--rec-accent);
}

#recruiterView .recruiter-shell {
    max-width: 1120px;
}

#recruiterView .rec-hero-card {
    display: grid;
    grid-template-columns: minmax(156px, 180px) 1fr;
    gap: 0;
    align-items: stretch;
    padding: 0;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--rec-border);
    border-radius: 20px;
    box-shadow: var(--rec-shadow);
    overflow: hidden;
}

#recruiterView .rec-avatar-col {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px 18px;
    background: linear-gradient(165deg, rgba(22, 163, 74, 0.10) 0%, rgba(245, 158, 11, 0.06) 55%, rgba(255, 255, 255, 0.5) 100%);
    border-right: 1px solid rgba(15, 23, 42, 0.06);
}

#recruiterView .avatar-ring-profile {
    width: 148px;
    height: 148px;
}

#recruiterView .rec-hero-meta {
    padding: 20px 20px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

#recruiterView .rec-kicker {
    color: var(--rec-accent);
    font-family: var(--font-head);
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 0.35px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

#recruiterView .rec-name {
    margin: 0;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 400;
    color: var(--rec-text);
    line-height: 1.15;
    letter-spacing: 0.02em;
}

#recruiterView .rec-subtitle {
    margin: 8px 0 0;
    color: var(--rec-muted);
    font-size: 14px;
    line-height: 1.55;
}

#recruiterView .rec-chip-row {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#recruiterView .rec-chip {
    background: rgba(22, 163, 74, 0.08);
    border: 1px solid rgba(22, 163, 74, 0.16);
    color: #0f766e;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

#recruiterView .rec-services {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed rgba(15, 23, 42, 0.12);
}

#recruiterView .rec-services-label {
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.35px;
    text-transform: uppercase;
    color: var(--rec-muted);
    margin-bottom: 8px;
}

#recruiterView .rec-service-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#recruiterView .rec-service-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.10);
    color: var(--rec-text);
    padding: 7px 11px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

#recruiterView .rec-service-chip i {
    color: #16a34a;
    font-size: 11px;
}

#recruiterView .rec-stats-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

#recruiterView .rec-stat-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--rec-border);
    border-radius: 14px;
    padding: 14px 14px 12px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
}

#recruiterView .rec-stat-num {
    color: var(--rec-text);
    font-weight: 950;
    font-size: 18px;
}

#recruiterView .rec-stat-label {
    color: var(--rec-muted);
    font-size: 12px;
    margin-top: 6px;
    font-weight: 800;
}

#recruiterView .rec-summary-card {
    margin-top: 14px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--rec-border);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
}

#recruiterView .rec-summary-title {
    font-family: var(--font-head);
    font-weight: 400;
    color: var(--rec-text);
    margin-bottom: 8px;
}

#recruiterView .rec-summary-list {
    margin-left: 18px;
    color: var(--rec-muted);
    font-weight: 750;
    font-size: 13px;
    line-height: 1.6;
}

#recruiterView .rec-projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

#recruiterView .rec-project-card {
    background: var(--rec-surface);
    border: 1px solid var(--rec-border);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

#recruiterView .rec-project-card:hover {
    transform: translateY(-2px);
    border-color: rgba(22, 163, 74, 0.28);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

#recruiterView .rec-project-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 8px;
}

#recruiterView .rec-project-index {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(22, 163, 74, 0.10);
    color: #0f766e;
    font-weight: 950;
    font-size: 12px;
}

#recruiterView .rec-project-title {
    font-weight: 950;
    color: var(--rec-text);
    font-size: 14px;
    line-height: 1.25;
}

#recruiterView .rec-project-desc {
    margin: 0;
    color: var(--rec-muted);
    font-size: 13px;
    line-height: 1.55;
    min-height: 48px;
}

#recruiterView .rec-project-impact {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#recruiterView .rec-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 950;
    font-size: 11px;
    border-radius: 999px;
    padding: 6px 10px;
    border: 1px solid var(--rec-border);
}

#recruiterView .rec-badge-impact {
    background: rgba(245, 158, 11, 0.10);
    border-color: rgba(245, 158, 11, 0.25);
    color: #b45309;
}

#recruiterView .rec-impact-text {
    color: var(--rec-text);
    font-weight: 900;
    font-size: 12px;
}

#recruiterView .rec-project-tags {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#recruiterView .rec-tag {
    background: rgba(2, 6, 23, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: rgba(15, 23, 42, 0.85);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

#recruiterView .rec-project-actions {
    margin-top: 14px;
    display: flex;
}

#recruiterView .rec-link-btn {
    border: 1px solid rgba(22, 163, 74, 0.25);
    background: rgba(22, 163, 74, 0.10);
    color: #0f766e;
    text-decoration: none;
    padding: 9px 12px;
    border-radius: 12px;
    font-weight: 950;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#recruiterView .rec-link-btn:hover {
    background: rgba(22, 163, 74, 0.16);
}

#recruiterView .rec-exp-list-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#recruiterView .rec-exp-card {
    background: var(--rec-surface);
    border: 1px solid var(--rec-border);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
}

#recruiterView .rec-exp-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

#recruiterView .rec-exp-title {
    font-weight: 950;
    color: var(--rec-text);
    font-size: 14px;
}

#recruiterView .rec-exp-period {
    color: var(--rec-muted);
    font-weight: 900;
    font-size: 12px;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 6px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

#recruiterView .rec-exp-sub {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--rec-muted);
    font-size: 12px;
    font-weight: 800;
}

#recruiterView .rec-exp-company i,
#recruiterView .rec-exp-location i {
    color: var(--rec-accent);
}

#recruiterView .rec-exp-list {
    margin: 12px 0 0 18px;
    color: var(--rec-muted);
    font-size: 13px;
    line-height: 1.6;
    font-weight: 750;
}

#recruiterView .rec-exp-more .rec-inline-summary {
    padding: 6px 10px;
    border-radius: 999px;
}

#recruiterView .rec-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#recruiterView .rec-skill-chip {
    background: rgba(2, 6, 23, 0.03);
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: rgba(15, 23, 42, 0.90);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
}

#recruiterView .rec-articles-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#recruiterView .rec-article-card {
    background: var(--rec-surface);
    border: 1px solid var(--rec-border);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
}

#recruiterView .rec-article-tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(22, 163, 74, 0.10);
    border: 1px solid rgba(22, 163, 74, 0.22);
    color: #0f766e;
    font-weight: 950;
    font-size: 12px;
}

#recruiterView .rec-article-title {
    margin-top: 10px;
    color: var(--rec-text);
    font-size: 14px;
    line-height: 1.3;
    font-weight: 950;
}

#recruiterView .rec-article-desc {
    margin: 8px 0 0;
    color: var(--rec-muted);
    font-size: 13px;
    line-height: 1.55;
    font-weight: 750;
}

#recruiterView .rec-article-actions {
    margin-top: 12px;
}

#recruiterView .rec-link-text {
    color: #0f766e;
    font-weight: 950;
    text-decoration: none;
}

#recruiterView .rec-link-text:hover {
    text-decoration: underline;
}

#recruiterView .rec-inline-details {
    margin-top: 14px;
}

#recruiterView .rec-inline-summary {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--rec-border);
    background: rgba(255, 255, 255, 0.7);
    font-weight: 950;
    color: var(--rec-text);
}

#recruiterView .rec-inline-summary-hint {
    color: var(--rec-muted);
    font-size: 12px;
    font-weight: 900;
}

#recruiterView .rec-inline-details-inner {
    margin-top: 12px;
}

/* Neutralize inherited modal grid/flex styles for Recruiter View */
#recruiterView #recruiterProjectsGrid.projects-output-grid {
    display: block;
    grid-template-columns: none;
    gap: 0;
    padding: 0;
}

#recruiterView #recruiterExperienceTimeline.exp-timeline {
    padding: 0;
}

#recruiterView #recruiterStackOutput.stack-output {
    display: block;
    flex-direction: unset;
    gap: 0;
}

#recruiterView #recruiterArticlesList.articles-output-list {
    display: block;
}

@media (max-width: 900px) {
    #recruiterView .rec-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #recruiterView .rec-projects-grid {
        grid-template-columns: 1fr;
    }

    #recruiterView .rec-hero-card {
        grid-template-columns: minmax(120px, 140px) 1fr;
    }

    #recruiterView .rec-avatar-col {
        padding: 16px 12px;
    }

    #recruiterView .avatar-ring-profile {
        width: 116px;
        height: 116px;
    }
}

@media (max-width: 768px) {
    .recruiter-shell {
        padding: 14px 14px 68px;
    }

    .recruiter-topbar {
        padding: 8px 0 12px;
    }

    .recruiter-hero-cta-row {
        flex-direction: column;
    }

    /* Simple view — stack hero vertically, avatar uses vertical space */
    #recruiterView .rec-hero-card {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    #recruiterView .rec-avatar-col {
        border-right: none;
        border-bottom: 1px solid rgba(15, 23, 42, 0.06);
        padding: clamp(28px, 10vh, 48px) 20px clamp(22px, 7vh, 36px);
        min-height: clamp(220px, 42vh, 360px);
    }

    #recruiterView .avatar-ring-profile {
        width: clamp(160px, 48vw, 220px);
        height: clamp(160px, 48vw, 220px);
    }

    #recruiterView .rec-hero-meta {
        padding: 20px 18px 18px;
    }

    #recruiterView .rec-name {
        font-size: 24px;
    }
}

/* ============================================================
   VISITOR MODE GATE
   ============================================================ */
.visitor-mode-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(4, 4, 18, 0.72);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    font-family: var(--font-body);
    font-optical-sizing: auto;
}

.visitor-mode-panel {
    width: 92vw;
    max-width: 520px;
    border-radius: 16px;
    background: var(--ide-bg2);
    border: 1px solid var(--border-hard);
    box-shadow: var(--blue-glow), 0 30px 90px rgba(0, 0, 0, 0.8);
    padding: 20px 20px 18px;
    animation: slideUp 0.2s ease;
    text-align: center;
}

.visitor-mode-hero {
    display: flex;
    justify-content: center;
    margin: 0 0 14px;
}

/* ===== Shared circular avatar system ===== */
@keyframes avatarEntrance {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes avatarFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

@keyframes avatarRingGlow {
    0%, 100% {
        box-shadow:
            0 0 0 0 rgba(22, 163, 74, 0.22),
            0 12px 32px rgba(0, 0, 0, 0.28);
    }
    50% {
        box-shadow:
            0 0 0 6px rgba(22, 163, 74, 0),
            0 16px 40px rgba(0, 0, 0, 0.32);
    }
}

@keyframes avatarRingGlowDark {
    0%, 100% {
        box-shadow:
            0 0 0 0 rgba(31, 81, 255, 0.28),
            0 14px 36px rgba(0, 0, 0, 0.45);
    }
    50% {
        box-shadow:
            0 0 0 8px rgba(57, 255, 20, 0),
            0 18px 44px rgba(0, 0, 0, 0.5);
    }
}

.avatar-ring {
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(145deg, #16a34a 0%, #f59e0b 50%, #16a34a 100%);
    background-size: 200% 200%;
    flex-shrink: 0;
    overflow: hidden;
}

.avatar-ring-visitor {
    width: clamp(120px, 26vw, 140px);
    height: clamp(120px, 26vw, 140px);
    background: linear-gradient(145deg, #1F51FF 0%, #39FF14 55%, #1F51FF 100%);
    background-size: 200% 200%;
    animation:
        avatarEntrance 0.55s cubic-bezier(0.22, 1, 0.36, 1) both,
        avatarRingGlowDark 3.8s ease-in-out 0.55s infinite;
}

.avatar-ring-visitor .avatar-frame {
    animation: avatarFloat 4.5s ease-in-out 0.7s infinite;
}

.avatar-ring-profile {
    animation:
        avatarEntrance 0.6s cubic-bezier(0.22, 1, 0.36, 1) both,
        avatarRingGlow 4s ease-in-out 0.6s infinite;
}

.avatar-ring-profile .avatar-frame {
    animation: avatarFloat 5s ease-in-out 0.8s infinite;
}

.avatar-frame {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: #f8fafc;
    border: 3px solid rgba(255, 255, 255, 0.95);
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.visitor-mode-avatar,
#recruiterView .rec-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    display: block;
    transform: scale(1.12);
    pointer-events: none;
    user-select: none;
}

.visitor-mode-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 400;
    color: var(--text-bright);
    margin-bottom: 6px;
}

.visitor-mode-subtitle {
    font-family: var(--font-body);
    font-optical-sizing: auto;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 16px;
    line-height: 1.5;
    padding: 0 6px;
}

.visitor-mode-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.visitor-mode-btn {
    flex: 1 1 auto;
    width: 100%;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-bright);
    border-radius: 10px;
    padding: 14px 16px;
    cursor: pointer;
    font-family: var(--font);
    font-size: 13px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    text-align: left;
    transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.visitor-mode-btn-icon {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(31, 81, 255, 0.12);
    color: var(--blue);
    font-size: 15px;
}

.visitor-mode-btn-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.visitor-mode-btn-text strong {
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 400;
    color: var(--text-bright);
    line-height: 1.25;
}

.visitor-mode-btn-text small {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.45;
}

.visitor-mode-btn-tech .visitor-mode-btn-icon {
    background: rgba(57, 255, 20, 0.10);
    color: var(--green);
}

.visitor-mode-remember {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-align: left;
}

.visitor-mode-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--green);
    cursor: pointer;
    flex-shrink: 0;
}

.visitor-mode-remember span {
    line-height: 1.35;
}

.visitor-mode-btn:hover {
    transform: translateY(-1px);
    border-color: var(--blue);
    background: rgba(31, 81, 255, 0.12);
}

.visitor-mode-btn-tech:hover {
    border-color: var(--green);
    background: rgba(57, 255, 20, 0.08);
}

.visitor-mode-note {
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 12px;
}

/* Remove legacy note if present */
.visitor-mode-note:empty {
    display: none;
}

.visitor-mode-overlay.hidden {
    display: none;
}

/* ============================================================
   RECRUITER VIEW — REDESIGN v2
   Sections: Projects (.proj2-*), Experience (.exp2-*),
             Tech Stack (.stack2-*), Articles (.art2-*)
   Scoped to #recruiterView only.
   ============================================================ */

#recruiterView {
    --r2-radius-lg: 18px;
    --r2-radius-md: 14px;
    --r2-radius-sm: 10px;
    --r2-shadow-sm: 0 6px 18px rgba(15, 23, 42, 0.05);
    --r2-shadow-md: 0 14px 32px rgba(15, 23, 42, 0.07);
    --r2-shadow-hover: 0 20px 44px rgba(15, 23, 42, 0.10);
    --r2-grad-accent: linear-gradient(180deg, #16a34a 0%, #f59e0b 100%);
    --r2-grad-soft: linear-gradient(180deg, rgba(22,163,74,0.10) 0%, rgba(245,158,11,0.06) 100%);
    --r2-chip-bg: rgba(15, 23, 42, 0.04);
    --r2-chip-border: rgba(15, 23, 42, 0.08);
}

/* ---------- Projects v2 ---------- */
#recruiterView .proj2-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

#recruiterView .proj2-card {
    position: relative;
    display: flex;
    background: var(--rec-surface);
    border: 1px solid var(--rec-border);
    border-radius: var(--r2-radius-lg);
    overflow: hidden;
    box-shadow: var(--r2-shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

#recruiterView .proj2-card:hover {
    transform: translateY(-3px);
    border-color: rgba(22, 163, 74, 0.30);
    box-shadow: var(--r2-shadow-hover);
}

#recruiterView .proj2-card-featured {
    grid-column: 1 / -1;
    background: linear-gradient(180deg, #ffffff 0%, #fbfaf6 100%);
}

#recruiterView .proj2-rail {
    width: 4px;
    flex: 0 0 4px;
    background: var(--r2-grad-accent);
}

#recruiterView .proj2-body {
    flex: 1 1 auto;
    padding: 18px 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#recruiterView .proj2-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

#recruiterView .proj2-num {
    font-family: var(--font);
    font-weight: 950;
    font-size: 12px;
    letter-spacing: 0.6px;
    color: var(--rec-muted);
    background: var(--r2-chip-bg);
    border: 1px solid var(--r2-chip-border);
    padding: 4px 8px;
    border-radius: 999px;
}

#recruiterView .proj2-flag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 950;
    color: #b45309;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.28);
    padding: 4px 9px;
    border-radius: 999px;
}

#recruiterView .proj2-flag i {
    font-size: 9px;
}

#recruiterView .proj2-title {
    margin: 0;
    font-family: var(--font-head);
    color: var(--rec-text);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.1px;
}

#recruiterView .proj2-card-featured .proj2-title {
    font-size: 19px;
}

#recruiterView .proj2-desc {
    margin: 0;
    color: var(--rec-muted);
    font-size: 13px;
    line-height: 1.6;
}

#recruiterView .proj2-impact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    color: #0f172a;
    background: rgba(22, 163, 74, 0.08);
    border: 1px solid rgba(22, 163, 74, 0.22);
    border-radius: var(--r2-radius-sm);
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 900;
}

#recruiterView .proj2-impact i {
    color: #b45309;
    font-size: 11px;
}

#recruiterView .proj2-foot {
    margin-top: auto;
    padding-top: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

#recruiterView .proj2-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

#recruiterView .proj2-chip {
    background: var(--r2-chip-bg);
    border: 1px solid var(--r2-chip-border);
    color: rgba(15, 23, 42, 0.85);
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1px;
    white-space: nowrap;
}

#recruiterView .proj2-chip-more {
    background: rgba(22, 163, 74, 0.10);
    border-color: rgba(22, 163, 74, 0.22);
    color: #0f766e;
}

#recruiterView .proj2-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #0f172a;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid var(--rec-border);
    border-radius: var(--r2-radius-sm);
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 950;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

#recruiterView .proj2-link:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

#recruiterView .proj2-link-ext {
    font-size: 10px;
    opacity: 0.7;
}

/* ---------- Experience v2 (timeline) ---------- */
#recruiterView .exp2-timeline {
    list-style: none;
    margin: 0;
    padding: 4px 0 0;
}

#recruiterView .exp2-item {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 16px;
    padding-bottom: 18px;
}

#recruiterView .exp2-item-last {
    padding-bottom: 0;
}

#recruiterView .exp2-marker {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 18px;
}

#recruiterView .exp2-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #16a34a;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.10);
    z-index: 1;
}

#recruiterView .exp2-line {
    position: absolute;
    top: 32px;
    bottom: -18px;
    width: 2px;
    background: linear-gradient(180deg, rgba(22,163,74,0.35) 0%, rgba(245,158,11,0.25) 100%);
}

#recruiterView .exp2-card {
    background: var(--rec-surface);
    border: 1px solid var(--rec-border);
    border-radius: var(--r2-radius-lg);
    padding: 16px 18px 14px;
    box-shadow: var(--r2-shadow-sm);
}

#recruiterView .exp2-period {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0f766e;
    background: rgba(22, 163, 74, 0.08);
    border: 1px solid rgba(22, 163, 74, 0.20);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.2px;
}

#recruiterView .exp2-period i {
    font-size: 10px;
}

#recruiterView .exp2-role {
    margin: 10px 0 4px;
    font-family: var(--font-head);
    color: var(--rec-text);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -0.1px;
}

#recruiterView .exp2-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--rec-muted);
    font-size: 12px;
    font-weight: 800;
}

#recruiterView .exp2-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

#recruiterView .exp2-meta-item i {
    color: #16a34a;
    font-size: 11px;
}

#recruiterView .exp2-sep {
    color: rgba(15, 23, 42, 0.30);
}

#recruiterView .exp2-bullets {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

#recruiterView .exp2-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--rec-text);
    font-size: 13px;
    line-height: 1.55;
    font-weight: 600;
}

#recruiterView .exp2-bullets li i {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #16a34a;
    background: rgba(22, 163, 74, 0.12);
    border-radius: 50%;
    font-size: 8px;
    margin-top: 4px;
}

#recruiterView .exp2-more {
    margin-top: 12px;
}

#recruiterView .exp2-bullets-rest {
    margin-top: 10px;
}

/* ---------- Tech Stack v2 (categorized) ---------- */
#recruiterView .stack2-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

#recruiterView .stack2-card {
    background: var(--rec-surface);
    border: 1px solid var(--rec-border);
    border-radius: var(--r2-radius-lg);
    padding: 14px 14px 14px;
    box-shadow: var(--r2-shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

#recruiterView .stack2-card:hover {
    transform: translateY(-2px);
    border-color: rgba(22, 163, 74, 0.28);
    box-shadow: var(--r2-shadow-md);
}

#recruiterView .stack2-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 1px dashed rgba(15, 23, 42, 0.10);
}

#recruiterView .stack2-icon {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: var(--r2-grad-soft);
    color: #16a34a;
    font-size: 13px;
    border: 1px solid rgba(22, 163, 74, 0.18);
}

#recruiterView .stack2-cat {
    margin: 0;
    flex: 1 1 auto;
    font-family: var(--font-head);
    color: var(--rec-text);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.1px;
}

#recruiterView .stack2-count {
    color: var(--rec-muted);
    background: var(--r2-chip-bg);
    border: 1px solid var(--r2-chip-border);
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 900;
}

#recruiterView .stack2-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

#recruiterView .stack2-chip {
    background: var(--r2-chip-bg);
    border: 1px solid var(--r2-chip-border);
    color: rgba(15, 23, 42, 0.88);
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

#recruiterView .stack2-chip:hover {
    background: rgba(22, 163, 74, 0.10);
    border-color: rgba(22, 163, 74, 0.25);
    color: #0f766e;
}

/* ---------- Articles v2 ---------- */
#recruiterView .art2-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

#recruiterView .art2-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-decoration: none;
    background: var(--rec-surface);
    border: 1px solid var(--rec-border);
    border-radius: var(--r2-radius-lg);
    padding: 16px 18px 14px;
    box-shadow: var(--r2-shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

#recruiterView .art2-card:hover {
    transform: translateY(-3px);
    border-color: rgba(22, 163, 74, 0.30);
    box-shadow: var(--r2-shadow-hover);
}

#recruiterView .art2-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

#recruiterView .art2-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 4px 10px;
    background: rgba(22, 163, 74, 0.08);
    border: 1px solid rgba(22, 163, 74, 0.20);
    color: #0f766e;
    font-weight: 950;
    font-size: 10px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

#recruiterView .art2-source {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.10);
    color: rgba(15, 23, 42, 0.78);
    font-size: 10.5px;
    font-weight: 900;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

#recruiterView .art2-source i {
    font-size: 12px;
    color: #0f172a;
}

#recruiterView .art2-source-medium {
    background: rgba(15, 23, 42, 0.06);
    border-color: rgba(15, 23, 42, 0.14);
    color: #0f172a;
}
#recruiterView .art2-source-medium i {
    color: #0f172a;
}

#recruiterView .art2-source-devto {
    background: rgba(15, 23, 42, 0.92);
    border-color: rgba(15, 23, 42, 0.92);
    color: #ffffff;
}
#recruiterView .art2-source-devto i {
    color: #ffffff;
}

#recruiterView .art2-source-substack {
    background: rgba(255, 102, 25, 0.10);
    border-color: rgba(255, 102, 25, 0.32);
    color: #c2410c;
}
#recruiterView .art2-source-substack i {
    color: #ea580c;
}

#recruiterView .art2-source-linkedin {
    background: rgba(10, 102, 194, 0.10);
    border-color: rgba(10, 102, 194, 0.30);
    color: #0a66c2;
}
#recruiterView .art2-source-linkedin i {
    color: #0a66c2;
}

#recruiterView .art2-source-hashnode {
    background: rgba(33, 117, 244, 0.10);
    border-color: rgba(33, 117, 244, 0.30);
    color: #2962ff;
}
#recruiterView .art2-source-hashnode i {
    color: #2962ff;
}

#recruiterView .art2-title {
    margin: 0;
    font-family: var(--font-head);
    color: var(--rec-text);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.1px;
}

#recruiterView .art2-desc {
    margin: 0;
    color: var(--rec-muted);
    font-size: 13px;
    line-height: 1.55;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#recruiterView .art2-foot {
    margin-top: auto;
    padding-top: 6px;
    display: flex;
    justify-content: flex-end;
}

#recruiterView .art2-read {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0f766e;
    font-weight: 950;
    font-size: 12px;
    transition: gap 0.15s ease, color 0.15s ease;
}

#recruiterView .art2-card:hover .art2-read {
    gap: 12px;
    color: #0f172a;
}

#recruiterView .art2-read i {
    font-size: 11px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    #recruiterView .stack2-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    #recruiterView .proj2-grid,
    #recruiterView .art2-grid,
    #recruiterView .stack2-grid {
        grid-template-columns: 1fr;
    }

    #recruiterView .proj2-card-featured {
        grid-column: auto;
    }

    #recruiterView .proj2-card-featured .proj2-title {
        font-size: 17px;
    }

    #recruiterView .proj2-foot {
        align-items: stretch;
    }

    #recruiterView .proj2-link {
        width: 100%;
        justify-content: center;
    }

    #recruiterView .exp2-item {
        grid-template-columns: 22px 1fr;
        gap: 12px;
    }

    #recruiterView .exp2-card {
        padding: 14px 14px 12px;
    }

    #recruiterView .exp2-role {
        font-size: 15px;
    }

    #recruiterView .art2-top {
        flex-wrap: wrap;
    }
}

/* ============================================================
   ZEN SHELL — minimal centered CLI surface (tech mode landing)
   ============================================================ */

/* --- mode visibility / animations --- */
body.mode-tech #zenShell { display: flex; }
body.mode-tech #ide      { display: grid; }

/* When zen is active, hide IDE and animate zen in. */
body.mode-tech.tech-shell-zen #zenShell {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    visibility: visible;
}
body.mode-tech.tech-shell-zen #ide {
    opacity: 0;
    transform: scale(1.02);
    visibility: hidden;
    pointer-events: none;
}

/* When IDE is active, hide zen and animate IDE in. */
body.mode-tech.tech-shell-ide #zenShell {
    opacity: 0;
    transform: scale(0.96);
    visibility: hidden;
    pointer-events: none;
}
body.mode-tech.tech-shell-ide #ide {
    opacity: 1;
    transform: scale(1);
    visibility: visible;
    pointer-events: auto;
}

#zenShell,
body.mode-tech #ide {
    transition:
        opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s linear 0.42s;
}
body.mode-tech.tech-shell-zen #zenShell,
body.mode-tech.tech-shell-ide #ide {
    transition:
        opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s linear 0s;
}

/* --- shell shell --- */
.zen-shell {
    position: fixed;
    inset: 0;
    z-index: 5;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background:
        radial-gradient(1200px 700px at 18% 12%, rgba(31, 81, 255, 0.18), transparent 60%),
        radial-gradient(900px 600px at 88% 90%, rgba(57, 255, 20, 0.10), transparent 65%),
        linear-gradient(180deg, #07071a 0%, #04040f 100%);
    color: var(--text-bright);
    font-family: var(--font-body);
    font-optical-sizing: auto;
    overflow: hidden;
}

.zen-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55), transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55), transparent 75%);
    pointer-events: none;
}

.zen-bg-orb {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
    pointer-events: none;
    animation: zenOrbFloat 12s ease-in-out infinite;
}
.zen-bg-orb-1 {
    top: -120px;
    left: -120px;
    background: radial-gradient(circle, rgba(31, 81, 255, 0.55), transparent 70%);
}
.zen-bg-orb-2 {
    bottom: -160px;
    right: -120px;
    background: radial-gradient(circle, rgba(57, 255, 20, 0.32), transparent 70%);
    animation-delay: -4s;
}

@keyframes zenOrbFloat {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50%      { transform: translate3d(20px, -22px, 0) scale(1.04); }
}

/* --- top bar --- */
.zen-topbar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    background: rgba(8, 8, 22, 0.45);
}

.zen-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-bright);
}
.zen-brand i {
    color: var(--blue);
    text-shadow: var(--blue-glow);
    font-size: 14px;
}
.zen-brand-name .tp-user {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: 0.02em;
}
.zen-brand-tag {
    font-family: var(--font-head);
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 4px;
}

.zen-ide-btn {
    border: 1px solid rgba(57, 255, 20, 0.32);
    background: rgba(57, 255, 20, 0.08);
    color: #e6ffe0;
    padding: 8px 14px;
    border-radius: 10px;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.zen-ide-btn:hover {
    transform: translateY(-1px);
    background: rgba(57, 255, 20, 0.16);
    border-color: rgba(57, 255, 20, 0.55);
    box-shadow: 0 0 22px rgba(57, 255, 20, 0.20);
}

/* IDE titlebar -> Zen toggle button */
.zen-toggle-btn {
    margin-right: 10px;
    border: 1px solid rgba(57, 255, 20, 0.28);
    background: rgba(57, 255, 20, 0.06);
    color: #d6ffd0;
    padding: 4px 10px;
    border-radius: 8px;
    font-family: var(--font);
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.zen-toggle-btn:hover {
    transform: translateY(-1px);
    background: rgba(57, 255, 20, 0.14);
    border-color: rgba(57, 255, 20, 0.5);
}
.zen-toggle-btn i {
    font-size: 10px;
}

/* --- stage --- */
.zen-stage {
    position: relative;
    z-index: 2;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 22px 32px;
    gap: 18px;
    overflow-y: auto;
}

.zen-greet {
    width: 100%;
    max-width: 880px;
    text-align: center;
}
.zen-greet-line {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-head);
    font-size: 15px;
    color: rgba(230, 235, 244, 0.92);
}
.zen-greet-line .tp-dollar { color: var(--green); font-family: var(--font-mono); }
.zen-greet-text {
    font-weight: 400;
}
.zen-greet-sub {
    font-family: var(--font-body);
    font-optical-sizing: auto;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.1px;
}

/* --- command palette --- */
.zen-palette {
    width: 100%;
    max-width: 880px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.zen-cmd-chip {
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-bright);
    padding: 8px 12px;
    border-radius: 999px;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition:
        transform 0.14s ease,
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        box-shadow 0.2s ease;
}
.zen-cmd-chip i {
    color: var(--blue);
    font-size: 11px;
    transition: color 0.18s ease;
}
.zen-cmd-chip:hover {
    transform: translateY(-1px);
    background: rgba(31, 81, 255, 0.10);
    border-color: rgba(31, 81, 255, 0.45);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(31, 81, 255, 0.20);
}
.zen-cmd-chip:hover i { color: var(--green); }
.zen-cmd-chip:active { transform: translateY(0); }

/* --- console (the centered CLI card) --- */
.zen-console {
    position: relative;
    width: 100%;
    max-width: 880px;
    background: linear-gradient(180deg, rgba(13, 13, 34, 0.85) 0%, rgba(7, 7, 26, 0.85) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: hidden;
    backdrop-filter: blur(10px);
}
.zen-console::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(31, 81, 255, 0.18), transparent 35%, transparent 65%, rgba(57, 255, 20, 0.10));
    mix-blend-mode: screen;
    opacity: 0.55;
}

.zen-console-output {
    position: relative;
    z-index: 1;
    max-height: 280px;
    min-height: 0;
    overflow-y: auto;
    padding: 14px 18px 6px;
}
/* When termOutput is reparented inside zen, neutralize its own padding/border. */
.zen-console-output > #termOutput,
.zen-console-output #termOutput {
    padding: 0;
    background: transparent;
    border: none;
}
.zen-console-output:empty {
    padding: 0;
    min-height: 0;
}

.zen-console-input {
    position: relative;
    z-index: 1;
    padding: 14px 18px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.18);
}
.zen-console-input #termInputLine {
    padding: 0;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
}
.zen-console-output,
.zen-console-output #termOutput,
.zen-console-input,
.zen-console-input #termInputLine,
.zen-console-input .term-prompt-text,
.zen-console-input #termInput {
    font-family: var(--font-mono);
}
.zen-console-input .term-prompt-text {
    font-size: 13px;
}
.zen-console-input #termInput {
    flex: 1 1 auto;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-bright);
    font-size: 14px;
    font-weight: 600;
    caret-color: var(--green);
}

/* Pulsing "Press Enter" hint */
.zen-enter-hint {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    color: rgba(230, 235, 244, 0.88);
    background: rgba(57, 255, 20, 0.08);
    border: 1px solid rgba(57, 255, 20, 0.32);
    padding: 6px 10px;
    border-radius: 999px;
    opacity: 0;
    transform: translateY(4px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.zen-enter-hint kbd {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-bottom-width: 2px;
    border-radius: 6px;
    padding: 1px 6px;
    font-family: var(--font);
    font-size: 11px;
    color: var(--text-bright);
}
.zen-enter-hint-visible {
    opacity: 1;
    transform: translateY(0);
    animation: zenHintPulse 1.6s ease-in-out infinite;
}
@keyframes zenHintPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.25); }
    50%      { box-shadow: 0 0 0 6px rgba(57, 255, 20, 0); }
}

/* --- foot --- */
.zen-foot {
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
}
.zen-foot kbd {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom-width: 2px;
    border-radius: 5px;
    padding: 1px 5px;
    font-family: var(--font);
    font-size: 10.5px;
    color: var(--text-bright);
}
.zen-foot-sep { color: rgba(255, 255, 255, 0.18); }
.zen-foot-mono {
    font-weight: 800;
    color: var(--text-bright);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 0 5px;
}

/* --- responsive --- */
@media (max-width: 720px) {
    .zen-topbar { padding: 12px 14px; }
    .zen-brand-tag { display: none; }
    .zen-stage { padding: 18px 14px 24px; gap: 14px; }
    .zen-console-output { max-height: 240px; padding: 12px 14px 4px; }
    .zen-console-input { padding: 12px 14px 14px; }
    .zen-enter-hint { right: 10px; bottom: 10px; }
    .zen-foot { flex-wrap: wrap; justify-content: center; gap: 6px; }
}

/* ============================================================
   ZEN SHELL — patches: desktop expansion + mobile hint + owl
   ============================================================ */

/* Topbar made positioning-aware for absolutely-centered owl. */
.zen-topbar { position: relative; }

/* Owl mascot — sits dead center of the topbar */
.zen-owl {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: var(--green);
    pointer-events: none;
    user-select: none;
    filter: drop-shadow(0 0 6px rgba(57, 255, 20, 0.35));
    transition: transform 0.25s ease, filter 0.25s ease;
}
.zen-owl-svg {
    width: 56px;
    height: 44px;
    overflow: visible;
}

/* Pupils translate via CSS transform; transform-box scopes the origin
   to each pupil's own box so translate is local. */
.owl-pupil {
    transform-box: fill-box;
    transform-origin: center;
    transition: transform 0.08s linear;
    will-change: transform;
}

/* Blink animation — squashes the eyes briefly */
.zen-owl.owl-blink .owl-eye,
.zen-owl.owl-blink .owl-pupil {
    transform-box: fill-box;
    transform-origin: center;
    animation: owlBlink 0.18s ease-in-out;
}
@keyframes owlBlink {
    0%, 100% { transform: scaleY(1); }
    50%      { transform: scaleY(0.08); }
}

/* Slight idle bob */
.zen-owl {
    animation: zenOwlBob 4.5s ease-in-out infinite;
}
@keyframes zenOwlBob {
    0%, 100% { transform: translate(-50%, -50%); }
    50%      { transform: translate(-50%, calc(-50% - 2px)); }
}

/* ---------- Console expansion (desktop) ---------- */
.zen-stage {
    /* Push content slightly up from dead-center so the console doesn't
       feel orphaned in tall viewports. */
    justify-content: flex-start;
    padding-top: clamp(28px, 6vh, 72px);
}

.zen-console {
    /* Use available width on big screens */
    max-width: clamp(720px, 80vw, 1080px);
    width: 100%;
}

.zen-palette {
    max-width: clamp(720px, 80vw, 1080px);
}

.zen-greet {
    max-width: clamp(720px, 80vw, 1080px);
}

.zen-console-output {
    /* Substantial vertical real-estate so terminal output breathes */
    min-height: clamp(220px, 38vh, 440px);
    max-height: clamp(260px, 56vh, 640px);
}

/* Override earlier rule: keep min-height even when empty so the card
   has presence on landing. */
.zen-console-output:empty {
    padding: 14px 18px 6px;
    min-height: clamp(220px, 38vh, 440px);
}

/* ---------- Press-Enter hint: don't overlap the input ---------- */
/* When the hint is visible on desktop, give the input room on the right
   so the absolute-positioned hint never sits over typed text. */
.zen-console:has(.zen-enter-hint-visible) .zen-console-input {
    padding-right: 200px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .zen-owl-svg { width: 48px; height: 38px; }
}

@media (max-width: 720px) {
    .zen-stage {
        padding-top: 18px;
        gap: 12px;
    }

    .zen-console-output {
        min-height: clamp(180px, 36vh, 320px);
        max-height: clamp(220px, 48vh, 380px);
    }
    .zen-console-output:empty {
        min-height: clamp(180px, 36vh, 320px);
    }

    /* On mobile, let the hint sit BELOW the input — never overlaps. */
    .zen-enter-hint {
        position: static;
        margin: 0 auto 14px;
        align-self: center;
        transform: translateY(2px);
    }
    .zen-enter-hint-visible {
        transform: translateY(0);
    }

    /* Cancel the desktop right-padding hack on mobile. */
    .zen-console:has(.zen-enter-hint-visible) .zen-console-input {
        padding-right: 14px;
    }

    /* Owl shrinks on small screens */
    .zen-owl-svg { width: 40px; height: 32px; }
    .zen-brand-name { font-size: 12px; }
}

@media (max-width: 460px) {
    /* On very small screens, hide owl to keep topbar uncluttered */
    .zen-owl { display: none; }
}

/* ============================================================
   CUSTOM CURSOR — pointer + click ripple
   Active only in tech mode on fine-pointer devices.
   ============================================================ */

/* Hide native cursor in tech mode; recruiter view keeps the OS cursor. */
body.mode-tech,
body.mode-tech * {
    cursor: none !important;
}

/* Custom cursor — fixed, GPU-accelerated, top of stacking.
   Hot-point sits near the click ripple (top-left of svg), so we
   offset by ~6px so the visual click point aligns with the OS cursor. */
.zen-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    margin-left: -6px;
    margin-top: -6px;
    color: var(--green);
    pointer-events: none;
    z-index: 100000;
    display: none;
    transition:
        opacity 0.18s ease,
        color 0.18s ease,
        filter 0.18s ease;
    filter: drop-shadow(0 0 5px rgba(57, 255, 20, 0.55));
    will-change: transform;
}

body.mode-tech .zen-cursor { display: block; }

.zen-cursor-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* Ripple arcs — base opacity + subtle pulse on hover */
.zen-cursor .zc-ripple {
    transition: opacity 0.2s ease, stroke 0.2s ease;
}
.zen-cursor .zc-ripple-near { opacity: 0.95; }
.zen-cursor .zc-ripple-far  { opacity: 0.55; }

.zen-cursor .zc-arrow {
    transition: fill 0.18s ease, transform 0.12s ease;
    transform-box: fill-box;
    transform-origin: 12px 12px;
}

/* Hover state — pointer body + ripples shift to blue accent */
.zen-cursor.zen-cursor-hover {
    color: var(--blue);
    filter: drop-shadow(0 0 9px rgba(31, 81, 255, 0.65));
}
.zen-cursor.zen-cursor-hover .zc-ripple-near { opacity: 1; }
.zen-cursor.zen-cursor-hover .zc-ripple-far  { opacity: 0.85; }

/* Click pulse — arrow shrinks slightly, ripples flare */
.zen-cursor.zen-cursor-down .zc-arrow {
    transform: scale(0.88);
}
.zen-cursor.zen-cursor-down .zc-ripple-near { opacity: 1; stroke-width: 2.1; }
.zen-cursor.zen-cursor-down .zc-ripple-far  { opacity: 1; stroke-width: 1.8; }

/* Mouse leaves viewport — fade out */
.zen-cursor.zen-cursor-out { opacity: 0; }

/* ============================================================
   OWL — punchier eyes (more noticeable tracking)
   ============================================================ */
.zen-owl {
    /* Stronger glow so the mascot reads at a glance */
    filter: drop-shadow(0 0 7px rgba(57, 255, 20, 0.55));
}

.zen-owl .owl-pupil {
    filter: drop-shadow(0 0 1.6px rgba(57, 255, 20, 0.85));
}

.zen-owl .owl-glint {
    transform-box: fill-box;
    transform-origin: center;
    transition: transform 0.08s linear;
    will-change: transform;
}

/* Subtle iris pulse for liveliness — desaturated so it doesn't distract */
.zen-owl .owl-eye {
    animation: owlEyePulse 3.4s ease-in-out infinite;
    transform-box: fill-box;
    transform-origin: center;
}
.zen-owl .owl-eye-right { animation-delay: -1.7s; }

@keyframes owlEyePulse {
    0%, 100% { stroke-opacity: 0.85; }
    50%      { stroke-opacity: 1; }
}

/* During blink, glints disappear for a beat too */
.zen-owl.owl-blink .owl-glint {
    opacity: 0;
    transition: opacity 0.05s linear;
}

/* Touch / coarse pointer fallback — restore native cursor. */
@media (hover: none) and (pointer: coarse) {
    body.mode-tech,
    body.mode-tech * {
        cursor: auto !important;
    }
    .zen-cursor {
        display: none !important;
    }
}
