@import url('fonts.css');

:root {
    /* Brand Colors extracted from Logo */
    --brand-primary: #c37831;
    /* Copper/Orange from Logo */
    --brand-dark: #333333;
    --brand-light: #ffffff;
    --brand-gray: #f4f6f8;

    /* Functional Colors */
    --text-main: #2c3e50;
    --text-muted: #6c757d;
    --bg-body: #ffffff;
    --bg-surface: #f8f9fa;
    --border-color: #e9ecef;

    /* Typography */
    --font-heading: 'Roboto', 'Inter', sans-serif;
    --font-body: 'Open Sans', 'Inter', sans-serif;
    --font-mono: 'Consolas', 'Monaco', 'Courier New', monospace;
    /* New Tech Font */

    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 5rem;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-tech: 0 0 10px rgba(195, 120, 49, 0.2);
    /* Subtle glow for tech elements */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--brand-dark);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    letter-spacing: -1px;
}

h2 {
    font-size: 2.25rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--brand-primary);
}

/* Tech / Code Stylings */
.code-font {
    font-family: var(--font-mono);
}

.terminal-window {
    background-color: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    color: #d4d4d4;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    border: 1px solid #333;
    position: relative;
    text-align: left;
}

.terminal-header {
    background-color: #252526;
    padding: 8px 15px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #333;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.red {
    background-color: #ff5f56;
}

.terminal-dot.yellow {
    background-color: #ffbd2e;
}

.terminal-dot.green {
    background-color: #27c93f;
}

.terminal-body {
    padding: 20px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.line {
    margin-bottom: 4px;
    display: block;
    width: 100%;
    text-align: left;
}

.command-prompt {
    color: var(--brand-primary);
    margin-right: 8px;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background-color: #cccccc;
    animation: blink 1s step-end infinite;
    vertical-align: middle;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.keyword {
    color: #569cd6;
}

.string {
    color: #ce9178;
}

.comment {
    color: #6a9955;
}

.success {
    color: #4ec9b0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

/* Layout Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: var(--spacing-lg) 0;
}

.bg-light {
    background-color: var(--bg-surface);
}

/* Navbar */
.navbar {
    background-color: var(--brand-light);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.5rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.nav-logo img {
    height: 45px;
    width: auto;
}

.nav-brand-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-dark);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Navigation & Dropdowns */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-weight: 600;
    color: var(--brand-dark);
    padding: 1rem 0;
    display: block;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link:hover,
.nav-item:hover .nav-link {
    color: var(--brand-primary);
}

/* Dropdown Menu */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--brand-light);
    box-shadow: var(--shadow-md);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border-top: 3px solid var(--brand-primary);
    list-style: none;
    padding: 0.5rem 0;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-main);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-item:last-child a {
    border-bottom: none;
}

.dropdown-item a:hover {
    background-color: var(--bg-surface);
    color: var(--brand-primary);
    padding-left: 1.75rem;
    /* Slight slide effect */
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 6rem 0;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text .subtitle {
    color: var(--brand-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: block;
}

.hero-text p.lead {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 90%;
}

.btn {
    display: inline-block;
    padding: 0.8em 2em;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--brand-primary);
    color: white;
}

.btn-primary:hover {
    background-color: #a66225;
    /* Darker shade */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(195, 120, 49, 0.3);
}

.btn-outline {
    border-color: var(--brand-dark);
    color: var(--brand-dark);
}

.btn-outline:hover {
    background-color: var(--brand-dark);
    color: white;
}

/* Services Grid - Engineering Grade */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.service-card {
    background: #ffffff;
    padding: 3rem 2rem;
    border: 1px solid #e1e4e8;
    border-radius: 4px;
    /* Sharper corners for pro feel */
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
    border-color: var(--brand-primary);
}

/* Technical "Corner" accent */
.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--brand-primary);
    transition: width 0.3s ease;
}

.service-card:hover::after {
    width: 100%;
}

.service-icon-wrapper {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    transition: background-color 0.3s ease;
}

.service-card:hover .service-icon-wrapper {
    background-color: rgba(195, 120, 49, 0.1);
    /* Brand color tint */
}

.service-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--brand-dark);
    stroke-width: 1.5;
    fill: none;
    transition: stroke 0.3s ease;
}

.service-card:hover .service-icon svg {
    stroke: var(--brand-primary);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    flex-grow: 1;
}

/* Learn more link inside card */
.service-link {
    margin-top: 1.5rem;
    color: var(--brand-primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.service-link::after {
    content: '→';
    transition: transform 0.2s ease;
}

.service-card:hover .service-link::after {
    transform: translateX(5px);
}


/* About / Highlight Section */
.highlight-section {
    background-color: var(--brand-dark);
    color: white;
    position: relative;
}

.highlight-section h2,
.highlight-section h3 {
    color: white;
}

.highlight-section p {
    color: rgba(255, 255, 255, 0.8);
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 4rem 0 0;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
    color: white;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.footer-links li {
    list-style: none;
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #bbb;
}

.footer-links a:hover {
    color: var(--brand-primary);
    padding-left: 5px;
}

.footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
    color: #777;
    font-size: 0.9rem;
}

/* Utilities */
.text-primary {
    color: var(--brand-primary);
}

.mt-4 {
    margin-top: 1.5rem;
}

/* Mobile Menu Toggle Button (Hidden on Desktop) */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--brand-dark);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Responsive Media Queries */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-text {
        order: 2;
        /* Image first on mobile */
    }

    .hero-image {
        order: 1;
        margin-bottom: 2rem;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    /* Fix terminal window stacking on mobile */
    .terminal-window {
        display: flex !important;
        flex-direction: column !important;
        text-align: left !important;
        min-height: 300px; /* Prevent growth during animation */
    }

    /* Force left alignment for the content area */
    .terminal-body, 
    #terminal-content {
        text-align: left !important;
        display: block !important; /* Switch back to block for natural text flow */
    }

    .terminal-body .line {
        text-align: left !important;
        display: block !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: auto !important;
    }

    /* Ensure children don't inherit centering from hero-grid */
    .terminal-body .line * {
        text-align: left !important;
        display: inline !important; /* Keep typewriter spans together */
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        /* Hidden off-screen */
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        padding: 6rem 2rem 2rem 2rem;
        /* Adjusted padding */
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        justify-content: flex-start;
        align-items: flex-start;
        overflow-y: auto;
        /* Enable scrolling */
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 1rem 0;
        border-bottom: 1px solid #f0f0f0;
    }

    /* Reset Dropdown for Mobile to be static block */
    .dropdown {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        border-top: none;
        border-left: 3px solid var(--brand-primary);
        padding-left: 1rem;
        display: block;
        background-color: #f9f9f9;
        margin-top: 0.5rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 1rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .terminal-window {
        /* Reduce terminal size on small screens */
        font-size: 0.75rem;
        text-align: left !important;
    }

    .terminal-body {
        min-height: 200px;
        padding: 15px;
        text-align: left !important;
    }
}
/* Detail Page Layout & Typography */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 4rem;
    align-items: start;
}

.content-text {
    font-size: 1.05rem;
}

.content-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #4a5568;
}

.content-text h3 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    color: var(--brand-dark);
}

.content-sidebar {
    position: sticky;
    top: 100px;
}

.bg-surface {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.feature-block {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #fff;
    border-left: 4px solid var(--brand-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border-radius: 0 4px 4px 0;
}

.feature-block h4 {
    color: var(--brand-primary);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.feature-block p {
    margin-bottom: 0;
    font-size: 1rem;
}

/* Lists */
.process-steps li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}
.process-steps li:last-child {
    border-bottom: none;
}

.step-icon {
    display: inline-block;
    width: 24px;
    text-align: center;
    color: var(--brand-primary);
    font-weight: bold;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .content-sidebar {
        position: static;
        margin-top: 2rem;
    }
}

/* Sidebar CTA Box */
.sidebar-cta {
    background-color: #ffffff;
    padding: 2.5rem;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sidebar-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--brand-primary);
}

.sidebar-cta h4 {
    color: var(--brand-dark);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.sidebar-cta p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.sidebar-cta .btn {
    width: 100%;
    display: block;
}

/* Contact Form */
.contact-form-wrapper {
    background: #fff;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--brand-dark);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    color: var(--text-color);
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--brand-primary);
}

.captcha-flex {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.captcha-img {
    height: 50px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: #fff;
}

.captcha-input {
    max-width: 150px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 2px;
}

@media (max-width: 768px) {
    .form-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Markdown Content Styles */
.direction-list {
    margin: 1rem 0 1rem 2rem;
    padding-left: 1rem;
    list-style-type: disc !important;
}
.direction-list li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    padding-left: 0.5rem;
}
.article-content h2, .article-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--brand-secondary);
}
.article-content p {
    margin-bottom: 1rem;
}

/* Legal / Privacy Style */
.legal-page {
    max-width: 900px !important;
    padding: 5rem 1.5rem;
}

.legal-text {
    line-height: 1.8;
    color: var(--text-main);
}

.legal-text h2, 
.legal-text h3 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--brand-dark);
    font-weight: 700;
}

.legal-text p {
    margin-bottom: 1.5rem;
}

.legal-text a {
    color: var(--brand-primary);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.legal-text a:hover {
    color: #a66225;
}

/* Markdown List Styling */
.direction-list {
    list-style: none;
    padding-left: 0;
    margin: 2rem 0;
    background: var(--bg-surface);
    border-radius: 8px;
    border-left: 4px solid var(--brand-primary);
    overflow: hidden;
}

.direction-list li {
    position: relative;
    padding: 1rem 1.5rem 1rem 2.5rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.direction-list li:last-child {
    border-bottom: none;
}

.direction-list li::before {
    content: '→';
    position: absolute;
    left: 1rem;
    color: var(--brand-primary);
    font-weight: bold;
}

/* Legal Sections */
.legal-section {
    padding: var(--spacing-lg) 0;
}

.legal-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    padding: 4rem;
    border-radius: 8px;
    box-shadow: var(--shadow-tech);
}

.legal-title {
    font-size: 2.5rem;
    margin-bottom: 4rem;
    text-align: center;
    color: var(--brand-dark);
    position: relative;
    padding-bottom: 1.5rem;
}

.legal-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--brand-primary);
}

@media (max-width: 768px) {
    .legal-wrapper {
        padding: 2rem 1.5rem;
    }
}

/* Two-column layout for legal text */
.legal-columns {
    column-count: 2;
    column-gap: 4rem;
    column-rule: 1px solid var(--border-color);
    text-align: left; /* Fixed word spacing issue */
}

.legal-content {
    padding-top: 2rem;
}

.legal-content > blockquote,
.legal-content > p:nth-of-type(-n+3) {
    column-span: all;
    margin-bottom: 2.5rem;
}

.legal-content blockquote {
    background: #fff5eb;
    border-left: 5px solid var(--brand-primary);
    padding: 1.5rem 2rem;
    font-size: 1.1rem;
    border-radius: 0 4px 4px 0;
    box-shadow: var(--shadow-sm);
}

.legal-content blockquote strong {
    color: var(--brand-dark);
}

.legal-content h2, .legal-content h3 {
    column-span: all;
    background: #fdfaf7; /* Very light copper tint */
    padding: 1.25rem 2rem;
    border-left: 6px solid var(--brand-primary);
    margin: 4rem 0 2rem 0;
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-sm);
}

.direction-ordered-list {
    margin: 1.5rem 0;
    padding-left: 0;
    list-style: none;
}

.direction-ordered-list li {
    position: relative;
    padding: 0.75rem 0 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    line-height: 1.7;
    color: var(--text-main);
    transition: background 0.2s;
}

.direction-ordered-list li:hover {
    background: rgba(195, 120, 49, 0.02);
}

/* Style the hierarchical number if it's the first thing in the li */
.direction-ordered-list li strong:first-child {
    color: var(--brand-primary);
    font-weight: 800;
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

@media (max-width: 900px) {
    .legal-columns {
        column-count: 1;
    }
}

/* Prevent double headers in legal content */
.legal-content h1 {
    display: none;
}

/* Status Pulse Animation */
.status-dot-pulse {
    width: 8px;
    height: 8px;
    background-color: var(--brand-primary);
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.status-dot-pulse::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--brand-primary);
    border-radius: 50%;
    animation: status-pulse 2s infinite ease-in-out;
    opacity: 0.7;
}

@keyframes status-pulse {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(3); opacity: 0; }
}
