:root {
    --color-bg: #fafafa;
    --color-surface: #ffffff;
    --color-text: #1a1a2e;
    --color-text-muted: #555;
    --color-accent: #0066ff;
    --color-accent-hover: #0052cc;
    --color-border: #e8e8e8;
    --color-tag-bg: #f0f4ff;
    --color-tag-text: #0044cc;
    --radius: 12px;
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-hover: 0 4px 12px rgba(0,0,0,0.1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(rgba(250, 250, 250, 0.88), rgba(250, 250, 250, 0.80)),
                url("/img/background.jpg") center center / cover no-repeat fixed;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

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

/* Header / Hero */
.hero {
    padding: 80px 0 60px;
    text-align: center;
}

.hero-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 24px;
    border: 3px solid var(--color-border);
}

.hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.hero .tagline {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.hero .bio {
    max-width: 600px;
    margin: 0 auto 28px;
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.social-links a:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    box-shadow: var(--shadow-hover);
    transform: translateY(-1px);
}

.social-links svg {
    width: 18px;
    height: 18px;
}

/* Sections */
section {
    padding: 50px 0;
}

section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

section .section-desc {
    color: var(--color-text-muted);
    margin-bottom: 28px;
    font-size: 0.95rem;
}

/* Project Cards */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.project-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 24px;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

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

.project-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text);
}

.project-card p {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    flex-grow: 1;
    margin-bottom: 14px;
}

.project-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.project-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.lang-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.lang-js { background: #f1e05a; }
.lang-cs { background: #178600; }
.lang-vb { background: #945db7; }
.lang-py { background: #3572A5; }

/* Apps Section */
.app-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}

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

.app-icon-img {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    flex-shrink: 0;
}

.app-info h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.app-info p {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.app-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 10px;
    background: var(--color-tag-bg);
    color: var(--color-tag-text);
    border-radius: 20px;
}

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--color-border);
    margin-top: 40px;
}

footer p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

footer a {
    color: var(--color-accent);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
    /* fixed backgrounds are janky on mobile Safari — scroll with the page */
    body { background-attachment: scroll; }
    .hero { padding: 50px 0 40px; }
    .hero h1 { font-size: 1.7rem; }
    .social-links { flex-direction: column; align-items: center; }
    .projects-grid { grid-template-columns: 1fr; }
    .app-card { flex-direction: column; text-align: center; }
}
