body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    line-height: 1.5;
    color: #e6edf3;
    background-color: #0d1117;
}
.project-card {
    background: #161b22;
    border-radius: 16px;
    padding: 1.5rem;
    margin: 2rem 0;
    border: 1px solid #30363d;
}
.demo-video {
    width: 100%;
    max-width: 640px;
    border-radius: 12px;
    margin: 1rem 0;
    border: 1px solid #30363d;
}
.media-grid {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
a {
    color: #58a6ff;
    text-decoration: none;
    margin-right: 1rem;
}
a:hover {
    text-decoration: underline;
}
.project-tags { margin: 0.5rem 0; }
.tag {
    display: inline-block;
    background: #21262d;
    color: #c9d1d9;
    border-radius: 20px;
    padding: 0.2rem 0.8rem;
    font-size: 0.8rem;
    margin-right: 0.4rem;
    border: 1px solid #30363d;
}
.project-links { margin-top: 0.8rem; }

/* For the projects */
.subtitle { color: #8b949e; margin-top: -0.5rem; }
.back-link { display: inline-block; margin: 1rem 0; }
.case-section {
    background: #161b22;
    border-radius: 16px;
    padding: 1.8rem;
    margin: 2rem 0;
    border: 1px solid #30363d;
}
.case-section h2 { margin-top: 0; border-bottom: 2px solid #30363d; padding-bottom: 0.5rem; }
.highlight-box {
    background: #0d1117;
    border-left: 4px solid #58a6ff;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}
.solution-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 600px) { .solution-grid { grid-template-columns: 1fr; } }
.ab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 1rem 0; }
.ab-img { width: 100%; border-radius: 8px; border: 1px solid #30363d; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.feature-card {
    background: #0d1117;
    padding: 1.2rem;
    border-radius: 12px;
    border: 1px solid #21262d;
}
.feature-img { width: 100%; border-radius: 8px; margin-top: 0.5rem; }
.stats-grid { display: flex; justify-content: space-around; text-align: center; padding: 1rem 0; }
.stat-number { display: block; font-size: 2.5rem; font-weight: bold; color: #58a6ff; }
.stat-label { color: #8b949e; }
details pre { background: #0d1117; padding: 1rem; border-radius: 8px; overflow-x: auto; }
code { font-family: 'Courier New', monospace; color: #f0883e; }
@media (max-width: 700px) { 
    .feature-grid { grid-template-columns: 1fr; }
    .stats-grid { flex-direction: column; gap: 1rem; }
}
/* Button styles */
.btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-back {
    background: #21262d;
    border-color: #30363d;
    color: #c9d1d9;
}
.btn-back:hover {
    background: #30363d;
    border-color: #484f58;
    color: #f0f6fc;
}

.btn-primary {
    background: #238636;
    border-color: #2ea043;
    color: #ffffff;
}
.btn-primary:hover {
    background: #2ea043;
    border-color: #3fb950;
    color: #ffffff;
}

header .btn-back {
    margin-top: 0.5rem;
}

.project-links {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
/* Pixel-art mouse cursor — fully percent-encoded, parses in all browsers */
* {
    cursor: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2012%2012%22%20shape-rendering%3D%22crispEdges%22%3E%3Cpath%20d%3D%22M1%201%20L1%2011%20L4%208%20L6%2011%20L7%2010%20L5%207%20L10%207%20Z%22%20fill%3D%22%23ffffff%22%20stroke%3D%22%23000000%22%20stroke-width%3D%221%22%20stroke-linejoin%3D%22miter%22%2F%3E%3C%2Fsvg%3E") 2 2, auto !important;
}
a, .btn, button {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 12 12' shape-rendering='crispEdges'><path d='M3 5 V3 a1 1 0 0 1 1 0 V2 a1 1 0 0 1 1 0 V1.5 a1 1 0 0 1 1 0 V2 a1 1 0 0 1 1 0 V5 l1 -1 a1 1 0 0 1 1 1 v4 a4 4 0 0 1 -4 4 H5 a4 4 0 0 1 -4 -4 V6 a1 1 0 0 1 1 0 v1 Z' fill='white' stroke='black' stroke-width='1'/></svg>") 4 1, pointer !important;
}

/* CV download button */
.btn-cv {
    display: inline-block;
    margin-top: 14px;
    padding: 10px 22px;
    background: #0b6b5f;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    text-decoration: none;
    border-radius: 6px;
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.btn-cv:hover {
    background: #095a50;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(11, 107, 95, 0.28);
}
.btn-cv:active {
    transform: translateY(0);
}
.btn-cv:focus-visible {
    outline: 3px solid #0b6b5f;
    outline-offset: 3px;
}