:root {
    --bg-color: #222;
    --text-color: #ddd;
    --secondary-text: #ddd;
    --accent-color: #ccc; /* Black/Grey for a serious tone */
    --border-color: #444;
    --code-font: "SF Mono", "Roboto Mono", "Menlo", "Courier New", monospace;
    --body-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--body-font);
    font-size: 18px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =========================================
   LAYOUT & CONTAINER
   ========================================= */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

main {
    display: grid;
    grid-gap: 60px;
}

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1, h2, h3 {
    font-family: var(--code-font); /* The 'Technical' Look */
    line-height: 1.3;
    margin-top: 0;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -1px;
    margin-bottom: 10px;
    border-bottom: 3px solid var(--text-color);
    display: inline-block;
    padding-bottom: 10px;
}

h2 {
    font-size: 1.5rem;
    letter-spacing: 1px;
    margin-bottom: 25px;
    color: var(--text-color);
}

h3 {
    font-size: 1.2rem;
    font-family: var(--body-font); /* Readable subheads */
    font-weight: 700;
    margin-bottom: 15px;
}

p {
    margin-top: 0;
    margin-bottom: 1.5em;
    color: var(--secondary-text);
}

a {
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 2px solid var(--text-color);
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.6;
}

.subhead {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--secondary-text);
    margin-top: 0;
    margin-bottom: 40px;
    line-height: 1.4;
}

/* =========================================
   HEADER & HERO
   ========================================= */
header {
    margin-bottom: 40px;
}

header button {
    background: var(--text-color);
    color: #ddd;
    border: 2px solid var(--text-color);
    padding: 15px 30px;
    font-family: var(--code-font);
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
}

header button:hover {
    background: transparent;
    color: var(--text-color);
}
/* Dimension Blocks */
.dimension-block {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #444; /* A subtle divider */
}

.dimension-title {
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: #888; /* Greyed out, structural color */
    margin-bottom: 0.5rem;
}

.dimension-desc {
    font-style: italic;
    color: #aaa;
    margin-bottom: 1.5rem;
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid */
    gap: 1.5rem;
}

/* Card Style */
.card {
    background: #444; /* Light paper texture feel */
    padding: 1.5rem;
    border-left: 4px solid #000; /* A strong structural line */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card-tag {
    font-size: 0.75rem;
    font-weight: bold;
    color: #d50; /* Accent color, like Mars */
    display: block;
    margin-bottom: 0.5rem;
}

.card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.card p {
    font-size: 0.95rem;
    color: #bbb;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.read-more {
    font-weight: bold;
    text-decoration: none;
    color: #ccc;
    font-size: 0.9rem;
}

.read-more:hover {
    text-decoration: underline;
}
@media (max-width: 768px) {
    #terms {
        grid-template-columns: 1fr;
    }
}
/* Footer */
footer {
    text-align: center;
    padding: 40px 0;
    font-family: var(--code-font);
    font-size: 0.8rem;
    letter-spacing: 4px;
    color: #999;
    border-top: 1px solid var(--border-color);
}

/* =========================================
   RESPONSIVE QUERIES
   ========================================= */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .subhead {
        font-size: 1.2rem;
    }

    #case-studies {
        grid-template-columns: 1fr; /* Stack case studies on mobile */
    }

    #services {
        grid-template-columns: 1fr; /* Stack services on mobile */
    }
    
    .container {
        padding: 20px 15px;
    }
    
    #contact {
        padding: 40px 20px;
    }
}
