/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&family=Source+Code+Pro:wght@400;600&display=swap');

:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --code-bg: #f8f9fa;
    --card-bg: #ffffff;
    --header-gradient-1: #3498db;
    --header-gradient-2: #2980b9;
}

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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

/* Header */
header {
    background: linear-gradient(135deg, var(--header-gradient-1), var(--header-gradient-2));
    color: white;
    padding: 60px 0;
    text-align: center;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

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

/* Navigation */
nav {
    background-color: var(--secondary-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
}

nav li {
    margin: 0 15px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary-color);
}

/* Sections */
.section {
    padding: 60px 0;
}

.section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 15px;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Project Overview */
.flex-container {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.text-content {
    flex: 1 1 500px;
}

.image-content {
    flex: 1 1 400px;
    text-align: center;
}

.diagram {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Methodology */
.methodology-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.methodology-step {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 25px;
    flex: 1 1 220px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.methodology-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.step-number {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.methodology-step h3 {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

/* Key Findings */
.finding-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.finding-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.chart-container {
    margin-top: 20px;
    height: 300px;
}

/* Code Section */
.code-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-button {
    padding: 10px 20px;
    border: none;
    background-color: #e0e0e0;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 4px 4px 0 0;
    transition: background-color 0.3s;
}

.tab-button.active {
    background-color: var(--primary-color);
    color: white;
}

.tab-content {
    display: none;
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 0 8px 8px 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.tab-content h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

pre {
    background-color: var(--code-bg);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Source Code Pro', monospace;
    font-size: 0.9rem;
    border-left: 4px solid var(--primary-color);
}

/* About Section */
.tech-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.tech-list li {
    background-color: var(--light-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.github-link {
    text-align: center;
    margin-top: 30px;
}

.github-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--dark-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.github-button:hover {
    background-color: #1e2b38;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 30px 0;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.2rem;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav li {
        margin: 5px 0;
    }
    
    .flex-container {
        flex-direction: column;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .finding-card {
        padding: 15px;
    }
    
    .chart-container {
        height: 250px;
    }
}