:root {
    --primary-color: #18181b;
    --secondary-color: #71717a;
    --background-color: #fafafa;
    --accent-color: #2563eb;
    --spacing-unit: 2rem;
    --card-background: rgba(255, 255, 255, 0.9);
    --header-background: rgba(250, 250, 250, 0.95);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--primary-color);
    background-color: var(--background-color);
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#backgroundCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(to bottom, 
        var(--background-color) 0%,
        rgba(250, 250, 250, 0.95) 100%
    );
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem var(--spacing-unit);
    background: var(--header-background);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.name {
    font-weight: 600;
    font-size: 2.5rem;
    letter-spacing: -0.03em;
    line-height: 1;
}

nav {
    text-align: right;
    padding-top: 0.5rem;
}

nav a {
    color: var(--primary-color);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    opacity: 0.8;
    cursor: pointer !important;
}

nav a:hover {
    color: var(--accent-color);
    opacity: 1;
}

.content-wrapper {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-unit) var(--spacing-unit);
    gap: calc(var(--spacing-unit) * 2);
    min-height: calc(100vh - 180px); /* Account for header and footer */
}

main {
    flex: 1;
    max-width: 800px;
    position: relative;
    z-index: 1;
    padding-top: calc(var(--spacing-unit) * 3);
}

.projects {
    width: 320px;
    margin: 0 auto;
    padding-top: calc(var(--spacing-unit) * 3);
}

.project-card {
    background: var(--card-background);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 1.75rem;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 2px 4px rgba(0, 0, 0, 0.04),
        0 4px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.04),
        0 4px 8px rgba(0, 0, 0, 0.04),
        0 8px 16px rgba(0, 0, 0, 0.04);
}

.project-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
    letter-spacing: -0.01em;
}

.project-card a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
    cursor: pointer !important;
}

.project-card a:hover {
    color: var(--accent-color);
}

.project-card p {
    font-size: 0.9375rem;
    margin: 0;
    color: var(--secondary-color);
    line-height: 1.5;
}

h1 {
    font-size: 4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--secondary-color);
    letter-spacing: -0.01em;
}

h2 {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-unit);
    letter-spacing: -0.02em;
}

footer {
    text-align: center;
    padding: var(--spacing-unit);
    color: var(--secondary-color);
    font-size: 0.875rem;
    opacity: 0.8;
}

a, button {
    cursor: pointer !important;
}

@media (max-width: 1024px) {
    .content-wrapper {
        flex-direction: column;
        padding-top: calc(var(--spacing-unit) * 2);
    }

    .projects {
        width: 100%;
        padding-top: var(--spacing-unit);
    }

    .project-card {
        max-width: 600px;
    }

    h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-unit: 1.5rem;
    }

    .name {
        font-size: 2rem;
    }
    
    header {
        padding: 1.5rem var(--spacing-unit);
    }

    .header-content {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    nav {
        text-align: left;
        padding-top: 0;
    }

    nav a {
        margin: 0 1.5rem 0 0;
    }

    h1 {
        font-size: 2.75rem;
    }
    
    .subtitle {
        font-size: 1.25rem;
    }
}

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

    .project-card {
        padding: 1.25rem;
    }
}
