/* ==========================================================================
   NEELAV MAHANTA HOLDINGS // 3D SPATIAL UI ENVIRONMENT
   FILE: style.css
   ========================================================================== */

:root {
    --bg: #000000;
    --accent: #c70c54; 
    --text-pure: #ffffff;
    --text-muted: #7a7a80;
    --serif: 'Cormorant Garamond', serif;
    --sans: 'Inter', sans-serif;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none; 
    -webkit-user-select: none;
    -webkit-font-smoothing: antialiased;
}

body, html {
    width: 100vw;
    height: 100vh;
    overflow: hidden; 
    background-color: var(--bg);
    color: var(--text-pure);
    font-family: var(--sans);
}

#webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    outline: none;
    touch-action: none; 
}

#loader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 1.2s var(--ease), visibility 1.2s;
}

.loader-text {
    font-family: var(--sans);
    font-size: 10px;
    letter-spacing: 8px;
    color: var(--text-muted);
    margin-bottom: 20px;
    animation: pulse 1.5s infinite var(--ease);
}

.loader-bar {
    width: 200px;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.loader-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--accent);
    transition: width 0.5s ease;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

#ui-layer {
    position: fixed;
    inset: 0;
    z-index: 10;
    pointer-events: none; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 5%;
}

.hud-header {
    font-size: 9px;
    letter-spacing: 6px;
    color: var(--text-muted);
    text-transform: uppercase;
    text-align: center;
}

#info-panel {
    max-width: 500px;
    pointer-events: auto; 
    padding: 30px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-left: 2px solid var(--accent);
    transition: all 0.5s var(--ease);
}

#node-title {
    font-family: var(--serif);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    color: var(--text-pure);
}

#node-desc {
    font-size: 14px;
    line-height: 1.8;
    font-weight: 200;
    color: rgba(255, 255, 255, 0.7);
}

.mobile-hint {
    display: none; 
    font-size: 10px;
    letter-spacing: 4px;
    color: var(--accent);
    text-transform: uppercase;
    text-align: center;
    position: absolute;
    bottom: 40px;
    width: 100%;
    left: 0;
    animation: pulse 2s infinite var(--ease);
}

@media (max-width: 768px) {
    #ui-layer { padding: 25px 5%; }
    #info-panel { margin-bottom: 50px; padding: 20px; }
    .mobile-hint { display: block; }
}