/* Transportation Network Analysis - Detailed Visualization Showcase */

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

:root {
    --primary: #25072b;
    --secondary: #000000;
    --dark: #000000;
    --light: #ffeaf9;
    --gray: #64748b;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --purple: #000000;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    color: var(--dark);
    background: var(--light);
}

/* Header - Same as before */
.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.header-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.header-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.header-meta {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.header-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-primary {
    background: white;
    color: var(--primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.btn-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary);
}

/* Navigation */
.nav {
    background: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
    color: var(--primary);
    background: var(--light);
}

/* Container */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Section */
.section {
    margin-bottom: 6rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
    border-bottom: 4px solid var(--primary);
    padding-bottom: 0.75rem;
    display: inline-block;
}

.section-intro {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

/* KPI Cards */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2.5rem 0;
}

.kpi-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
    border-top: 4px solid transparent;
}

.kpi-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.kpi-card.primary { border-top-color: var(--primary); }
.kpi-card.danger { border-top-color: var(--danger); }
.kpi-card.success { border-top-color: var(--success); }
.kpi-card.warning { border-top-color: var(--warning); }

.kpi-value {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.kpi-card.primary .kpi-value { color: var(--primary); }
.kpi-card.danger .kpi-value { color: var(--danger); }
.kpi-card.success .kpi-value { color: var(--success); }
.kpi-card.warning .kpi-value { color: var(--warning); }

.kpi-label {
    font-size: 0.95rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* Visualization Sections */
.viz-section {
    background: white;
    padding: 4rem;
    border-radius: 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    margin-bottom: 4rem;
    position: relative;
}

.viz-number {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 24px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.viz-intro {
    font-size: 1.15rem;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 3rem;
}

.viz-showcase {
    margin: 3rem 0;
    text-align: center;
}

.viz-main-image {
    width: 100%;
    max-width: 1200px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    cursor: pointer;
    transition: transform 0.3s;
}

.viz-main-image:hover {
    transform: scale(1.02);
}

.viz-caption {
    margin-top: 1rem;
    color: var(--gray);
    font-size: 0.95rem;
    font-style: italic;
}

.viz-caption i {
    margin-right: 0.5rem;
    color: var(--primary);
}

/* Analysis Grid */
.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2.5rem;
    margin: 4rem 0;
}

.analysis-card {
    background: var(--light);
    padding: 2.5rem;
    border-radius: 16px;
    border-left: 4px solid var(--primary);
    transition: transform 0.3s, box-shadow 0.3s;
}

.analysis-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.analysis-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.analysis-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
    color: var(--dark);
}

.analysis-card p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.analysis-card p strong {
    color: var(--dark);
    font-weight: 600;
}

/* Key Takeaways */
.key-takeaways {
    background: linear-gradient(135deg, #1f0127 0%, #50336d 100%);
    color: white;
    padding: 3rem;
    border-radius: 16px;
    margin: 4rem 0;
}

.key-takeaways h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.key-takeaways ul {
    list-style: none;
    padding: 0;
}

.key-takeaways li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    font-size: 1.05rem;
    line-height: 1.7;
}

.key-takeaways li:before {
    content: '✓';
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.3rem;
    color: #22c55e;
}

.key-takeaways strong {
    font-weight: 700;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2.5rem 0;
}

.contact-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-decoration: none;
    color: var(--dark);
    text-align: center;
    transition: transform 0.3s;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.contact-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: var(--gray);
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.footer-content p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.95);
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--danger);
}

#modalCaption {
    margin-top: 20px;
    text-align: center;
    color: white;
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .viz-section {
        padding: 2rem 1.5rem;
    }
    
    .analysis-grid {
        grid-template-columns: 1fr;
    }
    
    .header-content h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .nav-content {
        gap: 0.25rem;
    }
    
    .nav a {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
}