/* Variables */
:root {
    --color-primary: #118AB2;
    --color-secondary: #EF476F;
    --color-accent: #06D6A0;
    --color-dark: #073B4C;
    --color-light: #FFD166;
    --color-white: #FFFFFF;
    --color-off-white: #F8F9FA;
    --color-text: #073B4C;
    --color-text-light: #4A5568;

    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    --spacing-section: 100px;
    /* Consistent section spacing */

    --border-radius: 20px;
    /* Standardized rounded corners */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.25);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    background-color: var(--color-off-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
}

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

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

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.btn {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, #0d6d8a 100%);
    color: var(--color-white);
    /* Ensure white text */
    box-shadow: 0 4px 15px rgba(17, 138, 178, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(17, 138, 178, 0.6);
    background: linear-gradient(135deg, #0d6d8a 0%, var(--color-primary) 100%);
}

.btn-prim.nav-cta {
    background: linear-gradient(135deg, var(--color-primary), #0d6d8a);
    color: var(--color-white) !important;
    /* Force white text for better contrast */
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(17, 138, 178, 0.3);
}

.btn-prim.nav-cta:hover,
.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(17, 138, 178, 0.5);
    background: linear-gradient(135deg, #0d6d8a, var(--color-primary));
    color: var(--color-white) !important;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #d63d60 100%);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(239, 71, 111, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(239, 71, 111, 0.6);
}

/* Utility Classes for Removing Inline Styles */
.section-heading {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--color-dark);
}

.section-heading-small {
    text-align: center;
    margin-bottom: var(--spacing-md);
    color: var(--color-dark);
    font-size: 2rem;
    text-transform: none !important;
}

.section-heading-light {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--color-white);
}

.centered-text {
    text-align: center;
}

.max-w-600 {
    max-width: 600px;
}

.max-w-800 {
    max-width: 800px;
    margin: 0 auto;
}

.market-overlay-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #888;
}

.market-overlay-value {
    font-size: 1.5rem;
}

.market-strategy-title {
    color: var(--color-primary);
    margin-bottom: 5px;
}

.investment-link {
    color: var(--color-primary);
    font-weight: 600;
}

.invest-content {
    /* Remove max-width constraint to allow cards to be wider */
    text-align: center;
}

.invest-heading {
    margin-bottom: var(--spacing-md);
    font-size: 2.5rem;
    color: var(--color-dark);
}

.invest-amount {
    font-size: 3rem;
    color: var(--color-primary);
    font-weight: 700;
}

.invest-valuation {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: var(--spacing-lg);
}

.download-deck-btn {
    margin-top: var(--spacing-lg);
    padding: 15px 40px;
    font-size: 1.2rem;
}

.contact-section {
    margin-top: var(--spacing-lg);
}

.placeholder-portrait {
    background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #bbb;
}

.ai-description {
    max-width: 600px;
    text-align: center;
    font-size: 1.2rem;
    opacity: 0.9;
}

.timeline-logo-small {
    width: 100px;
}

.opacity-90 {
    opacity: 0.9;
}

.section {
    padding: var(--spacing-section) 0;
    position: relative;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: var(--spacing-sm) 0;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

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

.logo img {
    height: 45px;
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    color: var(--color-dark);
    font-size: 0.95rem;
}

.nav-links a:not(.btn):hover {
    color: var(--color-primary);
}

/* ==========================================
   HERO SECTION - CLEAN REWRITE
   ========================================== */

.hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 110%;
    /* Scale up to crop edges */
    min-height: 110%;
    /* Scale up to crop edges */
    width: auto;
    height: auto;
    transform: translate(-50%, -50%) scale(1.1);
    /* Center and scale */
    z-index: 0;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 59, 76, 0.5);
    z-index: 1;
}

.hero .container {
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.hero-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
}



.hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0;
    /* Remove padding to fix centering */
    margin: 0 auto;
    /* Ensure centering */
}



.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    color: var(--color-white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    text-align: center !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.hero p {
    font-size: 1.3rem;
    color: var(--color-white);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
    text-align: center !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.cta-group {
    display: flex !important;
    gap: var(--spacing-md) !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

@media (max-width: 768px) {
    .hero {
        min-height: 250px;
        /* Allow it to be much shorter */
        padding-top: 100px;
        padding-bottom: var(--spacing-md);
        height: auto;
        /* Let content dictate height */
    }

    .hero-bg-video {
        min-width: 100%;
        min-height: 100%;
        width: 100%;
        height: auto;
        /* Maintain aspect ratio */
        object-fit: cover;
        object-position: center;
        transform: translate(-50%, -50%);
    }

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

    .hero p {
        font-size: 1.1rem;
    }
}

.hero-disclaimer {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    z-index: 10;
    pointer-events: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* End of Hero Section */

/* Problem Section */
.problem {
    background: linear-gradient(rgba(7, 59, 76, 0.85), rgba(7, 59, 76, 0.95)), url('../assets/african_kids_optimized.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--color-white);
    text-align: center;
}

.problem h2 {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-light);
}

.problem p {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto var(--spacing-xl) auto;
    opacity: 0.9;
}



/* Solution Section */
.solution {
    background-color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.solution::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 60%;
    height: 120%;
    background: radial-gradient(circle, rgba(17, 138, 178, 0.05) 0%, transparent 70%);
    z-index: 0;
}



.product-showcase {
    margin-top: var(--spacing-xl);
    text-align: center;
    position: relative;
    padding: var(--spacing-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(17, 138, 178, 0.05) 100%);
    border-radius: var(--border-radius);
}

.product-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .product-showcase {
        padding: var(--spacing-xs) 0;
        /* Minimal padding for max width */
        width: 100%;
    }

    .product-showcase-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        /* Proper gap between cards */
        width: 100%;
        padding: 0;
    }

    .product-item {
        padding: var(--spacing-md);
        /* Balanced padding */
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    .product-item-description {
        padding: 0;
        /* Remove side padding for full text width */
        width: 100%;
        text-align: center;
    }

    .product-item p {
        margin-top: var(--spacing-sm);
        /* Tighter spacing */
        width: 100%;
    }

    .product-item img {
        height: 220px;
        /* Smaller height for mobile */
        width: 100%;
        margin: 0 auto;
    }
}

.product-item {
    background: white;
    border-radius: 20px;
    padding: var(--spacing-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(17, 138, 178, 0.1);
    position: relative;
    overflow: hidden;
}

.product-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(6, 214, 160, 0.05), rgba(17, 138, 178, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.product-item:hover::before {
    opacity: 1;
}

.product-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(6, 214, 160, 0.15), 0 0 30px rgba(17, 138, 178, 0.1);
    border-color: rgba(6, 214, 160, 0.3);
}

.product-item img {
    width: 100%;
    height: 280px;
    /* Fixed height for consistency */
    object-fit: cover;
    /* Crops images to fill space uniformly */
    object-position: center;
    border-radius: 12px;
    display: block;
    transition: transform 0.3s ease;
    background: #f5f5f5;
}

.microcuvette-img {
    object-fit: contain !important;
    padding: 10px;
}

.product-item:hover img {
    transform: scale(1.03);
}

.product-item p {
    margin-top: var(--spacing-md);
    font-weight: 600;
    color: var(--color-dark);
    font-size: 1.2rem;
    text-align: center;
}

.product-item .product-item-description {
    margin-top: var(--spacing-sm);
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.6;
    text-align: center;
    padding: 0 var(--spacing-sm);
    font-weight: 400;
    /* Ensure normal weight */
}

.patent-badge {
    display: inline-block;
    margin-top: var(--spacing-lg);
    padding: 10px 30px;
    background: linear-gradient(135deg, #06D6A0 0%, #05ac80 100%);
    color: white;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: var(--shadow-md);
    letter-spacing: 0.5px;
}

/* Market Section */
.market {
    background-color: var(--color-off-white);
    background-image: radial-gradient(#e0e0e0 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Duplicate overlay and centerline removed - using definitions above */



.hero-tagline-top {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    margin-bottom: var(--spacing-xl);
    width: 100%;
}

.tagline-item {
    color: var(--color-white);
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    width: 100%;
    max-width: 1400px;
}

.hero-tagline-inline {
    display: inline;
    white-space: nowrap;
}



.market-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    align-items: stretch;
    /* Critical: ensures equal heights */
}

@media (min-width: 768px) {
    .market-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.map-container {
    position: relative;
    background: var(--color-white);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.map-container img {
    width: 100%;
    height: auto;
    max-height: 400px;
}

.map-label {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    font-weight: 700;
    color: var(--color-dark);
    border-left: 5px solid var(--color-secondary);
    font-size: 1.1rem;
}

.investment-card {
    background: linear-gradient(145deg, var(--color-dark), #0a4e63);
    color: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    /* Critical for equal height with market-visual */
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 400px;
}

.investment-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    transform: rotate(45deg);
}

.investment-card h3 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-light);
}

.investment-list li {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-sm);
    font-size: 1.2rem;
    opacity: 0.95;
}

.investment-list li::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--color-accent);
    color: var(--color-dark);
    border-radius: 50%;
    margin-right: 15px;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Partners Section */
.partners {
    background-color: var(--color-off-white);
    padding: var(--spacing-xl) 0;
    overflow: hidden;
}

.partners h3 {
    text-align: center;
    margin-bottom: var(--spacing-md);
    color: var(--color-dark);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

/* Infinite Scrolling Carousel */
.partners-carousel {
    overflow: hidden;
    position: relative;
    width: 100%;
    background: transparent;
}

/* Path Forward Band */
#path-forward {
    background-color: var(--color-dark);
    color: var(--color-light);
    padding: var(--spacing-xl) 0;
}

#path-forward .section-heading-light {
    margin-bottom: var(--spacing-sm);
    color: var(--color-light);
}

.partners-track {
    display: flex;
    gap: 80px;
    animation: scroll-partners 30s linear infinite;
    width: max-content;
}

.partners-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-partners {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.partner-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    min-width: 180px;
}

.partner-item a {
    display: block;
    height: 100%;
    width: 100%;
}

.partner-item img {
    height: 100%;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.3s ease;
}

.partner-item:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

/* Market Data Visualization (TOM/TAM/SOM) */
.market-visual {
    position: relative;
    height: auto;
    min-height: 400px;
    background: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.market-circles {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
}

.circle {
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 20px;
    color: var(--color-dark);
    font-weight: 700;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.circle:hover {
    transform: translateX(-50%) scale(1.05);
    z-index: 10;
}

.circle-tam {
    width: 300px;
    height: 300px;
    background: linear-gradient(180deg, #e0f7fa 0%, #b2ebf2 100%);
    z-index: 1;
    font-size: 1.2rem;
}

.circle-tom {
    width: 200px;
    height: 200px;
    background: linear-gradient(180deg, #4dd0e1 0%, #26c6da 100%);
    z-index: 2;
    font-size: 1.1rem;
    color: white;
}

.circle-som {
    width: 100px;
    height: 100px;
    background: linear-gradient(180deg, #00bcd4 0%, #00acc1 100%);
    z-index: 3;
    font-size: 1rem;
    color: white;
    padding-top: 35px;
}

.market-legend {
    margin-top: var(--spacing-md);
    text-align: left;
}

.legend-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

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

.legend-label {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: var(--color-text-light);
}

.legend-color {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin-right: 10px;
}

.legend-value {
    font-weight: 800;
    color: var(--color-dark);
    font-size: 1.1rem;
}



/* Invest Section (formerly just a div) */
.invest-section {
    margin-top: var(--spacing-xl);
    text-align: center;
    background: linear-gradient(135deg, var(--color-primary), var(--color-dark));
    padding: var(--spacing-xl) var(--spacing-md);
    border-radius: var(--border-radius);
    color: white;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.invest-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/african_kids_optimized.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    mix-blend-mode: overlay;
}

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

.invest-amount {
    font-size: 4rem;
    font-weight: 800;
    color: var(--color-light);
    margin: var(--spacing-sm) 0;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.invest-valuation {
    font-size: 1.5rem;
    opacity: 0.9;
    margin-bottom: var(--spacing-lg);
}

.btn-large {
    padding: 20px 50px;
    font-size: 1.3rem;
    background: var(--color-accent);
    color: var(--color-dark);
    box-shadow: 0 10px 25px rgba(6, 214, 160, 0.4);
}

.btn-large:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(6, 214, 160, 0.6);
}

/* AI Software Section */
.ai-section {
    background-color: var(--color-dark);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

/* Unified Software Interface */
.software-interface {
    background: #f8f9fa;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    max-width: 1100px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Inter', sans-serif;
}

/* Interface Header */
.interface-header {
    background: #ffffff;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.interface-logo {
    height: 32px;
    width: auto;
}

.divider-vertical {
    width: 1px;
    height: 24px;
    background: #e2e8f0;
}

.interface-title {
    font-weight: 600;
    color: var(--color-dark);
    font-size: 1.1rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.patient-info {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.patient-info .value {
    font-weight: 600;
    color: var(--color-dark);
    margin-left: 4px;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(6, 214, 160, 0.1);
    color: #059669;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #059669;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Interface Body */
.interface-body {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    height: 550px;
    /* Fixed height for dashboard feel */
}

@media (max-width: 968px) {
    .interface-body {
        grid-template-columns: 1fr;
        height: auto;
    }

    .scan-panel {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        min-height: 300px;
    }

    .scan-viewport {
        min-height: 250px;
    }
}

@media (max-width: 480px) {
    .interface-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .header-right {
        width: 100%;
        justify-content: space-between;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
        /* Stack metrics on very small screens */
    }
}

/* Scan Panel (Left) */
.scan-panel {
    background: #0f172a;
    /* Dark background for contrast */
    padding: 20px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e2e8f0;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    color: var(--color-dark);
}

.scan-panel .panel-header {
    color: #ffffff;
}

.panel-title {
    font-weight: 600;
    font-size: 1rem;
}

.feed-status {
    font-size: 0.8rem;
    color: #ef4444;
    /* Red for recording/live */
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse-fast 1s infinite;
}

@keyframes pulse-fast {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.scan-viewport {
    flex: 1;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.detection-animation {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Ensure full image visibility */
}

.scan-overlay-legend {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    gap: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.legend-item {
    color: #fff;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.legend-green {
    background: #06D6A0;
    box-shadow: 0 0 8px rgba(6, 214, 160, 0.6);
}

.legend-red {
    background: #EF476F;
    box-shadow: 0 0 8px rgba(239, 71, 111, 0.6);
}


/* Results Panel (Right) */
.results-panel {
    background: #ffffff;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.results-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1;
}

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

.metric-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.malaria-metric {
    border-top: 4px solid #EF476F;
}

.hb-metric {
    border-top: 4px solid #118AB2;
}

.metric-label {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 8px;
    font-weight: 500;
}

.metric-value-group {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 4px;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-dark);
    line-height: 1;
}

.metric-unit {
    font-size: 0.85rem;
    color: var(--color-text-light);
    font-weight: 500;
}

.metric-sub {
    font-size: 0.85rem;
    font-weight: 600;
}

.malaria-metric .metric-sub {
    color: #EF476F;
}

.hb-metric .metric-sub {
    color: #118AB2;
}

/* Severity Alert */
.severity-alert {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.alert-icon {
    font-size: 1.5rem;
    background: #ffedd5;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.alert-content {
    flex: 1;
}

.alert-title {
    color: #c2410c;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
}

.alert-desc {
    color: #9a3412;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* AI Insight */
.ai-insight {
    margin-top: auto;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 0.85rem;
    color: #0369a1;
}

.ai-insight i {
    color: #0ea5e9;
}


/* History Section - Animated Vertical Timeline */
.history {
    background-color: var(--color-off-white);
    height: 600vh;
    /* Create scroll space */
    position: relative;
    padding: 0;
}

.history .container {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Align to top */
    padding-top: 100px;
    /* Space for header */
    overflow: hidden;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    flex: 1;
    /* Fill remaining space */
    width: 100%;
}

/* Animated central line */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 3px;
    height: 100%;
    background: rgba(0, 0, 0, 0.05);
    /* Subtle static guide */
    z-index: 0;
}

.timeline-item {
    position: absolute;
    top: 20%;
    /* Moved further up to compact layout */
    left: 50%;
    transform: translate(-50%, 100px);
    width: 100%;
    max-width: 1000px;
    /* Ensure enough space */
    display: block;
    /* Use block for manual positioning */
    opacity: 0;
    transition: transform 0.1s linear, opacity 0.1s linear;
    z-index: 1;
    pointer-events: none;
    /* Let clicks pass through if needed, but content needs pointer-events: auto */
}

.timeline-item * {
    pointer-events: auto;
}

/* Remove side positioning */
.timeline-item.left,
.timeline-item.right {
    left: 50%;
}



@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

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

/* Timeline dot */
.timeline-item::after {
    display: none;
    /* Hide dots */
    background: white;
    border: 4px solid var(--color-primary);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(17, 138, 178, 0.2);
}

/* Removed legacy dots */

.timeline-content {
    position: relative;
    left: 50%;
    width: 400px;
    /* Reduced width to prevent cutoff */
    margin-left: 40px;
    /* Offset from center line */
    background: white;
    padding: var(--spacing-md);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: visible;
    /* Allow date/icon to pop out */
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(6, 214, 160, 0.04), rgba(17, 138, 178, 0.04));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.timeline-content:hover::before {
    opacity: 1;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(6, 214, 160, 0.15), 0 0 20px rgba(17, 138, 178, 0.1);
    border-color: var(--color-accent);
}

.timeline-date {
    position: absolute;
    right: 100%;
    top: 24px;
    width: 300px;
    padding-right: 80px;
    /* 40px margin + 40px gap */
    text-align: right;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    font-family: 'Outfit', sans-serif;
}

.timeline-icon {
    position: absolute;
    left: -60px;
    /* Center on line */
    top: 20px;
    width: 40px;
    height: 40px;
    background: var(--color-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 2;
    box-shadow: 0 0 0 4px var(--color-off-white);
}

.timeline-content h4 {
    font-size: 1.3rem;
    color: var(--color-dark);
    margin: 8px 0;
}

.timeline-content p {
    color: var(--color-text-light);
    line-height: 1.6;
}

.timeline-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    margin: var(--spacing-sm) 0;
    border-radius: 8px;
}

.timeline-image-group {
    display: flex;
    gap: 10px;
    margin: var(--spacing-sm) 0;
}

.timeline-image-half {
    width: 48%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
}

.timeline-icon {
    width: 48px;
    height: 48px;
    margin: var(--spacing-sm) auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    /* Blue to Green */
    border-radius: 50%;
    color: var(--color-secondary);
    /* Red Icon */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.timeline-icon .lucide {
    width: 30px;
    height: 30px;
    stroke-width: 2.5px;
}



/* Large Screen Optimization (4K) */
@media (min-width: 1600px) {
    .timeline {
        max-width: 1800px;
    }

    .history {
        height: 800vh;
    }

    .history .container {
        max-width: 100%;
        width: 100%;
        padding: 0 50px;
    }

    .timeline-item {
        max-width: 1800px;
    }

    .timeline-content {
        width: 700px;
        margin-left: 60px;
        padding: 3rem;
    }

    .timeline-image {
        height: auto;
    }

    .timeline-date {
        font-size: 4rem;
        width: 450px;
        padding-right: 120px;
        top: 30px;
    }

    .timeline-content h4 {
        font-size: 2.2rem;
    }

    .timeline-content p {
        font-size: 1.3rem;
    }
}

/* Stats Grid - Prominent Strip */
.stats-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
    background: white;
    padding: var(--spacing-lg);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.stat-card {
    background: transparent;
    /* Remove card bg */
    padding: var(--spacing-sm);
    box-shadow: none;
    /* Remove card shadow */
    border: none;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #eee;
    /* Separator on mobile */
}

.stat-card:last-child {
    border-bottom: none;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: none;
}

@media (min-width: 768px) {
    .stats-grid {
        flex-direction: row;
        justify-content: space-around;
        padding: var(--spacing-xl);
    }

    .stat-card {
        border-bottom: none;
        border-right: 1px solid #eee;
        /* Separator on desktop */
    }

    .stat-card:last-child {
        border-right: none;
    }
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 5px;
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    background-clip: text;
    /* Standard property */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Financials in Invest Section */
.financials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    text-align: left;
    max-width: 900px;
    /* Slightly wider for horizontal layout */
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Detailed Investment Cards */
.detailed-invest-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.detailed-invest-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.detailed-invest-card.financial-opp {
    border-left: 4px solid var(--color-accent);
}

.detailed-invest-card.humanitarian-imp {
    border-left: 4px solid var(--color-secondary);
}

/* Card Header */
.card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

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

.header-icon .lucide {
    width: 24px;
    height: 24px;
}

.header-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: var(--color-dark);
}

.header-content .subtitle {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin: 4px 0 0 0;
    font-weight: 500;
}

/* Financial Data Row */
.data-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.data-point {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.data-point .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 4px;
}

.data-point .value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-dark);
    line-height: 1.2;
}

.data-point .sub {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 2px;
}

.divider {
    width: 1px;
    height: 40px;
    background: #e2e8f0;
    margin: 0 24px;
    align-self: center;
}

/* Funds Usage Tags */
.funds-usage {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    padding: 12px;
    border-radius: 8px;
}

.usage-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
}

.tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    font-size: 0.8rem;
    background: white;
    border: 1px solid #e2e8f0;
    padding: 4px 10px;
    border-radius: 20px;
    color: #334155;
    font-weight: 500;
}

/* Humanitarian Impact Grid */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.impact-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.impact-item .lucide {
    width: 20px;
    height: 20px;
    color: var(--color-secondary);
    margin-top: 3px;
    flex-shrink: 0;
}

.impact-item strong {
    display: block;
    font-size: 0.95rem;
    color: var(--color-dark);
    margin-bottom: 4px;
}

.impact-item p {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.4;
    margin: 0;
}

/* Mobile Responsiveness for New Cards */
@media (max-width: 768px) {
    .data-row {
        flex-direction: column;
        gap: 16px;
    }

    .divider {
        display: none;
    }

    .impact-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .funds-usage {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 900px) {
    .financials-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        /* Reduce gap on mobile */
    }
}

.financial-card {
    background: white;
    padding: var(--spacing-xl);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    /* Ensure good height */
}

@media (max-width: 768px) {
    .financial-card {
        padding: var(--spacing-md);
        /* Reduce padding on mobile */
        min-height: auto;
        /* Allow content to dictate height */
    }
}

.financial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(239, 71, 111, 0.03), rgba(255, 209, 102, 0.03));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.financial-card:hover::before {
    opacity: 1;
}

.financial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(239, 71, 111, 0.15), 0 0 30px rgba(255, 209, 102, 0.1);
    border-color: rgba(239, 71, 111, 0.3);
}

.financial-card h4 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-lg);
    font-size: 1.5rem;
    border-bottom: 2px solid var(--color-secondary);
    padding-bottom: var(--spacing-sm);
    display: inline-block;
}

.financial-metrics {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.metric-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: var(--spacing-md);
    background: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
    border-left: 4px solid var(--color-primary);
}

.metric-label {
    font-size: 0.75rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.metric-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-dark);
    font-family: 'Outfit', sans-serif;
    line-height: 1.2;
}

.metric-note {
    font-size: 0.95rem;
    color: var(--color-text-light);
    font-style: italic;
    margin-top: -4px;
}

.download-deck-btn {
    margin-top: var(--spacing-xl) !important;
    /* Ensure proper spacing */
}

.stat-label {
    font-size: 1.1rem;
    color: var(--color-dark);
    font-weight: 500;
}

/* Solution Section */
.solution {
    background-color: var(--color-off-white);
    position: relative;
    overflow: hidden;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.feature-item {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    /* Added for ::before pseudo-element */
    overflow: hidden;
    /* Added for ::before pseudo-element */
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(17, 138, 178, 0.05), rgba(6, 214, 160, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.feature-item:hover::before {
    opacity: 1;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(17, 138, 178, 0.15), 0 0 30px rgba(6, 214, 160, 0.1);
    border-color: rgba(6, 214, 160, 0.3);
}

/* Team Section - Enhanced */
.team {
    background-color: var(--color-white);
}

.team-subsection-title {
    text-align: center;
    color: var(--color-primary);
    font-size: 1.8rem;
    margin: var(--spacing-xl) 0 var(--spacing-lg) 0;
    font-family: 'Outfit', sans-serif;
}

.team-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    /* Wider cards, more rows */
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    max-width: 1200px;
    /* Limit max width to force rows */
    margin-left: auto;
    margin-right: auto;
}

.team-member-card {
    background: white;
    border-radius: 20px;
    padding: var(--spacing-xl);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    /* overflow: hidden; Removed to prevent cropping */
    /* aspect-ratio: 1 / 1.1; Removed to allow height to adapt */
    height: auto;
    /* Let content dictate height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.team-member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(17, 138, 178, 0.04), rgba(6, 214, 160, 0.04));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.team-member-card:hover::before {
    opacity: 1;
}

.team-member-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(17, 138, 178, 0.15), 0 0 30px rgba(6, 214, 160, 0.1);
    border-color: rgba(6, 214, 160, 0.3);
}

.team-portrait-large {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    /* Better face positioning */
    margin: 0 auto var(--spacing-md);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    /* Prevent squashing */
    aspect-ratio: 1 / 1;
    /* Force perfect circle */
}

.team-portrait-large.placeholder-portrait {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
    color: #bbb;
    font-size: 3rem;
    font-weight: 700;
    border: 4px solid #ccc;
}

.team-member-card h3 {
    color: var(--color-dark);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
}

.team-role {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
}

.team-description {
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    font-size: 0.95rem;
}

.linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #0077B5;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.linkedin-link:hover {
    background: #005582;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
}

.linkedin-link i {
    width: 18px;
    height: 18px;
}

/* Enhanced Advisor Grid */
.advisor-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.advisor-card {
    background: white;
    border-radius: 16px;
    padding: var(--spacing-md);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    position: relative;
    overflow: hidden;
}

.advisor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 209, 102, 0.04), rgba(239, 71, 111, 0.04));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.advisor-card:hover::before {
    opacity: 1;
}

.advisor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(255, 209, 102, 0.15), 0 0 20px rgba(239, 71, 111, 0.1);
    border-color: rgba(255, 209, 102, 0.3);
}

.advisor-portrait-large {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
    /* Force perfect circle */
}

.advisor-info {
    flex: 1;
}

.advisor-info h4 {
    color: var(--color-dark);
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.advisor-expertise {
    color: var(--color-text-light);
    font-size: 0.85rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.linkedin-link-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #0077B5;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.linkedin-link-small:hover {
    background: #005582;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
}

.linkedin-link-small i {
    width: 16px;
    height: 16px;
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-dark) 100%);
    color: var(--color-white);
    text-align: center;
}

.contact h2 {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

/* Comparison Section */
.comparison {
    background-color: var(--color-white);
}

/* Comparison Table Modernization */
.comparison-table-container {
    overflow-x: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    background: white;
    padding: 5px;
    /* Padding for the glow to not be cut off */
}

.comparison-table {
    width: 100%;
    border-collapse: separate;
    /* Changed from collapse to separate for border-radius */
    border-spacing: 0;
    min-width: 600px;
}

.comparison-table th,
.comparison-table td {
    padding: 20px 25px;
    /* Increased padding */
    text-align: center;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.comparison-table th {
    background-color: #f8f9fa;
    color: var(--color-dark);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.comparison-table th:first-child {
    text-align: left;
    border-top-left-radius: 15px;
}

.comparison-table th:last-child {
    border-top-right-radius: 15px;
}

.comparison-table tr:last-child td:first-child {
    border-bottom-left-radius: 15px;
}

.comparison-table tr:last-child td:last-child {
    border-bottom-right-radius: 15px;
}

.comparison-table tr:hover td {
    background-color: #fafafa;
}

/* Highlighted Column (DuoQ) */
.comparison-table th.highlight {
    background-color: var(--color-primary);
    color: white;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    border-top: none;
    /* Reset border for cleaner look */
    box-shadow: 0 -5px 20px rgba(6, 214, 160, 0.3);
    /* Enhanced glow */
}

.comparison-table td.highlight {
    background-color: rgba(6, 214, 160, 0.05);
    font-weight: 600;
    color: var(--color-dark);
    border-left: 2px solid var(--color-secondary);
    border-right: 2px solid var(--color-secondary);
    box-shadow: 0 0 25px rgba(6, 214, 160, 0.1);
    /* Softer, wider glow */
}

.comparison-table tr:last-child td.highlight {
    border-bottom: 2px solid var(--color-secondary);
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    box-shadow: 0 5px 20px rgba(6, 214, 160, 0.2);
}

/* Remove old styles that might conflict */
.comparison-table th.highlight::after,
.comparison-table td.highlight::after {
    display: none;
}

/* Remove the previous pseudo-element approach to avoid conflicts */
.comparison-table th.highlight::after,
.comparison-table td.highlight::after {
    display: none;
}

.check-icon {
    color: var(--color-accent);
    font-weight: bold;
    font-size: 1.2rem;
}

.cross-icon {
    color: #ef476f;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Hero Section Updates */
.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-line {
    display: block;
    margin-bottom: 5px;
}





/* Feature Icons */
.feature-icon .lucide {
    width: 48px;
    height: 48px;
    color: var(--color-primary);
}

/* Comparison Icons */
.icon-check {
    color: var(--color-secondary);
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

.icon-cross {
    color: #e63946;
    /* Red for cross */
    width: 20px;
    height: 20px;
    vertical-align: middle;
    opacity: 0.5;
}

/* Market Map Visualization */
.market-map-container {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.map-svg {
    width: 100%;
    height: auto;
    /* Auto height to prevent stretching */
    object-fit: contain;
    max-width: 500px;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
}

.map-overlay {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    font-weight: 600;
    color: var(--color-dark);
    pointer-events: none;
}

.map-overlay-tam {
    top: 10%;
    right: 10%;
    border-left: 4px solid #e0f7fa;
}

.map-overlay-tom {
    top: 40%;
    right: 5%;
    border-left: 4px solid #4dd0e1;
}

.map-overlay-som {
    bottom: 20%;
    left: 10%;
    border-left: 4px solid #00bcd4;
}

/* Footer */
footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    text-align: center;
    padding: var(--spacing-lg);
}

footer p {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 968px) {
    .market-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        height: auto;
        padding-top: 120px;
        padding-bottom: var(--spacing-lg);
    }

    .hero .container {
        flex-direction: column;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: var(--spacing-lg);
    }

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

    .cta-group {
        justify-content: center;
    }

    .nav-links {
        display: none;
    }

    .problem h2 {
        font-size: 2.5rem;
    }

    .stat-number {
        font-size: 3rem;
    }
}

/* AI Random Bounding Box Animation */
.bounding-box {
    position: absolute;
    border: 2px solid var(--color-secondary);
    box-shadow: 0 0 10px rgba(239, 71, 111, 0.5);
    pointer-events: none;
    opacity: 0;
    animation: flashBox 1.5s ease-out forwards;
    z-index: 10;
}

@keyframes flashBox {
    0% {
        opacity: 0;
        transform: scale(1.2);
    }

    15% {
        opacity: 1;
        transform: scale(1);
    }

    80% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(1);
    }
}

/* Mobile Timeline Adjustments */
@media (max-width: 768px) {
    .history .container {
        padding-top: 80px;
    }

    .timeline-image {
        max-height: 200px;
    }

    .timeline-item {
        width: 90%;
        max-width: none;
    }

    .timeline-content {
        width: 100%;
        margin-left: 0;
        left: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }

    .timeline-date {
        position: relative;
        right: auto;
        top: auto;
        width: auto;
        padding-right: 0;
        margin-bottom: 10px;
        text-align: center;
        font-size: 2rem;
    }

    .timeline-icon {
        position: relative;
        left: auto;
        top: auto;
        margin-bottom: 15px;
        box-shadow: none;
    }

    .timeline::before {
        display: none;
    }
}