@import "mega-menu.css";
/* ============================================================
   STRATEX LABS - TITANIUM THEME
   Sleek, Silver, High-Contrast, Professional
   ============================================================ */

/* Reset & Variables */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Core Colors - Titanium Palette */
    --color-bg: #ffffff;
    --color-bg-alt: #f5f5f7;
    /* Very light grey/silver */
    --color-bg-card: #ffffff;

    /* Text Colors */
    --color-text: #111111;
    /* Obsidian */
    --color-text-muted: #666666;
    /* Steel */
    --color-text-dim: #999999;
    /* Light Silver */

    /* Brand Colors - Metallic & Professional */
    --color-primary: #111111;
    /* Black is the new primary */
    --color-accent: #64748b;
    /* Slate/Silver accent */

    /* Service Identity Colors (Muted/Professional) */
    --color-offensive: #991b1b;
    /* Deep Red */
    --color-defensive: #0284c7;
    /* Steel Blue */
    --color-advisory: #0d9488;
    /* Teal (Evolve) */
    --color-training: #d97706;
    /* Amber/Orange */

    /* Legacy Neon Mappings (for compatibility) */
    --color-neon-purple: #7e22ce;
    --color-neon-cyan: var(--color-defensive);
    --color-neon-pink: #be185d;
    --color-neon-green: #059669;

    /* Shadows & Glows (Soft, not Neon) */
    --glow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --glow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    /* Borders */
    --border-light: 1px solid #e2e8f0;
    --border-strong: 1px solid #cbd5e1;

    /* Typography */
    --font-display: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-body: 'Inter', sans-serif;

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
    cursor: default;
    /* Revert custom cursor for professional feel */
    -webkit-font-smoothing: antialiased;
}

a,
button {
    cursor: pointer;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 40px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: var(--border-light);
    transition: all 0.3s ease;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    /* Optional: filter to make logo monochrome if needed */
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

.logo-sub {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--color-text-muted);
}

/* Nav Links */
.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-text);
    font-weight: 600;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 6px;
    border: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--color-primary);
    color: #ffffff;
    box-shadow: var(--glow-soft);
}

.btn-primary:hover {
    background: #333333;
    /* Dark Grey hover */
    transform: translateY(-1px);
    box-shadow: var(--glow-hover);
}

.btn-cyber {
    background: transparent;
    color: var(--color-text);
    border: 2px solid var(--color-text);
}

.btn-cyber:hover {
    background: var(--color-text);
    color: #ffffff;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 12px;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 140px 60px 80px;
    background: radial-gradient(circle at 50% 0%, #f1f5f9 0%, #ffffff 70%);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 6vw, 90px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: var(--color-text);
    margin-bottom: 24px;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 20px;
    line-height: 1.6;
    color: var(--color-text-muted);
    max-width: 600px;
    margin-bottom: 40px;
}

/* ============================================================
   SERVICES TABS (Refactored for Titanium)
   ============================================================ */
.services-hero {
    padding: 180px 0 80px;
    text-align: center;
    background: var(--color-bg-alt);
    border-bottom: var(--border-light);
}

.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-dim);
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--color-text);
}

.section-desc {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin-top: 16px;
}

.tabs-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.tabs-nav {
    display: inline-flex;
    margin: 0 auto 40px auto;
    background: #ffffff;
    border: var(--border-light);
    border-radius: 12px;
    padding: 6px;
    gap: 4px;
    box-shadow: var(--glow-soft);
}

/* Service Quick-Nav - replaces Command HUD */
.service-quick-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 48px;
    padding: 0 20px;
}

.quick-nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    color: var(--color-text-muted);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.quick-nav-pill:hover {
    background: #ffffff;
    border-color: var(--color-text);
    color: var(--color-text);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.quick-nav-pill.active {
    background: var(--color-text);
    border-color: var(--color-text);
    color: #ffffff;
}

.quick-nav-pill svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.quick-nav-divider {
    width: 1px;
    height: 20px;
    background: #e2e8f0;
    align-self: center;
}

.tab-btn {
    padding: 14px 36px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-muted);
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: 140px;
    text-align: center;
}

.tab-btn:hover {
    color: var(--color-text);
    background: #f8fafc;
}

.tab-btn.active {
    color: var(--color-text);
    background: #f1f5f9;
    font-weight: 600;
    box-shadow: inset 0 0 0 1px #e2e8f0;
}

.tab-pane {
    display: none;
    animation: fade-up 0.4s ease forwards;
    text-align: left;
}

.tab-pane.active {
    display: block;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   SERVICE CARDS (White on Silver)
   ============================================================ */
.service-detail-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.sub-service-block {
    background: #ffffff;
    border: var(--border-light);
    border-radius: 20px;
    padding: 24px 28px;
    box-shadow: var(--glow-soft);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.sub-service-block:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-hover);
    border-color: #cbd5e1;
}

.sub-service-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: var(--border-light);
    flex-wrap: wrap;
    gap: 12px;
}

.service-icon-lg {
    width: 48px;
    height: 48px;
    background: #f8fafc;
    border: var(--border-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    /* Icons default to black */
}

/* Contextual Icon Colors applied via style or classes */

.sub-service-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
    letter-spacing: -0.02em;
}

.sub-service-desc {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--color-text-muted);
    margin-top: 4px;
}

.service-tag {
    background: #f1f5f9;
    color: var(--color-text);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-family: var(--font-mono);
    font-weight: 600;
    border: 1px solid #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-intro-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text-muted);
    max-width: 800px;
    margin-bottom: 16px;
    text-align: left;
}

.service-body-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

@media (max-width: 900px) {
    .service-body-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.service-column h4 {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--color-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 6px;
}

/* Method Steps */
.methodology-steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.method-step {
    display: flex;
    gap: 16px;
}

.step-num {
    font-family: var(--font-mono);
    color: var(--color-text);
    font-weight: bold;
    background: #f1f5f9;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 14px;
    border: 1px solid #e2e8f0;
}

.step-content {
    flex: 1;
}

.step-content strong {
    display: block;
    color: var(--color-text);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.step-content p {
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 1.5;
}

/* Check List */
.check-list li {
    display: flex;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--color-text);
    line-height: 1.5;
    margin-bottom: 8px;
}

.check-list li svg {
    color: var(--color-accent);
    /* Silver/Grey icons */
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Capabilities Box */
.capabilities-box {
    background: #f8fafc;
    border: var(--border-light);
    border-radius: 16px;
    padding: 24px;
    margin-top: 20px;
}

.cap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}

.cap-item {
    display: flex;
    gap: 12px;
}

.cap-item svg {
    color: var(--color-text);
    width: 20px;
    height: 20px;
}

.cap-text strong {
    display: block;
    color: var(--color-text);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.cap-text p {
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 1.5;
}

.service-cta {
    margin-top: 20px;
    padding-top: 14px;
    border-top: var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    text-align: left;
}

.best-for {
    font-size: 13px;
    color: var(--color-text-muted);
    background: #f8fafc;
    padding: 6px 12px;
    border-radius: 6px;
}

.best-for strong {
    color: var(--color-text);
}

/* Footer */
.footer {
    padding: 80px 0 0;
    border-top: var(--border-light);
    background: #f8fafc;
    color: var(--color-text-muted);
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-tagline {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--color-text);
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.02em;
}

.footer-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text-muted);
    max-width: 320px;
    margin: 0;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-heading {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links li a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
    display: inline-block;
}

.footer-links li a:hover {
    color: var(--color-text);
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.footer-contact svg {
    color: var(--color-accent);
    flex-shrink: 0;
}

.footer-contact a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: var(--color-text);
}

.footer-contact span {
    color: var(--color-text-muted);
}

.footer-bottom {
    border-top: var(--border-light);
    padding: 32px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    margin: 0;
    font-size: 13px;
    color: var(--color-text-muted);
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
}

.footer-legal a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: var(--color-text);
}

.footer-divider {
    color: var(--color-text-dim);
}

@media (max-width: 640px) {
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

/* ============================================================
   HOME PAGE SPECIFIC TITANIUM STYLES
   ============================================================ */

/* Matrix Canvas (Restored for About Page) */
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.1;
    /* Subtle on light theme */
}

/* Particle Canvas (Hero Background) */
#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero {
    position: relative;
    /* Ensure containment */
}

/* Ghost Button (Evolve Teal) */
.btn-purple-ghost {
    background: transparent;
    color: var(--color-advisory);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 13px;
    text-decoration: underline;
}

.btn-purple-ghost:hover {
    background: rgba(13, 148, 136, 0.05);
    color: #0f766e;
}

.btn-purple-ghost svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.btn-purple-ghost:hover svg {
    transform: translateY(4px);
    /* Animate Down */
}

/* Services Section (Home) */
.services {
    padding: 100px 0;
}

/* Service Cards (Home) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.service-card {
    background: #ffffff;
    border: var(--border-light);
    border-radius: 16px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--glow-soft);
    cursor: pointer;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow-hover);
    border-color: #cbd5e1;
}

.card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
    color: var(--color-primary);
}

.card-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-text);
}

/* ============================================================
   ABOUT PAGE SPECIFIC TITANIUM STYLES
   ============================================================ */

.about-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 20px;
    background: radial-gradient(circle at center, #f1f5f9 0%, #ffffff 70%);
}

.about-title {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 80px);
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
    max-width: 1000px;
    margin-bottom: 40px;
    color: var(--color-text);
}

.about-subtitle {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--color-accent);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.content-section {
    padding: 80px 0;
}

.story-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.story-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--color-text-muted);
    margin-bottom: 32px;
}

.engine-section {
    background: #f8fafc;
    padding: 120px 0;
    border-top: var(--border-light);
    border-bottom: var(--border-light);
}

.engine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.engine-card {
    background: #ffffff;
    border: var(--border-light);
    padding: 40px;
    border-radius: 20px;
    text-align: left;
    transition: transform 0.3s ease, border-color 0.3s ease;
    box-shadow: var(--glow-soft);
}

.engine-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow-hover);
    border-color: #cbd5e1;
}

.engine-icon {
    width: 48px;
    height: 48px;
    background: #f1f5f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--color-primary);
}

.card-desc {
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ============================================================
   TRUST BAR / CERTIFICATIONS
   ============================================================ */
.trust-bar {
    padding: 40px 0;
    background: var(--color-bg-alt);
    border-top: var(--border-light);
    border-bottom: var(--border-light);
}

.trust-header,
.trust-footer {
    text-align: center;
    margin-bottom: 24px;
}

.trust-footer {
    margin-bottom: 0;
    margin-top: 24px;
}

.trust-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 20px;
    background: #ffffff;
    border: var(--border-light);
    border-radius: 10px;
    transition: all 0.2s ease;
    min-width: 120px;
}

.trust-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-soft);
    border-color: #cbd5e1;
}

.badge-name {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

.badge-detail {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .trust-badges {
        gap: 16px;
    }

    .trust-badge {
        min-width: 100px;
        padding: 10px 14px;
    }

    .badge-name {
        font-size: 14px;
    }
}

/* ============================================================
   SERVICE CARDS - COLOR ACCENTS (Home)
   ============================================================ */
.services-grid-3 {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 40px;
}

@media (max-width: 1024px) {
    .services-grid-3 {
        grid-template-columns: 1fr;
    }
}

.service-card--offensive {
    border-top: 3px solid var(--color-offensive);
}

.service-card--offensive .card-icon {
    color: var(--color-offensive);
}

.service-card--training {
    border-top: 3px solid var(--color-training);
}

.service-card--training .card-icon {
    color: var(--color-training);
}

.service-card--advisory {
    border-top: 3px solid var(--color-advisory);
}

.service-card--advisory .card-icon {
    color: var(--color-advisory);
}

.card-link {
    display: inline-block;
    margin-top: 16px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s ease;
}

.service-card:hover .card-link {
    color: var(--color-text);
}

/* ============================================================
   WHY STRATEX / DIFFERENTIATORS
   ============================================================ */
.why-us {
    padding: 100px 0;
    background: var(--color-bg-alt);
    border-top: var(--border-light);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1024px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .why-grid {
        grid-template-columns: 1fr;
    }
}

.why-card {
    background: #ffffff;
    border: var(--border-light);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
    box-shadow: var(--glow-soft);
}

.why-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--glow-hover);
    border-color: #cbd5e1;
}

.why-number {
    font-family: var(--font-mono);
    font-size: 32px;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 16px;
    line-height: 1;
}

.why-card:hover .why-number {
    color: var(--color-text);
    transition: color 0.3s ease;
}

.why-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.why-desc {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ============================================================
   STRATEX LAYERS PAGE
   ============================================================ */
.layers-hero {
    padding: 180px 0 80px;
    text-align: center;
    background: radial-gradient(circle at 50% 0%, #f1f5f9 0%, #ffffff 70%);
}

.layers-hero-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 6vw, 80px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: var(--color-text);
    margin-top: 16px;
    margin-bottom: 16px;
}

.layers-hero-subtitle {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.layers-intro {
    padding: 80px 0;
    border-bottom: var(--border-light);
}

.layers-intro-content {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.layers-intro-text {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.8;
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.layers-intro-text:last-child {
    margin-bottom: 0;
}

.layers-methodology {
    padding: 100px 0;
    background: var(--color-bg-alt);
}

.layers-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.layers-line {
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #e2e8f0, #cbd5e1, #e2e8f0);
}

.layer-step {
    display: flex;
    gap: 32px;
    margin-bottom: 48px;
    position: relative;
}

.layer-step:last-child {
    margin-bottom: 0;
}

.layer-marker {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: #ffffff;
    border: 2px solid var(--color-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.3s ease;
}

.layer-step:hover .layer-marker {
    background: var(--color-text);
    transform: scale(1.05);
}

.layer-num {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
    transition: color 0.3s ease;
}

.layer-step:hover .layer-num {
    color: #ffffff;
}

.layer-content {
    flex: 1;
    background: #ffffff;
    border: var(--border-light);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--glow-soft);
    transition: all 0.3s ease;
}

.layer-step:hover .layer-content {
    transform: translateY(-2px);
    box-shadow: var(--glow-hover);
    border-color: #cbd5e1;
}

.layer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.layer-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

.layer-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-muted);
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 4px 10px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.layer-desc {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.layer-details {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

@media (max-width: 640px) {
    .layer-details {
        grid-template-columns: 1fr;
    }
}

.layer-details li {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--color-text);
    padding-left: 16px;
    position: relative;
    line-height: 1.5;
}

.layer-details li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
}

.layer-outcome {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--color-text-muted);
    background: #f8fafc;
    border-left: 3px solid var(--color-text);
    padding: 10px 14px;
    border-radius: 0 6px 6px 0;
}

.layer-outcome strong {
    color: var(--color-text);
    font-weight: 600;
}

@media (max-width: 768px) {
    .layers-line {
        left: 20px;
    }

    .layer-marker {
        width: 40px;
        height: 40px;
    }

    .layer-num {
        font-size: 13px;
    }

    .layer-step {
        gap: 20px;
    }

    .layer-content {
        padding: 24px;
    }

    .layer-title {
        font-size: 18px;
    }
}

/* ============================================================
   GLOBAL REACH SECTION
   ============================================================ */
.global-reach {
    padding: 80px 0;
    border-top: var(--border-light);
}

.global-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.global-title {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--color-text);
    margin-top: 12px;
    margin-bottom: 20px;
}

.global-text {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text-muted);
    margin-bottom: 32px;
}

.global-locations {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--color-bg-alt);
    border: var(--border-light);
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
    transition: all 0.2s ease;
}

.location-badge:hover {
    transform: translateY(-1px);
    box-shadow: var(--glow-soft);
    border-color: #cbd5e1;
}

.location-badge svg {
    color: var(--color-accent);
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .global-locations {
        gap: 12px;
    }

    .global-title {
        font-size: 28px;
    }
}

/* Process Timeline (Home - Legacy) */
.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 80px auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
    /* Light line */
    transform: translateX(-50%);
}

.process-step {
    display: flex;
    align-items: center;
    /* Align items center */
    margin-bottom: 60px;
    position: relative;
    width: 100%;
    /* Ensure full width */
}

.process-step:nth-child(odd) {
    justify-content: flex-end;
    /* Right side */
    padding-left: 50px;
    /* Space from center */
}

.process-step:nth-child(even) {
    justify-content: flex-start;
    /* Left side */
    padding-right: 50px;
    /* Space from center */
    flex-direction: row-reverse;
    /* Flip for left side */
}

.step-number {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: #ffffff;
    border: 2px solid var(--color-text);
    border-radius: 50%;
    display: flex;
    /* Flexbox for centering */
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 14px;
    z-index: 2;
}

.step-content {
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    border: var(--border-light);
    box-shadow: var(--glow-soft);
    width: 45%;
    /* Approximate width */
    position: relative;
    /* For pseudo-elements if needed */
}

.step-content h3 {
    font-family: var(--font-display);
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--color-text);
}

.step-content p {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin: 0;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(13, 148, 136, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.cta-title .glitch,
.cta-title .neon-text {
    color: #ffffff;
    text-shadow: none;
    animation: none;
}

.cta-desc {
    font-family: var(--font-body);
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta .btn-primary {
    background: #ffffff;
    color: var(--color-text);
    padding: 16px 36px;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.cta .btn-primary:hover {
    background: #f1f5f9;
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 16px;
}

.hero-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 32px;
}

/* ============================================================
   REFERENCE STYLE REFACTOR (Sleek Color Theme)
   ============================================================ */

/* Theme Variables (Scope these in HTML) */
.theme-offensive {
    --theme-color: var(--color-offensive);
    --theme-bg: rgba(153, 27, 27, 0.04);
}

.theme-defensive {
    --theme-color: var(--color-defensive);
    --theme-bg: rgba(2, 132, 199, 0.04);
}

.theme-advisory {
    --theme-color: var(--color-advisory);
    --theme-bg: rgba(13, 148, 136, 0.04);
}

.theme-training {
    --theme-color: var(--color-training);
    --theme-bg: rgba(217, 119, 6, 0.04);
}

.theme-default {
    --theme-color: var(--color-text);
    --theme-bg: #f8fafc;
}

/* Compact Header Alignment */
.sub-service-header .title-group {
    display: flex;
    flex-direction: row !important;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.sub-service-header .sub-service-title {
    margin: 0;
}

/* Widen Intro Text */
.service-intro-text {
    max-width: 100% !important;
    font-size: 15px;
}

/* Reference Title Block (Sleek & Colored) */
.ref-title-block {
    display: flex;
    align-items: center;
    background: var(--theme-bg);
    border-left: 3px solid var(--theme-color);
    padding: 10px 14px;
    border-radius: 0 6px 6px 0;
    margin-bottom: 16px;
}

/* Hide the old explicit bar, we use border-left now */
.ref-title-bar {
    display: none;
}

.ref-title-text {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.05em;
    color: var(--theme-color);
}

/* Reference List Style */
.ref-list {
    list-style: none;
    padding: 0 8px;
    /* Slight indentation */
    margin: 0;
}

.ref-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.ref-list li svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-right: 12px;
    margin-top: 4px;
    color: var(--theme-color);
    /* Icon matches theme */
    opacity: 0.7;
    transition: all 0.2s ease;
}

.ref-list li:hover svg {
    transform: translateX(3px);
    opacity: 1;
}

.ref-list li div strong {
    color: var(--color-text);
    display: block;
    margin-bottom: 2px;
}

.ref-list li div span.ref-desc,
.ref-list li div div.ref-desc {
    font-size: 13px;
    color: var(--color-text-muted);
    opacity: 0.85;
}

/* ============================================================
   SERVICE NAVIGATION SIDEBAR
   ============================================================ */
.sidebar-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.sidebar-container .tab-content {
    flex: 1;
    min-width: 0;
    /* Prevent overflow issues */
}

/* Special adjustment for services.html structure */
.services-wrapper {
    display: flex;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
}

.services-sidebar {
    position: sticky;
    top: 100px;
    width: 240px;
    flex-shrink: 0;
    margin-top: 20px;
    display: none;
    /* Hidden on mobile */
    background: white;
    /* Ensure contrast */
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: var(--glow-soft);
}

@media (min-width: 1200px) {
    .services-sidebar {
        display: block;
    }
}

.services-nav-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

.services-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-left: 2px solid var(--border-light);
}

.services-nav-item {
    margin-bottom: 0;
}

.services-nav-link {
    display: block;
    padding: 8px 16px;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 14px;
    border-left: 2px solid transparent;
    margin-left: -2px;
    /* Overlap border */
    transition: all 0.2s ease;
    font-family: var(--font-body);
}

.services-nav-link:hover {
    color: var(--color-text);
    border-left-color: var(--color-text-dim);
    background: linear-gradient(to right, rgba(0, 0, 0, 0.02), transparent);
}

.services-nav-link.active {
    color: var(--color-text);
    border-left-color: var(--color-text);
    font-weight: 600;
}

/* ============================================================
   RESPONSIVE - MOBILE & TABLET
   ============================================================ */

/* Hamburger Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1002;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.header.nav-open .menu-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.header.nav-open .menu-toggle span:nth-child(2) {
    opacity: 0;
}

.header.nav-open .menu-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Tablet - 1024px */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .header {
        padding: 16px 30px;
    }

    .nav-links {
        gap: 24px;
    }

    .hero {
        padding: 140px 40px 60px;
    }

    .section-title {
        font-size: 36px;
    }
}

/* Mobile Nav - 768px */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 100px 32px 40px;
        gap: 0;
        transition: right 0.3s ease;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        z-index: 1001;
        overflow-y: auto;
    }

    .header.nav-open .nav-links {
        right: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 14px 0;
        font-size: 15px;
        border-bottom: 1px solid #f1f5f9;
    }

    .nav .btn-primary,
    .nav .btn-cyber {
        display: none;
    }

    /* Submenus - show inline on mobile */
    .nav-item-has-submenu {
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .nav-submenu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        background: transparent;
        backdrop-filter: none;
        padding: 0 0 8px 16px;
        border: none;
        border-radius: 0;
        box-shadow: none;
        min-width: unset;
        gap: 2px;
    }

    .nav-submenu-link {
        padding: 8px 12px;
        font-size: 13px;
    }

    .nav-submenu-header {
        padding: 4px 12px;
        margin-top: 8px !important;
    }

    .container {
        padding: 0 20px;
    }

    .header {
        padding: 14px 20px;
    }

    .hero {
        padding: 120px 20px 60px;
        min-height: 60vh;
    }

    .hero-title {
        font-size: clamp(32px, 8vw, 48px);
    }

    .hero-subtitle {
        font-size: 16px;
    }

    /* Services Tabs */
    .services-hero {
        padding: 140px 0 50px;
    }

    .tabs-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .tab-btn {
        padding: 10px 20px;
        font-size: 14px;
        min-width: unset;
    }

    .service-quick-nav {
        gap: 8px;
    }

    .quick-nav-pill {
        padding: 6px 12px;
        font-size: 12px;
    }

    /* CTA Section */
    .cta-title {
        font-size: 28px;
    }

    .cta-desc {
        font-size: 16px;
    }

    /* Footer */
    .footer {
        padding: 50px 0 0;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    /* About/Layers/Contact hero padding */
    .layers-hero,
    .contact-hero {
        padding: 140px 0 50px;
    }

    .layers-hero-title {
        font-size: 36px;
    }

    /* Layers timeline */
    .layers-timeline {
        padding-left: 0;
    }

    .layer-step {
        flex-direction: column;
    }

    /* Contact form */
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Small Mobile - 480px */
@media (max-width: 480px) {
    .hero {
        padding: 110px 16px 50px;
    }

    .hero-title {
        font-size: clamp(28px, 9vw, 40px);
    }

    .section-title {
        font-size: 28px;
    }

    .tab-btn {
        padding: 8px 14px;
        font-size: 13px;
    }

    .btn {
        padding: 10px 18px;
        font-size: 12px;
    }

    .layer-content {
        padding: 16px;
    }

    .services-hero {
        padding: 120px 0 40px;
    }
}