/* Palette: Engineering Blue, Steel Grey, Blueprint White, Technical Grid */
:root {
    --blue: #005696;
    --blue-dark: #003d6b;
    --grey: #F5F7FA;
    --steel: #334455;
    --text: #222222;
    --white: #FFFFFF;
    
    --font-head: 'Rajdhani', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--grey);
    color: var(--text);
    font-family: var(--font-head);
    line-height: 1.6;
    font-size: 18px;
}

/* Blueprint Grid Background */
.blueprint-grid {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(0, 86, 150, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 86, 150, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    pointer-events: none;
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section-padding { padding: 100px 0; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; height: auto; display: block; border-radius: 2px; }

/* Header */
.tech-header { background: var(--white); padding: 15px 0; border-bottom: 2px solid var(--blue); position: sticky; top: 0; z-index: 1000; }
.header-flex { display: flex; justify-content: space-between; align-items: center; }

.logo { font-size: 1.8rem; font-weight: 700; color: var(--text); letter-spacing: 1px; }
.eng-blue { color: var(--blue); }

.tech-stats { font-family: var(--font-mono); font-size: 0.8rem; color: var(--blue); border: 1px solid var(--blue); padding: 5px 10px; display: none; }
@media (min-width: 768px) { .tech-stats { display: block; } }

.eng-nav a { margin-left: 30px; font-weight: 600; color: var(--steel); font-family: var(--font-mono); font-size: 0.9rem; }
.eng-nav a:hover, .eng-nav a.active { color: var(--blue); text-decoration: underline; }

.mobile-menu-btn { display: none; background: var(--blue); color: var(--white); border: none; padding: 5px 15px; font-family: var(--font-mono); cursor: pointer; }

/* Mobile Drawer */
.mobile-drawer { position: fixed; top: 0; right: -100%; width: 300px; height: 100%; background: var(--white); z-index: 2000; padding: 50px; border-left: 5px solid var(--blue); transition: 0.4s; }
.mobile-drawer.active { right: 0; }
.close-btn { background: none; border: 1px solid var(--steel); color: var(--steel); font-family: var(--font-mono); padding: 5px 15px; margin-bottom: 30px; cursor: pointer; }
.mobile-drawer a { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; margin-bottom: 20px; color: var(--steel); }

@media (max-width: 900px) {
    .eng-nav { display: none; }
    .mobile-menu-btn { display: block; }
}

/* Hero */
.hero-tech { height: 80vh; position: relative; display: flex; align-items: center; justify-content: center; text-align: left; }
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; z-index: 0; filter: grayscale(80%); }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255,255,255,0.85); z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 800px; margin-left: 0; border-left: 5px solid var(--blue); padding-left: 40px; }

.spec-label { font-family: var(--font-mono); color: var(--blue); font-size: 0.9rem; letter-spacing: 2px; display: block; margin-bottom: 10px; }
.hero-content h1 { font-size: 4rem; line-height: 1; margin-bottom: 20px; color: var(--text); text-transform: uppercase; }
.hero-content p { font-size: 1.2rem; color: var(--steel); margin-bottom: 40px; max-width: 600px; }

.btn-group { display: flex; gap: 20px; }
.btn-tech { background: var(--blue); color: var(--white); padding: 15px 40px; font-family: var(--font-mono); font-weight: 700; border: none; cursor: pointer; transition: 0.3s; }
.btn-tech:hover { background: var(--blue-dark); }
.btn-wire { border: 2px solid var(--blue); color: var(--blue); padding: 13px 40px; font-family: var(--font-mono); font-weight: 700; transition: 0.3s; }
.btn-wire:hover { background: var(--blue); color: var(--white); }

/* Specs Section */
.section-head { margin-bottom: 60px; }
.mono-tag { font-family: var(--font-mono); color: #888; font-size: 0.9rem; }
.section-head h2 { font-size: 2.5rem; color: var(--text); margin: 5px 0 10px; }
.ruler-line { height: 2px; background: repeating-linear-gradient(90deg, var(--blue) 0, var(--blue) 10px, transparent 10px, transparent 15px); width: 100px; }
.ruler-line.left { margin: 20px 0 40px; }
.center { text-align: center; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.tech-card { background: var(--white); border: 1px solid #ddd; padding: 30px; transition: 0.3s; position: relative; }
.tech-card:hover { border-color: var(--blue); box-shadow: 10px 10px 0 rgba(0, 86, 150, 0.1); }
.card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 15px; }
.id { font-family: var(--font-mono); color: var(--blue); font-weight: 700; font-size: 1.2rem; }
.tech-card h3 { font-size: 1.4rem; margin: 0; }
.specs-list { margin-top: 20px; font-family: var(--font-mono); font-size: 0.85rem; color: var(--steel); display: flex; flex-direction: column; gap: 5px; }

/* Data Strip */
.data-strip { background: var(--steel); color: var(--white); padding: 50px 0; margin-top: 50px; }
.strip-flex { display: flex; justify-content: space-around; text-align: center; }
.data-point strong { display: block; font-size: 3rem; font-weight: 700; line-height: 1; }
.data-point span { font-family: var(--font-mono); font-size: 0.9rem; color: #ccc; }

/* Expertise Page */
.expertise-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.exp-text h1 { font-size: 3rem; line-height: 1.1; margin-bottom: 20px; }
.tech-stack { margin-top: 40px; background: var(--white); padding: 20px; border-left: 4px solid var(--blue); }
.tech-stack h3 { margin-bottom: 15px; font-size: 1.2rem; }
.tech-stack ul { list-style: none; padding: 0; font-family: var(--font-mono); font-size: 0.9rem; }
.tech-stack li { margin-bottom: 8px; border-bottom: 1px dashed #ddd; padding-bottom: 5px; }
.blueprint-frame { padding: 10px; border: 1px solid var(--blue); background: var(--white); text-align: center; }
.img-label { display: block; font-family: var(--font-mono); font-size: 0.7rem; color: #888; margin-top: 5px; text-align: right; }

/* Projects List */
.projects-list { display: flex; flex-direction: column; gap: 30px; max-width: 900px; margin: 0 auto; }
.project-item { display: grid; grid-template-columns: 300px 1fr; background: var(--white); border: 1px solid #ddd; gap: 30px; }
.project-item img { width: 100%; height: 100%; object-fit: cover; }
.p-info { padding: 30px; display: flex; flex-direction: column; justify-content: center; }
.p-info h3 { font-size: 1.5rem; margin-bottom: 5px; }
.p-client { font-family: var(--font-mono); font-size: 0.8rem; color: var(--blue); margin-bottom: 15px; display: block; }
.link-arrow { color: var(--steel); font-weight: 700; font-size: 0.9rem; margin-top: 15px; text-transform: uppercase; }
.link-arrow:hover { color: var(--blue); }

/* Contact Form */
.contact-blueprint { max-width: 800px; margin: 0 auto; background: var(--white); padding: 50px; border: 2px solid var(--steel); position: relative; }
.contact-blueprint::before { content: ''; position: absolute; top: -10px; left: -10px; width: 100%; height: 100%; border: 1px dashed var(--blue); z-index: -1; }
.c-head { margin-bottom: 40px; border-bottom: 2px solid var(--blue); padding-bottom: 20px; }
.tech-specs { font-family: var(--font-mono); font-size: 0.9rem; margin-top: 20px; color: var(--steel); }

.tech-form .input-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700; margin-bottom: 5px; color: var(--steel); }
.field input, .field select, .field textarea { width: 100%; padding: 12px; border: 1px solid #ccc; font-family: var(--font-head); background: #f9f9f9; font-size: 1rem; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: none; background: #fff; }
.full { width: 100%; }

/* Legal */
.legal-doc { max-width: 800px; margin: 0 auto; background: var(--white); padding: 60px; border: 1px solid #ddd; }
.legal-doc h1 { font-family: var(--font-head); color: var(--blue); }

/* Footer */
.eng-footer { background: var(--text); color: #ccc; padding: 60px 0 20px; margin-top: 100px; font-family: var(--font-mono); font-size: 0.9rem; }
.footer-content { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.f-left h4 { color: var(--white); font-family: var(--font-head); font-size: 1.5rem; margin-bottom: 5px; }
.f-right a { margin-left: 20px; color: #ccc; }
.f-right a:hover { color: var(--white); text-decoration: underline; }
.copyright { text-align: center; font-size: 0.8rem; border-top: 1px solid #444; padding-top: 20px; }

@media (max-width: 900px) {
    .hero-content { padding-left: 20px; border-left-width: 3px; }
    .hero-content h1 { font-size: 2.8rem; }
    .grid-3, .expertise-layout, .project-item, .tech-form .input-grid { grid-template-columns: 1fr; }
    .project-item img { height: 200px; }
    .footer-content { flex-direction: column; gap: 20px; text-align: center; }
}