/* Reset and Base Styles */
* {
    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: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

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

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem 0;
    text-align: center;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Navigation */
.navigation {
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navigation ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2rem;
}

.navigation a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.navigation a:hover {
    background: #667eea;
    color: white;
}

/* Main Content */
.main-content {
    padding: 3rem 0;
}

.section {
    background: white;
    margin: 2rem 0;
    border-radius: 15px;
    padding: 3rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
    font-weight: 600;
}

/* Overview Section */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.overview-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Charts */
.chart-container {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
    height: 400px;
}

.charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.half {
    height: 300px;
}

/* Country Analysis */
.country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.country-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    transition: transform 0.3s ease;
}

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

.country-card h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.country-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stat {
    background: #e9ecef;
    padding: 0.5rem;
    border-radius: 5px;
    font-size: 0.9rem;
}

.rank {
    background: #667eea;
    color: white;
    padding: 0.5rem;
    border-radius: 5px;
    font-weight: bold;
}

.toggle-details {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 1rem;
    transition: background 0.3s ease;
}

.toggle-details:hover {
    background: #5a67d8;
}

.country-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
    display: none;
}

.country-details.show {
    display: block;
}

.country-details h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

.country-details ul {
    list-style: none;
}

.country-details li {
    padding: 0.3rem 0;
    color: #666;
}

/* Investment Section */
.investment-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.major-funds {
    margin: 2rem 0;
}

.funds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.fund-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #dee2e6;
}

.fund-card h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

.size {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 0.3rem;
}

.country {
    color: #666;
    font-size: 0.9rem;
}

/* Startup Section */
.startup-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.startup-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.startup-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #764ba2;
}

.startup-card h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

.funding {
    font-size: 1.2rem;
    font-weight: bold;
    color: #764ba2;
    margin-bottom: 0.3rem;
}

/* Talent Section */
.talent-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.talent-initiatives {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.talent-initiatives ul {
    list-style: none;
    columns: 2;
    column-gap: 2rem;
}

.talent-initiatives li {
    padding: 0.5rem 0;
    color: #666;
    break-inside: avoid;
}

.skills-chart {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    height: 300px;
    margin: 2rem 0;
}

/* Future Outlook */
.outlook-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.outlook-card {
    background: linear-gradient(135deg, #764ba2, #667eea);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
}

.outlook-card h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.challenges-opportunities {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.challenges, .opportunities {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
}

.challenges h3, .opportunities h3 {
    color: #333;
    margin-bottom: 1rem;
    text-align: center;
}

.challenges ul, .opportunities ul {
    list-style: none;
}

.challenges li, .opportunities li {
    padding: 0.5rem 0;
    color: #666;
}

.challenges li {
    color: #dc3545;
}

.opportunities li {
    color: #28a745;
}

.timeline {
    margin: 2rem 0;
}

.timeline-container {
    position: relative;
    padding: 2rem 0;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #667eea;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin: 2rem 0;
    width: 50%;
    padding: 0 2rem;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-year {
    background: #667eea;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.timeline-content {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    border: 1px solid #dee2e6;
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer p {
    margin: 0.5rem 0;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .navigation ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .charts-row {
        grid-template-columns: 1fr;
    }
    
    .country-grid {
        grid-template-columns: 1fr;
    }
    
    .challenges-opportunities {
        grid-template-columns: 1fr;
    }
    
    .talent-initiatives ul {
        columns: 1;
    }
    
    .timeline-container::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        left: 0 !important;
        text-align: left !important;
        padding-left: 3rem;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
        text-align: left;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeIn 0.6s ease-out;
}

/* Interactive Elements */
.nav-link {
    transition: all 0.3s ease;
}

.nav-link:hover {
    transform: scale(1.05);
}

.stat-card, .country-card, .fund-card, .startup-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover, .country-card:hover, .fund-card:hover, .startup-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Scroll animations */
.section {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}