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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.headshot-container {
    flex-shrink: 0;
}

.headshot {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #1e3c72;
    box-shadow: 0 10px 30px rgba(30, 60, 114, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.headshot:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(30, 60, 114, 0.4);
}

.header-content {
    flex: 1;
    min-width: 300px;
}

.header h1 {
    font-size: 2.8em;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: -1.5px;
}

.subtitle {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 16px;
    font-weight: 500;
}

.header p {
    font-size: 1em;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.9em;
}

.contact-info span {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.3);
    transition: transform 0.2s ease;
}

.contact-info span:hover {
    transform: translateY(-2px);
}

.section {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.section h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #1e3c72;
    font-weight: 600;
    text-align: center;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.tech-card {
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.05), rgba(42, 82, 152, 0.05));
    padding: 24px;
    border-radius: 15px;
    border: 1px solid rgba(30, 60, 114, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tech-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(30, 60, 114, 0.12);
}

.tech-card h3 {
    font-size: 1.15em;
    margin-bottom: 10px;
    color: #1e3c72;
    font-weight: 600;
}

.tech-card p {
    color: #555;
    line-height: 1.6;
    font-size: 0.95em;
}

.project {
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.05), rgba(42, 82, 152, 0.05));
    padding: 28px;
    border-radius: 15px;
    margin-bottom: 24px;
    border: 1px solid rgba(30, 60, 114, 0.1);
    transition: transform 0.2s ease;
}

.project:hover {
    transform: translateY(-3px);
}

.project h3 {
    font-size: 1.4em;
    margin-bottom: 6px;
    color: #333;
    font-weight: 600;
}

.project-meta {
    color: #1e3c72;
    font-size: 0.9em;
    margin-bottom: 12px;
    font-weight: 500;
}

.project p {
    color: #666;
    margin-bottom: 16px;
    line-height: 1.6;
}

.project-highlights h4 {
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.tech-stack {
    background: rgba(30, 60, 114, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    border-left: 4px solid #1e3c72;
    font-size: 0.95em;
}

.metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.metric {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
}

.experience-item {
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.05), rgba(42, 82, 152, 0.05));
    border-radius: 15px;
    border: 1px solid rgba(30, 60, 114, 0.1);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.experience-title {
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.experience-company {
    font-size: 1em;
    color: #1e3c72;
    font-weight: 500;
}

.experience-date {
    color: #888;
    font-weight: 500;
    font-size: 0.95em;
}

.experience-description {
    color: #666;
    line-height: 1.6;
}

.experience-description ul {
    margin-top: 10px;
    padding-left: 20px;
}

.experience-description ul li {
    margin-bottom: 6px;
    line-height: 1.5;
}

.recognition-section {
    margin-top: 24px;
}

.recognition-box {
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.1), rgba(42, 82, 152, 0.1));
    padding: 20px;
    border-radius: 15px;
    border-left: 4px solid #1e3c72;
    color: #333;
    line-height: 1.6;
}

/* Sample Analysis Section */
.section .analysis-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.analysis-card {
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.05), rgba(42, 82, 152, 0.05));
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(30, 60, 114, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    max-width: 320px;
}

.analysis-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(30, 60, 114, 0.15);
}

.analysis-card.coming-soon {
    cursor: default;
    opacity: 0.7;
}

.analysis-card.coming-soon:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(30, 60, 114, 0.1);
}

.analysis-thumbnail {
    height: 140px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(30, 60, 114, 0.1);
}

.analysis-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.analysis-card:hover .analysis-thumbnail img {
    transform: scale(1.05);
}

.thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.8), rgba(42, 82, 152, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.analysis-card:hover .thumbnail-overlay {
    opacity: 1;
}

.view-analysis {
    background: rgba(255, 255, 255, 0.95);
    color: #1e3c72;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95em;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.analysis-card:hover .view-analysis {
    transform: translateY(0);
}

.coming-soon-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.1), rgba(42, 82, 152, 0.1));
}

.coming-soon-icon {
    font-size: 2.5em;
    margin-bottom: 8px;
    opacity: 0.6;
}

.coming-soon-text {
    color: #666;
    font-weight: 600;
    font-size: 1em;
}

.analysis-content {
    padding: 18px;
}

.analysis-content h3 {
    font-size: 1.2em;
    margin-bottom: 6px;
    color: #333;
    font-weight: 600;
    line-height: 1.3;
}

.analysis-meta {
    color: #1e3c72;
    font-size: 0.8em;
    margin-bottom: 12px;
    font-weight: 500;
    opacity: 0.8;
}

.scenario, .outcome {
    font-size: 0.85em;
    line-height: 1.5;
    margin-bottom: 10px;
    color: #666;
}

.scenario strong, .outcome strong {
    color: #333;
}

.analysis-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.tag {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: 500;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    margin: 5vh auto; /* Changed from 2% to 5vh for consistent spacing */
    border-radius: 20px;
    width: 95%;
    max-width: 1400px;
    max-height: 90vh; /* Changed from height to max-height */
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    animation: slideIn 0.3s ease;
    overflow: hidden; /* Add this */
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid rgba(30, 60, 114, 0.1);
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.05), rgba(42, 82, 152, 0.05));
    border-radius: 20px 20px 0 0;
}

.modal-header h3 {
    font-size: 1.8em;
    color: #333;
    font-weight: 600;
    margin: 0;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.close {
    font-size: 2em;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(30, 60, 114, 0.1);
}

.close:hover {
    color: #1e3c72;
    transform: scale(1.1);
    background: rgba(30, 60, 114, 0.2);
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.analysis-viewer {
    height: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.analysis-viewer iframe {
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section .analysis-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    
    .analysis-card {
        max-width: none;
    }
    
    .header {
        padding: 24px;
        gap: 24px;
    }
    
    .section {
        padding: 24px;
    }
    
    .headshot {
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 20px;
    }

    .section {
        padding: 20px;
    }

    .headshot {
        width: 120px;
        height: 120px;
    }

    .header h1 {
        font-size: 2em;
        letter-spacing: -1px;
    }

    .subtitle {
        font-size: 1.1em;
    }

    .section h2 {
        font-size: 1.6em;
        margin-bottom: 16px;
    }

    .contact-info {
        justify-content: center;
        gap: 12px;
    }

    .contact-info span {
        padding: 5px 10px;
        font-size: 0.8em;
    }

    .experience-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .tech-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 20px;
    }

    .tech-card {
        padding: 18px;
    }

    .project {
        padding: 20px;
        margin-bottom: 20px;
    }

    .experience-item {
        padding: 16px;
        margin-bottom: 20px;
    }

    .section .analysis-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .analysis-card {
        margin: 0 auto;
        max-width: 350px;
    }
    
    .analysis-thumbnail {
        height: 120px;
    }
    
    .analysis-content {
        padding: 16px;
    }
    
    .analysis-content h3 {
        font-size: 1.1em;
    }
    
    .modal-content {
        margin: 1% auto;
        width: 98%;
        height: 95vh;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-header h3 {
        font-size: 1.4em;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .analysis-viewer iframe {
        height: 600px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 12px;
    }

    .header {
        padding: 16px;
    }

    .section {
        padding: 16px;
    }

    .header h1 {
        font-size: 1.8em;
    }

    .subtitle {
        font-size: 1em;
    }

    .section h2 {
        font-size: 1.4em;
        margin-bottom: 14px;
    }

    .headshot {
        width: 100px;
        height: 100px;
    }

    .contact-info span {
        padding: 4px 8px;
        font-size: 0.75em;
    }

    .tech-card {
        padding: 16px;
    }

    .project {
        padding: 16px;
    }

    .experience-item {
        padding: 14px;
    }

    .analysis-content {
        padding: 14px;
    }

    .analysis-content h3 {
        font-size: 1em;
    }

    .analysis-meta {
        font-size: 0.75em;
    }

    .scenario, .outcome {
        font-size: 0.8em;
    }

    .tag {
        font-size: 0.65em;
        padding: 2px 6px;
    }

    .modal-header h3 {
        font-size: 1.2em;
    }

    .close {
        font-size: 1.5em;
        width: 35px;
        height: 35px;
    }
}

/* ============================================
   ANALYSIS PAGE STYLES
   Unified styling for all analysis visualizations
   ============================================ */

/* Analysis Page Body Override */
body.analysis-page {
    background: linear-gradient(135deg, #0f172a 0%, #1e3c72 50%, #0f172a 100%);
    min-height: 100vh;
    color: white;
    overflow-x: hidden;
}

/* Analysis Page Headers */
body.analysis-page .header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    background: transparent;
    border: none;
    box-shadow: none;
}

body.analysis-page .header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(30, 60, 114, 0.4) 0%, rgba(42, 82, 152, 0.3) 50%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
}

body.analysis-page .title {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1e3c72, #2a5298, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    letter-spacing: -2px;
}

body.analysis-page .subtitle {
    font-size: 1.3rem;
    color: #d1d5db;
    font-weight: 300;
    margin-bottom: 20px;
}

/* Metrics Overview Grid */
.metrics-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.metric-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(30, 60, 114, 0.3);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1e3c72, #2a5298, #06b6d4);
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: #2a5298;
    margin-bottom: 5px;
}

.metric-label {
    font-size: 0.9rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Analysis Grid Layouts */
body.analysis-page .analysis-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

body.analysis-page .analysis-grid.two-column {
    grid-template-columns: 2fr 1fr;
}

/* Chart Containers */
.chart-container,
.main-chart {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(30, 60, 114, 0.3);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.chart-container::before,
.main-chart::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #1e3c72, #2a5298, #06b6d4);
    border-radius: 24px 24px 0 0;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.chart-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 5px;
}

.chart-subtitle {
    font-size: 1rem;
    color: #94a3b8;
    font-weight: 400;
}

.chart-wrapper {
    height: 350px;
    position: relative;
    margin-bottom: 20px;
}

.chart-canvas {
    border-radius: 12px;
}

/* Callouts & Scorecards */
.callout {
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.3), rgba(42, 82, 152, 0.3));
    border: 1px solid rgba(30, 60, 114, 0.5);
    border-radius: 16px;
    padding: 16px;
    position: relative;
    min-width: 120px;
}

.callout::before {
    content: '';
    position: absolute;
    top: -4px;
    right: -4px;
    width: 12px;
    height: 12px;
    background: #2a5298;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.callout-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: #2a5298;
    margin-bottom: 2px;
}

.callout-label {
    font-size: 0.8rem;
    color: #d1d5db;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.scorecard {
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.3), rgba(42, 82, 152, 0.3));
    border: 1px solid rgba(30, 60, 114, 0.5);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    min-width: 100px;
}

.scorecard.blue {
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.3), rgba(6, 182, 212, 0.3));
    border: 1px solid rgba(30, 60, 114, 0.5);
}

.scorecard.orange {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(251, 146, 60, 0.3));
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.scorecard.red {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(220, 38, 38, 0.3));
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.scorecard.green {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(6, 182, 212, 0.3));
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.scorecard-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #93c5fd;
    margin-bottom: 6px;
    font-weight: 600;
}

.scorecard.orange .scorecard-label {
    color: #fcd34d;
}

.scorecard.red .scorecard-label {
    color: #fca5a5;
}

.scorecard.green .scorecard-label {
    color: #6ee7b7;
}

.scorecard-value {
    font-size: 1.8rem;
    font-weight: 900;
    color: white;
}

.scorecard-unit {
    font-size: 0.8rem;
    color: #93c5fd;
}

.scorecard.orange .scorecard-unit {
    color: #fcd34d;
}

.scorecard.red .scorecard-unit {
    color: #fca5a5;
}

.scorecard.green .scorecard-unit {
    color: #6ee7b7;
}

/* Insights Banner */
.insights-banner {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.8));
    border: 1px solid rgba(30, 60, 114, 0.3);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.insight-item {
    text-align: center;
    min-width: 120px;
}

.insight-label {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.insight-value {
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 400;
}

.methodology { color: #2a5298; }
.insight { color: #1e3c72; }
.impact { color: #06b6d4; }

.divider {
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, #475569, transparent);
}

/* Side Panel Styles */
.side-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.priority-card,
.performance-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(30, 60, 114, 0.3);
    border-radius: 16px;
    padding: 20px;
    flex: 1;
}

.priority-header,
.performance-header {
    font-size: 1.2rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 15px;
    text-align: center;
}

.priority-item,
.threshold-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(30, 60, 114, 0.15);
    border: 1px solid rgba(30, 60, 114, 0.3);
    border-radius: 10px;
    margin-bottom: 10px;
}

.priority-badge {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.priority-text,
.threshold-label {
    font-size: 0.85rem;
    color: #f1f5f9;
    flex: 1;
}

.priority-value,
.threshold-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: #2a5298;
}

/* Insights Section */
.insights-section,
.devices-section {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(30, 60, 114, 0.3);
    border-radius: 20px;
    padding: 25px;
    position: relative;
    overflow: hidden;
}

.insights-section::before,
.devices-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1e3c72, #2a5298);
}

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

.insight-card,
.device-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(30, 60, 114, 0.2);
    border-radius: 12px;
    padding: 20px;
}

.insight-header,
.device-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.insight-icon,
.device-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.insight-title,
.device-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f8fafc;
}

.insight-description {
    font-size: 0.9rem;
    color: #cbd5e1;
    line-height: 1.5;
    margin-bottom: 10px;
}

.insight-impact,
.device-impact {
    font-size: 0.8rem;
    color: #2a5298;
    font-weight: 600;
}

/* Device Metrics */
.device-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.device-metric {
    text-align: center;
    padding: 8px;
    background: rgba(30, 60, 114, 0.15);
    border-radius: 6px;
}

.device-metric-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2a5298;
}

.device-metric-label {
    font-size: 0.7rem;
    color: #94a3b8;
    text-transform: uppercase;
}

/* Methodology Badge */
.methodology-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(30, 60, 114, 0.3);
    border: 1px solid rgba(30, 60, 114, 0.5);
    color: #2a5298;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Floating Elements */
.floating-arrow {
    position: absolute;
    top: 25%;
    right: 20%;
    width: 40px;
    height: 40px;
    background: #2a5298;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce 2s infinite;
    box-shadow: 0 8px 25px rgba(42, 82, 152, 0.4);
    z-index: 10;
    font-size: 1.5rem;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.launch-marker {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(30, 60, 114, 0.4);
    z-index: 10;
}

/* Data Tables */
.data-table {
    background: rgba(15, 23, 42, 0.4);
    border-radius: 16px;
    overflow: hidden;
    margin-top: 20px;
}

.data-table table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: rgba(30, 41, 59, 0.8);
    padding: 16px;
    text-align: left;
    font-weight: 700;
    color: #2a5298;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(30, 60, 114, 0.2);
    color: #d1d5db;
}

.data-table tr:hover {
    background: rgba(30, 41, 59, 0.3);
}

.complexity-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.complexity-high {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.complexity-medium {
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.complexity-low {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.savings-positive {
    color: #2a5298;
    font-weight: 700;
}

/* Responsive Design for Analysis Pages */
@media (max-width: 1024px) {
    body.analysis-page .analysis-grid.two-column {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body.analysis-page .title {
        font-size: 2.5rem;
    }

    body.analysis-page .subtitle {
        font-size: 1.1rem;
    }

    .chart-container,
    .main-chart {
        padding: 20px;
    }

    .chart-wrapper {
        height: 300px;
    }

    .insights-banner {
        flex-direction: column;
        gap: 20px;
    }

    .chart-header {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .insights-grid,
    .devices-grid {
        grid-template-columns: 1fr;
    }

    .device-metrics {
        grid-template-columns: 1fr;
    }
}

/* O2O Attribution Thumbnail */
.o2o-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #0f172a, #1e3c72);
    padding: 16px;
}

.o2o-thumb-flow {
    display: flex;
    align-items: center;
    gap: 6px;
}

.o2o-node {
    background: rgba(42, 82, 152, 0.5);
    border: 1px solid rgba(6, 182, 212, 0.4);
    color: #e2e8f0;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.7em;
    font-weight: 600;
    white-space: nowrap;
}

.o2o-arrow {
    color: #06b6d4;
    font-size: 1em;
    font-weight: 700;
}

/* ============================================
   O2O ATTRIBUTION / CASE STUDY PAGE STYLES
   ============================================ */

/* Summary Banner */
.summary-banner {
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.4), rgba(6, 182, 212, 0.2));
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 16px;
    padding: 20px 30px;
    margin-bottom: 30px;
    font-size: 1.15rem;
    color: #e2e8f0;
    line-height: 1.6;
    text-align: center;
    font-weight: 400;
    font-style: italic;
}

/* Narrative Text Sections */
.narrative-section p {
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.narrative-section p:last-child {
    margin-bottom: 0;
}

/* Architecture Flow Diagram */
.architecture-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    gap: 0;
}

.flow-step {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(30, 60, 114, 0.4);
    border-radius: 14px;
    padding: 18px 28px;
    width: 100%;
    max-width: 480px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.flow-step:hover {
    transform: scale(1.02);
    border-color: rgba(42, 82, 152, 0.7);
}

.flow-step-final {
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.5), rgba(6, 182, 212, 0.2));
    border-color: rgba(6, 182, 212, 0.4);
}

.flow-step-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 60, 114, 0.3);
    border-radius: 12px;
}

.flow-step-content {
    flex: 1;
}

.flow-step-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 4px;
}

.flow-step-detail {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.4;
}

.flow-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 36px;
    position: relative;
}

.flow-arrow-line {
    width: 2px;
    height: 24px;
    background: linear-gradient(to bottom, rgba(42, 82, 152, 0.6), rgba(6, 182, 212, 0.6));
}

.flow-arrow-head {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid rgba(6, 182, 212, 0.6);
}

/* Build Components List */
.build-components {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.build-component {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    background: rgba(30, 60, 114, 0.15);
    border: 1px solid rgba(30, 60, 114, 0.3);
    border-radius: 10px;
    color: #e2e8f0;
    font-size: 0.95rem;
}

.build-component-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Impact List */
.impact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.impact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(30, 60, 114, 0.15);
    border: 1px solid rgba(30, 60, 114, 0.3);
    border-radius: 10px;
    color: #e2e8f0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.impact-bullet {
    width: 8px;
    height: 8px;
    min-width: 8px;
    background: linear-gradient(135deg, #2a5298, #06b6d4);
    border-radius: 50%;
    margin-top: 7px;
}

/* Technical Stack Grid */
.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.tech-stack-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(30, 60, 114, 0.3);
    border-radius: 14px;
    padding: 22px;
    text-align: center;
}

.tech-stack-header {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #2a5298;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(30, 60, 114, 0.3);
}

.tech-stack-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tech-stack-item {
    background: rgba(30, 60, 114, 0.2);
    border: 1px solid rgba(30, 60, 114, 0.3);
    border-radius: 8px;
    padding: 8px 12px;
    color: #e2e8f0;
    font-size: 0.88rem;
    font-weight: 500;
}

/* Role List */
.role-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.role-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: rgba(30, 60, 114, 0.15);
    border: 1px solid rgba(30, 60, 114, 0.3);
    border-radius: 10px;
    color: #e2e8f0;
    font-size: 0.95rem;
}

.role-number {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
}

/* Responsive: O2O / Case Study */
@media (max-width: 768px) {
    .tech-stack-grid {
        grid-template-columns: 1fr;
    }

    .flow-step {
        padding: 14px 18px;
    }

    .flow-step-title {
        font-size: 1rem;
    }

    .summary-banner {
        font-size: 1rem;
        padding: 16px 20px;
    }
}