/* 
 * CLOUDS ON MARS - ENERGY PROPOSAL WEB APP
 * Main CSS file with core styles and variables
 * Brand colors: Martian Orange (#FF5F07), Deep Space (#1F1B1B), Light Atmosphere (#3BE8E1)
 */

/* Font Imports */
@font-face {
    font-family: 'Orbitron';
    src: url('../fonts/Orbitron-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: 'Red Hat Text';
    src: url('../fonts/RedHatText-VariableFont_wght.ttf') format('truetype');
    font-weight: 300 700;
    font-display: swap;
}

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* CoM Brand Colors */
    --martian-orange: #FF5F07;
    --deep-space: #1F1B1B;
    --light-atmosphere: #3BE8E1;
    --dark-atmosphere: #58C3D3;
    --background-grey: #FBFBFB;
    --martian-dark-orange: #DA461C;
    --white: #FFFFFF;
    --dark-grey: #B9B9B9;
    
    /* Typography */
    --font-header: 'Orbitron', 'Arial Black', sans-serif;
    --font-body: 'Red Hat Text', 'Arial', sans-serif;
    
    /* Animations */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Typography */
body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--deep-space);
    background: var(--background-grey);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-header);
    font-weight: 700;
    line-height: 1.2;
}

/* Layout Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--deep-space);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--dark-atmosphere);
    max-width: 600px;
    margin: 0 auto;
}

/* Loading Screen */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--deep-space);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 95, 7, 0.3);
    border-top: 3px solid var(--martian-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-orange { color: var(--martian-orange); }
.text-light { color: var(--light-atmosphere); }
.bg-gradient {
    background: linear-gradient(135deg, var(--martian-orange), var(--martian-dark-orange));
}

/* Responsive Design Base */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
}

/* ===== BUSINESS CONTEXT SECTION ===== */
.business-context {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.business-context::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--light-atmosphere), transparent);
}

.context-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.context-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(31, 27, 27, 0.1);
    border: 1px solid rgba(255, 95, 7, 0.1);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.context-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--martian-orange), var(--light-atmosphere));
}

.context-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(31, 27, 27, 0.15);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card-icon {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--martian-orange), var(--martian-dark-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-header h3 {
    font-size: 1.25rem;
    color: var(--deep-space);
    font-weight: 600;
}

/* Growth Card Styles */
.growth-stats {
    margin-bottom: 1.5rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

.stat-value {
    font-weight: 700;
    color: var(--martian-orange);
    font-size: 1.1rem;
}

.growth-chart {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

/* ROI Metrics Styles */
.roi-metrics {
    margin-bottom: 1.5rem;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
    transition: var(--transition-smooth);
}

.metric-row:last-child {
    border-bottom: none;
}

.metric-row:hover {
    background: rgba(255, 95, 7, 0.05);
    padding-left: 0.5rem;
    margin: 0 -0.5rem;
    border-radius: 4px;
}

.metric-label {
    font-size: 0.9rem;
    color: #555;
    font-weight: 500;
}

.metric-value {
    font-weight: 700;
    color: var(--martian-orange);
    font-size: 1.1rem;
    white-space: nowrap;
}

.highlighted-metric {
    background: linear-gradient(45deg, rgba(255, 95, 7, 0.1), rgba(59, 232, 225, 0.1));
    padding: 1rem;
    margin: 0.5rem -1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 95, 7, 0.2);
}

.highlighted-metric .metric-label {
    color: var(--deep-space);
    font-weight: 600;
}

.highlighted-metric .metric-value {
    font-size: 1.2rem;
    color: var(--martian-dark-orange);
}

.roi-chart {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    margin-bottom: 1rem;
    min-height: 220px;
    position: relative;
}

.source-note {
    padding: 0.5rem;
    background: rgba(59, 232, 225, 0.1);
    border-radius: 4px;
    border-left: 3px solid var(--light-atmosphere);
}

.source-note small {
    color: #666;
    font-size: 0.8rem;
    line-height: 1.4;
}

/* CSS Chart Fallback */
.css-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 150px;
    padding: 1rem 0.5rem;
    margin: 1rem 0 3rem 0;
    gap: 8px;
}

.chart-bar {
    width: 55px;
    border-radius: 4px 4px 0 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    min-height: 20px;
}

.chart-bar:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
}

.bar-label {
    position: absolute;
    bottom: -45px;
    font-size: 0.7rem;
    color: #666;
    text-align: center;
    line-height: 1.1;
    font-weight: 500;
    width: 65px;
    left: 50%;
    transform: translateX(-50%);
}

/* Benchmarks Card Styles */
.benchmark-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.benchmark-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--light-atmosphere);
}

.company-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.company-name {
    font-weight: 700;
    color: var(--deep-space);
}

.company-name a {
    color: var(--deep-space);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition-smooth);
}

.company-name a:hover {
    color: var(--martian-orange);
    border-bottom-color: var(--martian-orange);
}

.company-name a::after {
    content: ' ↗';
    font-size: 0.8em;
    opacity: 0.6;
}

.company-desc {
    font-size: 0.85rem;
    color: #666;
}

.roi-value {
    font-weight: 700;
    color: var(--martian-orange);
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Market Growth Card Styles */
.market-growth-card .market-overview {
    margin-bottom: 1.5rem;
}

.market-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1.5rem;
}

.cagr-drivers h4 {
    font-size: 1rem;
    color: var(--deep-space);
    margin-bottom: 1rem;
    font-weight: 600;
}

.driver-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.driver-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid var(--martian-orange);
}

.driver-name {
    font-size: 0.9rem;
    color: var(--deep-space);
    flex: 1;
}

.driver-impact {
    font-weight: 700;
    color: var(--martian-orange);
    font-size: 0.95rem;
    background: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Priorities Card Styles */
.priorities-card .priorities-overview {
    margin-bottom: 1.5rem;
}

.priorities-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1.5rem;
}

.priority-chart h4 {
    font-size: 1rem;
    color: var(--deep-space);
    margin-bottom: 1rem;
    font-weight: 600;
}

.priority-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.priority-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.priority-name {
    font-size: 0.9rem;
    color: var(--deep-space);
    font-weight: 500;
}

.priority-bar {
    position: relative;
    background: #e0e0e0;
    height: 24px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.priority-fill {
    height: 100%;
    transition: width 0.8s ease-in-out;
    border-radius: 12px;
}

.priority-percentage {
    position: absolute;
    right: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--deep-space);
    z-index: 2;
}

/* Source Note Styling */
.source-note {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.source-note small {
    color: #666;
    font-size: 0.8rem;
    line-height: 1.4;
}

.source-note a {
    color: var(--martian-orange);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition-smooth);
}

.source-note a:hover {
    border-bottom-color: var(--martian-orange);
}

/* Challenges Card Styles */
.challenge-flow {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
}

.challenge-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--martian-orange);
}

.challenge-item.opportunity {
    border-left-color: var(--light-atmosphere);
    background: linear-gradient(135deg, #f0fdff 0%, #e8f9fa 100%);
}

.challenge-item h4 {
    margin-bottom: 1rem;
    color: var(--deep-space);
    font-size: 1.1rem;
}

.challenge-item ul {
    list-style: none;
    padding: 0;
}

.challenge-item li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.9rem;
    color: #555;
}

.challenge-item li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--martian-orange);
    font-weight: bold;
}

.flow-arrow {
    font-size: 2rem;
    color: var(--light-atmosphere);
    text-align: center;
    font-weight: bold;
}

/* Value Bridge Card Styles */
.value-flow {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem;
}

.value-stage {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 12px;
    border: 2px solid #eee;
    position: relative;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stage-number {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--martian-orange), var(--martian-dark-orange));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0 auto 1rem auto;
}

.value-stage h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--deep-space);
    line-height: 1.3;
}

.value-stage p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    padding: 0 0.5rem;
}

.timeline {
    font-size: 0.8rem;
    color: var(--martian-orange);
    font-weight: 600;
}

.timeline-text {
    font-size: 0.8rem;
    color: var(--dark-grey);
    font-weight: 600;
}

.flow-connector {
    font-size: 1.5rem;
    color: var(--light-atmosphere);
    font-weight: bold;
}

.total-impact {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--martian-orange), var(--martian-dark-orange));
    color: white;
    border-radius: 12px;
    margin-top: 1rem;
}

.impact-label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.impact-value {
    font-size: 1.4rem;
    font-weight: 700;
}

/* ===== TECHNICAL FOUNDATION SECTION ===== */
.technical-foundation {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--deep-space) 0%, #2a2626 100%);
    color: white;
    position: relative;
}

.technical-foundation .section-title,
.technical-foundation .section-subtitle {
    color: white;
}

.foundation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.foundation-card {
    background: rgba(255, 255, 255, 0.95);
    color: var(--deep-space);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 95, 7, 0.2);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.foundation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--martian-orange), var(--light-atmosphere));
}

.foundation-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

/* Ecosystem Card Styles */
.ecosystem-layers {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.layer {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--martian-orange);
}

.azure-layer {
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f8ff 100%);
    border-left-color: #0078d4;
}

.fabric-layer {
    background: linear-gradient(135deg, #f3e5f5 0%, #fce4ec 100%);
    border-left-color: #6f42c1;
}

.power-platform-layer {
    background: linear-gradient(135deg, #fff3e0 0%, #ffecb3 100%);
    border-left-color: #ff6f00;
}

.m365-layer {
    background: linear-gradient(135deg, #e8f5e8 0%, #f1f8e9 100%);
    border-left-color: #0b5394;
}

.layer-icon {
    flex-shrink: 0;
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.layer-icon img,
.layer-brand-icon {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.layer-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--deep-space);
}

.layer-content p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.layer-content ul {
    list-style: none;
    padding: 0;
}

.layer-content li {
    padding: 0.25rem 0;
    font-size: 0.85rem;
    color: #555;
    position: relative;
    padding-left: 1rem;
}

.layer-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--martian-orange);
    font-weight: bold;
}

/* Integration Architecture Styles */
.integration-diagram {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.integration-layer {
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid #eee;
}

.external-systems {
    background: linear-gradient(135deg, #fff3e0 0%, #ffecb3 100%);
}

.api-gateway {
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f8ff 100%);
}

.business-logic {
    background: linear-gradient(135deg, #f3e5f5 0%, #fce4ec 100%);
}

.data-layer {
    background: linear-gradient(135deg, #e8f5e8 0%, #f1f8e9 100%);
}

.integration-layer h4 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--deep-space);
    font-size: 1rem;
}

.system-boxes,
.logic-components,
.data-components {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
}

.system-box,
.logic-box,
.data-box {
    background: white;
    padding: 0.75rem;
    border-radius: 8px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--deep-space);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.api-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
}

.api-feature {
    background: white;
    padding: 0.5rem;
    border-radius: 6px;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--deep-space);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.integration-arrows {
    text-align: center;
    font-size: 1.5rem;
    color: var(--martian-orange);
    padding: 0.5rem 0;
}

/* API Benefits Styles */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.benefit-item {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #eee;
    transition: var(--transition-smooth);
    min-height: 10rem;
}

.benefit-item2 {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #eee;
    transition: var(--transition-smooth);
    min-height: 4rem;
}

.benefit-item:hover {
    border-color: var(--martian-orange);
    transform: translateY(-2px);
}

.benefit-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.benefit-item h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--deep-space);
}

.benefit-item p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
}

/* Future Readiness Styles */
.readiness-timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.readiness-timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--martian-orange), var(--light-atmosphere));
}

.readiness-phase {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.phase-marker {
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, var(--martian-orange), var(--martian-dark-orange));
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.readiness-phase.future .phase-marker {
    background: linear-gradient(135deg, var(--light-atmosphere), var(--dark-atmosphere));
}

.readiness-phase.advanced .phase-marker {
    background: linear-gradient(135deg, #6f42c1, #8e24aa);
}

.phase-content {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--martian-orange);
    flex: 1;
}

.readiness-phase.future .phase-content {
    border-left-color: var(--light-atmosphere);
}

.readiness-phase.advanced .phase-content {
    border-left-color: #6f42c1;
}

.phase-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--deep-space);
}

.phase-content p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.phase-content ul {
    list-style: none;
    padding: 0;
}

.phase-content li {
    padding: 0.25rem 0;
    font-size: 0.85rem;
    color: #555;
    position: relative;
    padding-left: 1rem;
}

.phase-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--martian-orange);
    font-weight: bold;
}

.scalability-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--martian-orange), var(--martian-dark-orange));
    color: white;
    border-radius: 12px;
}

.metric {
    text-align: center;
}

.metric-label {
    display: block;
    font-size: 0.8rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.metric-value {
    font-size: 1.1rem;
    font-weight: 700;
}

/* Responsive Design for New Sections */
@media (max-width: 1024px) {
    .context-grid,
    .foundation-grid {
        grid-template-columns: 1fr;
    }
    
    .challenge-flow,
    .value-flow {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .flow-arrow,
    .flow-connector {
        transform: rotate(90deg);
        font-size: 1.2rem;
        margin: 0.5rem 0;
        height: 2rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .ecosystem-layers .layer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .readiness-timeline::before {
        display: none;
    }
    
    .readiness-phase {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .context-card,
    .foundation-card {
        padding: 1.5rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .value-stage {
        padding: 1rem;
        min-height: 160px;
    }
    
    .value-stage h4 {
        font-size: 0.9rem;
    }
    
    .value-stage p {
        font-size: 0.8rem;
        padding: 0;
    }
    
    .system-boxes,
    .logic-components,
    .data-components {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    
    .scalability-metrics {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Additional Solutions Preview */
.additional-solutions-preview {
    margin: 60px auto 40px;
    max-width: 1200px;
    padding: 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    border: 2px dashed #6c757d;
    position: relative;
}

.additional-solutions-preview::before {
    content: "PREVIEW";
    position: absolute;
    top: -12px;
    left: 30px;
    background: #6c757d;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
}

.preview-header {
    text-align: center;
    margin-bottom: 40px;
}

.preview-header h3 {
    color: #495057;
    font-size: 28px;
    margin-bottom: 12px;
    font-weight: 600;
}

.preview-subtitle {
    color: #6c757d;
    font-size: 16px;
    font-style: italic;
    margin: 0;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.preview-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.preview-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #17a2b8, #20c997);
}

.preview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.preview-icon {
    font-size: 40px;
    margin-bottom: 15px;
    text-align: center;
}

.preview-card h4 {
    color: #2c3e50;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.preview-card p {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.preview-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.preview-tags .tag {
    background: #e7f3ff;
    color: #0056b3;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #b3d7ff;
}

.preview-cta {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 15px;
    border: 2px solid #17a2b8;
}

.cta-text {
    color: #495057;
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.cta-button.secondary {
    background: #17a2b8;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.cta-button.secondary:hover {
    background: #138496;
    transform: translateY(-2px);
}

.cta-button.tertiary {
    background: transparent;
    color: #6c757d;
    border: 2px solid #6c757d;
    padding: 10px 22px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.cta-button.tertiary:hover {
    background: #6c757d;
    color: white;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .additional-solutions-preview {
        margin: 40px 20px 20px;
        padding: 25px;
    }
    
    .preview-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button.secondary,
    .cta-button.tertiary {
        width: 100%;
        max-width: 250px;
    }
}

/* Language Switcher Styles */
.language-switcher {
    position: relative;
    display: none; /* Hidden for English-only release */
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 2px solid var(--martian-orange);
    color: var(--martian-orange);
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
}

.language-toggle:hover {
    background: var(--martian-orange);
    color: white;
    transform: translateY(-1px);
}

.language-flag {
    font-size: 16px;
}

.language-code {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.language-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.language-toggle.active .language-arrow {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 2px solid var(--martian-orange);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    min-width: 140px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.language-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background: #f8f9fa;
}

.language-option:first-child {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.language-option:last-child {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.language-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--deep-space);
}

/* Language transition effects */
.language-transition {
    transition: opacity 0.3s ease;
}

.language-transition.switching {
    opacity: 0.7;
}

@media (max-width: 768px) {
    .language-switcher {
        margin-top: 10px;
    }
    
    .language-toggle {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .language-dropdown {
        right: -10px;
        min-width: 120px;
    }
    
    .language-option {
        padding: 10px 12px;
    }
}
