:root {
    --bg: #ffffff;
    --bg-alt: #f5f7fb;
    --panel: #ffffff;
    --line: #e3e8f0;
    --text: #0f1729;
    --muted: #5b6679;
    --accent: #0d9488;
    --accent2: #4f46e5;
    --chip: #f1f4f9;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 17.5px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }
code, .mono { font-family: 'JetBrains Mono', monospace; }

/* NAV */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.85); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { font-weight: 900; font-size: 22px; }
.brand span { color: var(--accent); }
.nav nav { display: flex; gap: 22px; margin-left: auto; font-size: 14px; color: var(--muted); }
.nav nav a:hover { color: var(--text); }



/* DROPDOWN MENU */
.dropdown { position: relative; display: inline-block; }
.dropbtn { background: none; border: none; cursor: pointer; font: inherit; font-size: 14px; color: var(--muted); padding: 0; }
.dropbtn:hover { color: var(--text); }
.dropdown-content {
    display: none; position: absolute; background-color: var(--panel);
    min-width: 140px; box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 60; border-radius: 8px; border: 1px solid var(--line);
    overflow: hidden; top: 24px; left: -20px;
}
.dropdown-content a {
    color: var(--text); padding: 12px 16px; text-decoration: none;
    display: block; font-size: 14px;
}
.dropdown-content a:hover { background-color: var(--bg-alt); }
.dropdown:hover .dropdown-content { display: block; }

/* BUTTONS */
.btn {
    display: inline-block; border: none; cursor: pointer; font: inherit; font-weight: 600;
    padding: 11px 18px; border-radius: 10px; font-size: 14px; transition: .15s;
}
.btn-primary { background: linear-gradient(120deg, var(--accent), var(--accent2)); color: #ffffff; }
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); }

/* HERO */
.hero { padding: 60px 0 50px; background:
    radial-gradient(700px 400px at 80% -10%, rgba(129,140,248,.18), transparent),
    radial-gradient(600px 400px at 10% 10%, rgba(94,234,212,.10), transparent); }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.eyebrow { font-family: 'JetBrains Mono', monospace; color: var(--accent); font-size: 13px; letter-spacing: .5px; margin-bottom: 18px; font-weight: 500; }
.hero h1 { font-size: clamp(40px, 5.6vw, 66px); line-height: 1.03; font-weight: 900; letter-spacing: -1.5px; }
.lede { color: var(--muted); font-size: 20px; margin: 24px 0 30px; max-width: 620px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--muted); max-width: 480px; }

.hero-terminal { background: #0f1729; border: 1px solid #1f2940; border-radius: 14px; overflow: hidden; box-shadow: 0 24px 50px -28px rgba(15,23,41,.4); }
.hero-terminal .term-bar { border-bottom-color: #1f2940; }
.hero-terminal .term-bar em { color: #93a0bd; }
.hero-terminal .t-twin { color: #e6ebf5; }
.hero-terminal .t-user { color: #5eead4; }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.term-bar span { width: 11px; height: 11px; border-radius: 50%; background: #ff5f56; }
.term-bar span:nth-child(2){ background:#ffbd2e;} .term-bar span:nth-child(3){ background:#27c93f;}
.term-bar em { margin-left: auto; font-style: normal; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--muted); }
.term-body { padding: 18px; font-family: 'JetBrains Mono', monospace; font-size: 13px; }
.t-user { color: var(--accent); } .t-twin { color: var(--text); margin: 10px 0; }
.cursor { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* SECTIONS */
.section { padding: 48px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: 36px; font-weight: 900; letter-spacing: -.8px; margin-bottom: 8px; }
.section-title span { font-family: 'JetBrains Mono', monospace; color: var(--accent); font-size: 16px; margin-right: 10px; }
.section-sub { color: var(--muted); margin-bottom: 36px; font-size: 16px; }
.label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); }

/* ABOUT */
#about { padding-top: 100px; }
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 44px; }
.about-copy p { color: var(--muted); margin-bottom: 16px; }
.learning-badge { margin-top: 22px; padding: 16px; border: 1px dashed var(--line); border-radius: 12px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.skill-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-bottom: 14px; }
.skill-card h3 { font-size: 15px; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--chip); border: 1px solid var(--line); color: var(--text); font-size: 13px; padding: 5px 12px; border-radius: 20px; font-weight: 500; }
.chip-live { border-color: var(--accent); color: var(--accent); }

/* PROJECTS */
.filters { display: flex; gap: 8px; margin-bottom: 26px; flex-wrap: wrap; }
.filter { background: transparent; border: 1px solid var(--line); color: var(--muted); padding: 7px 15px; border-radius: 20px; cursor: pointer; font: inherit; font-size: 13px; }
.filter.active, .filter:hover { border-color: var(--accent); color: var(--text); }
.projects { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.project { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 24px; transition: .2s; }
.project:hover { border-color: var(--accent2); transform: translateY(-3px); }
.project-head h3 { font-size: 22px; font-weight: 800; }
.tagline { color: var(--muted); font-size: 14px; margin: 6px 0 16px; }
.ps { margin-bottom: 12px; }
.ps p { font-size: 14px; color: var(--muted); margin-top: 3px; }
.chips-tech { margin-top: 16px; }

/* BLOG ─────────────────────────────────────────────────────────────────── */

/* Featured post — prominent hero card */
.post-featured {
    display: block; text-decoration: none; color: inherit;
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, rgba(13,148,136,.05) 0%, rgba(79,70,229,.08) 100%);
    border: 1.5px solid rgba(79,70,229,.22);
    border-radius: 18px; padding: 36px 40px; margin-bottom: 30px;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
/* top accent bar */
.post-featured::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
}
.post-featured:hover {
    transform: translateY(-3px);
    border-color: var(--accent2);
    box-shadow: 0 16px 40px -10px rgba(79,70,229,.15);
}
.post-featured-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.featured-badge {
    display: inline-flex; align-items: center; gap: 5px;
    background: linear-gradient(120deg, var(--accent), var(--accent2));
    color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 1px;
    text-transform: uppercase; padding: 4px 12px; border-radius: 20px;
}
.post-featured .post-tag {
    font-size: 12px; font-weight: 600; color: var(--accent2);
    background: rgba(79,70,229,.08); padding: 3px 10px; border-radius: 20px;
    text-transform: uppercase; letter-spacing: .6px;
}
.post-featured h3 {
    font-size: clamp(20px, 2.4vw, 26px); font-weight: 900;
    letter-spacing: -.5px; line-height: 1.25; margin: 0 0 12px;
    color: var(--text);
}
.post-featured p { color: var(--muted); font-size: 15px; line-height: 1.65; max-width: 700px; }
.post-featured .read {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 20px; font-size: 13px; font-weight: 600;
    color: var(--accent2);
}

/* Grid cards */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post {
    display: flex; flex-direction: column;
    background: var(--panel); border: 1px solid var(--line);
    border-radius: 14px; padding: 24px; transition: .2s;
    text-decoration: none; color: inherit; position: relative; overflow: hidden;
}
.post::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    transform: scaleX(0); transform-origin: left; transition: transform .2s;
}
.post:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 10px 28px -6px rgba(13,148,136,.12); }
.post:hover::after { transform: scaleX(1); }
.post-tag {
    display: inline-block; font-size: 11px; font-weight: 700; color: var(--accent);
    background: rgba(13,148,136,.08); padding: 3px 10px; border-radius: 20px;
    text-transform: uppercase; letter-spacing: .6px; margin-bottom: 12px;
    align-self: flex-start;
}
.post h3 { font-size: 17px; font-weight: 800; line-height: 1.35; letter-spacing: -.3px; margin-bottom: 10px; }
.post p { color: var(--muted); font-size: 13.5px; line-height: 1.65; flex: 1; }
.read {
    display: flex; align-items: center; gap: 6px;
    margin-top: 16px; font-size: 12px; color: var(--muted); font-weight: 500;
}
.vbadge { display: inline-flex; align-items: center; background: var(--accent2); color: #fff; padding: 2px 9px; border-radius: 12px; font-weight: 700; font-size: 11px; margin-right: 4px; }

/* BOOKS ─────────────────────────────────────────────────────────────────── */
.book-card { position: relative; }
.book-reading-badge {
    display: inline-flex; align-items: center; gap: 5px;
    background: linear-gradient(120deg, var(--accent), var(--accent2));
    color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .6px;
    text-transform: uppercase; padding: 3px 10px; border-radius: 20px;
    margin-bottom: 12px;
}
.book-cover-wrap { margin-bottom: 14px; }
.book-cover { width: 64px; height: 88px; object-fit: cover; border-radius: 6px; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.book-author { font-size: 13px; color: var(--accent); font-weight: 600; margin-bottom: 8px !important; }

/* RESEARCH */
.citation { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 12px; padding: 26px; margin-bottom: 22px; }
.citation h3 { margin: 8px 0; font-size: 19px; }
.authors { color: var(--text); font-size: 14px; }
.venue { color: var(--muted); font-style: italic; font-size: 14px; margin-bottom: 12px; }
.note { color: var(--muted); font-size: 14px; }
.research-meta { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; }
.research-meta p { color: var(--muted); margin-top: 6px; }

/* CONTACT */
.contact { text-align: center; }
.contact h2 { font-size: 32px; font-weight: 800; max-width: 700px; margin: 0 auto 12px; }
.contact p { color: var(--muted); margin-bottom: 24px; }
.contact .hero-cta { justify-content: center; }
.footer { border-top: 1px solid var(--line); padding: 30px 0; color: var(--muted); font-size: 13px; text-align: center; }

/* GRAPH */
.graph-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 12px; position: relative; }
#skillGraph { width: 100%; height: auto; display: block; }
.g-edge { stroke: var(--line); stroke-width: 1; }
.g-edge.active { stroke: var(--accent); stroke-width: 2; }
#skillGraph.dim .g-edge:not(.active) { opacity: .12; }
#skillGraph.dim .g-node:not(.active) { opacity: .25; }
.g-node { cursor: pointer; }
.g-node text { font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 500; fill: var(--muted); pointer-events: none; }
.g-skill circle { fill: var(--accent); }
.g-project circle { fill: var(--accent2); stroke: #fff; stroke-width: 2; }
.g-node.active text { fill: var(--text); font-weight: 500; }
.graph-legend { display: flex; gap: 18px; justify-content: center; padding: 8px 0 4px; font-size: 12px; color: var(--muted); }
.graph-legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
.dot-skill { background: var(--accent); } .dot-proj { background: var(--accent2); }

/* ARTICLE */
.wrap-narrow { max-width: 720px; }
.article { padding: 70px 0 40px; }
.article h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin: 14px 0 10px; font-weight: 800; letter-spacing: -.5px; }
.article-meta { color: var(--muted); font-size: 14px; margin-bottom: 36px; }
.article-body p { color: #2b3445; margin-bottom: 18px; font-size: 17px; }
.article-body h2 { font-size: 22px; margin: 36px 0 12px; font-weight: 700; }
.article-body pre { background: #0c1120; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; overflow-x: auto; margin-bottom: 18px; }
.article-body pre code { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: #b6f4e6; white-space: pre; }
.article-cover { width: 100%; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 28px; }
.video-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 8px 0 26px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.video-embed iframe, .video-embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* GALLERY SLIDER */
.slider { position: relative; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); }
.slider-track { display: flex; align-items: stretch; transition: transform .5s cubic-bezier(.4,0,.2,1); }
.slide { flex: 0 0 100%; margin: 0; display: flex; flex-direction: column; }
.slide-media { position: relative; width: 100%; height: 440px; background: #000; }
.slide-media img, .slide-media video, .slide-media iframe { width: 100%; height: 100%; object-fit: cover; display: block; border: 0; }
.media-badge { position: absolute; top: 14px; left: 14px; z-index: 2; background: var(--accent2); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 14px; }
.slide-detail { padding: 18px 22px 22px; background: var(--panel); }
.slide-detail strong { display: block; font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.slide-detail p { color: var(--muted); font-size: 15px; margin: 0; }
.slider-btn { position: absolute; top: 220px; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: none; background: rgba(255,255,255,.92); color: #0f1729; font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.18); transition: .15s; z-index: 3; }
.slider-btn:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.slider-btn.prev { left: 16px; } .slider-btn.next { right: 16px; }
.slider-dots { position: absolute; top: 400px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.slider-dots button { width: 9px; height: 9px; border-radius: 50%; border: none; background: rgba(255,255,255,.6); cursor: pointer; padding: 0; box-shadow: 0 0 4px rgba(0,0,0,.3); }
.slider-dots button.active { background: #fff; width: 22px; border-radius: 5px; }
@media (max-width: 820px) { .slide-media { height: 280px; } .slider-btn { top: 140px; } .slider-dots { top: 245px; } }

/* CHAT — Digital Twin */
.chat-fab { position: fixed; bottom: 24px; right: 24px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent2)); box-shadow: 0 12px 30px -8px rgba(79,70,229,.5); transition: transform .18s; }
.chat-fab:hover { transform: translateY(-2px) scale(1.05); }
.chat-fab.fab-active { display: none; }
.fab-icon { font-size: 25px; line-height: 1; }
.fab-pulse { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(79,70,229,.45); animation: fabPulse 2.4s infinite; }
@keyframes fabPulse { 0% { box-shadow: 0 0 0 0 rgba(79,70,229,.45); } 70% { box-shadow: 0 0 0 16px rgba(79,70,229,0); } 100% { box-shadow: 0 0 0 0 rgba(79,70,229,0); } }

.chat-panel { position: fixed; bottom: 24px; right: 24px; z-index: 61; width: 390px; max-width: calc(100vw - 32px); height: 580px; max-height: calc(100vh - 48px); display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 70px -18px rgba(15,23,41,.35); transform-origin: bottom right; }
.chat-panel[hidden] { display: none !important; }
/* opening / closing classes are added/removed by JS — never on the base rule */
.chat-panel.opening { animation: panelIn .22s cubic-bezier(.4,0,.2,1) both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.chat-panel.closing { animation: panelOut .2s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes panelOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(14px) scale(.97); } }

.chat-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.chat-head-id { display: flex; align-items: center; gap: 11px; }
.chat-head .avatar { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.22); display: grid; place-items: center; font-weight: 800; font-size: 14px; letter-spacing: .5px; }
.chat-head strong { display: block; font-size: 15px; }
.chat-head .status { display: flex; align-items: center; gap: 6px; font-size: 11.5px; opacity: .9; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,.3); }
.chat-head-actions { display: flex; align-items: center; gap: 7px; }
.chat-min, .chat-close { background: rgba(255,255,255,.18); border: none; color: #fff; cursor: pointer; font-size: 14px; width: 28px; height: 28px; border-radius: 50%; line-height: 1; display: grid; place-items: center; }
.chat-min:hover, .chat-close:hover { background: rgba(255,255,255,.34); }
.chat-min { font-size: 18px; font-weight: 700; }

/* Minimized: collapse to just the header bar */
.chat-panel.minimized { height: auto; }
.chat-panel.minimized .chat-head { cursor: pointer; }
.chat-panel.minimized .chat-log,
.chat-panel.minimized .chat-suggest,
.chat-panel.minimized .chat-input,
.chat-panel.minimized .chat-foot { display: none; }
.chat-panel.minimized .chat-min { transform: rotate(90deg); }

.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--bg-alt); }
.msg { padding: 11px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.55; max-width: 86%; white-space: pre-line; animation: msgIn .25s ease; box-shadow: 0 1px 2px rgba(15,23,41,.05); }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.msg.bot { background: #fff; border: 1px solid var(--line); color: var(--text); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.user { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg strong { font-weight: 700; }
.msg.typing { display: flex; gap: 4px; align-items: center; padding: 14px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: dot 1.2s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .2s; } .msg.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes dot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.chat-suggest { display: flex; flex-wrap: wrap; gap: 7px; padding: 12px 14px 4px; background: var(--bg-alt); }
.sugg { background: #fff; border: 1px solid var(--line); color: var(--accent2); font: inherit; font-size: 12.5px; font-weight: 500; padding: 7px 12px; border-radius: 16px; cursor: pointer; transition: .15s; }
.sugg:hover { border-color: var(--accent2); background: var(--accent2); color: #fff; }
.chat-input { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); background: var(--bg-alt); }
.chat-input input { flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 11px 15px; color: var(--text); font: inherit; font-size: 14px; }
.chat-input input:focus { outline: none; border-color: var(--accent2); box-shadow: 0 0 0 3px rgba(79,70,229,.12); }
.chat-send { width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; font-size: 15px; flex-shrink: 0; transition: transform .15s; }
.chat-send:hover { transform: scale(1.07); }
.chat-foot { text-align: center; font-size: 10.5px; color: var(--muted); padding: 7px; background: var(--bg-alt); border-top: 1px solid var(--line); }

.nav-toggle { display: none; }

/* Tablet: 2-column blog grid */
@media (max-width: 1060px) and (min-width: 821px) {
    .post-grid { grid-template-columns: repeat(2, 1fr); }
    .post-featured { padding: 28px 30px; }
}

@media (max-width: 820px) {
    .hero-grid, .about-grid, .projects, .post-grid, .research-meta { grid-template-columns: 1fr; }
    .post-featured { padding: 24px 22px; }
    .post-featured h3 { font-size: 20px; }
    
    /* Interactive Mobile Navigation */
    .nav-toggle { display: flex; flex-direction: column; justify-content: space-between; width: 30px; height: 21px; background: none; border: none; cursor: pointer; padding: 0; z-index: 101; margin-left: auto; }
    .nav-toggle span { display: block; width: 100%; height: 3px; background: var(--text); border-radius: 3px; transition: 0.3s; }
    .nav-open .nav-toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
    .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
    
    .nav nav { position: fixed; top: 0; left: 0; width: 100%; height: 100dvh; background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(10px); flex-direction: column; align-items: center; justify-content: center; gap: 32px; font-size: 22px; font-weight: 600; transform: translateY(-100%); transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s; z-index: 100; margin: 0; opacity: 0; pointer-events: none; }
    .nav-open .nav nav { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .nav .btn-ghost { display: none; }
    
    /* Mobile Dropdown */
    .dropdown-content { position: static; box-shadow: none; display: none; background: transparent; padding-left: 20px; border: none; margin-top: 10px; }
    .dropdown.mobile-open .dropdown-content { display: block; }
    .dropdown { display: flex; flex-direction: column; align-items: center; }
    .dropbtn { font-size: 22px; font-weight: 600; color: var(--muted); }
    .dropdown-content a { font-size: 18px; text-align: center; }
    
    /* Native-App Feel for Chatbot */
    .chat-panel { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; bottom: 0; right: 0; border-radius: 0; border: none; }
    
    /* Typography Tuning */
    .hero h1 { font-size: clamp(34px, 9vw, 44px); letter-spacing: -1px; }
    
    /* Hide Graph Labels on Mobile to prevent overlap */
    .g-node text { display: none; }
}
