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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f7fa;
    line-height: 1.7;
    color: #333;
}

/* Navigation */
nav {
    background: white;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.nav-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.back-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #2980b9;
}

/* Article Container */
article {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 60px 80px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

/* Header */
.project-header {
    margin-bottom: 40px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 30px;
}

.project-tag {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    margin-bottom: 15px;
}

h1 {
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.2;
}

.project-meta {
    color: #7f8c8d;
    font-size: 0.95em;
}

/* Content */
.content h2 {
    font-size: 1.8em;
    color: #2c3e50;
    margin-top: 40px;
    margin-bottom: 20px;
}

.content p {
    margin-bottom: 20px;
    font-size: 1.05em;
}

.content img,
.content video {
    width: 100%;
    border-radius: 8px;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.image-caption {
    text-align: center;
    color: #7f8c8d;
    font-size: 0.9em;
    margin-top: -20px;
    margin-bottom: 30px;
    font-style: italic;
}

/* Code blocks */
code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #e74c3c;
}

/* Link section */
.repo-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-top: 50px;
    border-left: 4px solid #3498db;
}

.repo-section h3 {
    font-size: 1.3em;
    color: #2c3e50;
    margin-bottom: 15px;
}

.repo-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #3498db;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
    margin-top: 10px;
}

.repo-link:hover {
    background: #2980b9;
}

/* Tech stack */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 30px 0;
}

.tech-tag {
    background: #ecf0f1;
    color: #2c3e50;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    color: #7f8c8d;
}

/* Responsive */
@media (max-width: 768px) {
    article {
        padding: 40px 30px;
    }

    h1 {
        font-size: 2em;
    }

    .content h2 {
        font-size: 1.5em;
    }
}