/* =========================================================
   ishva.works — Portfolio Design System
   Aesthetic: "Signal Lab" — obsidian + violet + mint
   Type: Syne (display) + DM Sans (body)
   ========================================================= */

:root {
    --bg: #07070c;
    --bg-elevated: #0e0e16;
    --bg-card: #12121c;
    --bg-card-hover: #181824;
    --bg-alt: #0a0a12;

    --primary: #8b6cff;
    --primary-soft: rgba(139, 108, 255, 0.14);
    --primary-glow: rgba(139, 108, 255, 0.45);
    --accent: #3dffa8;
    --accent-soft: rgba(61, 255, 168, 0.12);
    --accent-glow: rgba(61, 255, 168, 0.35);
    --warm: #ffb84d;

    --text: #f2f2f7;
    --text-muted: #9a9aaf;
    --text-dim: #6b6b80;

    --border: rgba(255, 255, 255, 0.07);
    --border-strong: rgba(255, 255, 255, 0.12);

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-full: 999px;

    --font-display: "Syne", system-ui, sans-serif;
    --font-body: "DM Sans", system-ui, sans-serif;

    --nav-h: 76px;
    --container: 1180px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --transition: 0.35s var(--ease);

    --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.35);
    --shadow-glow: 0 0 40px var(--primary-glow);
}

/* --- Reset --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-h);
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.has-custom-cursor,
body.has-custom-cursor a,
body.has-custom-cursor button {
    cursor: none;
}

img {
    max-width: 100%;
    display: block;
}

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

ul { list-style: none; }

button {
    font-family: inherit;
    border: none;
    background: none;
    color: inherit;
    cursor: pointer;
}

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

/* --- Scroll progress --- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    z-index: 9999;
    transition: width 0.1s linear;
}

/* --- Custom cursor --- */
.cursor,
.cursor-follower {
    display: none;
}

@media (pointer: fine) {
    .cursor,
    .cursor-follower {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        border-radius: 50%;
        pointer-events: none;
        z-index: 10000;
        mix-blend-mode: difference;
    }

    .cursor {
        width: 8px;
        height: 8px;
        background: #fff;
        transform: translate(-50%, -50%);
    }

    .cursor-follower {
        width: 36px;
        height: 36px;
        border: 1.5px solid rgba(255, 255, 255, 0.7);
        transform: translate(-50%, -50%);
        transition: width 0.25s var(--ease), height 0.25s var(--ease), background 0.25s, border-color 0.25s;
    }

    .cursor-follower.hover {
        width: 56px;
        height: 56px;
        background: rgba(255, 255, 255, 0.08);
        border-color: #fff;
    }
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
    letter-spacing: -0.02em;
}

.section {
    padding: 110px 6%;
    position: relative;
}

.section-alt {
    background: var(--bg-alt);
}

.section-header {
    max-width: var(--container);
    margin: 0 auto 3.5rem;
}

.section-index {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0.6rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 520px;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-h);
    padding: 0 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(7, 7, 12, 0.82);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-bottom-color: var(--border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    z-index: 1001;
}

.logo-mark {
    color: var(--accent);
    font-size: 1.1rem;
}

.logo-dot {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.35rem 1.6rem;
}

.nav-link {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 0.35rem 0;
    transition: color 0.25s;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

.nav-link.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius-full);
    background: var(--primary-soft);
    border: 1px solid rgba(139, 108, 255, 0.35);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    transition: var(--transition);
}

.nav-cta:hover {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 8px 24px var(--primary-glow);
}

.mobile-menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    place-items: center;
    z-index: 1001;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: var(--transition);
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: "";
    position: absolute;
    left: 0;
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.mobile-menu-btn.open .hamburger {
    background: transparent;
}

.mobile-menu-btn.open .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-menu-btn.open .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    padding: calc(var(--nav-h) + 40px) 6% 80px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    opacity: 0.45;
}

.hero-glow-1 {
    width: 420px;
    height: 420px;
    background: var(--primary);
    top: 10%;
    left: -8%;
    animation: glowFloat 12s ease-in-out infinite alternate;
}

.hero-glow-2 {
    width: 360px;
    height: 360px;
    background: var(--accent);
    bottom: 5%;
    right: -5%;
    opacity: 0.25;
    animation: glowFloat 14s ease-in-out infinite alternate-reverse;
}

@keyframes glowFloat {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(30px, 40px) scale(1.08); }
}

.hero-inner {
    max-width: var(--container);
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.availability-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.95rem;
    border-radius: var(--radius-full);
    background: var(--accent-soft);
    border: 1px solid rgba(61, 255, 168, 0.3);
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 1.4rem;
    letter-spacing: 0.01em;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 var(--accent-glow);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 var(--accent-glow); }
    70% { box-shadow: 0 0 0 10px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
}

.hero-greeting {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 0.6rem;
}

.hero-name {
    font-size: clamp(2.8rem, 6.5vw, 4.6rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 0.95;
    margin-bottom: 1.25rem;
}

.hero-name-accent {
    background: linear-gradient(135deg, #fff 10%, var(--primary) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-role-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    margin-bottom: 1.25rem;
    min-height: 2rem;
}

.role-label {
    color: var(--text-dim);
    font-size: 1.15rem;
}

.typewriter-text {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.4vw, 1.55rem);
    font-weight: 700;
    color: var(--accent);
}

.hero-subtext {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 540px;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.45rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #6a4dff);
    color: #fff;
    box-shadow: 0 10px 30px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px var(--primary-glow);
}

.btn-ghost {
    background: transparent;
    border-color: var(--border-strong);
    color: var(--text);
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
    transform: translateY(-3px);
}

.btn-icon {
    width: 48px;
    height: 48px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    color: var(--text-muted);
}

.btn-icon:hover {
    color: #fff;
    border-color: var(--primary);
    background: var(--primary-soft);
    transform: translateY(-3px);
}

/* Portrait */
.hero-visual {
    display: flex;
    justify-content: center;
}

.portrait-frame {
    position: relative;
    width: min(380px, 100%);
    aspect-ratio: 1;
}

.portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 32% 68% 58% 42% / 42% 32% 68% 58%;
    border: 3px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-card), 0 0 60px rgba(139, 108, 255, 0.2);
    position: relative;
    z-index: 2;
    animation: morph 10s ease-in-out infinite;
}

@keyframes morph {
    0%, 100% { border-radius: 32% 68% 58% 42% / 42% 32% 68% 58%; }
    50% { border-radius: 58% 42% 32% 68% / 58% 68% 32% 42%; }
}

.portrait-ring,
.portrait-ring-2 {
    position: absolute;
    inset: -12px;
    border: 1px dashed rgba(139, 108, 255, 0.35);
    border-radius: 50%;
    animation: spin 24s linear infinite;
    z-index: 1;
}

.portrait-ring-2 {
    inset: -28px;
    border-color: rgba(61, 255, 168, 0.2);
    animation-direction: reverse;
    animation-duration: 32s;
}

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

.floating-chip {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.9rem;
    background: rgba(18, 18, 28, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
    box-shadow: var(--shadow-card);
    animation: chipFloat 5s ease-in-out infinite;
}

.floating-chip i { color: var(--accent); }

.chip-1 { top: 12%; left: -8%; animation-delay: 0s; }
.chip-2 { top: 48%; right: -12%; animation-delay: 1.2s; }
.chip-3 { bottom: 10%; left: 4%; animation-delay: 2s; }

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

/* Stats bar */
.stats-bar {
    max-width: var(--container);
    margin: 3.5rem auto 0;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 1.75rem;
    background: rgba(18, 18, 28, 0.7);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    position: relative;
    z-index: 1;
}

.stat-item {
    flex: 1;
    min-width: 120px;
    text-align: center;
    padding: 0.5rem;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    background: linear-gradient(135deg, #fff, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    margin-bottom: 0.35rem;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    background: var(--border-strong);
    align-self: stretch;
}

.scroll-hint {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-dim);
    z-index: 1;
    animation: bounce 2.2s infinite;
}

.scroll-hint i { font-size: 0.7rem; }

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* --- About Bento --- */
.bento-grid {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.25rem;
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.bento-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(139, 108, 255, 0.08), transparent 40%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.bento-card:hover {
    border-color: rgba(139, 108, 255, 0.35);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.bento-card:hover::before { opacity: 1; }

.bento-main {
    grid-row: span 2;
}

.bento-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.bento-main h3 {
    font-size: 1.55rem;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.bento-main p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.bento-main p:last-child { margin-bottom: 0; }

.focus-list li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
}

.focus-list li:last-child { border-bottom: none; }

.focus-list i {
    color: var(--accent);
    font-size: 0.75rem;
}

.bento-terminal {
    padding: 0;
    background: #08080f;
    font-family: "Cascadia Code", "Fira Code", "JetBrains Mono", monospace;
}

.terminal-chrome {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.85rem 1rem;
    background: #12121c;
    border-bottom: 1px solid var(--border);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.terminal-name {
    margin-left: auto;
    font-size: 0.72rem;
    color: var(--text-dim);
}

.terminal-code {
    padding: 1.1rem 1.2rem 1.3rem;
    font-size: 0.78rem;
    line-height: 1.65;
    color: #e8e8f0;
    overflow-x: auto;
}

.tk { color: #c792ea; }
.ts { color: #c3e88d; }
.tc { color: #546e7a; }

.quick-facts {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.fact {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.fact-k {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    font-weight: 600;
}

.fact-v {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

/* --- Projects --- */
.project-filters {
    max-width: var(--container);
    margin: 0 auto 2.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.filter-btn {
    padding: 0.55rem 1.15rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 600;
    transition: var(--transition);
}

.filter-btn:hover {
    color: #fff;
    border-color: var(--border-strong);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary), #6a4dff);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 20px var(--primary-glow);
}

.projects-grid {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition), opacity 0.35s, transform 0.35s;
}

.project-card.is-hidden {
    display: none;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(61, 255, 168, 0.35);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
}

.project-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
}

.project-media {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--bg-elevated);
}

.project-featured .project-media {
    height: 100%;
    min-height: 320px;
}

.project-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.project-card:hover .project-media img {
    transform: scale(1.06);
}

.project-media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(7, 7, 12, 0.55) 100%);
    pointer-events: none;
}

/* Gradient media when no screenshot asset */
.media-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    min-height: 220px;
}

.media-placeholder .media-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    font-size: 1.75rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    z-index: 1;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.media-placeholder .media-label {
    z-index: 1;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.media-genai {
    background:
        radial-gradient(circle at 20% 30%, rgba(139, 108, 255, 0.55), transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(61, 255, 168, 0.25), transparent 40%),
        linear-gradient(145deg, #16122a, #0a0a14);
}

.media-fullstack {
    background:
        radial-gradient(circle at 25% 40%, rgba(61, 255, 168, 0.4), transparent 45%),
        radial-gradient(circle at 75% 60%, rgba(139, 108, 255, 0.3), transparent 40%),
        linear-gradient(145deg, #0f1a1a, #0a0a14);
}

.media-trading {
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 184, 77, 0.35), transparent 45%),
        radial-gradient(circle at 70% 75%, rgba(139, 108, 255, 0.3), transparent 40%),
        linear-gradient(145deg, #1a1420, #0a0a14);
}

.project-body code {
    font-family: "Cascadia Code", "Fira Code", monospace;
    font-size: 0.85em;
    padding: 0.1em 0.35em;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--accent);
}

.project-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary), #6a4dff);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.project-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-featured .project-body {
    padding: 2rem;
    justify-content: center;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.85rem;
    margin-bottom: 0.75rem;
}

.project-domain {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
}

.project-impact {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.project-body h3 {
    font-size: 1.35rem;
    margin-bottom: 0.65rem;
}

.project-featured .project-body h3 {
    font-size: 1.75rem;
}

.project-body > p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.1rem;
    flex: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.tag {
    padding: 0.28rem 0.65rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    background: rgba(255, 255, 255, 0.02);
    transition: var(--transition);
}

.link-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

.link-btn.primary {
    background: var(--primary-soft);
    border-color: rgba(139, 108, 255, 0.4);
    color: #d4c8ff;
}

.link-btn.primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* --- Experience --- */
.exp-stack {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.exp-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1.5rem;
    padding: 1.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    position: relative;
}

.exp-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.5rem;
    bottom: 1.5rem;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.3s;
}

.exp-card:hover {
    border-color: rgba(139, 108, 255, 0.35);
    transform: translateX(4px);
    box-shadow: var(--shadow-card);
}

.exp-card:hover::before { opacity: 1; }

.exp-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.exp-date {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
}

.exp-type {
    display: inline-flex;
    width: fit-content;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
    background: var(--primary-soft);
    border: 1px solid rgba(139, 108, 255, 0.3);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #c9bbff;
}

.exp-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 1rem;
    margin-bottom: 1rem;
}

.exp-title-row h3 {
    font-size: 1.25rem;
}

.exp-company {
    font-weight: 600;
    color: var(--text-muted);
}

.exp-bullets {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-bottom: 1.1rem;
}

.exp-bullets li {
    position: relative;
    padding-left: 1.15rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.exp-bullets li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--primary);
}

.exp-bullets strong {
    color: var(--text);
    font-weight: 600;
}

.exp-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.exp-tech span {
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* --- Education --- */
.edu-grid {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.edu-card {
    display: flex;
    gap: 1.25rem;
    padding: 1.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.edu-card:hover {
    transform: translateY(-5px);
    border-color: rgba(61, 255, 168, 0.3);
    box-shadow: var(--shadow-card);
}

.edu-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--primary-soft);
    border: 1px solid rgba(139, 108, 255, 0.3);
    color: var(--primary);
    font-size: 1.35rem;
}

.edu-year {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
}

.edu-body h3 {
    font-size: 1.25rem;
    margin: 0.35rem 0 0.25rem;
}

.edu-field {
    color: var(--text);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.edu-school {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 0.85rem;
}

.edu-gpa {
    display: inline-flex;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    background: var(--accent-soft);
    border: 1px solid rgba(61, 255, 168, 0.25);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.edu-gpa strong {
    color: var(--accent);
    margin: 0 0.2rem;
}

/* --- Skills --- */
.skills-marquee {
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 2.5rem;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: marquee 35s linear infinite;
}

.marquee-track span {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-dim);
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.marquee-track span::after {
    content: "◆";
    margin-left: 1.5rem;
    color: var(--primary);
    font-size: 0.65rem;
    vertical-align: middle;
}

@keyframes marquee {
    to { transform: translateX(-50%); }
}

.skills-grid {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.skill-group {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: var(--transition);
}

.skill-group:hover {
    border-color: rgba(139, 108, 255, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(139, 108, 255, 0.1);
}

.skill-group-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.15rem;
}

.skill-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 1rem;
}

.skill-group-head h3 {
    font-size: 1.1rem;
}

.skill-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-badge {
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 500;
    transition: var(--transition);
}

.skill-badge:hover {
    background: var(--accent-soft);
    border-color: rgba(61, 255, 168, 0.4);
    color: var(--accent);
    transform: scale(1.05);
}

/* --- Certifications --- */
.certs-grid {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.cert-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    position: relative;
}

.cert-card:hover {
    transform: translateY(-6px);
    border-color: rgba(139, 108, 255, 0.4);
    box-shadow: var(--shadow-card);
}

.cert-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.15rem;
    display: grid;
    place-items: center;
    border-radius: 16px;
    font-size: 1.75rem;
}

.cert-logo.google {
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid rgba(61, 255, 168, 0.25);
}

.cert-logo.azure {
    background: var(--primary-soft);
    color: var(--primary);
    border: 1px solid rgba(139, 108, 255, 0.3);
}

.cert-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

.cert-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.cert-year {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-dim);
}

/* --- Contact --- */
.contact {
    padding-bottom: 80px;
}

.contact-panel {
    max-width: 820px;
    margin: 0 auto;
    padding: 3.5rem 2.5rem;
    text-align: center;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(139, 108, 255, 0.18), transparent 60%),
        var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 28px;
    position: relative;
    overflow: hidden;
}

.contact-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(160deg, rgba(139, 108, 255, 0.5), transparent 40%, rgba(61, 255, 168, 0.35));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.contact-header {
    margin-bottom: 2rem;
}

.contact-header .section-subtitle {
    margin: 0.75rem auto 0;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    position: relative;
    z-index: 1;
}

.contact-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 1rem 1.75rem;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary), #6a4dff);
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 12px 35px var(--primary-glow);
    transition: var(--transition);
}

.contact-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 18px 45px var(--primary-glow);
}

.contact-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
}

.contact-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 1.1rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.contact-chip:hover {
    color: var(--accent);
    border-color: rgba(61, 255, 168, 0.4);
    background: var(--accent-soft);
}

/* --- Footer --- */
.footer {
    border-top: 1px solid var(--border);
    padding: 2rem 6%;
    background: #05050a;
}

.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer-brand {
    font-family: var(--font-display);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-brand .logo-mark { color: var(--accent); }

.footer-copy {
    color: var(--text-dim);
    font-size: 0.85rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-social a:hover {
    color: #fff;
    border-color: var(--primary);
    background: var(--primary-soft);
}

/* --- Project private-repo note --- */
.link-note {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text-dim);
    padding: 0.35rem 0.7rem;
    border-radius: var(--radius-full);
    border: 1px dashed var(--border-strong);
    background: rgba(255, 255, 255, 0.02);
}

/* --- Back to top --- */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    color: var(--text);
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: var(--transition);
    z-index: 900;
    box-shadow: var(--shadow-card);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* --- Resume floating preview modal --- */
.resume-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 1.25rem;
}

.resume-modal[hidden] {
    display: none !important;
}

.resume-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 4, 10, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: resumeFadeIn 0.25s var(--ease);
}

.resume-modal-panel {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    height: min(88vh, 920px);
    display: flex;
    flex-direction: column;
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(139, 108, 255, 0.12);
    overflow: hidden;
    animation: resumeSlideIn 0.32s var(--ease);
}

.resume-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(139, 108, 255, 0.08), transparent);
    flex-shrink: 0;
}

.resume-modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.resume-modal-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.7rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 80, 80, 0.12);
    color: #ff8f8f;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.resume-modal-header h2 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
}

.resume-modal-sub {
    color: var(--text-dim);
    font-size: 0.8rem;
    margin-top: 0.15rem;
}

.resume-modal-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 0;
}

.resume-download-btn {
    padding: 0.55rem 0.95rem !important;
    font-size: 0.85rem !important;
}

.resume-close-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: var(--bg-card);
    color: var(--text);
    display: grid;
    place-items: center;
    transition: var(--transition);
}

.resume-close-btn:hover {
    background: rgba(255, 80, 80, 0.15);
    border-color: rgba(255, 80, 80, 0.4);
    color: #ff9b9b;
}

.resume-modal-body {
    position: relative;
    flex: 1;
    min-height: 0;
    background: #0a0a12;
}

.resume-modal-body object,
.resume-modal-body iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #111;
}

/* Never let author display: rules un-hide [hidden] content */
.resume-fallback[hidden],
#resume-fallback[hidden] {
    display: none !important;
}

.resume-fallback {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: none;
    place-content: center;
    gap: 0.85rem;
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
    background: rgba(10, 10, 18, 0.92);
    pointer-events: none;
}

.resume-fallback.is-visible {
    display: grid;
    pointer-events: auto;
}

.resume-fallback i {
    font-size: 2.5rem;
    color: #ff8f8f;
}

body.resume-modal-open {
    overflow: hidden;
}

@keyframes resumeFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes resumeSlideIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-visual {
        order: 1;
        margin-bottom: 1rem;
    }

    .hero-subtext {
        margin-left: auto;
        margin-right: auto;
    }

    .cta-buttons {
        justify-content: center;
    }

    .hero-role-row {
        justify-content: center;
    }

    .availability-pill {
        margin-left: auto;
        margin-right: auto;
    }

    .floating-chip.chip-2 { right: -4%; }
    .floating-chip.chip-1 { left: -2%; }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-main {
        grid-row: auto;
    }

    .project-featured {
        grid-template-columns: 1fr;
    }

    .project-featured .project-media {
        min-height: 240px;
    }

    .exp-card {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .resume-modal {
        padding: 0.5rem;
    }

    .resume-modal-panel {
        height: min(94vh, 100%);
        border-radius: var(--radius);
    }

    .resume-modal-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .resume-modal-actions {
        justify-content: space-between;
    }

    .resume-download-btn span {
        display: inline;
    }

    .resume-modal-header h2 {
        font-size: 0.95rem;
    }

    .mobile-menu-btn {
        display: grid;
    }

    .nav-links {
        position: fixed;
        inset: 0;
        top: 0;
        flex-direction: column;
        justify-content: center;
        gap: 1.5rem;
        background: rgba(7, 7, 12, 0.97);
        backdrop-filter: blur(20px);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        padding: 2rem;
    }

    .nav-links.open {
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        font-size: 1.25rem;
        font-family: var(--font-display);
        font-weight: 600;
    }

    .nav-link.active::after {
        display: none;
    }

    .section {
        padding: 80px 5%;
    }

    .hero {
        padding-top: calc(var(--nav-h) + 24px);
        padding-bottom: 100px;
    }

    .portrait-frame {
        width: min(280px, 85vw);
    }

    .floating-chip {
        font-size: 0.7rem;
        padding: 0.4rem 0.7rem;
    }

    .stats-bar {
        flex-direction: column;
        gap: 0;
    }

    .stat-divider {
        width: 100%;
        height: 1px;
    }

    .stat-item {
        padding: 0.85rem;
    }

    .projects-grid,
    .skills-grid,
    .edu-grid,
    .certs-grid {
        grid-template-columns: 1fr;
    }

    .scroll-hint {
        display: none;
    }

    .contact-panel {
        padding: 2.5rem 1.25rem;
    }

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

    body.has-custom-cursor,
    body.has-custom-cursor a,
    body.has-custom-cursor button {
        cursor: auto;
    }

    .cursor,
    .cursor-follower {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: 2.5rem;
    }

    .cta-buttons .btn-primary,
    .cta-buttons .btn-ghost {
        width: 100%;
        justify-content: center;
    }

    .project-filters {
        gap: 0.4rem;
    }

    .filter-btn {
        padding: 0.45rem 0.85rem;
        font-size: 0.8rem;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .marquee-track {
        animation: none;
    }

    .hire-bot-pulse,
    .hire-bot-launcher-glow {
        animation: none !important;
    }
}

/* =========================================================
   HireMe Bot — floating chat widget
   ========================================================= */
#hire-bot {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 1100;
    font-family: var(--font-body);
}

.hire-bot-launcher {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: min(320px, calc(100vw - 40px));
    padding: 0.7rem 1rem 0.7rem 0.7rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(139, 108, 255, 0.45);
    background: linear-gradient(135deg, rgba(18, 18, 28, 0.96), rgba(14, 14, 22, 0.98));
    color: var(--text);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(61, 255, 168, 0.08), 0 0 30px rgba(139, 108, 255, 0.18);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.hire-bot-launcher:hover {
    transform: translateY(-2px) scale(1.02);
    border-color: rgba(61, 255, 168, 0.5);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 40px rgba(139, 108, 255, 0.28);
}

.hire-bot-launcher.is-open {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.9);
}

.hire-bot-launcher-glow {
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 30% 40%, rgba(139, 108, 255, 0.25), transparent 55%),
        radial-gradient(circle at 80% 70%, rgba(61, 255, 168, 0.12), transparent 50%);
    animation: hireGlow 4s ease-in-out infinite alternate;
    pointer-events: none;
}

.hire-bot-launcher-icon {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, var(--primary), #5b3fd4);
    color: #fff;
    font-size: 1.05rem;
    flex-shrink: 0;
    box-shadow: 0 0 18px rgba(139, 108, 255, 0.45);
}

.hire-bot-launcher-text {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 0.1rem;
    min-width: 0;
}

.hire-bot-launcher-text strong {
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.hire-bot-launcher-text small {
    color: var(--text-dim);
    font-size: 0.72rem;
}

.hire-bot-pulse {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(61, 255, 168, 0.55);
    animation: hirePulse 2s ease-out infinite;
}

.hire-bot-panel {
    position: absolute;
    left: 0;
    bottom: 0;
    width: min(380px, calc(100vw - 28px));
    height: min(560px, calc(100vh - 100px));
    display: flex;
    flex-direction: column;
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(139, 108, 255, 0.12);
    overflow: hidden;
    animation: hirePanelIn 0.28s var(--ease);
}

.hire-bot-panel[hidden] {
    display: none !important;
}

.hire-bot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(139, 108, 255, 0.12), transparent);
    flex-shrink: 0;
}

.hire-bot-identity {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
}

.hire-bot-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, var(--primary), #4a32b0);
    color: #fff;
    flex-shrink: 0;
}

.hire-bot-header h2 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.hire-bot-status {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-dim);
    font-size: 0.72rem;
    margin-top: 0.15rem;
}

.hire-bot-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
    flex-shrink: 0;
}

.hire-bot-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: var(--bg-card);
    color: var(--text);
    display: grid;
    place-items: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.hire-bot-close:hover {
    background: rgba(255, 80, 80, 0.15);
    border-color: rgba(255, 80, 80, 0.4);
    color: #ff9b9b;
}

.hire-bot-messages {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    scroll-behavior: smooth;
}

.hire-msg {
    display: flex;
    max-width: 92%;
}

.hire-msg.user {
    align-self: flex-end;
}

.hire-msg.bot {
    align-self: flex-start;
}

.hire-bubble {
    padding: 0.7rem 0.85rem;
    border-radius: 14px;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--text);
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.hire-msg.bot .hire-bubble {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-bottom-left-radius: 5px;
}

.hire-msg.user .hire-bubble {
    background: linear-gradient(135deg, rgba(139, 108, 255, 0.85), #5b3fd4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom-right-radius: 5px;
    color: #fff;
}

.hire-bubble a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hire-msg.user .hire-bubble a {
    color: #d9fff0;
}

.hire-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.7rem;
}

.hire-chip {
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(139, 108, 255, 0.35);
    background: rgba(139, 108, 255, 0.1);
    color: var(--text);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.hire-chip:hover {
    background: rgba(139, 108, 255, 0.22);
    border-color: var(--primary);
}

.hire-bot-form {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 0.85rem 0.35rem;
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.hire-bot-form input {
    flex: 1;
    min-width: 0;
    padding: 0.7rem 0.85rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-strong);
    background: var(--bg-card);
    color: var(--text);
    font-family: inherit;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hire-bot-form input:focus {
    border-color: rgba(139, 108, 255, 0.65);
    box-shadow: 0 0 0 3px rgba(139, 108, 255, 0.15);
}

.hire-bot-form input:disabled {
    opacity: 0.65;
}

.hire-bot-send {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(145deg, var(--primary), #5b3fd4);
    color: #fff;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 6px 18px rgba(139, 108, 255, 0.35);
}

.hire-bot-send:hover:not(:disabled) {
    transform: scale(1.06);
}

.hire-bot-send:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.hire-bot-footnote {
    padding: 0 1rem 0.65rem;
    font-size: 0.68rem;
    color: var(--text-dim);
    text-align: center;
    flex-shrink: 0;
}

/* Typing dots */
.hire-typing .hire-bubble {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.85rem 1rem;
}

.hire-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text-dim);
    animation: hireTyping 1.1s ease-in-out infinite;
}

.hire-dot:nth-child(2) { animation-delay: 0.15s; }
.hire-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes hirePulse {
    0% { box-shadow: 0 0 0 0 rgba(61, 255, 168, 0.55); }
    70% { box-shadow: 0 0 0 12px rgba(61, 255, 168, 0); }
    100% { box-shadow: 0 0 0 0 rgba(61, 255, 168, 0); }
}

@keyframes hireGlow {
    from { opacity: 0.65; transform: scale(1); }
    to { opacity: 1; transform: scale(1.05); }
}

@keyframes hirePanelIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes hireTyping {
    0%, 80%, 100% { opacity: 0.35; transform: translateY(0); }
    40% { opacity: 1; transform: translateY(-3px); }
}

/* Avoid custom cursor fighting the chat inputs */
body.hire-bot-hover.has-custom-cursor,
body.hire-bot-hover.has-custom-cursor a,
body.hire-bot-hover.has-custom-cursor button,
body.hire-bot-hover.has-custom-cursor input {
    cursor: auto;
}

@media (max-width: 480px) {
    #hire-bot {
        left: 12px;
        bottom: 12px;
        right: 12px;
    }

    .hire-bot-launcher {
        width: 100%;
        max-width: none;
    }

    .hire-bot-launcher-text strong {
        white-space: normal;
        font-size: 0.84rem;
    }

    .hire-bot-panel {
        width: 100%;
        height: min(70vh, 560px);
        left: 0;
        right: 0;
    }

    /* Keep back-to-top clear of the launcher */
    .back-to-top {
        bottom: 88px;
    }
}
