:root {
    /* REVISED PALETTE: Industrial Orange Dominant */
    --primary: #ceba06;    
    --secondary: #393d41;  
    --accent: #685e02;     
    
    /* Neutrals */
    --dark: #121212;       
    --light: #fffaf5;      
    --white: #ffffff;
    --text-body: #333333;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-body);
    background-color: var(--light);
    line-height: 1.6;
    width: 100%;
    overflow-x: hidden; /* Prevents horizontal scroll on mobile */
}

/* --- Navigation Bar --- */
nav {
    background-color: #fdfbf9;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

/* --- Logo Styling --- */
.logo-wrapper {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 15px;
}

.nav-logo {
    height: 50px; 
    width: auto;
    display: block;
    object-fit: contain;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
}

.company-name {
    color: #2C2C2C;
    font-weight: 800;
    font-size: 1.4rem;
    text-transform: uppercase;
    line-height: 1;
}

.company-sub {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
}

/* --- 1. Desktop Navigation (Default) --- */
nav {
    background-color: #fdfbf9;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-links {
    display: flex; /* Visible on Desktop */
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: 0.3s;
    padding: 5px 10px;
}

.menu-toggle {
    display: none; /* Hidden on Desktop */
    font-size: 1.8rem;
    color: var(--primary);
    cursor: pointer;
}

/* --- 2. Mobile Responsive Logic --- */
@media screen and (max-width: 992px) {
    .menu-toggle {
        display: block; /* Show hamburger on Mobile */
    }

    /* CRITICAL FIX: Hide the menu by default on mobile */
    .nav-links {
        display: none !important; 
        flex-direction: column;
        position: absolute;
        top: 100%; 
        left: 0;
        width: 100%;
        background-color: #ffffff;
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        text-align: center;
        gap: 0;
        z-index: 999;
    }

    /* When the "show" class is added via JS, display it */
    .nav-links.show {
        display: flex !important; 
    }

    .nav-links li {
        width: 100%;
        margin: 0;
    }

    .nav-links a {
        display: block;
        padding: 15px 0;
        width: 100%;
        border-bottom: 1px solid #eee;
        font-size: 1.1rem; /* Bigger for thumbs */
    }
}

.nav-links { list-style: none; display: flex; gap: 25px; }
.nav-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: 0.3s;
}
.nav-links a:hover, .nav-links a.active {
    color:  rgba(71, 66, 5, 0.9);/* Navy hover effect */
    background: var(--light);
    padding: 5px 10px;
    border-radius: 4px;
}

/* --- Hero Section --- */
.hero {
    height: 80vh;
    /* Dark Navy Background - The 3D Canvas will sit on top of this */
    background: radial-gradient(circle at center, var(--secondary) 0%, #000000 100%);
    position: relative;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
    border-bottom: 5px solid var(--primary);
}

#canvas-container {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 1; 
    opacity: 1; /* FIXED: Changed from 0.6 to 1 for full visibility */
    pointer-events: all; /* Allows mouse interaction */
}

.hero-text {
    position: relative;
    z-index: 2; /* Keeps text above the 3D model */
    max-width: 600px;
    padding-left: 5%;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8); /* Added shadow for readability */
}

.hero h1 { 
    font-size: 3.5rem; 
    line-height: 1.2; 
    margin-bottom: 20px;
    /* Optional: Make the headline slightly orange or keep white */
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.hero h1 span { color: var(--primary); } /* Use <span> in HTML for orange words */

.hero p { font-size: 1.2rem; margin-bottom: 30px; opacity: 0.9; }

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 35px;
    background: var(--primary); /* Orange Buttons */
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    transition: 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    border: none;
    cursor: pointer;
}
.btn:hover { 
    background: var(--accent); /* Darker Orange on hover */
    transform: translateY(-2px);
}

/* --- Content Sections --- */
.container { max-width: 1200px; margin: 0 auto; padding: 80px 20px; }
.section-title { text-align: center; margin-bottom: 50px; }

.section-title h2 { 
    color: var(--secondary); /* Navy Headings look more professional than orange text */
    font-size: 2.5rem; 
    margin-bottom: 10px; 
    position: relative;
    display: inline-block;
}
/* Orange Underline for headings */
.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 10px auto 0;
}

.section-title p { color: #666; }

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* --- Cards --- */
.card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: 0.3s;
    border-top: 3px solid transparent; /* Hidden border initially */
}
.card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.1); 
    border-top: 3px solid var(--primary); /* Orange top border on hover */
}
.card i { 
    font-size: 3rem; 
    color: var(--primary); /* Orange Icons */
    margin-bottom: 20px; 
}
.card h3 { color: var(--secondary); margin-bottom: 15px; }

/* --- Forms --- */
input, textarea {
    border: 1px solid #ccc;
    border-radius: 4px;
}
input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary); /* Orange focus border */
    box-shadow: 0 0 5px var(--accent);
}

/* --- Footer --- */
footer { 
    background: var(--secondary); /* Navy Footer */
    color: white; 
    padding: 60px 0 20px; 
    margin-top: auto; 
    border-top: 5px solid var(--primary); /* Orange strip on top of footer */
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
footer h4 { color: var(--primary); margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px;}
footer ul { list-style: none; }
footer ul li { margin-bottom: 10px; }
footer a { color: #ccc; text-decoration: none; transition: 0.2s;}
footer a:hover { color: var(--primary); padding-left: 5px;}

/* --- Additions for About & Products --- */

/* About Page Split Layout */
.split-section {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
}
.split-content { flex: 1; }
.split-visual {
    flex: 1;
    height: 400px;
    background: #e0e0e0;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    /* Placeholder pattern for "Engineering" look */
    background-image: repeating-linear-gradient(45deg, #ccc 0, #ccc 1px, transparent 0, transparent 50%);
    background-size: 10px 10px;
    border: 2px solid var(--secondary);
}

/* Mission/Vision Cards */
.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.mission-card {
    background: var(--white);
    padding: 40px;
    border-left: 5px solid var(--primary); /* Orange accent */
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

/* Stats Counter */
.stats-bar {
    background: var(--secondary);
    color: white;
    padding: 60px 0;
    text-align: center;
}
.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
}

/* Product Specifics */
.product-category {
    margin-bottom: 60px;
}
.category-title {
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 30px;
    color: var(--secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
    border: 1px solid #eee;
}
.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}
.product-img-placeholder {
    height: 200px;
    background: #f4f7f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 3rem;
}
.product-info { padding: 20px; }
.product-tag {
    background: var(--light);
    color: var(--secondary);
    padding: 5px 10px;
    font-size: 0.8rem;
    border-radius: 4px;
    font-weight: 600;
}
.price {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 10px;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .split-section { flex-direction: column; }
    .split-visual { width: 100%; height: 250px; }
}