@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

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

:root {
    --bg-dark: #1a1816;
    --bg-card: #252321;
    --text-primary: #faf8f5;
    --text-secondary: #b8b3ad;
    --accent: #22c55e;
    --border: #3a3632;
}

[data-theme="light"] {
    --bg-dark: #faf8f5;
    --bg-card: #ffffff;
    --text-primary: #1a1816;
    --text-secondary: #6b6560;
    --accent: #3b82f6;
    --border: #e5e1dc;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
}

/* Theme Toggle */
.theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    opacity: 0.7;
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-secondary);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.2s;
}

.theme-toggle:hover svg {
    stroke: var(--text-primary);
}

.theme-icon {
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: absolute;
}

.theme-icon.hidden {
    opacity: 0;
    transform: rotate(180deg);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--bg-dark);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

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

nav .logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

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

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

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

/* Project Hero */
.project-hero {
    padding-top: 5rem;
    margin-bottom: 3rem;
}

.project-hero-image {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-card);
    border-radius: 8px;
    margin-bottom: 2rem;
}

.project-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.project-hero .lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Typography */
section {
    padding: 3rem 0;
}

h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 3rem 0 1rem;
    color: var(--text-primary);
}

h2:first-child {
    margin-top: 0;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Images */
.img-full {
    width: 100%;
    border-radius: 8px;
    margin: 2rem 0;
    border: 1px solid var(--border);
}

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

.image-grid img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--border);
}

/* Footer */
footer {
    background: var(--bg-card);
    padding: 3rem 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    margin-top: 4rem;
}

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

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

footer p {
    color: var(--text-secondary);
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    nav .container {
        padding: 1.5rem 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .project-hero-image {
        height: 250px;
    }

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