/* Palette: Slate Grey, Tech Orange, Blueprint White */
:root {
    --slate: #37474F;
    --slate-dark: #263238;
    --orange: #FF5722;
    --orange-dim: #D84315;
    --bg-grid: #F5F5F5;
    --white: #FFFFFF;
    --text: #333333;
    
    --font-mono: 'Share Tech Mono', monospace;
    --font-sans: 'Roboto', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-grid);
    color: var(--text);
    font-family: var(--font-sans);
    line-height: 1.6;
}

/* Grid Background */
.grid-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(#e0e0e0 1px, transparent 1px),
        linear-gradient(90deg, #e0e0e0 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: -1;
    pointer-events: none;
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section-padding { padding: 80px 0; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; height: auto; display: block; }

/* Header */
.header { background: var(--white); padding: 15px 0; border-bottom: 2px solid var(--slate); position: sticky; top: 0; z-index: 1000; }
.header-flex { display: flex; justify-content: space-between; align-items: center; }

.logo { font-family: var(--font-mono); font-size: 1.5rem; color: var(--slate); letter-spacing: 1px; }
.orange-slash { color: var(--orange); }

.coords { font-family: var(--font-mono); font-size: 0.7rem; color: #888; text-align: right; margin-right: 30px; display: block; border-right: 1px solid #ccc; padding-right: 15px; }

.nav a { margin-left: 20px; font-family: var(--font-mono); color: var(--slate); font-size: 0.9rem; }
.nav a:hover, .nav a.active { color: var(--orange); }

.mobile-toggle { display: none; background: var(--slate); color: var(--white); border: none; padding: 5px 10px; font-family: var(--font-mono); cursor: pointer; }

/* Mobile Menu */
.mobile-menu { position: fixed; top: 0; right: -100%; width: 300px; height: 100%; background: var(--slate-dark); z-index: 2000; padding: 50px; transition: 0.3s; border-left: 4px solid var(--orange); }
.mobile-menu.active { right: 0; }
.close-btn { background: none; border: 1px solid var(--orange); color: var(--orange); font-family: var(--font-mono); padding: 5px 15px; margin-bottom: 30px; cursor: pointer; }
.mobile-menu a { display: block; font-family: var(--font-mono); font-size: 1.5rem; margin-bottom: 20px; color: var(--white); }
.mobile-menu a:hover { color: var(--orange); }

@media (max-width: 900px) {
    .nav, .coords { display: none; }
    .mobile-toggle { display: block; }
}

/* Hero */
.hero { padding: 80px 0; background: var(--white); border-bottom: 1px solid #ccc; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }

.tech-tag { font-family: var(--font-mono); color: var(--orange); border: 1px solid var(--orange); padding: 2px 8px; font-size: 0.8rem; display: inline-block; margin-bottom: 20px; }
.hero h1 { font-family: var(--font-sans); font-weight: 700; font-size: 3.5rem; line-height: 1.1; margin-bottom: 20px; color: var(--slate); }
.highlight { background: linear-gradient(120deg, transparent 0%, transparent 100%, var(--orange) 100%); color: var(--orange); }
.hero p { font-size: 1.2rem; color: #666; margin-bottom: 40px; max-width: 500px; }

.hero-btns { display: flex; gap: 15px; }
.btn-tech { background: var(--slate); color: var(--white); padding: 12px 30px; font-family: var(--font-mono); border: none; cursor: pointer; transition: 0.3s; }
.btn-tech:hover { background: var(--orange); }
.btn-outline { background: transparent; border: 1px solid var(--slate); color: var(--slate); padding: 12px 30px; font-family: var(--font-mono); transition: 0.3s; }
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }

.cad-frame { position: relative; border: 1px solid var(--orange); padding: 10px; display: inline-block; }
.crosshair { position: absolute; width: 10px; height: 10px; border: 1px solid var(--slate); }
.tl { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.tr { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.bl { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.br { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.label-box { position: absolute; bottom: 20px; left: 20px; background: rgba(55, 71, 79, 0.9); color: var(--white); padding: 10px; font-family: var(--font-mono); font-size: 0.7rem; }
.label-box span { display: block; }

/* Metrics */
.metrics-bar { background: var(--slate); color: var(--white); padding: 40px 0; }
.metrics-flex { display: flex; justify-content: space-around; text-align: center; }
.metric strong { display: block; font-family: var(--font-mono); font-size: 2.5rem; color: var(--orange); }
.metric span { font-size: 0.8rem; letter-spacing: 1px; }

/* Services Preview */
.section-title h2 { font-family: var(--font-mono); font-size: 2rem; color: var(--slate); margin-bottom: 10px; }
.tech-line { width: 100px; height: 2px; background: var(--orange); margin-bottom: 40px; }
.left { margin-right: auto; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.tech-card { background: var(--white); padding: 30px; border: 1px solid #ccc; position: relative; transition: 0.3s; }
.tech-card:hover { border-color: var(--orange); box-shadow: 5px 5px 0 rgba(0,0,0,0.1); }
.card-num { font-family: var(--font-mono); color: #ddd; font-size: 3rem; position: absolute; top: 10px; right: 20px; opacity: 0.5; }
.tech-card h3 { font-family: var(--font-sans); margin-bottom: 15px; font-size: 1.3rem; color: var(--slate); font-weight: 700; }

/* Service List Page */
.service-list { display: flex; flex-direction: column; gap: 40px; }
.service-row { display: flex; gap: 30px; background: var(--white); border: 1px solid #ccc; padding: 40px; align-items: flex-start; }
.s-icon { font-size: 3rem; color: var(--orange); }
.s-info h3 { font-family: var(--font-mono); margin-bottom: 10px; font-size: 1.5rem; }
.specs { list-style: none; margin-top: 20px; font-family: var(--font-mono); font-size: 0.9rem; color: #666; }

/* Projects Page */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.project-card { background: var(--white); border: 1px solid #ccc; overflow: hidden; }
.p-image { position: relative; height: 250px; overflow: hidden; }
.p-image img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: 0.3s; }
.project-card:hover .p-image img { filter: grayscale(0%); }
.status { position: absolute; top: 10px; right: 10px; font-family: var(--font-mono); font-size: 0.7rem; padding: 3px 8px; color: white; }
.completed { background: var(--slate); } .in-progress { background: var(--orange); }
.p-details { padding: 20px; }
.p-details h3 { font-size: 1.2rem; margin-bottom: 15px; font-family: var(--font-mono); }
.data-table { font-size: 0.85rem; margin-bottom: 20px; border-top: 1px solid #eee; }
.row { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid #eee; }
.link-tech { font-family: var(--font-mono); font-size: 0.8rem; color: var(--orange); font-weight: 700; }

/* About Page */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: center; }
.about-text h1 { font-family: var(--font-mono); font-size: 2.5rem; margin-bottom: 20px; }
.tech-stack { margin-top: 30px; border: 1px dashed #ccc; padding: 15px; display: inline-block; }
.tech-stack h4 { font-family: var(--font-mono); font-size: 0.8rem; margin-bottom: 10px; color: var(--slate); }
.tech-stack span { display: inline-block; background: var(--slate); color: var(--white); padding: 3px 8px; font-family: var(--font-mono); font-size: 0.75rem; margin-right: 5px; margin-bottom: 5px; }

/* Contact Page */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; background: var(--white); padding: 50px; border: 1px solid #ccc; }
.address-box { font-family: var(--font-mono); font-size: 0.9rem; margin-top: 30px; border-left: 2px solid var(--orange); padding-left: 15px; }

.blueprint-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grp { margin-bottom: 20px; }
.grp label { display: block; font-family: var(--font-mono); font-size: 0.8rem; margin-bottom: 5px; color: var(--slate); }
.grp input, .grp select, .grp textarea { width: 100%; padding: 10px; border: 1px solid #ccc; font-family: var(--font-sans); background: #fafafa; }
.grp input:focus, .grp select:focus, .grp textarea:focus { border-color: var(--orange); outline: none; background: #fff; }
.full { width: 100%; }

/* Legal */
.legal-doc { max-width: 800px; margin: 0 auto; background: var(--white); padding: 50px; border: 1px solid #ccc; }

/* Footer */
.footer { background: var(--slate); color: #ccc; padding: 60px 0 20px; margin-top: 100px; }
.footer-content { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.f-brand h4 { font-family: var(--font-mono); color: var(--white); margin-bottom: 5px; }
.f-links a { margin-left: 20px; font-family: var(--font-mono); font-size: 0.8rem; }
.f-links a:hover { color: var(--orange); }
.copyright { text-align: center; font-family: var(--font-mono); font-size: 0.7rem; border-top: 1px solid #455a64; padding-top: 20px; }

@media (max-width: 900px) {
    .hero h1 { font-size: 2.5rem; }
    .hero-grid, .grid-3, .service-row, .project-grid, .about-grid, .contact-wrapper, .blueprint-form .form-row { grid-template-columns: 1fr; }
    .service-row { flex-direction: column; }
    .footer-content { flex-direction: column; gap: 20px; text-align: center; }
}