<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Joe's Interactive Room</title>
<style>
* { box-sizing: border-box; margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
body, html { width: 100%; height: 100%; overflow: hidden; background: #0b0f19; color: #f3f4f6; }
#canvas-container { width: 100%; height: 100%; position: absolute; top: 0; left: 0; z-index: 1; }
/* UI Overlay */
.ui-layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 10; pointer-events: none; display: flex; flex-direction: column; justify-content: space-between; padding: 24px; }
.header { pointer-events: auto; background: rgba(15, 23, 42, 0.75); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.1); padding: 16px 24px; border-radius: 16px; display: flex; justify-content: space-between; align-items: center; max-width: 600px; margin: 0 auto; width: 100%; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.header h1 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.025em; color: #fff; display: flex; align-items: center; gap: 8px; }
.header h1 span { font-size: 0.75rem; background: #3b82f6; padding: 2px 8px; border-radius: 99px; text-transform: uppercase; letter-spacing: 0.05em; }
.controls-hint { pointer-events: auto; background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.1); padding: 12px 20px; border-radius: 12px; align-self: center; font-size: 0.875rem; color: #94a3b8; display: flex; gap: 16px; box-shadow: 0 8px 20px rgba(0,0,0,0.4); text-align: center; }
.controls-hint b { color: #f8fafc; }
/* Modals / Popups */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); z-index: 100; display: none; justify-content: center; align-items: center; pointer-events: auto; padding: 20px; }
.modal { background: #1e293b; border: 1px solid rgba(255,255,255,0.15); width: 100%; max-width: 500px; border-radius: 20px; padding: 24px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7); animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes modalPop { 0% { transform: scale(0.9); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.modal h2 { font-size: 1.5rem; margin-bottom: 12px; color: #fff; display: flex; justify-content: space-between; align-items: center; }
.modal p, .modal li { font-size: 0.95rem; color: #cbd5e1; line-height: 1.6; margin-bottom: 12px; }
.modal ul { padding-left: 20px; margin-bottom: 16px; }
.close-btn { background: #334155; border: none; color: #fff; width: 32px; height: 32px; border-radius: 50%; font-weight: bold; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.close-btn:hover { background: #ef4444; }
.action-btn { display: inline-block; background: #3b82f6; color: white; padding: 10px 18px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 0.875rem; margin-top: 8px; transition: background 0.2s; }
.action-btn:hover { background: #2563eb; }
/* Basketball Minigame Specifics */
.game-board { text-align: center; padding: 10px 0; }
.hoop-target { width: 120px; height: 120px; border: 6px dashed #f59e0b; border-radius: 50%; margin: 20px auto; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform 0.1s, background 0.2s; user-select: none; background: rgba(245, 158, 11, 0.05); }
.hoop-target:active { transform: scale(0.95); background: rgba(245, 158, 11, 0.2); }
.score-board { font-size: 1.25rem; font-weight: bold; color: #f59e0b; margin-bottom: 8px; }
</style>
<!-- Three.js for 3D Rendering -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
</head>
<body>
<div id="canvas-container"></div>
<div class="ui-layer">
<div class="header">
<h1>realjoeriggs.com <span>Live Room V1</span></h1>
<div style="font-size: 0.85rem; color: #94a3b8;">Click room objects to interact</div>
</div>
<div class="controls-hint">
<div><b>Click & Drag</b> to Rotate View</div>
<div><b>Click Objects</b> to Inspect Station</div>
</div>
</div>
<!-- Modals -->
<div class="modal-overlay" id="modal-career">
<div class="modal">
<h2>Career & Background <button class="close-btn" onclick="closeModals()">×</button></h2>
<p>Senior Software Engineer (L5) on Systems Test Engineering at Waymo (Mountain View, CA).</p>
<p>Previously spent 6 years as a Systems Test Engineer (L4) on Waymo Via semi-truck and robotaxi projects, building automated test pipelines and validation frameworks.</p>
<a href="https://waymo.com" target="_blank" class="action-btn">Visit Waymo ➔</a>
</div>
</div>
<div class="modal-overlay" id="modal-robotics">
<div class="modal">
<h2>Robotics & Hardware <button class="close-btn" onclick="closeModals()">×</button></h2>
<p>Specializing in C++, Python, distributed robotics, hardware-in-the-loop simulation, and automated validation frameworks.</p>
<ul>
<li><b>Box Bot Battles:</b> Custom combat robotics testing and localized arena matches.</li>
<li><b>Cooking Robot:</b> Automated helper systems and sensor-driven actuation projects.</li>
<li><b>Robotics BS:</b> Computer Engineering degree focused on robotics kinematics and control systems.</li>
</ul>
<a href="https://youtube.com" target="_blank" class="action-btn">Watch Robot Builds on YouTube ➔</a>
</div>
</div>
<div class="modal-overlay" id="modal-music">
<div class="modal">
<h2>Music & Audio <button class="close-btn" onclick="closeModals()">×</button></h2>
<p>Audio explorer and creator. From 1960s/70s rocksteady and reggae to underground hip-hop production, J Dilla grooves, and instrumental vibes.</p>
<p style="font-size: 0.85rem; color: #64748b;">Ambient audio streaming toggle integrated into active room session.</p>
<a href="https://soundcloud.com" target="_blank" class="action-btn">Open SoundCloud ➔</a>
</div>
</div>
<div class="modal-overlay" id="modal-sports">
<div class="modal">
<h2>Sports & Minigame <button class="close-btn" onclick="closeModals()">×</button></h2>
<p>Lifelong Las Vegas Raiders fan (participating in "Beam Me Up" pick'em leagues), Golden State Warriors follower, and Oakland A's supporter.</p>
<div class="game-board">
<div class="score-board">Baskets Made: <span id="score">0</span></div>
<p style="font-size: 0.85rem; margin-bottom: 8px;">Click the hoop to shoot a jumper!</p>
<div class="hoop-target" onclick="scorePoint()">🏀<br><span style="font-size:0.75rem">SHOOT</span></div>
</div>
</div>
</div>
<script>
// --- THREE.JS 3D SCENE SETUP ---
const container = document.getElementById('canvas-container');
const scene = new THREE.Scene();
scene.background = new THREE.Color(0x0b0f19);
scene.fog = new THREE.FogExp2(0x0b0f19, 0.035);
const camera = new THREE.PerspectiveCamera(60, window.innerWidth / window.innerHeight, 0.1, 1000);
camera.position.set(0, 5, 12);
const renderer = new THREE.WebGLRenderer({ antialias: true });
renderer.setSize(window.innerWidth, window.innerHeight);
renderer.setPixelRatio(Math.min(window.devicePixelRatio, 2));
renderer.shadowMap.enabled = true;
container.appendChild(renderer.domElement);
//