/* ----------------------------------------------------
   ApecX Solutions - Core CSS Design System
   Thematic Style: Midnight Tech (Minimalistic & High-Tech)
------------------------------------------------------- */

/* --- Variables & Tokens --- */
:root {
    /* Color Palette */
    --bg-base: #06060a;
    --bg-surface: rgba(12, 12, 20, 0.65);
    --bg-surface-inner: rgba(22, 22, 38, 0.45);
    
    --primary: #6366f1;         /* Electric Indigo */
    --primary-glow: rgba(99, 102, 241, 0.35);
    --secondary: #06b6d4;       /* Hyper Cyan */
    --secondary-glow: rgba(6, 182, 212, 0.3);
    --accent: #a855f7;          /* Cyber Purple */
    
    --text-primary: #f8fafc;    /* Clean white-grey */
    --text-muted: #94a3b8;      /* Cool grey */
    --text-dimmed: #64748b;     /* Deep slate */
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(99, 102, 241, 0.4);
    
    /* Layout & Spacing */
    --container-max-width: 1200px;
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-base);
}

body.midnight-theme {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 90%;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.2);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* --- Core Layout Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
p { font-size: 1rem; color: var(--text-muted); }

/* --- High-Tech Decorative Assets (CSS Only) --- */
.tech-grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    z-index: 1;
    pointer-events: none;
}

.glow-sphere {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: 0;
    opacity: 0.35;
    pointer-events: none;
    mix-blend-mode: plus-lighter;
}

.sphere-one {
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 80%);
    animation: floatSphere 20s infinite alternate;
}

.sphere-two {
    bottom: -15%;
    left: -15%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 80%);
    animation: floatSphere 25s infinite alternate-reverse;
}

.sphere-three {
    top: 40%;
    left: 40%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 80%);
    opacity: 0.15;
}

@keyframes floatSphere {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, -60px) scale(1.15); }
}

/* --- Premium Buttons and Links --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: var(--bg-surface-inner);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-tertiary {
    background: transparent;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    color: var(--text-muted);
}

.btn-tertiary:hover {
    border-color: var(--secondary);
    color: var(--text-primary);
}

.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 45%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 55%
    );
    transform: rotate(45deg);
    transition: 0.6s;
    opacity: 0;
}

.btn-glow:hover::after {
    left: 120%;
    opacity: 1;
}

/* Glassmorphism Panel styles */
.glass-panel {
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
}

.glass-panel-inner {
    background: var(--bg-surface-inner);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--border-radius-sm);
}

/* --- Section Utilities --- */
.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.max-w-4xl { max-width: 896px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.font-mono { font-family: var(--font-mono); }
.hidden { display: none !important; }
.w-full { width: 100%; }

.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    color: var(--secondary);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.section-title {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-muted);
}

.gradient-text {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Header & Navigation --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(6, 6, 10, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.main-header.scrolled {
    background: rgba(6, 6, 10, 0.9);
    padding: 0.5rem 0;
}

.nav-container {
    width: 90%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo-svg {
    width: 32px;
    height: 32px;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
}

.brand-highlight {
    color: var(--secondary);
    font-weight: 800;
}

.brand-sub {
    font-size: 0.6rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-dimmed);
    margin-left: 0.35rem;
    align-self: flex-end;
    margin-bottom: 3px;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-item {
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
    padding: 0.25rem 0;
}

.nav-item:hover, .nav-item.active {
    color: var(--text-primary);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--secondary), var(--primary));
    transition: var(--transition-fast);
}

.nav-item:hover::after, .nav-item.active::after {
    width: 100%;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-nav-toggle .bar {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    margin: 5px 0;
    transition: 0.3s;
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--bg-base);
    z-index: 99;
    transition: var(--transition-smooth);
    padding: 2rem;
    border-top: 1px solid var(--border-color);
}

.mobile-drawer.open {
    left: 0;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-item {
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--text-muted);
    font-weight: 500;
}

.mobile-nav-item:hover {
    color: var(--text-primary);
}

.drawer-cta {
    margin-top: 2rem;
    text-align: center;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
    z-index: 2;
}

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 5;
    text-align: center;
    padding: 3rem 0;
}

.hero-tag-container {
    margin-bottom: 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 50px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--secondary);
    box-shadow: 0 0 8px var(--secondary);
}

.hero-title {
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    max-width: 750px;
    margin: 0 auto 2.5rem auto;
    font-size: 1.15rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.arrow-icon {
    width: 18px;
    height: 18px;
    margin-left: 0.5rem;
    transition: transform var(--transition-fast);
}

.btn-primary:hover .arrow-icon {
    transform: translateX(4px);
}

.hero-metrics {
    display: flex;
    max-width: 650px;
    margin: 0 auto;
    padding: 1.5rem 2.5rem;
    justify-content: space-between;
    align-items: center;
}

.metric-item {
    text-align: center;
    flex: 1;
}

.metric-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--text-primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.metric-label {
    display: block;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--text-dimmed);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

.metric-divider {
    width: 1px;
    height: 35px;
    background: var(--border-color);
}

.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-decoration: none;
    color: var(--text-dimmed);
    transition: var(--transition-fast);
}

.scroll-indicator:hover {
    color: var(--text-primary);
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid currentColor;
    border-radius: 20px;
    position: relative;
}

.mouse .wheel {
    width: 4px;
    height: 8px;
    background: currentColor;
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
    0% { top: 8px; opacity: 1; }
    100% { top: 22px; opacity: 0; }
}

/* --- Spotlight Section (ApexSphere Dashboard) --- */
.spotlight-section {
    position: relative;
    z-index: 2;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.spotlight-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    align-self: flex-start;
    padding: 0.35rem 0.75rem;
    background: rgba(6, 182, 212, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.15);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.feature-tag-icon {
    width: 14px;
    height: 14px;
}

.spotlight-headline {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.spotlight-desc {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.spotlight-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.spotlight-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.list-bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary);
    margin-top: 8px;
    flex-shrink: 0;
}

.spotlight-list span {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.spotlight-list strong {
    color: var(--text-primary);
}

/* Interactive Dashboard Mock-up Styles */
.dashboard-mockup {
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    height: 100%;
    min-height: 380px;
    display: flex;
    flex-direction: column;
}

.dashboard-header {
    background: rgba(10, 10, 15, 0.8);
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.dots-container {
    display: flex;
    gap: 6px;
}

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

.dot.red { background-color: #ef4444; }
.dot.yellow { background-color: #f59e0b; }
.dot.green { background-color: #10b981; }

.dashboard-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dimmed);
}

.system-status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.status-indicator-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #10b981;
}

.pulsating {
    animation: pulseGlow 1.5s infinite;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.status-text {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: #10b981;
    font-weight: 500;
}

.dashboard-body {
    display: flex;
    flex: 1;
    background: rgba(6, 6, 10, 0.4);
}

.dashboard-sidebar {
    width: 140px;
    border-right: 1px solid var(--border-color);
    padding: 1rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    background: rgba(10, 10, 15, 0.3);
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius-sm);
    color: var(--text-dimmed);
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.sidebar-item:hover, .sidebar-item.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.sidebar-item.active {
    border-left: 2px solid var(--secondary);
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    color: var(--secondary);
    background: rgba(6, 182, 212, 0.05);
}

.dashboard-content {
    flex: 1;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.metric-card {
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

.card-title {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-dimmed);
    letter-spacing: 0.05em;
}

.card-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 0.25rem;
}

.value-unit {
    font-size: 0.75rem;
    color: var(--text-dimmed);
    margin-left: 0.15rem;
}

.card-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 2px;
}

.status-up { color: #10b981; }
.status-stable { color: var(--secondary); }

/* Custom Terminal Console Mock-up */
.terminal-container {
    flex: 1;
    margin-top: auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.terminal-head {
    background: rgba(10, 10, 15, 0.4);
    padding: 0.4rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
}

.badge-terminal {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
}

.terminal-body {
    padding: 0.75rem;
    font-size: 0.7rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    line-height: 1.4;
    overflow-y: auto;
    max-height: 130px;
    background: rgba(0, 0, 0, 0.2);
}

.text-indigo { color: var(--primary); }
.text-cyan { color: var(--secondary); }
.text-green { color: #10b981; }

.text-pulse {
    color: var(--text-primary);
    animation: textPulse 1s infinite alternate;
}

@keyframes textPulse {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* --- Services Capabilities Section --- */
.services-section {
    z-index: 2;
}

.service-card {
    padding: 2.25rem 1.75rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    outline: none;
}

.service-card:hover, .service-card:focus-within {
    border-color: var(--border-color-hover);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.15);
    transform: translateY(-4px);
}

.service-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-sm);
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 1.5rem;
    transition: var(--transition-fast);
}

.service-card:hover .service-icon-wrapper, .service-card:focus-within .service-icon-wrapper {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 15px var(--primary-glow);
}

.service-icon {
    width: 24px;
    height: 24px;
}

.service-name {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.service-description {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex: 1;
}

.service-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.s-tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    color: var(--text-muted);
}

/* --- Portfolio & Niche Brands Section --- */
.portfolio-section {
    position: relative;
    z-index: 2;
}

/* Monochromatic, high-tech brand ribbon */
.client-logo-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    align-items: center;
    padding: 2rem;
    gap: 1.5rem;
}

.client-logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    filter: grayscale(100%) opacity(40%);
    transition: var(--transition-smooth);
}

.client-logo-wrapper:hover {
    filter: grayscale(0%) opacity(100%) brightness(1.2);
    transform: scale(1.05);
}

.client-logo-svg {
    width: 100%;
    max-width: 130px;
    height: 40px;
}

/* Case studies grid and elements */
.portfolio-case-grid {
    gap: 2rem;
}

.portfolio-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.interactive-portfolio-card {
    cursor: pointer;
    transition: var(--transition-smooth);
}

.interactive-portfolio-card:hover {
    border-color: var(--border-color-hover);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.18);
    transform: translateY(-4px);
}

.port-image-mockup {
    height: 200px;
    position: relative;
    background: linear-gradient(135deg, #090910, #15152a);
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.port-image-mockup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
    opacity: 0.75;
}

.portfolio-card:hover .port-image-mockup img {
    transform: scale(1.06);
    opacity: 1;
}

.port-canvas-mesh {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: 20px 20px;
    background-image: 
        radial-gradient(rgba(99, 102, 241, 0.15) 1px, transparent 1px);
    position: relative;
}

.port-canvas-mesh.pink {
    background-image: radial-gradient(rgba(168, 85, 247, 0.15) 1px, transparent 1px);
}

.port-canvas-mesh.cyber {
    background-image: radial-gradient(rgba(6, 182, 212, 0.15) 1px, transparent 1px);
}

.port-canvas-mesh.route {
    background-image: radial-gradient(rgba(16, 185, 129, 0.15) 1px, transparent 1px);
}

.mesh-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: var(--text-dimmed);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.3);
}

.port-status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 0.25rem 0.6rem;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 4px;
    font-weight: 500;
}

.port-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.port-client {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.port-title {
    font-size: 1.4rem;
    margin-top: 0.35rem;
    margin-bottom: 0.75rem;
}

.port-desc {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    flex: 1;
}

.port-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* --- SEO Insights Blog Directory --- */
.blog-section {
    position: relative;
    z-index: 2;
}

.blog-controls-panel {
    display: flex;
    padding: 1.25rem 2rem;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.blog-search-wrapper {
    position: relative;
    flex: 1;
    max-width: 420px;
    min-width: 250px;
}

.blog-search-wrapper .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-dimmed);
    pointer-events: none;
}

.blog-search-wrapper input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-fast);
}

.blog-search-wrapper input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

.blog-categories-wrapper {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.blog-cat-btn {
    padding: 0.5rem 1.1rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.blog-cat-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.blog-cat-btn.active {
    color: var(--secondary);
    background: rgba(6, 182, 212, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.25);
}

/* Blog Cards Grid */
.blog-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.blog-card {
    padding: 1.75rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.blog-card:hover {
    border-color: var(--border-color-hover);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.1);
    transform: translateY(-3px);
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-dimmed);
    text-transform: uppercase;
}

.blog-card-category {
    color: var(--secondary);
    font-weight: 600;
}

.blog-card-title {
    font-size: 1.15rem;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    line-height: 1.4;
    flex-shrink: 0;
}

.blog-card-summary {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex: 1;
}

.blog-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dimmed);
}

.blog-card-link {
    color: var(--primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: var(--transition-fast);
}

.blog-card:hover .blog-card-link {
    color: var(--text-primary);
    padding-left: 2px;
}

/* --- Interactive Blog & Portfolio Reader Modal Panel --- */
.blog-reader-modal, .portfolio-reader-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-reader-backdrop, .portfolio-reader-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 4, 6, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.blog-reader-container, .portfolio-reader-container {
    position: relative;
    width: 90%;
    max-width: 800px;
    height: 90vh;
    z-index: 10;
    display: flex;
    flex-direction: column;
}

.blog-reader-content, .portfolio-reader-content {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 3rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.blog-reader-header, .portfolio-reader-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.blog-reader-meta, .portfolio-reader-meta {
    display: flex;
    flex-direction: column;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
}

.blog-reader-category, .portfolio-reader-client {
    color: var(--secondary);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.blog-reader-date, .portfolio-reader-tagline {
    color: var(--text-dimmed);
    margin-top: 0.15rem;
}

.blog-reader-close, .portfolio-reader-close {
    background: none;
    border: none;
    color: var(--text-dimmed);
    cursor: pointer;
    transition: var(--transition-fast);
    padding: 0.25rem;
}

.blog-reader-close:hover, .portfolio-reader-close:hover {
    color: var(--text-primary);
    transform: rotate(90deg);
}

.blog-reader-title, .portfolio-reader-title {
    font-size: 2.2rem;
    line-height: 1.25;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.blog-reader-author-strip {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.author-avatar-stub {
    width: 40px;
    height: 40px;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.read-duration {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dimmed);
}

/* Portfolio Case Study Metrics Strip */
.portfolio-reader-metrics-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 1rem;
    margin-bottom: 2rem;
    gap: 1rem;
}

.p-metric-item {
    text-align: center;
}

.p-metric-val {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary);
}

.p-metric-lbl {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-dimmed);
    text-transform: uppercase;
    margin-top: 0.15rem;
}

/* --- NEW: Interactive Working Model Simulator Structures --- */
.portfolio-working-model-wrapper {
    background: rgba(10, 10, 15, 0.5);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.sim-section-header {
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.sim-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sim-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--secondary);
    box-shadow: 0 0 10px var(--secondary);
    animation: textPulse 1s infinite alternate;
}

.sim-action-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

/* ChronosTrade Simulator elements */
.chronos-sim-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.5rem;
}

.ticker-console-wrapper {
    max-height: 250px;
    overflow-y: auto;
    padding: 0.85rem;
    background: rgba(0, 0, 0, 0.35);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
}

.ticker-item {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.35rem 0;
    border-bottom: 1px dashed rgba(255,255,255,0.03);
}

.ticker-symbol { color: var(--secondary); }
.ticker-price { color: var(--text-primary); }
.ticker-delta { font-weight: 600; }
.delta-up { color: #10b981; }
.delta-down { color: #ef4444; }

.chronos-analytics-board {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.analytics-metric-box {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metric-box-title {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dimmed);
    text-transform: uppercase;
}

.metric-box-val {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
}

.val-green { color: #10b981; }
.val-red { color: #ef4444; }

/* SynapseClin Speech-to-SOAP Simulator elements */
.synapse-sim-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.speech-selector-box {
    display: flex;
    gap: 0.75rem;
}

.synapse-soap-sheet {
    padding: 1.5rem;
    min-height: 220px;
    max-height: 280px;
    overflow-y: auto;
    font-size: 0.85rem;
    line-height: 1.6;
}

.soap-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--secondary);
    margin-top: 1rem;
    margin-bottom: 0.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 2px;
}

.soap-title:first-of-type {
    margin-top: 0;
}

.soap-text {
    color: var(--text-muted);
}

.transcription-live-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 180px;
    gap: 1rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.typing-cursor {
    display: inline-block;
    width: 6px;
    height: 14px;
    background: var(--secondary);
    animation: textPulse 0.8s infinite alternate;
}

/* High-Tech Simulator Visuals Panel (Telemetry Line Charts & Waveforms) */
.chart-container, .synapse-waveform-panel {
    background: var(--bg-surface-inner);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--border-radius-sm);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.chart-container::before, .synapse-waveform-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: var(--secondary);
}

.synapse-waveform-panel::before {
    background: var(--primary);
}

/* HexaFlow ZKP elements */
.zkp-visual-node {
    border: 1px solid var(--border-color);
    background: rgba(10, 10, 15, 0.4);
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.zkp-visual-node:hover {
    color: var(--text-primary);
    transform: scale(1.04);
}

.zkp-visual-line {
    background: rgba(255, 255, 255, 0.08);
}

.zkp-visual-packet {
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

.hexaflow-sim-inputs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.hexaflow-validation-board {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.5rem;
}

.zkp-proof-log {
    padding: 0.85rem;
    background: rgba(0,0,0,0.3);
    border-radius: var(--border-radius-sm);
    border: 1px dashed var(--border-color);
}

.zkp-proof-hash {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    word-break: break-all;
    background: rgba(0,0,0,0.5);
    padding: 0.6rem;
    border-radius: 4px;
    color: var(--accent);
    margin-top: 0.5rem;
}

.zkp-node-response {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
}

.zkp-indicator-stamp {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.stamp-verified {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.stamp-idle {
    background: rgba(255,255,255,0.02);
    border: 1px dashed var(--border-color);
    color: var(--text-dimmed);
}

/* NebulaRoute Spatial Pathfinder elements */
.nebula-sim-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1.5rem;
}

.spatial-board-canvas {
    width: 100%;
    height: 240px;
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    display: block;
}

.spatial-stats-console {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.stat-strip-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    border-bottom: 1px dashed rgba(255,255,255,0.03);
    padding-bottom: 0.5rem;
}

.stat-strip-lbl {
    color: var(--text-dimmed);
}

.stat-strip-val {
    font-family: var(--font-mono);
    color: var(--text-primary);
}


/* Beautiful Rich-Text Typography styling inside Reader Body */
.blog-reader-body, .portfolio-reader-body {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #cbd5e1; /* Smooth grey-white reading color */
}

.blog-reader-body p, .portfolio-reader-body p {
    margin-bottom: 1.5rem;
    color: #cbd5e1;
}

.blog-reader-body h3, .portfolio-reader-body h3 {
    font-size: 1.45rem;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.blog-reader-body ul, .blog-reader-body ol, .portfolio-reader-body ul, .portfolio-reader-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.blog-reader-body li, .portfolio-reader-body li {
    margin-bottom: 0.5rem;
    color: #cbd5e1;
}

.blog-reader-body code, .portfolio-reader-body code {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.04);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    color: var(--secondary);
}

.blog-reader-body pre, .portfolio-reader-body pre {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    border-radius: var(--border-radius-sm);
    overflow-x: auto;
    margin-bottom: 1.5rem;
    margin-top: 1rem;
}

.blog-reader-body pre code, .portfolio-reader-body pre code {
    background: none;
    padding: 0;
    color: #e2e8f0;
    font-size: 0.8rem;
}

.blog-reader-footer-cta, .portfolio-reader-footer-cta {
    padding: 2.25rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-reader-footer-cta h5, .portfolio-reader-footer-cta h5 {
    font-size: 1.25rem;
    color: var(--text-primary);
}

.blog-reader-footer-cta p, .portfolio-reader-footer-cta p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    margin-bottom: 0px;
}


/* --- About Us & LinkedIn Section --- */
.about-linkedin-section {
    position: relative;
    z-index: 2;
}

.about-linkedin-grid {
    align-items: center;
}

.about-info-container {
    padding-right: 2rem;
}

.about-lead {
    font-size: 1.15rem;
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.about-body {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.about-stats-grid {
    display: flex;
    gap: 1.5rem;
}

.stat-bubble {
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    flex: 1;
}

.stat-heading {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary);
}

.stat-subtitle {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--text-dimmed);
    margin-top: 0.25rem;
    text-transform: uppercase;
}

/* Premium LinkedIn Widget */
.linkedin-widget-container {
    display: flex;
    justify-content: center;
}

.linkedin-card {
    width: 100%;
    max-width: 440px;
    padding: 1.75rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.linkedin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.75rem;
}

.linkedin-logo {
    color: #0a66c2; /* Official LinkedIn Blue */
}

.linkedin-card-badge {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--secondary);
    padding: 0.15rem 0.5rem;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 50px;
}

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

.company-badge-logo {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    background: #0f1015;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.linkedin-logo-svg {
    width: 32px;
    height: 32px;
}

.company-name {
    font-size: 1.15rem;
    color: var(--text-primary);
}

.company-tagline {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.company-location {
    font-size: 0.7rem;
    color: var(--text-dimmed);
    font-family: var(--font-mono);
    margin-top: 0.25rem;
}

.company-stats-strip {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1rem;
}

.c-stat {
    text-align: center;
    flex: 1;
}

.c-stat-val {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.c-stat-lbl {
    display: block;
    font-size: 0.65rem;
    font-family: var(--font-mono);
    color: var(--text-dimmed);
    text-transform: uppercase;
    margin-top: 0.15rem;
}

.c-stat-divider {
    width: 1px;
    height: 25px;
    background: rgba(255, 255, 255, 0.05);
}

.linkedin-bio {
    line-height: 1.5;
}

.bio-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.linkedin-actions {
    display: flex;
}

.linkedin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0a66c2;
    color: #fff;
    box-shadow: 0 4px 15px rgba(10, 102, 194, 0.3);
    border-radius: var(--border-radius-sm);
    gap: 0.5rem;
}

.linkedin-btn:hover {
    background: #004182;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 102, 194, 0.45);
}

.mr-2 { margin-right: 0.5rem; }

/* --- Interactive Consultant Booking Scheduler --- */
.scheduler-section {
    z-index: 2;
}

.scheduler-card {
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.scheduler-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
}

.scheduler-profile {
    background: rgba(10, 10, 15, 0.5);
    border-right: 1px solid var(--border-color);
    padding: 2.25rem 1.75rem;
}

.architect-avatar {
    width: 64px;
    height: 64px;
    margin-bottom: 1.25rem;
}

.avatar-svg {
    width: 100%;
    height: 100%;
}

.scheduler-director {
    font-size: 1.15rem;
    color: var(--text-primary);
}

.scheduler-role {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--secondary);
    margin-top: 0.15rem;
}

.meeting-details-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.m-detail {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
}

.detail-icon {
    width: 16px;
    height: 16px;
    color: var(--text-dimmed);
    flex-shrink: 0;
}

.m-detail span {
    font-size: 0.85rem;
}

.scheduler-note {
    font-size: 0.8rem;
    color: var(--text-dimmed);
    border-top: 1px dashed var(--border-color);
    padding-top: 1.25rem;
}

/* Scheduler Right side Calendar */
.scheduler-calendar-panel {
    padding: 2.25rem;
    background: rgba(6, 6, 10, 0.2);
    min-height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wizard-title {
    font-size: 1.35rem;
    color: var(--text-primary);
}

.wizard-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.highlight-time {
    color: var(--secondary);
    font-weight: 600;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.75rem;
}

.current-month {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    text-align: center;
}

.day-name {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-dimmed);
    text-transform: uppercase;
    padding-bottom: 0.5rem;
}

.cal-day {
    padding: 0.6rem 0;
    font-size: 0.85rem;
    border-radius: var(--border-radius-sm);
    color: var(--text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition-fast);
}

.cal-day:hover:not(.disabled) {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.cal-day.disabled {
    color: var(--text-dimmed);
    opacity: 0.2;
    cursor: not-allowed;
}

.cal-day.today {
    border: 1px solid rgba(99, 102, 241, 0.4);
    color: var(--primary);
}

.cal-day.selected {
    background: var(--primary);
    color: #fff !important;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

/* Time Slots Wrapper */
.time-slots-container {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.25rem;
}

.slots-heading {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
}

.time-slot {
    padding: 0.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.time-slot:hover {
    border-color: var(--secondary);
    color: var(--text-primary);
    background: rgba(6, 182, 212, 0.05);
}

.time-slot.selected {
    background: var(--secondary);
    color: #fff;
    border-color: var(--secondary);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

/* Form Styles */
.booking-form, .contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

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

.form-label {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition-fast);
    outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.2);
    background: rgba(255, 255, 255, 0.02);
}

.form-select option {
    background: var(--bg-base);
    color: var(--text-primary);
}

.wizard-actions-group {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Disabled Actions */
.btn.disabled, .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Scheduler Success step */
.success-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.05);
    border: 2px solid rgba(16, 185, 129, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.success-checkmark {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    stroke-width: 3;
    stroke: #10b981;
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px #10b981;
    animation: fillSuccess .4s ease-in-out .4s forwards, scaleSuccess .3s ease-in-out .9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.success-checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #10b981;
    fill: none;
    animation: strokeSuccess .6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: strokeSuccess .3s cubic-bezier(0.65, 0, 0.45, 1) .8s forwards;
}

@keyframes strokeSuccess {
    100% { stroke-dashoffset: 0; }
}

.success-title {
    font-size: 1.5rem;
    color: #10b981;
}

.highlight-text {
    color: var(--primary);
    font-weight: 500;
}

.confirmed-summary {
    padding: 1.25rem;
    border-left: 3px solid var(--secondary);
}

.confirmed-summary p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.confirmed-summary p:last-child {
    margin-bottom: 0;
}

.confirmed-summary strong {
    color: var(--text-primary);
}

/* --- Contact Section --- */
.contact-section {
    position: relative;
    z-index: 2;
}

.contact-grid {
    align-items: center;
}

.contact-info {
    padding-right: 3rem;
}

.contact-lead {
    font-size: 1.15rem;
    margin-bottom: 2rem;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.info-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    flex-shrink: 0;
}

.info-text {
    flex: 1;
}

.info-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dimmed);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-link {
    font-size: 0.95rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-fast);
    font-weight: 500;
}

.info-link:hover {
    color: var(--secondary);
}

.info-link-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Form Container Overlay success setup */
.contact-card {
    position: relative;
    padding: 2.25rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.contact-success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    border-radius: var(--border-radius);
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* --- Footer --- */
.main-footer {
    background: #030305;
    border-top: 1px solid var(--border-color);
    padding: 5rem 0 3rem 0;
    position: relative;
    z-index: 2;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
}

.footer-brand {
    max-width: 320px;
}

.footer-motto {
    font-size: 0.85rem;
    color: var(--text-dimmed);
    margin-top: 1.25rem;
    line-height: 1.6;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

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

.footer-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dimmed);
    margin-bottom: 1.25rem;
}

.footer-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-menu a {
    text-decoration: none;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.footer-menu a:hover {
    color: var(--primary);
    padding-left: 2px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 2rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.copyright-text {
    font-size: 0.8rem;
    color: var(--text-dimmed);
    font-family: var(--font-mono);
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    text-decoration: none;
    font-size: 0.8rem;
    color: var(--text-dimmed);
    transition: var(--transition-fast);
}

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


/* --- Flagship B2B Products Section --- */
.products-section {
    z-index: 2;
    background: radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.03) 0%, transparent 50%);
}

.product-hero-card {
    padding: 3rem;
    background: rgba(12, 12, 20, 0.45);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}

.product-card-glow {
    position: absolute;
    top: -50px;
    left: -50px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.product-hero-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.product-badge-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.product-pill {
    padding: 0.35rem 0.85rem;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 50px;
    color: var(--secondary);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.product-version {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dimmed);
}

.product-headline {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    letter-spacing: -0.03em;
}

.product-tagline {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.product-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.product-bullet-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-bullet-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.bullet-check-icon {
    width: 16px;
    height: 16px;
    color: var(--secondary);
    margin-top: 4px;
    flex-shrink: 0;
}

.product-bullet-list span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.product-bullet-list strong {
    color: var(--text-primary);
}

/* High-Tech Code Mock-up visual */
.high-tech-mockup {
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    height: 100%;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    background: rgba(10, 10, 15, 0.75);
    backdrop-filter: blur(10px);
}

.mockup-header {
    background: rgba(10, 10, 15, 0.9);
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.mockup-dot-group {
    display: flex;
    gap: 6px;
}

.mockup-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--text-dimmed);
}

.mockup-dot:nth-child(1) { background-color: #ef4444; }
.mockup-dot:nth-child(2) { background-color: #f59e0b; }
.mockup-dot:nth-child(3) { background-color: #10b981; }

.mockup-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.badge-mockup {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}

.badge-mockup.stable {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #10b981;
}

.mockup-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.mockup-body p {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

.mockup-speed-bar {
    margin-top: 1.5rem;
    background: var(--bg-surface-inner);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: var(--border-radius-sm);
}

.speed-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-dimmed);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.speed-bar-container {
    height: 6px;
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.speed-bar-fill {
    height: 100%;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 3px;
}

.speed-value {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--secondary);
    font-weight: 600;
}

/* Custom Synapse Simulator Styles */
.synapse-preset-btn {
    border-radius: 6px;
    transition: var(--transition-fast) !important;
}

.synapse-preset-btn.active {
    border-color: var(--secondary) !important;
    background: rgba(6, 182, 212, 0.06) !important;
    color: var(--text-primary) !important;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.15);
}

/* Modal styling responsive overrides */
@media (max-width: 768px) {
    .product-hero-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .product-hero-card {
        padding: 1.5rem;
    }
    
    .synapse-sim-deck {
        grid-template-columns: 1fr !important;
    }
}


/* --- Responsive Adjustments & Breakpoints --- */

/* Universal Responsive Canvas & SVG override */
canvas, svg {
    max-width: 100% !important;
    height: auto !important;
}

@media (max-width: 1024px) {
    .grid-4, .blog-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .client-logo-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .scheduler-grid {
        grid-template-columns: 1fr;
    }
    
    .scheduler-profile {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 1.5rem;
        padding: 1.75rem;
    }
    
    .meeting-details-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem 1.5rem;
    }
    
    .scheduler-note, .architect-avatar {
        display: none;
    }
    
    .scheduler-director {
        font-size: 1.1rem;
    }
    
    .portfolio-reader-container {
        height: 95vh;
    }
    
    .portfolio-reader-metrics-strip {
        gap: 0.5rem;
    }
    
    .chronos-sim-grid, .hexaflow-validation-board, .nebula-sim-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive Utility Classes */
.desktop-only {
    display: inline;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    
    .grid-2, .portfolio-case-grid {
        grid-template-columns: 1fr;
    }
    
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .nav-links, .nav-actions .nav-cta-btn {
        display: none;
    }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    /* Hero layout adjustments */
    .hero-metrics {
        flex-direction: column !important;
        gap: 1rem !important;
        padding: 1rem 1.5rem !important;
    }
    
    .metric-divider {
        width: 50% !important;
        height: 1px !important;
        background: var(--border-color) !important;
    }
    
    .hero-buttons {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 1rem !important;
        width: 100% !important;
        max-width: 320px !important;
        margin: 0 auto !important;
    }
    
    .hero-buttons .btn {
        width: 100% !important;
        text-align: center !important;
    }
    
    .hero-title {
        font-size: clamp(1.8rem, 5.5vw, 2.5rem) !important;
        line-height: 1.25 !important;
    }
    
    .hero-subtitle {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
        margin-bottom: 1.75rem !important;
    }
    
    /* Headers & Section sizes */
    .section-title {
        font-size: 1.6rem !important;
        letter-spacing: -0.02em !important;
    }
    
    .section-subtitle {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }
    
    .mt-12 {
        margin-top: 1.75rem !important;
    }
    
    .py-20 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    
    /* Stack blog cards to single-column on all phone screens */
    .blog-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .client-logo-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 3rem;
    }
    
    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .about-info-container {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .contact-info {
        padding-right: 0;
        margin-bottom: 2.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .blog-controls-panel {
        flex-direction: column;
        align-items: stretch;
    }
    
    .blog-search-wrapper {
        max-width: 100%;
    }
    
    .blog-reader-content, .portfolio-reader-content {
        padding: 1.25rem 1rem !important;
    }
    
    .portfolio-working-model-wrapper {
        padding: 1rem !important;
    }
    
    .blog-reader-title, .portfolio-reader-title {
        font-size: 1.4rem !important;
        line-height: 1.3 !important;
    }
    
    .portfolio-reader-metrics-strip {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .hexaflow-sim-inputs {
        grid-template-columns: 1fr;
    }
    
    /* Code documentation blocks auto scrolling */
    .mockup-body {
        padding: 1rem !important;
        overflow-x: auto !important;
    }
    
    .code-editor-block, .aegis-code-block {
        white-space: nowrap !important;
    }
}

@media (max-width: 480px) {
    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .scheduler-calendar-panel {
        padding: 1rem;
    }
    
    /* Render slot grid in a beautiful 2x2 grid representing an iOS date list */
    .slots-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
    }
    
    .calendar-grid {
        gap: 2px;
    }
    
    .cal-day {
        font-size: 0.7rem !important;
        padding: 0.35rem 0 !important;
    }
}

/* =========================================================================
   SynapseCore Dedicated Portal Portal Custom Design System Elements
   ========================================================================= */

.specifications-section table tr {
    transition: background-color var(--transition-fast) !important;
}

.table-responsive::-webkit-scrollbar {
    height: 6px;
}

.pricing-section .pricing-card {
    transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth) !important;
    position: relative;
    overflow: hidden;
}

.pricing-section .pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
}

.code-editor-block {
    display: none;
}

.code-editor-block.active {
    display: block;
    animation: fadeInCode var(--transition-fast) forwards;
}

@keyframes fadeInCode {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.doc-tab-btn {
    transition: var(--transition-fast) !important;
}

.doc-tab-btn.active {
    background: linear-gradient(135deg, var(--secondary), var(--primary)) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 0 12px var(--secondary-glow);
}

/* --- AegisFlow Custom Elements --- */
.aegis-tab-btn {
    transition: var(--transition-fast) !important;
}

.aegis-tab-btn.active {
    background: linear-gradient(135deg, var(--accent), var(--primary)) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.35);
}

.aegis-code-block {
    display: none;
}

.aegis-code-block.active {
    display: block;
    animation: fadeInCode var(--transition-fast) forwards;
}

.aegis-preset-btn {
    border-radius: 6px;
    transition: var(--transition-fast) !important;
}

.aegis-preset-btn.active {
    border-color: var(--accent) !important;
    background: rgba(168, 85, 247, 0.06) !important;
    color: var(--text-primary) !important;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.15);
}

/* =========================================================================
   Universal Mobile Responsiveness & Grid Overrides
   ========================================================================= */

@media (max-width: 1024px) {
    /* Override tablet inline grids to prevent content squeezing */
    .product-hero-layout {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }
    .synapse-sim-deck {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    .grid-3 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }
    .grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.25rem !important;
    }
    .blog-cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }
    .scheduler-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}

@media (max-width: 768px) {
    /* Force stack layout on mobile phones */
    .product-hero-layout {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .synapse-sim-deck {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .grid-3, .grid-4 {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .synapse-modal-metrics {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }
    
    /* Decrease card and panel paddings on mobile */
    .glass-panel {
        padding: 1.5rem !important;
        border-radius: 16px !important;
    }
    
    .glass-panel-inner {
        padding: 1rem !important;
    }
    
    /* Simulator & Interactive Control Grids */
    .chronos-sim-controls div[style*="grid-template-columns: 1fr 1fr"],
    .chronos-sim-controls div[style*="grid-template-columns: 1fr 1.2fr"],
    .chronos-sim-controls div[style*="grid-template-columns: 1fr 1.3fr"],
    .chronos-sim-controls div[style*="grid-template-columns: 1.2fr 1fr"],
    .chronos-sim-controls div[style*="grid-template-columns: 1.5fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    /* Stack option selectors side-by-side or stacked */
    .chronos-sim-controls div[style*="display: grid"][style*="gap: 1rem"] {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }
    
    /* Responsive button grids in simulators */
    .chronos-sim-controls div[style*="repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
    }
    
    .chronos-sim-controls div[style*="repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
    }
    
    .chronos-sim-controls button, .synapse-preset-btn, .aegis-preset-btn {
        padding: 0.6rem 0.5rem !important;
        font-size: 0.7rem !important;
    }
    
    /* Nav brand logo scaling */
    .brand-name {
        font-size: 1rem !important;
    }
    
    /* Spacings and padding */
    .main-header {
        padding: 0.75rem 0 !important;
    }
    
    .nav-container {
        padding: 0 1rem !important;
    }

    /* --- Brand New Specific Mobile Layout Overrides --- */
    /* Services grid mobile stack */
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    .service-card {
        padding: 1.5rem !important;
    }

    /* Client Brand Logo Grid mobile stack */
    .client-logo-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        padding: 1.25rem !important;
        gap: 1rem !important;
    }

    /* Portfolio case studies list stack */
    .portfolio-case-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* Insights blog list mobile stack */
    .blog-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* About Us page LinkedIn profile card layout stack */
    .about-linkedin-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    .company-stats-strip {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
        text-align: center !important;
    }
    .company-stats-strip .c-stat-divider {
        display: none !important;
    }

    /* Contact page & Scheduler grid layouts stack */
    .scheduler-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* Spec sheet tables responsive wrapping */
    .table-responsive {
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    table {
        min-width: 600px !important;
    }

    /* Static hero metrics grid or row adjustments */
    .hero-metrics {
        flex-direction: column !important;
        gap: 1rem !important;
        padding: 1rem 1.5rem !important;
    }
}

@media (max-width: 480px) {
    /* AegisFlow event vertical selector button stack */
    .chronos-sim-controls div[style*="repeat(4, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
    }
    
    .chronos-sim-controls div[style*="repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
    }
    
    /* Table padding compression to fit smallest mobile screens */
    table th, table td {
        padding: 0.75rem 0.5rem !important;
        font-size: 0.75rem !important;
    }
    
    /* Section tags and headers */
    .section-tag {
        font-size: 0.7rem !important;
    }
    
    .section-title {
        font-size: 1.6rem !important;
    }

    /* Client Brand Logo Grid tiny screens */
    .client-logo-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        padding: 1rem !important;
        gap: 0.75rem !important;
    }

    /* Input fields wrap layout stack */
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
}



