body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    margin: 0;
    padding: 0;
    color: var(--text);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.container {
    max-width: 960px;
    margin: 80px auto;
    padding: 40px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

h1 {
    margin-bottom: 20px;
}

h3 {
    font-weight: 400;
    color: var(--muted);
    margin-top: 8px;
}

p {
    line-height: 1.5;
}

.counter {
    font-size: 1.1rem;
    margin-top: 24px;
    color: var(--accent);
}

#response {
    font-size: 1.2rem;
}

.projects {
    margin-top: 3rem;
}

.projects h2 {
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.project-card {
    display: block;
    padding: 1.5rem;
    border-radius: 10px;
    background: var(--card-surface);
    color: inherit;
    text-decoration: none;
    cursor: pointer;

    border: 1px solid rgba(0, 0, 0, 0.08);
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        border-color 0.15s ease;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.35),
        inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.project-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.project-card p {
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.project-card .stack {
    font-size: 0.85rem;
    color: var(--muted);
}

.project-card .meta {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0.5rem;
}

.cta {
    display: block;
    text-align: right;
    font-size: 0.85rem;
    color: var(--accent);
}

#theme-toggle {
    position: fixed;
    top: 16px;
    right: 16px;
    background: var(--card-bg);
    color: var(--text);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 999px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.1s ease;
}

#theme-toggle:hover {
    transform: translateY(-1px);
}

:root {
    --bg: #f4f4f4;
    --card-bg: #ffffff;
    --card-surface: #f8fafc;
    --text: #1f2933;
    --muted: #4b5563;
    --accent: #2563eb;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0f172a;
        --card-bg: #020617;
        --card-surface: #020617;
        --text: #e5e7eb;
        --muted: #94a3b8;
        --accent: #38bdf8;
    }
}

:root[data-theme="dark"] {
    --bg: #0f172a;
    --card-bg: #020617;
    --card-surface: #020617;
    --text: #e5e7eb;
    --muted: #94a3b8;
    --accent: #38bdf8;
}

:root[data-theme="dark"] .project-card {
    border-color: rgba(255, 255, 255, 0.08);
}

:root[data-theme="light"] {
    --bg: #f4f4f4;
    --card-bg: #ffffff;
    --card-surface: #f8fafc;
    --text: #1f2933;
    --muted: #4b5563;
    --accent: #2563eb;
}
