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

:root {
    --primary-bg: #111827;
    --secondary-bg: #1F2937;
    --accent-color: #60A5FA;
    --secondary-color: #6B7280;
    --text-primary: #F3F4F6;
    --text-secondary: #D1D5DB;
    --card-border: rgba(96, 165, 250, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    background-color: var(--primary-bg);
}

.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-bg);
    z-index: -1;
}

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

/* Card Styling */
.glass-card {
    background: var(--secondary-bg);
    border-radius: 12px;
    border: 1px solid var(--card-border);
    padding: 30px;
    box-shadow: 0 4px 6px var(--shadow-color);
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-color);
}

/* Header */
.header-section {
    text-align: center;
    background: var(--secondary-bg);
}

.header-section h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    text-align: center;
    padding: 25px;
    background: var(--secondary-bg);
}

.stat-card h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Chart Container */
.chart-container {
    background: var(--secondary-bg);
    padding: 35px;
}

.chart-container h2 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 600;
}

.chart-description {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-style: italic;
    font-size: 0.95rem;
}

canvas {
    max-height: 400px;
    background: rgba(31, 41, 55, 0.5);
    border-radius: 10px;
    padding: 15px;
}

/* Insights Section */
.insights-section {
    background: var(--secondary-bg);
}

.insights-section h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
}

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

.insight-item {
    background: rgba(17, 24, 39, 0.5);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    transition: border-color 0.3s ease;
}

.insight-item:hover {
    border-color: var(--accent-color);
}

.insight-item h3 {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.insight-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Footer */
.footer-section {
    text-align: center;
    background: var(--secondary-bg);
    padding: 20px;
}

.footer-section p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

/* Navigation Links */
.nav-link {
    display: inline-block;
    padding: 12px 30px;
    background: var(--accent-color);
    color: var(--primary-bg);
    text-decoration: none;
    border-radius: 6px;
    border: 2px solid var(--accent-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: transparent;
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(96, 165, 250, 0.3);
}

.footer-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid var(--accent-color);
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--text-primary);
    border-bottom-color: var(--text-primary);
}

/* Methodologies Page Specific Styles */
.methodology-section {
    background: var(--secondary-bg);
}

.methodology-section h2 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-weight: 600;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
}

.methodology-section h3 {
    font-size: 1.3rem;
    color: var(--accent-color);
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 600;
}

.methodology-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
}

.methodology-list {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-left: 30px;
    margin-bottom: 20px;
}

.methodology-list li {
    margin-bottom: 10px;
}

.methodology-formula {
    background: rgba(17, 24, 39, 0.5);
    padding: 15px 20px;
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
    color: var(--text-primary);
    font-size: 1.05rem;
    margin: 20px 0;
    font-family: 'Courier New', monospace;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-section h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat-value {
        font-size: 2rem;
    }

    .container {
        padding: 20px 15px;
    }

    .methodology-section h2 {
        font-size: 1.5rem;
    }

    .methodology-section h3 {
        font-size: 1.1rem;
    }

    .methodology-text {
        font-size: 0.95rem;
    }

    .methodology-list {
        margin-left: 20px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .nav-link {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}
