/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #6a6a6a;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --background: #ffffff;
    --border: #e5e5e5;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background);
}

/* Navigation */
nav {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 3rem;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
}

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

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

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

nav a.active {
    color: var(--text-primary);
    font-weight: 500;
}

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

/* Typography */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    margin-top: 2.5rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    margin-top: 2rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Hero Section */
.hero {
    padding: 3rem 0 4rem;
}

.hero p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.hero .contact-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.hero .contact-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--text-primary);
    color: var(--background);
    border-radius: 6px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.hero .contact-links a:hover {
    opacity: 0.9;
    text-decoration: none;
}

/* Project Cards */
.project-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: border-color 0.2s;
}

.project-card:hover {
    border-color: var(--accent);
}

.project-card h3 {
    margin-top: 0;
}

.project-card .meta {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.project-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent);
    font-weight: 500;
}

/* Case Study */
.case-study-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.case-study-section:first-of-type {
    border-top: none;
}

.case-study-section h2 {
    margin-top: 0;
}

/* Timeline */
.timeline {
    margin-top: 2rem;
}

.timeline-item {
    padding-left: 2rem;
    border-left: 2px solid var(--border);
    padding-bottom: 2rem;
    position: relative;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
}

.timeline-item h3 {
    margin-top: 0;
}

.timeline-item .period {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    margin-top: 6rem;
    padding: 3rem 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

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

    h2 {
        font-size: 1.5rem;
    }

    nav ul {
        gap: 1rem;
    }

    .hero .contact-links {
        flex-direction: column;
    }

    .container {
        padding: 0 1.5rem;
    }
}
