﻿
body {
   
    background: var(--white-ivory);
    color: var(--navy-blue-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

/*.hero-section {
    background: linear-gradient(90deg, var(--navy-blue) 0%, var(--navy-blue-dark) 50%, var(--blue) 100%);
    position: relative;
    overflow: hidden;
    min-height: 42vh;
    display: flex;
    align-items: center;
    padding: 50px 0;
    width: 100vw;
    margin-top: -25px;
    margin-left: calc(50% - 50vw);
}

    .hero-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.2)"/><circle cx="40" cy="80" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="90" r="1" fill="rgba(255,255,255,0.15)"/></svg>');
        animation: sparkle 20s linear infinite;
        will-change: transform;
    }
*/
/*@keyframes sparkle {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    100% {
        transform: translateY(-100px) rotate(360deg);
    }
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 4;
    text-align: center;
    margin: 0 auto;
    color: var(--white-ivory);
    max-width: 900px;
    padding: 0 1rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    background: linear-gradient(45deg, var(--white-ivory), var(--white-ivory), var(--teal-accent));
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}
*/
/*.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 2rem;
    margin-top: 0.8rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 0.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .stat-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(30, 58, 138, 0.2);
    }

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--white-ivory);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--white-ivory);
    opacity: 0.8;
}
*/
/* Main Content */
.main-content {
    padding: 5rem 0;
}

.section-card {
    background: var(--white-ivory);
    border-radius: 2rem;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .section-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 20px rgba(30, 58, 138, 0.2);
    }

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--navy-blue-dark);
    margin-bottom: 1rem;
    position: relative;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 40px;
        height: 2px;
        background: var(--teal-accent);
        border-radius: 1px;
    }

/* Performance Table */
.performance-table {
    background: var(--white-ivory);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.1);
    margin-top: 2rem;
}

    .performance-table table {
        margin: 0;
    }

    .performance-table th {
        background: linear-gradient(90deg, var(--white-ivory) var(--blue));
        color: black;
        font-weight: 600;
        padding: 1rem;
        border: none;
        font-size: 0.95rem;
    }

    .performance-table td {
        padding: 1rem;
        border: none;
        border-bottom: 1px solid rgba(30, 58, 138, 0.1);
        font-weight: 500;
        color: var(--navy-blue-dark);
    }

    .performance-table tbody tr:hover {
        background: rgba(45, 184, 163, 0.1);
    }

.positive-return {
    color: var(--profit-success);
    font-weight: 600;
}

.negative-return {
    color: var(--loss-error);
    font-weight: 600;
}

/* Chart Container */
.chart-container {
    background: var(--white-ivory);
    border-radius: 1rem;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.1);
}

.chart-tabs {
    display: flex;
    flex-wrap: nowrap; /* Prevent wrapping */
    overflow-x: auto; /* Enable horizontal scroll on small screens */
    gap: 0.5rem;
    padding: 0.5rem 0;
    -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
}

.chart-tab {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    color: var(--grey);
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

    .chart-tab.active {
        color: var(--teal-accent);
        border-bottom-color: var(--teal-accent);
    }


.chart-tab {
    flex: 0 0 auto; /* Prevent shrinking */
    white-space: nowrap; /* Prevent text wrap */
    padding: 0.5rem 1rem;
    border: none;
    background-color: #f0f0f0;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
}


    .chart-tab:hover {
        color: var(--teal-accent);
    }

/* Metrics Cards */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* two per row by default */
    gap: 1.5rem;
    margin: 2rem 0;
}

@media (min-width: 768px) {
    .metrics-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* auto-fit for tablet+ */
    }
}


.metric-card {
    background: var(--white-ivory);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .metric-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 20px rgba(30, 58, 138, 0.2);
    }

.metric-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--white-ivory);
}

    .metric-icon.volatility {
        background: linear-gradient(45deg, var(--gold), var(--profit-highlight));
    }

    .metric-icon.sharpe {
        background: linear-gradient(45deg, var(--profit-success), var(--teal-accent));
    }

    .metric-icon.max-drawdown {
        background: linear-gradient(45deg, var(--loss-error), var(--profit-highlight));
    }

    .metric-icon.alpha {
        background: linear-gradient(45deg, var(--teal-accent), var(--navy-blue-dark));
    }

.metric-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--navy-blue-dark);
}

.metric-label {
    color: var(--grey);
    font-size: 0.9rem;
}

/* Disclaimer */
.disclaimer {
    background: linear-gradient(45deg, var(--white-ivory), rgba(45, 184, 163, 0.1));
    border: 1px solid var(--teal-accent);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-top: 3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.disclaimer-icon {
    color: var(--gold);
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
/*    .hero-title {
        font-size: 2.5rem;
    }

    .hero-section {
        min-height: 60vh;
    }

    .hero-content {
        padding: 0 1rem;
    }*/
/*
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .stat-card {
        padding: 1rem;
    }
*/
    .section-card {
        padding: 1.5rem;
    }

    .chart-tabs {
        flex-wrap: wrap;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

/*@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
}
*/

/*@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1rem;
        max-width: 90%;
    }

    .hero-section {
        min-height: auto;
        padding: 3rem 0;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1rem;
    }
}
*/
/*@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 0.75rem;
    }
}
*/