:root {
    color-scheme: light dark;
    --bg-color: #ffffff;
    --text-color: #000000;
    --header-bg: rgba(255, 255, 255, 0.95);
    --header-border: rgba(0, 0, 0, 0.1);
    --image-border: rgba(0, 0, 0, 0.1);
    --tab-border: rgba(0, 0, 0, 0.1);
    --tab-active: #000000;
    --tab-inactive: rgba(0, 0, 0, 0.6);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #0a0a0a;
        --text-color: #ffffff;
        --header-bg: rgba(10, 10, 10, 0.95);
        --header-border: rgba(255, 255, 255, 0.1);
        --image-border: rgba(255, 255, 255, 0.1);
        --tab-border: rgba(255, 255, 255, 0.1);
        --tab-active: #ffffff;
        --tab-inactive: rgba(255, 255, 255, 0.6);
    }
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
}

.header {
    background-color: var(--header-bg);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    width: 100%;
    border-bottom: none;
}

.header-inner {
    padding: 0.75rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.75rem;
}

.header-top {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.header-link:hover {
    opacity: 0.8;
}

.header-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--image-border);
}

.header-title {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-color);
}

.tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tab {
    background: none;
    border: none;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: var(--tab-inactive);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.tab.active {
    color: var(--tab-active);
    border-bottom-color: var(--tab-active);
}

.tab:hover {
    color: var(--tab-active);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

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

.project-card {
    background: var(--bg-color);
    border: 1px solid var(--image-border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

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

.project-image {
    width: 100%;
    height: auto;
    display: block;
}

.project-info {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.project-description {
    color: var(--tab-inactive);
    font-size: 0.95rem;
}

.membership-intro, .projects-intro {
    max-width: 600px;
    margin: 0 auto 3rem;
    text-align: center;
}

.membership-intro p, .projects-intro p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--tab-inactive);
}

.membership-intro p a {
    color: var(--tab-active);
    text-decoration: underline;
}

.main-content {
    padding: 0.5rem 2rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .header-inner {
        padding: 0.75rem 1rem;
    }
    
    .header-image {
        width: 50px;
        height: 50px;
    }
    
    .header-title {
        font-size: 1.5rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 0.25rem;
    }
    
    .main-content {
        padding: 0.75rem 1rem 1rem;
    }
    
    .membership-intro p, .projects-intro p {
        font-size: 1rem;
    }
}