* {
    box-sizing: border-box;
}

@font-face {
    font-family: 'DM Sans';
    src: url('../fonts/DMSans-VariableFont_opsz,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}
@font-face {
    font-family: 'DM Sans';
    src: url('../fonts/DMSans-Italic-VariableFont_opsz,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
}

/* CSS Variable Definitions */
:root {
    --primary-color: #FF671F;
    --background-color: #050505;
    --surface-color: #0D1117;
    --text-color: #E5E2E1;
    --text-muted: #94A3B8;
    --border-color: rgba(255, 255, 255, 0.05);
}

/* Base Styles */
html, body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Custom Utilities */
.blueprint-grid {
    background-image: 
        linear-gradient(to right, rgba(255, 103, 31, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 103, 31, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.terminal-text, .font-mono {
    font-family: 'JetBrains Mono', monospace !important;
}

.status-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

/* Shared Components */
.cta-button {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    background: transparent;
    cursor: pointer;
}

.cta-button:hover {
    background-color: rgba(255, 103, 31, 0.1);
}

.code-block, .terminal-block {
    background-color: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    line-height: 1.6;
    position: relative;
    overflow: hidden;
}

.code-block::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 103, 31, 0.2), transparent);
}

/* Material Symbols Overrides */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

/* Text Shadow */
.text-glow-orange {
    text-shadow: 0 0 15px rgba(255, 103, 31, 0.3);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--background-color);
}
::-webkit-scrollbar-thumb {
    background: #2D2D2D;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Custom Typography & Selections */
h1, h2, h3, h4, h5, h6 {
    font-family: 'DM Sans', sans-serif !important;
}

::selection {
    background-color: #FF671F;
    color: white;
}

/* Scanline Effect */
.scanline-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 100;
    opacity: 0.03;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), 
                linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
}
