/**
 * Mechanical Workshop Theme
 * ==========================
 * Steampunk/Mechanik mit Zahnrädern & Kolben für HENX3D
 *
 * Features:
 * - Messing & Kupfer Ästhetik
 * - Patiniertes Metall
 * - Zahnrad-Dekoration
 * - Vintage Industrial
 * - Rivet Details
 *
 * @version 1.0.0
 * @created 2026-01-06
 */

:root {
    /* Colors - Brass & Copper */
    --mech-brass-darkest: #4a3f2e;
    --mech-brass-dark: #7c6a46;
    --mech-brass-medium: #b8a776;
    --mech-brass-light: #d4c194;

    /* Metals */
    --mech-copper: #b87333;
    --mech-copper-dark: #8b5a3c;
    --mech-steel-gray: #a8a9ad;
    --mech-bronze: #cd7f32;

    /* Accents */
    --mech-oil-stain: #3d3226;
    --mech-steam-white: #f5f5dc;
    --mech-rust-red: #a0522d;
    --mech-patina-green: #7cb8a6;

    /* Neutral */
    --mech-white: #ffffff;
    --mech-off-white: #faf8f3;

    /* Typography */
    --mech-font-heading: 'Exo 2', 'Century Gothic', sans-serif;
    --mech-font-body: 'IBM Plex Sans', 'Georgia', serif;
    --mech-font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --mech-space-xs: 0.5rem;
    --mech-space-sm: 1rem;
    --mech-space-md: 1.5rem;
    --mech-space-lg: 2rem;
    --mech-space-xl: 3rem;

    /* Borders */
    --mech-border-width: 3px;
    --mech-border-radius: 0;

    /* Shadows */
    --mech-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --mech-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
    --mech-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
    --mech-inset-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3);

    /* Gradients */
    --mech-gradient-brass: linear-gradient(135deg,
        var(--mech-brass-light) 0%,
        var(--mech-brass-medium) 50%,
        var(--mech-brass-dark) 100%
    );
    --mech-gradient-copper: linear-gradient(135deg,
        var(--mech-copper) 0%,
        var(--mech-copper-dark) 100%
    );

    /* Transitions */
    --mech-transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Standard CSS Variables for Compatibility */
    --color-bg: var(--mech-brass-darkest);
    --color-bg-elevated: var(--mech-brass-dark);
    --color-bg-subtle: var(--mech-oil-stain);
    --color-bg-secondary: var(--mech-brass-dark);
    --color-bg-tertiary: var(--mech-brass-medium);
    --color-text: var(--mech-off-white);
    --color-text-muted: var(--mech-brass-light);
    --color-text-subtle: var(--mech-steel-gray);
    --color-primary: var(--mech-copper);
    --color-primary-dark: var(--mech-copper-dark);
    --color-primary-light: var(--mech-brass-light);
    --color-border: var(--mech-copper-dark);
    --color-line: var(--mech-brass-medium);
    --background-color: var(--mech-brass-darkest);
    --card-background: var(--mech-brass-medium);
    --input-background: var(--mech-brass-light);
    --input-text: var(--mech-oil-stain);
    --text-color: var(--mech-off-white);
    --border-color: var(--mech-copper-dark);
    --card-bg: var(--mech-brass-medium);
    --input-bg: var(--mech-brass-light);
    --input-border: var(--mech-copper-dark);
    --button-text: var(--mech-oil-stain);
    color-scheme: dark;
}

/* Patinated Metal Background */
body {
    font-family: var(--mech-font-body);
    color: var(--mech-off-white);
    background: var(--mech-brass-darkest);
    background-image:
        radial-gradient(circle at 20% 50%, var(--mech-brass-dark) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, var(--mech-copper-dark) 1px, transparent 1px),
        linear-gradient(135deg,
            var(--mech-brass-darkest) 0%,
            var(--mech-oil-stain) 100%
        );
    background-size: 100px 100px, 120px 120px, 100% 100%;
    background-blend-mode: overlay;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--mech-font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--mech-brass-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

h1 { font-size: 4rem; }
h2 { font-size: 3rem; }
h3 { font-size: 2.25rem; }

.mechanical-title {
    color: var(--mech-brass-light);
    position: relative;
    display: inline-block;
}

.mechanical-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--mech-gradient-brass);
    box-shadow: var(--mech-inset-shadow);
}

/* Buttons - Brass Style */
.btn-primary,
.btn-brass {
    padding: var(--mech-space-sm) var(--mech-space-xl);
    font-family: var(--mech-font-heading);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--mech-oil-stain);
    background: var(--mech-gradient-brass);
    border: 3px solid var(--mech-copper-dark);
    cursor: pointer;
    transition: all var(--mech-transition);
    box-shadow: var(--mech-shadow-md),
                var(--mech-inset-shadow);
    position: relative;
}

.btn-brass::before {
    content: '⚙';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--mech-copper-dark);
}

.btn-brass:hover {
    background: var(--mech-gradient-copper);
    transform: translateY(-2px);
    box-shadow: var(--mech-shadow-lg);
}

/* Cards - Brass Panels */
.card,
.service-card,
.portfolio-card {
    position: relative;
    padding: var(--mech-space-lg);
    background: var(--mech-gradient-brass);
    border: 3px solid var(--mech-copper-dark);
    box-shadow: var(--mech-shadow-md),
                var(--mech-inset-shadow);
    transition: all var(--mech-transition);
}

/* Rivets */
.card::before,
.card::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    background: radial-gradient(circle,
        var(--mech-steel-gray) 0%,
        var(--mech-brass-dark) 100%
    );
    border-radius: 50%;
    border: 2px solid var(--mech-copper-dark);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

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

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

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--mech-shadow-lg);
    border-color: var(--mech-bronze);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
        var(--mech-brass-darkest) 0%,
        var(--mech-oil-stain) 100%
    );
}

/* Navigation */
header.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(74, 63, 46, 0.95);
    border-bottom: 3px solid var(--mech-copper);
    box-shadow: var(--mech-shadow-lg);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.nav-link {
    padding: var(--mech-space-sm) var(--mech-space-md);
    color: var(--mech-brass-light);
    font-family: var(--mech-font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    transition: color var(--mech-transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--mech-copper);
}

/* Forms */
.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--mech-space-sm) var(--mech-space-md);
    font-family: var(--mech-font-body);
    color: var(--mech-oil-stain);
    background: var(--mech-brass-light);
    border: 3px solid var(--mech-copper-dark);
    transition: all var(--mech-transition);
    box-shadow: var(--mech-inset-shadow);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--mech-copper);
    box-shadow: 0 0 0 3px rgba(184, 115, 51, 0.3);
}

/* Utilities */
.text-brass { color: var(--mech-brass-light); }
.text-copper { color: var(--mech-copper); }
.bg-brass { background: var(--mech-gradient-brass); }

/* Gear container */
#gears-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.15;
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
}
