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

:root {
    --bg: #0a0a0b;
    --bg-alt: #121214;
    --surface: #1a1a1e;
    --border: #2a2a2e;
    --text: #f4f4f5;
    --text-muted: #a1a1aa;
    --accent: #a78bfa;
    --accent-hover: #c4b5fd;
    --radius: 12px;
}

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 24px;
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 11, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

.hero {
    padding: 160px 0 100px;
    text-align: center;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent), #e879f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-domain {
    margin-top: 8px;
    font-size: 1.125rem;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-sub {
    margin-top: 20px;
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 48px;
    letter-spacing: -0.02em;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

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

.filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.project-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
    opacity: 0;
    animation: fadeUp 0.4s ease forwards;
}

.project-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
}

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

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--bg-alt);
}

.project-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--bg-alt), var(--surface));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 2.5rem;
    font-weight: 700;
}

.project-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.project-description {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    flex: 1;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.project-category,
.project-tag {
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 100px;
    font-weight: 500;
}

.project-category {
    background: rgba(167, 139, 250, 0.15);
    color: var(--accent);
}

.project-tag {
    background: rgba(232, 121, 249, 0.12);
    color: #e879f9;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

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

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 24px;
}

.empty-icon {
    color: var(--text-muted);
    margin-bottom: 16px;
    opacity: 0.4;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.contact-text {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.contact-btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 100px;
    background: var(--accent);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.contact-btn:hover {
    background: var(--accent-hover);
}

.footer {
    padding: 32px 0;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.8125rem;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 32px;
    }

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

    .nav-links {
        gap: 16px;
    }
}
