:root {
    --primary: #0047FF;
    --secondary: #FF3366;
    --accent: #6B4EFF;
    --text: #1a1a1a;
    --text-light: #666666;
    --bg: #ffffff;
    --bg-light: #f8f8f8;
    --border: #e0e0e0;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

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

.logo {
    font-family: 'Space Mono', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text);
    text-decoration: none;
}

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

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

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

/* Hero */
.projects-hero {
    padding: 12rem 3rem 6rem;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg) 100%);
}

.hero-container {
    max-width: 1000px;
    margin: 0 auto;
}

.hero-badge {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: var(--primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: clamp(4rem, 8vw, 7rem);
    line-height: 1;
    font-weight: 700;
    letter-spacing: -3px;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-light);
    line-height: 1.7;
    font-weight: 400;
    max-width: 800px;
    margin: 0 auto;
}

/* Introduction */
.intro-section {
    padding: 6rem 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.intro-section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -1.5px;
    margin-bottom: 2rem;
}

.intro-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.intro-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.stat {
    text-align: center;
    padding: 2rem;
    background: var(--bg-light);
    border-left: 4px solid var(--primary);
}

.stat-number {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.8rem;
}

.stat-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

/* Filter Section */
.filter-section {
    position: sticky;
    top: 73px;
    z-index: 999;
    background: var(--bg);
    border-bottom: 2px solid var(--border);
    padding: 1.5rem 3rem;
}

.filter-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.filter-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-light);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.filter-buttons {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    flex: 1;
}

.filter-btn {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    padding: 0.6rem 1.2rem;
    background: white;
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Projects Section */
.projects-section {
    padding: 6rem 3rem;
}

.projects-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Category Header */
.category-header {
    margin: 5rem 0 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border);
}

.category-header:first-child {
    margin-top: 0;
}

.category-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
}

.category-header p {
    font-size: 1rem;
    color: var(--text-light);
}

/* Project Card */
.project-card {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
    background: white;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.project-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.project-card.hidden {
    display: none;
}

.project-card.featured {
    border: 2px solid var(--primary);
}

.project-image {
    width: 100%;
    height: 100%;
    min-height: 250px;
    background: var(--bg-light);
    border-right: 1px solid var(--border);
}

.project-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-type {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.project-year {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-light);
}

.project-content h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.project-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.tag {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    padding: 0.4rem 0.8rem;
    background: var(--bg-light);
    border: 1px solid var(--border);
    color: var(--text);
    letter-spacing: 0.3px;
}

.project-link {
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    align-self: flex-start;
}

.project-link:hover {
    color: var(--secondary);
}

/* CTA */
.cta-section {
    padding: 8rem 3rem;
    background: var(--primary);
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -1.5px;
    margin-bottom: 2rem;
}

.cta-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
    border: 2px solid white;
    background: white;
    color: var(--primary);
    transition: all 0.3s ease;
}

.btn:hover {
    background: transparent;
    color: white;
}

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

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: -0.3px;
}

.footer-section p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Large Screen Optimizations */
@media (min-width: 1920px) {
    .projects-hero {
        padding: 14rem 4rem 8rem;
    }

    .hero-title {
        font-size: 8rem;
    }

    .intro-section,
    .projects-section {
        padding: 8rem 4rem;
    }

    .project-card {
        grid-template-columns: 400px 1fr;
    }

    .project-image {
        min-height: 300px;
    }
}

@media (min-width: 2560px) {
    body {
        font-size: 18px;
    }

    .projects-hero {
        padding: 16rem 5rem 10rem;
    }

    .hero-title {
        font-size: 10rem;
    }

    .intro-section,
    .projects-section {
        padding: 10rem 5rem;
    }

    .project-card {
        grid-template-columns: 500px 1fr;
        gap: 3rem;
    }

    .project-content {
        padding: 3rem;
    }

    .project-image {
        min-height: 350px;
    }
}

@media (min-width: 3840px) {
    body {
        font-size: 22px;
    }

    .projects-hero {
        padding: 20rem 8rem 12rem;
    }

    .hero-title {
        font-size: 12rem;
    }

    .intro-section,
    .projects-section {
        padding: 14rem 8rem;
    }

    .project-card {
        grid-template-columns: 600px 1fr;
        gap: 4rem;
    }

    .project-content {
        padding: 4rem;
    }

    .project-image {
        min-height: 400px;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .project-card {
        grid-template-columns: 1fr;
    }

    .project-image {
        min-height: 200px;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .filter-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-buttons {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .projects-hero {
        padding: 8rem 2rem 4rem;
    }

    .filter-section {
        padding: 1rem 2rem;
    }

    .filter-btn {
        font-size: 0.75rem;
        padding: 0.5rem 0.9rem;
    }

    .intro-section,
    .projects-section {
        padding: 4rem 2rem;
    }

    .intro-stats {
        grid-template-columns: 1fr;
    }

    .project-card {
        margin-bottom: 2rem;
    }

    .project-content {
        padding: 1.5rem;
    }

    .category-header {
        margin: 3rem 0 2rem;
    }

    .cta-section {
        padding: 4rem 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
}