/* =========================================
   BASE: Variables, Reset, & Global Styles
   ========================================= */

:root {
    --bg-color: #333333;
    --text-color: #ffffff;
    --text-muted: #888888;
    --accent-color: #e96714; /* Orange */
    --border-color: #444444;
    --font-main: 'Montserrat', system-ui, sans-serif;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --max-width: 1200px; /* Constrains the width on huge screens */
}

/* Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Body Defaults */
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Text Selection */
::selection {
    background: var(--accent-color);
    color: #fff;
}

/* Custom Focus Ring for Accessibility */
:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
}

/* Global Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 
   ACCESSIBILITY: REDUCED MOTION 
   Respects user OS settings to disable intense animations 
*/
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    /* Hide the intense 3D demo if they hate motion */
    #singularity-wrapper canvas, 
    #singularity-wrapper .anim-container,
    #singularity-wrapper .css-container {
        display: none !important;
    }
    
    #singularity-wrapper .composite-container:after {
        content: "High-intensity animation disabled via system preferences.";
        display: block;
        padding: 40px;
        text-align: center;
        color: #777;
    }
}