/* ============================================================
   PROJECTS PAGE — 2026 Modern Design
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
    --bg-primary: #f0f4f8;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-glass: rgba(255,255,255,0.7);
    --glass-border: rgba(0,0,0,0.06);
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --accent: #10b981;
    --accent-light: rgba(16,185,129,0.12);
    --accent-glow: rgba(16,185,129,0.25);
    --gradient: linear-gradient(135deg, #10b981, #059669);
    --gradient-text: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    --card-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
    --card-shadow-hover: 0 8px 30px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-pill: 100px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-bg: rgba(255,255,255,0.85);
    --filter-bg: rgba(255,255,255,0.9);
    --live-color: #10b981;
    --ai-color: #8b5cf6;
    --fullstack-color: #3b82f6;
    --tools-color: #f59e0b;
    --lang-bar-bg: rgba(0,0,0,0.05);
    --overlay-bg: rgba(0,0,0,0.5);
    --code-bg: #f3f4f6;
    --footer-bg: #f9fafb;
    --cta-bg: rgba(16,185,129,0.06);
}

body.dark-mode,
[data-theme="dark"] {
    --bg-primary: #0b0f19;
    --bg-secondary: #111827;
    --bg-card: #1a1f2e;
    --bg-glass: rgba(26,31,46,0.75);
    --glass-border: rgba(255,255,255,0.06);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --card-shadow: 0 1px 3px rgba(0,0,0,0.3), 0 4px 12px rgba(0,0,0,0.2);
    --card-shadow-hover: 0 8px 30px rgba(16,185,129,0.08), 0 4px 16px rgba(0,0,0,0.3);
    --header-bg: rgba(11,15,25,0.88);
    --filter-bg: rgba(26,31,46,0.92);
    --lang-bar-bg: rgba(255,255,255,0.08);
    --overlay-bg: rgba(0,0,0,0.7);
    --code-bg: #1e293b;
    --footer-bg: #0f1523;
    --cta-bg: rgba(16,185,129,0.08);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    transition: background var(--transition), color var(--transition);
}

/* ---- Ambient Background ---- */
.ambient-bg {
    position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.ambient-orb {
    position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.18;
}
.orb-1 { width: 500px; height: 500px; top: -10%; left: -5%; background: var(--accent); animation: orb-drift 20s ease-in-out infinite; }
.orb-2 { width: 400px; height: 400px; bottom: 10%; right: -5%; background: #8b5cf6; animation: orb-drift 25s ease-in-out infinite reverse; }
.orb-3 { width: 300px; height: 300px; top: 50%; left: 40%; background: #3b82f6; animation: orb-drift 18s ease-in-out infinite 3s; }

@keyframes orb-drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 40px) scale(0.95); }
}

body.dark-mode .ambient-orb,
[data-theme="dark"] .ambient-orb { opacity: 0.08; }

/* ---- Header ---- */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 clamp(1.2rem, 4vw, 3rem);
    height: 64px;
    background: var(--header-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    transition: background var(--transition);
}
.logo {
    font-size: 1.25rem; font-weight: 800; text-decoration: none;
    background: var(--gradient-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.navbar { display: flex; gap: 0.3rem; }
.navbar a {
    padding: 6px 14px; border-radius: var(--radius-pill); font-size: 0.85rem; font-weight: 500;
    text-decoration: none; color: var(--text-secondary); transition: all var(--transition);
}
.navbar a:hover,
.navbar a.active {
    color: var(--accent); background: var(--accent-light);
}

/* Theme toggle */
.theme-toggle {
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--glass-border);
    background: var(--bg-glass); cursor: pointer; display: grid; place-items: center;
    font-size: 1rem; color: var(--text-secondary); transition: all var(--transition);
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }

/* Mobile toggle */
.menu-toggle {
    display: none; flex-direction: column; gap: 5px; cursor: pointer;
    width: 30px; padding: 5px 0; background: none; border: none;
}
.menu-toggle span {
    height: 2px; width: 100%; background: var(--text-primary); border-radius: 2px;
    transition: all var(--transition);
}

/* Mobile menu */
.mobile-menu-overlay {
    display: none; position: fixed; inset: 0; background: var(--overlay-bg); z-index: 1100;
    opacity: 0; transition: opacity var(--transition);
}
.mobile-menu-overlay.active { display: block; opacity: 1; }
.mobile-menu {
    position: fixed; top: 0; right: -300px; width: 280px; height: 100vh;
    background: var(--bg-secondary); z-index: 1200;
    padding: 80px 2rem 2rem; transition: right var(--transition);
}
.mobile-menu.active { right: 0; }
.mobile-menu .close-btn {
    position: absolute; top: 16px; right: 16px; background: none; border: none;
    font-size: 1.3rem; color: var(--text-secondary); cursor: pointer;
}
.mobile-menu nav { display: flex; flex-direction: column; gap: 0.5rem; }
.mobile-menu .nav-item {
    display: block; padding: 12px 16px; border-radius: var(--radius-sm);
    text-decoration: none; color: var(--text-primary); font-weight: 500;
    transition: all var(--transition);
}
.mobile-menu .nav-item:hover, .mobile-menu .nav-item.active {
    background: var(--accent-light); color: var(--accent);
}

/* ---- Main ---- */
.main-content { position: relative; z-index: 1; padding-top: 64px; }

/* ————— HERO ————— */
.projects-hero {
    padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 5vw, 4rem);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px; border-radius: var(--radius-pill);
    background: var(--accent-light); color: var(--accent);
    font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
}
.badge-dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
    animation: pulse-badge 2s ease-in-out infinite;
}
@keyframes pulse-badge {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}
.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 900; line-height: 1.1; margin-bottom: 1.2rem;
    letter-spacing: -0.03em;
}
.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: var(--text-secondary); max-width: 650px; margin: 0 auto 2.5rem;
    line-height: 1.7;
}

/* Stats Bar */
.stats-bar {
    display: flex; justify-content: center; align-items: center; gap: 1.5rem;
    flex-wrap: wrap; margin-bottom: 2.5rem;
}
.stat-item { text-align: center; }
.stat-value {
    font-size: 1.8rem; font-weight: 800; display: block;
    background: var(--gradient-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-plus { font-size: 1.2rem; font-weight: 700; background: var(--gradient-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { font-size: 0.75rem; color: var(--text-muted); display: block; margin-top: 2px; font-weight: 500; }
.stat-divider { width: 1px; height: 40px; background: var(--glass-border); }

/* Tech Cloud */
.tech-cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tech-pill {
    padding: 5px 14px; border-radius: var(--radius-pill);
    font-size: 0.78rem; font-weight: 500; color: var(--text-secondary);
    background: var(--bg-card); border: 1px solid var(--glass-border);
    transition: all var(--transition);
    animation: pill-fade-in 0.6s ease forwards;
    animation-delay: calc(var(--delay) * 0.08s);
    opacity: 0; transform: translateY(10px);
}
@keyframes pill-fade-in {
    to { opacity: 1; transform: translateY(0); }
}
.tech-pill:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-light); }

/* ————— FILTER BAR ————— */
.filter-section {
    position: fixed; top: 64px; left: 0; right: 0; z-index: 100;
    padding: 12px clamp(1.2rem, 4vw, 3rem);
    background: var(--filter-bg); backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--glass-border);
    transition: top 0.3s ease;
}
.filter-section.header-hidden { top: 0; }
.filter-bar {
    display: flex; gap: 8px; max-width: 900px; margin: 0 auto;
    overflow-x: auto; scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 18px; border-radius: var(--radius-pill);
    border: 1px solid var(--glass-border); background: var(--bg-card);
    font-size: 0.82rem; font-weight: 500; color: var(--text-secondary);
    cursor: pointer; transition: all var(--transition); white-space: nowrap;
    font-family: inherit;
}
.filter-btn:hover { color: var(--accent); border-color: var(--accent); }
.filter-btn.active {
    background: var(--gradient); color: #fff; border-color: transparent;
}
.filter-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 20px; height: 20px; border-radius: 50%;
    font-size: 0.68rem; font-weight: 700;
    background: rgba(0,0,0,0.08); padding: 0 4px;
}
.filter-btn.active .filter-count { background: rgba(255,255,255,0.25); }

/* ————— CATEGORY SECTIONS ————— */
.project-category:first-of-type {
    padding-top: calc(3rem + 52px); /* offset for fixed filter bar */
}
.project-category {
    max-width: 1200px; margin: 0 auto;
    padding: 3rem clamp(1.2rem, 4vw, 3rem) 1rem;
}
.category-header {
    display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem;
    flex-wrap: wrap;
}
.category-icon {
    width: 48px; height: 48px; border-radius: 14px;
    display: grid; place-items: center; font-size: 1.2rem; color: #fff;
    flex-shrink: 0;
}
.category-icon.live { background: linear-gradient(135deg, #10b981, #059669); }
.category-icon.ai { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.category-icon.fullstack { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.category-icon.tools { background: linear-gradient(135deg, #f59e0b, #d97706); }
.category-title { font-size: 1.4rem; font-weight: 700; line-height: 1.2; }
.category-desc { font-size: 0.85rem; color: var(--text-muted); margin-top: 2px; }
.category-count {
    margin-left: auto; font-size: 0.78rem; font-weight: 600;
    color: var(--text-muted); white-space: nowrap;
}

/* ————— PROJECT CARDS GRID ————— */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

/* ---- Project Card ---- */
.pcard {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; flex-direction: column;
    opacity: 0; transform: translateY(30px);
}
.pcard.visible {
    opacity: 1; transform: translateY(0);
}
.pcard:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-4px);
    border-color: rgba(16,185,129,0.15);
}
.pcard.visible:hover {
    transform: translateY(-4px);
}
.pcard.hidden {
    display: none;
}

/* Featured card */
.pcard--featured {
    grid-column: span 1;
    border: 1px solid rgba(16,185,129,0.15);
}
.pcard--featured::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: var(--gradient);
}

/* Status tag */
.pcard__status {
    position: absolute; top: 12px; left: 12px; z-index: 5;
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 10px; border-radius: var(--radius-pill);
    font-size: 0.68rem; font-weight: 600; letter-spacing: 0.03em;
    background: var(--bg-glass); backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border); color: var(--text-secondary);
}
.status-dot {
    width: 7px; height: 7px; border-radius: 50%;
}
.status-dot.live { background: var(--live-color); box-shadow: 0 0 6px var(--live-color); }
.status-dot.ai { background: var(--ai-color); box-shadow: 0 0 6px var(--ai-color); }
.status-dot.fullstack { background: var(--fullstack-color); box-shadow: 0 0 6px var(--fullstack-color); }
.status-dot.tools { background: var(--tools-color); box-shadow: 0 0 6px var(--tools-color); }

/* Card Visual / Preview */
.pcard__visual {
    position: relative; width: 100%; height: 200px; overflow: hidden; flex-shrink: 0;
    cursor: pointer;
}
.pcard__iframe {
    width: 200%; height: 200%; border: none;
    transform: scale(0.5);
    transform-origin: top left; pointer-events: none;
}
.pcard__placeholder {
    width: 100%; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.pcard__overlay {
    position: absolute; inset: 0;
    display: none; /* removed — using bottom action buttons + viz modal instead */
}

/* Mini Orb (for SANA) */
.mini-orb {
    width: 60px; height: 60px; border-radius: 50%;
    background: radial-gradient(circle, #10b981 0%, #059669 40%, transparent 70%);
    animation: float-orb 4s ease-in-out infinite;
    box-shadow: 0 0 40px rgba(16,185,129,0.4);
}
@keyframes float-orb {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Card Body */
.pcard__body { padding: 1.2rem 1.4rem; flex: 1; display: flex; flex-direction: column; }
.pcard__title { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; line-height: 1.3; }
.pcard__desc {
    font-size: 0.82rem; color: var(--text-secondary); line-height: 1.65;
    margin-bottom: 0.8rem; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}

/* Tech pills */
.pcard__tech {
    display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 0.8rem;
}
.pcard__tech span {
    padding: 3px 10px; border-radius: var(--radius-pill);
    font-size: 0.7rem; font-weight: 500;
    background: var(--accent-light); color: var(--accent);
    border: 1px solid rgba(16,185,129,0.12);
}

/* Language bar (GitHub-style) */
.pcard__lang-bar {
    display: flex; height: 6px; border-radius: 3px; overflow: hidden;
    background: var(--lang-bar-bg); margin-bottom: 0.6rem;
}
.lang-segment { transition: all var(--transition); }
.pcard:hover .lang-segment:first-child { filter: brightness(1.15); }

/* Meta info */
.pcard__meta {
    display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto;
}
.meta-item {
    font-size: 0.72rem; color: var(--text-muted); display: flex; align-items: center; gap: 5px;
}
.meta-item i { font-size: 0.7rem; color: var(--accent); }

/* Card Actions */
.pcard__actions {
    display: flex; gap: 8px; padding: 0 1.4rem 1.2rem;
}
.action-link {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 18px; border-radius: var(--radius-pill);
    font-size: 0.78rem; font-weight: 600; text-decoration: none;
    transition: all var(--transition);
}
.action-link.primary {
    background: var(--gradient); color: #fff;
}
.action-link.primary:hover { box-shadow: 0 4px 16px var(--accent-glow); transform: translateY(-1px); }
.action-link.secondary {
    background: var(--bg-glass); color: var(--text-secondary);
    border: 1px solid var(--glass-border);
}
.action-link.secondary:hover { color: var(--accent); border-color: var(--accent); }

/* ————— GITHUB CTA ————— */
.github-cta {
    max-width: 900px; margin: 3rem auto 0; padding: 0 clamp(1.2rem, 4vw, 3rem);
}
.cta-content {
    text-align: center; padding: 3rem 2rem;
    background: var(--cta-bg); border: 1px solid var(--glass-border);
    border-radius: var(--radius);
}
.cta-icon { font-size: 2.5rem; color: var(--text-muted); margin-bottom: 1rem; }
.cta-content h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.5rem; }
.cta-content p { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 1.5rem; }
.cta-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px; border-radius: var(--radius-pill);
    background: var(--text-primary); color: var(--bg-primary);
    text-decoration: none; font-weight: 600; font-size: 0.9rem;
    transition: all var(--transition);
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,0.15); }

/* ————— FOOTER ————— */
.projects-footer {
    display: flex; align-items: center; justify-content: center;
    gap: 1rem; padding: 2rem; margin-top: 3rem;
    border-top: 1px solid var(--glass-border);
    background: var(--footer-bg);
    font-size: 0.82rem; color: var(--text-muted);
}
.back-to-top {
    display: grid; place-items: center;
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--accent-light); color: var(--accent);
    text-decoration: none; transition: all var(--transition);
}
.back-to-top:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .navbar { display: none; }
    .menu-toggle { display: flex; }

    .projects-hero { padding: 3rem 1.2rem; }
    .hero-title { font-size: 2rem; }
    .stats-bar { gap: 1rem; }
    .stat-value { font-size: 1.4rem; }
    .stat-divider { height: 30px; }

    .filter-section { padding: 10px 1rem; top: 56px; }
    .filter-section.header-hidden { top: 0; }
    .filter-btn { padding: 7px 14px; font-size: 0.78rem; }

    .project-category { padding: 2rem 1rem 0.5rem; }
    .category-header { gap: 0.75rem; }
    .category-icon { width: 40px; height: 40px; font-size: 1rem; border-radius: 10px; }
    .category-title { font-size: 1.15rem; }
    .category-count { display: none; }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .pcard--featured { grid-column: span 1; }
}

@media (max-width: 480px) {
    .header { padding: 0 1rem; height: 56px; }
    .filter-section { top: 56px; }
    .filter-section.header-hidden { top: 0; }
    .main-content { padding-top: 56px; }
    .projects-hero { padding: 2rem 1rem; }
    .hero-title { font-size: 1.7rem; }
    .hero-subtitle { font-size: 0.88rem; }
    .stats-bar { gap: 0.6rem; }
    .stat-value { font-size: 1.2rem; }
    .stat-label { font-size: 0.68rem; }
    .tech-cloud { gap: 5px; }
    .tech-pill { font-size: 0.72rem; padding: 4px 10px; }
    .pcard__visual { height: 170px; }
    .pcard__body { padding: 1rem; }
    .pcard__title { font-size: 0.95rem; }
    .pcard__actions { padding: 0 1rem 1rem; }
    .github-cta { margin: 2rem auto 0; }
    .cta-content { padding: 2rem 1.2rem; }
}

/* ---- Scroll reveal transition ---- */
.pcard {
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

/* ————— TECH ARCHITECTURE VISUALIZATION MODAL ————— */
.viz-modal-overlay {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(0,0,0,0.75); backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: all 0.35s ease;
}
.viz-modal-overlay.active { opacity: 1; visibility: visible; }

.viz-modal {
    width: 90vw; max-width: 700px;
    background: var(--bg-card); border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.35s ease;
}
.viz-modal-overlay.active .viz-modal { transform: scale(1) translateY(0); }

.viz-modal__header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--glass-border);
}
.viz-modal__title { font-size: 1.1rem; font-weight: 700; }
.viz-modal__close {
    width: 32px; height: 32px; border-radius: 50%; border: none;
    background: var(--accent-light); color: var(--accent); cursor: pointer;
    display: grid; place-items: center; font-size: 0.9rem;
    transition: all var(--transition);
}
.viz-modal__close:hover { background: var(--accent); color: #fff; }

/* Network graph canvas */
.viz-canvas-wrap {
    position: relative; width: 100%; height: 340px;
    background: var(--code-bg); overflow: hidden;
}
.viz-canvas-wrap canvas { width: 100%; height: 100%; }

/* Tech stack list below canvas */
.viz-modal__stack {
    padding: 1.2rem 1.5rem;
    display: flex; flex-wrap: wrap; gap: 8px;
}
.viz-modal__stack .tech-node {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 14px; border-radius: var(--radius-pill);
    font-size: 0.76rem; font-weight: 600;
    background: var(--accent-light); color: var(--accent);
    border: 1px solid rgba(16,185,129,0.12);
    animation: node-pop 0.4s ease forwards;
    animation-delay: calc(var(--i) * 0.06s);
    opacity: 0; transform: scale(0.8);
}
@keyframes node-pop {
    to { opacity: 1; transform: scale(1); }
}
.tech-node__dot {
    width: 8px; height: 8px; border-radius: 50%;
}
.tech-node__cat {
    font-size: 0.6rem; opacity: 0.5; font-weight: 400;
    margin-left: 2px;
}

.viz-modal__actions {
    padding: 0 1.5rem 1.2rem;
    display: flex; gap: 8px;
}
.viz-modal__actions .action-link {
    padding: 8px 18px; border-radius: var(--radius-pill);
    font-size: 0.82rem; font-weight: 600;
    text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
    transition: all var(--transition);
}
.viz-modal__actions .action-link.primary {
    background: var(--gradient); color: #fff;
}
.viz-modal__actions .action-link.primary:hover {
    box-shadow: 0 4px 16px rgba(16,185,129,0.35); transform: translateY(-1px);
}
.viz-modal__actions .action-link.secondary {
    background: var(--accent-light); color: var(--accent);
    border: 1px solid rgba(16,185,129,0.15);
}
.viz-modal__actions .action-link.secondary:hover {
    background: var(--accent); color: #fff;
}

@media (max-width: 480px) {
    .viz-modal { width: 95vw; }
    .viz-canvas-wrap { height: 260px; }
}

/* ---- Prefers reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
