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

:root {
    --primary: #ff8c42;
    --primary-light: #ffa366;
    --primary-dark: #e67a2e;
    --accent: #ff6b35;
    --text-primary: #2d2d2d;
    --text-secondary: #666666;
    --border: #e0e0e0;
    --bg: #ffffff;
    --bg-secondary: #fff8f3;
    --bg-hover: #ffe8d9;
    --shadow: rgba(255, 140, 66, 0.1);
}

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

/* Header */
header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.logo {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

.logo:hover {
    color: var(--primary-dark);
}

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

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

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

/* Project Container */
.project-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-nav h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-nav ul {
    list-style: none;
    margin-bottom: 2rem;
}

.sidebar-nav li {
    margin-bottom: 0.5rem;
}

.sidebar-nav a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.3s;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    color: var(--primary);
    border-left-color: var(--primary);
    background: var(--bg-secondary);
}

.sidebar-info {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.sidebar-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.info-item:last-child {
    margin-bottom: 0;
}

.label {
    display: block;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.value {
    display: block;
    color: var(--text-primary);
}

/* Main Content */
.project-content {
    max-width: 900px;
}

h1 {
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
}

section {
    margin-bottom: 3rem;
}

h2 {
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

section:first-of-type h2 {
    border-top: none;
    padding-top: 0;
}

h3 {
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

h4 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

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

ul {
    margin: 1rem 0 1rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

li {
    margin-bottom: 0.5rem;
}

strong {
    color: var(--text-primary);
    font-weight: 600;
}

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

figure {
    margin: 0;
}

figure img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

figcaption {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
}

/* Callout Box */
.callout {
    background: var(--bg-secondary);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 4px;
}

.callout h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.callout p {
    margin-bottom: 0;
}

/* Code Block */
.code-block {
    background: #2d2d2d;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
}

.code-block code {
    color: #f8f9fa;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

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

.result-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border-top: 4px solid var(--primary);
}

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

.result-card p {
    margin: 0;
    font-size: 0.9rem;
}

/* Project Footer */
.project-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--primary-dark);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .project-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
    }

    .sidebar-nav {
        order: 2;
    }

    .sidebar-info {
        order: 1;
    }
}

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

    h2 {
        font-size: 1.5rem;
    }

    .lead {
        font-size: 1.1rem;
    }

    .project-container {
        padding: 1rem;
    }

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

    nav ul {
        gap: 1rem;
    }

    nav a {
        font-size: 0.85rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}