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

:root {
    --primary-color: #000;
    --secondary-color: #666;
    --accent-color: #0066cc;
    --background: #fff;
    --card-background: #f9f9f9;
    --border-color: #ddd;
    --text-color: #333;
    --max-width: 1200px;
    --spacing: 2rem;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--background);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--background);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

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

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

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

/* Header */
header {
    margin-top: 80px;
    padding: 4rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
}

h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.contact-info {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

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

.contact-info a:hover {
    text-decoration: underline;
}

/* Main Content */
main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--spacing);
}

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

.project-card {
    background: var(--card-background);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.project-card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: #eee;
}

.project-card-content {
    padding: 1.5rem;
    flex: 1;
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.project-meta {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.project-card p {
    color: var(--text-color);
    line-height: 1.6;
}

/* Project Detail Page */
.project-detail {
    max-width: 900px;
    margin: 0 auto;
}

.project-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.project-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.project-info {
    display: flex;
    gap: 2rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.project-info-item {
    color: var(--secondary-color);
}

.project-info-item strong {
    color: var(--primary-color);
}

.project-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 2rem 0;
}

.project-details {
    background: var(--card-background);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

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

.project-details li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.project-details li:last-child {
    border-bottom: none;
}

.project-link {
    display: inline-block;
    margin: 2rem 0;
    padding: 0.75rem 1.5rem;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.project-link:hover {
    background: #0052a3;
}

/* Image Gallery */
.project-images {
    margin: 3rem 0;
}

.image-container {
    margin: 2rem 0;
}

.image-container img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.image-caption {
    text-align: center;
    color: var(--secondary-color);
    font-style: italic;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* Back Button */
.back-button {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.back-button:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    margin-top: 4rem;
    padding: 2rem;
    text-align: center;
    background: var(--card-background);
    color: var(--secondary-color);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .project-info {
        flex-direction: column;
        gap: 0.5rem;
    }
}
