/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #0a0a0b;
    --surface: #141416;
    --surface-hover: #1c1c1f;
    --border: #27272a;
    --text: #fafafa;
    --text-muted: #a1a1aa;
    --accent: #3b82f6;
    --accent-hover: #60a5fa;
    --accent-subtle: rgba(59, 130, 246, 0.1);
}

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: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero */
.hero {
    padding: 100px 0 80px;
}

.hero-inner {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-text { flex: 1; }

.hero-image {
    flex-shrink: 0;
}

.hero-image img {
    width: 240px;
    height: 240px;
    border-radius: 16px;
    object-fit: cover;
    border: 2px solid var(--border);
}

.label, .section-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 4px;
}

.subtitle {
    font-size: 24px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.tagline {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 540px;
}

.details {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-bottom: 28px;
    font-size: 14px;
    color: var(--text-muted);
}

.details li::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    margin-right: 8px;
    vertical-align: middle;
}

.hero-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

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

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--surface-hover);
    border-color: var(--text-muted);
}

/* Projects */
.projects {
    padding: 80px 0;
}

.projects h2, .background h2, .contact h2 {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 48px;
}

.project-card {
    display: flex;
    gap: 32px;
    padding: 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 32px;
    transition: border-color 0.2s;
}

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

.project-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--accent);
    opacity: 0.3;
    line-height: 1;
    flex-shrink: 0;
    width: 56px;
}

.project-content { flex: 1; }

.project-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.project-sub {
    font-size: 14px;
    color: var(--accent);
    margin-bottom: 16px;
}

.project-desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
}

/* Metrics */
.metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.metric {
    background: var(--accent-subtle);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 10px;
    padding: 14px 18px;
    min-width: 140px;
}

.metric-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
}

.metric-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* Tech tags */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-tags span {
    font-size: 12px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 6px;
    background: var(--surface-hover);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.walkthrough-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* Background */
.background {
    padding: 80px 0;
}

.bg-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.bg-card {
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: border-color 0.2s;
}

.bg-card:hover {
    border-color: var(--accent);
}

.bg-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.bg-card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Contact */
.contact {
    padding: 80px 0 100px;
    text-align: center;
}

.contact-text {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.contact-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
    .hero { padding: 60px 0 48px; }

    .hero-inner {
        flex-direction: column-reverse;
        gap: 32px;
        text-align: center;
    }

    .hero-image img {
        width: 160px;
        height: 160px;
    }

    .details { justify-content: center; }
    .hero-links { justify-content: center; }
    .tagline { margin-left: auto; margin-right: auto; }

    h1 { font-size: 36px; }
    .subtitle { font-size: 20px; }

    .projects h2, .background h2, .contact h2 { font-size: 28px; }

    .project-card {
        flex-direction: column;
        gap: 8px;
        padding: 24px;
    }

    .project-number {
        font-size: 32px;
        width: auto;
    }

    .metrics { flex-direction: column; }
    .metric { min-width: auto; }

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