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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Navigation */
.navbar {
    background-color: #2c3e50;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: #34495e;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

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

.card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.card p {
    color: #666;
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.btn:hover {
    background-color: #5568d3;
}

.btn-small {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background-color: #f8f9fa;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    margin-right: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-small:hover {
    background-color: #667eea;
    color: white;
    border-color: #667eea;
}

/* Blog Posts */
.blog-post {
    background: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.blog-post h2 {
    margin-bottom: 0.5rem;
}

.blog-post h2 a {
    color: #2c3e50;
    text-decoration: none;
}

.blog-post h2 a:hover {
    color: #667eea;
}

.post-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.read-more {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.read-more:hover {
    text-decoration: underline;
}

/* Publications */
.publications-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.pub-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #667eea;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.5rem;
    border-radius: 999px;
    vertical-align: middle;
    margin-left: 0.4rem;
}

.publications-chart {
    margin-top: 3rem;
}

.chart-wrapper {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 700px;
}

.publication {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.publication h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.authors {
    color: #666;
    font-style: italic;
    margin-bottom: 0.3rem;
}

.venue {
    color: #667eea;
    font-weight: 500;
    margin-bottom: 1rem;
}

.publication-links {
    margin-top: 1rem;
}

/* Proposals */
.proposals-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.proposal {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.proposal h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.proposal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.proposal-meta span {
    background-color: #f8f9fa;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    color: #666;
}

.proposal-tags {
    margin-top: 1rem;
}

.tag {
    display: inline-block;
    background-color: #e9ecef;
    color: #495057;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-right: 0.5rem;
    margin-top: 0.5rem;
}

.proposal .location {
    margin-top: 1rem;
    color: #666;
    font-size: 0.9rem;
}

/* Consulting Page */
.consulting-intro {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.lead {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.8;
}

.services,
.expertise {
    margin-bottom: 3rem;
}

.services h2,
.expertise h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.expertise-list {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    list-style-position: inside;
}

.expertise-list li {
    padding: 0.5rem 0;
    color: #555;
}

.contact-cta {
    text-align: center;
    background: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.contact-cta h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.contact-cta p {
    color: #666;
    margin-bottom: 2rem;
}

/* Section Headers */
h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

/* Tools & Sims Page */
.page-header {
    margin-bottom: 2.5rem;
}

.page-header h1 {
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.1rem;
    color: #666;
}

.tools-list {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 0 2rem;
}

.tool-entry {
    padding: 1.75rem 0;
}

.tool-entry h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
}

.tool-entry p {
    color: #666;
    margin-bottom: 1.25rem;
}

.tool-divider {
    border: none;
    border-top: 1px solid #e9ecef;
    margin: 0;
}

.tool-btn {
    display: inline-block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 2rem;
    }
}
