/* BAPARI TECH — 3D Tech Sphere & Tech Stack Categories */

/* ==========================================
   TECH STACK + 3D TECH SPHERE
   ========================================== */
.tech {
    background: var(--bg-secondary);
}

.tech-3d-layout {
    display: grid;
    grid-template-columns: 440px 1fr;
    gap: 36px;
    align-items: start;
}

.tech-sphere-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: inset 0 1px 0 var(--rim-light), var(--shadow-lg);
    position: sticky;
    top: 96px;
}

.tech-sphere-header {
    text-align: center;
    margin-bottom: 12px;
}

.sphere-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    background: var(--primary-glow);
    border: 1px solid rgba(34, 211, 238, 0.22);
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 6px;
}

.tech-sphere-header p {
    font-size: 0.78rem;
    color: var(--text-tertiary);
}

.tech-sphere-stage {
    position: relative;
    height: 340px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    user-select: none;
}

.tech-sphere-stage:active {
    cursor: grabbing;
}

.tech-sphere-ring {
    position: absolute;
    width: 268px;
    height: 268px;
    border-radius: 50%;
    border: 1px solid rgba(56, 189, 248, 0.14);
    box-shadow: 0 0 40px rgba(56, 189, 248, 0.08);
    pointer-events: none;
}

.tech-sphere-core {
    position: absolute;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.2), rgba(139, 92, 246, 0.12), transparent 72%);
    filter: blur(16px);
    pointer-events: none;
}

.tech-sphere-cloud {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.sphere-node {
    position: absolute;
    top: 50%;
    left: 50%;
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 0.76rem;
    font-weight: 600;
    white-space: nowrap;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
    pointer-events: auto;
    cursor: pointer;
}

.sphere-node.highlighted {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.45);
}

.sphere-node.dimmed {
    opacity: 0.18 !important;
}

.tech-sphere-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
}

.sphere-filter-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 0.73rem;
    font-weight: 600;
    padding: 5px 11px;
    border-radius: 100px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.sphere-filter-btn:hover,
.sphere-filter-btn.active {
    background: var(--primary-glow);
    color: var(--primary);
    border-color: var(--primary);
}

.tech-categories {
    display: grid;
    gap: 18px;
}

.tech-category {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    cursor: pointer;
}

.tech-category:hover,
.tech-category.active-cat {
    border-color: rgba(34, 211, 238, 0.4);
    box-shadow: var(--shadow-md);
}

.tech-cat-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.tech-cat-title svg {
    color: var(--primary);
}

.tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-pill {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 6px 15px;
    border-radius: 100px;
    transition: all var(--transition-fast);
}

.tech-pill:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-glow);
    transform: translateY(-1px);
}

[data-theme="dark"] .tech-pill {
    background: rgba(5, 8, 20, 0.72);
}

