/* General styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
}

/* Navigation */
nav {
    background-color: #f8f9fa;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

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

nav a:hover {
    color: #007bff;
    background-color: rgba(0, 123, 255, 0.1);
}

nav a.active {
    color: #007bff;
    background-color: rgba(0, 123, 255, 0.1);
    font-weight: 600;
}

/* Main content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Project cards */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.project-card h3 {
    margin-top: 0;
    color: #2c3e50;
}

.project-meta {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.project-meta span {
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: #007bff;
    text-decoration: none;
}

/* Project detail pages */
.project-detail h1 {
    color: #2c3e50;
    margin-bottom: 2rem;
}

.project-detail section {
    margin-bottom: 3rem;
}

.project-detail h2 {
    color: #34495e;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
}

.project-detail ul {
    list-style: none;
    padding: 0;
}

.project-detail li {
    margin-bottom: 0.5rem;
}

/* Project screenshots */
.project-screenshot {
    margin: 2rem 0;
}

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

figure {
    margin: 0;
}

figcaption {
    text-align: center;
    color: #666;
    margin-top: 1rem;
    font-size: 0.9rem;
}

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

/* Links */
a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
    main {
        padding: 1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}