/* 3D House Resume Custom Styles */

#scene-loader {
    position: absolute;
    inset: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #111424 0%, #08090f 100%);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s ease;
}

#scene-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(99, 102, 241, 0.15);
    border-top: 3px solid #6366f1;
    border-right: 3px solid #a855f7;
    border-radius: 50%;
    animation: spin 0.85s linear infinite;
}

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

/* 3D Room Hotspot Pins (Projected from 3D coordinates) */
.room-hotspot-pin {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 25;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: rgba(12, 14, 24, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: #f4f4f5;
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.6);
    cursor: pointer;
    user-select: none;
    transition: transform 0.12s ease-out, background 0.2s, border-color 0.2s, opacity 0.2s;
    pointer-events: auto;
    white-space: nowrap;
    opacity: 0;
}

.room-hotspot-pin:hover {
    background: rgba(30, 35, 60, 0.95);
    border-color: rgba(129, 140, 248, 0.6);
    transform: translate(-50%, -50%) scale(1.08) !important;
}

.room-hotspot-pin .beacon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    animation: beacon-pulse 2s infinite ease-in-out;
}

@keyframes beacon-pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.35); opacity: 1; }
}

/* Glass UI Elements */
.glass-pane {
    background: rgba(10, 12, 20, 0.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-pill {
    background: rgba(18, 21, 35, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-pill:hover {
    background: rgba(35, 40, 68, 0.85);
    border-color: rgba(129, 140, 248, 0.4);
    transform: translateY(-1px);
}

.glass-pill.active {
    background: rgba(99, 102, 241, 0.25);
    border-color: rgba(99, 102, 241, 0.6);
    color: #ffffff;
    box-shadow: 0 0 16px rgba(99, 102, 241, 0.35);
}

/* Drawer Slide-out System */
.drawer-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 520px;
    background: #0d0f1a;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 60;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.75);
}

.drawer-panel.open {
    transform: translateX(0);
}

.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 55;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.drawer-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.drawer-content {
    overflow-y: auto;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.drawer-content::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Placement Mode UI */
.transform-mode-btn.active {
    background: rgba(245, 158, 11, 0.25) !important;
    border-color: rgba(245, 158, 11, 0.7) !important;
    color: #fbbf24 !important;
}
