/* Industrial Skeuomorphism Design System - Creative Designs */

/* ========== DESIGN TOKENS ========== */
:root {
    /* Colors - Industrial Palette */
    --background: #e0e5ec;
    --foreground: #f0f2f5;
    --muted: #d1d9e6;
    --text: #2d3436;
    --text-muted: #4a5568;
    --accent: #ff4757;
    --accent-foreground: #ffffff;
    --border: #babecc;
    --border-light: #ffffff;
    --border-dark: #a3b1c6;
    
    /* Dark Accent Surfaces */
    --dark-bg: #2d3436;
    --dark-bg-alt: #2c3e50;
    --dark-text: #ffffff;
    --dark-text-muted: #a8b2d1;
    
    /* Neumorphic Shadows */
    --shadow-card: 8px 8px 16px #babecc, -8px -8px 16px #ffffff;
    --shadow-floating: 12px 12px 24px #babecc, -12px -12px 24px #ffffff, inset 1px 1px 0 rgba(255,255,255,0.5);
    --shadow-pressed: inset 6px 6px 12px #babecc, inset -6px -6px 12px #ffffff;
    --shadow-recessed: inset 4px 4px 8px #babecc, inset -4px -4px 8px #ffffff;
    --shadow-sharp: 4px 4px 8px rgba(0,0,0,0.15), -1px -1px 1px rgba(255,255,255,0.8);
    --shadow-glow: 0 0 10px 2px rgba(255, 71, 87, 0.6);
    --shadow-glow-green: 0 0 10px 2px rgba(34, 197, 94, 0.6);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 30px;
    --radius-full: 9999px;
    
    /* Spacing */
    --container-max: 72rem;
    --section-gap: 6rem;
}

/* ========== GLOBAL STYLES ========== */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Noise Texture Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.3;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

/* ========== TYPOGRAPHY ========== */
.font-mono {
    font-family: 'JetBrains Mono', 'Roboto Mono', monospace;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.text-embossed {
    text-shadow: 0 1px 0 #ffffff;
}

.text-shadow-dark {
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* ========== NEUMORPHIC COMPONENTS ========== */

/* Card with Corner Screws */
.card-industrial {
    background: var(--background);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    position: relative;
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.card-industrial:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-floating);
}

.card-industrial::before,
.card-industrial::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle at 4px 4px, rgba(0,0,0,0.2) 2px, transparent 3px);
}

.card-industrial::before {
    top: 12px;
    left: 12px;
}

.card-industrial::after {
    top: 12px;
    right: 12px;
}

/* Vent Slots */
.vent-slot {
    width: 4px;
    height: 24px;
    background: var(--muted);
    border-radius: 2px;
    box-shadow: inset 1px 1px 2px rgba(0,0,0,0.1);
}

/* Neumorphic Button */
.btn-industrial {
    background: var(--accent);
    color: var(--accent-foreground);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-md);
    box-shadow: 4px 4px 8px rgba(166,50,60,0.4), -4px -4px 8px rgba(255,100,110,0.4);
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    min-height: 48px;
}

.btn-industrial:hover {
    filter: brightness(110%);
}

.btn-industrial:active {
    transform: translateY(2px);
    box-shadow: inset 6px 6px 12px #babecc, inset -6px -6px 12px #ffffff;
}

.btn-industrial-secondary {
    background: var(--background);
    color: var(--text);
    box-shadow: var(--shadow-card);
}

.btn-industrial-secondary:hover {
    color: var(--accent);
}

.btn-industrial-secondary:active {
    box-shadow: var(--shadow-pressed);
}

/* Neumorphic Input */
.input-industrial {
    background: var(--background);
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-recessed);
    min-height: 56px;
    padding: 16px 24px;
    font-family: 'JetBrains Mono', 'Roboto Mono', monospace;
    transition: all 200ms ease;
}

.input-industrial:focus {
    outline: none;
    box-shadow: var(--shadow-recessed), 0 0 0 2px var(--accent);
}

.input-industrial::placeholder {
    opacity: 0.5;
}

/* LED Indicator */
.led-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.led-indicator.green {
    background: #22c55e;
    box-shadow: 0 2px 4px rgba(34, 197, 94, 0.4);
}

/* Icon Housing */
.icon-housing {
    width: 56px;
    height: 56px;
    background: var(--background);
    border-radius: 50%;
    box-shadow: var(--shadow-floating);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Carbon Fiber Texture */
.texture-carbon {
    background-image: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    background-size: cover;
    mix-blend-mode: overlay;
    opacity: 0.15;
}

/* Scanlines */
.texture-scanlines {
    background: linear-gradient(rgba(18,16,16,0) 50%, rgba(0,0,0,0.25) 50%);
    background-size: 100% 4px;
}

/* Grid Pattern */
.texture-grid {
    background-image: 
        linear-gradient(#636e72 1px, transparent 1px),
        linear-gradient(90deg, #636e72 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.1;
}

/* Push Pin */
.push-pin {
    width: 16px;
    height: 16px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    position: relative;
}

.push-pin::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 4px;
    width: 4px;
    height: 4px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
}

/* Hanging Hole */
.hanging-hole {
    width: 24px;
    height: 24px;
    background: var(--background);
    border-radius: 50%;
    box-shadow: var(--shadow-pressed);
    margin: 0 auto;
}

/* Navigation Glass */
.nav-glass {
    background: rgba(224, 229, 236, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.5);
}

/* Mechanical Easing */
.ease-mechanical {
    transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Dark Panel */
.panel-dark {
    background: var(--dark-bg);
    color: var(--dark-text);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

/* Badge Industrial */
.badge-industrial {
    background: var(--accent);
    color: var(--accent-foreground);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'JetBrains Mono', 'Roboto Mono', monospace;
}

/* Responsive Utilities */
@media (max-width: 768px) {
    :root {
        --section-gap: 4rem;
    }
}
